/* ========== Common root (hero と section__inner のみ) ========== */
:root {
  /* タイポ（1440px時） */
  --fz-sub-title: clamp(1rem, calc(0.9rem + 0.25vw), 1.125rem);
  --fz-title: clamp(2.25rem, calc(1.5rem + 1.6667vw), 3rem);

  /* コンテナ */
  --container-pad: 1.25rem; /* 左右20px */
  --container-lg: 75.25rem; /* 1180px */
  --container-md: 63.75rem; /* 980px */
}

/* ========== Container ========== */
.section__inner,
.hero__inner {
  width: 100%;
  max-width: var(--container-lg);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.section__inner.medium {
  max-width: var(--container-md);
}

/* ========== Hero ========== */
.hero__under {
  padding-block: 4.6rem 2rem;
  text-align: center;
}
.hero__under .section__sub-title {
  font-size: var(--fz-sub-title); /* 1440pxで18px */
  margin: 0 0 0.2rem;
  color: #dc0112;
  font-family: "Trebuchet MS", Arial, Helvetica, "sans-serif";
  font-weight: bold;
  line-height: 1.166;
}
.hero__under .section__title {
  font-size: var(--fz-title); /* 1440pxで48px */
  line-height: 1.2;
  margin: 0;
}

/* ============================
   お問い合わせフォーム
   ============================ */
/* ============================
   タブ（卸・メーカー / その他）
   ============================ */

/* タブ＋フォームを囲う大きな白カードイメージ */
.c-contact {
  max-width: 61.25rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: 3.7rem;
}

/* タブブロック：上部だけ角丸＋薄い枠 */
.c-contact-tabs {
  display: flex;
  border-radius: 1.25rem 1.25rem 0 0;
  border: 1px solid #e0e0e0;
  border-bottom: none;
  overflow: hidden;
  background: #ffffff;
  max-width: 41.25rem;
}

/* タブボタン共通 */
.c-contact-tabs__tab {
  flex: 1 1 0;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  background: #B9B9B9;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

/* タブ境界線 */
.c-contact-tabs__tab + .c-contact-tabs__tab {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

/* アクティブタブ：白に、下辺だけ消してフォームと一体化 */
.c-contact-tabs__tab.is-active {
  background: #ffffff;
  color: #dc0012;
  border-bottom: 1px solid #ffffff;
  pointer-events: none;
}

/* ============================
   フォーム全体
   ============================ */

.c-contact.c-contact--wholesale {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-top: 0;
  padding: 4rem 3rem;
  border-radius: 0 0 1.25rem 1.25rem;
  margin-top: 0;
  position: relative;
}

.c-contact.c-contact--wholesale::before {
  content: "";
  position: absolute;
  display: block;
  width: 20rem;
  height: 1px;
  background-color: #e0e0e0;
  top: 0;
  right: 0;
}

.c-contact .wpcf7-spinner {
  position: absolute;
}

/* 1行：ラベル＋入力エリアの2カラム */
.c-contact__row {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  margin-bottom: 1.75rem;
  font-size: 0.875rem;
}

/* テキストエリア行だけ少し大きめ */
.c-contact__row--textarea {
  min-height: 10rem;
}

/* 左側ラベル */
.c-contact__label {
  background: #dc0012;
  color: #ffffff;
  padding: 0.7rem 0.75rem;
  border-radius: 0.3125rem 0 0 0.3125rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
}

.c-contact__label-text {
  font-weight: 500;
}

.c-contact__required {
  font-size: 0.75rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  border: 1px solid #ffffff;
  align-self: flex-start;
}

.c-contact__note {
  font-size: 0.75rem;
  margin-top: -1.6rem;
  margin-bottom: 1.2rem;
  color: #a3a3a3;
}

/* 右側フィールド（共通） */
.c-contact__field {
  background: #f7f7f7;
  border-radius: 0 0.3125rem 0.3125rem 0;
  padding: 0.5rem 0.8rem;
  display: flex;
  align-items: center;
}

.c-contact__row--textarea .c-contact__field {
  align-items: stretch;
}

.c-contact__field .wpcf7-form-control-wrap {
  display: inline-block;
  width: 100%;
}

/* ============================
   フォーム要素リセット
   （input / textarea / select など）
   ============================ */

.c-contact input,
.c-contact select,
.c-contact textarea {
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.6rem;
  font-size: 0.95rem;
  line-height: 1.6;
  box-sizing: border-box;

  border: none;
  border-radius: 0.35rem;
  background: transparent;
  color: #000000;

  outline: none;
  box-shadow: none;

  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* フォーカス時もブラウザ標準の装飾を出さない */
.c-contact input:focus,
.c-contact select:focus,
.c-contact textarea:focus {
  outline: none;
  box-shadow: none;
}

/* プレースホルダー色 */
.c-contact input::placeholder,
.c-contact textarea::placeholder,
.c-contact select::placeholder {
  color: #a3a3a3;
}

/* ============================
   セレクトボックス + SVG矢印
   ============================ */

.c-contact__field--select {
  padding: 0.5rem 0.8rem;
  max-width: 20rem;
}

.c-contact__select-wrap {
  position: relative;
  width: 100%;
  background: #f7f7f7;
  border-radius: 0.75rem;
}

.c-contact__select {
  background: transparent;
  padding-right: 2rem; /* 矢印分の余白 */
}

/* 矢印SVG */
.c-contact__select-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* クリックはselectに通す */
}

/* ============================
   テキストエリア
   ============================ */

.c-contact textarea.c-contact__textarea {
  min-height: 10rem;
  resize: vertical;
}

/* ============================
   プライバシー・送信ボタン
   ============================ */

.c-contact__privacy {
  margin: 1.8rem 0 1.5rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CF7 acceptance チェックボックスの調整 */
.c-contact__privacy .wpcf7-list-item {
  margin: 0;
}

/* プライバシー同意チェックボックス（カスタム表示） */
.c-contact__privacy input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: -0.1rem 0.8rem 0 0;
  border-radius: 0.125rem;
  border: 1.5px solid #dc0012;
  background: #ffffff;
  display: inline-block;
  position: relative;
  cursor: pointer;
}

.c-contact__privacy a.txt_link {
  text-decoration: underline;
  font-weight: 500;
}

.c-contact__privacy a.txt_link:hover {
  text-decoration: none;
  opacity: 0.8;
}

/* チェック後の状態 */
.c-contact__privacy input[type="checkbox"]:checked {
  background: #dc0012;
  border-color: #dc0012;
}

/* チェックマーク（白い✔） */
.c-contact__privacy input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.12rem;
  width: 0.35rem;
  height: 0.6rem;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
}

/* 送信ボタンラッパー */
.c-contact__actions {
  text-align: center;
  position: relative;
}

/* 送信ボタン本体 */
.c-contact__submit,
.c-contact input[type="submit"].c-contact__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 4.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(to right bottom, #ff3e4d, #cb0011);
  position: relative;
  max-width: 16rem;
}

/* 右向き矢印 */
.c-contact__submit::after {
  content: "➝";
  margin-left: 0.75rem;
  font-size: 1.05rem;
}

.c-contact .c_catch {
  text-align: center;
  font-size: 1.5rem;
}

input.wpcf7-form-control.wpcf7-submit.has-spinner.c-contact__submit:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ============================
   CF7 エラーメッセージ
   ============================ */

/* 各フィールド直下のエラー文言 */
.c-contact.c-contact--wholesale.js-wpcf7-error-outside .wpcf7-not-valid-tip {
  margin-top: 0.5rem;
  margin-left: 0rem;
  font-size: 0.8rem;
  color: #dc0012;
  background: transparent;
  position: absolute;
}

/* フォーム全体のレスポンス */
.c-contact .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #dc0012;
  color: #dc0012;
  font-size: 0.85rem;
}

/* ============================
   レスポンシブ
   ============================ */

@media (max-width: 567.8px) {
  .c-contact-tabs,
  .c-contact {
    max-width: 100%;
  }
  .c-contact.c-contact--wholesale {
    padding: 3.5rem 1rem;
  }

  .c-contact__field.c-contact__field--select {
    max-width: 100%;
  }

  .c-contact__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .c-contact__label {
    border-radius: 0.75rem 0.75rem 0 0;
  }

  .c-contact__field {
    border-radius: 0 0 0.75rem 0.75rem;
  }

  .c-contact__row--textarea .c-contact__field {
    min-height: 9rem;
  }
  .c-contact.c-contact--wholesale::before {
    content: none;
  }

  .c-contact-tabs__tab {
    padding: 1rem 1rem;
  }
  .c-contact__row {
    margin-bottom: 2.5rem;
  }
  .c-contact.c-contact--wholesale.js-wpcf7-error-outside .wpcf7-not-valid-tip {
    margin-top: 1rem;
    right: 0;
  }
  .c-contact__note {
    margin-top: -2rem;
    margin-bottom: 1.8rem;
  }
}
