


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 27px; -webkit-font-smoothing: antialiased; padding-bottom: 76px; }
a { color: var(--brand-strong); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding-left: 1.4em; }
button { font: inherit; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-4); }
.section { padding: var(--space-7) 0; }
.band-mint { background: var(--band); }
.band-grey { background: var(--band-grey); }
.band-yellow { background: var(--band-yellow); }
.band-soft { background: var(--surface-soft); }
.stack { display: flex; flex-direction: column; gap: var(--space-3); }
.muted { color: var(--ink-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 900px) { .section { padding: 80px 0; } }

/* 画像プレースホルダー（グレー四角）。本番では <img> に置き換える */
.ph { background: var(--photo); position: relative; overflow: hidden; }
.ph::after { content: attr(data-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #6b7573; letter-spacing: .04em; }
.ph-16x9 { aspect-ratio: 16 / 9; }
.ph-4x3 { aspect-ratio: 4 / 3; }
.ph-1x1 { aspect-ratio: 1 / 1; }
.ph-3x1 { aspect-ratio: 3 / 1; }
.ph-round { border-radius: 50%; }
.ph-r { border-radius: 4px; }

/* type */
.t-display { font-size: 30px; line-height: 40px; font-weight: 800; letter-spacing: .01em; }
.t-h1 { font-size: 26px; line-height: 36px; font-weight: 800; }
.t-h2 { font-size: 22px; line-height: 30px; font-weight: 800; }
.t-h3 { font-size: 17px; line-height: 25px; font-weight: 700; }
.t-body-sm { font-size: 14px; line-height: 23px; }
.t-label { font-size: 13px; line-height: 18px; font-weight: 700; }
.t-caption { font-size: 12px; line-height: 18px; color: var(--ink-muted); }
.mark { background: linear-gradient(transparent 62%, var(--cta-soft) 62%); padding: 0 2px; }
.pop { color: var(--pop-strong); }
@media (min-width: 900px) { .t-display { font-size: 40px; line-height: 52px; } .t-h1 { font-size: 32px; line-height: 44px; } .t-h2 { font-size: 26px; line-height: 36px; } }

/* セクション見出し：英字の小ラベル＋太い日本語。枠・丸なし */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-5); }
@media (min-width: 900px) { .sec-head { margin-bottom: var(--space-6); } }
.sec-head .kicker { display: block; font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: .12em; color: var(--brand-strong); text-transform: uppercase; margin-bottom: 4px; }
.sec-head .more { font-size: 14px; font-weight: 700; white-space: nowrap; color: var(--brand-strong); text-decoration: none; }
.sec-head .more::after { content: " ›"; }

/* Button */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: var(--control-h); padding: 0 var(--space-5); border-radius: var(--radius-pill); border: 0; font-size: 16px; line-height: 24px; font-weight: 800; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-cta { background: var(--cta); color: var(--ink); }
.btn-cta:hover { background: var(--cta-hover); }
.btn-primary { background: var(--brand-strong); color: var(--ink-on-brand); }
.btn-primary:hover { background: var(--brand-ink); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--brand-strong); box-shadow: inset 0 0 0 2px var(--brand); }
.btn-secondary:hover { background: var(--surface-soft); }
.btn-ghost { background: transparent; color: var(--brand-strong); padding: 0 var(--space-3); text-decoration: underline; text-underline-offset: 3px; }
.btn-sm { height: var(--control-h-sm); padding: 0 var(--space-4); font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.btn[aria-disabled="true"], .btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* Header */
.header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.header-inner { height: 60px; display: flex; align-items: center; gap: var(--space-4); }
.logo { font-size: 20px; line-height: 24px; font-weight: 800; color: var(--brand-ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo i { display: inline-block; width: 28px; height: 28px; background: var(--brand-strong); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.logo small { display: block; font-size: 10px; line-height: 12px; font-weight: 400; color: var(--ink-muted); }
.header nav { display: none; gap: var(--space-5); margin-left: var(--space-5); }
.header nav a { font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.iconbtn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); background: none; border: 0; }
@media (min-width: 900px) { .header nav { display: flex; } .header .iconbtn { display: none; } }

/* Hero：暖色の帯＋大きな写真（グレー） */
.hero { background: var(--band-grey); padding: var(--space-6) 0 var(--space-7); }
.hero-grid { display: grid; gap: var(--space-4); }
.hero-copy { display: flex; flex-direction: column; gap: var(--space-4); }
.hero-copy .lead { font-size: 15px; line-height: 25px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; font-weight: 700; color: var(--brand-strong); }
.hero-count { display: flex; align-items: baseline; gap: 6px; }
.hero-count b { font-family: var(--font-num); font-size: 44px; line-height: 48px; font-weight: 800; color: var(--pop); }
@media (min-width: 900px) { .hero { padding: 96px 0; } .hero-grid { grid-template-columns: 1fr 1.15fr; align-items: center; gap: var(--space-7); } .hero-copy .lead { font-size: 17px; line-height: 29px; } }

/* 検索バー（平らな白い帯、角丸なし） */
.searchbar { background: var(--surface); border: 2px solid var(--brand); padding: var(--space-4); display: grid; gap: var(--space-3); }
@media (min-width: 900px) { .searchbar { padding: var(--space-5) var(--space-6); } }
.searchbar .row { display: grid; gap: var(--space-2); }
.searchbar label.fld { display: grid; grid-template-columns: 76px 1fr; align-items: center; font-size: 13px; font-weight: 800; }
.searchbar select, .searchbar input[type="search"] { height: 44px; border: 0; border-bottom: 2px solid var(--border); background: transparent; color: var(--ink); font: inherit; font-size: 16px; min-width: 0; appearance: none; -webkit-appearance: none; padding: 0 4px; }
.searchbar select { background-image: linear-gradient(45deg, transparent 50%, var(--brand-strong) 50%), linear-gradient(135deg, var(--brand-strong) 50%, transparent 50%); background-position: calc(100% - 14px) 19px, calc(100% - 8px) 19px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 28px; }
.searchbar input::placeholder { color: var(--ink-subtle); }
.searchbar .checks { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.check { display: inline-flex; align-items: center; gap: 6px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand-strong); margin: 0; }
@media (min-width: 900px) { .searchbar .row { grid-template-columns: 1fr 1fr 1fr; } }

/* 横スクロールのバナー列（キャンペーン・特集） */
.banners { display: flex; gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.banners > * { flex: 0 0 78%; scroll-snap-align: start; }
.banner { text-decoration: none; color: var(--ink); display: block; }
.banner .ph { aspect-ratio: 2 / 1; }
.banner-title { font-size: 14px; font-weight: 800; line-height: 20px; margin-top: 8px; }
@media (min-width: 900px) { .banners { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; } .banners > * { flex: auto; } }

/* 道筋：写真＋文字。枠なし */
.routes { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5) var(--space-4); }
.route { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.route .ph { aspect-ratio: 4 / 3; }
.route-name { font-size: 15px; line-height: 22px; font-weight: 800; }
.route-who { font-size: 12px; line-height: 17px; color: var(--ink-muted); }
.route[aria-current="page"] .ph { outline: 3px solid var(--brand); outline-offset: -3px; }
@media (min-width: 900px) { .routes { grid-template-columns: repeat(3, 1fr); gap: var(--space-6) var(--space-5); } }
@media (min-width: 1100px) { .routes { grid-template-columns: repeat(6, 1fr); gap: var(--space-6) var(--space-4); } }
/* 道筋ごとの印（小さな色の四角。枠や背景には使わない） */
.dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: 1px; }
.dot-raise { background: var(--route-raise); } .dot-change { background: var(--route-change); } .dot-side { background: var(--route-side); }
.dot-home { background: var(--route-home); } .dot-rejoin { background: var(--route-rejoin); } .dot-second { background: var(--route-second); }

/* ランキング */
.rank-list { display: grid; gap: var(--space-2); }
.rank { display: grid; grid-template-columns: 36px 88px 1fr; gap: var(--space-4); align-items: center; text-decoration: none; color: var(--ink); padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.rank-no { font-family: var(--font-num); font-size: 32px; line-height: 32px; font-weight: 800; color: var(--pop); }
.rank .ph { aspect-ratio: 1 / 1; }
.rank-title { font-size: 16px; line-height: 23px; font-weight: 800; }
.rank-tags { font-size: 12px; line-height: 18px; color: var(--brand-strong); font-weight: 700; }
.rank-fig { font-size: 13px; line-height: 19px; color: var(--ink-muted); }
.rank-fig b { color: var(--ink); font-size: 15px; }
@media (min-width: 900px) { .rank-list { grid-template-columns: repeat(2, 1fr); gap: var(--space-4) var(--space-6); } }

/* 講座カード：写真＋テキスト。背景・影・枠なし */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-4); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); gap: var(--space-7) var(--space-5); } }
.card { display: flex; flex-direction: column; gap: 10px; }
.card[hidden] { display: none; }
.card .ph { aspect-ratio: 4 / 3; }
.card-tags { font-size: 12px; line-height: 17px; color: var(--brand-strong); font-weight: 700; }
.card-title { font-size: 15px; line-height: 22px; font-weight: 800; }
.card-title a { color: inherit; text-decoration: none; }
.card-desc { font-size: 13px; line-height: 20px; color: var(--ink-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-fig { font-size: 13px; line-height: 19px; }
.card-fig b { font-size: 16px; }
.card-fig .sep { color: var(--border-strong); margin: 0 6px; }
.card-pr { font-size: 11px; line-height: 14px; color: var(--ink-muted); }
.card-pr .pr { display: inline-block; border: 1px solid var(--border-strong); padding: 0 4px; margin-right: 6px; }
.flag { display: inline-block; font-size: 11px; line-height: 16px; font-weight: 800; padding: 1px 6px; color: var(--pop-strong); background: var(--accent-soft); margin-right: 4px; }
.flag-sample { background: var(--warning-soft); color: var(--warning); }
.flag-ok { background: var(--brand-soft); color: var(--brand-strong); }

/* 状況タグ（絞り込み）：文字＋下線の切替 */
.tags { display: flex; flex-wrap: wrap; gap: 4px var(--space-4); }
.tag { background: none; border: 0; padding: 6px 0; font-size: 14px; font-weight: 700; color: var(--ink-muted); cursor: pointer; border-bottom: 3px solid transparent; text-decoration: none; }
.tag.is-on, .tag[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--brand); }

/* 診断の帯 */
.diag { background: var(--band-yellow); color: var(--ink); padding: var(--space-7) 0; }
@media (min-width: 900px) { .diag { padding: 80px 0; } }
.diag-inner { display: grid; gap: var(--space-4); align-items: center; }
.diag-kicker { font-size: 13px; font-weight: 800; letter-spacing: .08em; background: var(--brand-strong); color: #fff; display: inline-block; align-self: flex-start; padding: 2px 10px; }
.diag-title { font-size: 26px; line-height: 36px; font-weight: 800; }
.diag p { color: var(--ink); }
.diag-steps b { color: var(--pop); }
.diag-steps { display: flex; gap: var(--space-4); flex-wrap: wrap; font-size: 14px; font-weight: 700; }
.diag-steps b { font-family: var(--font-num); font-size: 22px; margin-right: 4px; }
@media (min-width: 900px) { .diag-inner { grid-template-columns: 1fr auto; } .diag-title { font-size: 34px; line-height: 46px; } }

/* 固定CTA */
.stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--border); padding: var(--space-2) var(--space-4); display: flex; gap: var(--space-2); }
.stickybar .btn { flex: 1; padding: 0 var(--space-3); }
@media (min-width: 900px) { .stickybar { display: none; } body { padding-bottom: 0; } }

/* 広告表示・出典 */
.disclosure { font-size: 12px; line-height: 18px; color: var(--ink-muted); display: flex; flex-direction: column; gap: 4px; }
.disclosure strong { color: var(--ink); }
.disclosure-row { display: flex; gap: 8px; align-items: flex-start; }
.disclosure-box { background: var(--surface-soft); padding: var(--space-3) var(--space-4); }
.disclosure .pr { display: inline-block; border: 1px solid var(--border-strong); padding: 0 6px; font-weight: 700; color: var(--ink); white-space: nowrap; }

/* Footer */
.footer { background: var(--band-grey); color: var(--ink); padding: var(--space-6) 0; margin-top: var(--space-7); border-top: 4px solid var(--brand); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); font-size: 14px; font-weight: 700; }
.footer-links a { color: var(--brand-strong); text-decoration: none; }

/* 詳細ページ */
.page-head { padding: var(--space-5) 0 var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.breadcrumb { font-size: 12px; line-height: 18px; color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: 4px; padding: var(--space-3) 0 0; }
.breadcrumb a { color: var(--ink-muted); }
.prose { display: flex; flex-direction: column; gap: var(--space-4); }
.prose h2 { font-size: 20px; line-height: 30px; font-weight: 800; display: flex; align-items: center; gap: 10px; margin-top: var(--space-3); }
.prose h2::before { content: ""; width: 8px; height: 24px; background: var(--brand); flex: 0 0 auto; }
.prose ul { display: flex; flex-direction: column; gap: 6px; }
.figures-lg { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 2px solid var(--brand); border-bottom: 2px solid var(--brand); }
.figures-lg .figure { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.figures-lg .figure:last-child { border-bottom: 0; }
.figure-key { font-size: 14px; font-weight: 700; }
.figure-val { font-family: var(--font-num); font-size: 26px; line-height: 32px; font-weight: 800; color: var(--pop); text-align: right; }
.figure-note { grid-column: 1 / -1; font-size: 12px; line-height: 18px; color: var(--ink-muted); }
.detail-grid { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } .detail-side { position: sticky; top: 76px; } }
.notice { background: var(--band-yellow); color: var(--warning); padding: var(--space-3) var(--space-4); font-size: 14px; line-height: 23px; font-weight: 700; }
.result-count { font-size: 14px; color: var(--ink-muted); }
.result-count b { font-family: var(--font-num); font-size: 22px; color: var(--pop); margin-right: 2px; }
.empty { padding: var(--space-5) var(--space-4); text-align: center; color: var(--ink-muted); background: var(--surface-soft); }
.steps { display: grid; gap: var(--space-3); counter-reset: s; padding: 0; }
.steps li { list-style: none; display: flex; gap: var(--space-3); align-items: flex-start; }
.steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--font-num); font-size: 24px; line-height: 28px; font-weight: 800; color: var(--pop); flex: 0 0 40px; }
.cta-box { background: var(--band-yellow); padding: var(--space-5) var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }

/* 診断（質問） */
.quiz { display: flex; flex-direction: column; gap: var(--space-5); }
.quiz fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.quiz legend { font-weight: 800; font-size: 18px; margin-bottom: var(--space-3); display: flex; gap: 8px; align-items: center; }
.quiz legend b { font-family: var(--font-num); color: var(--brand-strong); font-size: 24px; }
.quiz .opt { display: flex; align-items: center; gap: 12px; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); cursor: pointer; }
.quiz .opt:has(input:checked) { background: var(--band-yellow); font-weight: 700; }
.quiz .opt input { accent-color: var(--brand-strong); width: 20px; height: 20px; margin: 0; }
.quiz fieldset.is-missing legend::after { content: "選んでください"; font-size: 13px; color: var(--pop-strong); margin-left: 8px; }
.quiz fieldset.is-missing .opt { border-bottom-color: var(--pop); }
.quiz-result { margin-top: var(--space-7); padding-top: var(--space-7); border-top: 1px solid var(--border); gap: var(--space-5); }
.quiz-result .routes { margin-bottom: var(--space-4); }
@media (min-width: 900px) { .quiz-result { margin-top: 80px; padding-top: 80px; } }

/* WordPress 向け追加 */
.ph-img { width: 100%; height: auto; object-fit: cover; display: block; border-radius: 4px; }
img.ph-4x3 { aspect-ratio: 4 / 3; } img.ph-16x9 { aspect-ratio: 16 / 9; } img.ph-1x1 { aspect-ratio: 1 / 1; } img.ph-3x1 { aspect-ratio: 3 / 1; }
.card .ph-img { aspect-ratio: 4 / 3; }
.route .ph-img { aspect-ratio: 4 / 3; }
.rank .ph-img { aspect-ratio: 1 / 1; }
.entry-content { display: flex; flex-direction: column; gap: var(--space-4); }
.entry-content h2 { font-size: 20px; line-height: 30px; font-weight: 800; display: flex; align-items: center; gap: 10px; margin-top: var(--space-3); }
.entry-content h2::before { content: ""; width: 8px; height: 24px; background: var(--brand); flex: 0 0 auto; }
.entry-content h3 { font-size: 17px; line-height: 26px; font-weight: 800; }
.entry-content img { border-radius: 4px; }
.entry-content ul, .entry-content ol { display: flex; flex-direction: column; gap: 6px; }
.entry-content a { color: var(--brand-strong); }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: var(--space-6); }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--border); color: var(--ink); text-decoration: none; font-weight: 700; }
.pagination .page-numbers.current { background: var(--brand-strong); color: #fff; border-color: var(--brand-strong); }
.post-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.post-card .ph, .post-card .ph-img { aspect-ratio: 16 / 9; }
.post-card .post-title { font-size: 16px; line-height: 24px; font-weight: 800; }
.post-card .post-meta { font-size: 12px; color: var(--ink-muted); }
.posts { display: grid; grid-template-columns: 1fr; gap: var(--space-5) var(--space-4); }
@media (min-width: 640px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; } .skip-link:focus { left: 8px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }
.qual-list { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 640px) { .qual-list { grid-template-columns: repeat(2, 1fr); } }
.qual-item { display: grid; grid-template-columns: 88px 1fr; gap: var(--space-3); align-items: center; text-decoration: none; color: var(--ink); padding-bottom: var(--space-3); border-bottom: 1px solid var(--border); }
.qual-item .ph, .qual-item .ph-img { aspect-ratio: 1 / 1; }
.qual-item .t { font-weight: 800; font-size: 16px; line-height: 23px; }
.qual-item .s { font-size: 12px; color: var(--ink-muted); }
