/* ============================================================
   韓国のモバイルWeb風 (Pretendard / 1カラム / ポイントカラー1色)
   ============================================================ */
:root {
  --brand: #ff5a36;
  --brand-dark: #e9461f;
  --brand-soft: #fff1ec;
  --ink: #191f28;
  --ink-2: #4e5968;
  --ink-3: #8b95a1;
  --line: #eef0f3;
  --line-2: #e5e8eb;
  --bg: #f2f4f6;
  --card: #ffffff;
  --blue: #3182f6;
  --blue-soft: #e8f3ff;
  --green: #03b26c;
  --green-soft: #e5f8ef;
  --warn: #f04452;
  --warn-soft: #ffeeee;
  --radius: 16px;
  --app-w: 640px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 15px; line-height: 1.6; letter-spacing: -0.01em; word-break: keep-all;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
a { color: inherit; }
.app { max-width: var(--app-w); margin: 0 auto; background: var(--card); min-height: 100vh; padding-bottom: 72px; box-shadow: 0 0 0 1px var(--line); }
.main { padding: 0 0 8px; }

/* ---------- GNB ---------- */
.gnb { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.gnb-top { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 20px; }
.logo { display: flex; align-items: center; gap: 6px; font-size: 21px; font-weight: 800; letter-spacing: -0.04em; text-decoration: none; color: var(--ink); }
.logo-mark { font-size: 18px; }
.gnb-lang { font-size: 12px; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px; }
.gnb-tabs { display: flex; gap: 18px; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
.gnb-tabs::-webkit-scrollbar { display: none; }
.gnb-tabs a { flex: none; padding: 10px 0 11px; font-size: 15px; font-weight: 600; color: var(--ink-3); text-decoration: none; border-bottom: 2px solid transparent; }
.gnb-tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- 上部広告 (韓国のディスプレイ広告風) ---------- */
.top-ad { padding: 14px 20px 6px; }
.ad-banner {
  position: relative; display: flex; align-items: stretch; min-height: 140px; border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #3d4f86 0%, #1c2544 55%, #141a31 100%);
  box-shadow: 0 6px 18px rgba(20,26,49,.18);
}
.ad-banner-text { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 18px 0 18px 20px; position: relative; z-index: 1; }
.ad-banner-kicker { font-size: 11.5px; color: #c8d0ea; font-weight: 500; }
.ad-banner-title { font-size: 21px; font-weight: 800; line-height: 1.3; letter-spacing: -0.03em; }
.ad-banner-title em { font-style: normal; color: #f2c879; }
.ad-banner-copy { font-size: 12.5px; color: #d6dbea; }
.ad-banner-cta { align-self: flex-start; margin-top: 8px; padding: 6px 12px; border-radius: 999px; background: #f2c879; color: #1c2544; font-size: 12.5px; font-weight: 800; }
.ad-banner-art { position: relative; width: 132px; flex: none; }
.ad-art-ring { position: absolute; right: -40px; top: -30px; width: 170px; height: 170px; border-radius: 50%; border: 22px solid rgba(242,200,121,.22); }
.ad-art-stamp {
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%) rotate(-10deg);
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: #f2c879; color: #1c2544; font-size: 11px; font-weight: 800; line-height: 1.1; letter-spacing: .04em;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.ad-art-stamp b { font-size: 20px; display: block; letter-spacing: -0.02em; }
.ad-art-brand { position: absolute; right: 12px; bottom: 10px; font-size: 10px; letter-spacing: .3em; color: rgba(255,255,255,.45); font-weight: 700; }
.ad-chip { position: absolute; left: 12px; top: 10px; z-index: 2; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,.45); color: #fff; letter-spacing: .04em; }
.ad-chip i { font-style: normal; opacity: .8; }
.ad-count { position: absolute; right: 10px; top: 10px; z-index: 2; font-size: 10.5px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.35); color: #fff; }
.ad-banner-text { padding-top: 30px; }
.ad-sponsor { margin: 6px 2px 0; font-size: 11px; color: var(--ink-3); }

.recruit { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 13px 16px; border-radius: 14px; background: var(--bg); text-decoration: none; color: var(--ink); }
.recruit-emoji { font-size: 22px; }
.recruit-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.recruit-text strong { font-size: 14.5px; font-weight: 700; }
.recruit-text span { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recruit-cta { font-size: 13px; font-weight: 700; color: var(--brand); white-space: nowrap; }

/* ---------- セクション共通 ---------- */
.sec { padding: 24px 20px; border-bottom: 8px solid var(--bg); }
.sec:last-child { border-bottom: 0; }
.sec-h { margin: 0 0 12px; font-size: 19px; font-weight: 800; letter-spacing: -0.03em; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sec-h .more { font-size: 13px; font-weight: 500; color: var(--ink-3); text-decoration: none; }
.note { font-size: 12.5px; color: var(--ink-3); margin: 10px 0 0; }
h1 { font-size: 25px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.3; margin: 0 0 6px; }
.eyebrow { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--brand); }
.sub { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.crumb { padding: 14px 20px 0; font-size: 12.5px; color: var(--ink-3); }
.crumb a { text-decoration: none; }

.hero-card { padding: 20px 20px 24px; border-bottom: 8px solid var(--bg); }
.big-price { margin: 12px 0 8px; font-size: 15px; color: var(--ink-2); }
.big-price b { font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.big-price small { color: var(--ink-3); margin-left: 4px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-top: 14px; }
.stat-row div { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.stat-row b { display: block; font-size: 17px; font-weight: 800; }
.stat-row span { font-size: 12px; color: var(--ink-3); }

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 44px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:active { background: var(--brand-dark); }
.btn-ghost { background: transparent; border: 1px solid var(--line-2); margin-top: 12px; }
.btn-block { width: 100%; }

/* ---------- ヒーロー (トップ) ---------- */
.home-hero { padding: 22px 20px 20px; }
.update-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--green); background: var(--green-soft); border-radius: 999px; padding: 4px 10px; margin-bottom: 10px; }
.update-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.savings { margin: 10px 0 2px; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.savings b { color: var(--brand); }
.basis { font-size: 12px; color: var(--ink-3); margin: 0; }

.quick-row { display: flex; gap: 8px; margin: 14px 0 0; overflow-x: auto; scrollbar-width: none; }
.quick-row::-webkit-scrollbar { display: none; }
.pill-btn { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; cursor: pointer; }
.pill-btn.brand { background: var(--brand-soft); color: var(--brand); border-color: transparent; }

.dose-box { margin-top: 18px; padding: 16px; border-radius: var(--radius); background: var(--bg); }
.dose-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.dose-value { font-size: 24px; font-weight: 800; color: var(--brand); }
input[type=range] { width: 100%; accent-color: var(--brand); height: 30px; margin: 6px 0 0; }
.ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.dose-hint { font-size: 12px; color: var(--ink-3); margin: 6px 0 0; }
.period { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.period-label { font-size: 16px; font-weight: 800; }
.stepper { display: flex; align-items: center; gap: 6px; }
.step { width: 36px; height: 36px; border-radius: 10px; border: 0; background: #fff; color: var(--ink); font-size: 20px; font-weight: 700; cursor: pointer; }
.step:disabled { opacity: .35; cursor: default; }

/* ---------- アイコンメニュー ---------- */
.icon-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px 4px; }
.icon-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; font-size: 12px; font-weight: 600; color: var(--ink-2); text-align: center; }
.icon-grid .ic { width: 50px; height: 50px; border-radius: 18px; background: var(--bg); display: grid; place-items: center; font-size: 24px; }

/* ---------- フィルター ---------- */
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips + .chips { margin-top: 8px; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; user-select: none; }
.chip input { display: none; }
.chip.active, .chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-row { display: flex; gap: 6px; padding: 14px 20px 0; overflow-x: auto; }
.chip-link { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--bg); text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.chip-link.on { background: var(--ink); color: #fff; }

/* ---------- ランキング ---------- */
.rank { list-style: none; padding: 0; margin: 4px 0 0; }
.rank-item { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rank-item:last-child { border-bottom: 0; }
.rank-no { font-size: 17px; font-weight: 800; color: var(--ink-3); line-height: 1.4; }
.rank-item:nth-child(-n+3) .rank-no { color: var(--brand); }
.rank-name { font-size: 16px; font-weight: 700; text-decoration: none; color: var(--ink); }
.rank-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.rank-price { text-align: right; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; }
.rank-price b { font-size: 16.5px; font-weight: 800; }
.rank-price span { font-size: 11.5px; color: var(--ink-3); }
.rank-price em { margin-top: 4px; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 2px 7px; border-radius: 6px; }
.cmp { margin-top: 6px; font-size: 12px; color: var(--ink-3); display: inline-flex; gap: 4px; align-items: center; cursor: pointer; }
.cmp input { accent-color: var(--brand); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tag { font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--bg); color: var(--ink-2); }
.tag-ko { background: var(--blue-soft); color: var(--blue); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.empty { padding: 28px 0; text-align: center; color: var(--ink-3); }
.btn-more { display: block; width: 100%; height: 48px; margin-top: 8px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; }

/* 比較バー */
.compare-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 76px; z-index: 60; width: min(var(--app-w) - 24px, calc(100% - 24px)); display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.compare-bar[hidden] { display: none; }
.compare-bar span { flex: 1; font-size: 14px; font-weight: 600; }
.compare-bar button { border: 0; border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.compare-bar .go { background: var(--brand); color: #fff; }
.compare-bar .clear { background: transparent; color: #aab; }

/* ---------- モーダル ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.45); }
.modal[hidden] { display: none; }
.sheet { width: 100%; max-width: var(--app-w); max-height: 88vh; overflow: auto; background: #fff; border-radius: 22px 22px 0 0; padding: 22px 20px 28px; }
.sheet h3 { margin: 0 0 14px; font-size: 20px; font-weight: 800; }
.sheet .q { margin: 16px 0 8px; font-weight: 700; }
.sheet .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet .opt { height: 48px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.sheet .opt.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.sheet-actions { display: flex; gap: 8px; margin-top: 20px; }
.sheet-actions .btn { flex: 1; }

/* ---------- 地図 ---------- */
.map { height: 380px; border-radius: 14px; overflow: hidden; background: var(--bg); }
.map-legend { font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.maplibregl-popup-content { border-radius: 12px; padding: 12px 14px; font-family: inherit; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.maplibregl-popup-content b { font-size: 14.5px; }
.maplibregl-popup-content a { color: var(--blue); font-weight: 600; }
.price-pin { background: var(--brand); color: #fff; font-family: inherit; font-size: 11.5px; font-weight: 800; padding: 3px 7px; border-radius: 8px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.25); cursor: pointer; position: relative; }
.price-pin::after { content: ""; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); border: 4px solid transparent; border-top-color: var(--brand); border-bottom: 0; }
.price-pin.ko { background: var(--blue); }
.price-pin.ko::after { border-top-color: var(--blue); }

/* ---------- タイル/カード ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: block; padding: 14px; border-radius: 14px; background: var(--bg); text-decoration: none; color: var(--ink); }
.tile .t { font-weight: 800; font-size: 15.5px; }
.tile .v { font-size: 12.5px; color: var(--ink-2); }
.tile .m { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.tile .go { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--brand); }
.key-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.key-stats div { padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); }
.key-stats span { font-size: 12.5px; color: var(--ink-3); display: block; }
.key-stats b { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.key-stats small { display: block; font-size: 11.5px; color: var(--ink-3); }

.warn-box { padding: 16px; border-radius: 14px; background: var(--warn-soft); }
.warn-box strong { color: var(--warn); }
.warn-box p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); }
.info-box { padding: 16px; border-radius: 14px; background: var(--blue-soft); font-size: 13.5px; color: var(--ink-2); }
.info-box strong { color: var(--blue); }

/* 提携/広告枠 (アフィリエイト) */
.aff { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.aff .emoji { font-size: 34px; }
.aff strong { display: block; font-size: 15px; }
.aff span { font-size: 12.5px; color: var(--ink-3); }
.aff .ad-chip { left: auto; right: 10px; top: 10px; background: var(--line-2); color: var(--ink-3); }

/* 表 */
.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
.tbl th, .tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl thead th { font-size: 12.5px; color: var(--ink-3); font-weight: 600; background: var(--bg); }
.tbl thead th:first-child { border-radius: 8px 0 0 8px; }
.tbl thead th:last-child { border-radius: 0 8px 8px 0; }
.tbl tbody th { font-weight: 700; }
.tbl a { color: var(--blue); text-decoration: none; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.check-list li:last-child { border-bottom: 0; }
.check-list b { display: inline-block; min-width: 84px; color: var(--ink); }

.link-list { display: flex; flex-direction: column; }
.link-list a { display: flex; justify-content: space-between; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 15px; font-weight: 600; }
.link-list a:last-child { border-bottom: 0; }
.link-list span { color: var(--ink-3); font-weight: 500; white-space: nowrap; }

.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 15px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--brand); font-weight: 800; margin-right: 2px; }
.faq summary::after { content: "⌄"; color: var(--ink-3); margin-left: auto; }
.faq[open] summary::after { transform: rotate(180deg); }
.faq > div { padding: 0 0 16px; color: var(--ink-2); font-size: 14.5px; }
.faq > div p { margin: 0 0 6px; }

/* 予約文生成 */
.booking { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.booking label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.booking label.chk { flex-direction: row; align-items: center; gap: 6px; }
.booking input[type=date], .booking select { height: 44px; border-radius: 10px; border: 1px solid var(--line-2); padding: 0 10px; font: inherit; font-size: 15px; background: #fff; }
.booking textarea { grid-column: 1 / -1; border-radius: 12px; border: 1px solid var(--line-2); padding: 12px; font: inherit; font-size: 14px; background: var(--bg); resize: vertical; }
.booking .btn { grid-column: 1 / -1; }

/* ---------- 記事 ---------- */
.article { padding: 16px 20px 24px; }
.article h1 { margin-top: 6px; }
.article .lead { font-size: 16px; color: var(--ink-2); margin: 8px 0 20px; }
.article h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; margin: 32px 0 10px; padding-top: 24px; border-top: 8px solid var(--bg); margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
.article h3 { font-size: 16.5px; font-weight: 800; margin: 22px 0 8px; }
.article p, .article li { font-size: 15.5px; color: var(--ink-2); line-height: 1.75; }
.article ul, .article ol { padding-left: 20px; }
.article .src { font-size: 12.5px; color: var(--ink-3); }
.article .src a { color: var(--ink-3); }
.article .table-wrap { margin: 12px -20px; }
.phrase { border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; margin: 10px 0; }
.phrase .ja { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.phrase .ko { font-size: 13.5px; color: var(--ink-3); margin-top: 4px; }
.phrase button { margin-top: 8px; border: 0; background: var(--bg); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.toc { background: var(--bg); border-radius: 14px; padding: 14px 18px; margin: 16px 0; }
.toc strong { font-size: 14px; }
.toc ol { margin: 6px 0 0; padding-left: 18px; }
.toc li { font-size: 14px; }
.toc a { text-decoration: none; color: var(--ink-2); }

/* ---------- フッター ---------- */
.foot { padding: 28px 20px 24px; background: var(--bg); font-size: 12.5px; color: var(--ink-3); }
.foot-title { font-size: 17px; color: var(--ink); margin: 0 0 14px; font-weight: 800; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 480px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
.foot-col h3 { margin: 0 0 6px; font-size: 13.5px; color: var(--ink-2); }
.foot-col a { display: block; padding: 3px 0; text-decoration: none; color: var(--ink-3); font-size: 13px; }
.foot-legal, .foot-src { line-height: 1.7; }
.foot-links a { text-decoration: none; }

/* ---------- 下部タブバー ---------- */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 55; width: 100%; max-width: var(--app-w); display: grid; grid-template-columns: repeat(5, 1fr); height: 64px; padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--ink-3); text-decoration: none; }
.tabbar span { font-size: 20px; line-height: 1; }

/* ---------- ゲーム ---------- */
.game-wrap { position: relative; }
#game { width: 100%; aspect-ratio: 3 / 4; max-height: 70vh; display: block; border-radius: 16px; background: linear-gradient(#fff6f2, #ffe3d8); touch-action: none; }
.game-ui { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 800; }

/* 波予報 */
.wave-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wave-day { border-radius: 14px; padding: 12px; background: var(--bg); text-align: center; }
.wave-day .d { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.wave-day .lv { font-size: 16px; font-weight: 800; margin: 4px 0; }
.wave-day .h { font-size: 12px; color: var(--ink-2); }
.lv-0 { color: var(--green); } .lv-1 { color: #e3a008; } .lv-2 { color: var(--brand); } .lv-3 { color: var(--warn); }

.city-pin { background: var(--ink); font-size: 12px; padding: 5px 9px; border-radius: 999px; }
.city-pin::after { border-top-color: var(--ink); }
.city-pin b { color: #ffd2c4; }
.city-pin small { margin-left: 2px; background: rgba(255,255,255,.2); border-radius: 999px; padding: 0 5px; font-size: 10.5px; }
.maplibregl-ctrl-attrib.maplibregl-compact { font-size: 10px; }

.ad-banner-brand { font-size: 14px; font-weight: 800; color: #fff; opacity: .95; margin-top: 2px; }
.tag-direct { background: #f3edff; color: #7a4dd8; }

/* ============================================================
   レスポンシブ: SP(〜767) / タブレット(768〜1023) / PC(1024〜)
   ============================================================ */
/* SP・タブレット: 2カラムの箱を外して1列。--o の順に並べる */
.home-grid, .page-grid { display: flex; flex-direction: column; }
.col-main, .col-side, .side-sticky { display: contents; }
.home-grid section, .page-grid section { order: var(--o, 1); }
.gnb-in, .foot-in { display: contents; }
.ad-main { display: block; }

@media (min-width: 768px) and (max-width: 1023px) {
  :root { --app-w: 760px; }
  .grid-2 { grid-template-columns: repeat(3, 1fr); }
  .icon-grid { grid-template-columns: repeat(10, 1fr); }
  .map { height: 440px; }
}

@media (min-width: 1024px) {
  :root { --app-w: 1180px; }
  body { background: var(--bg); }
  .app { max-width: none; background: transparent; box-shadow: none; padding-bottom: 0; }

  /* ヘッダー: ロゴとメニューを1行に */
  .gnb { background: rgba(255,255,255,.97); }
  .gnb-in { display: flex; align-items: center; gap: 36px; max-width: var(--app-w); margin: 0 auto; padding: 0 24px; height: 64px; }
  .gnb-top { padding: 0; height: auto; gap: 12px; }
  .gnb-lang { display: none; }
  .gnb-tabs { padding: 0; gap: 26px; flex: 1; }
  .gnb-tabs a { padding: 21px 0 19px; font-size: 15.5px; }
  .gnb-tabs a:hover { color: var(--ink); }
  .tabbar { display: none; }

  /* 上部広告: バナー + 掲載募集を横並び */
  .top-ad { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: stretch; max-width: var(--app-w); margin: 0 auto; padding: 20px 24px 0; }
  .ad-banner { min-height: 168px; }
  .ad-banner-text { padding: 34px 0 24px 32px; }
  .ad-banner-title { font-size: 28px; }
  .ad-banner-copy { font-size: 14px; }
  .ad-banner-art { width: 220px; }
  .ad-art-stamp { width: 108px; height: 108px; right: 48px; font-size: 13px; }
  .ad-art-stamp b { font-size: 26px; }
  .ad-art-ring { width: 240px; height: 240px; right: -50px; top: -50px; }
  .recruit { margin-top: 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 22px; background: #fff; border: 1px solid var(--line-2); height: calc(100% - 23px); }
  .recruit-emoji { font-size: 28px; }
  .recruit-text strong { font-size: 17px; }
  .recruit-text span { white-space: normal; }
  .recruit-cta { font-size: 14px; }

  /* 本文: 2カラム */
  .main { max-width: var(--app-w); margin: 0 auto; padding: 8px 24px 40px; }
  .home-grid, .page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
  .col-main, .col-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  .side-sticky { display: flex; flex-direction: column; gap: 16px; }
  .page-grid .side-sticky { position: sticky; top: 84px; }
  .home-grid section, .page-grid section { order: 0; }

  /* セクションをカード化 */
  .sec, .hero-card, .home-hero { background: #fff; border: 1px solid var(--line); border-radius: 20px; border-bottom: 1px solid var(--line); padding: 26px 28px; }
  .home-hero { padding: 30px 32px; }
  .home-hero h1 { font-size: 34px; }
  .home-hero h1 br { display: none; }
  .savings { font-size: 26px; }
  .sec-h { font-size: 20px; }
  .table-wrap { margin: 0; padding: 0; }
  .crumb { padding: 16px 4px 12px; }
  .chip-row { padding: 0 0 14px; }
  .page-grid + * { margin-top: 16px; }

  /* サイド列の中身 */
  .col-side .map { height: 420px; }
  .col-side .icon-grid { grid-template-columns: repeat(5, 1fr); }
  .col-side .grid-2 { grid-template-columns: 1fr 1fr; }
  .col-side .key-stats b { font-size: 18px; }

  /* ランキングを広く */
  .rank-item { grid-template-columns: 34px 1fr auto; padding: 18px 4px; border-radius: 12px; }
  .rank-item:hover { background: var(--bg); }
  .rank-name { font-size: 17px; }
  .rank-price b { font-size: 18px; }

  /* 単独ページ(価格まとめ・記事など)は読みやすい幅で中央に */
  .main > .sec, .main > .hero-card, .main > .article { max-width: 880px; margin-left: auto; margin-right: auto; }
  .main > .sec + .sec, .main > .hero-card + .sec { margin-top: 16px; }
  .main > .crumb { max-width: 880px; margin: 0 auto; }
  .main:has(.page-grid) > .crumb, .main:has(.page-grid) > .chip-row { max-width: none; }
  .page-grid ~ .sec, .main > .page-grid { max-width: none; }
  .article { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px 48px 40px; margin-top: 4px; }
  .article h1 { font-size: 32px; }
  .article h2 { margin-left: -48px; margin-right: -48px; padding-left: 48px; padding-right: 48px; border-top-width: 1px; border-top-color: var(--line); }
  .article .table-wrap { margin: 12px 0; }

  /* フッター */
  .foot { margin-top: 24px; background: #fff; border-top: 1px solid var(--line); }
  .foot-in { display: block; max-width: var(--app-w); margin: 0 auto; padding: 16px 24px 8px; }
  .foot-cols { grid-template-columns: repeat(4, 1fr); gap: 24px; }

  /* 比較バー・モーダル */
  .compare-bar { bottom: 24px; width: 520px; }
  .modal { align-items: center; }
  .sheet { max-width: 560px; border-radius: 22px; }
  html { scroll-padding-top: 90px; }
}

/* ---- PC 微調整 ---- */
@media (min-width: 1024px) {
  .logo { font-size: 24px; }
  .gnb-in { gap: 44px; }
  /* ヒーローを全幅に: 左に見出し、右に用量ボックス */
  .home-hero { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 36px; align-items: center; margin-bottom: 20px; padding: 36px 40px; }
  .home-hero .dose-box { margin-top: 0; padding: 22px 24px; }
  .home-hero .quick-row { flex-wrap: wrap; overflow: visible; }
  .home-hero h1 { font-size: 38px; }
  .savings { font-size: 28px; margin-top: 14px; }
  .basis { max-width: 560px; margin-top: 4px; }
  /* 掲載募集カード: 中央寄せでボタン付き */
  .recruit { justify-content: center; gap: 10px; background: linear-gradient(160deg, #fff 0%, var(--brand-soft) 100%); border-color: #ffe1d6; }
  .recruit-cta { margin-top: 6px; background: var(--brand); color: #fff; padding: 9px 16px; border-radius: 10px; }
  .recruit:hover .recruit-cta { background: var(--brand-dark); }
  /* サイド列を少し広く */
  .home-grid { grid-template-columns: minmax(0, 1fr) 400px; }
  .col-side .map { height: 460px; }
  .ad-sponsor { margin-top: 8px; }
}

/* クリニック名=公式サイト / 金額リンク */
.rank-name .ext { font-style: normal; font-size: 12px; color: var(--ink-3); margin-left: 3px; }
.rank-name:hover { text-decoration: underline; }
.detail-link { color: var(--blue); text-decoration: none; font-weight: 600; white-space: nowrap; }
.price-link { text-decoration: none; color: inherit; border-radius: 10px; padding: 4px 6px; margin: -4px -6px; }
.price-link:hover { background: var(--brand-soft); }
.go-site { margin-top: 4px; font-size: 11.5px; font-weight: 700; color: var(--brand); }

/* 画像バナー / 背景画像バナー */
.ad-banner.is-image { display: block; min-height: 0; background: #1c2544; }
.ad-img img { display: block; width: 100%; height: auto; }
.ad-banner.has-bg { background: linear-gradient(90deg, rgba(20,26,49,.88) 0%, rgba(20,26,49,.55) 55%, rgba(20,26,49,0) 100%), var(--ad-bg-sp) center / cover no-repeat; }
.ad-banner.has-bg .ad-banner-art { visibility: hidden; }
@media (min-width: 1024px) {
  .ad-banner.has-bg { background: linear-gradient(90deg, rgba(20,26,49,.88) 0%, rgba(20,26,49,.5) 50%, rgba(20,26,49,0) 80%), var(--ad-bg) center / cover no-repeat; }
}

/* ============ 広告バナー v2 (韓国のディスプレイ広告風) ============ */
.ad-banner.ad2 {
  display: flex; align-items: stretch; min-height: 168px; color: #1b1f3b;
  background: radial-gradient(120% 160% at 100% 100%, #e7e2ff 0%, rgba(231,226,255,0) 55%),
              linear-gradient(115deg, #fff6f1 0%, #ffe6ee 55%, #ffd9e4 100%);
  border: 1px solid #ffd9cf; box-shadow: 0 10px 28px rgba(255, 90, 54, .16);
}
.ad2 .ad-chip { background: rgba(27,31,59,.55); }
.ad2 .ad-count { background: rgba(27,31,59,.35); }
.ad2-text { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 34px 0 18px 18px; position: relative; z-index: 2; min-width: 0; }
.ad2-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.ad2-badges b { font-size: 10.5px; font-weight: 800; padding: 3px 7px; border-radius: 6px; background: #fff; color: var(--brand); box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.ad2-badges b:first-child { background: var(--brand); color: #fff; }
.ad2-brand { margin-top: 4px; font-size: 12px; font-weight: 700; color: #6b6f86; letter-spacing: -0.01em; }
.ad2-head { font-size: 23px; line-height: 1.22; font-weight: 900; letter-spacing: -0.045em; }
.ad2-head em { font-style: normal; color: var(--brand); background: linear-gradient(transparent 62%, #ffd2c4 62%); }
.ad2-copy { font-size: 12px; color: #4e5268; }
.ad2-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ad2-cta { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 4px 12px rgba(255,90,54,.35); }
.ad2-cta i { font-style: normal; font-size: 16px; line-height: 1; }
.ad2-cta::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: adShine 3.2s ease-in-out infinite; }
@keyframes adShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.ad2-price { font-size: 12px; color: #4e5268; font-weight: 600; }
.ad2-price b { font-size: 15px; color: #1b1f3b; font-weight: 900; }
.ad2-art { position: relative; width: 128px; flex: none; }
.ad2-blob { position: absolute; right: -30px; bottom: -40px; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #ffb8a3, #ff7a5c); opacity: .9; }
.ad2-phone { position: absolute; right: 14px; bottom: -22px; width: 92px; filter: drop-shadow(0 10px 18px rgba(27,31,59,.28)); transform: rotate(8deg); animation: adFloat 4s ease-in-out infinite; }
@keyframes adFloat { 0%, 100% { transform: rotate(8deg) translateY(0); } 50% { transform: rotate(8deg) translateY(-5px); } }
.ad2-chip { position: absolute; z-index: 3; font-size: 10.5px; font-weight: 800; padding: 4px 8px; border-radius: 999px; background: #fff; color: #1b1f3b; box-shadow: 0 4px 12px rgba(27,31,59,.15); white-space: nowrap; }
.ad2-chip.c1 { right: 64px; top: 44px; }
.ad2-chip.c2 { right: 6px; top: 92px; color: var(--green); }
.ad2-spark { position: absolute; color: #fff; font-size: 14px; text-shadow: 0 0 8px rgba(255,255,255,.9); }
.ad2-spark.s1 { right: 104px; top: 96px; }
.ad2-spark.s2 { right: 10px; top: 38px; font-size: 11px; }
@media (max-width: 360px) { .ad2-head { font-size: 20px; } .ad2-art { width: 104px; } .ad2-chip.c1 { display: none; } }
@media (min-width: 1024px) {
  .ad-banner.ad2 { min-height: 184px; }
  .ad2-text { padding: 36px 0 24px 32px; gap: 6px; }
  .ad2-badges b { font-size: 12px; padding: 4px 9px; }
  .ad2-brand { font-size: 13.5px; }
  .ad2-head { font-size: 34px; }
  .ad2-head br { display: none; }
  .ad2-head em { margin-right: 8px; }
  .ad2-copy { font-size: 14px; }
  .ad2-cta { font-size: 15px; padding: 10px 20px; }
  .ad2-price { font-size: 13.5px; }
  .ad2-price b { font-size: 18px; }
  .ad2-art { width: 300px; }
  .ad2-blob { width: 300px; height: 300px; right: -40px; bottom: -110px; }
  .ad2-phone { width: 116px; right: 72px; bottom: -40px; }
  .ad2-chip { font-size: 12.5px; padding: 6px 11px; }
  .ad2-chip.c1 { right: 178px; top: 48px; }
  .ad2-chip.c2 { right: 22px; top: 70px; }
  .ad2-spark.s1 { right: 190px; top: 110px; font-size: 18px; }
  .ad2-spark.s2 { right: 40px; top: 30px; }
}

/* ChatGPT背景画像 + 白文字 (ad2.has-bg) */
.ad-banner.ad2.has-bg {
  color: #fff; border: 0; min-height: 180px;
  background: linear-gradient(100deg, #ff7a45 0%, #ff5d6c 40%, #ff4f8b 70%, #c45ce0 100%);
  box-shadow: 0 10px 28px rgba(255, 70, 120, .28);
}
.ad-banner.ad2.has-bg::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 62%; z-index: 0;
  background: var(--ad-bg) 72% 42% / auto 135% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
}
.ad2.has-bg .ad2-art { visibility: hidden; }
.ad2.has-bg .ad2-text { max-width: 60%; }
.ad2.has-bg .ad2-brand { color: rgba(255,255,255,.92); }
.ad2.has-bg .ad2-head { text-shadow: 0 2px 10px rgba(120, 10, 50, .25); }
.ad2.has-bg .ad2-head em { color: #fff36b; background: none; }
.ad2.has-bg .ad2-copy { color: rgba(255,255,255,.95); }
.ad2.has-bg .ad2-badges b { background: rgba(255,255,255,.22); color: #fff; box-shadow: none; }
.ad2.has-bg .ad2-badges b:first-child { background: #fff; color: #ff4f6a; }
.ad2.has-bg .ad2-cta { background: #fff; color: #ff4060; box-shadow: 0 6px 16px rgba(120, 10, 50, .25); }
.ad2.has-bg .ad2-cta::after { background: linear-gradient(90deg, transparent, rgba(255,90,120,.25), transparent); }
.ad2.has-bg .ad2-price { color: rgba(255,255,255,.95); }
.ad2.has-bg .ad2-price b { color: #fff36b; }
.ad2.has-bg .ad-chip { background: rgba(0,0,0,.3); }
@media (max-width: 1023px) {
  .ad-banner.ad2.has-bg::before { width: 66%; background-size: auto 112%; background-position: 82% 45%; }
  .ad2.has-bg .ad2-text { max-width: 60%; }
  .ad2.has-bg .ad2-badges b:nth-child(3) { display: none; }
  .ad2.has-bg .ad2-copy { text-shadow: 0 1px 6px rgba(150,20,60,.45); }
}
@media (min-width: 1024px) {
  .ad-banner.ad2.has-bg { min-height: 200px; }
  .ad-banner.ad2.has-bg::before { width: 52%; background-size: auto 112%; background-position: 85% 45%; }
}
