/* ============================================================
   北見市ファンサイト プロトタイプ ― 下層ページ用スタイル
   モックのデザイントークン（--m / --ml / --md / --ms / --bg / --bd / --shd）
   をそのまま使っています。テーマカラーを変える場合は
   各HTMLの <div class="theme" style="--m: ..."> を差し替えてください。
   ============================================================ */

.page-wrap { background: var(--bg, #f6fafb); min-height: 100vh; }
.page-inner { max-width: 1080px; margin: 0 auto; padding: 0 28px 88px; }
.view-mobile .page-inner { padding: 0 20px 64px; }

/* --- パンくず --- */
.crumb { font-size: 12px; color: #8b9096; padding: 18px 0 0; display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.crumb a { color: #8b9096; }
.crumb a:hover { color: var(--m); }
.crumb .sep { color: #c3c7cb; }

/* --- ページ見出し --- */
.page-head { padding: 22px 0 26px; }
.page-head .eyebrow {
  font-family: 'Cormorant Garamond', serif; letter-spacing: .3em;
  font-size: 12px; color: var(--ml); display: block; margin-bottom: 6px;
}
.page-head h1 { font-size: 27px; font-weight: 700; letter-spacing: .02em; margin: 0; line-height: 1.35; }
.view-mobile .page-head h1 { font-size: 21px; }
.page-head .lead { font-size: 13.5px; color: #6d7278; line-height: 1.85; margin: 10px 0 0; }

/* --- カード --- */
.card {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(var(--shd, 1 88 125) / .06);
}
.card + .card { margin-top: 18px; }
.card-pad { padding: 26px 30px; }
.view-mobile .card-pad { padding: 20px; }

/* --- リスト（お知らせ等） --- */
.list-row {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 24px; border-bottom: 1px solid var(--bd);
  color: inherit;
}
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: var(--bg); }
.list-row .date { flex: 0 0 auto; width: 108px; font-size: 12.5px; color: #a8adb2; }
.list-row .body { flex: 1 1 0; min-width: 0; font-size: 14.5px; font-weight: 500; line-height: 1.55; }
.list-row .chev { flex: 0 0 auto; color: #c3c7cb; }
.view-mobile .list-row { flex-wrap: wrap; gap: 4px 12px; padding: 15px 18px; }
.view-mobile .list-row .date { width: auto; font-size: 11.5px; }
.view-mobile .list-row .body { flex: 1 1 100%; font-size: 14px; }

.tag {
  display: inline-block; font-size: 10.5px; letter-spacing: .04em;
  background: var(--ms); color: var(--md); border-radius: 999px;
  padding: 3px 10px; margin-right: 8px; white-space: nowrap;
}
.tag.is-new { background: var(--m); color: #fff; }

/* --- グリッド（イベント・おすすめ） --- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.grid.cols2 { grid-template-columns: repeat(2, 1fr); }
.view-mobile .grid, .view-mobile .grid.cols2 { grid-template-columns: 1fr; gap: 14px; }
.tile { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(var(--shd, 1 88 125) / .06); display: block; color: inherit; }
.tile:hover { transform: translateY(-2px); transition: transform .2s; }
.tile .thumb { width: 100%; aspect-ratio: 3 / 2; background: var(--ms); overflow: hidden; }
.tile .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .tbody { padding: 16px 18px 20px; }
.tile .tdate { font-size: 11.5px; color: #a8adb2; }
.tile .ttitle { font-size: 15px; font-weight: 600; line-height: 1.55; margin-top: 6px; }
.tile .tsub { font-size: 12.5px; color: #6d7278; line-height: 1.7; margin-top: 8px; }

/* --- 記事本文 --- */
.article-meta { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: #a8adb2; margin-bottom: 14px; }
.article-body { font-size: 14.5px; line-height: 2.05; color: #33383d; }
.article-body p { margin: 0 0 20px; }
.article-body h2 { font-size: 17px; margin: 32px 0 14px; padding-left: 12px; border-left: 3px solid var(--m); line-height: 1.5; }
.article-body img { max-width: 100%; border-radius: 10px; display: block; margin: 8px 0 20px; }
.article-body ul { margin: 0 0 20px; padding-left: 1.3em; }
.article-body li { margin-bottom: 8px; }
.source-note {
  margin-top: 28px; padding: 14px 18px; border-radius: 10px;
  background: var(--ms); font-size: 12px; color: var(--md); line-height: 1.8;
}
.source-note a { color: var(--md); text-decoration: underline; }

/* --- フォーム --- */
.form-step { display: flex; align-items: center; gap: 0; margin: 4px 0 30px; }
.form-step li { list-style: none; flex: 1 1 0; text-align: center; font-size: 12px; color: #a8adb2; position: relative; padding-bottom: 12px; }
.form-step li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--bd); border-radius: 2px; }
.form-step li.is-current { color: var(--m); font-weight: 700; }
.form-step li.is-current::after { background: var(--m); }
.form-step li.is-done::after { background: var(--ml); }
.form-step .num { display: inline-block; margin-right: 5px; }

.field { padding: 22px 0; border-bottom: 1px solid var(--bd); }
.field:first-child { padding-top: 6px; }
.field:last-child { border-bottom: none; }
.field-label { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.badge-req, .badge-any {
  font-size: 10px; font-weight: 700; border-radius: 4px; padding: 3px 7px; letter-spacing: .04em;
}
.badge-req { background: #c0392b; color: #fff; }
.badge-any { background: #eceef0; color: #82878c; }
.field-note { font-size: 12px; color: #8b9096; line-height: 1.75; margin: 4px 0 10px; }
.field-body { margin-top: 10px; }

input[type=text], input[type=email], input[type=password], input[type=tel], textarea, select {
  width: 100%; font-family: inherit; font-size: 14.5px; color: #33383d;
  border: 1px solid #d7dde3; border-radius: 9px; padding: 12px 14px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--ml); box-shadow: 0 0 0 3px rgba(var(--shd, 1 88 125) / .10);
}
textarea { min-height: 128px; line-height: 1.85; resize: vertical; }
.char-count { font-size: 11.5px; color: #a8adb2; text-align: right; margin-top: 6px; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices.col { flex-direction: column; gap: 8px; }
.choice {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  border: 1px solid #dde3e8; border-radius: 10px; padding: 11px 16px;
  font-size: 13.5px; background: #fff; transition: all .15s;
}
.choice:hover { border-color: var(--ml); }
.choice input { accent-color: var(--m); width: 16px; height: 16px; }
.choice.is-checked { border-color: var(--m); background: var(--ms); font-weight: 600; }

.agree { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.8; }
.agree input { margin-top: 3px; accent-color: var(--m); width: 16px; height: 16px; }
.agree a { text-decoration: underline; }

.err { color: #c0392b; font-size: 12.5px; margin-top: 7px; display: none; }
.err.is-on { display: block; }
.field.has-err input, .field.has-err textarea, .field.has-err select { border-color: #c0392b; }

/* --- ボタン --- */
.btns { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer;
  border-radius: 999px; padding: 15px 34px; border: 1px solid transparent;
  background: var(--m); color: #fff; min-width: 190px; transition: all .18s;
}
.btn:hover { background: var(--md); color: #fff; }
.btn.ghost { background: #fff; color: var(--md); border-color: #d7dde3; }
.btn.ghost:hover { background: var(--ms); color: var(--md); }
.btn.sm { min-width: 0; font-size: 13px; padding: 10px 22px; }

/* --- 確認画面のテーブル --- */
.confirm-row { display: flex; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--bd); font-size: 14px; }
.confirm-row:last-child { border-bottom: none; }
.confirm-row .k { flex: 0 0 auto; width: 190px; color: #6d7278; font-weight: 600; }
.confirm-row .v { flex: 1 1 0; line-height: 1.8; }
.view-mobile .confirm-row { flex-direction: column; gap: 5px; }
.view-mobile .confirm-row .k { width: auto; font-size: 12.5px; }

/* --- 完了画面 --- */
.done { text-align: center; padding: 56px 20px 40px; }
.done .mark {
  width: 66px; height: 66px; border-radius: 50%; background: var(--ms);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; color: var(--m);
}
.done h2 { font-size: 21px; font-weight: 700; margin: 0 0 12px; }
.done p { font-size: 14px; color: #6d7278; line-height: 1.95; margin: 0; }

/* --- 応援メッセージ --- */
.voice-card { background: #fff; border-radius: 14px; padding: 24px 26px; box-shadow: 0 6px 18px rgba(var(--shd, 1 88 125) / .06); }
.voice-card + .voice-card { margin-top: 14px; }
.voice-card .quote { font-family: 'Cormorant Garamond', serif; font-size: 30px; color: var(--ml); line-height: 1; }
.voice-card .vtext { font-size: 14px; line-height: 1.95; margin: 6px 0 14px; }
.voice-card .vmeta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #8b9096; }
.voice-card .vmeta .vtag { background: var(--ms); color: var(--md); border-radius: 999px; padding: 3px 11px; }

/* --- クーポン --- */
.coupon {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(var(--shd, 1 88 125) / .06); display: flex; flex-direction: column;
}
.coupon .cimg { aspect-ratio: 2 / 1; background: linear-gradient(135deg, var(--ml), var(--md)); position: relative; }
.coupon .cimg .off {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 30px; font-weight: 700; letter-spacing: .04em;
}
.coupon .cbody { padding: 16px 18px 20px; flex: 1 1 auto; display: flex; flex-direction: column; }
.coupon .ctitle { font-size: 14.5px; font-weight: 600; line-height: 1.55; }
.coupon .cexp { font-size: 11.5px; color: #a8adb2; margin-top: 7px; }
.coupon .cbtn { margin-top: auto; padding-top: 14px; }
.coupon.is-used { opacity: .55; }

/* --- お知らせ・注意書き --- */
.notice {
  border-radius: 12px; background: #fffbe6; border: 1px solid #f0e3b8;
  padding: 15px 18px; font-size: 12.5px; color: #7a6a33; line-height: 1.85; margin-bottom: 22px;
}
.proto-bar {
  background: #33383d; color: #e9e7e4; font-size: 11.5px; line-height: 1.7;
  padding: 8px 18px; text-align: center; letter-spacing: .02em;
}
.proto-bar b { color: #fff; }

/* --- FAQ --- */
.faq-item { border-bottom: 1px solid var(--bd); padding: 20px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { display: flex; gap: 12px; font-size: 15px; font-weight: 600; line-height: 1.6; cursor: pointer; }
.faq-q .mark { color: var(--m); font-family: 'Cormorant Garamond', serif; font-size: 20px; line-height: 1; }
.faq-a { display: none; gap: 12px; font-size: 13.5px; color: #6d7278; line-height: 1.95; margin-top: 12px; padding-left: 28px; }
.faq-item.is-open .faq-a { display: block; }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 34px; }
.pager a, .pager span {
  min-width: 38px; height: 38px; border-radius: 9px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 13.5px;
  background: #fff; color: #6d7278; border: 1px solid var(--bd);
}
.pager .is-current { background: var(--m); color: #fff; border-color: var(--m); }

.count { font-size: 12.5px; color: #8b9096; margin-bottom: 14px; }
.section-gap { margin-top: 44px; }

/* --- ドロワー（モックの定義を上書き：開閉をCSSクラスで制御） --- */
.drawer-frame { z-index: 120 !important; }
.drawer-frame.is-open > *:first-child { opacity: 1 !important; pointer-events: auto !important; }
.drawer-frame.is-open > *:nth-child(2) { transform: translateX(0) !important; pointer-events: auto !important; }

/* ============================================================
   トップ／マイページのヘッダー・フッターを下層ページと同じ全幅表示にする
   （帯はウィンドウ幅いっぱい、中身は1160px幅で中央寄せ）
   ============================================================ */
#pcView { max-width: none !important; }
.mp-sections { max-width: 1280px; margin-left: auto; margin-right: auto; width: 100%; }
.site-footer-inner { max-width: 1160px; margin-left: auto; margin-right: auto; width: 100%; }
.lp-header-inner { max-width: 1160px !important; }
@media (min-width: 1281px) {
  .mp-hero-logo { left: calc(50% - 604px) !important; }
  .mp-hero-menu { right: calc(50% - 604px) !important; }
  .mp-hero-body { left: calc(50% - 580px) !important; right: calc(50% - 604px) !important; }
}

/* --- 画面ID（設定シートとの対応） --- */
.screen-id {
  display: inline-block; margin-left: 14px; padding: 2px 10px;
  border-radius: 999px; background: rgba(255,255,255,.14);
  color: #cfd6dd; font-size: 11px; letter-spacing: .02em; white-space: nowrap;
}
.screen-id b { color: #fff; font-weight: 700; }
@media (max-width: 767px) { .screen-id { display: block; margin: 5px auto 0; } }
