/* デザイントークン(web/のモックと同じ配色・書体) */
:root {
  --g900: #28443B;
  --g700: #3E6B5B;
  --g500: #5E8B78;
  --g100: #E4EDE7;
  --coral: #E8845E;
  --coral6: #D96D4B;
  --coral1: #FBE9E0;
  --ink: #2B2B28;
  --gray: #6E6A63;
  --line: #E7E1D8;
  --cream: #FAF7F2;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
}
a { color: var(--g700); }
h1, h2 { font-family: var(--serif); letter-spacing: .02em; color: var(--g900); }
h1 { font-size: 26px; }
h2 { font-size: 19px; margin: 32px 0 10px; }

/* ヘッダー・フッター */
.site-header {
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.gnav { display: flex; gap: 14px; font-size: 13px; font-weight: 700; }
.gnav a { text-decoration: none; color: var(--ink); }
.gnav a:hover { color: var(--g700); }
.logo-link { text-decoration: none; }
.logo {
  font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--g900);
  letter-spacing: .04em;
}
/* ロゴ案A: ピラティス+スイッチが共有する「ス」だけコーラルにする */
.logo .s { color: var(--coral6); }
.logo small {
  display: block; font-family: var(--sans); font-size: 9px; font-weight: 400;
  color: var(--gray); letter-spacing: .12em;
}
.site-footer {
  border-top: 1px solid var(--line); margin-top: 56px; padding: 20px;
  font-size: 12px; color: var(--gray);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

main, .wrap { max-width: 860px; margin: 0 auto; padding: 24px 20px 40px; }

/* 一覧: 絞り込み */
.filters { font-size: 13px; color: var(--gray); margin: 0 0 6px; }
.filters a {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  text-decoration: none; font-size: 12px; margin: 2px 2px 2px 0;
}
.filters a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* スタジオカード */
.scard {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; margin: 12px 0;
}
.scard h3 { margin: 0; font-size: 16px; }
.scard h3 a { color: var(--ink); text-decoration: none; }
.scard h3 a:hover { color: var(--g700); }
.scard .meta { font-size: 12.5px; color: var(--gray); margin: 2px 0 8px; }
.scard .meta b { color: var(--ink); }
.type {
  display: inline-block; font-size: 10.5px; font-weight: 700; padding: 1px 8px;
  border-radius: 4px; background: var(--g100); color: var(--g900); margin-right: 4px;
}
.type.off { background: transparent; border: 1px solid var(--line); color: #B7B1A6; font-weight: 400; }
.scard .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.price { font-size: 13px; color: var(--gray); }
.price b { font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }

.btn {
  display: inline-block; padding: 8px 18px; border-radius: 999px; font-size: 13px;
  font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-family: var(--sans);
}
.btn-cta { background: var(--coral6); color: #fff; }
.btn-cta:hover { background: var(--coral); }
.btn-secondary { background: #fff; border: 1.5px solid var(--g700); color: var(--g700); }

/* 詳細 */
.d-meta { color: var(--gray); font-size: 13.5px; }
.d-meta b { color: var(--g700); }
table.detail { border-collapse: collapse; width: 100%; background: #fff; }
table.detail th, table.detail td { border: 1px solid var(--line); padding: 9px 13px; font-size: 13.5px; text-align: left; }
table.detail th { background: #F6F3EC; font-weight: 500; color: var(--gray); width: 34%; }
table.detail td b { font-variant-numeric: tabular-nums; }
.foot-note { font-size: 12px; color: var(--gray); margin-top: 24px; }

/* フォーム */
form label { display: block; font-size: 13px; font-weight: 700; margin-top: 14px; }
input[type=text], input[type=email], textarea, select {
  width: 100%; max-width: 480px; padding: 9px 12px; margin-top: 4px;
  border: 1px solid var(--line); border-radius: 8px; font-family: var(--sans); font-size: 14px;
  background: #fff;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--g500); }
.errors { color: #B4502E; background: var(--coral1); padding: 10px 14px; border-radius: 8px; font-size: 13px; }
.notice { background: var(--g100); color: var(--g900); padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; }


/* ── モック移植: ヒーロー ── */
.hero { text-align: center; padding: 34px 20px 6px; }
.hero h1 { font-size: 30px; line-height: 1.6; margin: 0 0 6px; }
.hero .sub { color: var(--gray); font-size: 13.5px; margin: 0; }

/* ── モック移植: ツールバー(スクロール追従) ── */
.al-toolbar {
  position: sticky; top: 0; background: var(--cream); z-index: 10;
  padding: 10px 0; border-bottom: 1px solid var(--line); margin-bottom: 4px;
}

/* ── モック移植: サムネイル付きカード ── */
.scard { display: flex; gap: 16px; padding: 14px; }
/* 有料の広告枠であることの表示。景品表示法のステマ規制で、
   対価を得た優遇表示には広告と分かる明示が要る。無料の掲載許可には出さない */
.pr-badge {
  display: inline-block; vertical-align: middle; margin-right: 6px;
  padding: 1px 6px; border-radius: 4px;
  background: var(--g100, #EDEAE3); color: var(--g700, #3E6B5B);
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
}

/* 店の見た目(studios/_visual.html.erb)。入れ物の大きさは使う側のクラスが決め、
   中身の敷き方だけをここで決める。
     as-photo … 写真。切り抜いて敷き詰める
     as-logo  … ロゴ。切り抜くと文字が欠けるので全体を収めて余白を残す
     .fill    … 背景ごと画像になっているロゴ。これだけは敷き詰めてよい */
.as-photo { display: block; background: #EFEAE1 center/cover no-repeat; }

/* 画面には出さず、読み上げと検索エンジンにだけ伝える見出し(地図ページのh1など) */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.as-logo { display: flex; align-items: center; justify-content: center; background-color: #fff; padding: 12px; overflow: hidden; }
.as-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.as-logo.dark { background-color: #3A3632; }
.as-logo.fill { padding: 0; }
.as-logo.fill img { width: 100%; height: 100%; object-fit: cover; }

.scard .thumb-link { flex: none; display: block; line-height: 0; }
.scard .thumb {
  width: 132px; height: 100px; border-radius: 8px; border: 1px solid var(--line);
}
.scard .body { flex: 1; min-width: 0; }
@media (max-width: 560px) {
  .scard { gap: 12px; }
  .scard .thumb { width: 96px; height: 84px; }
}

/* ── モック移植: 詳細ページ ── */
.crumb { font-size: 12px; color: var(--gray); margin: 0 0 14px; }
.crumb a { color: var(--gray); }
.d-head { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.d-head h1 { margin: 0 0 4px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.map-embed { width: 100%; height: 260px; border: 0; border-radius: 8px; margin-top: 8px; }
.near-title { margin-top: 40px; }

/* ── エリア一覧ページ ── */
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.area-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; text-decoration: none; color: var(--ink);
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  transition: border-color .15s, transform .15s;
}
.area-card:hover { border-color: var(--g500); transform: translateY(-1px); }
.area-card .an { font-weight: 700; font-size: 15px; }
.area-card .ac { font-size: 12px; color: var(--gray); font-variant-numeric: tabular-nums; }

.station-list { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 12px; }
.station-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.station-row:last-child { border-bottom: 0; }
.station-row .rank {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--g100); color: var(--g900);
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.station-row .sn { flex: 1; }
.station-row .sc { color: var(--gray); font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* 詳細ページのギャラリー(1枚大 + 2枚小) */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 6px; margin-top: 16px; }
.gallery .ph { height: 130px; border-radius: 8px; }
.gallery .ph.main { height: 130px; grid-row: span 1; }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery .ph.main { grid-column: span 2; height: 150px; } }

/* ── チーム内共有: 決めたいこと一覧(/team/decisions) ── */
.dec-wrap { max-width: 720px; margin: 0 auto; padding: 32px 20px 70px; }
.dec-wrap .eyebrow { font-size: 11.5px; letter-spacing: .16em; color: var(--g700); font-weight: 700; margin: 0 0 8px; }
.dec-wrap h1 { font-size: 28px; margin: 0 0 8px; }
.dec-wrap .lede { font-size: 13.5px; color: var(--gray); margin: 0; line-height: 1.9; }

.dec-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 24px 0 0; }
.dec-stats .stat { background: #fff; padding: 13px 15px; }
.dec-stats b { display: block; font-size: 21px; font-family: var(--serif); font-variant-numeric: tabular-nums; color: var(--g900); }
.dec-stats span { font-size: 11px; color: var(--gray); }
@media (max-width: 560px) { .dec-stats { grid-template-columns: repeat(2, 1fr); } }

.dec-h2 { font-size: 17px; margin: 40px 0 6px; }
.dec-sub { font-size: 12.5px; color: var(--gray); margin: 0 0 14px; }

.dec { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 14px; margin-bottom: 12px; }
.dec.hot { border-left: 3px solid var(--coral6); }
.dec .dh { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.dec .no { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--g100); color: var(--g900); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.dec.hot .no { background: var(--coral1); color: #9a4a28; }
.dec h3 { font-size: 15.5px; margin: 0; font-weight: 700; }
.dec .who { margin-left: auto; font-size: 10.5px; background: var(--g100); color: var(--g700); font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.dec .bg { font-size: 13px; color: var(--gray); margin: 0; line-height: 1.95; }
.dec .bg b { color: var(--ink); }
.dec .opts { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.dec .opts li { font-size: 12.5px; background: #F8F6F1; padding: 7px 12px; border-radius: 6px; line-height: 1.8; }
.dec .opts b { color: var(--g900); }
.dec .link { font-size: 12px; margin: 10px 0 0; }

.done { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 7px; }
.done li { font-size: 13px; color: var(--gray); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 9px 14px; }
.done li::before { content: "✓"; color: var(--g700); font-weight: 700; margin-right: 8px; }
.done b { color: var(--ink); }

.dec-foot { font-size: 11.5px; color: var(--gray); margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--line); }

.pref-name { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--gray); margin: 22px 0 6px; }

/* ══ モバイル最適化(560px以下)。デスクトップの見た目は変えない ══ */

/* ヘッダー: ラベルの出し分け。既定は長いラベル */
.gnav .short { display: none; }

/* エリアチップの折りたたみ(details/summaryで組みJSは使わない) */
.area-chips { margin: 0 0 4px; }
.area-chips summary { list-style: none; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; cursor: default; }
.area-chips summary::-webkit-details-marker { display: none; }
.area-chips .lbl { font-size: 13px; color: var(--gray); }
.area-chips .chips-head, .area-chips .chips-rest { display: contents; }
.area-chips a {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  text-decoration: none; font-size: 12px; margin: 2px 2px 2px 0;
}
.area-chips a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.area-chips .more-areas {
  display: none; font-size: 12px; font-weight: 700; color: var(--g700);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-top: 6px;
  width: 100%; text-align: center; cursor: pointer;
}
.area-chips[open] .more-areas { display: none; }

/* 料金プラン: 種類ごとにまとめ、プラン名→金額の縦並びにする */
.plan-group { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.plan-group .pg-head {
  background: #F6F3EC; padding: 9px 16px; font-size: 12px; font-weight: 700;
  color: var(--gray); display: flex; justify-content: space-between;
}
.plan { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line); }
.plan .pl { font-size: 13.5px; }
.plan .pn { display: block; font-size: 11.5px; color: var(--gray); }
.plan .py { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-more { border-top: 1px solid var(--line); }
.plan-more summary { padding: 10px 16px; font-size: 12.5px; font-weight: 700; color: var(--g700); cursor: pointer; }
.plan-more .plan:first-of-type { border-top: 1px solid var(--line); }

/* 下部固定CTA(モバイルのみ表示) */
.sticky-cta { display: none; }

@media (max-width: 560px) {
  /* ── ヘッダーを1行に収める ── */
  .site-header { padding: 10px 14px; }
  .logo { font-size: 15px; white-space: nowrap; }
  .logo small { font-size: 8px; letter-spacing: .08em; }
  .gnav { gap: 6px; }
  .gnav .full { display: none; }
  .gnav .short { display: inline; }
  .gnav a {
    border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px;
    font-size: 12px; white-space: nowrap; color: var(--g700);
  }

  /* ── エリアチップは選択中+上位6件だけ。残りは開閉 ── */
  .area-chips:not([open]) .chips-rest { display: none; }
  .area-chips .more-areas { display: block; }
  .area-chips[open] summary .more-areas { display: block; }
  .area-chips[open] .more-areas::after { content: "を閉じる"; }
  .area-chips a { padding: 7px 13px; font-size: 12.5px; }  /* タップ領域を広げる */

  .hero { padding: 22px 20px 4px; }
  .hero h1 { font-size: 23px; }

  /* ── 詳細: 見出しを詰め、CTAは下部固定に ── */
  .d-head { padding: 18px 16px; }
  .d-head h1 { font-size: 20px; }
  .cta-row { display: none; }        /* 上部のCTAは固定バーに集約 */
  main { padding-bottom: 84px; }     /* 固定バーぶんの余白 */

  .sticky-cta {
    display: flex; gap: 8px; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    backdrop-filter: blur(6px);
  }
  .sticky-cta .btn-cta { flex: 1; text-align: center; padding: 13px; font-size: 14px; }
  .sticky-cta .tel { padding: 13px 16px; font-size: 16px; line-height: 1; }

  /* カード: 料金とボタンが窮屈なので縦に積む */
  .scard { padding: 12px; gap: 12px; }
  .scard .thumb { width: 92px; height: 82px; }
  .scard h3 { font-size: 15px; }
  .scard .foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .scard .foot .btn { text-align: center; white-space: nowrap; padding: 10px 16px; }
  .scard .price b { font-size: 17px; }

  /* 料金・基本情報テーブルの余白を詰める */
  table.detail th { width: 38%; padding: 8px 10px; font-size: 12.5px; }
  table.detail td { padding: 8px 10px; font-size: 13px; }
  .plan { padding: 10px 13px; }
  .plan-group .pg-head { padding: 8px 13px; }

  /* 入力欄はiOSの自動ズームを避けるため16px以上にする */
  input[type=text], input[type=email], textarea, select { font-size: 16px; }
}

/* 一覧の「もっと見る」(30件ずつ追加) */
.more-wrap { text-align: center; padding: 20px 0 6px; }
.more-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid var(--g700); color: var(--g700);
  font-size: 14px; font-weight: 700; text-decoration: none;
  padding: 13px 34px; border-radius: 999px;
}
.more-btn:hover { background: var(--g100); }
.more-btn .rest { font-weight: 400; font-size: 12px; }
.more-note { font-size: 11.5px; color: var(--gray); margin: 10px 0 0; font-variant-numeric: tabular-nums; }
.more-note b { color: var(--ink); }
.list-end { text-align: center; padding: 20px 0; font-size: 12.5px; color: var(--gray); }
.list-end .line { display: block; border-top: 1px solid var(--line); margin-bottom: 14px; }

@media (max-width: 560px) {
  .more-btn { width: 100%; justify-content: center; padding: 15px; box-sizing: border-box; }
}

/* 一覧のキーワード検索 */
.list-search { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ls-input { flex: 1; max-width: 420px; font-family: inherit; font-size: 16px; /* 16px未満はiOSがズームする */
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); }
.ls-input:focus { outline: 2px solid var(--g500); outline-offset: 1px; }
.ls-btn { border: 0; background: var(--g700); color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 15px; cursor: pointer; flex: none; }
.ls-clear { font-size: 12px; color: var(--gray); white-space: nowrap; }
.list-empty { padding: 28px 0; }
.list-empty .hint { font-size: 12.5px; color: var(--gray); line-height: 1.9; }

/* 駅ページ */
.station-page { max-width: 760px; margin: 0 auto; padding: 22px 16px 40px; }
.station-page .bc { font-size: 11px; color: var(--gray); margin-bottom: 12px; }
.station-page .bc a { color: var(--gray); }
.station-page h1 { font-family: var(--serif); font-size: 22px; color: var(--g900); margin: 0; }
.station-sub { font-size: 12px; color: var(--gray); margin: 4px 0 12px; }
.station-note { font-size: 11.5px; color: var(--gray); line-height: 1.9; margin-top: 18px; }
.station-nearby { font-size: 12.5px; margin-top: 10px; }
.station-nearby a { margin-right: 10px; font-weight: 700; }
/* エリア一覧の駅ランキング(リンク化) */
a.station-row { text-decoration: none; color: inherit; }

/* 検索結果の回復導線 */
.map-list-link{position:absolute;right:16px;top:140px;z-index:4;font-size:12px}
.map-empty{position:absolute;top:35%;left:50%;transform:translateX(-50%);width:min(90%,420px);padding:20px;background:white;border-radius:16px;z-index:5;box-shadow:0 4px 20px #0002}
.map-empty[hidden]{display:none}
.map-empty a{display:block;margin-top:12px}
.discovery-summary{margin:20px 0;padding:16px;background:var(--g50,#edf2ed);border-radius:12px}
.discovery-summary p{display:inline-block;margin:12px 18px 0 0}

.comparison-table-wrap{overflow-x:auto;margin:24px 0}
.comparison-table{border-collapse:collapse;width:100%;min-width:600px;table-layout:fixed}
.comparison-table th,.comparison-table td{padding:16px;border:1px solid #d9dfd9;vertical-align:top;text-align:left;overflow-wrap:anywhere}
.comparison-table th{background:#edf2ed}
.comparison-table th:first-child{width:100px}
.comparison-table caption{text-align:left;padding:12px}
.comparison-table p{margin:0 0 12px}
.comparison-status:empty{display:none}
.comparison-status{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);max-width:90%;padding:12px 20px;border-radius:12px;background:#28443b;color:white;z-index:1000;box-shadow:0 4px 16px #0003}
.scard .foot{flex-wrap:wrap;gap:8px}
.compare-button[aria-pressed="true"]{background:#d9e8dc}
@media(max-width:600px){.gnav{gap:8px}.compare-button{font-size:12px;padding:8px 12px}}

.map-list-link{top:184px}.mpin .ph{overflow:hidden}

.mcard .btn{white-space:nowrap}

.map-screen.map-failed .map-canvas::after{content:"地図の読み込みが遅れています。一覧から引き続き探せます。";padding:32px;text-align:center}
/* 共有URLはコピー拒否時にも手動で選択できる。 */
.share-link { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:14px 0; font-size:12px; }
.share-link details { max-width:100%; }
.share-link summary { cursor:pointer; }
.share-link label, .share-link small { display:block; margin-top:6px; }
.share-link input { display:block; width:min(420px, 70vw); max-width:100%; padding:8px; border:1px solid #b7b1a6; border-radius:6px; font:inherit; }
.map-share { position:absolute; right:16px; top:235px; z-index:5; max-width:calc(100% - 32px); background:#faf7f2; border-radius:12px; padding:0 12px; }
.map-share .share-link { margin:8px 0; }
@media (max-width:600px) { .map-share { right:10px; } .map-share .share-link { gap:6px; } }
