/* 案 B（改訂）余白と明朝。色は生成りと墨だけ（ロゴと写真の色はそのまま）
   改行の決まり: 本文は keep-all で語の途中では折らない。意味の切れ目にだけ <wbr>、文の区切りは <br>。
   pc / sp の <br> は幅で出し分ける */
:root {
  --paper: #F4F1EA;
  --paper-2: #FAF8F3;
  --sumi: #2E2B28;
  --sumi-soft: #46413B;     /* 生成り地で約 9:1（高齢の読者向けに濃く） */
  --rule: rgba(46,43,40,.22);
  --on-sumi: #F4F1EA;       /* 墨地の文字 */
  --on-sumi-soft: #CFC8BC;  /* 墨地で 9.0:1 */
  --rule-on-sumi: rgba(244,241,234,.24);
  --font: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --wrap: 1120px;
  --head-h: 80px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--sumi);
  font-family: var(--font); font-size: 17px; line-height: 2; letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all; overflow-wrap: anywhere; line-break: strict;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }  /* WebP の出し分けの入れ物。並びには影響させない */
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.nowrap { white-space: nowrap; }
.tcy { text-combine-upright: all; -webkit-text-combine: horizontal; }
br.sp { display: none; }


/* 本文へ進む（キーボードで最初に止まる） */
.skip { position: absolute; left: 8px; top: -120px; z-index: 60; padding: 12px 18px; background: var(--sumi); color: var(--paper); text-decoration: none; }
.skip:focus { top: 8px; }

/* ヘッダー: 幅いっぱい。冒頭の写真があるページは透明で始まり、スクロールで生成りに。下層のページは最初から生成り（.is-static） */
.site-head { position: sticky; top: 0; z-index: 20; margin-bottom: calc(var(--head-h) * -1); height: var(--head-h); background: transparent; border-bottom: 1px solid transparent; transition: background-color .35s ease, border-color .35s ease; }
.site-head.is-static { margin-bottom: 0; }
.site-head.is-solid { background: rgba(244,241,234,.97); border-bottom-color: var(--rule); }
.site-head .wrap { max-width: none; padding: 0 48px; height: 100%; display: flex; align-items: center; gap: 32px; }
.site-head .brand { margin-right: auto; flex-shrink: 0; }
.site-head .brand img { height: 34px; width: auto; }  /* ロゴは白い地を抜いた透過版（make_assets.py の clear_logo） */
.site-nav { display: flex; gap: 32px; font-size: 16px; }
.site-nav a { position: relative; text-decoration: none; padding: 6px 0; white-space: nowrap; text-shadow: 0 0 10px rgba(244,241,234,.9), 0 0 2px rgba(244,241,234,.9); }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left center; transition: transform .35s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.head-contact { flex-shrink: 0; min-height: 44px; padding: 0 22px; font-size: 15px; }
/* 写真の上（透明のあいだ）は、白抜きの文字が写真に溶けないよう線のボタンに */
.site-head:not(.is-solid) .head-contact { background: transparent; color: var(--sumi); }
.menu-btn { display: none; flex-shrink: 0; align-items: center; gap: 10px; min-height: 48px; min-width: 48px; padding: 0 6px; margin-right: -6px; color: var(--sumi); text-decoration: none; font-size: 15px; letter-spacing: .12em; white-space: nowrap; cursor: pointer; text-shadow: 0 0 10px rgba(244,241,234,.9); }
.menu-lines { position: relative; display: block; width: 22px; height: 1px; background: currentColor; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; width: 22px; height: 1px; background: currentColor; }
.menu-lines::before { top: -7px; }
.menu-lines::after { top: 7px; }

/* スマホ・タブレットの全画面のメニュー */
html.menu-open { overflow: hidden; }
.drawer { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: var(--paper); overflow-y: auto; overscroll-behavior: contain; }
.drawer[hidden] { display: none; }
/* 開け閉めの動き（JS が is-open を付け外しし、閉じる動きが終わってから hidden に戻す）。
   地は 300ms でフェード、項目は少し下から 1 つずつ。閉じるときはまとめて 220ms で消す */
.js .drawer { opacity: 0; transition: opacity .22s ease; }
.js .drawer.is-open { opacity: 1; transition-duration: .3s; }
.js .drawer:not(.is-open) { pointer-events: none; }
.js .drawer-nav li, .js .drawer-ctas { opacity: 0; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
.js .drawer.is-open .drawer-nav li, .js .drawer.is-open .drawer-ctas { opacity: 1; transform: none; transition: opacity .3s ease, transform .3s cubic-bezier(.2,.6,.2,1); transition-delay: calc(60ms + var(--n, 0) * 24ms); }
.drawer-nav li:nth-child(2) { --n: 1; } .drawer-nav li:nth-child(3) { --n: 2; } .drawer-nav li:nth-child(4) { --n: 3; }
.drawer-nav li:nth-child(5) { --n: 4; } .drawer-nav li:nth-child(6) { --n: 5; } .drawer-nav li:nth-child(7) { --n: 6; }
.drawer-nav li:nth-child(8) { --n: 7; } .drawer-nav li:nth-child(n+9) { --n: 8; } .drawer-ctas { --n: 9; }
.drawer-bar { flex-shrink: 0; height: var(--head-h); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid var(--rule); }
.drawer-bar .brand img { height: 30px; width: auto; }
.drawer-close { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 6px; margin-right: -6px; background: none; border: 0; cursor: pointer; font-size: 15px; letter-spacing: .12em; }
.close-x { position: relative; width: 20px; height: 20px; }
.close-x::before, .close-x::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 1px; background: currentColor; transform: rotate(45deg); }
.close-x::after { transform: rotate(-45deg); }
.drawer-inner { width: 100%; max-width: 560px; margin: 0 auto; padding: 16px 24px 56px; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 4px 10px 0; border-bottom: 1px solid var(--rule); font-size: 18px; letter-spacing: .1em; text-decoration: none; }
.drawer-nav a::after { content: ""; flex-shrink: 0; margin-left: auto; width: 8px; height: 8px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.drawer-nav a[aria-current="page"] { font-weight: 600; }
.drawer-nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.drawer-nav a:focus-visible { outline-offset: -2px; }  /* 幅いっぱいの行なので、枠は行の内側に */
.soon { display: inline-block; padding: 0 8px; border: 1px solid var(--sumi-soft); font-size: 12px; line-height: 1.8; letter-spacing: .08em; color: var(--sumi-soft); }
.drawer-ctas { display: grid; gap: 12px; margin-top: 36px; }
.drawer-ctas .btn { width: 100%; padding: 0 16px; }
.ext { font-size: .82em; letter-spacing: .02em; }

/* パンくず（下層のページの上部。写真で始まるページは写真の下） */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; font-size: 14px; line-height: 1.8; letter-spacing: .06em; color: var(--sumi-soft); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; margin: 0 14px 0 10px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.crumbs a { display: inline-block; padding: 8px 0; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--sumi); }
.crumbs-bar { padding: 12px 0; border-bottom: 1px solid var(--rule); }

/* 下層のページの冒頭（2026-10-11 山上さん 案 A を採用。docs/03_デザイン/20261011_下層メインビジュアル3案.md）
   画面の幅いっぱいの写真の上に、パンくず・見出し・リード文。ヘッダーはトップと同じく写真の上で透明、過ぎたら生成り（main.js の #heroSentinel）。
   文字は左から差す生成りの光の上（スマホは下から生成りに溶かした上）。写真ごとの寄せる位置は --pos（スマホは --pos-sp）、写真の縁を外す拡大は --zoom。
   文字の左端は本文の列（.wrap）と同じ（2026-10-11 ディレクター。最大幅 var(--wrap)、左右 40px、スマホ 24px）。写真は画面の幅いっぱい。
   PC（1024px 以上）の生成りの光は、文字の左端 --hx から測って置く（画面が広くても文字の後ろに光が来るように）
   型は 3 つ: 標準（気持ちに触れるページ・読むページ）／.is-low（お問い合わせ。フォームへ早く届くよう低く）／.is-plain（規約など文章が主のページ。写真の代わりに一段明るい生成りの面で、低く） */
.page-hero { --hx: max(40px, calc((100vw - var(--wrap)) / 2 + 40px)); position: relative; display: flex; flex-direction: column; min-height: clamp(520px, 72svh, 680px); padding-top: var(--head-h); overflow: hidden; }
.page-hero-photo { position: absolute; inset: 0; z-index: 0; }
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: scale(var(--zoom, 1)); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(244,241,234,.82), rgba(244,241,234,0) 220px),
              linear-gradient(90deg, rgba(244,241,234,.93) 0, rgba(244,241,234,.88) calc(var(--hx) + 420px), rgba(244,241,234,.5) calc(var(--hx) + 680px), rgba(244,241,234,0) calc(var(--hx) + 900px)); }
.page-hero-body { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.page-hero .crumbs { padding-top: 12px; }
.page-hero .crumbs a, .page-hero .crumbs li { text-shadow: 0 0 10px rgba(244,241,234,.95); }
.page-hero-copy { margin-top: auto; padding: 48px 0 80px; max-width: 600px; }
.page-title { font-weight: 500; font-size: 40px; line-height: 1.6; letter-spacing: .14em; text-shadow: 0 0 16px rgba(244,241,234,.9); }
.page-lead { margin-top: 24px; max-width: 36em; text-shadow: 0 0 12px rgba(244,241,234,.9), 0 0 2px rgba(244,241,234,.9); }
.page-hero .page-core { text-shadow: 0 0 16px rgba(244,241,234,.9); }
.page-hero.is-plain .page-lead { color: var(--sumi-soft); }
.page-hero .tag { display: inline-block; margin-bottom: 16px; padding: 0 12px; border: 1px solid var(--sumi); background: rgba(244,241,234,.7); font-size: 14px; line-height: 2; letter-spacing: .12em; }
.page-hero.is-low { min-height: clamp(400px, 50svh, 460px); }
.page-hero.is-low .page-hero-copy { padding: 40px 0 56px; }
.page-hero.is-plain { min-height: clamp(300px, 36svh, 360px); background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.page-hero.is-plain::before { content: none; }
.page-hero.is-plain .page-hero-copy { padding: 40px 0 56px; }
/* 冒頭のすぐ下に置く注記・目次（料金の「価格は予定」、よくある質問の分類）。写真の外に出して、生成りの地で読む */
.page-after { max-width: var(--wrap); margin: 0 auto; padding: 48px 40px 0; }
.page-after > :first-child { margin-top: 0; }
.page-hero + .sec, .page-after + .sec { padding-top: 96px; }
@media (max-width: 1239px) {
  .page-hero-copy { max-width: 500px; }
}
@media (max-width: 1023px) {
  .page-hero::before { background: linear-gradient(rgba(244,241,234,.82), rgba(244,241,234,0) 200px),
                                  linear-gradient(90deg, rgba(244,241,234,.94) 0, rgba(244,241,234,.88) 56%, rgba(244,241,234,.5) 74%, rgba(244,241,234,0) 92%); }
}
@media (max-width: 760px) {
  .page-hero, .page-hero.is-low, .page-hero.is-plain { min-height: 0; }
  .page-hero-photo img { object-position: var(--pos-sp, var(--pos, 50% 50%)); }
  .page-hero::before { background: linear-gradient(rgba(244,241,234,.9) 0, rgba(244,241,234,.82) 130px, rgba(244,241,234,0) 210px),
                                  linear-gradient(to top, #F4F1EA 0, rgba(244,241,234,.94) 42%, rgba(244,241,234,.6) 54%, rgba(244,241,234,0) 70%); }
  .page-hero-body, .page-after { padding-left: 24px; padding-right: 24px; }
  .page-hero-copy { padding: 210px 0 48px; }
  .page-hero.is-low .page-hero-copy { padding: 210px 0 48px; }  /* スマホでは標準と同じ高さにして、上の写真が見えるように（2026-10-11 QA） */
  .page-hero.is-plain .page-hero-copy { padding: 36px 0 40px; }
  .page-title { font-size: 28px; letter-spacing: .1em; }
  .page-lead { margin-top: 18px; }
  .page-after { padding-top: 32px; }
  .page-hero + .sec, .page-after + .sec { padding-top: 64px; }
}

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 34px; border: 1px solid var(--sumi); border-radius: 2px; font-family: inherit; font-size: 16px; letter-spacing: .12em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.btn-fill { background: var(--sumi); color: var(--paper); }
.btn-fill:hover { background: #45403B; }
.btn-fill:focus-visible { outline-color: var(--sumi); }  /* 文字色（生成り）の枠だと生成りの地で見えないので墨に */
.btn-paper { background: var(--paper); color: var(--sumi); }
.btn-paper:hover { background: var(--paper-2); }

/* 冒頭（#1・#2・#3）: 画面いっぱいの写真。右の明るい所に縦書き */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; }  /* svh はアドレスバーの出入りで揺れない。古いブラウザは vh */
.hero-photo { position: absolute; inset: 0; }
.hero-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 120px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 160px; z-index: 1; background: linear-gradient(rgba(244,241,234,.75), rgba(244,241,234,0)); pointer-events: none; }
.hero-copy { position: absolute; z-index: 2; top: calc(var(--head-h) + 6vh); right: 21vw; display: flex; flex-direction: column; align-items: flex-end; gap: 36px; }
.hero-tate { position: relative; display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 44px; }
/* 写真の柱や影の上でも読めるよう、文字の後ろだけ生成りをごく淡く */
.hero-tate::before { content: ""; position: absolute; inset: -70px -80px -60px -90px; z-index: -1; background: radial-gradient(closest-side, rgba(244,241,234,.62), rgba(244,241,234,.38) 60%, rgba(244,241,234,0)); pointer-events: none; }
/* 2026-10-24 写真の差し替え（p07 こたつの上に広げた昔の写真。全面に細かい）: 葬儀社の方へ（イントロの無いメインビジュアル）も、PC は文字の後ろの生成りをトップと同じ濃さに */
@media (min-width: 901px) {
  .hero:not(.has-intro) .hero-tate::before { inset: -110px -150px -130px -170px; background: radial-gradient(closest-side, rgba(244,241,234,.92), rgba(244,241,234,.88) 52%, rgba(244,241,234,.6) 76%, rgba(244,241,234,0)); }
}
.catch { writing-mode: vertical-rl; font-weight: 500; font-size: 54px; line-height: 1.7; letter-spacing: .18em; white-space: nowrap; text-shadow: 0 0 24px rgba(244,241,234,.85), 0 0 4px rgba(244,241,234,.7); }
.catch > span { display: block; }  /* 行。1 文字ずつの .ch（トップ）は行の中の inline */
.hero-sub { writing-mode: vertical-rl; font-size: 16px; line-height: 2.1; letter-spacing: .12em; white-space: nowrap; color: var(--sumi); text-shadow: 0 0 14px rgba(244,241,234,.95), 0 0 3px rgba(244,241,234,.9); }
.hero-sub span { display: block; }
.hero .ctas { display: flex; gap: 12px; }

section { scroll-margin-top: var(--head-h); }
.sec { padding: 140px 0; }
.sec-title { font-weight: 500; font-size: 34px; line-height: 1.7; letter-spacing: .14em; }
.sec-lead { margin-top: 24px; color: var(--sumi-soft); }

/* 仕組み（#5）: 縦書き 3 列。上端をそろえ、右から読む */
.how .wrap { display: grid; grid-template-columns: 1fr 360px; gap: 80px; align-items: start; }
.how-cols { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: flex-start; }
.how-cols li { writing-mode: vertical-rl; height: 380px; padding: 0 44px; border-right: 1px solid var(--rule); white-space: nowrap; }
.how-cols li:first-child { border-right: 0; padding-right: 0; }
.how-cols h3 { font-weight: 600; font-size: 30px; letter-spacing: .3em; margin-left: 28px; }
.how-cols p { color: var(--sumi-soft); font-size: 17px; line-height: 2.2; }
.how-side { padding-top: 6px; order: 2; }  /* 見出しの順のため DOM では先、見た目は右 */
.how-side .core { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--rule); font-size: 16px; line-height: 2.1; color: var(--sumi-soft); }

/* スクロールで広がる写真（#7） */
.grow { padding: 0 0 20px; }
.grow-frame { --inset: 80px; --round: 24px; overflow: clip; }  /* hidden だとスクロール領域になり view() の基準がずれる */
.grow-frame img { width: 100%; height: 660px; object-fit: cover; clip-path: inset(0 calc(var(--inset) * (1 - var(--p, 1))) round calc(var(--round) * (1 - var(--p, 1)))); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .grow-frame img { animation: grow-open linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
    @keyframes grow-open {
      from { clip-path: inset(0 var(--inset) round var(--round)); }
      to { clip-path: inset(0 0 round 0); }
    }
  }
}

/* ご家族へ（#9） */
.family .wrap { display: grid; grid-template-columns: 5fr 6fr; gap: 112px; align-items: start; }
.family-photo { position: sticky; top: calc(var(--head-h) + 40px); }
.family-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.family-photo figcaption { margin-top: 12px; font-size: 15px; color: var(--sumi-soft); }
.gifts { margin-top: 64px; }
.gifts li { padding: 40px 0; border-top: 1px solid var(--rule); }
.gifts li:last-child { border-bottom: 1px solid var(--rule); }
.gifts h3 { font-weight: 600; font-size: 21px; letter-spacing: .12em; }
.gifts p { margin-top: 14px; color: var(--sumi-soft); line-height: 2.1; }

/* まず、写真を一枚（#10） */
.guest { text-align: center; padding-top: 40px; }
.guest .big { font-size: 40px; font-weight: 500; letter-spacing: .24em; line-height: 1.8; }
.guest .three { margin: 56px auto 0; max-width: 840px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.guest .three img { width: 168px; height: 168px; margin: 0 auto; object-fit: contain; -webkit-mask-image: radial-gradient(closest-side, #000 86%, transparent 100%); mask-image: radial-gradient(closest-side, #000 86%, transparent 100%); }
.guest .three span { display: block; margin-top: 14px; font-size: 19px; letter-spacing: .14em; }
.guest p.note { margin-top: 48px; color: var(--sumi-soft); }

/* 写真 1 枚（動かない） */
.plate img { width: 100%; height: 560px; object-fit: cover; }

/* 葬儀場の方へ */
.biz-frame { background: var(--paper-2); border: 1px solid var(--sumi); outline: 1px solid var(--sumi); outline-offset: 6px; padding: 88px 96px; margin: 0 8px; }
.biz-frame .head { text-align: center; }
.terms { max-width: 560px; margin: 64px auto 0; }
.terms div { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; }
.terms div + div { border-top: 1px dotted var(--rule); }
.terms dt { font-size: 17px; white-space: nowrap; }
.terms .lead-dots { flex: 1; border-bottom: 1px dotted rgba(46,43,40,.4); transform: translateY(-6px); min-width: 24px; }
.terms dd { font-size: 17px; white-space: nowrap; }
.terms dd b { font-size: 34px; font-weight: 500; letter-spacing: .04em; margin: 0 4px; }
.sub-title { margin-top: 96px; text-align: center; font-weight: 600; font-size: 22px; letter-spacing: .14em; line-height: 1.8; }

/* 会場でのご案内（#13）: 2×2。囲まず、写真と添え書き */
.prep { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px 48px; }
.prep figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.prep figure img.top { object-position: 50% 0; }
.prep figcaption { margin-top: 18px; }
.prep figcaption b { display: block; font-weight: 600; font-size: 18px; letter-spacing: .1em; }
.prep figcaption > span { display: block; margin-top: 6px; color: var(--sumi-soft); font-size: 16px; line-height: 2; }
.prep blockquote { margin-top: 12px; padding-left: 16px; border-left: 1px solid var(--sumi); font-size: 16px; line-height: 2; }

/* 会葬礼状（#12）: 文字の無い礼状の写真に、縦書きの文面を HTML で重ねる。位置は %、文字は礼状の幅に比例（cqw） */
.reijo { margin-top: 48px; }
.reijo-win { position: relative; overflow: hidden; aspect-ratio: 873 / 1000; max-width: 600px; margin: 0 auto; }
.reijo-win .stage { width: 222.2%; margin-left: -26.7%; margin-top: -26.5%; }  /* 礼状 x12〜57%・y16〜85% を窓に。600px で本文約 15px */
.stage { position: relative; container-type: inline-size; }
.stage > img, .stage > picture > img { width: 100%; }
.reijo-text { position: absolute; left: 17.4%; top: 28.4%; width: 28.4%; height: 39.5%; writing-mode: vertical-rl; font-size: 1.12cqw; line-height: 1.7; letter-spacing: .06em; color: #3A3632; white-space: nowrap; overflow: hidden; }
.reijo-text p { display: block; }
.reijo-text .gap { margin-left: .55em; }
.reijo-text .end { text-align: end; }
.reijo-text .date { padding-top: 2em; margin-left: .3em; }
.reijo-qr { position: absolute; left: 18.2%; top: 70.4%; display: flex; align-items: center; gap: .8cqw; font-size: .95cqw; letter-spacing: .06em; color: #3A3632; }
.reijo-qr img { width: 4.6cqw; height: 4.6cqw; }
.reijo figcaption { margin-top: 16px; font-size: 16px; color: var(--sumi-soft); text-align: center; }

/* ご案内のことば（#14） */
.talk { margin-top: 88px; padding-top: 48px; border-top: 1px solid var(--rule); text-align: center; }
.talk small { display: block; font-size: 15px; color: var(--sumi-soft); }
.talk p { margin-top: 14px; font-size: 20px; line-height: 2.2; }

/* 導入の流れ */
.steps { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 56px; }
.steps li { padding: 32px 0 40px; border-top: 1px solid var(--sumi); }
.steps li:nth-child(n+4) { border-top-color: var(--rule); }
.steps .n { display: block; font-size: 26px; font-weight: 500; line-height: 1.4; color: var(--sumi); letter-spacing: .1em; }
.steps h3 { margin-top: 4px; font-weight: 600; font-size: 22px; letter-spacing: .14em; }
.steps p { margin-top: 8px; color: var(--sumi-soft); font-size: 16px; }

/* 安心 */
.safe .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; }
.safe-photo img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.safe dl { margin-top: 48px; }
.safe dl div { padding: 22px 0; border-top: 1px solid var(--rule); }
.safe dt { font-weight: 600; font-size: 18px; letter-spacing: .1em; }
.safe dd { margin-top: 4px; color: var(--sumi-soft); font-size: 16px; }

/* よくある質問（#15）: ボタンで開閉。高さはなめらかに、記号は回転 */
.faq .wrap { max-width: 860px; }
.qa { margin-top: 56px; border-bottom: 1px solid var(--rule); }
.qa-item { border-top: 1px solid var(--rule); }
.qa-q { margin: 0; font-size: inherit; font-weight: inherit; }
.qa-q button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; background: none; border: 0; text-align: left; cursor: pointer; font-size: 18px; font-weight: 500; letter-spacing: .08em; line-height: 1.8; }
.qa-mark { position: relative; flex: 0 0 18px; height: 18px; }
.qa-mark::before, .qa-mark::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform .35s ease; }
.qa-mark::after { transform: rotate(90deg); }
.qa-item.is-open .qa-mark::after { transform: rotate(0deg); }
.qa-item.is-open .qa-mark::before { transform: rotate(180deg); }
.qa-a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .4s ease; }
.js .qa-item:not(.is-open) .qa-a { grid-template-rows: 0fr; }
.qa-a > div { overflow: hidden; }
.qa-a p { padding: 0 0 30px; color: var(--sumi-soft); }

/* 各ページの最後の「次の行動」の帯: 墨の地でフッターへ続ける（短い見出し 1 行＋ボタン 2 つまで） */
.next { background: var(--sumi); color: var(--on-sumi); padding: 128px 0; text-align: center; }
.next-title { font-weight: 500; font-size: 30px; line-height: 1.7; letter-spacing: .14em; }
.next-lead { margin: 24px auto 0; max-width: 36em; color: var(--on-sumi-soft); }
.next-ctas { margin-top: 48px; display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.next .btn-paper { border-color: var(--on-sumi); }
.next .btn-paper:focus-visible { outline-color: var(--on-sumi); }  /* 墨の地では生成りの枠に */
.btn-ghost { background: transparent; color: var(--on-sumi); border-color: var(--on-sumi); }
.btn-ghost:hover { background: rgba(244,241,234,.08); }
.next-mail { margin-top: 36px; font-size: 15px; color: var(--on-sumi-soft); }
.next-mail a { color: var(--on-sumi); letter-spacing: .06em; }

/* トップ: 使い方の 4 つの段と、立場ごとのご案内 */
.steps-4 { grid-template-columns: repeat(2, 1fr); gap: 0 72px; max-width: 960px; }  /* 4 列では 1 行が短すぎて句読点だけの行ができるので 2 列 × 2 段 */
.steps-4 li:nth-child(n+3) { border-top-color: var(--rule); }
.steps p.small { margin-top: 10px; font-size: 14px; line-height: 1.9; }
.roles-sec { background: var(--paper-2); border-top: 1px solid var(--rule); }
.roles { margin-top: 72px; display: grid; gap: 112px; }
/* 立場ごとに、写真と文を左右交互に（2026-10-11 山上さん）。写真は 7、文は 5 の幅。狭い幅は写真が上・文が下 */
.roles li { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 88px; align-items: center; }
.roles li:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.roles li:nth-child(even) .role-photo { order: 2; }
.role-photo { overflow: hidden; }
.role-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.role-photo img.trim { transform: scale(1.04); }  /* 元の写真の縁に白い余白（12px）があるもの（kyoto_autumn）は、少し寄せて縁を見せない */
.role-photo img.pos-low { object-position: 50% 75%; }  /* 縦長の写真は、人の写っている下の方を見せる */
.role-text { padding-top: 32px; border-top: 1px solid var(--sumi); }
.roles h3 { font-weight: 600; font-size: 26px; line-height: 1.7; letter-spacing: .12em; }
.roles p { margin-top: 16px; color: var(--sumi-soft); line-height: 2.1; }
.roles .btn { margin-top: 36px; }

/* お問い合わせ（P10）: 生成りの地のフォーム。大きな押しやすい欄、誤りは欄のすぐ下に（色に頼らず、太字と線で） */
.contact-body .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 640px); gap: 96px; align-items: start; }
.contact-aside { position: sticky; top: calc(var(--head-h) + 40px); }
.contact-aside h2 { font-size: 18px; font-weight: 600; letter-spacing: .1em; }
.contact-aside ul { margin-top: 16px; border-bottom: 1px solid var(--rule); }
.contact-aside li { padding: 16px 0; border-top: 1px solid var(--rule); font-size: 15px; line-height: 2; color: var(--sumi-soft); }
.contact-aside a { color: var(--sumi); }
.cform { display: grid; gap: 40px; }
.cform .field { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.cform .field[hidden] { display: none; }
.cform .field > label, .cform legend { padding: 0; font-size: 17px; font-weight: 600; line-height: 1.8; letter-spacing: .08em; }
.cform legend { margin-bottom: 10px; }
.req, .opt { display: inline-block; margin-left: 10px; padding: 0 8px; font-size: 12px; font-weight: 500; line-height: 1.9; letter-spacing: .08em; vertical-align: 2px; }
.req { background: var(--sumi); color: var(--paper); }
.opt { border: 1px solid var(--sumi-soft); color: var(--sumi-soft); }
.only-note { margin-left: 10px; font-size: 14px; font-weight: 400; color: var(--sumi-soft); }
.js .only-note { display: none; }
.cform input:not([type="radio"]):not([type="checkbox"]), .cform textarea { width: 100%; min-height: 56px; padding: 12px 16px; font: inherit; font-size: 17px; letter-spacing: .04em; color: var(--sumi); background: var(--paper-2); border: 1px solid rgba(46,43,40,.5); border-radius: 2px; }
.cform textarea { min-height: 200px; line-height: 1.9; resize: vertical; }
.cform input:focus, .cform textarea:focus { outline: 2px solid var(--sumi); outline-offset: 1px; border-color: var(--sumi); }
.cform input[aria-invalid="true"]:not([type="radio"]):not([type="checkbox"]), .cform textarea[aria-invalid="true"] { border: 2px solid var(--sumi); padding: 11px 15px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 16px; border: 1px solid rgba(46,43,40,.35); border-radius: 2px; background: var(--paper-2); font-size: 16px; line-height: 1.6; letter-spacing: .06em; cursor: pointer; }
.choice:hover { border-color: var(--sumi); }
.choice:has(input:checked) { border: 2px solid var(--sumi); padding: 9px 15px; font-weight: 600; }
.choice input, .check input { flex-shrink: 0; width: 22px; height: 22px; margin: 0; accent-color: var(--sumi); }
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding-top: 4px; font-size: 16px; line-height: 1.9; cursor: pointer; }
.check input { margin-top: 4px; }
.field-err { padding-left: 12px; border-left: 3px solid var(--sumi); font-size: 15px; font-weight: 600; line-height: 1.8; }
.field-err::before { content: "※ "; }
.field-err[hidden], .form-errors[hidden] { display: none; }
.field-err, .form-errors, .form-status, .invalid-list { word-break: normal; }  /* サーバーの文は「|」の区切りを持たないので、普通の折り返しに */
.form-errors { padding: 16px 20px; border: 2px solid var(--sumi); background: var(--paper-2); font-size: 16px; font-weight: 600; line-height: 1.9; }
.form-errors:focus { outline: none; }
.form-send { display: grid; justify-items: start; gap: 16px; padding-top: 8px; }
.form-send .btn { min-width: 280px; }
.btn:disabled { opacity: .6; cursor: progress; }
.form-status { padding-left: 12px; border-left: 3px solid var(--sumi); font-size: 16px; font-weight: 600; line-height: 1.9; }
.form-status:empty { display: none; }
.cform input, .cform textarea, .form-errors { scroll-margin-top: calc(var(--head-h) + 140px); }  /* 誤りの欄へ移ったとき、上の見出しと誤りの文まで見えるように */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* 送信完了・準備中のページ */
.thanks-note, .stub p { max-width: 40em; color: var(--sumi-soft); }
.thanks-ctas, .stub-ctas { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
/* 入力の誤りの画面（JS の無い方。Laravel の site/contact_invalid.blade.php） */
.invalid-list { max-width: 40em; }
.invalid-list li::before { content: "※ "; }
.invalid-list li + li { margin-top: 6px; }
.invalid-list + .thanks-note { margin-top: 32px; }

/* 長い文章のページ（規約・ポリシー・特商法）: 目次と条の見出し。本文は 1 行 38 字ほど（40em） */
.page-hero + .doc { padding-top: 64px; }
.doc-band { margin-bottom: 56px; padding: 18px 24px; border: 1px solid var(--sumi); background: var(--paper-2); font-size: 16px; line-height: 1.9; }
.doc-grid { display: grid; grid-template-columns: 260px minmax(0, 40em); gap: 80px; align-items: start; }
.doc-toc { position: sticky; top: calc(var(--head-h) + 24px); max-height: calc(100vh - var(--head-h) - 48px); overflow-y: auto; padding-right: 8px; font-size: 14px; line-height: 1.7; }
.doc-toc summary { padding-bottom: 12px; border-bottom: 1px solid var(--rule); font-size: 15px; font-weight: 600; letter-spacing: .12em; list-style: none; cursor: pointer; }
.doc-toc summary::-webkit-details-marker { display: none; }
.doc-toc ol { padding-top: 8px; }
.doc-toc a { display: block; padding: 6px 0; color: var(--sumi-soft); text-decoration: none; }
.doc-toc a:hover { color: var(--sumi); text-decoration: underline; }
.doc-body { line-break: strict; }  /* 2026-10-14: 本文に文節の切れ目の印（add_breaks.py・BudouX）を入れたので、ほかのページと同じく keep-all（文節の切れ目で折る）に戻した。前は印が無く word-break: normal だった */
.doc-sec { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--head-h) + 16px); }
.doc-sec:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-sec h2 { margin-bottom: 16px; font-size: 20px; font-weight: 600; line-height: 1.7; letter-spacing: .08em; }
.doc-sec p + p, .doc-sec p + ol, .doc-sec ol + p, .doc-sec .doc-table-wrap, .doc-sec .doc-table-wrap + ol, .doc-sec ul { margin-top: 16px; }
.doc-items { list-style: decimal; padding-left: 1.8em; }
.doc-items > li { padding-left: .3em; }
.doc-items > li + li { margin-top: 12px; }
.doc-sub { margin-top: 8px; }
.doc-sub li { display: flex; gap: .5em; }
.doc-sub li + li { margin-top: 4px; }
.doc-sub .no { flex-shrink: 0; }
.doc-bullets { list-style: disc; padding-left: 1.4em; }
.doc-table-wrap { overflow-x: auto; }
.doc-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.8; }
.doc-table th, .doc-table td { padding: 10px 12px; border: 1px solid var(--rule); text-align: left; vertical-align: top; }
.doc-table th { font-weight: 600; background: var(--paper-2); }
.doc-end { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--sumi-soft); }

/* フッター: 紹介・サイトの案内・軸のことば（縦書き）／規約などの行と仮の会社情報の注記／ロゴと © */
.site-foot { background: var(--sumi); color: var(--on-sumi); }
.foot-main { border-top: 1px solid var(--rule-on-sumi); padding: 96px 0 80px; }
.foot-main .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 80px; align-items: start; }
.foot-about { max-width: 30em; }
.foot-about h2, .foot-map h2 { font-size: 16px; font-weight: 600; letter-spacing: .12em; color: var(--on-sumi); }
.foot-about p { margin-top: 14px; font-size: 15px; line-height: 2.1; color: var(--on-sumi-soft); }
.foot-map ul { margin-top: 10px; display: grid; grid-template-columns: auto auto; grid-template-rows: repeat(6, auto); grid-auto-flow: column; gap: 0 40px; font-size: 15px; }  /* 上から下へ、左の列から読む */
.foot-map a { display: inline-block; padding: 7px 0; line-height: 1.7; text-decoration: none; border-bottom: 1px solid transparent; }
.foot-map a:hover { border-bottom-color: var(--on-sumi); }
.foot-map a[aria-current="page"] { border-bottom-color: var(--rule-on-sumi); }
.foot-words { writing-mode: vertical-rl; height: 280px; font-size: 20px; line-height: 2.2; letter-spacing: .14em; white-space: nowrap; }
.foot-words span { display: block; }
.foot-legal { border-top: 1px solid var(--rule-on-sumi); padding: 20px 0; }
.foot-legal .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 14px; }
.foot-links a { display: inline-block; padding: 8px 0; text-decoration: none; }
.foot-links a:hover, .foot-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.foot-note { font-size: 13px; color: var(--on-sumi-soft); }
.foot-base { padding: 28px 0 36px; background: var(--paper); color: var(--sumi); }  /* ロゴの文字（墨）が墨の地に沈まないよう、ロゴの帯だけ生成りの地に（ロゴの色は変えない） */
.foot-base .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.foot-brand { display: block; flex-shrink: 0; }  /* picture の source が並びの 1 つに数えられないよう包む */
.foot-base img { height: 30px; width: auto; }
.foot-base small { font-size: 14px; color: var(--sumi-soft); }

/* 小さめの PC・タブレット */
@media (max-width: 1100px) {
  .hero-copy { right: 12vw; }
  .catch { font-size: 46px; }
  .how .wrap { grid-template-columns: 1fr; gap: 64px; }
  .how-cols { justify-content: center; }
  .biz-frame { padding: 64px 48px; }
  .family .wrap, .safe .wrap { gap: 64px; }
}
/* タブレット: 導入の流れは 2 列（3 列だと句読点だけの行ができる） */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(n+3) { border-top-color: var(--rule); }
}
/* タブレット縦・スマホ: PC と同じく画面いっぱいの写真の上に縦書き（2026-10-11 山上さん）。
   写真は横長なので縦長の画面では高さで合わせた切り抜き。見せる位置は、障子の明るい所が右上（文字の下）、
   手と古い写真が見出しとボタンの間に来るように。上に見出しと添え文、下にボタン（最初の画面に収める） */
@media (max-width: 900px) {
  .hero { min-height: 560px; }
  .hero-photo img { object-position: 40% 50%; }
  .hero-copy { top: var(--head-h); right: 0; bottom: 0; left: 0; align-items: stretch; justify-content: space-between; gap: 24px; padding: 20px 6vw calc(32px + env(safe-area-inset-bottom, 0px)); }
  .hero-tate { align-self: flex-end; gap: 28px; }
  /* 文字の後ろの光: PC と同じ生成りのぼかし。画面の幅いっぱいに文字が並ぶので、楕円を大きくとって文字の端（障子の桟の上）まで濃さを保つ */
  .hero-tate::before { inset: -110px -120px -120px -120px; background: radial-gradient(closest-side, rgba(244,241,234,.82), rgba(244,241,234,.78) 50%, rgba(244,241,234,.5) 78%, rgba(244,241,234,0)); }
  .catch { font-size: 40px; line-height: 1.6; }
  .hero .ctas { align-self: flex-end; }
  .family .wrap, .safe .wrap { grid-template-columns: 1fr; }
  .family-photo { position: static; max-width: 520px; }
  .prep { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
}
/* スマホ */
@media (max-width: 760px) {
  body { font-size: 16px; line-height: 1.95; }
  br.pc { display: none; }
  br.sp { display: inline; }
  :root { --head-h: 64px; }
  .wrap { padding: 0 24px; }
  .site-head .wrap { padding: 0 20px; }
  .site-head .brand img { height: 28px; }
  .hero-copy { padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .hero-tate { align-self: center; gap: 18px; }
  .catch { font-size: 34px; line-height: 1.55; letter-spacing: .14em; }
  .hero-sub { font-size: 15px; line-height: 1.85; letter-spacing: .1em; }
  .hero .ctas { flex-direction: column; width: 100%; align-self: stretch; gap: 10px; }
  .hero .ctas .btn { width: 100%; }
  .sec { padding: 96px 0; }
  .sec-title { font-size: 25px; letter-spacing: .1em; }
  .how-cols { flex-direction: column; }
  .how-cols li { writing-mode: horizontal-tb; height: auto; padding: 28px 0; border-right: 0; border-top: 1px solid var(--rule); white-space: normal; }
  .how-cols li:first-child { padding-right: 0; }
  .how-cols h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: .2em; }
  .how-side .core { margin-top: 40px; }
  .grow-frame { --inset: 20px; --round: 16px; }
  .grow-frame img { height: 320px; }
  .gifts { margin-top: 40px; }
  .gifts li { padding: 30px 0; }
  .guest .big { font-size: 27px; letter-spacing: .16em; }
  .guest .three { grid-template-columns: 1fr; gap: 28px; }
  .guest .three img { width: 128px; height: 128px; }
  .plate img { height: 300px; }
  .biz .wrap { padding: 0 14px; }
  .biz-frame { padding: 48px 16px; margin: 0; outline-offset: 4px; }
  .biz-frame .sec-lead { font-size: 16px; letter-spacing: .02em; }
  .terms { margin-top: 40px; }
  .terms div { flex-wrap: wrap; gap: 0 12px; }
  .terms .lead-dots { display: none; }
  .terms dt { width: 100%; font-size: 16px; color: var(--sumi-soft); }
  .terms dd b { font-size: 30px; margin-left: 0; }
  .sub-title { margin-top: 72px; font-size: 19px; }
  .prep { grid-template-columns: 1fr; gap: 44px; }
  /* 会葬礼状はカードの所だけを大きく切り出す（文字が読める大きさに） */
  /* スマホは文面（謹啓から QR まで。x15.5〜48.5%・y25〜80%）に寄せ、枠の内側いっぱいに広げる。本文約 12px */
  .reijo-win { aspect-ratio: 803 / 1000; max-width: none; width: calc(100% + 32px); margin: 0 -16px; }
  .reijo-win .stage { width: 303%; margin-left: -47%; margin-top: -56.6%; }
  .talk { margin-top: 64px; }
  .talk p { font-size: 16px; }
  .steps { grid-template-columns: 1fr; margin-top: 40px; }
  .steps li { padding: 22px 0 26px; }
  .steps li:nth-child(n+2) { border-top-color: var(--rule); }
  .safe-photo { order: 2; }
  .safe-photo img { min-height: 0; height: 280px; }
  .qa-q button { font-size: 16px; padding: 22px 0; }
}
/* ===== 複数ページ化で足した部品の、幅ごとの調整 ===== */
/* トップの冒頭のことば: 画面の高さが低い PC でもボタンまで写真の中に収める。10/14 山上さんの校正で見出しが 2 行（長い行 11 字）になったので、大きさの式は末尾の「ヒーローの文（山上さんの校正）」で上書きしている */
.catch-long { font-size: min(54px, calc((100svh - var(--head-h) - 6vh - 150px) / 10.7)); }
@media (max-width: 1239px) {
  .site-head .wrap { padding: 0 28px; gap: 20px; }
  .site-head .brand img { height: 30px; }
  .site-nav { gap: 20px; font-size: 14.5px; letter-spacing: .02em; }
  .head-contact { padding: 0 16px; font-size: 14px; letter-spacing: .08em; }
}
@media (max-width: 1100px) {
  .catch-long { font-size: min(46px, calc((100svh - var(--head-h) - 6vh - 150px) / 10.7)); }
  .doc-grid { grid-template-columns: 220px minmax(0, 40em); gap: 48px; }
  .contact-body .wrap { gap: 64px; }
  .foot-main .wrap { grid-template-columns: minmax(0, 1fr) auto; gap: 56px 64px; }
  .foot-about { max-width: none; }
  .foot-map { grid-column: 1; }
  .foot-words { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 1023px) {
  .site-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .site-head .wrap { gap: 16px; }
}
@media (max-width: 900px) {
  .catch-long { font-size: 40px; }
  .roles { gap: 72px; margin-top: 48px; }
  .roles li, .roles li:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 640px; }
  .roles li:nth-child(even) .role-photo { order: 0; }
  .role-photo img { aspect-ratio: 3 / 2; }
  .role-text { margin-top: 28px; padding-top: 24px; }
  .roles h3 { font-size: 22px; }
  .contact-body .wrap { grid-template-columns: 1fr; gap: 48px; }
  .contact-aside { position: static; }
  .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .doc-toc { position: static; max-height: none; padding: 0 16px; border: 1px solid var(--rule); background: var(--paper-2); }
  .doc-toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0; border-bottom: 0; }
  .doc-toc summary::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s ease; }
  .doc-toc[open] summary { border-bottom: 1px solid var(--rule); }
  .doc-toc[open] summary::after { transform: translateY(2px) rotate(-135deg); }
  .doc-toc ol { padding-bottom: 8px; }
  .foot-main .wrap { grid-template-columns: 1fr; gap: 56px; }
  .foot-map, .foot-words { grid-column: auto; grid-row: auto; }
  .foot-words { order: -1; justify-self: center; }
}
@media (max-width: 760px) {
  .drawer-bar { padding: 0 20px; }
  .drawer-bar .brand img { height: 28px; }
  .crumbs ol { font-size: 13px; }
  .page-hero + .doc { padding-top: 40px; }
  .catch-long { font-size: 34px; }
  .next { padding: 88px 0; }
  .next-title { font-size: 23px; letter-spacing: .1em; }
  .next-ctas { flex-direction: column; margin-top: 40px; }
  .next-ctas .btn, .thanks-ctas .btn, .stub-ctas .btn, .form-send .btn, .roles .btn { width: 100%; min-width: 0; }
  .choices { grid-template-columns: 1fr; }
  .cform { gap: 36px; }
  .doc-band { margin-bottom: 40px; padding: 16px; font-size: 15px; }
  .doc-sec { margin-top: 40px; padding-top: 32px; }
  .doc-sec h2 { font-size: 18px; }
  /* 規約などの表: スマホでは 1 行ずつ積み、項目名を添える（横に動かさずに読める） */
  .doc-table { min-width: 0; font-size: 14.5px; }
  .doc-table thead { display: none; }
  .doc-table, .doc-table tbody, .doc-table tr, .doc-table td { display: block; width: 100%; }
  .doc-table tr { padding: 12px 0; border-top: 1px solid var(--rule); }
  .doc-table tr:last-child { border-bottom: 1px solid var(--rule); }
  .doc-table td { padding: 2px 0; border: 0; }
  .doc-table td:first-child { font-weight: 600; }
  .doc-table td + td::before { content: attr(data-label) "："; color: var(--sumi-soft); }
  .foot-main { padding: 72px 0 56px; }
  .foot-words { height: 250px; font-size: 17px; }
  .foot-map ul { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .foot-map a { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule-on-sumi); }
  .foot-legal .wrap { flex-direction: column; align-items: flex-start; }
  .foot-links { gap: 0 22px; }
  .foot-base .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 599px) {
  .head-contact { display: none; }
}

/* ===== 第 2 段: 下層のページの共通の部品 ===== */
/* ページの中の節: 見出しのあとに本文（1 行 40 字まで）・項目・段 */
.part { padding: 112px 0; }
.part + .part { border-top: 1px solid var(--rule); }
.part.tint { background: var(--paper-2); }
.part.tint + .part, .part + .part.tint { border-top-color: transparent; }
.prose { margin-top: 32px; max-width: 40em; }
.prose p + p { margin-top: 1.4em; }
.sec-title + .steps, .sec-title + .points { margin-top: 56px; }
.note { margin-top: 28px; max-width: 40em; font-size: 15px; line-height: 2; color: var(--sumi-soft); }
.notes { margin-top: 28px; max-width: 46em; font-size: 15px; line-height: 2; color: var(--sumi-soft); }
.notes li { position: relative; padding-left: 1.2em; }
.notes li + li { margin-top: 6px; }
.notes li::before { content: "・"; position: absolute; left: 0; }
.sub-head { margin-top: 64px; font-weight: 600; font-size: 21px; line-height: 1.7; letter-spacing: .12em; }
.sub-head + .prose { margin-top: 16px; }
/* 見出し＋短い文の項目（2 列。3 つのときは 3 列） */
.points { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.points-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; }
.points li { padding: 28px 0 32px; border-top: 1px solid var(--sumi); }
.points h3 { font-weight: 600; font-size: 20px; line-height: 1.7; letter-spacing: .1em; }
.points p { margin-top: 10px; color: var(--sumi-soft); line-height: 2; }
.points p + p { margin-top: 0; }
/* 文中の「〜を見る」のリンク（押しやすい高さ・矢印） */
.links { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 4px 36px; }
.more { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; font-size: 16px; letter-spacing: .08em; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.more::after { content: ""; flex-shrink: 0; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.more:hover { text-decoration-thickness: 2px; }
.part .btn-row { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
/* 写真と文の 2 段組み（トップの「思い出あつめとは」・ご家族の節目） */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 96px; align-items: center; }
.split.photo-left > figure { order: -1; }
.split figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split figcaption { margin-top: 12px; font-size: 15px; color: var(--sumi-soft); }
.split .prose { margin-top: 32px; }
/* 次の行動の帯に見出しを置かないとき（特定商取引法に基づく表記） */
.next.plain { padding: 88px 0; }
.next.plain .next-ctas { margin-top: 0; align-items: center; }
.next .more { color: var(--on-sumi); }
/* 参列された方へ: 3 つの約束（今の LP のアイコン） */
.three { margin: 64px auto 0; max-width: 840px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.three img { width: 152px; height: 152px; margin: 0 auto; object-fit: contain; -webkit-mask-image: radial-gradient(closest-side, #000 86%, transparent 100%); mask-image: radial-gradient(closest-side, #000 86%, transparent 100%); }
.three span { display: block; margin-top: 12px; font-size: 19px; letter-spacing: .14em; }
.three + .prose { margin: 48px auto 0; text-align: center; }

/* トップ: 3 つのサービス */
.services { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.services li { display: flex; flex-direction: column; padding: 36px 32px 32px; background: var(--paper-2); border: 1px solid var(--rule); }
.services h3 { font-weight: 600; font-size: 21px; line-height: 1.7; letter-spacing: .1em; }
.services h3 .soon { margin-left: 10px; vertical-align: 3px; }
.services p { flex: 1; margin-top: 14px; color: var(--sumi-soft); letter-spacing: .02em; }
.services .more { margin-top: 20px; align-self: flex-start; }
.flow .btn-row { margin-top: 48px; }
.belief .prose { margin-top: 40px; }
.faq-excerpt .qa, .faq-group .qa { max-width: 860px; }
.faq-excerpt .links { margin-top: 32px; }

/* 料金 */
.price-band { margin-top: 40px; max-width: 40em; padding: 18px 24px; border: 1px solid var(--sumi); background: var(--paper-2); font-size: 16px; line-height: 1.9; }
.price-table { width: 100%; margin-top: 48px; border-collapse: collapse; }
.price-table caption { padding-bottom: 14px; text-align: left; font-size: 15px; color: var(--sumi-soft); }
.price-table th, .price-table td { padding: 22px 20px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; line-height: 1.8; }
.price-table thead th { padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--sumi); font-size: 14px; font-weight: 600; letter-spacing: .1em; color: var(--sumi-soft); }
.price-table tbody th { font-size: 18px; font-weight: 600; letter-spacing: .08em; }
.price-table .yen { text-align: right; white-space: nowrap; }
.price-table .yen b { font-size: 28px; font-weight: 500; letter-spacing: .04em; margin-right: 4px; }
.price-table .yen small { margin-left: 4px; font-size: 14px; color: var(--sumi-soft); }

/* 会社の情報・特定商取引法に基づく表記: 項目と内容の 2 列 */
.info-list { margin-top: 8px; max-width: 880px; border-bottom: 1px solid var(--rule); }
.info-list div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 20px 0; border-top: 1px solid var(--rule); }
.info-list dt { font-weight: 600; letter-spacing: .08em; }
/* .info-list dd: 2026-10-14: 文節の切れ目の印を入れたので keep-all（body と同じ）に。前は word-break: normal */
.page-hero + .part.info { padding-top: 72px; }
.info .doc-band { max-width: 880px; }

/* よくある質問（P8）: 分類の目次・分類ごとの見出し */
.faq-nav { margin-top: 40px; }
.faq-nav ul { display: flex; flex-wrap: wrap; gap: 10px; }
.faq-nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border: 1px solid rgba(46,43,40,.35); border-radius: 2px; background: var(--paper-2); font-size: 15px; letter-spacing: .06em; text-decoration: none; white-space: nowrap; }
.faq-nav a:hover { border-color: var(--sumi); }
.faq-group { padding: 88px 0 0; scroll-margin-top: calc(var(--head-h) + 8px); }
.faq-group .sec-title { font-size: 28px; }
.faq-group .qa { margin-top: 32px; }
.faq-group .links { margin-top: 20px; }
.faq-groups { padding-bottom: 120px; }

/* お問い合わせ（P10）: 欄の説明・メールで送る場合・フォームの下の補足 */
.field-help { margin-top: -4px; font-size: 15px; line-height: 1.8; color: var(--sumi-soft); }
.cform legend + .field-help { margin: -4px 0 6px; }
.agree-note { font-size: 15px; line-height: 1.9; color: var(--sumi-soft); }
.cform ::placeholder { color: rgba(46,43,40,.68); opacity: 1; }  /* 入力例: 墨の濃さだけ下げる。paper-2 の上で 4.86:1（決まりの 4.5:1 以上。2026-10-11、.5 の 2.9:1 から）。入力した文字（墨 12.5:1）とは見分けがつく */
.cform input, .cform textarea { word-break: normal; }  /* 入力欄と入力例は、語の切れ目を待たずに普通に折る */
.contact-aside .mail { margin-top: 12px; font-size: 18px; letter-spacing: .06em; }
.form-after { margin-top: 48px; }
.thanks-note + .thanks-ctas { margin-top: 40px; }

/* 葬儀社の方へ: 条件の下の注記・節の中のリンク */
.terms-note { max-width: 560px; margin: 16px auto 0; font-size: 15px; line-height: 1.9; color: var(--sumi-soft); text-align: center; }
.family .links, .safe .links { margin-top: 28px; }
.next .next-mail + .next-mail { margin-top: 8px; }

@media (max-width: 1100px) {
  .split { gap: 64px; }
  .services li { padding: 32px 24px 28px; }
}
@media (max-width: 1023px) {
  .services { grid-template-columns: 1fr; gap: 16px; max-width: 640px; }
  .points-3 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .points { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split.photo-left > figure { order: 0; }
  .split figure { max-width: 520px; }
  .split figure img { aspect-ratio: 3 / 2; }
  .info-list div { grid-template-columns: 160px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 760px) {
  .part { padding: 72px 0; }
  .prose { margin-top: 24px; }
  .sec-title + .steps, .sec-title + .points { margin-top: 36px; }
  .points li { padding: 22px 0 26px; }
  .points h3 { font-size: 18px; }
  .sub-head { margin-top: 48px; font-size: 18px; }
  .links { flex-direction: column; gap: 0; }
  .part .btn-row { flex-direction: column; }
  .part .btn-row .btn { width: 100%; }
  .three { grid-template-columns: 1fr; gap: 28px; }
  .three img { width: 120px; height: 120px; }
  .three + .prose { text-align: left; }
  .services li { padding: 28px 20px 24px; }
  /* 料金の表: スマホでは 1 行ずつ札のように積む（横にはみ出さない） */
  .price-table thead { display: none; }
  .price-table caption { display: block; width: 100%; padding-bottom: 4px; }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; width: 100%; }
  .price-table tr { padding: 20px 0; border-bottom: 1px solid var(--rule); }
  .price-table tbody th, .price-table td { padding: 0; border: 0; }
  .price-table td + td { margin-top: 6px; }
  .price-table td[data-label]::before { content: attr(data-label) "："; color: var(--sumi-soft); font-size: 14px; }
  .price-table .yen { text-align: left; }
  .price-table .yen::before { display: none; }
  .price-table .yen b { font-size: 26px; }
  .price-band { padding: 16px; font-size: 15px; }
  .info-list div { grid-template-columns: 1fr; gap: 2px; padding: 16px 0; }
  .info-list dt { font-size: 15px; color: var(--sumi-soft); }
  .faq-nav a { padding: 0 14px; font-size: 14px; }
  .faq-group { padding-top: 64px; }
  .faq-group .sec-title { font-size: 22px; }
  .faq-groups { padding-bottom: 88px; }
  .next.plain { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn-ic, .site-head, .site-nav a::after, .qa-mark::before, .qa-mark::after, .qa-a, .doc-toc summary::after { transition: none; }
  .js .drawer, .js .drawer-nav li, .js .drawer-ctas, .js .drawer.is-open .drawer-nav li, .js .drawer.is-open .drawer-ctas { opacity: 1; transform: none; transition: none; }
  .grow-frame img { clip-path: none; animation: none; }
}
/* 320px 前後の小さなスマホ: 縦書きの見出しと背景のぼかしを幅に収める（QA LOW） */
@media (max-width: 359px) {
  .hero-copy { padding-left: 16px; padding-right: 16px; }
  .hero-tate { gap: 14px; }
  .catch { font-size: 30px; }
  .hero-sub { font-size: 14px; line-height: 1.8; }
}

/* 画面に入ったら静かに現れる（main.js が、最初の画面より下にある節の見出し・本文・カード・写真にだけ .iv を付ける）。
   ぼかし（8px → 0）と透明度で、ほんの少し（8px）下から。並びは動かさない（CLS なし）。現れたら filter は外す。
   動きを減らす設定・印刷では付けない／見せる */
.js .iv { opacity: 0; filter: blur(8px); transform: translateY(8px); transition: opacity 1s ease, filter 1s ease, transform 1s cubic-bezier(.2,.6,.2,1); transition-delay: var(--iv-delay, 0ms); }
.js .iv.is-in { opacity: 1; filter: none; transform: none; }
.js .iv.iv-now { transition: none; }  /* ページ内のリンクで飛んだ先は、待たせずに出す */
@media (prefers-reduced-motion: reduce) { .js .iv { opacity: 1; filter: none; transform: none; transition: none; } }
@media print { .js .iv { opacity: 1; filter: none; transform: none; } }

/* 長い文章のページの目次（スマホで開け閉め）: 対応するブラウザでは高さをなめらかに（無いブラウザは今まで通り一瞬で） */
@supports selector(::details-content) {
  @media (prefers-reduced-motion: no-preference) {
    .doc-toc { interpolate-size: allow-keywords; }
    .doc-toc::details-content { height: 0; overflow: clip; transition: height .35s ease, content-visibility .35s allow-discrete; }
    .doc-toc[open]::details-content { height: auto; }
  }
}

/* 読み込み時に目次を閉じる間だけ動きを切る（main.js） */
.doc-toc.no-anim::details-content { transition: none !important; }

/* ===== 2026-10-11 ブラッシュアップ（裁定 docs/03_デザイン/20261011_ブラッシュアップ_裁定.md §1 の 4〜8） ===== */
/* 葬儀社の方へ: 条件の表の直後の 2 つのボタン（導入の相談をする・サンプルを見る） */
.terms-ctas { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.flow .btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* わたしの思い出: 核の一文「アプリは、あなたのため。」を節の見出しの大きさで（見出しの順を崩さないよう p） */
.page-core { margin-top: 24px; font-weight: 500; font-size: 34px; line-height: 1.7; letter-spacing: .14em; }
.page-core + .page-lead { margin-top: 16px; }

/* トップ「ご家族も知らなかった姿」: サンプルに届いた思い出（大 1＋小 2）。写真の下に、ことばと届けた方・関係 */
.voices { margin-top: 72px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); grid-template-rows: auto auto 1fr; gap: 0 48px; align-items: start; }
.voices-note { grid-column: 1 / -1; padding-bottom: 14px; margin-bottom: 32px; border-bottom: 1px solid var(--rule); font-size: 15px; letter-spacing: .08em; color: var(--sumi-soft); }
.voice-main { grid-row: 2 / span 2; }
.voices .voice:nth-of-type(3) { margin-top: 40px; }
.voice img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.voice figcaption { margin-top: 16px; }
.voice-words { display: block; font-size: 16px; line-height: 2; }
.voice-main .voice-words { font-size: 19px; letter-spacing: .06em; }
.voice-who { display: block; margin-top: 6px; font-size: 14px; line-height: 1.8; letter-spacing: .06em; color: var(--sumi-soft); }

/* トップ「想い」: 存在承認の声の 3 行（10/11 は 本文 2 段 → 声 3 行 → 本文 1 段）。PC は縦書き（生成りの地の上。写真には載せない）、狭い幅は横書き */
.belief-tate span { display: block; }
/* 狭い幅（横書き）: 声の 3 行は、1 行ずつ少し間をあけ、折り返した行は「の内側にそろえる */
@media (max-width: 900px) {
  .belief-tate span { padding-left: 1em; text-indent: -1em; }
  .belief-tate span + span { margin-top: .7em; }
}
@media (min-width: 901px) {
  /* 本文の右に縦の 3 行（読む順は 前の文 → 3 行 → 後の文 のまま。並びだけ右の列に） */
  .belief .prose { max-width: none; display: grid; grid-template-columns: minmax(0, 36em) auto; grid-template-rows: auto auto 1fr; gap: 1.4em 96px; justify-content: space-between; }
  .belief .prose p + p { margin-top: 0; }
  .belief .prose > p:nth-child(1) { grid-column: 1; grid-row: 1; }
  .belief .prose > p:nth-child(2) { grid-column: 1; grid-row: 2; }
  .belief .prose > p:last-child { grid-column: 1; grid-row: 3; }
  .belief .prose > .belief-tate { grid-column: 2; grid-row: 1 / span 3; margin-top: -150px; padding-right: 24px; writing-mode: vertical-rl; font-size: 22px; line-height: 2.4; letter-spacing: .14em; white-space: nowrap; }
}

/* 罫線の行（トップのよくある質問の頭の安心の 3 行・参列された方への心配ごと）: 左に見出し、右に文 */
.assure { margin-top: 48px; max-width: 860px; border-bottom: 1px solid var(--rule); }
.assure div { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 8px 40px; padding: 24px 0; border-top: 1px solid var(--rule); }
.assure dt { font-weight: 600; font-size: 18px; line-height: 1.8; letter-spacing: .08em; }
.assure dd { color: var(--sumi-soft); }
.assure-long { max-width: none; }
.assure-long div { grid-template-columns: minmax(0, 17em) minmax(0, 1fr); padding: 32px 0; }
.assure-link { margin-top: 16px; }
.assure + .assure-link + .qa { margin-top: 48px; }

@media (max-width: 900px) {
  .voices { grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 0 16px; }
  .voice-main { grid-column: 1 / -1; grid-row: auto; margin-bottom: 36px; }
  .voices .voice:nth-of-type(3) { margin-top: 0; }
  .assure div, .assure-long div { grid-template-columns: 1fr; padding: 22px 0; }
}
@media (max-width: 760px) {
  .page-core { margin-top: 16px; font-size: 25px; letter-spacing: .1em; }
  .voices { margin-top: 48px; }
  .voices-note { margin-bottom: 24px; }
  .voice-main .voice-words { font-size: 17px; }
  .voice-words { font-size: 15px; line-height: 1.9; letter-spacing: .02em; }
  .voice-who { font-size: 14px; }
  .voice figcaption { margin-top: 12px; }
  .assure { margin-top: 36px; }
  .assure dt { font-size: 17px; }
  .terms-ctas { flex-direction: column; }
  .terms-ctas .btn, .flow .btn-row .btn { width: 100%; }
}

/* ===== 2026-10-11 山上さんの直し ===== */
/* （メインビジュアルの言葉を 1 文字ずつ出す動きは、10/14 のイントロ演出に置き換えた。下の「トップのイントロ演出」） */

/* ボタンのアイコン（Phosphor Icons regular。アプリの envelope と同じ形）: 文字の 1.25 倍、文字の色 */
.btn-ic { flex-shrink: 0; width: 1.25em; height: 1.25em; transition: transform .35s cubic-bezier(.2,.6,.2,1); }
.head-contact, .drawer-ctas .btn-contact { gap: 8px; }
.head-contact { transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
/* ホバーとフォーカス: 地の色が静かに切り替わり、封筒が少しだけ浮く */
.head-contact:hover .btn-ic, .head-contact:focus-visible .btn-ic,
.drawer-ctas .btn-contact:hover .btn-ic, .drawer-ctas .btn-contact:focus-visible .btn-ic { transform: translateY(-2px) rotate(-6deg); }
.btn-fill.head-contact:hover, .btn-fill.head-contact:focus-visible,
.drawer-ctas .btn-contact:hover, .drawer-ctas .btn-contact:focus-visible { background: #45403B; }
/* 写真の上（線のボタン）は、墨の地に切り替わる */
.site-head:not(.is-solid) .head-contact:hover, .site-head:not(.is-solid) .head-contact:focus-visible { background: var(--sumi); color: var(--paper); }

/* 葬儀社の方へ: 営業キット（葬儀場向けの資料）への入口 */
.kit-link { justify-content: center; align-items: center; margin-top: 48px; }
.next-links { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 0; }
.next-links-note { font-size: 14px; line-height: 1.8; color: var(--on-sumi-soft); }

@media (max-width: 1239px) {
  .head-contact { gap: 6px; }
}

/* ===== 2026-10-14 トップのイントロ演出（docs/03_デザイン/20261014_イントロ演出/README.md） =====
   白黒の写真が窓に現れ、タグラインが 1 字ずつ、ロゴ。両方が消えると、窓が全画面に広がりながら色が戻り、
   最後にヘッダー・見出し・添え文・ボタンが出る（コマ 04 ＝ ふだんのトップ）。動かすのは main.js（Web Animations）。
   html.intro-play は head の判定が付ける（JS が無い・動きを減らす設定・#付きの URL では付かず、最初から完成形。それ以外は開くたびに毎回） */

/* 調整はここだけ（main.js が読む）。時間は ms で「開始 終了」。全体の長さは --intro-speed を掛けて伸び縮みする */
:root {
  --intro-saturation: 1;            /* 完成の彩度。1＝案 A（今の本番と同じ）、.8＝案 B（明るく見えにくい） */
  --intro-speed: 1;                 /* 全体の長さの倍率。1＝約 6.8 秒（.88 で約 6 秒） */
  --intro-wait: 1500;               /* 写真の読み込みを待つ上限。過ぎたら演出なしで完成形 */
  --intro-skip-show: 400 800;       /* スキップが現れる */
  --intro-skip-hide: 5300 5600;     /* スキップが消える（5.6 秒で消え終わる） */
  --intro-photo: 300 1900;          /* 白黒の写真が窓に現れる */
  --intro-zoom: 300 3000 1.12 1.10; /* 写真がごくゆっくり寄る（開始 終了 拡大の始め 終わり） */
  --intro-chars: 900 90 700 240;    /* タグライン（始め・1 字のずれ・1 字の長さ・1 行目の後の間） */
  --intro-logo: 2900 3900;          /* ロゴが現れる。3,900〜4,200 は読む時間 */
  --intro-out: 4200 4800;           /* タグラインとロゴが消える */
  --intro-open: 4400 6000;          /* 窓が全画面へ広がる（拡大は 1.00 へ。スマホは上へずらした写真も戻る） */
  --intro-color: 4600 6400;         /* 白黒 → カラー */
  --intro-final: 6200 6800;         /* ヘッダー・見出し・添え文・ボタン */
  --intro-skip-fade: 400;           /* スキップを押したとき、完成形へ移る長さ */
}
/* 窓（写真の切り抜き）。割合なので幅が変わっても写真の同じ所（手元と古い写真）が入る。スマホは写真を上へずらす */
.hero.has-intro { --intro-window: inset(25% 39.6% 25% 10.4%); --intro-shift: 0%; }
/* 完成の彩度（演出が無いときも同じ色にする） */
.has-intro .hero-photo img { filter: grayscale(calc(1 - var(--intro-saturation))); }

.has-intro .intro, .has-intro .intro-skip { display: none; }  /* html にも .intro-play を付けるので、部品は .has-intro の中に限る */
html.intro-play .has-intro .intro, html.intro-play .has-intro .intro-skip { display: block; }
/* 演出が始まるまで（写真の読み込み待ち）は生成りの地だけ（コマ 00） */
html.intro-play .site-head, html.intro-play .has-intro .hero-copy, html.intro-play .has-intro .hero-photo img,
html.intro-play .has-intro .intro .ch, html.intro-play .has-intro .intro-logo, html.intro-play .has-intro .intro-skip { opacity: 0; }
html.intro-play .has-intro .hero-photo { clip-path: var(--intro-window); }

.has-intro .intro { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
/* PC: タグラインは右寄り（1440×900 で 左 1101・上 200、44px）、ロゴ（幅 168）はその下。低い画面では全体を縮めて収める（高さ ≒ 14.3 字分） */
.intro-inner { position: absolute; top: 22.2%; right: 14.1vw; display: flex; flex-direction: column; align-items: center; font-size: min(44px, calc((77.8svh - 40px) / 14.3)); }
.intro-tag { writing-mode: vertical-rl; font-weight: 500; font-size: 1em; line-height: 1.7; letter-spacing: .18em; white-space: nowrap; color: var(--sumi); }
.intro-tag > span { display: block; }
.intro-logo { width: 3.82em; height: auto; margin-top: 1.3em; }  /* 間は margin で（picture の source が並びに数えられ gap が二重になるため） */
/* スキップ: 押せる範囲 44×44 以上。15px・下線（文字の位置は 右 40・下 36） */
.intro-skip { position: fixed; right: 28px; bottom: 26px; z-index: 30; min-width: 44px; min-height: 44px; margin: 0; padding: 10px 12px; border: 0; background: none; font-size: 15px; line-height: 1.6; letter-spacing: .12em; color: var(--sumi-soft); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; cursor: pointer; }

/* 完成（コマ 04）の言葉の位置: 見出しの 1 行目が 9 字に伸び、右 21vw のままだと「人の、」が湯のみに重なる。
   右 26vw に寄せて、見出しは壁と障子の明るい所、添え文は障子の上に置く。下の方（座卓の上）でも読めるよう、文字の後ろの生成りを少し濃く。
   添え文は PC だけ長い 2 行を語の切れ目でもう 1 行に（<br class="pc">。1 行が座卓の縁まで下がらないように）。
   1280 では 26vw だと読点が湯のみの縁にかかるので、右は 360px 以上。1100 以下（見出し 46px）は 26vw のまま */
@media (min-width: 901px) {
  .has-intro .hero-copy { right: max(26vw, 360px); }
  /* 2026-10-24 写真の差し替え（p07 こたつの上に広げた昔の写真）: 写真が全面に細かいので、文字の後ろの生成りを濃く・広く（タブレット・スマホと同じくらい） */
  .has-intro .hero-tate::before { inset: -130px -170px -150px -190px; background: radial-gradient(closest-side, rgba(244,241,234,.92), rgba(244,241,234,.88) 52%, rgba(244,241,234,.6) 76%, rgba(244,241,234,0)); }
  /* 2026-10-27 山上さん「テキストが増えたので、白いモヤを大きく」: 見出しの右の列（もう逢えない人の、）と下の「ある。」までモヤの中に。
     楕円を広げ（右と下を多めに）、濃い所を 52% → 62% まで伸ばす。いちばん濃い所の濃さ（.92）は変えない（写真が白く飛ばないように） */
  .has-intro .hero-tate::before { inset: -170px -280px -230px -230px; background: radial-gradient(closest-side, rgba(244,241,234,.92), rgba(244,241,234,.88) 62%, rgba(244,241,234,.62) 82%, rgba(244,241,234,0)); }
}
/* タブレット（761〜900）: 見出しと添え文が画面の幅いっぱいに並ぶので、楕円を大きく、濃い所を広く（2026-10-27） */
@media (min-width: 761px) and (max-width: 900px) {
  .has-intro .hero-tate::before { inset: -220px -240px -200px -170px; background: radial-gradient(closest-side, rgba(244,241,234,.86), rgba(244,241,234,.82) 64%, rgba(244,241,234,.55) 84%, rgba(244,241,234,0)); }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .has-intro .hero-copy { right: 26vw; }
}

/* タブレット縦・スマホ: 窓は上（390×844 で 左 24・上 108・342×236）、タグライン 30px は中央、ロゴ（幅 112）はその下 */
@media (max-width: 900px) {
  .hero.has-intro { --intro-window: inset(12.8% 6.2% 59.2% 6.2%); --intro-shift: -35.5%; }
  .intro-inner { top: 45.5%; left: 0; right: 0; font-size: min(30px, calc((54.5svh - 40px) / 13.8)); }
  .intro-tag { line-height: 1.73; }
  .intro-logo { width: 3.73em; margin-top: .9em; }
}
/* スマホ: 縦書きの見出しの大きさ（添え文は 10/14 の校正で長くなり、末尾の「ヒーローの文」で写真の下に横書きで置く） */
@media (max-width: 760px) {
  .intro-skip { right: 12px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .has-intro .catch-long { font-size: 32px; line-height: 1.5; }
  .has-intro .hero-tate { gap: 16px; }
  .has-intro .hero-sub { font-size: 14px; line-height: 1.8; letter-spacing: .1em; }
}
@media (max-width: 359px) {
  .has-intro .catch-long { font-size: 28px; }
  .has-intro .hero-tate { gap: 12px; }
  .has-intro .hero-sub { font-size: 13px; line-height: 1.7; }
}

/* ===== 2026-10-14 トップの原稿の直し（P01_top.md 10/14） ===== */
/* 経験の節（「主人が家で、よく…」）: 見出しの下に本文 3 段。存在承認の節の縦書きの 3 行は外した */
.story .prose { margin-top: 40px; }
/* 集まる場所と手元に残す場所: 個人ページを外してカード 2 枚 */
@media (min-width: 901px) {
  .services-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; }
}

/* ===== 2026-10-14 山上さんの直し（テスト環境を見て） ===== */
/* サンプルに届いた思い出: 送り手の名前と関係は、ことばより 1 段小さく（メリハリ） */
.voice-who { font-size: 13px; letter-spacing: .04em; }
.voice figcaption .voice-who { margin-top: 8px; }

/* 節のアイコン（docs/03_デザイン/20261014_節のアイコン_作業記録.md）。地は make_assets.py が透明に抜く（<名前>_alpha）。
   トップの手順: PC・タブレットは左にアイコン（132px）、右に漢数字・見出し・文。スマホは上にアイコン（104px）。
   ご家族の 3 つ: どの幅も見出しの上にアイコン（PC 144px・スマホ 112px）。絵の周りの余白のぶん、左を少し詰めて文字の端とそろえる */
.sec-ic { display: block; width: 132px; height: auto; }  /* 地を透明に抜いた版（*_alpha）。multiply は現れる演出の途中で効かず白い四角が出たのでやめた */
.steps-ic li > picture, .points-ic li > picture { display: block; }  /* 共通の picture { display: contents } のままだと source が並びの 1 つに数えられ、列がずれる */
.steps-ic li { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 0 24px; align-items: start; }
.steps-ic .step-body { min-width: 0; }
.points-ic .sec-ic { width: 144px; margin: -8px 0 6px -14px; }
@media (max-width: 900px) {
  .steps-ic li { grid-template-columns: minmax(0, 1fr); }
  .steps-ic .sec-ic { width: 116px; margin: -6px 0 4px -12px; }
}
@media (max-width: 760px) {
  .steps-ic .sec-ic { width: 104px; margin: -4px 0 2px -10px; }
  .points-ic .sec-ic { width: 112px; margin: -6px 0 4px -11px; }
}

/* 1024〜1280 の文字の後ろの生成りは、2026-10-24 の写真の差し替えから PC 共通（.has-intro .hero-tate::before、901px 以上）にそろえた */

/* 参列された方への丸い 3 つ（.three img）は、地を透明に抜いた b2/ic_*_c_alpha（make_assets.py）。multiply は現れる演出の途中で効かず白い四角が出るのでやめた（10/14） */

/* ===== 2026-10-14 スマホの改行（山上さん: 文章の区切りで気持ちよく） ===== */
/* メールアドレスは途中（-）で折らない */
a[href^="mailto:"] { white-space: nowrap; }
/* トップの経験の節の見出しは、スマホで「「主人が家で、よく」「あなたの話をしていました」」の 2 行（2 行目 13 字が幅に収まる大きさに） */
@media (max-width: 760px) {
  .story .sec-title { font-size: min(25px, calc((100vw - 48px) / 14.2)); letter-spacing: .08em; }
}
/* 320 前後の小さなスマホ: 見出しの一行に入る字数を増やす（語の途中や 1〜2 字の行で折れないように） */
@media (max-width: 359px) {
  .sec-title { font-size: 22px; letter-spacing: .06em; }
  .page-title { font-size: 24px; letter-spacing: .05em; }  /* 「プライバシーポリシー」10 字が 320 に収まる大きさ */
  .next-title { font-size: 20px; letter-spacing: .06em; }
  .sub-title { font-size: 18px; }
  body { letter-spacing: .02em; }
}

/* ===== 2026-10-14 ヒーローの文（山上さんの校正） =====
   見出し「もう逢えない人の、|まだ知らない顔がある。」は原稿の改行どおり 2 行（長い行 11 字）。高さの足りない PC では「まだ知らない|顔がある。」で 3 行に折る（.catch-fold）。
   添え文は 4 連 11 行＋署名「思い出あつめ」。連の切れ目（原稿の空行）は列の間を広く、署名は本文より小さく、列の下にそろえる */
.catch-fold { display: none; }
.catch-long { font-size: min(54px, calc((100svh - var(--head-h) - 6vh - 150px) / 13)); }  /* 11 字 × 1.18 ≒ 13 */
.hero-sub .st { margin-block-start: .9em; }  /* 縦書きでは右の列との間、横書き（スマホ）では上 */
.hero-sub .hero-sign { margin-block-start: 1.4em; padding-inline-start: 7em; font-size: .875em; letter-spacing: .32em; color: var(--sumi-soft); }  /* 縦書きでは列の中ほど（下まで下げると座卓の手元にかかる） */
@media (min-width: 901px) {
  .has-intro .hero-sub { line-height: 1.95; }
}
/* 2026-10-24 添え文が写真（こたつの上の昔の写真。全面に細かい）に重なって読みにくい（PC・タブレット）:
   添え文の列の範囲だけに、生成りの面を敷く（四辺はぼかして写真に溶かす）。backdrop-filter は、イントロで文字が現れ終わる瞬間に効き始めて段がつくので使わない。
   見出しは大きく、今のぼかしで読めるので変えない。スマホ（760 以下）は添え文が写真の下の横書きなので対象外 */
@media (min-width: 761px) {
  .has-intro .hero-sub { position: relative; z-index: 0; }
  .has-intro .hero-sub::before { content: ""; position: absolute; inset: -60px -68px; z-index: -1; pointer-events: none;
    background: rgba(244,241,234,.86);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 72px, #000 calc(100% - 72px), transparent), linear-gradient(transparent, #000 72px, #000 calc(100% - 72px), transparent);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 72px, #000 calc(100% - 72px), transparent), linear-gradient(transparent, #000 72px, #000 calc(100% - 72px), transparent);
    mask-composite: intersect; }
}
/* 高さの低い PC（2 行だと見出しが 36px を切る）だけ 3 行に。幅は添え文に回したいので、それ以外は 2 行のまま小さく */
@media (min-width: 901px) and (max-height: 740px) {
  .catch-fold { display: inline; }
  .catch-long { font-size: min(54px, calc((100svh - var(--head-h) - 6vh - 150px) / 10.7)); }  /* 3 行のときの長い行 9 字 */
}
/* 高さの低い広い PC（1366×680 など）: 写真が横幅で拡大され湯のみが上がってくるので、見出しを左へ寄せ、添え文は 1024 と同じく詰める */
@media (min-width: 1101px) and (max-height: 740px) {
  .has-intro .hero-copy { right: max(29vw, 400px); }
  .has-intro .hero-tate { gap: 30px; }
  .has-intro .hero-sub { font-size: 15px; line-height: 1.85; letter-spacing: .1em; }
}
@media (max-width: 1100px) {
  .catch-long { font-size: min(46px, calc((100svh - var(--head-h) - 6vh - 150px) / 13)); }
}
@media (max-width: 1100px) and (min-width: 901px) and (max-height: 740px) {
  .catch-long { font-size: min(46px, calc((100svh - var(--head-h) - 6vh - 150px) / 10.7)); }
}
/* 1024 前後: 添え文 11 列が手元にかからないよう、少し小さく詰めて右へ */
@media (min-width: 901px) and (max-width: 1100px) {
  .has-intro .hero-copy { right: 21vw; }
  .has-intro .hero-tate { gap: 30px; }
  .has-intro .hero-sub { font-size: 15px; line-height: 1.85; letter-spacing: .1em; }
}
@media (max-width: 900px) {
  .catch-long { font-size: 40px; }
}
/* スマホ: 縦書きで 11 行＋署名は幅に収まらない（375 で見出し 2 行と合わせて約 440px）。
   最初の画面は写真・見出し（縦書き）・ボタンのまま、添え文は写真の下に横書きで置く（行と連は原稿どおり、署名は右下）。
   写真とイントロは最初の画面の高さに固定し、ヒーローの高さは添え文のぶん伸ばす */
@media (max-width: 760px) {
  .hero.has-intro { height: auto; min-height: 0; }
  .has-intro .hero-photo, .has-intro .intro { bottom: auto; height: max(100svh, 560px); }
  .has-intro .hero-copy { position: relative; top: auto; right: auto; bottom: auto; left: auto; display: grid; grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(calc(max(100svh, 560px) - var(--head-h) - 16px - 146px - env(safe-area-inset-bottom, 0px)), auto) auto auto;
    gap: 0; padding: calc(var(--head-h) + 16px) 20px 0; }
  .has-intro .hero-tate { display: contents; }
  .has-intro .hero-tate::before { content: none; }
  .has-intro .catch-long { grid-row: 1; position: relative; align-self: start; justify-self: center; }
  .has-intro .catch-long::before { content: ""; position: absolute; inset: -120px -140px; z-index: -1; background: radial-gradient(closest-side, rgba(244,241,234,.84), rgba(244,241,234,.76) 62%, rgba(244,241,234,0)); pointer-events: none; }  /* 2026-10-27 モヤを大きく（前は inset -90px -110px、.82／.7 55%） */
  .has-intro .ctas { grid-row: 2; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  .has-intro .hero-sub { grid-row: 3; justify-self: center; padding-top: 64px; writing-mode: horizontal-tb; font-size: min(16px, calc((100vw - 40px) / 19.2)); line-height: 2; letter-spacing: .06em; text-shadow: none; }
  .has-intro .hero-sub .hero-sign { padding-inline-start: 0; text-align: end; margin-block-start: 1.2em; letter-spacing: .24em; }
}
@media (max-width: 760px) and (max-height: 640px) {
  .catch-fold { display: inline; }
}
@media (max-width: 359px) {
  .has-intro .hero-copy { padding-left: 16px; padding-right: 16px; }
  .has-intro .hero-sub { font-size: min(16px, calc((100vw - 32px) / 19.2)); }
}

/* ===== 2026-10-23 下層のページのリデザイン（main.sub のページだけ。トップは今のまま） =====
   方針: 弔いの案内冊子のように。PC（1024px 以上）は見出しを左の柱に置いて読み進めるあいだ添わせ、本文・項目・手順は右の段に。
   節の区切りは帯の色ではなく、本文の幅の細い罫線。項目と手順は横に並べず、罫線の行で上から読む（短い行で折れないように）。
   色・書体・写真は今のまま。高齢の方が読むので、注記は 16px に上げる */
.sub ::selection { background: rgba(46,43,40,.16); color: var(--sumi); }
.points h4 { margin: 0; font-weight: 600; font-size: 20px; line-height: 1.7; letter-spacing: .1em; }
.sub .note, .sub .notes { font-size: 16px; line-height: 2; }
.sub .notes li + li { margin-top: 8px; }

/* 冒頭: ページの見出し（h1）を節の見出し（h2）よりはっきり大きく */
@media (min-width: 1240px) {
  .sub .page-title { font-size: 46px; line-height: 1.55; letter-spacing: .12em; }
}
@media (min-width: 1024px) and (max-width: 1239px) {
  .sub .page-title { font-size: 42px; line-height: 1.55; letter-spacing: .12em; }
}

/* 節の区切り: 地の色の交互の帯をやめ、本文の幅の細い罫線に（葬儀社の方への「サンプル」の節は帯のまま） */
.sub .part.tint:not(.demo) { background: transparent; }
.sub .part + .part { border-top: 0; padding-top: 0; }
.sub .part + .part > .wrap { padding-top: 112px; background: linear-gradient(var(--rule), var(--rule)) 40px 0 / calc(100% - 80px) 1px no-repeat; }

/* 左の柱と右の段（PC） */
@media (min-width: 1024px) {
  .sub .part > .wrap:not(.split), .sub .faq-group > .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: start; }
  .sub .part > .wrap:not(.split) > *, .sub .faq-group > .wrap > * { grid-column: 2; }
  .sub .part > .wrap:not(.split) > .sec-title, .sub .faq-group > .wrap > .sec-title { grid-column: 1; grid-row: 1 / span 12; position: sticky; top: calc(var(--head-h) + 48px); font-size: 30px; letter-spacing: .12em; }
  .sub .part > .wrap:not(.split) > .sec-title + *, .sub .faq-group > .wrap > .sec-title + * { margin-top: 0; }
  .sub .faq-group > .wrap > .sec-title { font-size: 26px; }
  .sub .part.faq > .wrap { max-width: var(--wrap); }
  .sub .part .qa, .sub .faq-group .qa { max-width: none; }
  /* 3 つの約束（参列された方へ）は右の段の中で 3 列 */
  .sub .part .three { max-width: none; margin: 64px 0 0; }
  .sub .part .three + .prose { margin: 48px 0 0; text-align: left; }
  /* 罫線の行（参列された方への「知っておきたいこと」）は、見出しの下に文 */
  .sub .part .assure, .sub .part .assure-long { max-width: none; }
  .sub .part .assure div, .sub .part .assure-long div { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 28px 0; }
  /* 写真と文の 2 段（ご家族の方への「節目」）は左右の幅を柱と段にそろえる */
  .sub .part > .wrap.split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
}
@media (min-width: 1240px) {
  .sub .part > .wrap:not(.split), .sub .faq-group > .wrap, .sub .part > .wrap.split { column-gap: 80px; }
}

/* 項目（.points）と手順（.steps）: どの幅でも罫線の行で縦に読む。PC の右の段とタブレットは行、スマホも同じ */
.sub .part .points, .sub .part .points-3 { grid-template-columns: minmax(0, 1fr); gap: 0; border-bottom: 1px solid var(--rule); }
.sub .part .points li { padding: 30px 0 32px; border-top: 1px solid var(--rule); }
.sub .part .points li:first-child { border-top-color: var(--sumi); }
.sub .part .points p { max-width: 36em; }
/* アイコンのある項目（ご家族の方へ）: 左にアイコン、右に見出しと文 */
.sub .part .points-ic li { display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 28px; align-items: start; }
.sub .part .points-ic li > picture, .sub .part .points-ic li > .sec-ic { grid-column: 1; grid-row: 1 / span 2; }
.sub .part .points-ic .sec-ic { width: 132px; margin: -10px 0 0 -12px; }
.sub .part .points-ic h3, .sub .part .points-ic p { grid-column: 2; }
.sub .part .points-ic h3 { grid-row: 1; }
.sub .part .points-ic p { grid-row: 2; }
/* 手順: 左に漢数字、右に見出しと文 */
.sub .part .steps { grid-template-columns: minmax(0, 1fr); gap: 0; border-bottom: 1px solid var(--rule); }
.sub .part .steps li, .sub .part .steps li:nth-child(n) { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); column-gap: 20px; padding: 30px 0 32px; border-top: 1px solid var(--rule); }
.sub .part .steps li:first-child { border-top-color: var(--sumi); }
.sub .part .steps .n { grid-column: 1; grid-row: 1 / span 2; font-size: 28px; line-height: 1.35; }
.sub .part .steps h3, .sub .part .steps p { grid-column: 2; }
.sub .part .steps h3 { margin-top: 0; }
.sub .part .steps p { max-width: 36em; }
.sub .part .steps + .note { margin-top: 24px; }
/* 本文のあとの小見出し・行のあとの本文 */
.sub .part .points + .prose, .sub .part .points + .note, .sub .part .prose-after + .note { margin-top: 28px; }
.sub .part .prose-after + .note { margin-top: 12px; }
.sub .part .sub-head { margin-top: 72px; }
.sub .part .sub-head + .points { margin-top: 24px; }

/* わたしの思い出の冒頭: 本文と「いま／これから」の 2 行の囲み */
.now-next { margin-top: 40px; max-width: 30em; padding: 6px 28px; border: 1px solid var(--sumi); background: var(--paper-2); }
.now-next div { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 0 16px; padding: 18px 0; }
.now-next div + div { border-top: 1px solid var(--rule); }
.now-next dt { font-weight: 600; letter-spacing: .12em; }
@media (min-width: 1024px) {
  .sub .part.page-intro > .wrap:not(.split) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
  .sub .part.page-intro > .wrap > .prose { grid-column: 1; margin-top: 0; }
  .sub .part.page-intro > .wrap > .now-next { grid-column: 2; margin-top: 0; }
  .sub .part.page-intro .prose { font-size: 18px; line-height: 2.1; }
}

/* よくある質問のページ: 分類の目次の下、分類ごとに罫線で区切る */
/* 分類の区切りは、問いの一覧の下の罫線と余白だけで（罫線を足すと二重に見える） */
.sub .faq-group + .faq-group { padding-top: 112px; }
.sub .faq-group:first-child { padding-top: 72px; }
.sub .qa-a p { color: var(--sumi); }  /* 答えは本文と同じ濃さで（問いとの差は太さと行頭の位置で） */

/* 長い文章のページ（規約・ポリシー）: 目次を読みやすく、いま読んでいる条に印 */
.sub .doc-toc { font-size: 15px; line-height: 1.75; }
.sub .doc-toc a { padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; }
.sub .doc-toc ol { border-left: 1px solid var(--rule); margin-top: 8px; }
.sub .doc-toc a[aria-current="true"] { color: var(--sumi); font-weight: 600; border-left-color: var(--sumi); }
.sub .doc-sec { margin-top: 56px; padding-top: 48px; }
.sub .doc-sec h2 { margin-bottom: 20px; font-size: 21px; }
.sub .doc-items > li + li { margin-top: 14px; }
.sub .doc-band { font-size: 16px; }
@media (max-width: 900px) {
  .sub .doc-toc ol { border-left: 0; margin-top: 0; }
  .sub .doc-toc a { padding: 10px 0; margin-left: 0; border-left: 0; }
  .sub .doc-toc a[aria-current="true"] { font-weight: 400; }
}

/* 会社の情報・特商法: 項目名の柱を本文の左の柱にそろえる（PC） */
@media (min-width: 1024px) {
  .sub .info-list { max-width: none; }
  .sub .info-list div { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; padding: 24px 0; }
  .sub .info .doc-band { max-width: none; }
}
@media (min-width: 1240px) {
  .sub .info-list div { gap: 80px; }
}

/* お問い合わせ: 左の案内を罫線の囲みで静かに */
.sub .contact-aside h2 { padding-bottom: 14px; border-bottom: 1px solid var(--sumi); }
.sub .contact-aside .mail { margin-top: 18px; }

/* 送信完了: 文とボタンを本文の幅に */
.sub .thanks-note { font-size: 17px; color: var(--sumi); }

@media (max-width: 1023px) {
  .sub .part > .wrap:not(.split) > .sec-title + .points, .sub .part > .wrap:not(.split) > .sec-title + .steps { margin-top: 40px; }
}
@media (max-width: 760px) {
  .points h4 { font-size: 18px; }
  .sub .part + .part > .wrap { padding-top: 72px; background-position: 24px 0; background-size: calc(100% - 48px) 1px; }
  .sub .faq-group + .faq-group { padding-top: 80px; }
  .sub .faq-group:first-child { padding-top: 48px; }
  .sub .part .points li, .sub .part .steps li, .sub .part .steps li:nth-child(n) { padding: 24px 0 26px; }
  /* スマホはアイコンを見出しの上に（横に置くと文の幅が狭くなり、行頭に「。」が来る） */
  .sub .part .points-ic li { display: block; }
  .sub .part .points-ic .sec-ic { width: 104px; margin: -6px 0 6px -10px; }
  .sub .part .steps li, .sub .part .steps li:nth-child(n) { grid-template-columns: 2em minmax(0, 1fr); column-gap: 14px; }
  .sub .part .steps .n { font-size: 24px; }
  .sub .part .sub-head { margin-top: 56px; }
  .now-next { padding: 4px 20px; }
  .now-next div { grid-template-columns: 5em minmax(0, 1fr); padding: 14px 0; }
}
/* 右の段の中の 3 つの約束: 言葉を 1 行に（語の途中で折らない） */
.sub .three span { white-space: nowrap; }
@media (min-width: 1024px) { .sub .part .three span { font-size: 17px; letter-spacing: .08em; } }
.sub .price-table tbody th { white-space: nowrap; }
.sub .doc-sec:first-child { margin-top: 0; padding-top: 0; }
/* 会社の情報・特商法の表は柱と段に分けず、表そのものを幅いっぱいに（項目名が左の柱、内容が右の段の位置に来る） */
.sub .part.info > .wrap { display: block; }
/* 規約・ポリシーの表（PC・タブレット）: 1 列目（どなたから・情報）と見出しの列が細くなり「代表管理／者」と折れていたので、幅を取る */
@media (min-width: 761px) {
  /* 2 列の表（どなたから／預かる情報 など）: 1 列目に幅を取る */
  .sub .doc-table:not(:has(thead th:nth-child(3))) tr > :first-child { width: 13em; }
  /* 3 列以上の表（できること／代表管理者／追加管理者）: 1 列目に残りを全部渡し、「できる／できない」の列は 7.4em に固定（見出し「代表管理者」5 字が収まる幅）（1 項目 2 行以内に） */
  .sub .doc-table:has(thead th:nth-child(3)) { table-layout: fixed; }
  .sub .doc-table:has(thead th:nth-child(3)) tr > :not(:first-child) { width: 7.4em; white-space: nowrap; text-align: center; }
  .sub .doc-table thead th { white-space: nowrap; }
}
/* 会社の情報の表は下に罫線を持つので、次の節の頭の罫線は引かない（二重にしない） */
.sub .part.info + .part > .wrap { background: none; }

/* ===== 2026-10-30 想いの文章の反映（docs/08_サイト原稿/20261030_想いの文章の反映案.md） ===== */
/* トップの経験の節の結びの 1 行（キャッチコピー・案 B）。本文より 1 段大きく、色は墨のまま。上に短い細線を置いて署名のように控えめに */
.story-close { margin-top: 56px; max-width: 40em; font-size: 20px; line-height: 1.9; letter-spacing: .12em; }
.story-close::before { content: ""; display: block; width: 40px; margin-bottom: 28px; border-top: 1px solid var(--rule); }
@media (max-width: 760px) {
  .story-close { margin-top: 40px; font-size: 18px; letter-spacing: .08em; }
  .story-close::before { margin-bottom: 22px; }
}
/* ご家族の方へ「葬儀は一日で終わっても、…」: スマホで 1 行目の 12 字が収まる大きさに（「、」が行頭に落ちないように） */
@media (max-width: 760px) {
  #milestone .sec-title { font-size: min(25px, calc((100vw - 48px) / 13.2)); letter-spacing: .08em; }
}
