/* 寺燈 site: audited with Hallmark sloplint + Impeccable detect (2026-11-04). Not a Hallmark build; waive 20 (stamp) and 26b on summary-only controls where noted. */
/* 寺燈 公式サイト(暫定デザイン): 和紙のクリーム地 + 深緑 + 金の細い罫線 */
:root {
  color-scheme: light dark;
  --paper: #f7ecdc;
  --paper-2: #eee3cc;
  --surface: #fcf7ec;
  --text: #2a2620;
  --text-2: #5c5444;
  --line: #d6cbb0;
  --gold: #b8975a;
  --green: #274a2c;
  --green-hover: #1d3a22;
  --on-green: #f7f2e4;
  --link: #274a2c;
  --warn: #7a5410;
  --warn-subtle: #f5e8c4;
  --focus: #0a58ca;
  --foot-bg: #1f3a24;
  --foot-text: #efe9d8;
  --font: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --band: #1f3a24;
  --on-band: #f7f2e4;
  --on-band-2: #dfe7d3;
  --foot-text-2: #c9c3b0;
  --paper-hi: #fffdf6;
  --cream-hover: #fffdf6;
  --veil-light: rgba(247, 236, 220, 0.72);
  --veil-dark: rgba(18, 25, 15, 0.72);
  --mock-bezel: #2b2d2c;
  --mock-screen: #faf6ec;
  --mock-ink: #2a2620;
  --mock-ink-2: #5c5444;
  --mock-rule: #ddd2b8;
  --mock-side: #274a2c;
  --mock-side-ink: #f7f2e4;
  --mock-side-line: rgba(247, 242, 228, 0.55);
  --mock-base: #c4c4c0;
  --r-s: 8px;
  --r-m: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12190f; --paper-2: #182214; --surface: #1b261a; --text: #ece6d6; --text-2: #b4ac98;
    --line: #34402f; --gold: #c6a463; --green: #6fa876; --green-hover: #8cc093; --on-green: #0f1a10;
    --link: #9fcca5; --warn: #e6bd6a; --warn-subtle: #2c2512; --focus: #8fb7ff; --foot-bg: #0c120a; --foot-text: #e4ddca;
    --band: #17301b; --paper-hi: #24321f;
  }
}
:root[data-theme="dark"] {
  --paper: #12190f; --paper-2: #182214; --surface: #1b261a; --text: #ece6d6; --text-2: #b4ac98;
  --line: #34402f; --gold: #c6a463; --green: #6fa876; --green-hover: #8cc093; --on-green: #0f1a10;
  --link: #9fcca5; --warn: #e6bd6a; --warn-subtle: #2c2512; --focus: #8fb7ff; --foot-bg: #0c120a; --foot-text: #e4ddca;
    --band: #17301b; --paper-hi: #24321f;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
::selection { background: var(--green); color: var(--on-green); }
html { accent-color: var(--green); caret-color: var(--green); scrollbar-color: var(--line) var(--paper); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1rem/1.85 var(--font);
  overflow-wrap: break-word; word-break: auto-phrase; line-break: strict; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: 8px; top: -200px; background: var(--green); color: var(--on-green); padding: 12px 16px; border-radius: var(--r-s); z-index: 20; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

h1, h2, h3 { line-height: 1.5; margin: 0; }
h1, h2, .brand { font-family: var(--font-serif); font-weight: 700; letter-spacing: 0.04em; text-wrap: balance; }
h1 { font-size: clamp(1.625rem, 3.4vw, 2.125rem); }
h2 { font-size: 1.5rem; margin-top: 56px; }
h3 { font-size: 1.125rem; margin-top: 24px; }
p, ul, ol, dl { margin: 12px 0 0; }
.prose { max-width: 40em; }
.lead { font-size: 1.0625rem; color: var(--text-2); max-width: 40em; }
main { display: block; }
main:focus { outline: none; }

/* header: logo + gold rule + nav */
.site-header { background: var(--paper); position: relative; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; min-height: 68px; }
.brand { font-size: 1.75rem; color: var(--text); text-decoration: none; padding: 8px 0; white-space: normal; }
.brand small { font-family: var(--font); font-size: 0.8125rem; font-weight: 400; color: var(--text-2); margin-left: 8px; letter-spacing: 0; }
.head-rule { flex: 1; height: 1px; background: var(--gold); min-width: 12px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.nav-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--text); text-decoration: none; border-radius: var(--r-s); }
.nav-list a:hover { background: var(--paper-2); }
.nav-list a[aria-current="page"] { font-weight: 700; color: var(--green); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.nav-wide { display: none; }
.nav-menu summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px;
  border: 1px solid var(--gold); border-radius: var(--r-s); background: var(--surface); }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] { flex-basis: 100%; }
.nav-menu .nav-list { flex-direction: column; position: static; background: var(--surface);
  border-bottom: 1px solid var(--gold); padding: 8px 16px 16px; margin-top: 8px; }
@media (max-width: 599px) { .head-rule { display: none; } .nav-menu { margin-left: auto; } }
@media (min-width: 900px) { .nav-wide { display: block; } .nav-menu { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: var(--r-s);
  background: var(--green); color: var(--on-green); text-decoration: none; font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.04em; }
.btn:hover { background: var(--green-hover); color: var(--on-green); }
.btn:active { transform: translateY(1px); }
a:active { color: var(--green-hover); }
summary:active { background: var(--paper-2); }
.btn.sub { background: transparent; color: var(--green); border: 1px solid var(--green); }
.btn.sub:hover { background: var(--paper-2); color: var(--green); }
.btn.cream { background: var(--on-band); color: var(--band); }
.btn.cream:hover { background: var(--cream-hover); color: var(--band); }
.btn-note { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 0.9375rem; color: var(--text-2); max-width: 32rem; }
.btn-note::before, .btn-note::after { content: ""; flex: 1; height: 1px; background: var(--gold); }

/* hero: 縁側の庭の写真(左端は紙色になじむ) */
.hero { position: relative; overflow: hidden; background: var(--paper) url("/assets/img/hero.jpg") right center / cover no-repeat; --veil: transparent; }
@supports (background-image: image-set(url("/assets/img/hero.jpg") type("image/jpeg"))) {
  .hero { background-image: image-set(url("/assets/img/hero.webp") type("image/webp"), url("/assets/img/hero.jpg") type("image/jpeg")); }
}
.hero::before { content: ""; position: absolute; inset: 0; background: var(--veil); pointer-events: none; }
@media (min-width: 900px) {
  .hero::before { background: linear-gradient(90deg, color-mix(in srgb, var(--paper) 96%, transparent) 0%, color-mix(in srgb, var(--paper) 94%, transparent) 50%, color-mix(in srgb, var(--paper) 60%, transparent) 72%, transparent 95%); }
}
.hero .btn-note { background: var(--paper); color: var(--text); padding: 2px 16px; border-radius: 999px; }
.hero-inner { position: relative; display: grid; gap: 28px; padding-top: 44px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(2rem, 6.2vw, 3.5rem); line-height: 1.45; letter-spacing: 0.06em; max-width: 12em; }
.hero .lead { margin-top: 20px; max-width: 26em; color: var(--text); }
.hero-links { margin-top: 28px; }
@media (max-width: 899px) {
  .hero { --veil: var(--veil-light); background-position: 70% center; }
  @supports (background-image: image-set(url("/assets/img/hero.jpg") type("image/jpeg"))) {
    .hero { background-image: image-set(url("/assets/img/hero-900.webp") type("image/webp"), url("/assets/img/hero.jpg") type("image/jpeg")); }
  }
}
@media (min-width: 900px) { .hero-inner { padding-top: 88px; padding-bottom: 104px; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero { --veil: var(--veil-dark); } }
:root[data-theme="dark"] .hero { --veil: var(--veil-dark); }

/* laptop mock */
.laptop { margin: 8px auto 0; max-width: 30rem; width: 100%; }
.laptop-screen { background: var(--mock-bezel); border: 8px solid var(--mock-bezel); border-bottom-width: 10px; border-radius: 12px 12px 0 0; }
.laptop-ui { display: grid; grid-template-columns: 28% 1fr; background: var(--mock-screen); min-height: 11rem; color: var(--mock-ink); }
.laptop-side { background: var(--mock-side); padding: 12px; display: grid; align-content: start; gap: 8px; }
.laptop-side i { display: block; height: 6px; border-radius: 3px; background: var(--mock-side-line); }
.laptop-side i:first-child { width: 60%; background: var(--mock-side-ink); }
.laptop-main { padding: 12px 16px; }
.laptop-main .row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--mock-rule); font-size: 0.8125rem; }
.laptop-main .row:last-child { border-bottom: 0; }
.laptop-main .row span { color: var(--mock-ink-2); }
.laptop-base { height: 12px; background: var(--mock-base); border-radius: 0 0 14px 14px; margin: 0 -3%; }
.laptop-cap { font-size: 0.875rem; color: var(--text-2); margin-top: 12px; text-align: center; }

/* sections */
.sec { padding: 56px 0 64px; }
.sec.alt { background: var(--paper-2); }
.sec h2:first-child, .sec-title { margin-top: 0; }
.sec-title::after { content: ""; display: block; width: 3rem; height: 1px; background: var(--gold); margin-top: 16px; }
.sec-lead { color: var(--text-2); margin-top: 8px; }
.more { display: inline-block; margin-top: 24px; font-weight: 700; padding: 8px 0; }

.grid { display: grid; gap: 16px; margin-top: 28px; padding: 0; list-style: none; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px 20px 20px; }
.card h3 { margin-top: 0; font-family: var(--font-serif); font-size: 1.25rem; letter-spacing: 0.04em; }
.card p { margin-top: 8px; font-size: 0.9375rem; color: var(--text-2); }
.card a { display: inline-block; padding: 8px 0; min-height: 44px; font-size: 0.9375rem; }
.icon { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; color: var(--green); margin-bottom: 16px; }
.icon::after { content: ""; width: 3.5rem; height: 1px; background: var(--gold); }
.card.flat { background: transparent; }

.plan { text-align: center; padding: 0; overflow: hidden; }
.plan-head { background: var(--green); color: var(--on-green); padding: 4px 12px; font-size: 0.875rem; }
.plan-body { padding: 20px 16px 24px; }
.plan-body h3 { margin-top: 0; font-size: 1.125rem; }
.plan-price { font-family: var(--font-serif); font-size: 1.5rem; margin-top: 8px; font-variant-numeric: tabular-nums; color: var(--text); }

.flow { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.flow li { min-width: 0; overflow-wrap: anywhere; counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 16px; display: grid; gap: 4px; }
.flow li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: var(--on-green);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 4px; }
.flow b { font-family: var(--font-serif); font-size: 1.0625rem; }
.flow span { color: var(--text-2); font-size: 0.9375rem; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* closing band */
.site-footer, .close-band { --focus: #f7d774; }
.close-band { position: relative; background: var(--band); color: var(--on-band); text-align: center; padding: 88px 0 64px; overflow: hidden; }
.close-band svg { position: absolute; left: 0; right: 0; top: -1px; width: 100%; height: 56px; display: block; color: var(--paper-2); }
.close-band h2 { margin: 0; color: var(--on-band); font-size: 1.5rem; }
.close-band p { margin: 12px auto 24px; max-width: 34em; color: var(--on-band-2); }
.close-band .btn-note { margin-left: auto; margin-right: auto; color: var(--on-band-2); }
.close-band .btn-note::before, .close-band .btn-note::after { background: var(--gold); }

/* sub pages */
.banner { padding: 40px 0 28px; border-bottom: 1px solid var(--gold); }
.banner .lead { margin-top: 12px; }
.crumb { margin: 0 0 12px; font-size: 0.875rem; color: var(--text-2); }
.banner + .sec { padding-top: 40px; }
.badge { display: inline-block; font-family: var(--font); font-size: 0.8125rem; font-weight: 700; line-height: 1.6; padding: 0 8px;
  border-radius: 999px; border: 1px solid transparent; vertical-align: middle; margin-left: 8px; white-space: nowrap; }
.b-live { background: var(--paper-2); color: var(--green); border-color: var(--green); }
.b-verify, .b-prep { background: var(--warn-subtle); color: var(--warn); border-color: var(--warn); }
.b-plan { background: var(--paper-2); color: var(--text-2); border-color: var(--text-2); }
.notice { background: var(--warn-subtle); border: 1px solid var(--warn); border-radius: var(--r-s); padding: 12px 16px; max-width: 40em; margin-top: 24px; }
.notice strong { color: var(--warn); }
.feat { list-style: none; padding: 0; margin: 16px 0 0; }
.feat li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 20px; margin-top: 12px; max-width: 48em; }
.feat h3 { margin: 0; font-family: var(--font-serif); font-size: 1.125rem; }
.feat p { margin-top: 8px; }
.steps { max-width: 44em; padding-left: 1.5em; }
.steps li { margin-top: 16px; padding-left: 4px; }
.steps li::marker { font-weight: 700; color: var(--green); }
details.q { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); margin-top: 8px; max-width: 44em; }
details.q summary { cursor: pointer; padding: 12px 16px; min-height: 44px; font-weight: 700; }
details.q p { padding: 0 16px 16px; margin: 0; }
.dl { max-width: 44em; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 8px 16px; }
.dl div { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dl div:last-child { border-bottom: 0; }
.dl dt { font-weight: 700; }
.dl dd { margin: 0; color: var(--text-2); }
@media (min-width: 600px) { .dl div { grid-template-columns: 10em 1fr; } }

/* footer */
.site-footer { background: var(--foot-bg); color: var(--foot-text); padding: 48px 0 40px; }
.foot { display: grid; gap: 24px; }
@media (min-width: 768px) { .foot { grid-template-columns: 1.4fr 2fr 1.2fr; } }
.foot-nav { display: grid; gap: 0 24px; }
@media (min-width: 480px) { .foot-nav { grid-template-columns: 1fr 1fr; } }
.foot .foot-op { color: var(--foot-text); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--foot-text); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot p { margin: 8px 0 0; font-size: 0.9375rem; color: var(--foot-text-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.laptop { text-align: center; }
.laptop-cap { display: inline-block; background: var(--paper); padding: 2px 12px; border-radius: 999px; }

.plan-body p { margin-top: 8px; font-size: 0.9375rem; color: var(--text-2); }
.plan-body .plan-price { font-size: 1.5rem; color: var(--text); font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 0.875rem; color: var(--text-2); font-family: var(--font); }
ul.prose { padding-left: 1.4em; }
ul.prose li { margin-top: 8px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.plan-body .plan-year { font-size: 1rem; color: var(--text-2); margin-top: 8px; font-variant-numeric: tabular-nums; }
.plan-year del { text-decoration-thickness: 2px; text-decoration-color: var(--text-2); }
.plan-year .plan-now { font-family: var(--font-serif); font-size: 1.625rem; color: var(--text); margin-left: 4px; }
.plan-year small { font-size: 0.875rem; font-family: var(--font); }
.plan-body .plan-save { display: inline-block; margin-top: 8px; padding: 2px 12px; border: 1px solid var(--green); border-radius: 999px; color: var(--green); font-weight: 700; font-size: 0.875rem; }

/* brand mark + legal documents */
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-mark { width: 36px; height: 36px; }
.legal { max-width: 46em; }
.legal h2 { font-size: 1.25rem; margin-top: 40px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.legal ol, .legal ul { padding-left: 1.5em; }
.legal li { margin-top: 8px; }
.table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); }
.legal table { border-collapse: collapse; width: 100%; min-width: 32rem; font-size: 0.9375rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--paper-2); font-weight: 700; }
.legal tbody th { background: transparent; }
.legal thead th { background: var(--paper-2); }
.legal tr:last-child td, .legal tr:last-child th { border-bottom: 0; }
.legal tbody th { white-space: nowrap; }
@media (max-width: 599px) {
  .legal table { min-width: 0; }
  .legal thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .legal tbody, .legal tr, .legal td, .legal tbody th { display: block; }
  .legal tr { border-bottom: 1px solid var(--line); padding: 12px 16px; }
  .legal tr:last-child { border-bottom: 0; }
  .legal td, .legal tbody th { padding: 0; border: 0; }
  .legal tbody th { white-space: normal; margin-bottom: 4px; color: var(--green); }
  .legal td { margin-top: 4px; }
  .legal td::before { content: attr(data-label) "\FF1A"; display: block; font-weight: 700; color: var(--text-2); font-size: 0.875rem; }
}
.brand-mark-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-mark-light { display: none; }
  :root:not([data-theme="light"]) .brand-mark-dark { display: block; }
}
:root[data-theme="dark"] .brand-mark-light { display: none; }
:root[data-theme="dark"] .brand-mark-dark { display: block; }

/* news */
.news { list-style: none; padding: 0; margin: 0; max-width: 46em; }
.news-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.news-item time { font-size: 0.875rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.news-item h2 { font-size: 1.25rem; margin-top: 4px; }

/* origin: who made it (the page's one statement) */
.origin { padding-block: 64px 72px; }
.origin-grid { display: grid; gap: 24px; align-items: start; }
.origin-title { font-size: clamp(1.875rem, 5vw, 2.75rem); line-height: 1.5; letter-spacing: 0.06em; margin: 0; color: var(--green); }
.origin-body { max-width: 34em; }
.origin-body p { font-size: 1.0625rem; }
.origin-body p:first-child { margin-top: 0; }
@media (min-width: 900px) {
  .origin { padding-block: 96px 104px; }
  .origin-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; }
  .origin-title { padding-top: 24px; border-top: 1px solid var(--gold); }
}
@media (max-width: 899px) { .origin-title::after { content: ""; display: block; width: 3rem; height: 1px; background: var(--gold); margin-top: 16px; } }

.q-print { display: none; }
/* print: A4, white paper, dark text; for pricing / FAQ / safety / legal pages circulated on paper */
@media print {
  :root {
    --paper: #fff; --paper-2: #fff; --surface: #fff; --text: #111; --text-2: #333; --line: #999;
    --gold: #666; --green: #111; --link: #111; --warn: #111; --warn-subtle: #fff;
    --foot-bg: #fff; --foot-text: #111; --foot-text-2: #333; --on-green: #fff; --veil-light: transparent; --veil-dark: transparent;
  }
  @page { size: A4; margin: 15mm; }
  html, body { background: var(--paper); color: var(--text); overflow: visible; }
  body { font-size: 10.5pt; line-height: 1.7; }
  .skip, .nav-wide, .nav-menu, .head-rule, .close-band, .foot > nav, .foot ul, .hero, .laptop, .btn, .btn-note { display: none !important; }
  .site-header .wrap { min-height: 0; }
  .site-header, .sec, .sec.alt, .site-footer { background: none; }
  .sec { padding: 12px 0; }
  .banner { padding: 0 0 12px; }
  .site-footer { padding: 12px 0 0; border-top: 1px solid var(--line); }
  .foot { display: block; }
  .foot p, .foot { color: var(--foot-text); }
  .wrap { max-width: none; padding: 0; }
  a, a:visited { color: var(--text); text-decoration: none; }
  a[href]::after { content: none; }
  h1, h2, h3, summary { break-after: avoid; page-break-after: avoid; }
  .card, .plan, .feat li, .flow li, .notice, .dl div, .table-wrap, table, tr, details.q, .q-print, .news-item { break-inside: avoid; page-break-inside: avoid; }
  .legal li { break-inside: avoid; }
  .table-wrap { overflow: visible; }
  .legal table { min-width: 0; }
  .plan-head { background: none; color: var(--text); border-bottom: 1px solid var(--line); }
  .origin-title { color: var(--text); }
  /* FAQ: show every answer. Browsers with ::details-content open the closed details; others get the .q-print copy. */
  details.q { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin-top: 0; max-width: none; }
  details.q summary { list-style: none; padding: 8px 0 2px; }
  details.q summary::-webkit-details-marker { display: none; }
  details.q p, .q-print { padding: 0 0 8px; margin: 0; }
  .q-print { display: block; }
  @supports selector(::details-content) {
    details.q::details-content { content-visibility: visible; display: block; }
    .q-print { display: none; }
  }
}

/* real-screen images */
.laptop-screen { position: relative; line-height: 0; }
.laptop-img { display: block; width: 100%; height: auto; }
.shot { position: relative; margin: 0; line-height: 0; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; background: var(--surface); }
.shot img { display: block; width: 100%; height: auto; }
.shot-tag { position: absolute; right: 6px; bottom: 6px; padding: 0 8px; border-radius: 999px; background: var(--mock-bezel); color: var(--mock-screen); font: 400 0.75rem/1.6 var(--font); }
.shots { display: flex; gap: 12px; margin-top: 12px; }
.shots .shot { width: 8.5rem; max-width: 45%; aspect-ratio: 390 / 560; }
.shots .shot img { height: 100%; object-fit: cover; object-position: top; }
.shots .shot-end img { object-position: bottom; }
.shot-link { display: block; height: 100%; cursor: zoom-in; }
.shot-link:hover img { opacity: 0.92; }
.shot-link:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
@media (min-width: 900px) { .shots { gap: 20px; } .shots .shot { width: 14rem; } }

/* hero: phone screen laid over the PC screen */
.laptop.has-phone { position: relative; }
.phone { position: absolute; right: -4%; bottom: 64px; width: 30%; max-width: 9.5rem; border: 6px solid var(--mock-bezel); border-radius: 22px; overflow: hidden; background: var(--mock-bezel); box-shadow: 0 12px 28px rgba(10, 6, 24, 0.28); line-height: 0; }
.phone-img { display: block; width: 100%; height: auto; }
@media (max-width: 599px) {
  .phone { right: 2%; bottom: 76px; width: 26%; border-width: 4px; border-radius: 16px; }
  .laptop.has-phone .laptop-cap { margin-top: 24px; }
}

/* ---- 料金: プランの一覧(カード)と比較表 ---- */
.plans { display: grid; gap: 16px; margin-top: 24px; padding: 0; list-style: none; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.pcard { display: flex; flex-direction: column; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px 20px; }
.pcard-main { border: 2px solid var(--green); }
.pcard-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pcard-name { margin: 0; font-family: var(--font-serif); font-size: 1.25rem; }
.pcard-for { margin-top: 8px; color: var(--text-2); font-size: 0.9375rem; }
.pcard-price { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-variant-numeric: tabular-nums; }
.pcard-yen { font-family: var(--font-serif); font-size: 2rem; line-height: 1.2; }
.pcard-per { color: var(--text-2); font-size: 0.9375rem; }
.pcard-sub { margin-top: 4px; color: var(--text-2); font-size: 0.9375rem; font-variant-numeric: tabular-nums; min-height: 3.2em; }
.pcard-sub del { text-decoration-thickness: 2px; }
.pcard-sub strong { color: var(--text); }
.pcard-save { display: inline-block; margin-top: 4px; padding: 0 10px; border: 1px solid var(--green); border-radius: 999px; color: var(--green); font-weight: 700; font-size: 0.8125rem; }
.pcard-status { margin-top: 16px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: var(--r-s); text-align: center; color: var(--text-2); font-size: 0.9375rem; }
.pcard-more { margin-top: 8px; text-align: center; font-size: 0.9375rem; }
.pcard-list { margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 0.9375rem; }
.pcard-list li { position: relative; padding-left: 1.5em; margin-top: 8px; }
.pcard-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.pcard-list li.no { color: var(--text-2); }
.pcard-list li.no::before { content: "—"; color: var(--text-2); }
.pcard-list li.all { font-weight: 700; }
.cmp-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.cmp { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.cmp th, .cmp td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.cmp thead th { background: var(--paper-2); font-size: 0.875rem; }
.cmp tbody th { text-align: left; font-weight: 400; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp td { color: var(--green); font-weight: 700; }
.cmp td.cmp-no { color: var(--text-2); font-weight: 400; }
.cmp td.cmp-note { color: var(--text); font-weight: 400; font-size: 0.875rem; }
.cmp-wrap:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 599px) {
  .cmp { min-width: 0; font-size: 0.8125rem; }
  .cmp th, .cmp td { padding: 8px 6px; }
  .cmp thead th { font-size: 0.75rem; }
  .cmp td.cmp-note { font-size: 0.75rem; }
}
@media print { .pcard { break-inside: avoid; } .cmp-wrap { overflow: visible; } }

/* ---- PC での読みやすさ: ページ内の目次・2列のカード ---- */
.toc { margin: 0 0 24px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.toc-title { margin: 0; font-size: 0.875rem; font-weight: 700; color: var(--text-2); }
.toc ol { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.9375rem; }
.toc a { display: inline-block; padding: 4px 0; }
.toc-body > :first-child { margin-top: 0; }
.toc-body h2[id], .sec h2[id] { scroll-margin-top: 88px; }
@media (min-width: 1000px) {
  .with-toc { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 48px; align-items: start; }
  .toc { position: sticky; top: 96px; margin: 0; padding: 16px; max-height: calc(100vh - 120px); overflow: auto; }
  .toc ol { display: block; border-left: 2px solid var(--line); }
  .toc li a { display: block; padding: 6px 0 6px 12px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--text-2); line-height: 1.5; }
  .toc li a:hover { color: var(--green); border-left-color: var(--green); }
  .toc-body .prose, .toc-body .lead, .toc-body .notice { max-width: 44em; }
}
.cond-grid { display: grid; gap: 16px; margin-top: 32px; }
.cond { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px; }
.cond h2 { margin-top: 0; font-size: 1.25rem; }
.cond .prose { max-width: none; }
.cond ul.prose { padding-left: 1.25em; }
.cond ul.prose li + li { margin-top: 8px; }
@media (min-width: 1000px) { .cond-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
@media (min-width: 1000px) {
  .feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .feat li { margin-top: 0; max-width: none; }
  .feat li.has-shot { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; align-content: start; }
  .feat li.has-shot > h3, .feat li.has-shot > p { grid-column: 1; }
  .feat li.has-shot > .shots { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .feat { grid-auto-flow: row dense; }
  .feat li.has-shot .shots .shot { max-width: none; }
}

/* ---- 見本の画像を下から開くシート(:target を使い、スクリプトなし) ---- */
.sheet { display: none; }
.sheet:target { display: block; position: fixed; inset: 0; z-index: 100; }
html:has(.sheet:target) { overflow: hidden; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(12, 18, 12, 0.55); cursor: zoom-out; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; width: 100%; max-width: 44rem; max-height: 94vh; display: flex; flex-direction: column; background: var(--surface); color: var(--text); border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.25); animation: sheet-up 0.28s ease-out; }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .sheet-panel { animation: none; } }
.sheet-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px 10px; border-bottom: 1px solid var(--line); }
.sheet-grip { position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line); }
.sheet-title { margin: 0; font-weight: 700; }
.sheet-count { margin-left: 8px; font-weight: 400; color: var(--text-2); font-variant-numeric: tabular-nums; }
.sheet-close { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); background: var(--paper); }
.sheet-close:hover { border-color: var(--green); color: var(--green); }
.sheet-body { flex: 1 1 auto; overflow: auto; padding: 16px; display: grid; gap: 16px; justify-items: center; }
.sheet-body img { display: block; width: auto; max-width: 100%; height: auto; max-height: 68vh; border: 1px solid var(--line); border-radius: 16px; }
.sheet-cap { margin: 0; max-width: 34em; font-size: 0.9375rem; color: var(--text); }
.sheet-cap small { color: var(--text-2); }
.sheet-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.sheet-nav > :last-child { justify-self: end; }
.sheet-step { padding: 6px 0; }
.sheet-raw { color: var(--text-2); font-size: 0.875rem; }
@media (min-width: 900px) {
  .sheet-body { grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start; padding: 24px; }
  .sheet-body img { max-height: 74vh; }
}
@media print { .sheet { display: none !important; } }

/* ---- お問い合わせ: 用件を選ぶとメールができる ---- */
.pick { position: relative; margin-top: 20px; max-width: 30rem; }
.pick summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 18px; list-style: none; cursor: pointer; font-weight: 700; color: var(--on-green); background: var(--green); border-radius: var(--r-s); }
.pick summary::-webkit-details-marker { display: none; }
.pick summary::after { content: ""; width: 0.55em; height: 0.55em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-25%) rotate(45deg); transition: transform 0.15s; }
.pick[open] summary::after { transform: translateY(25%) rotate(-135deg); }
.pick summary:hover { background: var(--green-hover); }
.pick summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.pick-list { margin: 6px 0 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12); }
.pick-list a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--text); text-decoration: none; font-weight: 700; }
.pick-list a:hover, .pick-list a:focus-visible { background: var(--paper); color: var(--green); }
.pick-list a:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.pick-desc { display: block; margin-top: 2px; font-weight: 400; font-size: 0.8125rem; color: var(--text-2); }
.pick-hint { margin: 12px 0 0; max-width: 40em; font-size: 0.875rem; color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .pick summary::after { transition: none; } }
