@charset "utf-8";

/* お問い合わせページ - TOPページ基準統一デザイン */

/* 既存のpage-heroクラスは削除し、統一されたheroクラスを使用 */
/* subpage-unified.cssのheroスタイルが適用されます */

/* ==========================================================================
   お問い合わせページ専用コンテンツスタイル（TOPページ基準）
   ========================================================================== */

/* お問い合わせコンテンツエリア - メインスタイルは下で定義 */

/* お問い合わせページ専用：フォーム下部とフッターの間を狭く */
.page-template-page-contact .page-content {
  margin-bottom: 10px;
}

.page-template-page-contact .main-content {
  margin-bottom: 10px;
}

.page-template-page-contact .contact__content {
  margin-bottom: 10px;
}

/* メッセージスタイル */
.message {
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.message--success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.message--error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.message__title {
  font-weight: 700;
  margin-bottom: 10px;
}

.message__list {
  margin: 0;
  padding-left: 20px;
}

/* お問い合わせコンテンツ */
.contact__content {
  background: #fff;
  margin-top: -100px;
  position: relative;
  z-index: 3;
  border-radius: 12px 12px 0 0;
  padding: 80px 48px;
  min-height: 600px;
  color: #222 !important;
}

/* お問い合わせコンテンツ内のすべてのテキスト要素に適用 */
.contact__content *:not(.red) {
  color: #222 !important;
}

.contact__content h2,
.contact__content h3,
.contact__content p,
.contact__content span,
.contact__content a:not(.method__tel a) {
  color: #222 !important;
}

/* 特定要素の強制指定 */
.page-template-page-contact .contact__content .headline {
  color: #2c3e50 !important;
}


.page-template-page-contact .contact__content .method__title {
  color: #2c3e50 !important;
}

.page-template-page-contact .contact__content .method__desc {
  color: #495057 !important;
}

.contact__lead {
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.headline {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
  color: #2c3e50 !important;
}

.headline .red {
  color: var(--col_primary) !important;
}

.txt {
  font-size: 1.125rem;
  line-height: 1.8;
}

/* お問い合わせ方法 */
.contact__methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

.method__item {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all 0.3s ease;
}

.method__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.method__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--col_primary), #ff6b6b);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.method__icon img {
  filter: brightness(0) invert(1);
}

.method__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50 !important;
  margin-bottom: 8px;
}

.method__desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #495057 !important;
}

.method__tel {
  margin: 8px 0;
}

.method__tel a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--col_primary) !important;
  text-decoration: none;
}

.method__tel a:hover {
  text-decoration: underline;
}

/* フォームスタイル */
.contact__form {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 60px;
  border: 1px solid #e9ecef;
}

.form__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 16px;
  text-align: center;
}

.form__note {
  text-align: center;
  color: #6c757d;
  margin-bottom: 32px;
}

.required {
  color: var(--col_primary);
  font-weight: 700;
}

.form__row {
  margin-bottom: 24px;
}

.form__label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2c3e50;
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s;
  background: #fff;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--col_primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--col_primary) 10%, transparent);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

/* ファイルアップロード */
.form__file {
  position: relative;
}

.form__file-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.form__file-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 2px dashed #dee2e6;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s;
}

.form__file-label:hover {
  border-color: var(--col_primary);
  background: #f8f9fa;
}

.form__file-text {
  color: #6c757d;
}

.form__file-button {
  background: var(--col_primary);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
}

.form__file-note {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 8px;
}

/* チェックボックス */
.form__row--privacy {
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.form__checkbox input[type="checkbox"] {
  display: none;
}

.form__checkbox-mark {
  width: 20px;
  height: 20px;
  border: 2px solid #dee2e6;
  border-radius: 4px;
  background: #fff;
  flex-shrink: 0;
  position: relative;
  transition: all 0.3s;
}

.form__checkbox input:checked + .form__checkbox-mark {
  background: var(--col_primary);
  border-color: var(--col_primary);
}

.form__checkbox input:checked + .form__checkbox-mark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.form__checkbox-text {
  line-height: 1.6;
  color: #495057;
}

.form__checkbox-text a {
  color: var(--col_primary);
  text-decoration: none;
}

.form__checkbox-text a:hover {
  text-decoration: underline;
}

/* 送信ボタン */
.form__submit {
  text-align: center;
  margin-top: 32px;
}

.btn {
  padding: 16px 32px;
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
  min-width: 200px;
}

.btn--primary {
  background: var(--col_primary);
  color: white;
}

.btn--primary:hover {
  background: color-mix(in srgb, var(--col_primary) 85%, #000);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--col_primary) 40%, transparent);
}



.form__confirm-wrapper {
  margin-top: 24px;
  overflow-x: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(18, 38, 63, 0.1);
}

.form__confirm-table {
  width: 100%;
  border-collapse: collapse;
}

.form__confirm-table th,
.form__confirm-table td {
  padding: 18px 24px;
  border-bottom: 1px solid #e9ecef;
  vertical-align: top;
}

.form__confirm-table th {
  width: 28%;
  background: #f8f9fa;
  font-weight: 600;
  color: #2c3e50;
  border-right: 1px solid #e9ecef;
}

.form__confirm-table tr:last-child th,
.form__confirm-table tr:last-child td {
  border-bottom: none;
}

.form__confirm-text {
  display: block;
  white-space: pre-line;
  color: #495057;
}

.form__confirm-value {
  color: #495057;
}

.form__confirm-value + .form__confirm-value {
  margin-top: 8px;
}

.form__confirm-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f1f3f5;
  color: #495057;
  font-size: 0.9375rem;
}

.form--confirm {
  margin-top: 32px;
}

.form__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.contact__steps {
  margin: 0 auto 48px;
  max-width: 960px;
}

.contact__steps .flow__inner {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.flow__list {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
}

.flow__list::before {
  display: none;
}

.flow__listItem {
  flex: 1;
  max-width: 180px;
  text-align: center;
  padding: 18px 16px;
  border-radius: 16px;
  background: #e9ecef;
  color: #6c757d;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.flow__listItem--active {
  background: var(--col_primary);
  color: #fff;
  box-shadow: 0 18px 36px rgba(225, 31, 31, 0.25);
}

.contact__lead--confirm .headline,
.contact__lead--thanks .headline {
  text-align: center;
}

.contact__lead--confirm .txt,
.contact__lead--thanks .txt {
  text-align: center;
}

.contact__form--confirm,
.contact__form--thanks {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 18px 48px rgba(18, 38, 63, 0.08);
}

.contact__form--thanks .form__note {
  text-align: center;
  margin-bottom: 0;
  color: #495057;
}

.contact__form--thanks .form__actions {
  margin-top: 24px;
}

.contact__content--simple {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 60px 40px;
}

.contact__content--simple .contact__lead {
  max-width: 720px;
}

.contact__content--simple .contact__form {
  max-width: 800px;
  width: 100%;
}


/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .contact__content {
    padding: 60px 32px;
  }
  
  .contact__methods {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .contact__form {
    padding: 32px 24px;
  }
  .contact__form--confirm,
  .contact__form--thanks {
    padding: 32px 24px;
  }
  .contact__content--simple {
    padding: 48px 24px;
  }
}

@media (max-width: 768px) {
  .contact__content {
    padding: 40px 24px;
    margin-top: -50px;
  }
  
  .headline {
    font-size: 2rem;
  }
  
  .method__item {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .contact__form {
    padding: 24px 20px;
  }
  .contact__form--confirm,
  .contact__form--thanks {
    padding: 24px 20px;
  }
  .contact__content--simple {
    padding: 36px 20px;
  }
  
  /* お問い合わせページ：タブレットでのフッター間隔調整 */
  .page-template-page-contact .page-content {
    margin-bottom: 5px;
  }
  
  .page-template-page-contact .main-content {
    margin-bottom: 5px;
  }
}

@media (max-width: 480px) {
  .headline {
    font-size: 1.75rem;
  }
  
  .contact__form {
    padding: 20px 16px;
  }
  .contact__form--confirm,
  .contact__form--thanks {
    padding: 20px 16px;
  }
  .contact__content--simple {
    padding: 28px 16px;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
  }
  
  /* お問い合わせページ：モバイルでのフッター間隔調整 */
  .page-template-page-contact .page-content {
    margin-bottom: 5px;
  }
  
  .page-template-page-contact .main-content {
    margin-bottom: 5px;
  }
}