/* SAKE LOG — 生成り（paper）の地に、藍の文字リンクと琥珀のアクセント。メディアらしく画像主導・太いゴシック見出し */
:root {
  --bg: #f7f3ec;
  --surface: #fffdf9;
  --ink: #1f1b16;
  --ink-2: #625a50;
  --line: #e4dccf;
  --accent: #2d4a6b;      /* 藍 */
  --accent-ink: #ffffff;
  --gold: #a87a2f;        /* 琥珀（ロゴの金） */
  --gold-bright: #d6b064;
  --tint: #efe8dc;
  --sumi: #1c1813;        /* アプリ帯（両テーマ共通の墨色） */
  --sumi-ink: #f5efe4;
  --sumi-sub: #b9ad9a;
  /* 記事内イラスト用（Claude Docs と同じ変数名） */
  --cds-text-primary: var(--ink);
  --cds-text-secondary: var(--ink-2);
  --cds-chart-axis: #a99d8c;
  --cds-chart-grid: #d8cfc1;
  --cds-chart-categorical-1: #2d4a6b;
  --cds-chart-categorical-2: #b4552d;
  --cds-chart-categorical-3: #c9a24a;
  --cds-chart-categorical-4: #5f8a6a;
  --cds-chart-categorical-5: #8a6a9c;
  --cds-chart-status-good: #4f8a4a;
  --cds-chart-reference-tint: #fffdf9;
  --sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  --mincho: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  --radius: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16140f; --surface: #1f1c16; --ink: #ede6da; --ink-2: #b3a998; --line: #34302a;
    --accent: #8fb0d6; --accent-ink: #12161c; --gold: #d6b064; --gold-bright: #e2c27e; --tint: #262219;
    --sumi: #0f0d0a;
    --cds-chart-axis: #7d7365; --cds-chart-grid: #3d382f;
    --cds-chart-categorical-1: #8fb0d6; --cds-chart-categorical-2: #e08a62;
    --cds-chart-categorical-3: #d9b860; --cds-chart-categorical-4: #8dbb98;
    --cds-chart-categorical-5: #b69cc6; --cds-chart-status-good: #7fbf78; --cds-chart-reference-tint: #1f1c16;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #16140f; --surface: #1f1c16; --ink: #ede6da; --ink-2: #b3a998; --line: #34302a;
  --accent: #8fb0d6; --accent-ink: #12161c; --gold: #d6b064; --gold-bright: #e2c27e; --tint: #262219;
  --sumi: #0f0d0a;
  --cds-chart-axis: #7d7365; --cds-chart-grid: #3d382f;
  --cds-chart-categorical-1: #8fb0d6; --cds-chart-categorical-2: #e08a62;
  --cds-chart-categorical-3: #d9b860; --cds-chart-categorical-4: #8dbb98;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.85; letter-spacing: .02em; font-feature-settings: "palt" 0; }
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.4; letter-spacing: .01em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap, .wrap-wide { width: 100%; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: calc(720px + 32px); }
.wrap-wide { max-width: calc(1120px + 32px); }

/* ---------- 共通パーツ ---------- */
.kicker { display: inline-flex; gap: 10px; align-items: center; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; color: var(--gold); margin: 0; }
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.meta { color: var(--ink-2); font-size: 12.5px; letter-spacing: .04em; }
.lede { color: var(--ink-2); font-size: 15.5px; line-height: 1.85; }
.button { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); text-decoration: none; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; letter-spacing: .04em; white-space: nowrap; transition: filter .15s, transform .15s; }
.button:hover { filter: brightness(1.08); }
.button:active { transform: translateY(1px); }
.button-sm { padding: 8px 16px; font-size: 13px; }
.button-gold { background: var(--gold-bright); color: #1c1813; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 21px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.section-head h2::before { content: ""; width: 4px; height: 1.05em; background: var(--gold); border-radius: 2px; }
.section-head a { font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.section-head a::after { content: " ›"; }

/* ---------- ヘッダー ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; max-width: calc(1120px + 32px); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo-mark { display: block; width: 22px; color: var(--gold); }
.logo-mark svg { display: block; width: 100%; height: auto; }
.logo-type { font-weight: 900; font-size: 19px; letter-spacing: .18em; }
.chips { border-top: 1px solid var(--line); }
.chips-inner { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; max-width: calc(1120px + 32px); scrollbar-width: none; }
.chips-inner::-webkit-scrollbar { display: none; }
.chips a { flex: none; font-size: 13px; font-weight: 700; color: var(--ink-2); text-decoration: none; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.chips a:hover { color: var(--ink); border-color: var(--ink-2); }
.chips a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- サムネイル ---------- */
.thumb { display: flex; flex-direction: column; gap: 12px; color: var(--ink); text-decoration: none; min-width: 0; }
.thumb-img, .feature-img, .article-hero { display: block; aspect-ratio: 16 / 9; width: 100%; max-width: 100%; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.thumb-img img, .feature-img img, .article-hero img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.thumb:hover .thumb-img img, .feature:hover .feature-img img { transform: scale(1.03); }
.thumb-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.thumb-title { font-weight: 700; font-size: 16px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.thumb:hover .thumb-title { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px 20px; }
.thumb-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.no-image { background: linear-gradient(135deg, var(--tint), var(--line)); }

/* ---------- トップ ---------- */
.top-feature { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 36px; padding-top: 28px; padding-bottom: 8px; }
.feature { display: flex; flex-direction: column; gap: 16px; color: var(--ink); text-decoration: none; min-width: 0; }
.feature-img { border-radius: 16px; }
.feature-body { display: flex; flex-direction: column; gap: 8px; }
.feature-title { font-size: clamp(23px, 3vw, 30px); font-weight: 900; line-height: 1.4; }
.feature:hover .feature-title { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.feature-desc { color: var(--ink-2); font-size: 15px; }
.feature-side { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.side-title { margin: 0 0 6px; font-size: 14px; font-weight: 900; letter-spacing: .14em; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.thumb-row-item { flex-direction: row; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.thumb-row-item .thumb-img { flex: none; width: 128px; border-radius: 8px; }
.thumb-row-item .thumb-title { font-size: 14.5px; -webkit-line-clamp: 3; }
.thumb-row-item .meta { display: none; }
.shelf { margin-top: 56px; }

/* ---------- アプリ帯 ---------- */
.app-band { margin-top: 72px; background: var(--sumi); color: var(--sumi-ink); }
.app-band-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; padding-block: 40px; max-width: calc(1120px + 32px); }
.app-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 0 0 1px rgba(214,176,100,.35); }
.app-copy .kicker { color: var(--gold-bright); }
.app-title { margin: 6px 0 4px; font-size: clamp(20px, 2.6vw, 26px); font-weight: 900; line-height: 1.45; }
.app-text { margin: 0; color: var(--sumi-sub); font-size: 14.5px; }

/* ---------- 一覧 ---------- */
.page-head { padding-top: 40px; max-width: calc(1120px + 32px); }
.page-head h1 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 900; margin: 6px 0 8px; }
.page-head .lede { max-width: 38em; }
.shelf.wrap { max-width: calc(1120px + 32px); }

/* ---------- 記事 ---------- */
.progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 3px; z-index: 40; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }
.article-head { padding-top: 36px; padding-bottom: 28px; }
.article-head .kicker span { color: var(--ink-2); font-weight: 500; }
.article-head h1 { font-size: clamp(27px, 4.6vw, 40px); font-weight: 900; line-height: 1.38; margin: 12px 0 14px; }
.article-head .lede { margin: 0 0 14px; font-size: 16px; }
.article-hero { max-width: 1040px; margin: 0 auto; border-radius: 16px; }
.article-body { padding-top: 36px; }
.toc { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 8px; }
.toc-title { margin: 0 0 6px; font-size: 13px; font-weight: 900; letter-spacing: .12em; color: var(--gold); }
.toc ol { margin: 0; padding-left: 1.4em; font-size: 14.5px; line-height: 1.8; }
.toc li::marker { color: var(--ink-2); font-weight: 700; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
.prose { font-size: 17px; line-height: 2; }
.prose h2 { font-size: clamp(21px, 3vw, 25px); font-weight: 900; margin: 2.6em 0 .7em; padding-top: 18px; border-top: 2px solid var(--ink); position: relative; }
.prose h2::before { content: ""; position: absolute; top: -2px; left: 0; width: 64px; height: 2px; background: var(--gold); }
.prose p { margin: 1.1em 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--gold); font-weight: 700; }
.prose strong { font-weight: 700; background: linear-gradient(transparent 64%, color-mix(in srgb, var(--gold-bright) 38%, transparent) 64%); }
.figure { margin: 36px 0; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.figure-svg { display: block; width: 100%; height: auto; }
.table-scroll { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14.5px; line-height: 1.7; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--tint); font-weight: 700; white-space: nowrap; font-size: 13.5px; }
td:first-child { font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 40px 0 0; }
.tags li { font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: 999px; background: var(--tint); color: var(--ink-2); }

/* 5枚でおさらい */
.cards { margin-top: 56px; }
.card-track { list-style: none; padding: 4px 0 16px; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 290px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; min-height: 250px; padding: 24px; border-radius: 18px; background: var(--sumi); color: var(--sumi-ink); position: relative; overflow: hidden; }
.card::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 120px; height: 120px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--gold-bright) 40%, transparent); }
.card:first-child { background: var(--accent); color: var(--accent-ink); }
.card-no { font-family: var(--mincho); font-size: 30px; font-weight: 700; line-height: 1; color: var(--gold-bright); }
.card:first-child .card-no { color: inherit; }
.card-no small { font-size: 13px; opacity: .6; margin-left: 2px; }
.card-title { font-weight: 900; font-size: 18px; line-height: 1.5; }
.card-body { font-size: 14.5px; line-height: 1.85; opacity: .88; }

.article-foot .related { margin-top: 56px; }
.article-foot .thumb-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-foot.wrap { max-width: calc(1120px + 32px); }
.sources { margin-top: 48px; font-size: 13px; color: var(--ink-2); max-width: 720px; }
.sources h2 { font-size: 13px; font-weight: 900; letter-spacing: .12em; }
.sources ul { padding-left: 1.2em; margin: 0; }
.age-note { margin-top: 28px; font-size: 12px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 16px; }

/* ---------- フッター ---------- */
.site-footer { margin-top: 0; border-top: 1px solid var(--line); padding-block: 44px 56px; font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }
.app-band + .site-footer, .app-band ~ .site-footer { border-top: 0; }
.footer-inner { max-width: calc(1120px + 32px); display: flex; flex-direction: column; gap: 6px; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 6px 20px; flex-wrap: wrap; margin-top: 8px !important; }
.footer-note { font-size: 12px; }

/* ---------- スマホ ---------- */
@media (max-width: 860px) {
  .top-feature { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .thumb-row, .article-foot .thumb-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 280px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); scroll-padding-inline: 16px; scrollbar-width: none; }
  .thumb-row > * { scroll-snap-align: start; }
  .app-band-inner { grid-template-columns: auto minmax(0, 1fr); }
  .app-band-inner .button { grid-column: 1 / -1; }
  .article-hero { border-radius: 0; }
  .article-head + .wrap-wide { padding-left: 0; padding-right: 0; }
}
@media (max-width: 480px) {
  .prose { font-size: 16.5px; }
  .figure { padding: 10px; margin-inline: -4px; }
  .app-icon { width: 64px; height: 64px; border-radius: 16px; }
  .logo-type { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .thumb:hover .thumb-img img, .feature:hover .feature-img img { transform: none; }
}

/* ---------- ヘッダーのナビ ---------- */
.head-right { display: flex; align-items: center; gap: 22px; }
.head-nav { display: flex; gap: 20px; font-size: 14px; font-weight: 700; }
.head-nav a { color: var(--ink-2); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.head-nav a:hover { color: var(--ink); }
.head-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.app-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.text-link { color: var(--sumi-sub); font-size: 13px; font-weight: 700; }
.text-link:hover { color: var(--sumi-ink); }
@media (max-width: 860px) {
  .head-nav { display: none; }
  .app-actions { grid-column: 1 / -1; align-items: stretch; text-align: center; }
}

/* ---------- LP（墨の世界観。アプリの画面と同じ色） ---------- */
.is-lp { --lp-bg: #12100c; --lp-ink: #f5efe4; --lp-sub: #a89d8b; --lp-line: #2c2720; --lp-card: #1b1813; }
.lp-hero { background: radial-gradient(70% 90% at 80% 20%, #2a2318 0%, transparent 60%), var(--sumi); color: var(--sumi-ink); overflow: hidden; }
.lp-hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 32px; padding-block: 64px 0; }
.lp-hero-copy { padding-bottom: 64px; }
.lp-hero .kicker { color: var(--gold-bright); }
.lp-hero h1 { font-family: var(--mincho); font-weight: 700; font-size: clamp(40px, 6.4vw, 72px); line-height: 1.3; letter-spacing: .04em; margin: 14px 0 20px; }
.lp-hero .gold { color: var(--gold-bright); }
.lp-lede { color: var(--sumi-sub); font-size: 16px; line-height: 1.95; max-width: 30em; margin: 0 0 28px; }
.lp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.button-lg { padding: 16px 30px; font-size: 16px; }
.lp-note { font-size: 12.5px; color: var(--sumi-sub); }
.lp-hero-phones { position: relative; height: 560px; align-self: end; }
.phone { margin: 0; border-radius: 34px; overflow: hidden; border: 1px solid rgba(214, 176, 100, .55); background: #000; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.phone img { width: 100%; height: auto; }
.lp-hero-phones .phone { position: absolute; width: 260px; }
.phone-front { right: 40px; top: 30px; z-index: 2; }
.phone-back { right: 250px; top: 110px; transform: rotate(-6deg); opacity: .9; }

.lp-h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; line-height: 1.45; margin: 8px 0 14px; }
.lp-h2.center { text-align: center; }
.lp-steps { padding-top: 88px; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; }
.step-no { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 900; font-size: 17px; }
.steps h3 { margin: 16px 0 6px; font-size: 19px; font-weight: 900; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.85; }

.lp-features { margin-top: 64px; }
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; padding-block: 56px; border-top: 1px solid var(--line); }
.feature-row.reverse .feature-copy { order: 2; }
.feature-copy p:last-child { color: var(--ink-2); font-size: 16px; line-height: 1.95; max-width: 28em; }
.feature-shot { display: flex; justify-content: center; padding: 40px 0; border-radius: 24px; background: radial-gradient(60% 60% at 50% 40%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%), var(--tint); }
.feature-shot .phone { width: min(270px, 70%); }

.lp-articles { margin-top: 72px; }
.lp-articles-lede { margin: -6px 0 20px; }
.lp-faq { margin-top: 88px; }
.lp-faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.lp-faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 16.5px; padding: 16px 32px 16px 0; position: relative; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; color: var(--gold); font-weight: 400; }
.lp-faq details[open] summary::after { content: "−"; }
.lp-faq details p { margin: 0 0 18px; color: var(--ink-2); }
.lp-final { margin-top: 96px; background: var(--sumi); color: var(--sumi-ink); text-align: center; }
.lp-final-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-block: 72px; }
.lp-final h2 { font-family: var(--mincho); font-size: clamp(24px, 3.6vw, 36px); margin: 0; letter-spacing: .04em; }
.lp-final .app-icon { width: 88px; height: 88px; border-radius: 22px; }
.is-lp .site-footer { border-top: 0; }

@media (max-width: 860px) {
  .lp-hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 44px; gap: 0; }
  .lp-hero-copy { padding-bottom: 8px; }
  .lp-hero-phones { height: 420px; }
  .lp-hero-phones .phone { width: 200px; }
  .phone-front { right: auto; left: 50%; top: 30px; transform: translateX(-10%); }
  .phone-back { right: auto; left: 50%; top: 80px; transform: translateX(-95%) rotate(-6deg); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .feature-row, .feature-row.reverse { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 40px; }
  .feature-row.reverse .feature-copy { order: 0; }
}

/* ---------- イベントレポート ---------- */
.event-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; font-size: 14px; }
.event-facts div { display: flex; gap: 8px; }
.event-facts dt { color: var(--gold); font-weight: 700; }
.event-facts dd { margin: 0; }
.gallery { margin-top: 48px; }
.gallery-h { font-size: 19px; font-weight: 900; margin: 0 0 16px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.gallery-grid figure { margin: 0; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.gallery-grid figcaption { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.sake-list { margin-top: 48px; }
.sake-list ol { list-style: none; counter-reset: s; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sake-list li { counter-increment: s; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sake-list li::before { content: counter(s, decimal-leading-zero); grid-row: span 3; color: var(--gold); font-weight: 900; font-size: 14px; padding-top: 2px; }
.sake-name { font-weight: 700; }
.sake-kura { font-size: 13px; color: var(--ink-2); }
.sake-note { font-size: 14px; }
.empty { text-align: center; padding: 56px 24px; border: 1px dashed var(--line); border-radius: 18px; background: var(--surface); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-title { font-size: 19px; font-weight: 900; margin: 0; }
.empty p { margin: 0; color: var(--ink-2); max-width: 30em; }
.empty .button { margin-top: 10px; }
.empty { margin-bottom: 72px; }

/* ---------- LP ヒーロー調整（明るいヘッダーとの段差・見切れ・傾きをなくす） ---------- */
.is-lp body::before, body.is-lp::before { background: var(--sumi); }
.is-lp .site-header { background: color-mix(in srgb, var(--sumi) 94%, transparent); border-bottom-color: rgba(255,255,255,.08); }
.is-lp .logo { color: var(--sumi-ink); }
.is-lp .head-nav a { color: var(--sumi-sub); }
.is-lp .head-nav a:hover, .is-lp .head-nav a[aria-current="page"] { color: var(--sumi-ink); }
.is-lp .site-header .button { background: var(--gold-bright); color: #1c1813; }
.lp-hero { background: var(--sumi); }
.lp-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding-block: 72px 80px; align-items: center; }
.lp-hero-copy { padding-bottom: 0; }
.lp-hero h1 { font-size: clamp(38px, 5.2vw, 62px); margin: 16px 0 22px; }
.lp-hero-phones { position: relative; height: auto; display: flex; justify-content: center; align-items: flex-start; gap: 0; align-self: center; }
.lp-hero-phones::before { content: ""; position: absolute; inset: 8% 4% 4%; background: radial-gradient(closest-side, rgba(214,176,100,.22), transparent); z-index: 0; }
.lp-hero-phones .phone { position: relative; inset: auto; transform: none; width: 250px; flex: none; z-index: 1; }
.lp-hero-phones .phone-back { width: 220px; margin-top: 56px; margin-right: -36px; opacity: .75; z-index: 1; }
.lp-hero-phones .phone-front { z-index: 2; }
@media (max-width: 860px) {
  .lp-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-block: 44px 56px; }
  .lp-hero-phones .phone { width: 190px; }
  .lp-hero-phones .phone-back { width: 165px; margin-top: 40px; margin-right: -28px; }
  .lp-hero-phones .phone, .lp-hero-phones .phone-back { left: auto; right: auto; top: auto; transform: none; }
}

/* スマホ：ヘッダーに「SAKE LOG アプリについて」を出す */
.head-app-link { display: none; }
@media (max-width: 860px) {
  .head-right { gap: 10px; }
  .head-app-link { display: inline-block; font-size: 12px; font-weight: 700; color: var(--ink-2); text-decoration: none; white-space: nowrap; line-height: 1.3; }
  .head-app-link[aria-current="page"] { color: var(--ink); }
  .is-lp .head-app-link { color: var(--sumi-sub); }
  .is-lp .head-app-link[aria-current="page"] { color: var(--sumi-ink); }
}
@media (max-width: 420px) {
  .logo { gap: 7px; }
  .logo-mark { width: 18px; }
  .logo-type { font-size: 15px; letter-spacing: .12em; }
  .button-sm { padding: 7px 12px; font-size: 12px; }
  .head-app-link { font-size: 11px; }
}
.logo { flex: none; }
.logo-type { white-space: nowrap; }
@media (max-width: 860px) {
  .head-right { min-width: 0; }
  .head-app-link { white-space: normal; text-align: right; max-width: 8.5em; }
  .site-header .button-sm { flex: none; }
}
@media (max-width: 860px) { .head-app-link span { display: block; } .head-app-link { max-width: none; } }

/* ヘッダーの切り替え：記事側＝「SAKE LOG アプリについて」、LP側＝「記事トップに戻る」＋「アプリを入手」 */
.button-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.is-lp .button-outline { color: var(--sumi-ink); }
.is-lp .site-header .button-outline { background: transparent; }
.is-lp .site-header .button-gold { background: var(--gold-bright); color: #1c1813; }
.site-header .button-sm { flex: none; }
@media (max-width: 420px) {
  .head-right { gap: 8px; }
  .site-header .button-sm { padding: 7px 11px; font-size: 12px; }
}
.is-lp .site-header .button-outline { color: var(--sumi-ink); box-shadow: inset 0 0 0 1.5px rgba(245,239,228,.55); }
@media (max-width: 380px) {
  .site-header .button-sm { padding: 6px 10px; font-size: 11.5px; letter-spacing: .02em; }
  .logo-type { font-size: 14px; letter-spacing: .1em; }
}
