/* サロンマップ順位チェック モック共通スタイル */
:root {
  /* 2026-10-18 オーナーが決めた配色（Google配色）。色だけを使い、ロゴや名前は使わない */
  --bg: #F8F9FA;
  --card: #FFFFFF;
  --ink: #202124;
  --sub: #5F6368;
  --line: #DADCE0;
  --line-soft: #E8EAED;
  --accent: #1A73E8;       /* ボタン・リンクの青 */
  --accent-ink: #1967D2;
  --accent-soft: #E8F0FE;
  --deep: #202124;
  --good: #137333;         /* 20位以内（地図の1ページ目） */
  --ok: #137333;
  --ok-soft: #E6F4EA;
  --warn: #B06000;         /* 21〜60位 */
  --warn-soft: #FEF7E0;
  --bad: #EA4335;          /* ピンと「下がった」だけ */
  --bad-ink: #C5221F;
  --yellow: #FBBC04;       /* 強調だけ */
  --line-green: #06C755;   /* LINEのボタン */
  --radius: 16px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Zen Kaku Gothic New", sans-serif;
  font-size: 15px;
  line-height: 1.7;
}
/* 数字だけ Outfit */
.num { font-family: "Outfit", "Hiragino Sans", sans-serif; font-feature-settings: "tnum"; }
a { color: var(--accent); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

/* モック切替バー（本番では出さない） */
.mockbar {
  background: #222; color: #ddd; font-size: 12px;
  padding: 6px 16px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
}
.mockbar b { color: #fff; }
.mockbar a { color: #ddd; text-decoration: none; }
.mockbar a.on { color: #fff; text-decoration: underline; }

/* ヘッダー */
header.site { background: var(--card); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 700; letter-spacing: .04em; color: var(--deep); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo small { display: block; font-size: 10px; font-weight: 400; color: var(--sub); letter-spacing: .1em; }
.logo .pin { color: var(--accent); }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 22px; font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none; font-family: inherit;
}
.btn-main { background: var(--accent); color: #fff; }
.btn-line { background: var(--line-green); color: #fff; }
.btn-ghost { background: transparent; color: var(--deep); border: 1px solid var(--line); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* カード */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.card h2 { font-size: 17px; margin: 0 0 14px; }
.muted { color: var(--sub); font-size: 13px; }
.tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }

/* フォーム */
label.f { display: block; font-size: 13px; font-weight: 700; margin: 14px 0 6px; }
input.t, select.t, textarea.t {
  width: 100%; padding: 12px 14px; font-size: 16px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; font-family: inherit; color: var(--ink);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px;
  font-size: 13px; cursor: pointer; color: var(--deep);
}
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.genres { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.genre {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 4px; text-align: center;
  font-size: 13px; background: #fff; cursor: pointer;
}
.genre.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; }

/* ヒーロー */
.hero { padding: 40px 0 24px; text-align: center; }
.hero h1 { font-size: 26px; line-height: 1.5; margin: 0 0 10px; color: var(--deep); }
.hero p { color: var(--sub); margin: 0; }

/* Google 表記（本番は公式ロゴ画像に差し替え） */
.gattr {
  display: flex; align-items: center; justify-content: flex-end; gap: 6px;
  font-size: 11px; color: var(--sub); margin-top: 10px;
}
.glogo {
  font-family: Arial, sans-serif; font-size: 14px; font-weight: 700; letter-spacing: -.02em;
  color: #5f6368;
}

/* 順位リスト */
.rank-big { text-align: center; padding: 8px 0 4px; }
.rank-big .num { font-size: 64px; font-weight: 800; color: var(--accent); line-height: 1; }
.rank-big .num small { font-size: 22px; margin-left: 2px; }
.rlist { list-style: none; margin: 0; padding: 0; }
.rlist li {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center;
  padding: 10px 6px; border-bottom: 1px solid var(--line);
}
.rlist li:last-child { border-bottom: 0; }
.rlist .n { font-weight: 800; color: var(--sub); text-align: center; }
.rlist .name { font-weight: 700; font-size: 14px; }
.rlist .meta { font-size: 12px; color: var(--sub); }
.rlist li.me { background: var(--accent-soft); border-radius: 10px; }
.rlist li.me .n { color: var(--accent); }
.star { color: #e3a008; }

/* アドバイス */
.advice { list-style: none; padding: 0; margin: 0; counter-reset: a; }
.advice li {
  counter-increment: a; position: relative; padding: 12px 12px 12px 46px;
  background: var(--bg); border-radius: 10px; margin-bottom: 8px;
}
.advice li::before {
  content: counter(a); position: absolute; left: 12px; top: 12px; width: 24px; height: 24px;
  border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* 表 */
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.tbl th { font-size: 12px; color: var(--sub); font-weight: 700; }
.tbl td.r, .tbl th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.scroll-x { overflow-x: auto; }
.up { color: var(--good); font-weight: 700; }
.down { color: var(--bad); font-weight: 700; }

/* 数字タイル */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile .k { font-size: 12px; color: var(--sub); }
.tile .v { font-size: 26px; font-weight: 800; color: var(--deep); font-variant-numeric: tabular-nums; }
.tile .v small { font-size: 13px; font-weight: 400; color: var(--sub); margin-left: 2px; }

/* メーター */
.meter { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 6px 0 2px; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* 注意書き */
.note { background: #fff8e8; border: 1px solid #f1e1b5; border-radius: 10px; padding: 12px 14px; font-size: 13px; color: #6b5a2b; }

footer.site { padding: 30px 0 40px; text-align: center; font-size: 12px; color: var(--sub); }
footer.site a { color: var(--sub); margin: 0 8px; }

@media (max-width: 640px) {
  .hero h1 { font-size: 21px; }
  .genres { grid-template-columns: repeat(3, 1fr); }
  .genre { font-size: 12px; padding: 10px 2px; white-space: nowrap; letter-spacing: -.02em; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 18px 16px; }
}

/* フッター（運営者表記） */
footer.site .ops { max-width: 640px; margin: 0 auto; padding: 0 16px; line-height: 1.8; }
footer.site .ops p { margin: 0 0 10px; }
footer.site .ops a { margin: 0; color: var(--deep); }
footer.site .links { margin-top: 6px; }

/* 順位のすぐ下の注意書き（毎回表示） */
.rank-note {
  margin: 14px 0 0; padding: 12px 14px; border-radius: 10px;
  background: var(--bg); font-size: 12.5px; line-height: 1.8; color: var(--sub); text-align: left;
}

/* 口コミAIの紹介 */
.promo {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 18px 20px; margin: 8px 0 18px;
}
.promo-tag { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.promo h3 { font-size: 16px; margin: 4px 0 6px; color: var(--deep); }
.promo p { margin: 0 0 12px; font-size: 13px; color: var(--sub); }
.advice .promo { margin: 10px 0 0; }

/* 口コミの差 */
.gap { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 10px; text-align: center; }
.gap > div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px; }
.gap .k { font-size: 11px; color: var(--sub); }
.gap .v { font-size: 18px; font-weight: 800; color: var(--deep); }
.gap .v.bad { color: var(--bad); }

/* プラン比較 */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; display: flex; flex-direction: column; }
.plan.pro { border: 2px solid var(--accent); }
.plan h3 { margin: 0; font-size: 15px; }
.plan .price { font-size: 26px; font-weight: 800; color: var(--deep); margin: 6px 0 10px; }
.plan .price small { font-size: 12px; font-weight: 400; color: var(--sub); }
.plan ul { margin: 0 0 14px; padding-left: 1.2em; font-size: 13px; flex: 1; }
.plan li { margin-bottom: 4px; }
.plan .no { color: #b8aea8; }

/* 上位3店との比較 */
.cmp td.me { background: var(--accent-soft); }

/* LINEのトーク風（レポート見本） */
.talk { background: #8fa9c7; border-radius: var(--radius); padding: 18px 14px; }
.bubble { background: #fff; border-radius: 16px; padding: 14px 16px; max-width: 340px; font-size: 14px; line-height: 1.75; }
.bubble + .bubble { margin-top: 10px; }
.bubble b { color: var(--deep); }

/* 特商法の表 */
table.law { width: 100%; border-collapse: collapse; font-size: 14px; }
.law th, .law td { border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; text-align: left; }
.law th { width: 34%; background: var(--bg); font-weight: 700; }
.opt { border: 1px dashed var(--accent); border-radius: 10px; padding: 10px 12px; margin: 6px 0; background: #fffaf7; font-size: 13px; }

@media (max-width: 640px) {
  .plans { grid-template-columns: 1fr; }
  .law th { width: 38%; }
}

/* ===== 本番用の追加 ===== */
.genre input { position: absolute; opacity: 0; pointer-events: none; }
.genre { position: relative; display: block; }
.genre:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.chip { font-family: inherit; }
.suggest { position: relative; }
.suggest ul {
  position: absolute; z-index: 10; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px 0; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.suggest li { padding: 9px 14px; cursor: pointer; font-size: 14px; }
.suggest li:hover, .suggest li.on { background: var(--accent-soft); }
.flash { background: #eef7f1; border: 1px solid #cfe7d8; color: #2f6b4a; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
.err { background: #fdf0ed; border: 1px solid #f2d2ca; color: var(--bad); border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; font-size: 14px; }
.cand { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; }
.cand:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.cand input { margin-top: 5px; }
button.btn { font-family: inherit; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--sub); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.kwrow { display: flex; gap: 8px; margin-bottom: 8px; }
.kwrow input { flex: 1; }
textarea.t { min-height: 160px; resize: vertical; font-family: inherit; line-height: 1.7; }
.xf { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.legal h2 { font-size: 16px; margin: 22px 0 8px; }
.legal p, .legal li { font-size: 14px; }
.legal ol, .legal ul { padding-left: 1.4em; }
.small { font-size: 12px; color: var(--sub); }

/* Googleの公式ロゴ：高さ16〜19px（18px）、余白は上・左右10px／下5px、加工しない */
.glogo-img { height: 18px; width: auto; padding: 10px 10px 5px; box-sizing: content-box; display: block; }
.gattr { align-items: center; gap: 0; }

/* 60位まで測るようにしたときの色分け（2026-10-17） */
:root { --rank-deep: #B06000; }
.deep { color: var(--rank-deep); }
.out { color: var(--sub); }
.cnote { display: block; font-size: 10px; color: var(--sub); font-weight: 400; }

/* カードの見出しとボタンを横並びに */
.cardhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }

/* 月の切り替え */
.monthnav { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 15px; }
.monthnav .chip { text-decoration: none; min-width: 34px; text-align: center; }
.monthnav .chip.off { opacity: .35; }

/* 月ごとの順位表（横に長いのでスクロールする） */
table.month { min-width: 100%; border-collapse: collapse; }
table.month th, table.month td { white-space: nowrap; padding: 5px 4px; font-size: 12px; }
table.month th.kw, table.month td.kw {
  position: sticky; left: 0; background: var(--card); text-align: left;
  min-width: 112px; max-width: 150px; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 1px 0 0 var(--line);
}
table.month thead th { background: var(--card); color: var(--sub); font-weight: 600; }
table.month td.r { text-align: right; font-variant-numeric: tabular-nums; }
table.month td.out { color: var(--sub); font-size: 11px; }
/* 平均と最高は、横にスクロールしても右端に残す */
table.month .sum { font-weight: 700; position: sticky; background: var(--card); }
table.month th.sum, table.month td.sum { box-shadow: -1px 0 0 var(--line); }
table.month .sum.avg { right: 56px; min-width: 46px; }
table.month .sum.best { right: 0; min-width: 56px; }

/* 今日の列を薄く色づけ */
table.month .td { background: var(--accent-soft); }
table.month thead th.td { color: var(--accent); font-weight: 700; }
@media (max-width: 640px) {
  table.month th.kw, table.month td.kw { min-width: 84px; max-width: 96px; }
  table.month .sum.avg { right: 48px; min-width: 40px; }
  table.month .sum.best { min-width: 48px; }
}

/* 全店まとめ */
.ok { color: var(--good); }
.budget { background: var(--bg); border-radius: 10px; padding: 14px; }
.budget .bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.budget .bar span { display: block; height: 100%; background: var(--accent); }
.sumstore { margin: 0 0 18px; }
.sumhead { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.sumhead .muted { font-size: 12px; }
table.sum th, table.sum td { padding: 5px 6px; font-size: 13px; }
table.sum .avg { color: var(--sub); font-size: 12px; margin-left: 4px; white-space: nowrap; }
.sumnote { font-size: 12px; margin: 10px 0 0; }
.switcher { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; font-size: 13px; }
.switcher .chip { text-decoration: none; }

/* 登録の確認画面と、同意の一文 */
table.confirm { width: 100%; }
table.confirm th { width: 32%; text-align: left; color: var(--sub); font-weight: 600; font-size: 13px; vertical-align: top; padding: 9px 8px 9px 0; }
table.confirm td { padding: 9px 0; font-size: 14px; }
table.confirm .muted { font-size: 12px; margin-left: 6px; }
.agreeline { text-align: center; font-size: 12px; color: var(--sub); margin: 10px 0 0; }
.agreeline a { color: var(--sub); }

/* =======================================================================
   2026-10-18 デザインの作り直し（オーナーが決めた見本どおり）
   対象：トップページと会員ページ。色と文字は上の :root で決めている。
   ここより上の古い指定を、必要なところだけ上書きしている。
   ======================================================================= */

/* 共通 ---------------------------------------------------------------- */
.wrap.w { max-width: 1120px; padding: 0 24px; }
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }

/* 上のメニューは、スクロールしても画面の上に残す（管理画面と紙は別。下のほうで戻している） */
:root { --bar-h: 72px; }
header.site, .mbar {
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 3px rgba(60, 64, 67, .14);
}
header.site .wrap { height: auto; padding-top: 14px; padding-bottom: 14px; gap: 16px; flex-wrap: wrap; }
.logo { font-weight: 900; font-size: 18px; letter-spacing: 0; gap: 10px; color: var(--ink); }
.logo .pin { color: var(--bad); }
.logo small { font-size: 10px; letter-spacing: .06em; font-weight: 400; }
.sitenav { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-size: 14px; }
.sitenav a { color: #3C4043; text-decoration: none; }
.sitenav a:hover { color: var(--accent); }
.sitenav .btn { color: #fff; }
.sitenav .btn-ghost { color: var(--accent); }
.sitenav .navline { color: #06A048; font-weight: 700; }
.sitenav .navpaid { color: var(--accent); font-weight: 700; }
.sitenav .navline.on { border-bottom: 2px solid var(--line-green); padding-bottom: 4px; }
.sitenav .navpaid.on { border-bottom: 2px solid var(--accent); padding-bottom: 4px; }
@media (max-width: 820px) { .hide-sm { display: none; } }


.btn { min-height: 44px; padding: 0 22px; border-radius: 999px; }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--accent); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.card { border-radius: var(--radius); padding: 24px; }
.card h2 { font-size: 18px; }
.tag { background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; padding: 3px 10px; }
.flash { background: var(--ok-soft); border-color: #CEEAD6; color: var(--ok); }
.err { background: #FCE8E6; border-color: #F5C7C3; color: var(--bad-ink); }
.note { background: var(--warn-soft); border-color: #FDE9B0; color: var(--warn); }
.up { color: var(--ok); }
.down { color: var(--bad-ink); }
.ok { color: var(--ok); }

/* 入力まわり */
input.t, select.t, textarea.t { min-height: 52px; border-radius: 8px; }
textarea.t { min-height: 160px; }
.genres { display: flex; flex-wrap: wrap; gap: 8px; }
.genre {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: #3C4043; font-size: 14px; white-space: nowrap;
}
.genre:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.chip { border-radius: 999px; color: #3C4043; }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
/* 入る幅に合わせて3列→2列→1列（カードの幅が狭い会員ページでも詰まらない） */
.fieldgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px 20px; margin-top: 20px; }
.fieldgrid label.f { margin-top: 0; }
/* 3つの欄の高さをそろえる（ラベルの下の中身を同じ高さから始める） */
.fieldgrid > div > .t,
.fieldgrid > div > .suggest,
.fieldgrid > div > .storebox { margin-top: 0; }
/* 「お店」は入力欄のかわりに、同じ高さの1行で店名を出す */
.storebox {
  min-height: 52px; display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap;
  font-size: 15px; line-height: 1.5;
}
.storebox .nm { overflow-wrap: anywhere; }
.storebox .linkbtn { color: var(--accent); white-space: nowrap; }
[data-store-alt] { margin-top: 10px; }
/* JSが動かないときだけ出すチェックボックス（JSが動けば隠して、リンクで切り替える） */
.storecheck { display: block; margin-bottom: 6px; }
.storecheck[hidden] { display: none; }
@media (max-width: 820px) { .fieldgrid { grid-template-columns: minmax(0, 1fr); gap: 14px; } }

/* トップページ --------------------------------------------------------- */
.hero2 { background: #fff; padding: 64px 0 52px; }
.hero2 .row { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.hero2 .col { flex: 1 1 440px; min-width: 0; }
.hero2 h1 { font-size: 52px; line-height: 1.25; font-weight: 900; margin: 20px 0 0; color: var(--ink); }
.hero2 h1 em { font-style: normal; color: var(--accent); }
.hero2 .lead { margin: 24px 0 0; font-size: 17px; line-height: 1.9; color: var(--sub); }
.hero2 .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 700; }
.stat3 { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 40px; }
.stat3 > div { border-left: 4px solid var(--accent); padding-left: 12px; }
.stat3 .v { font-size: 32px; font-weight: 800; line-height: 1.2; }
.stat3 .v span { font-size: 17px; }
.stat3 .k { font-size: 13px; color: var(--sub); }
.stat3 .s2 { border-left-color: var(--ok); }
.stat3 .s3 { border-left-color: var(--yellow); }

/* 地図の見本（絵） */
.mapcard { position: relative; border-radius: 20px; overflow: hidden; background: #EEF1F3; min-height: 460px; }
.mapcard .road { position: absolute; background: #fff; }
.mapcard .park { position: absolute; border-radius: 6px; background: #D6EFD9; }
.mapcard .pin { position: absolute; color: #9AA0A6; }
.mapcard .pin.me { color: var(--bad); }
.mapcard .panel {
  position: absolute; left: 20px; right: 20px; bottom: 20px; background: #fff;
  border-radius: 16px; box-shadow: 0 6px 24px rgba(60,64,67,.25); padding: 20px;
}
.mapcard .panel .head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--sub); }
.mapcard .panel .big { display: flex; align-items: flex-end; gap: 16px; margin-top: 8px; }
.mapcard .panel .big .n { font-size: 68px; font-weight: 800; line-height: 1; color: var(--warn); }
.mapcard .panel .big .n span { font-size: 26px; }
.mapcard .panel .big .n.g { color: var(--ok); }
.mapcard .panel .big .side { padding-bottom: 8px; font-size: 14px; line-height: 1.6; color: #3C4043; }
.mapcard .panel .big .side strong { font-size: 20px; color: var(--ink); }
.mapcard .panel .foot { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); font-size: 13px; line-height: 1.7; color: #3C4043; }
.mapcard .panel .foot b { color: var(--accent-ink); display: block; font-size: 13px; }

.sec { padding: 72px 0; }
.sec.white { background: #fff; }
.sec h2.center { text-align: center; font-size: 34px; font-weight: 900; margin: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 820px) { .grid3 { grid-template-columns: minmax(0, 1fr); } }
.howcard { padding: 28px; border-radius: var(--radius); background: var(--bg); border-top: 4px solid var(--accent); }
.sec.white .howcard { background: var(--bg); }
.howcard .no { font-size: 36px; font-weight: 800; color: var(--accent); }
.howcard h3 { margin: 8px 0 0; font-size: 20px; }
.howcard p { margin: 10px 0 0; font-size: 15px; line-height: 1.8; color: var(--sub); }
.howcard.c2 { border-top-color: var(--yellow); }
.howcard.c2 .no { color: var(--warn); }
.howcard.c3 { border-top-color: var(--ok); }
.howcard.c3 .no { color: var(--ok); }

/* 店舗数を選ぶと月額が出る欄 */
.pricebox { margin-top: 24px; padding: 18px; border-radius: 14px; background: var(--accent-soft); }
.priceline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.priceline .calc { font-size: 15px; }
.priceline .calc b { font-size: 24px; }

/* プランのページ（/plan/line・/plan/paid） */
.pill.green { background: var(--ok-soft); color: var(--ok); }
.pill.grey { background: #F1F3F4; color: #3C4043; }
.feat { padding: 64px 0; border-top: 1px solid var(--line-soft); }
.feat.white { background: #fff; }
.feat .row { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.feat .row.rev { flex-direction: row-reverse; }
.feat .col { flex: 1 1 420px; min-width: 0; }
.feat h2 { margin: 6px 0 0; font-size: 28px; font-weight: 900; }
.feat p { margin: 14px 0 0; font-size: 16px; line-height: 1.9; color: var(--sub); }
.no.num { font-size: 14px; font-weight: 800; color: var(--accent); }
.no.num.green { color: var(--ok); }
.screen { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(60,64,67,.16); padding: 22px; }
.bar60 { margin-top: 14px; height: 10px; border-radius: 999px; background: var(--line-soft); position: relative; }
.bar60 i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--yellow); }
.bar60 u { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ok); }
.bar60lbl { display: flex; justify-content: space-between; font-size: 11px; color: #80868B; margin-top: 6px; }
.cmprow { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.cmprow.me { background: var(--warn-soft); margin: 0 -22px; padding-left: 22px; padding-right: 22px; border-bottom: 0; }
.phone { max-width: 360px; margin: 0 auto; border-radius: 28px; padding: 14px; background: #7494C0; }
.phone .talkbg { background: #8CABD9; border-radius: 18px; padding: 16px; min-height: 340px; display: flex; flex-direction: column; gap: 12px; }
.phone .when { font-size: 11px; color: #fff; text-align: center; }
.phone .bubble { align-self: flex-start; max-width: 90%; background: #fff; border-radius: 16px; padding: 14px; font-size: 13px; line-height: 1.75; }
.phone .bubble.link { color: var(--accent); font-weight: 700; }
.five { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.five > div { padding: 20px; border-right: 1px solid var(--line-soft); }
.five > div:last-child { border-right: 0; }
.five .h { margin-top: 4px; font-weight: 700; }
.five .tag { margin-top: 10px; }
table.cmp2 th.c, table.cmp2 td.c { text-align: center; }
table.cmp2 td, table.cmp2 th { padding: 14px 8px; }
@media (max-width: 820px) {
  .feat { padding: 40px 0; }
  .feat .row { gap: 28px; }
  .feat h2 { font-size: 22px; }
  .hero2 h1 { font-size: 30px !important; }
}

/* 阿部の診断 */
.diag { position: relative; overflow: hidden; }
.diag.diag-paid { border: 2px solid var(--accent); }
.dhead { display: flex; align-items: center; gap: 12px; }
.dhead .face {
  width: 44px; height: 44px; border-radius: 50%; background: var(--line-soft); flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--sub); overflow: hidden;
}
.dhead .face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dhead .t { font-weight: 900; font-size: 18px; }
.dsum { margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--bg); font-size: 14px; line-height: 1.8; }
.diag .item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0 0; margin-top: 18px; border-top: 1px solid var(--line-soft); }
.diag .no {
  flex: 0 0 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-family: "Outfit", sans-serif;
}
.diag .no.p0, .diag .no.p1 { background: var(--bad); }
.diag .no.p2 { background: var(--yellow); color: var(--ink); }
.diag .no.p3 { background: var(--ok); }
.diag .no.p4 { background: #4285F4; }
.diag .ttl { font-weight: 700; }
.diag .ttl.done { color: var(--sub); text-decoration: line-through; }
.dtags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag.p0, .tag.p1 { background: #FCE8E6; color: var(--bad-ink); }
.tag.p2 { background: var(--warn-soft); color: var(--warn); }
.tag.p3 { background: var(--ok-soft); color: var(--ok); }
.tag.grey { background: #F1F3F4; color: #3C4043; }

/* 有料プランの欄を、ぼかしてグレーにする */
.locked { position: relative; overflow: hidden; }
.locked .inner { filter: blur(4px) grayscale(.6); opacity: .55; pointer-events: none; user-select: none; }
/* 診断のカードは、下に重ねる案内のぶんだけ場所をあけておく（本当の中身にかぶせない） */
.diag.locked .inner { min-height: 190px; }
/* 診断のカード：下に小さな白い案内を重ねる */
.locked .lock {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; padding: 18px; border-radius: 14px; background: #fff; box-shadow: 0 6px 24px rgba(60,64,67,.25);
}
/* カードまるごとグレーにするとき：白い箱は作らず、中央に案内だけ重ねる */
.card.locked.whole .lock {
  inset: 0; left: 0; right: 0; bottom: 0; padding: 20px;
  background: linear-gradient(to bottom, rgba(255,255,255,.55), rgba(255,255,255,.9));
  box-shadow: none; border-radius: 0;
}
.badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--accent-ink); }
.lockbtn { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }
.lockbtn:hover { color: #fff; }
.locked .lock .muted { font-size: 13px; }

/* 「グレーの欄が、すべて使えるようになります」の青い帯 */
.upsell { margin-top: 20px; border-radius: var(--radius); padding: 22px; background: var(--accent); color: #fff; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.upsell .h { font-size: 18px; font-weight: 900; }
.upsell .s { margin-top: 4px; font-size: 13px; color: #D2E3FC; }
.upsell .btn { background: #fff; color: var(--accent); font-weight: 900; }

/* 順位を上げるための記事（calm-tokyo.co.jp/meo/ へのカード） */
.artcard {
  display: flex; flex-direction: column; gap: 8px; padding: 24px;
  border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
}
.artcard:hover { border-color: var(--accent); background: #fff; color: var(--ink); }
.artcard .lbl { font-size: 12px; font-weight: 700; color: var(--accent); }
.artcard h3 { margin: 0; font-size: 18px; line-height: 1.5; }
.artcard p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--sub); flex: 1; }
.artcard .more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--accent); }

.example { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.example .col { flex: 1 1 420px; min-width: 0; }
.example .lbl { font-size: 13px; font-weight: 700; color: var(--accent); }
.example h2 { margin: 12px 0 0; font-size: 32px; line-height: 1.45; font-weight: 900; }
.example p { margin: 16px 0 0; font-size: 16px; line-height: 1.9; color: var(--sub); }
.example .box { background: #fff; border-radius: var(--radius); padding: 8px 24px; border: 1px solid var(--line); }
.example table { width: 100%; border-collapse: collapse; font-size: 15px; }
.example th { text-align: right; padding: 14px 0; font-size: 13px; color: var(--sub); font-weight: 400; }
.example th:first-child { text-align: left; }
.example td { padding: 14px 0; text-align: right; font-weight: 700; }
.example td:first-child { text-align: left; font-weight: 400; }
.example tbody tr { border-top: 1px solid var(--line-soft); }
.example .legend { padding: 12px 0 16px; font-size: 12px; color: var(--sub); }

.plans { gap: 20px; }
.plan { border-radius: var(--radius); padding: 28px; gap: 12px; }
.plan.pro { border: 2px solid var(--accent); box-shadow: 0 4px 16px rgba(26,115,232,.15); }
.plan h3 { font-size: 16px; font-weight: 700; }
.plan .price { font-size: 40px; font-weight: 800; margin: 4px 0 6px; }
.plan .price small { font-size: 18px; }
.plan ul { font-size: 14px; line-height: 2; color: var(--sub); }
.plan .best { font-size: 12px; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; margin-left: 6px; font-weight: 700; }
.plan .best.green { color: var(--ok); background: var(--ok-soft); }
.plan.line { border-color: var(--line-green); }
.plan .plink { display: block; text-align: center; margin-top: 10px; font-size: 13px; font-weight: 700; }
.plan .btn { margin-top: auto; width: 100%; min-height: 48px; }

.rules { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.rule { flex: 1 1 200px; padding: 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.rule b { color: var(--accent); }
.rule.r2 b { color: var(--bad-ink); }
.rule.r3 b { color: var(--ok); }
.rule div { margin-top: 4px; font-size: 14px; color: var(--sub); }

.person { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.person .avatar {
  flex: 0 0 200px; width: 200px; height: 200px; border-radius: 50%; background: var(--line-soft);
  display: flex; align-items: center; justify-content: center; color: var(--sub); font-size: 13px; overflow: hidden;
}
.person .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person .col { flex: 1 1 420px; min-width: 0; }
.person .lbl { font-size: 13px; font-weight: 700; color: var(--accent); }
.person h2 { margin: 8px 0 0; font-size: 24px; font-weight: 900; }
.person p { margin: 12px 0 0; font-size: 16px; line-height: 1.9; color: var(--sub); }

.cta { padding: 80px 0; background: var(--accent); color: #fff; text-align: center; }
.cta h2 { margin: 0; font-size: 34px; font-weight: 900; }
.cta p { margin: 12px 0 0; font-size: 16px; color: #D2E3FC; }
.cta .btn { margin-top: 28px; background: #fff; color: var(--accent); font-weight: 900; }

/* 足元（全ページ共通・partials/sitefoot.ejs） */
footer.site { background: #F1F3F4; color: var(--sub); padding: 40px 0; text-align: left; font-size: 13px; line-height: 1.9; }
footer.site .ops { display: flex; flex-direction: column; gap: 4px; max-width: 1120px; }
footer.site .ops p { margin: 0; overflow-wrap: anywhere; }
/* 1行目（運営者）だけ少し太く。ほかの4行はそのまま */
footer.site .ops p.who { font-weight: 700; color: #3C4043; margin-bottom: 4px; }
footer.site a, footer.site .linkbtn { color: var(--sub); margin: 0; text-decoration: underline; font-size: 13px; }
footer.site .disc { margin-top: 8px !important; font-size: 12px; }
footer.site .links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
@media (max-width: 760px) {
  footer.site { padding: 28px 0; font-size: 12.5px; }
  footer.site .wrap.w { padding: 0 16px; }
  footer.site a, footer.site .linkbtn { font-size: 12.5px; }
}

/* 会員ページ ----------------------------------------------------------- */
.mbar { background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.mbar .who { display: flex; align-items: center; gap: 10px; }
.mbar .right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.avatar-sm { width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--ink); flex: none; }
.mbar .nm { font-size: 13px; line-height: 1.4; }
.mbar .nm b { display: block; }
.mbar .nm span { color: var(--sub); }

.mlayout { display: flex; align-items: flex-start; }
/* 左のメニュー：白い帯は本文と同じ高さまで伸ばし、中身だけ画面に貼りつける */
.mside { flex: 0 0 240px; align-self: stretch; background: #fff; border-right: 1px solid var(--line); padding: 20px 12px; box-sizing: border-box; }
.msticky { position: sticky; top: 20px; }
.mmain { flex: 1 1 auto; min-width: 0; padding: 28px 32px 48px; box-sizing: border-box; max-width: 1180px; }
.mnav { display: flex; flex-direction: column; gap: 2px; }
.mnav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 999px; color: #3C4043; text-decoration: none; font-size: 14px; }
.mnav a:hover { background: var(--bg); }
.mnav a.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.sidenote { margin: 24px 8px 0; padding: 16px; border-radius: 12px; background: var(--bg); font-size: 12px; line-height: 1.7; color: var(--sub); }

.mhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.mhead .d { font-size: 13px; color: var(--sub); }
.mhead h1 { margin: 4px 0 0; font-size: 26px; font-weight: 900; }
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 13px; background: var(--ok-soft); color: var(--ok); }
.badge.free { background: var(--accent-soft); color: var(--accent-ink); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; border-top: 4px solid var(--line); }
.kpi .k { font-size: 13px; color: var(--sub); }
.kpi .v { margin-top: 6px; font-size: 38px; font-weight: 800; line-height: 1.15; }
.kpi .v small { font-size: 18px; color: var(--sub); font-weight: 800; }
.kpi .s { font-size: 12px; color: var(--sub); line-height: 1.6; }
.kpi.k1 { border-top-color: var(--ok); }
.kpi.k2 { border-top-color: var(--yellow); }
.kpi.k2 .v { color: var(--warn); }
.kpi.k3 { border-top-color: #4285F4; }
.kpi.k3 .v { color: var(--accent); }
.kpi.k4 { border-top-color: var(--bad); }
.kpi.k4 .v { color: var(--bad-ink); }
.kpi .v.none { color: var(--sub); font-size: 30px; }

.two { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.one { margin-top: 20px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #F1F3F4; }
.tabs a { min-height: 36px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; color: var(--sub); text-decoration: none; font-size: 14px; }
.tabs a.on { background: #fff; color: var(--accent-ink); font-weight: 700; box-shadow: 0 1px 2px rgba(60,64,67,.3); }

.rchip { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; height: 30px; padding: 0 10px; border-radius: 999px; font-weight: 700; font-size: 14px; background: var(--line-soft); color: var(--sub); }
.rchip.g { background: var(--ok-soft); color: var(--ok); }
.rchip.o { background: var(--warn-soft); color: var(--warn); }
.rchip.dot { min-width: 14px; width: 14px; height: 14px; padding: 0; }
table.today { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 12px; }
table.today th { font-size: 12px; color: var(--sub); font-weight: 400; padding: 10px 6px; text-align: center; }
table.today th:first-child { text-align: left; }
table.today td { padding: 12px 6px; text-align: center; border-top: 1px solid var(--line-soft); }
table.today td:first-child { text-align: left; }
table.today td.d { font-size: 12px; color: var(--sub); white-space: nowrap; }
.legendrow { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--sub); align-items: center; }
.legendrow span { display: inline-flex; align-items: center; gap: 6px; }

.aicard { background: var(--accent-soft); border-color: #D2E3FC; }
.aicard .ttl { display: flex; align-items: center; gap: 8px; color: var(--accent-ink); font-weight: 700; font-size: 14px; }
.aicard ol { margin: 14px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.9; color: var(--ink); }

.kwpills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.kwpill { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; background: #fff; }
.kwpill.st { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.kwpill.add { border-style: dashed; color: var(--sub); }
.lbl-s { font-size: 12px; color: var(--sub); margin-top: 16px; }
.userow { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; align-items: baseline; }
.userow > span:first-child { white-space: nowrap; }
.userow > span:last-child { text-align: right; }
.meterline { margin-top: 6px; height: 8px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.meterline i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.locked { background: var(--bg); border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px; font-size: 13px; color: var(--sub); }
.locked b { color: var(--ink); }
.mfoot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 12px; color: var(--sub); }
.mfoot a, .mfoot .linkbtn { color: var(--sub); font-size: 12px; }
.mfoot .gattr { margin: 0; }

/* グラフ：スマホでは小さくなりすぎるので、最低幅を決めて横にスクロールさせる */
@media (max-width: 760px) {
  .chartbox { overflow-x: auto; }
  .chartbox svg.chart { min-width: 560px; }
}

/* 口コミAIの案内（行き先が決まるまで出さない） */
.promo-dark { border-radius: var(--radius); padding: 24px; background: var(--ink); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.promo-dark .t { font-size: 12px; color: #FDD663; font-weight: 700; }
.promo-dark .h { margin-top: 4px; font-size: 18px; font-weight: 900; }
.promo-dark .s { margin-top: 4px; font-size: 13px; color: #BDC1C6; }
.promo-dark .btn { background: var(--yellow); color: var(--ink); font-weight: 900; }

/* スマホだけに出す「いま順位をチェック」 */
.spcheck { display: none; }
@media (max-width: 760px) { .spcheck { display: flex; margin-top: 16px; } }

.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; height: 68px; background: #fff; border-top: 1px solid var(--line); display: none; z-index: 30; }
.bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--sub); font-size: 11px; text-decoration: none; }
.bottomnav a.on { color: var(--accent-ink); font-weight: 700; }

@media (max-width: 1000px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .mlayout { display: block; }
  .mside { display: none; }
  .mmain { padding: 16px 16px 24px; max-width: none; }
  footer.site { padding-bottom: 92px; }
  .mbar { padding: 12px 16px; }
  .mbar .right .btn { display: none; }
  .bottomnav { display: flex; }
  .mhead h1 { font-size: 20px; }
  .kpi { padding: 14px; }
  .kpi .v { font-size: 28px; }
  .kpi .v small { font-size: 14px; }
  .kpi .k { font-size: 11px; }
  .kpi .s { font-size: 11px; }
  table.today { font-size: 14px; }
  table.today th, table.today td { padding: 10px 2px; }
  .rchip { min-width: 46px; height: 28px; font-size: 13px; }
}
@media (max-width: 820px) {
  .hero2 { padding: 40px 0 36px; }
  .hero2 h1 { font-size: 34px; }
  .hero2 .lead { font-size: 15px; }
  .mapcard { min-height: 360px; }
  .mapcard .panel .big .n { font-size: 52px; }
  .sec { padding: 44px 0; }
  .sec h2.center { font-size: 24px; }
  .example h2 { font-size: 22px; }
  .cta { padding: 52px 0; }
  .cta h2 { font-size: 24px; }
  .checkcard { padding: 24px 18px; border-radius: 18px; }
  .person .avatar { flex: 0 0 120px; width: 120px; height: 120px; }
  .person h2 { font-size: 19px; }
}
.checkcard { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 40px; box-shadow: 0 1px 3px rgba(60,64,67,.15); }
.checkcard h2 { margin: 0; font-size: 26px; font-weight: 900; }

/* 上の帯を固定したことに合わせた指定（ここより前の .mbar / .msticky より後ろに置く） */
/* メニューの下に隠れないように、飛び先の上に余白をとる */
[id] { scroll-margin-top: calc(var(--bar-h) + 16px); }
/* 会員ページの左メニューは、上の帯の下について回る */
.msticky { top: calc(var(--bar-h) + 16px); }

/* せまい画面では、上の帯を低くして画面を取りすぎないようにする */
@media (max-width: 760px) {
  :root { --bar-h: 60px; }
  /* 1行に収める。入りきらないときは、折り返さずにロゴの文字を縮める */
  header.site .wrap, .mbar { flex-wrap: nowrap; gap: 8px; padding-left: 12px; padding-right: 12px; }
  header.site .wrap { padding-top: 8px; padding-bottom: 8px; }
  .logo { font-size: 14px; gap: 6px; min-width: 0; flex: 0 1 auto; }
  .logo > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .logo small { display: none; }
  .logo .pin { width: 24px; height: 24px; flex: none; }
  .sitenav { gap: 6px; font-size: 12px; flex: none; flex-wrap: nowrap; white-space: nowrap; }
  .sitenav .btn-sm { min-height: 36px; padding: 0 9px; font-size: 12px; }
  .mbar { padding-top: 8px; padding-bottom: 8px; }
  /* 左のロゴと右の店名で幅を分け合う（どちらも消さずに、長いほうを縮める） */
  .mbar > .who { min-width: 0; flex: 1 1 42%; }
  .mbar > .who .logo > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mbar .right { flex: 1 1 58%; min-width: 0; gap: 8px; justify-content: flex-end; }
  .mbar .right .who { min-width: 0; }
  .mbar .avatar-sm { width: 30px; height: 30px; }
  .mbar .nm { font-size: 12px; min-width: 0; overflow: hidden; }
  .mbar .nm b, .mbar .nm span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 560px) { .hide-xs { display: none; } }

/* 上のメニューの☰（せまい画面だけ）と、足元のいちばん下の行 --------------- */
.navtoggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  color: #3C4043; font-size: 18px; line-height: 1;
}
.navtoggle[aria-expanded="true"] { background: var(--line-soft); }
.navmenu { border-top: 1px solid var(--line); background: #fff; }
.navmenu[hidden] { display: none; }
header.site .navmenu .wrap { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; height: auto; gap: 0; padding-top: 2px; padding-bottom: 8px; }
.navmenu a {
  display: flex; align-items: center; min-height: 44px; font-size: 15px;
  color: #3C4043; text-decoration: none; border-bottom: 1px solid var(--line-soft);
}
.navmenu a:last-child { border-bottom: 0; }
.navmenu .navline { color: #06A048; font-weight: 700; }
.navmenu .navpaid { color: var(--accent); font-weight: 700; }
@media (max-width: 820px) { .navtoggle { display: inline-flex; } }
@media (min-width: 821px) { .navmenu { display: none; } }
footer.site .copy { margin-top: 14px; }
footer.site .copy p { margin: 0; font-size: 12px; color: var(--sub); }

/* ─────────────────────────────────────────────────────────────
   ブラウザの印刷（command + P）でページ全体を紙に出すとき
   .app …… 通常のページ（views/partials/head.ejs の body）だけに効かせる。
            PDF用のページ（print_month / print_summary）は自分の指定を持っているので触らない。
   方針：月ごとの表は横に長いので紙の幅に縮めて収める／グラフはページをまたがせない。
         きれいに残したいときは「この月をPDFで保存」の方を案内する。
   ───────────────────────────────────────────────────────────── */
.printonly { display: none; }

.mlayout.wide { grid-template-columns: minmax(0, 1fr); }
/* 多店舗：上の帯の「お店」の選択・全店まとめ（モック Multi-store.dc.html に合わせる） */
.storesel { display: flex; align-items: center; gap: 8px; margin: 0; }
.storesel label { font-size: 13px; color: var(--sub); white-space: nowrap; }
.storesel select {
  min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 14px; font-weight: 700; color: var(--ink);
  font-family: inherit; max-width: 200px;
}
.kpi .v.name { font-size: 20px; font-weight: 900; color: var(--ink); margin-top: 8px; }
.kpi .v.name.none { color: var(--sub); }
.rowacts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.opener { color: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; }
.opener:hover { text-decoration: underline; }
@media (max-width: 820px) { .hide-sm { display: none; } }
@media (max-width: 760px) {
  .storesel label { display: none; }
  .storesel select { max-width: 132px; min-height: 34px; font-size: 13px; padding: 0 8px; }
}

/* 有料プランの「多店舗のお店も」の欄（モック Multi-store.dc.html） */
.card.multi { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; margin-top: 8px; }
.card.multi .mleft { flex: 1 1 380px; min-width: 0; }
.card.multi .mleft h2 { margin: 10px 0 0; font-size: 26px; font-weight: 900; }
.card.multi .mleft ul { margin: 12px 0 0; padding-left: 20px; font-size: 15px; line-height: 2; color: #3C4043; }
.card.multi .mbox {
  flex: 0 1 320px; min-width: 0; padding: 20px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--line);
}
.card.multi .mbox .row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; font-weight: 700; gap: 10px;
}
.card.multi .mbox select {
  min-height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; font-size: 15px; font-family: inherit; color: var(--ink);
}
.card.multi .mbox .big { font-size: 40px; font-weight: 800; line-height: 1.1; }
.card.multi .mbox .big .yen { font-size: 16px; font-weight: 700; }
.tag.blue { background: var(--accent-soft); color: #1967D2; }
@media (max-width: 760px) {
  .card.multi { gap: 18px; }
  .card.multi .mleft h2 { font-size: 22px; }
  .card.multi .mbox { flex: 1 1 100%; }
}

@media print {
  @page { size: A4 portrait; margin: 12mm; }
  .app { background: #fff; font-size: 12px; }
  .app .wrap { max-width: none; padding: 0; }
  .app main.wrap { padding-top: 0 !important; }

  /* 紙では意味のないもの（ボタン・入力・ヘッダー・案内） */
  .app header.site, .app footer.site, .app .promo, .app .btn, .app .linkbtn,
  .app .noprint, .app .switcher, .app .storesel, .app .rowacts,
  .app .monthnav .chip, .app .flash { display: none !important; }
  /* 選んでいる駅・キーワードだけ、ふつうの文字として出す（白抜き文字は紙で消えるため） */
  .app .chips a.chip:not(.on) { display: none; }
  .app .chips a.chip.on {
    background: none; border-color: transparent; color: var(--ink);
    padding: 0; font-size: 11px; font-weight: 700;
  }
  .app a { color: inherit; text-decoration: none; }

  /* 印刷のときだけ出す一言 */
  .app .printonly {
    display: block; border: 1px solid var(--line); border-radius: 8px;
    padding: 8px 10px; margin: 0 0 12px; font-size: 11px; color: var(--sub);
  }

  /* カード：途中で切らない・影は出さない */
  .app .card { break-inside: avoid; page-break-inside: avoid; padding: 12px 14px; margin-bottom: 10px; }
  .app .card h2 { font-size: 14px; margin-bottom: 8px; }
  .app .note { font-size: 10px; }
  .app .muted { font-size: 10px; }
  /* グラフはページをまたがせない（またぐと空白になる）。
     幅いっぱいにするのは推移グラフ（svg.chart）だけ。アイコンのSVGまで広げない */
  .app svg { break-inside: avoid; page-break-inside: avoid; }
  .app svg.chart { width: 100%; height: auto; min-width: 0; }
  .app .chartbox { overflow: visible; }

  /* 会員ページの外枠（上の帯・左のメニュー・下のメニュー）と、操作するものは紙に出さない */
  .app .mbar, .app .mside, .app .bottomnav, .app .spcheck, .app .promo-dark,
  .app form, .app select, .app details { display: none !important; }
  /* 紙では固定しない（固定のままだと毎ページに出たり重なったりする） */
  .app header.site, .app .mbar, .app .msticky { position: static !important; box-shadow: none; }
  .app .mmain { padding: 0 !important; max-width: none; }
  .app .mlayout { display: block; }
  /* 選んでいるタブだけ、ふつうの文字で残す */
  .app .tabs { background: none; padding: 0; }
  .app .tabs a:not(.on) { display: none; }
  .app .tabs a.on { background: none; box-shadow: none; padding: 0; font-size: 11px; }
  /* 数字のカード4枚は紙でも横1列に */
  .app .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .app .kpi { padding: 10px; border-radius: 10px; }
  .app .kpi .v { font-size: 24px; margin-top: 2px; }
  .app .kpi .v small { font-size: 12px; }
  .app .kpi .k, .app .kpi .s { font-size: 10px; }
  /* 紙では1列に。月ごとの表が狭い列に入ると、2桁の数字が切れるため */
  .app .two { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .app .mhead h1 { font-size: 18px; }
  .app .badge { font-size: 11px; min-height: 24px; }

  /* 表は横スクロールできないので、はみ出さないように収める */
  .app .scroll-x { overflow: visible; }
  .app table.tbl { font-size: 11px; }
  .app table.tbl th, .app table.tbl td { padding: 5px 6px; }

  /* 月ごとの順位表（31日ぶん＋平均・最高）を紙の幅に収める */
  .app table.month { table-layout: fixed; width: 100%; font-size: 7.5px; }
  .app table.month th, .app table.month td { padding: 2px 1px; overflow: hidden; }
  /* 日ごとの数字は、となりとくっつかないように真ん中ぞろえにする */
  .app table.month thead th.r, .app table.month td.r { text-align: center; }
  .app table.month tbody td, .app table.month thead th.r { border-left: 1px solid var(--line); }
  .app table.month thead th.r { font-size: 6.5px; }
  .app table.month th.kw, .app table.month td.kw {
    position: static; box-shadow: none; width: 11.5%; min-width: 0; max-width: none;
    font-size: 8px; white-space: nowrap; text-overflow: ellipsis; text-align: left;
    border-left: 0;
  }
  .app table.month .sum { position: static; box-shadow: none; }
  .app table.month .sum.avg, .app table.month .sum.best {
    right: auto; width: 6%; min-width: 0; font-size: 7.5px;
  }
  .app table.month td.out { font-size: 6.5px; }
  /* 今日の列の色は紙にも出す */
  .app table.month .td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
