@charset "UTF-8";

/* =========================================================
   [ Contact Form ] 共通レイアウト
   B2B / リコール / サポート の3フォームで共有
========================================================= */
.contact-section {
  width: 100%;
  padding: 110px 0 130px;
  display: flex;
  justify-content: center;
  background-color: #ffffff;
}

.contact-inner {
  width: 90%;
  max-width: 820px; /* フォームは読みやすさ優先でやや狭め */
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* =========================================================
   [ Contact Form ] ヘッダー（CONTACT / お問い合わせ）
========================================================= */
.contact-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 60px;
}

.contact-title-en {
  color: #1F1F1F;
  font-family: 'Marcellus', serif;
  font-size: 56px;
  font-weight: 400;
  margin: 0;
  line-height: 1;
}

.contact-title-ja {
  color: #737373;
  font-family: 'Zen Old Mincho', serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 0;
}


/* =========================================================
   [ Contact Form ] イントロダクション
========================================================= */
.contact-intro {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
}

.intro-heading {
  color: #1F1F1F;
  font-family: 'Zen Old Mincho', serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
  margin: 0 0 24px 0;
  padding-bottom: 20px;
  position: relative;
}

/* 見出し下のセンター短線（既存の伸びるラインのモチーフを静的に流用） */
.intro-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background-color: #1F1F1F;
}

.intro-text {
  color: #555555;
  font-family: 'Zen Old Mincho', serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 2;
  text-align: center;
  margin: 0;
}

/* リコール本文など：左詰めにするモディファイア（PC/SP共通） */
.intro-text.is-left {
  text-align: left;
}

/* リコール等の注意喚起テキスト */
.intro-alert {
  color: #1F1F1F;
  font-family: 'Zen Old Mincho', serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.9;
  text-align: center;
  margin: 0 0 20px 0;
  padding: 14px 20px;
  background-color: #F5F2EE;
  border: 1px solid #E0D9CF;
  width: 100%;
  box-sizing: border-box;
}

/* イントロ内の画像（リコール対象商品など） */
.intro-image {
  width: 100%;
  margin-top: 30px;
}
.intro-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* イントロ内リンク */
.contact-link {
  color: #1F1F1F;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.3s ease;
}
.contact-link:hover {
  opacity: 0.6;
}

/* リコール等：イントロ内の小見出し（■該当商品 / ■確認方法） */
.intro-subhead {
  width: 100%;
  color: #1F1F1F;
  font-family: 'Zen Old Mincho', serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  text-align: left;
  margin: 40px 0 0 0;
}


/* =========================================================
   [ Contact Form ] フォーム本体
========================================================= */
.contact-form-wrapper {
  width: 100%;
}

.form-content {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* --- 1行（ラベル＋入力） --- */
.form-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid #E5E5E5;
  gap: 30px;
}
.form-row:first-child {
  border-top: 1px solid #E5E5E5;
}

/* --- ラベル --- */
.form-name {
  width: 240px;
  flex-shrink: 0;
  color: #1F1F1F;
  font-family: 'Zen Old Mincho', serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  padding-top: 10px; /* 入力欄の高さと視覚的に揃える */
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

/* 必須ラベル */
.required {
  display: inline-block;
  flex-shrink: 0;
  color: #ffffff;
  background-color: #B23B3B;
  font-family: 'Zen Old Mincho', serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 4px 8px;
  margin-top: 2px;
}

/* --- 入力エリア --- */
.form-input {
  flex: 1;
  min-width: 0; /* flex子要素のはみ出し防止 */
}

/* テキスト系入力の共通スタイル */
.form-input input[type="text"],
.form-input input[type="tel"],
.form-input input[type="email"],
.form-input select,
.form-input textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: 'Zen Old Mincho', serif;
  font-size: 15px;
  color: #1F1F1F;
  background-color: #F8F8F8;
  border: 1px solid #D9D9D9;
  border-radius: 0;
  padding: 12px 16px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input input::placeholder,
.form-input textarea::placeholder {
  color: #A9A9A9;
}

/* フォーカス時 */
.form-input input:focus,
.form-input select:focus,
.form-input textarea:focus {
  outline: none;
  border-color: #1F1F1F;
  background-color: #ffffff;
}

.form-input textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.8;
}

/* --- select 独自の矢印 --- */
.form-input select {
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #1F1F1F 50%),
    linear-gradient(135deg, #1F1F1F 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 15px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px !important;
}


/* =========================================================
   [ Contact Form ] 2カラム行（サポートフォーム）
========================================================= */
.form-row.two-column {
  gap: 30px;
}
.form-row.two-column .column-child {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-row.two-column .form-name {
  width: 100%;
  padding-top: 0;
}


/* =========================================================
   [ Contact Form ] セクション小見出し（サポート）
========================================================= */
.form-subheading {
  width: 100%;
  color: #1F1F1F;
  font-family: 'Zen Old Mincho', serif;
  font-size: 16px;
  font-weight: 500;
  margin: 40px 0 4px 0;
  padding-top: 30px;
}


/* =========================================================
   [ Contact Form ] ラジオボタン（カスタム）
========================================================= */
.radio-group {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-top: 8px;
}

.custom-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: 'Zen Old Mincho', serif;
  font-size: 15px;
  color: #1F1F1F;
}
/* 実際のinputは隠す */
.custom-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.radio-mark {
  width: 18px;
  height: 18px;
  border: 1px solid #A9A9A9;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.3s ease;
}
.radio-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #1F1F1F;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s ease;
}
.custom-radio input[type="radio"]:checked + .radio-mark {
  border-color: #1F1F1F;
}
.custom-radio input[type="radio"]:checked + .radio-mark::after {
  transform: translate(-50%, -50%) scale(1);
}
.custom-radio input[type="radio"]:focus-visible + .radio-mark {
  outline: 2px solid #1F1F1F;
  outline-offset: 2px;
}


/* =========================================================
   [ Contact Form ] ファイル添付（カスタム）
========================================================= */
.file-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custom-file {
  width: 100%;
  box-sizing: border-box;
  font-family: 'Zen Old Mincho', serif;
  font-size: 14px;
  color: #555555;
  background-color: #F8F8F8;
  border: 1px dashed #C4C4C4;
  padding: 12px 16px;
  cursor: pointer;
}
/* ファイル選択ボタン部分 */
.custom-file::file-selector-button {
  font-family: 'Zen Old Mincho', serif;
  font-size: 13px;
  color: #ffffff;
  background-color: #1F1F1F;
  border: none;
  border-radius: 0;
  padding: 8px 18px;
  margin-right: 16px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.custom-file::file-selector-button:hover {
  opacity: 0.8;
}


/* =========================================================
   [ Contact Form ] プライバシーポリシー
========================================================= */
.form-privacy-policy {
  width: 100%;
  margin-top: 50px;
  padding: 30px;
  background-color: #F8F8F8;
  box-sizing: border-box;
}

.privacy-title {
  color: #1F1F1F;
  font-family: 'Zen Old Mincho', serif;
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 16px 0;
  text-align: center;
}

.privacy-content {
  max-height: 160px;
  overflow-y: auto;
}
.privacy-content p {
  color: #737373;
  font-family: 'Zen Old Mincho', serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 2;
  margin: 0;
}


/* =========================================================
   [ Contact Form ] ボタンエリア
========================================================= */
.form-button-area {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
}

.btn-cancel,
.btn-submit {
  font-family: 'Marcellus', serif;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
  box-sizing: border-box;
}

/* キャンセル（枠線ボタン） */
.btn-cancel {
  min-width: 180px;
  padding: 18px 30px;
  color: #1F1F1F;
  background-color: #ffffff;
  border: 1px solid #1F1F1F;
  text-decoration: none;
}
.btn-cancel:hover {
  background-color: #F0F0F0;
}

/* 送信（塗りボタン） */
.btn-submit {
  min-width: 240px;
  padding: 18px 30px;
  color: #ffffff;
  background-color: #1F1F1F;
  border: 1px solid #1F1F1F;
}
.btn-submit:hover {
  background-color: #000000;
}


/* =========================================================
   [ スマホ対応 ] レスポンシブ調整
========================================================= */
@media (max-width: 768px) {
  .contact-section {
    padding: 80px 0 90px;
  }
  .contact-inner {
    width: 100%;
    padding: 0 20px !important;
    box-sizing: border-box;
  }

  /* ヘッダー */
  .contact-header {
    margin-bottom: 40px;
  }
  .contact-title-en {
    font-size: 40px;
  }
  .contact-title-ja {
    font-size: 13px;
  }

  /* イントロ */
  .contact-intro {
    margin-bottom: 40px;
  }
  .intro-heading {
    font-size: 18px;
  }
  .intro-text {
    font-size: 14px;
    line-height: 1.9;
    text-align: left;
  }
  .intro-alert {
    font-size: 13px;
    text-align: left;
  }

  /* フォーム行：縦積み */
  .form-row {
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
  }
  .form-name {
    width: 100%;
    padding-top: 0;
  }
  .form-input input[type="text"],
  .form-input input[type="tel"],
  .form-input input[type="email"],
  .form-input select,
  .form-input textarea {
    font-size: 16px; /* iOSの自動ズーム防止（16px以上） */
    padding: 12px 14px;
  }

  /* --- スマホ はみ出し防止（MW WP Form の size属性対策）---
     input の size="60" 等が固定幅を作り画面をはみ出すため、
     フォーム内の入力要素を強制的にコンテナ幅に収める。 */
  .contact-inner,
  .mw_wp_form {
    max-width: 100%;
    overflow-x: hidden;      /* 万一の横はみ出しを遮断 */
  }
  .mw_wp_form input[type="text"],
  .mw_wp_form input[type="tel"],
  .mw_wp_form input[type="email"],
  .mw_wp_form input[type="number"],
  .mw_wp_form select,
  .mw_wp_form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px;         /* iOSズーム防止 */
  }
  /* 電話番号の3分割欄（tel[data]）が横に溢れないように */
  .mwform-tel-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }
  .mwform-tel-field input {
    width: auto;
    max-width: 5em;          /* 3分割なので各欄は短く */
    flex: 0 1 auto;
  }

  /* 2カラム→縦積み */
  .form-row.two-column {
    flex-direction: column;
    gap: 20px;
  }

  .form-subheading {
    font-size: 15px;
    margin-top: 30px;
  }

  /* ラジオ */
  .radio-group {
    gap: 24px;
  }

  /* プライバシー */
  .form-privacy-policy {
    padding: 24px 20px;
    margin-top: 40px;
  }

  /* ボタン：縦積みで送信を上に */
  .form-button-area {
    flex-direction: column-reverse;
    gap: 14px;
    margin-top: 40px;
  }
  .btn-cancel,
  .btn-submit {
    width: 100%;
  }
}


/* =========================================================
   [ Contact Form ] 確認事項（サポートフォーム前の自己チェック）
   ※CONTACTハブから移設。フォーム前に配置。
========================================================= */
.selfcheck-block {
  width: 100%;
  margin-bottom: 60px;
}

.selfcheck-lead {
  color: #1F1F1F;
  font-family: 'Zen Old Mincho', serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.9;
  text-align: center;
  margin: 0 0 30px 0;
}

.selfcheck-list {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.selfcheck-row {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 20px 0;
  border-top: 1px solid #E5E5E5;
}
.selfcheck-row:last-child {
  border-bottom: 1px solid #E5E5E5;
}

.selfcheck-row dt {
  flex-shrink: 0;
  width: 80px;
  color: #1F1F1F;
  font-family: 'Zen Old Mincho', serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.9;
  margin: 0;
}

.selfcheck-row dd {
  flex: 1;
  color: #555555;
  font-family: 'Zen Old Mincho', serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
  margin: 0;
}

@media (max-width: 768px) {
  .selfcheck-block {
    margin-bottom: 40px;
  }
  .selfcheck-lead {
    font-size: 14px;
  }
  .selfcheck-row {
    flex-direction: column;
    gap: 8px;
    padding: 18px 0;
  }
  .selfcheck-row dt {
    width: 100%;
    color: #737373;
  }
}


/* =========================================================
   [ Contact Form ] フォーム記入の案内文（確認事項の下・フォーム直前）
========================================================= */
.form-lead-text {
  width: 100%;
  color: #555555;
  font-family: 'Zen Old Mincho', serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 2;
  text-align: center;
  margin: 0 0 40px 0;
}

@media (max-width: 768px) {
  .form-lead-text {
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 30px;
  }
}
