/* Dear Inc. — v3 "Night Light"（正本: Dear_Corp_v3_Canonical.dc.html）
   基本は携帯（390 の正本）、900px 以上でデスクトップ（1440 の正本）の組みに切り替える。 */

@font-face { font-family: 'Satoshi'; src: url('/assets/fonts/satoshi-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/assets/fonts/satoshi-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/assets/fonts/satoshi-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #16181D; --panel: #1C1E24; --line: #2C2F36; --fg: #FAF8F1; --mute: #A3A5AB; --sep: #5F626B; --pill: #3A3D45; --ul: #4A4D55;
  --honey: #E9A23B; --coral: #E5836A; --err: #F0A28E;
  --ease: cubic-bezier(.22,.61,.36,1);
  --mx: max(24px, calc((100vw - 640px) / 2));
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* 日本語は文節で折り返す（keep-all に文節の切れ目を足す。対応しないブラウザは keep-all のまま） */
:lang(ja) { word-break: auto-phrase; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ink); color: var(--fg);
  font-family: 'Satoshi', 'IBM Plex Sans JP', sans-serif; font-feature-settings: 'ss01'; font-variant-numeric: tabular-nums;
  word-break: keep-all; overflow-wrap: anywhere; line-break: strict;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; }
::selection { background: var(--honey); color: var(--ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--fg); color: var(--ink); font-size: 14px; font-weight: 700; }
.skip:focus { top: 12px; }
.nw { white-space: nowrap; }
.page { max-width: 1440px; margin: 0 auto; }

/* ---------- ヘッダー ---------- */
.site-header { display: flex; justify-content: space-between; align-items: center; height: 60px; padding: 0 calc(var(--mx) - 14px) 0 var(--mx); }
.logo { display: flex; color: var(--fg); }
.logo svg { width: 59.2px; height: 19px; }
.gnav, .lang { display: none; }
.menu-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.menu-btn span { width: 20px; height: 1.5px; background: var(--fg); }
.hnav-link { color: var(--mute); transition: color 150ms; }
.hnav-link:hover, .hnav-link[aria-current="true"] { color: var(--fg); }

/* ---------- メニュー（携帯） ---------- */
.menu { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; height: 100dvh; overflow-y: auto; background: var(--ink); }
.menu[hidden] { display: none; }
.menu-top { display: flex; justify-content: space-between; align-items: center; height: 60px; flex: none; padding: 0 calc(var(--mx) - 14px) 0 var(--mx); }
.menu-close { position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.menu-close span { position: absolute; left: 12px; top: 21px; width: 20px; height: 1.5px; background: var(--fg); transform: rotate(45deg); }
.menu-close span + span { transform: rotate(-45deg); }
.menu-nav { display: flex; flex-direction: column; padding: 32px var(--mx) 0; }
.menu-nav a { display: flex; justify-content: space-between; align-items: center; height: 72px; border-bottom: 1px solid var(--line); font-size: 32px; font-weight: 700; letter-spacing: -.03em; }
.menu-nav a span { font-size: 18px; font-weight: 500; color: var(--mute); }
.menu-foot { display: flex; flex-direction: column; gap: 20px; margin-top: auto; padding: 32px var(--mx) 36px; }
.menu-lang { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.menu-lang a { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 999px; border: 1px solid var(--pill); font-size: 14px; font-weight: 500; transition: border-color 150ms; }
.menu-lang a:hover { border-color: var(--mute); }
.menu-lang a[aria-current="true"] { background: var(--fg); border-color: var(--fg); color: var(--ink); }
.menu-mail { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: text-decoration-color 150ms; }
.menu-mail:hover { text-decoration-color: var(--fg); }
.menu-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--mute); }
.menu-meta a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mute); }
.menu-meta a:hover { color: var(--fg); }
html.menu-open { overflow: hidden; }

/* ---------- 共通の部品 ---------- */
.eyebrow { margin: 0; font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .14em; color: var(--mute); }
.ul { text-decoration: underline; text-decoration-color: var(--ul); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color 200ms, color 150ms; }
.ul:hover { text-decoration-color: var(--fg); }
.sep { color: var(--sep); }
.btn { display: flex; justify-content: space-between; align-items: center; gap: 14px; height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--fg); color: var(--ink); font-size: 15px; font-weight: 700; cursor: pointer; transition: background-color 150ms; }
.btn:hover { background: #FFFFFF; color: var(--ink); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.pills a { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border: 1px solid var(--pill); border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; transition: border-color 150ms; }
.pills a:hover { border-color: var(--mute); }

/* ---------- ヒーロー（灯がともる） ---------- */
.hero { position: relative; display: flex; flex-direction: column; justify-content: center; height: 420px; padding: 0 var(--mx) 16px; overflow: hidden; }
/* 320px でも「For home.」が 1 行に収まるよう、狭い幅だけ縮める（390px 以上は 72px のまま） */
.hero h1 { position: relative; z-index: 0; margin: 0; font-size: min(72px, calc((100vw - 48px) * .2105)); line-height: 1; font-weight: 700; letter-spacing: -.045em; }
.hero h1 > span { display: block; }
.lamp { position: relative; color: #2C2F36; text-shadow: 0 0 28px rgba(var(--rgb), 0); transition: color 900ms var(--ease), text-shadow 1200ms var(--ease); }
.lamp-h { --rgb: 233,162,59; }
.lamp-c { --rgb: 229,131,106; }
.glow { position: absolute; left: 50%; top: 72%; z-index: -1; width: 560px; height: 360px; transform: translate(-50%,-50%); border-radius: 50%; opacity: 0; transition: opacity 1200ms var(--ease); pointer-events: none; }
.lamp-h .glow { background: radial-gradient(closest-side, rgba(233,162,59,.15), rgba(233,162,59,.055) 45%, rgba(233,162,59,0)); }
.lamp-c .glow { background: radial-gradient(closest-side, rgba(229,131,106,.13), rgba(229,131,106,.05) 45%, rgba(229,131,106,0)); }
html:not(.js) .lamp, .honey-on .lamp-h, .coral-on .lamp-c { color: rgb(var(--rgb)); text-shadow: 0 0 28px rgba(var(--rgb), .6); }
html:not(.js) .hero .glow, .honey-on .lamp-h .glow, .coral-on .lamp-c .glow { opacity: 1; }
.lamps-instant .lamp, .lamps-instant .glow { transition: none; }
.hero p { margin: 28px 0 0; font-size: 17px; line-height: 1.7; font-weight: 500; color: var(--mute); }
.hero p b { font-weight: 500; color: var(--fg); }

/* ---------- 製品 ---------- */
.products { padding: 0 var(--mx); }
.sec-h { display: flex; align-items: center; height: 48px; margin: 0; border-top: 1px solid var(--line); font-size: 11px; font-weight: 500; letter-spacing: .14em; color: var(--mute); }
.product { --c: #E9A23B; --rgb: 233,162,59; display: flex; flex-direction: column; padding: 20px 0 44px; }
.product[data-product="futari"] { --c: #E5836A; --rgb: 229,131,106; padding-bottom: 52px; }
.p-text { display: contents; }
.p-label { order: 1; display: flex; align-items: center; gap: 10px; margin: 0; font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .14em; color: var(--mute); }
.p-dot { width: 7px; height: 7px; border-radius: 50%; background: #2C2F36; box-shadow: 0 0 12px 2px rgba(var(--rgb), 0); transition: background-color 400ms var(--ease), box-shadow 400ms var(--ease); }
.p-name { order: 2; display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.p-name img { width: 44px; height: 44px; border-radius: 10px; }
.p-name h3 { margin: 0; font-size: 36px; line-height: 1; font-weight: 700; letter-spacing: -.035em; }
.p-tag { order: 3; margin: 18px 0 0; font-size: 20px; line-height: 1.5; font-weight: 700; letter-spacing: .02em; font-feature-settings: 'palt', 'ss01'; text-wrap: balance; }
:lang(en) .p-tag { letter-spacing: -.01em; }
.p-body { order: 5; margin: 24px 0 0; font-size: 15px; line-height: 1.85; color: var(--mute); text-wrap: pretty; }
.p-body span { display: block; }
.p-plat { order: 6; margin: 16px 0 0; font-size: 12.5px; line-height: 1.6; letter-spacing: .02em; color: var(--mute); }
.p-links { order: 7; display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 500; }
.p-links li { display: flex; align-items: center; gap: 10px; }
.p-links a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; text-underline-offset: 5px; }
.stage { order: 4; position: relative; width: 100%; max-width: 420px; margin-top: 24px; aspect-ratio: 4 / 5; border: 1px solid rgba(255,255,255,.04); border-radius: 24px; background: color-mix(in oklab, #1E2026 96%, var(--c)); overflow: hidden; }
.stage-off, .stage-on { position: absolute; inset: 0; transition: opacity 400ms var(--ease); }
.stage-off { background: radial-gradient(120% 90% at 25% 0%, rgba(250,248,241,.05), transparent 60%); }
.stage-on { background: radial-gradient(120% 90% at 25% 0%, rgba(var(--rgb), .12), transparent 60%); opacity: 0; }
.shadow1, .shadow2 { position: absolute; left: 50%; transform: translateX(-50%); border-radius: 50%; }
.shadow1 { top: 83.3%; width: 230px; height: 48px; background: radial-gradient(closest-side, rgba(0,0,0,.28), rgba(0,0,0,0)); }
.shadow2 { top: 86.8%; width: 150px; height: 18px; background: radial-gradient(closest-side, rgba(0,0,0,.6), rgba(0,0,0,0)); }
/* 携帯の枠は、パネルの幅に合わせて縮む（パネルの下・左右・上からはみ出さない。大きい画面では正本の寸法のまま） */
.phone { position: absolute; left: 50%; top: 7%; width: min(168px, 49.2%); padding: 6px; transform: translateX(-50%); border-radius: 28px; background: #0B0C0F; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 1px 0 rgba(255,255,255,.16), 0 0 0 1px #3A3D45; }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: .4615; object-fit: cover; object-position: top; border-radius: 22px; }
.phone img.dim { filter: brightness(.93); }
html:not(.js) .product .p-dot, .product.is-lit .p-dot { background: var(--c); box-shadow: 0 0 12px 2px rgba(var(--rgb), .7); }
html:not(.js) .product .stage-on, .product.is-lit .stage-on { opacity: 1; }
html:not(.js) .product .stage-off, .product.is-lit .stage-off { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .p-dot, .stage-on, .stage-off { transition: none; } }

/* ---------- 理念 ---------- */
.philo { margin: 0 var(--mx); padding: 72px 0 76px; border-top: 1px solid var(--line); }
.philo h2 { margin: 0; font-size: 36px; line-height: 1.35; font-weight: 700; letter-spacing: .02em; font-feature-settings: 'palt', 'ss01'; }
:lang(en) .philo h2 { letter-spacing: -.03em; }
.philo h2 span { display: block; }
.philo p { margin: 18px 0 0; font-size: 14px; line-height: 1.6; color: var(--mute); }

/* ---------- 会社 ---------- */
.company { margin: 0 var(--mx); padding: 20px 0 56px; border-top: 1px solid var(--line); }
.company h2 { margin: 24px 0 0; font-size: 36px; line-height: 1; font-weight: 700; letter-spacing: -.035em; }
.profile { margin: 24px 0 0; border-top: 1px solid var(--line); }
.profile > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.profile dt { font-size: 12.5px; line-height: 20px; color: var(--mute); }
.profile dd { margin: 0; font-size: 15px; line-height: 24px; }
.profile dd > .ln { display: block; }
.profile .sep { margin: 0 10px; }

/* ---------- 問い合わせ（トップ） ---------- */
.cta { padding: 0 calc(var(--mx) - 8px) 40px; }
.cta-card { padding: 28px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; }
.cta h2 { margin: 22px 0 0; font-size: 36px; line-height: 1.05; font-weight: 700; letter-spacing: -.035em; }
.cta-text { margin: 14px 0 0; font-size: 15px; line-height: 1.85; color: var(--mute); text-wrap: pretty; }
.cta-pick { margin: 24px 0 0; font-size: 13px; line-height: 1.6; color: var(--mute); }
.cta .btn { margin-top: 22px; }
.btn-label { white-space: nowrap; }
/* 340px 未満：主ボタンの文言を 1 行に収める（「へ」だけが落ちないように） */
@media (max-width: 339.98px) {
  .cta-card { padding: 28px 20px; }
  .btn-main { gap: 10px; padding: 0 18px; font-size: 14px; }
}
/* 360px 未満：製品リンクの区切り「·」を消し、間隔で区切る（折り返した行の頭に「·」が残らないように） */
@media (max-width: 359.98px) {
  .p-links { gap: 0 18px; }
  .p-links .sep { display: none; }
}

/* ---------- フッター ---------- */
.site-footer { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 0 var(--mx); padding: 28px 0 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.site-footer .logo svg { width: 59.2px; height: 19px; }
.f-right { display: contents; }
.fnav { display: flex; gap: 24px; }
.fnav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mute); transition: color 150ms; }
.fnav a:hover { color: var(--fg); }
.site-footer small { font-size: 12.5px; }

/* ---------- 下層ページ共通 ---------- */
.sub { padding: 40px var(--mx) 72px; }
.sub h1 { margin: 22px 0 0; font-size: 44px; line-height: 1.05; font-weight: 700; letter-spacing: -.035em; }
.hnav-link[aria-current="page"], .fnav a[aria-current="page"] { color: var(--fg); }
.print-only { display: none; }

/* ---------- 問い合わせのページ（正本: v3_subpages の Contact・枠なしでインクの上に直に置く） ---------- */
.contact-grid { display: grid; gap: 48px; }
.c-leads { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.c-lead { margin: 0; font-size: 15px; line-height: 1.85; color: var(--mute); text-wrap: pretty; }
.c-note { display: flex; gap: 12px; max-width: 30em; margin: 20px 0 0; font-size: 14px; line-height: 1.8; color: var(--mute); }
.c-note-dot { flex: none; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--honey); box-shadow: 0 0 10px 1px rgba(233,162,59,.55); }
.c-meta { max-width: 420px; margin: 32px 0 0; border-top: 1px solid var(--line); }
.c-meta > div, .done dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.c-meta dt, .done dt { font-size: 14px; line-height: 26px; color: var(--mute); }
.c-meta dd, .done dd { margin: 0; font-size: 16px; line-height: 26px; min-width: 0; }
.contact .ul, .policy .ul { text-decoration-color: #6B6E77; text-underline-offset: 5px; }
.policy .ul { color: var(--fg); text-decoration-line: underline; }
.contact .ul:hover, .policy .ul:hover { text-decoration-color: var(--fg); }
.c-form { display: flex; flex-direction: column; gap: 32px; }
.c-form[hidden] { display: none; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: flex; align-items: baseline; margin: 0 0 10px; padding: 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--fg); }
.field > legend { margin: 0; }
.req, .opt { margin-left: 10px; font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--mute); }
.topics { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.topic { position: relative; display: inline-flex; }
.topic input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.topic > span { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border: 1px solid #6B6E77; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; transition: border-color 150ms, background-color 150ms, color 150ms; pointer-events: none; }
.topic:hover > span { border-color: var(--mute); }
.topic input:checked + span { background: var(--fg); border-color: var(--fg); color: var(--ink); }
.topic input:focus-visible + span { outline: 2px solid var(--honey); outline-offset: 3px; }
.other-topic { display: inline-flex; align-items: center; min-height: 44px; margin-left: 8px; font-size: 14px; color: var(--mute); text-decoration: underline; text-decoration-color: #6B6E77; text-underline-offset: 5px; transition: color 150ms, text-decoration-color 200ms; }
.other-topic:hover { color: var(--fg); text-decoration-color: var(--fg); }
.input { display: block; width: 100%; height: 52px; padding: 0 16px; border: 1px solid #6B6E77; border-radius: 12px; background: var(--panel); font-size: 16px; caret-color: var(--honey); transition: border-color 150ms; }
textarea.input { height: auto; min-height: 224px; padding: 14px 16px; line-height: 1.8; resize: vertical; }
.input::placeholder { color: var(--mute); opacity: 1; }
.input:hover { border-color: var(--mute); }
.input[aria-invalid="true"] { border-color: var(--coral); }
.err { margin: 10px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--coral); }
.err:empty { display: none; }
.msg-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 8px; }
.msg-foot .err { margin: 0; }
.count { margin-left: auto; font-size: 12.5px; line-height: 1.6; color: var(--mute); white-space: nowrap; }
.count.over { color: var(--coral); }
.consent { display: flex; align-items: flex-start; gap: 14px; min-height: 44px; margin-top: 10px; }
.consent label { padding-top: 1px; font-size: 15px; line-height: 1.6; color: var(--fg); cursor: pointer; }
.consent input { flex: none; appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; border: 1.5px solid #6B6E77; border-radius: 6px; background: transparent center / 14px 14px no-repeat; cursor: pointer; transition: background-color 150ms, border-color 150ms; }
.consent input:hover { border-color: var(--mute); }
.consent input:checked { background-color: var(--fg); border-color: var(--fg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4 5.6 10.4 11.5 3.8' fill='none' stroke='%2316181D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.consent input[aria-invalid="true"] { border-color: var(--coral); }
.err-consent { margin: 4px 0 0 38px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ts { min-height: 65px; }
.ts[hidden] { display: none; }
.send { display: flex; flex-direction: column; align-items: stretch; gap: 16px; margin-top: 8px; }
.submit { justify-content: center; min-width: 220px; padding: 0 32px; }
.submit[disabled] { opacity: .6; cursor: progress; }
.form-note { margin: 0; font-size: 13px; line-height: 1.7; color: var(--mute); }
.form-alert { margin: 0; padding: 12px 14px; border: 1px solid var(--coral); border-radius: 12px; font-size: 14px; line-height: 1.7; color: var(--coral); }
.form-alert[hidden] { display: none; }
.form-alert:focus { outline: none; }
.form-alert:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; }
.form-noscript { margin: 0 0 24px; padding: 14px 16px; border: 1px solid #6B6E77; border-radius: 12px; font-size: 14px; line-height: 1.8; color: var(--fg); }
.policy code { font-size: .92em; color: var(--fg); }
.done { position: relative; isolation: isolate; overflow: hidden; padding: 40px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; }
.done[hidden] { display: none; }
.done h2 { margin: 0; font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: .02em; font-feature-settings: 'palt'; outline: none; }
:lang(en) .done h2, .done h2:lang(en) { letter-spacing: -.035em; }
.done .glow { top: 62%; width: 760px; height: 460px; background: radial-gradient(closest-side, rgba(233,162,59,.14), rgba(233,162,59,.05) 45%, rgba(233,162,59,0)); }
.done.is-lit .lamp-h { color: var(--honey); text-shadow: 0 0 28px rgba(233,162,59,.6); }
.done.is-lit .glow { opacity: 1; }
.done p { max-width: 30em; margin: 20px 0 0; font-size: 16px; line-height: 1.8; color: var(--mute); }
.done dl { margin: 32px 0 0; border-top: 1px solid var(--line); }
.done dd { overflow-wrap: anywhere; }
.btn-line { display: inline-flex; align-items: center; justify-content: center; height: 52px; margin-top: 32px; padding: 0 28px; border: 1px solid #6B6E77; border-radius: 999px; font-size: 15px; font-weight: 700; transition: border-color 150ms; }
.btn-line:hover { border-color: var(--fg); }

/* ---------- ポリシー（正本: v3_subpages の Privacy Policy） ---------- */
.policy { max-width: 720px; margin: 0 auto; font-size: 16px; line-height: 1.9; color: var(--mute); }
.policy:lang(en), :lang(en) .policy { max-width: 680px; }
.sub .policy h1 { margin: 0; font-size: clamp(26px, 7.2vw, 36px); line-height: 1.2; letter-spacing: .02em; font-feature-settings: 'palt'; color: var(--fg); }
:lang(en) .sub .policy h1 { line-height: 1.1; letter-spacing: -.035em; }
.policy .p-sub { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: var(--mute); }
.policy .updated { margin: 24px 0 0; font-size: 14px; line-height: 1.7; }
.policy .ref-note { margin: 4px 0 0; font-size: 14px; line-height: 1.7; }
.policy .intro { margin: 36px 0 0; color: var(--fg); }
.policy .fg { color: var(--fg); }
.toc { margin: 40px 0 0; padding: 20px 0 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toc h2 { margin: 0; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .14em; color: var(--mute); }
.toc ol { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.6; }
.toc a { display: flex; gap: 12px; padding: 7px 0; color: var(--fg); transition: color 150ms; }
.toc a:hover { color: var(--honey); }
.toc .n { min-width: 1.25em; color: var(--mute); }
.policy section { margin-top: 56px; scroll-margin-top: 84px; }
.policy section h2 { display: flex; gap: 14px; margin: 0; font-size: 20px; line-height: 1.5; font-weight: 700; color: var(--fg); }
:lang(en) .policy section h2 { gap: 12px; }
.policy section h2 .n { color: var(--mute); }
.policy section p { margin: 16px 0 0; }
.policy h3 { margin: 32px 0 0; font-size: 16px; line-height: 1.9; font-weight: 700; color: var(--fg); }
.policy h3 + p { margin-top: 8px; }
.p-dl { margin: 20px 0 0; border-top: 1px solid var(--line); }
.p-dl > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.p-dl dt { font-size: 14px; line-height: 30px; }
.p-dl dd { margin: 0; line-height: 30px; min-width: 0; overflow-wrap: anywhere; }
.p-dl .ln { display: block; }
.p-items, .p-nums { display: flex; flex-direction: column; gap: 14px; margin: 20px 0 0; padding: 0; list-style: none; }
.p-items > li { display: grid; grid-template-columns: 2.5em minmax(0, 1fr); }
.p-bullets > li { grid-template-columns: 1.5em minmax(0, 1fr); }
.p-items > li > span:last-child > span { display: block; }
.p-nums { gap: 6px; color: var(--fg); }
.p-nums > li { display: grid; grid-template-columns: 2.5em minmax(0, 1fr); }
.p-nums > li > span:first-child { color: var(--mute); }

/* ---------- 404（正本: v3_subpages の 404） ---------- */
.nf { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 520px; padding: 0 var(--mx) 24px; overflow: hidden; }
.nf .nf-num { position: relative; z-index: 0; margin: 0; color: var(--fg); font-size: 112px; line-height: .9; font-weight: 700; letter-spacing: -.05em; }
.nf-num .lamp { color: var(--honey); text-shadow: 0 0 44px rgba(233,162,59,.6); }
.nf-num .glow { top: 72%; width: 1200px; height: 720px; opacity: 1; }
.nf h1 { margin: 40px 0 0; font-size: 22px; line-height: 1.5; font-weight: 700; letter-spacing: .02em; font-feature-settings: 'palt'; }
.nf-act { margin-top: 36px; }
.nf .btn { display: inline-flex; justify-content: center; padding: 0 28px; }

/* ========== 900px 以上：デスクトップの組み ========== */
@media (min-width: 900px) {
  :root { --px: 48px; }
  .site-header { height: 72px; padding: 0 var(--px); }
  .logo svg { width: 68.5px; height: 22px; }
  .menu-btn, .menu { display: none !important; }
  .h-right { display: flex; align-items: center; gap: 36px; }
  .gnav { display: flex; align-items: center; gap: 36px; font-size: 13px; font-weight: 500; letter-spacing: .1em; }
  .lang { display: flex; align-items: center; gap: 8px; padding-left: 28px; border-left: 1px solid var(--line); font-size: 13px; font-weight: 500; letter-spacing: .1em; }
  .lang a { padding: 6px 2px; }
  .lang .sep { color: var(--ul); }

  .hero { height: 640px; padding: 32px var(--px) 0; }
  .hero h1 { font-size: clamp(88px, 8.9vw, 128px); }
  .glow { width: 1040px; height: 600px; }
  .hero p { margin-top: 48px; font-size: 22px; line-height: 1.6; }

  .products { padding: 0 var(--px); }
  .sec-h { height: 56px; font-size: 12px; }
  .product { display: grid; grid-template-columns: minmax(0, 512px) minmax(0, 512px); justify-content: space-between; align-items: center; column-gap: 48px; padding: 24px 0 32px; }
  .product[data-product="futari"] { padding: 32px 0 40px; }
  .product[data-product="futari"] .stage { order: -1; }
  .p-text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
  .p-label { gap: 12px; font-size: 12px; line-height: 16px; }
  .p-dot { width: 8px; height: 8px; }
  .p-name { gap: 20px; margin-top: 36px; }
  .p-name img { width: 56px; height: 56px; border-radius: 12.5px; }
  .p-name h3 { font-size: 60px; }
  .p-tag { margin-top: 32px; font-size: 26px; }
  .p-body { order: 4; margin-top: 14px; font-size: 16px; line-height: 1.9; }
  .p-plat { margin-top: 28px; font-size: 13px; }
  .p-links { gap: 14px; margin-top: 12px; font-size: 15px; }
  .p-links li { gap: 14px; }
  .p-links a { min-height: 32px; text-underline-offset: 6px; }
  .stage { max-width: none; margin-top: 0; }
  .shadow1 { top: 85.9%; width: 360px; height: 64px; }
  .shadow2 { top: 88.6%; width: 236px; height: 30px; }
  .phone { top: 6.875%; width: min(258px, 51%); padding: 9px; border-radius: 43px; }
  .phone img { border-radius: 34px; }

  .philo { display: flex; flex-direction: column; justify-content: center; height: 400px; margin: 0 var(--px); padding: 0; }
  .philo h2 { font-size: 60px; line-height: 1.3; }
  .philo p { margin-top: 24px; font-size: 16px; }

  .company { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0 48px; margin: 0 var(--px); padding: 0 0 80px; }
  .company-head { padding-top: 20px; }
  .company .eyebrow { font-size: 12px; line-height: 16px; }
  .company h2 { margin-top: 40px; font-size: 60px; }
  .profile { margin: 0; border-top: 0; }
  .profile > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 15px 0; }
  .profile dt { font-size: 14px; line-height: 26px; }
  .profile dd { font-size: 16px; line-height: 26px; }
  .profile .sep { margin: 0 12px; }
  .profile .ul { text-underline-offset: 5px; }

  .cta { padding: 0 var(--px) 64px; }
  .cta-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 56px; }
  .cta .eyebrow { font-size: 12px; line-height: 16px; }
  .cta h2 { margin-top: 28px; font-size: 60px; }
  .cta-text { max-width: 30em; margin-top: 24px; font-size: 17px; line-height: 1.8; }
  .cta-pick { margin: 0; font-size: 14px; }
  .cta .pills { margin-top: 14px; }
  .cta .pills a { height: 40px; }
  .cta .btn { display: inline-flex; margin-top: 28px; padding: 0 28px; }

  .site-footer { flex-direction: row; justify-content: space-between; align-items: center; gap: 0; height: 160px; margin: 0 var(--px); padding: 0; }
  .site-footer .logo svg { width: 62.3px; height: 20px; }
  .f-right { display: flex; align-items: center; gap: 40px; }
  .fnav { gap: 32px; }
  .fnav a { min-height: 32px; }
  .site-footer small { font-size: 13px; }

  .sub { padding: 72px var(--px) 120px; }
  .sub h1 { margin-top: 28px; font-size: 60px; }
  .sub .eyebrow { font-size: 12px; line-height: 16px; }
  .contact { padding: 80px var(--px) 128px; }
  .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .c-side { position: sticky; top: 84px; }
  .c-leads { gap: 12px; max-width: 30em; margin-top: 28px; }
  .c-lead { font-size: 17px; line-height: 1.8; }
  .c-note { margin-top: 24px; }
  .c-meta { margin-top: 48px; }
  .c-meta > div, .done dl > div { grid-template-columns: 112px minmax(0, 1fr); }
  .send { align-items: flex-start; }
  .done { padding: 56px; }
  .done h2 { font-size: 48px; }
  .done p { font-size: 17px; }
  .done dl { margin-top: 36px; }
  .btn-line { margin-top: 36px; }
  .policy-wrap { padding: 88px var(--px) 144px; }
  .sub .policy h1 { font-size: 56px; }
  .policy .p-sub { margin-top: 14px; }
  .policy .updated { margin-top: 28px; }
  .policy .intro { margin-top: 44px; }
  .toc { margin-top: 48px; }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); grid-auto-flow: column; }
  .policy section { margin-top: 72px; }
  .policy section h2 { font-size: 22px; }
  .p-dl > div { grid-template-columns: 120px minmax(0, 1fr); gap: 20px; }
  :lang(en) .p-dl > div { grid-template-columns: 140px minmax(0, 1fr); }

  .nf { min-height: 640px; padding: 0 var(--px) 24px; }
  .nf .nf-num { font-size: 180px; }
  .nf h1 { margin-top: 48px; font-size: 28px; }
  .nf-act { margin-top: 40px; }
}
@media (min-width: 1200px) {
  .cta-card { grid-template-columns: minmax(0, 1fr) 520px; gap: 64px; align-items: end; }
  .contact-grid { gap: 96px; }
}
@media (min-width: 1280px) {
  :root { --px: 80px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 680px); }
  .topics { flex-wrap: nowrap; }
}

/* ---------- 強制配色（Windows のハイコントラストなど）：選んだ種別・同意を色だけに頼らず示す ---------- */
@media (forced-colors: active) {
  .topic > span { forced-color-adjust: none; border-color: CanvasText; background: Canvas; color: CanvasText; }
  .topic input:checked + span { border-color: Highlight; background: Highlight; color: HighlightText; }
  .topic input:checked + span::before { content: "✓"; margin-right: 6px; }
  .topic input:focus-visible + span { outline: 2px solid Highlight; outline-offset: 3px; }
  .consent input { appearance: auto; -webkit-appearance: checkbox; background-image: none !important; forced-color-adjust: auto; }
  .lamp, .done.is-lit .lamp-h { text-shadow: none; }
}

/* ---------- 印刷（ポリシー・会社情報は白黒で） ---------- */
@media print {
  :root { color-scheme: light; }
  *, *::before, *::after { transition: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  .site-header, .site-footer, .menu, .skip, .hero, .products, .philo, .cta, .toc, .nf .btn { display: none !important; }
  .print-only { display: block; margin: 0 0 12pt; font-size: 9pt; color: #333; }
  .policy-wrap { padding: 0; }
  .policy, .policy .fg, .policy h3, .policy section h2 .n, .toc .n { color: #000 !important; }
  .sub, .sub .policy-wrap, .sub .policy { background: #fff !important; }
  .sub .policy h1, .sub .policy h2, .sub .policy h3, .sub .policy p, .sub .policy li, .sub .policy dd, .sub .policy dt, .sub .policy a, .sub .policy .ul, .sub .policy .fg, .sub .policy code, .sub .profile dd { color: #000 !important; text-shadow: none !important; }
  .p-dl, .p-dl > div { border-color: #999 !important; }
  .sub { padding: 0; }
  .policy { max-width: none; }
  .policy h1 { font-size: 22pt; color: #000; }
  .policy p, .policy li, .policy dd, .profile dd { font-size: 10.5pt; line-height: 1.7; color: #000; }
  .policy .updated, .policy dt, .profile dt, .eyebrow { color: #333 !important; }
  .policy section { margin-top: 18pt; break-inside: avoid-page; }
  .policy section h2 { font-size: 13pt; color: #000; }
  .company { margin: 0; border-top: 1px solid #000; }
  .profile, .profile > div { border-color: #999 !important; }
  a { color: #000 !important; text-decoration: underline; }
  .policy a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
