/* お問い合わせフォーム（Googleフォームからの置き換え）
   サイト本体の色（#d4a574 / #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: 700;
  color: #d4a574;
  letter-spacing: 0.04em;
  margin-bottom: 9px;
}

.cf-req {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(212, 165, 116, 0.16);
  border: 1px solid rgba(212, 165, 116, 0.4);
  font-size: 0.68rem;
  font-weight: 700;
  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(212, 165, 116, 0.28);
  border-radius: 5px;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  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%, #d4a574 50%), linear-gradient(135deg, #d4a574 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: #d4a574;
  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: #d4a574;
  border: 1px solid #d4a574;
  border-radius: 5px;
  color: #0a0e1a;
  /* 入力欄・ラベルと同じゴシック体に揃える */
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  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);
}

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

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

.cf-done-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.4rem;
  color: #d4a574;
  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: #d4a574 !important;
  text-decoration: none !important;
  font-weight: 700;
  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;
}

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

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

.cf-fallback {
  max-width: 640px;
  margin: 28px auto 0;
  padding: 20px;
  border: 1px solid rgba(212, 165, 116, 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 #d4a574;
  border-radius: 5px;
  color: #d4a574 !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.3s ease, color 0.3s ease;
}

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

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

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

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

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

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

/* 実体の <select> は隠し、値の保持だけに使う */
#cf-store {
  display: none;
}

.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(212, 165, 116, 0.28);
  border-radius: 5px;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  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: #d4a574;
  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: #d4a574;
  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;
  max-height: 80vh;
  border-radius: 16px;
  border: 1px solid rgba(212, 165, 116, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cf-cs-header {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
}

.cf-cs-title {
  margin: 0;
  font-size: 1.05rem;
  font-family: 'Noto Serif JP', serif;
  color: #d4a574;
}

.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;
  font-weight: 500;
  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: #d4a574;
  font-weight: 800;
  background-color: rgba(212, 165, 116, 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(212, 165, 116, 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;
}
