/* お問い合わせフォーム（Googleフォームからの置き換え）
   サイト本体の色（#F5A623 / #0a0e1a）に合わせている。 */

.cf-form {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.cf-field {
  margin-bottom: 18px;
}

.cf-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #F5A623;
  letter-spacing: 0.04em;
  margin-bottom: 9px;
}

.cf-req {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(245, 166, 35, 0.16);
  border: 1px solid rgba(245, 166, 35, 0.4);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  vertical-align: 2px;
}

.cf-note {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: #999;
  line-height: 1.7;
  margin-top: 5px;
}

.cf-input,
.cf-select,
.cf-textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 166, 35, 0.28);
  border-radius: 5px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  padding: 14px 16px;
  transition: border-color 0.3s ease, background 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.cf-textarea {
  min-height: 118px;
  resize: vertical;
}

.cf-select {
  /* 標準の矢印を消しているので、金色の三角を描き足す */
  background-image: linear-gradient(45deg, transparent 50%, #F5A623 50%), linear-gradient(135deg, #F5A623 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 15px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.cf-select option {
  background: #12161f;
  color: #fff;
}

.cf-input::placeholder,
.cf-textarea::placeholder {
  color: #6b6b6b;
}

.cf-input:focus,
.cf-select:focus,
.cf-textarea:focus {
  outline: none;
  border-color: #F5A623;
  background: rgba(255, 255, 255, 0.07);
}

/* 未入力などの指摘 */
.cf-field.is-error .cf-input,
.cf-field.is-error .cf-select,
.cf-field.is-error .cf-textarea {
  border-color: #ff8f8f;
}

.cf-error {
  display: none;
  font-size: 0.78rem;
  color: #ff8f8f;
  margin-top: 6px;
}

.cf-field.is-error .cf-error {
  display: block;
}

/* --- 送信ボタン --- */

.cf-submit {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 17px 40px;
  background: #F5A623;
  border: 1px solid #F5A623;
  border-radius: 5px;
  color: #0a0e1a;
  /* 入力欄・ラベルと同じゴシック体に揃える */
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: opacity 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.cf-submit:hover:not(:disabled) {
  opacity: 0.85;
}

.cf-submit:disabled {
  opacity: 0.5;
  cursor: default;
}

.cf-privacy {
  font-size: 0.76rem;
  color: #888;
  line-height: 1.9;
  text-align: center;
  margin-top: 18px;
}

/* --- 送信結果 --- */

.cf-result {
  display: none;
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  line-height: 1.9;
}

.cf-result.is-ok {
  display: block;
  color: #7fd6a2;
  background: rgba(127, 214, 162, 0.1);
  border: 1px solid rgba(127, 214, 162, 0.4);
}

.cf-result.is-ng {
  display: block;
  color: #ff8f8f;
  background: rgba(255, 143, 143, 0.1);
  border: 1px solid rgba(255, 143, 143, 0.4);
}

/* --- 送信前の確認画面（2026-09-18・PM 指示「送る前にミスを気付かせる」）--- */

.cf-confirm {
  text-align: left;
  border: 1px solid rgba(245, 166, 35, 0.35);
  border-radius: 8px;
  padding: 22px 20px 20px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.03);
}

.cf-confirm[hidden] { display: none; }

.cf-cfm-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #F5A623;
  margin: 0 0 8px;
  text-align: center;
}

.cf-cfm-lead {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.8;
  margin: 0 0 18px;
  text-align: center;
}

.cf-cfm-row {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 6px 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  line-height: 1.7;
}

.cf-cfm-k { color: #F5A623; font-weight: 600; font-size: 0.85rem; }
.cf-cfm-v { color: #fff; word-break: break-word; overflow-wrap: anywhere; }

/* メールアドレスは打ち間違いに気づかせる＝大きく・等幅 */
.cf-cfm-row.is-email .cf-cfm-v {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: #ffe2a8;
}

.cf-cfm-hint { margin: 0 0 4px; color: #ff8f8f; font-size: 0.9rem; }

.cf-cfm-fix {
  background: transparent;
  border: 1px solid #F5A623;
  border-radius: 999px;
  color: #F5A623;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 4px 12px;
  cursor: pointer;
}

.cf-cfm-note { margin: 0 0 6px; color: #999; font-size: 0.8rem; line-height: 1.7; }

.cf-cfm-ops { display: flex; gap: 12px; margin-top: 18px; }

.cf-cfm-back {
  flex: 0 0 auto;
  padding: 17px 22px;
  background: transparent;
  border: 1px solid rgba(245, 166, 35, 0.5);
  border-radius: 5px;
  color: #F5A623;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.cf-cfm-ops .cf-submit { margin-top: 0; flex: 1 1 auto; }

.cf-done-email {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.1rem;
  color: #ffe2a8;
  margin: 4px 0;
  word-break: break-all;
}

@media (max-width: 600px) {
  .cf-cfm-row { grid-template-columns: 1fr; gap: 2px; }
  .cf-cfm-ops { flex-direction: column-reverse; }
  .cf-cfm-back { width: 100%; }
}

/* 送信完了後の画面 */
.cf-done {
  display: none;
  text-align: center;
  padding: 30px 0 10px;
}

.cf-done.is-shown {
  display: block;
}

.cf-done-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #F5A623;
  margin: 0 0 18px;
}

.cf-done-text {
  color: #ccc;
  line-height: 2;
  font-size: 0.95rem;
  margin: 0 0 28px;
}

.cf-done-tel {
  display: inline-block;
  color: #F5A623 !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 1.1rem;
}

@media (max-width: 600px) {
  .cf-field {
    margin-bottom: 22px;
  }

  .cf-submit {
    letter-spacing: 0.12em;
    font-size: 1rem;
  }
}

/* --- 迷惑投稿対策：人間には見せない項目 --- */

.cf-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- ボット確認（Turnstile） --- */

.cf-turnstile-box {
  /* 「送信する」より下に置くため、上ではなく下向きの余白を持たせる */
  margin-top: 22px;
  display: flex;
  justify-content: center;
  /* ⛔ **先に場所を確保する**（2026-08-09・ガタつきの直し）。
        ウィジェットは外部スクリプトが届いてから **72.8px** に育つ（本番で実測）。
        確保していないと、育った瞬間に**フッターが 72px 下がる**＝ CLS 0.2105。
     ⭐ 72.8 より少しだけ大きい 73px にしてある＝中身が入っても**枠の高さは動かない**（ずれ 0）。
     ⚠️ 数値を変えるときは、本番で実測してから（Cloudflare 側の仕様変更で変わりうる）。 */
  min-height: 73px;
}

.cf-turnstile-box[hidden] {
  display: none;
}

/* --- 【待避】従来のGoogleフォームへの案内 --- */

.cf-fallback {
  max-width: 640px;
  margin: 28px auto 0;
  padding: 20px;
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: 6px;
  text-align: center;
}

.cf-fallback[hidden] {
  display: none;
}

.cf-fallback-text {
  font-size: 0.86rem;
  color: #ccc;
  line-height: 1.9;
  margin: 0 0 16px;
}

.cf-fallback-btn {
  display: inline-block;
  padding: 13px 30px;
  border: 1px solid #F5A623;
  border-radius: 5px;
  color: #F5A623 !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.cf-fallback-btn:hover {
  background: #F5A623;
  color: #0a0e1a !important;
}

/* ============================================================
   フォームの開閉（通常はボタンのみ、押すと開く）
   ============================================================ */

.cf-open {
  display: inline-block;
  min-width: 280px;
  padding: 17px 44px;
  background: transparent;
  border: 1px solid #F5A623;
  border-radius: 5px;
  color: #F5A623;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.cf-open:hover {
  background: #F5A623;
  color: #0a0e1a;
}

.cf-open[hidden],
#cf-body[hidden] {
  display: none;
}

/* ============================================================
   店舗選択：カスタムセレクト（中央モーダル）
   Bar Price Manager の custom-select と同じ作法
   ============================================================ */

/* ⛔ **実体の <select> を CSS で隠さない**（2026-08-09・ガタつきの直し）。
      💥 隠すと、差し替えのボタンを JS が作るまで**欄が空っぽ**になり、
         作られた瞬間に **54px 伸びてフッターを押し下げる**（実測 CLS 0.20）。
      ⭐ 隠すのは **js/contact-form.js が差し替えボタンを入れた直後**（そこで初めて場所が入れ替わる）。
      ⭐ おまけ：JS が動かない環境でも、**元の select がそのまま使える**（フォームが死なない）。
   ⚠️ 高さをそろえること＝ 差し替えボタンの line-height を .cf-input と同じ 1.6 にしてある（下）。
      そろっていないと、入れ替わりの瞬間にその差だけずれる。 */

.cf-cs-trigger {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 166, 35, 0.28);
  border-radius: 5px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  /* ⛔ .cf-input と同じにする（そろえないと、入れ替わりの瞬間にその差だけずれる） */
  line-height: 1.6;
  text-align: left;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.cf-cs-trigger:hover,
.cf-cs-trigger:focus-visible {
  outline: none;
  border-color: #F5A623;
  background: rgba(255, 255, 255, 0.07);
}

.cf-field.is-error .cf-cs-trigger {
  border-color: #ff8f8f;
}

.cf-cs-trigger.is-placeholder .cf-cs-trigger-text {
  color: #6b6b6b;
}

.cf-cs-trigger-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cf-cs-trigger-mark {
  flex-shrink: 0;
  color: #F5A623;
  font-size: 0.7rem;
}

/* --- モーダル --- */

.cf-cs-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cf-cs-overlay[hidden] {
  display: none;
}

.cf-cs-sheet {
  background: #12161f;
  width: 90%;
  max-width: 360px;
  /* ⚠️ 拡大率で割り戻す（2026-08-10）＝ パソコン幅の `zoom` の中で「本物の画面の高さ」を使うため。
        割り戻さないと、広い画面ほど覆いが画面より高くなり、中身が下へはみ出す。 */
  max-height: calc(80svh / var(--tf-zoom, 1));
  border-radius: 16px;
  border: 1px solid rgba(245, 166, 35, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ⚠️ **上端そろえにしてある**（2026-08-29）＝ 見出しの下に但し書きが付いて2段になったため。
      中央そろえのままだと「×」が2段の真ん中に落ちて、見出しと目線が合わない。 */
.cf-cs-header {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
}

/* 見出しと但し書きの塊。💥 `min-width: 0` が無いと、flex は縮める前に折り返しを諦めて
   横へはみ出す（教訓220①と同じ形）。 */
.cf-cs-head-text {
  min-width: 0;
  flex: 1 1 0;
}

.cf-cs-title {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--font-serif);
  color: #F5A623;
}

/* ⭐ 営業のご案内へのお断り（PM ご要望 2026-08-29）。ページ側の `.contact-caution` と対。
   ⛔ **0.76rem（＝12.16px）より小さくしない。**このサイトは 12.0px を読みやすさの下限として
      扱っている（教訓217）。💥 0.72rem で作って実測したら 11.52px で下限を割っていた。 */
.cf-cs-note {
  margin: 5px 0 0;
  font-size: 0.76rem;
  line-height: 1.6;
  color: #999;
}

.cf-cs-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #888;
  padding: 0 4px;
  cursor: pointer;
  line-height: 1;
}

.cf-cs-list {
  overflow-y: auto;
  overflow-x: hidden;
  touch-action: pan-y;
  flex: 1;
  padding: 8px;
}

.cf-cs-item {
  width: 100%;
  box-sizing: border-box;
  padding: 15px 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #eee;
  font-family: inherit;
  font-size: 1rem;
  /* ⛔ 500 は使わない（太さを2段しか持たない端末では 400 へ落ちて、
        選んでいる項目との差が付かなくなる）＝ 400 と 600 の対で組む。 */
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cf-cs-item:last-child {
  border-bottom: none;
}

.cf-cs-item:active,
.cf-cs-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.cf-cs-item.is-selected {
  color: #F5A623;
  /* ⛔ 800 も使わない（どの端末でも 700 に丸められる）。上の 400 との対で 600。 */
  font-weight: 600;
  background-color: rgba(245, 166, 35, 0.12);
}

.cf-cs-item-sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: #999;
  margin-top: 4px;
}

.cf-cs-item.is-selected .cf-cs-item-sub {
  color: rgba(245, 166, 35, 0.8);
}

/* ============================================================
   アンカー移動（ヘッダーの「私たちについて」等）の着地位置
   ============================================================
   ヘッダー(70px)は position:fixed のため、そのままだと
   見出しがヘッダーの裏に隠れる。営業状況バー(46px)が出ている間は
   さらに隠れるので、body のクラスで補正量を切り替える。 */

/* 各セクションの上余白（padding-top）が違うため、補正値も個別に指定して
   「見出しが画面のどこに来るか」を全セクションで揃える。
     お問い合わせ: padding 60px  → 88 + 60 = 148px
     私たちについて/店舗紹介: padding 100px → 48 + 100 = 148px */
#contact {
  scroll-margin-top: 88px;
}

#about,
#stores {
  scroll-margin-top: 48px;
}

/* 「Contact」と本文の間が空きすぎていたため詰める
   （.section-title は他の節でも使うので #contact に限定） */
#contact .section-title {
  margin-bottom: 34px;
}

/* ============================================================
   セクション見出し（Our Story / Our Stores / Contact）
   index.html の <style> より後で読み込まれるこのファイルで上書きする
   ============================================================ */

/* 3.2rem(51.2px=38.4pt) → 2.5rem(40px=30.0pt) */
#about .section-title .en,
#stores .section-title .en,
#contact .section-title .en {
  font-size: 2.5rem;
}

/* 文字を小さくした分、上下の余白も詰めて詰まり具合を保つ */
#about .section-title .jp,
#stores .section-title .jp,
#contact .section-title .jp {
  margin-bottom: 2px;
}

#about .section-title {
  margin-bottom: 45px;
}

#stores .section-title,
#contact .section-title {
  margin-bottom: 23px;
}
