/* =========================================================
   遺品整理の窓口 - style.css
   配色・書体・余白は :root のトークンで一元管理。決定の根拠は 参考サイト/art-direction.md
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { overflow-x: hidden; }
body, h1, h2, h3, h4, p, ul, ol, figure, dl, dd, table, th, td { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

:root {
  --c-bg: #f7f1e5;               /* 紙 */
  --c-paper: #fffdf8;            /* フォーム・表の紙面 */
  --c-text: #2a241f;             /* 墨 */
  --c-text-muted: #5b5148;       /* 補助文字（紙地で約7:1） */
  --c-border: #cfc3ad;           /* 罫線 */
  --c-primary: #a63a16;          /* 朱：送信と主要ボタンだけ */
  --c-primary-deep: #862d10;
  --c-green: #2f4a3c;            /* 窓口の机の緑：見出し帯・フッター */
  --c-line: #067a3a;             /* LINE 専用 */
  --c-danger: #a8261b;
  --c-footer-bg: #2a241f;
  --c-footer-text: #f3ecdc;

  --f-base: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --f-disp: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --container: 1080px;
  --measure: 34em;
  --gutter: 20px;
  --header-h: 72px;
  --radius: 2px;
  --bar-h: 64px;

  --sp-1: 8px; --sp-2: 12px; --sp-3: 16px; --sp-4: 24px;
  --sp-5: 40px; --sp-6: 64px; --sp-7: 96px;
  --section-y: clamp(64px, 8vw, 96px);
  --section-y-l: clamp(80px, 11vw, 144px);
  --section-y-s: clamp(40px, 5vw, 56px);
}

html, body {
  font-family: var(--f-base);
  color: var(--c-text);
  background: var(--c-bg);
  font-size: 18px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
body { padding-bottom: var(--bar-h); }

h1, h2, h3 { font-family: var(--f-disp); font-weight: 700; line-height: 1.45; letter-spacing: 0.04em; }
p + p { margin-top: 1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--l { padding-block: var(--section-y-l); }
.section--s { padding-block: var(--section-y-s); }
.section--green { background: var(--c-green); color: var(--c-footer-text); }

/* 見出し：左揃いの二重罫線 */
.sec-head { max-width: var(--measure); margin-bottom: var(--sp-5); padding-top: var(--sp-3); border-top: 4px double var(--c-text); }
.sec-head h2 { font-size: clamp(26px, 4vw, 36px); }
.sec-head p { margin-top: var(--sp-2); color: var(--c-text-muted); }
.section--green .sec-head { border-color: var(--c-footer-text); }
.section--green .sec-head p { color: var(--c-footer-text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 12px 28px; border-radius: var(--radius);
  background: var(--c-primary); color: #fff; font-weight: 700; font-size: 18px;
  letter-spacing: 0.06em; transition: background 0.2s;
}
.btn:hover { background: var(--c-primary-deep); }
.btn--line { background: var(--c-line); }
.btn--line:hover { background: #055f2d; }
.btn--ghost { background: transparent; color: var(--c-text); border: 2px solid var(--c-text); }
.btn--ghost:hover { background: var(--c-text); color: var(--c-bg); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 3px; }
.text-link { text-decoration: underline; text-underline-offset: 4px; color: var(--c-primary); font-weight: 700; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 100; background: var(--c-bg); border-bottom: 1px solid var(--c-border); }
.hdr__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.hdr__logo { display: flex; align-items: baseline; gap: 10px; font-family: var(--f-disp); font-weight: 800; font-size: clamp(20px, 3vw, 26px); letter-spacing: 0.06em; white-space: nowrap; }
.hdr__logo small { font-family: var(--f-base); font-weight: 400; font-size: 12px; letter-spacing: 0.04em; color: var(--c-text-muted); }
.hdr__mark { display: inline-block; width: 14px; height: 14px; background: var(--c-primary); margin-right: 8px; transform: translateY(1px); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav > a { font-size: 16px; font-weight: 700; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav > a:hover { border-color: var(--c-primary); }
.hdr__actions { display: flex; align-items: center; gap: 14px; }
.hdr__tel { display: flex; flex-direction: column; line-height: 1.3; text-align: right; }
.hdr__tel small { font-size: 12px; color: var(--c-text-muted); }
.hdr__tel strong { font-family: var(--f-disp); font-size: 22px; letter-spacing: 0.04em; }
.hdr__burger { display: none; width: 48px; height: 48px; position: relative; z-index: 96; }
.hdr__burger span { position: absolute; left: 10px; right: 10px; height: 3px; background: var(--c-text); transition: transform 0.3s, opacity 0.2s; }
.hdr__burger span:nth-child(1) { top: 16px; }
.hdr__burger span:nth-child(2) { top: 23px; }
.hdr__burger span:nth-child(3) { top: 30px; }
.hdr__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hdr__burger.is-open span:nth-child(2) { opacity: 0; }
.hdr__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-backdrop { position: fixed; inset: 0; background: rgba(42,36,31,0.45); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; z-index: 90; }
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* ---------- FV ---------- */
.fv { padding-block: clamp(32px, 5vw, 64px) var(--section-y); }
.fv__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.fv__kicker { display: inline-block; padding: 4px 14px; border: 2px solid var(--c-text); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; margin-bottom: var(--sp-4); }
.fv h1 { font-size: clamp(32px, 4.8vw, 50px); line-height: 1.4; }
.fv__lead { margin-top: var(--sp-4); max-width: 30em; }
.fv__contacts { margin-top: var(--sp-5); display: grid; gap: var(--sp-3); max-width: 30em; }
.fv__contacts li { display: flex; gap: var(--sp-3); align-items: baseline; padding-bottom: var(--sp-3); border-bottom: 1px solid var(--c-border); }
.fv__contacts b { flex: 0 0 5.5em; font-family: var(--f-disp); }
.fv__contacts a { text-decoration: underline; text-underline-offset: 4px; font-weight: 700; }
.fv__facts { margin-top: var(--sp-4); font-size: 16px; color: var(--c-text-muted); }

/* ---------- Form ---------- */
.form { background: var(--c-paper); border: 1px solid var(--c-text); outline: 1px solid var(--c-text); outline-offset: 4px; padding: clamp(20px, 3vw, 36px); }
.form__title { font-size: 24px; margin-bottom: 4px; }
.form__intro { font-size: 16px; color: var(--c-text-muted); margin-bottom: var(--sp-4); }
.form__field { margin-bottom: 22px; border: 0; padding: 0; min-width: 0; }
.form__label { display: block; font-weight: 700; margin-bottom: 8px; padding: 0; }
.form__required { font-size: 13px; color: #fff; background: var(--c-danger); padding: 1px 8px; margin-left: 8px; font-weight: 400; }
.form__optional { font-size: 13px; color: var(--c-text-muted); border: 1px solid var(--c-border); padding: 0 8px; margin-left: 8px; font-weight: 400; }
.form__input, .form__select, .form__textarea {
  width: 100%; min-height: 56px; padding: 12px 14px; border: 2px solid var(--c-border); border-radius: var(--radius);
  background: #fff; font-size: 18px; font-family: inherit; color: inherit; transition: border-color 0.2s;
}
.form__input:focus, .form__select:focus, .form__textarea:focus { border-color: var(--c-primary); }
.form__textarea { min-height: 120px; resize: vertical; }
.form__file { width: 100%; padding: 14px; border: 2px dashed var(--c-text-muted); background: #fff; font-size: 16px; font-family: inherit; }
.form__hint { display: block; margin-top: 6px; font-size: 15px; color: var(--c-text-muted); line-height: 1.7; }
.form__check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; cursor: pointer; }
.form__check input { width: 24px; height: 24px; margin-top: 3px; flex-shrink: 0; accent-color: var(--c-primary); }
.form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 64px; padding: 14px; background: var(--c-primary); color: #fff; font-weight: 700; font-size: 20px; letter-spacing: 0.08em; transition: background 0.2s; }
.form__submit:hover { background: var(--c-primary-deep); }
.form__submit:disabled { opacity: 0.6; cursor: default; }
.form__success { padding: 28px; border: 2px solid var(--c-green); background: var(--c-paper); }
.form__success h3 { font-size: 22px; margin-bottom: 8px; }
.form__error { padding: 14px; border: 2px solid var(--c-danger); background: #fdecea; color: var(--c-danger); margin-bottom: 20px; font-size: 16px; }
.form__radio { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 16px; border: 2px solid var(--c-border); background: #fff; cursor: pointer; margin: 0 8px 8px 0; font-size: 17px; }
.form__radio input { width: 20px; height: 20px; accent-color: var(--c-primary); }
.form__radio.is-checked { border-color: var(--c-primary); background: #fbeee6; }

/* ---------- 比較表 ---------- */
.compare { background: var(--c-paper); border: 1px solid var(--c-text); }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--c-border); font-size: 17px; vertical-align: top; }
.compare thead th { background: var(--c-text); color: var(--c-bg); font-family: var(--f-disp); }
.compare tbody th { width: 28%; font-family: var(--f-disp); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.note { font-size: 16px; color: var(--c-text-muted); margin-top: var(--sp-3); }

/* ---------- 品目 ---------- */
.items { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: var(--sp-4) clamp(24px, 4vw, 56px); align-items: end; }
.items__a { grid-row: 1 / 3; }
.items__a img, .items__b img, .items__c img { width: 100%; object-fit: cover; }
.items__a img { aspect-ratio: 3 / 4; object-position: center 40%; }
.items__b img, .items__c img { aspect-ratio: 3 / 2; }
.items figure { position: relative; }
.items figcaption { padding-top: 12px; }
.items figcaption b { font-family: var(--f-disp); font-size: 22px; display: block; }
.items figcaption span { font-size: 17px; color: var(--c-text); display: block; line-height: 1.7; }
.items__list { margin-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 16px; }
.items__list li::before { content: "■ "; color: var(--c-primary); font-size: 10px; vertical-align: 2px; }

/* ---------- 流れ（ページの主役） ---------- */
.steps { counter-reset: s; max-width: 820px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 104px 1fr; gap: var(--sp-4); padding: var(--sp-5) 0; border-top: 2px solid var(--c-text); }
.steps li:last-child { border-bottom: 2px solid var(--c-text); }
.steps li::before { content: counter(s); font-family: var(--f-disp); font-weight: 800; background: var(--c-text); color: var(--c-bg); width: 96px; height: 96px; display: grid; place-items: center; font-size: 56px; line-height: 1; }
.steps h3 { font-size: 26px; margin-bottom: 6px; }
.cond { margin-top: var(--sp-6); max-width: 760px; background: var(--c-paper); color: var(--c-text); }
.cond th, .cond td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--c-border); font-size: 17px; vertical-align: top; }
.cond th { width: 30%; font-family: var(--f-disp); background: #efe7d6; }
.cond tr:last-child th, .cond tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; border-top: 2px solid var(--c-text); }
.faq__item { border-bottom: 1px solid var(--c-border); }
.faq__q { width: 100%; text-align: left; padding: 20px 48px 20px 4px; font-weight: 700; font-size: 19px; position: relative; line-height: 1.6; }
.faq__q::after { content: "＋"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--c-primary); }
.faq__item.is-open .faq__q::after { content: "－"; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--c-text); }
.faq__item.is-open .faq__a { max-height: 600px; padding: 0 4px 22px; }

/* ---------- LINE ---------- */
.line-band { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-5); align-items: center; border: 2px solid var(--c-line); background: var(--c-paper); padding: clamp(24px, 4vw, 48px); }
.line-band h2 { font-size: clamp(24px, 3.5vw, 32px); margin-bottom: var(--sp-2); }
.line-band__qr { border: 2px dashed var(--c-text-muted); aspect-ratio: 1; display: grid; place-items: center; text-align: center; padding: 16px; color: var(--c-text-muted); font-size: 16px; max-width: 220px; }

/* ---------- コラム ---------- */
.col-list { max-width: 820px; border-top: 2px solid var(--c-text); }
.col-list li { border-bottom: 1px solid var(--c-border); }
.col-list a { display: grid; grid-template-columns: 7.5em 1fr; gap: var(--sp-3); padding: 20px 4px; }
.col-list a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.col-list time { font-size: 16px; color: var(--c-text-muted); }
.col-list strong { font-family: var(--f-disp); font-size: 20px; line-height: 1.6; }
.col-list span { display: block; font-size: 16px; color: var(--c-text-muted); line-height: 1.7; }

/* ---------- 運営者表・記事 ---------- */
.info { max-width: 820px; background: var(--c-paper); border: 1px solid var(--c-text); }
.info th, .info td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--c-border); font-size: 17px; vertical-align: top; }
.info th { width: 30%; font-family: var(--f-disp); background: #efe7d6; }
.info tr:last-child th, .info tr:last-child td { border-bottom: 0; }
.page-head { padding-block: clamp(40px, 6vw, 72px) var(--sp-5); border-bottom: 1px solid var(--c-border); }
.page-head h1 { font-size: clamp(28px, 4.4vw, 42px); max-width: 24em; }
.page-head p { margin-top: var(--sp-3); max-width: var(--measure); color: var(--c-text-muted); }
.article { max-width: 760px; }
.article h2 { font-size: 26px; margin: var(--sp-6) 0 var(--sp-3); padding-top: var(--sp-3); border-top: 4px double var(--c-text); }
.article h3 { font-size: 21px; margin: var(--sp-5) 0 var(--sp-2); }
.article ul { list-style: disc; padding-left: 1.4em; }
.article li { margin-bottom: 8px; }
.crumb { font-size: 15px; color: var(--c-text-muted); margin-bottom: var(--sp-3); }
.crumb a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.ftr { background: var(--c-footer-bg); color: var(--c-footer-text); padding: var(--sp-6) 0 var(--sp-5); font-size: 16px; line-height: 1.9; }
.ftr__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.ftr__name { font-family: var(--f-disp); font-size: 24px; font-weight: 800; letter-spacing: 0.06em; }
.ftr__heading { font-family: var(--f-disp); font-weight: 700; margin-bottom: 12px; border-bottom: 1px solid color-mix(in srgb, var(--c-footer-text) 40%, transparent); padding-bottom: 6px; }
.ftr__links { display: flex; flex-direction: column; gap: 8px; }
.ftr__links a, .ftr a.tel { text-decoration: underline; text-underline-offset: 4px; }
.ftr__bottom { margin-top: var(--sp-5); padding-top: var(--sp-3); border-top: 1px solid color-mix(in srgb, var(--c-footer-text) 30%, transparent); font-size: 14px; }

/* ---------- 固定バー（フォーム・電話） ---------- */
.fixbar { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1.6fr 1fr; height: var(--bar-h); transition: transform 0.25s; }
.fixbar.is-hidden { transform: translateY(110%); }
.fixbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.3; color: #fff; font-weight: 700; font-size: 17px; }
.fixbar small { font-weight: 400; font-size: 12px; }
.fixbar__form { background: var(--c-primary); }
.fixbar__tel { background: var(--c-text); }
.fv__points { margin-top: var(--sp-4); display: grid; gap: 8px; max-width: 30em; }
.fv__points li { padding-left: 1.4em; position: relative; font-weight: 700; }
.fv__points li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 10px; height: 10px; background: var(--c-primary); }
.fv__tel { margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--c-border); font-size: 16px; max-width: 30em; }
.fv__tel a { font-family: var(--f-disp); font-size: 22px; text-decoration: underline; text-underline-offset: 4px; }
.sec-head--sm { border-top-width: 1px; border-top-style: solid; }
.sec-head--sm h2 { font-size: clamp(22px, 3vw, 28px); }
/* ファイル選択（標準の英語表示を隠し、日本語のボタンにする） */
.form__file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.form__filebtn { display: inline-flex; align-items: center; min-height: 52px; padding: 8px 22px; border: 2px solid var(--c-text); background: #fff; font-weight: 700; cursor: pointer; }
.form__file:focus-visible + .form__filebtn { outline: 3px solid var(--c-primary); outline-offset: 3px; }
.form__filename { margin-left: 12px; font-size: 16px; color: var(--c-text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hdr__burger { display: block; }
  .hdr__tel { display: none; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(80vw, 340px);
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--c-bg); padding: calc(var(--header-h) + 16px) 28px 28px;
    transform: translateX(100%); transition: transform 0.35s ease; z-index: 95;
    border-left: 1px solid var(--c-text); overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav > a { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--c-border); font-size: 18px; }
}
@media (max-width: 860px) {
  .fv__grid, .split, .items, .line-band, .ftr__inner { grid-template-columns: 1fr; }
  .items__a { grid-row: auto; }
  .items__a img { aspect-ratio: 4 / 3; }
  .line-band__qr { max-width: 180px; }
  .compare th, .compare td, .cond th, .cond td, .info th, .info td { padding: 12px; font-size: 16px; }
  .cond th, .info th { width: 34%; }
  .col-list a { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 480px) {
  html, body { font-size: 17px; }
  .steps li { grid-template-columns: 60px 1fr; gap: 14px; }
  .steps li::before { width: 56px; height: 56px; font-size: 34px; }
  .fixbar a { font-size: 15px; }
  .fv__contacts li { flex-direction: column; gap: 0; }
  .fv__contacts b { flex: none; }
  .compare { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* 審査2巡目：強弱・幅の使い方 */
.big-h { font-size: clamp(34px, 5vw, 56px); line-height: 1.35; }
.split--wide { grid-template-columns: 1fr 1.1fr; align-items: start; }
.prose { max-width: 34em; padding-top: 8px; }
.steps { max-width: none; }
.steps li { grid-template-columns: 120px 1fr 1.2fr; align-items: start; }
.steps li::before { width: 104px; height: 104px; font-size: 64px; }
.steps h3 { font-size: 30px; margin: 0; }
.steps p { margin: 0; }
#flow { padding-block: clamp(96px, 12vw, 176px); }
#faq, #column, #company { padding-block: var(--section-y-s); }
.faq, .col-list, .info { max-width: 720px; }
.fv__hint { margin-top: var(--sp-3); font-size: 16px; max-width: 30em; }
.page-head h1 { max-width: 20em; text-wrap: balance; }
.sec-head h2, .big-h { text-wrap: balance; }
.fixbar { grid-template-columns: 1.6fr 1fr; }
@media (max-width: 860px) {
  .split--wide { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 60px 1fr; gap: 6px 14px; }
  .steps li::before { grid-row: 1 / 3; width: 56px; height: 56px; font-size: 34px; }
  .steps h3 { font-size: 22px; }
}
.steps li > div { display: contents; }

.hdr__cta { display: inline-flex; align-items: center; min-height: 48px; padding: 6px 18px; background: var(--c-primary); color: #fff; font-weight: 700; font-size: 16px; white-space: nowrap; }
.hdr__cta:hover { background: var(--c-primary-deep); }
@media (min-width: 861px) {
  .fixbar { display: none; }
  body { padding-bottom: 0; }
}
@media (max-width: 480px) { .hdr__cta { padding: 6px 12px; font-size: 15px; } .hdr__logo { font-size: 19px; } }
