/* ============================================================
   VILLA ASO ─ 冊子共通スタイル
   A4 / 210 × 297mm ・和モダン（和紙色＋朱＋金）
   ============================================================ */
:root{
  --washi:#f5f0e5;
  --washi-deep:#ede5d2;
  --washi-card:#faf6ec;
  --sumi:#211e19;
  --sumi-soft:#494435;
  --sumi-faint:#6b6455;
  --shu:#9c3a2b;
  --shu-deep:#8c2f21;
  --gold:#806224;
  --gold-soft:#b89a5e;
  --midori:#465143;
  --line:#c9bda0;
  --line-soft:#ddd3ba;
  --serif:"Shippori Mincho","Hiragino Mincho ProN","Yu Mincho",serif;
  --sans:"Zen Kaku Gothic New","Hiragino Kaku Gothic ProN",sans-serif;
  --latin:"Cormorant Garamond",serif;
}
*{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  font-family:var(--serif);
  background:var(--washi-deep);
  color:var(--sumi);
  line-height:1.8;
  letter-spacing:.02em;
  font-variant-numeric:lining-nums;
  -webkit-font-smoothing:antialiased;
  padding:10mm 0;
}
img{max-width:100%;display:block}

/* ───────── ページ ───────── */
.page{
  width:210mm;min-height:297mm;
  margin:0 auto 8mm;
  padding:16mm 17mm 11mm;
  background:var(--washi-card);
  position:relative;overflow:hidden;
  box-shadow:0 2px 22px rgba(33,30,25,.13);
  display:flex;flex-direction:column;
}
.page::before{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.42 0 0 0 0 0.37 0 0 0 0 0.27 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
.page > *{position:relative;z-index:1}
.body{flex:1}

.runhead{
  display:flex;align-items:baseline;justify-content:space-between;
  border-bottom:1px solid var(--line-soft);
  padding-bottom:3mm;margin-bottom:6mm;
}
.runhead .chap{font-size:9.5pt;color:var(--sumi-faint);letter-spacing:.18em}
.runhead .chap b{color:var(--shu);font-weight:600;margin-right:.6em}
.runhead .brand{
  font-family:var(--latin);font-size:9.5pt;letter-spacing:.22em;
  color:var(--gold-soft);text-transform:uppercase;
}
.folio{
  margin-top:3.5mm;padding-top:2.6mm;
  border-top:1px solid var(--line-soft);
  display:flex;align-items:center;justify-content:space-between;
  font-size:8.5pt;color:var(--sumi-faint);letter-spacing:.12em;
}
.folio .n{font-family:var(--latin);font-size:12pt;letter-spacing:.08em;color:var(--gold)}

/* ───────── 見出し ───────── */
.h1{font-size:19pt;font-weight:600;line-height:1.4;letter-spacing:.05em;margin-bottom:2mm}
.h1 .sub{
  display:block;font-family:var(--latin);font-style:italic;
  font-size:10.5pt;letter-spacing:.1em;color:var(--gold-soft);
  margin-top:1mm;font-weight:500;
}
.lead{font-size:9.6pt;line-height:1.85;color:var(--sumi-soft);margin-bottom:4.5mm;max-width:152mm}
.h2{
  font-size:11.5pt;font-weight:600;letter-spacing:.05em;
  margin:4.6mm 0 2mm;padding-left:4mm;position:relative;line-height:1.45;
}
.h2::before{content:"";position:absolute;left:0;top:.5em;width:2px;height:1.05em;background:var(--shu)}
.h2:first-child{margin-top:0}
.h3{font-size:10pt;font-weight:600;letter-spacing:.05em;color:var(--midori);margin:3.5mm 0 1.2mm}

/* ───────── 本文 ───────── */
p{font-size:9.4pt;line-height:1.74}
p + p{margin-top:1.8mm}
.small{font-size:8.4pt;line-height:1.66;color:var(--sumi-faint)}
.center{text-align:center}

ul.list{list-style:none;margin:1.5mm 0}
ul.list li{font-size:9.4pt;line-height:1.72;padding-left:4.5mm;position:relative;margin-bottom:.9mm}
ul.list li::before{
  content:"";position:absolute;left:0;top:.78em;
  width:3.2px;height:3.2px;border-radius:50%;background:var(--gold-soft);
}
ul.list li b{font-weight:600}
ul.list.tight li{margin-bottom:.2mm}
ul.list.ng li::before{background:var(--shu);border-radius:0;width:4px;height:1px;top:.95em}

ol.steps{list-style:none;counter-reset:s;margin:2.5mm 0}
/* start属性で途中の番号から始める場合（counter-reset は start を無視するため個別指定） */
ol.steps[start="2"]{counter-reset:s 1}
ol.steps[start="3"]{counter-reset:s 2}
ol.steps[start="4"]{counter-reset:s 3}
ol.steps[start="5"]{counter-reset:s 4}
ol.steps[start="6"]{counter-reset:s 5}
ol.steps li{
  counter-increment:s;position:relative;padding-left:10mm;
  min-height:7.2mm;margin-bottom:2.2mm;font-size:9.4pt;line-height:1.7;
}
ol.steps li::before{
  content:counter(s);position:absolute;left:0;top:0;
  width:7mm;height:7mm;border-radius:50%;
  border:1px solid var(--gold-soft);color:var(--gold);
  font-family:var(--latin);font-size:10.5pt;
  display:flex;align-items:center;justify-content:center;
}
ol.steps li > b:first-child{display:block;font-weight:600;margin-bottom:.2mm}
ol.steps.roomy li{margin-bottom:3.5mm}

/* 行データ */
.rows{border-top:1px solid var(--line-soft);margin:2.5mm 0}
.rows div{
  display:flex;gap:5mm;align-items:baseline;
  border-bottom:1px solid var(--line-soft);
  padding:1.6mm 0;font-size:9.2pt;line-height:1.62;
}
.rows .k{flex:0 0 32mm;color:var(--sumi-faint);font-size:8.8pt;letter-spacing:.1em}
.rows .v{flex:1}
.rows .v b{font-weight:600}
.rows.narrow .k{flex:0 0 24mm}

/* 囲み */
.card{background:rgba(237,229,210,.5);border:1px solid var(--line-soft);padding:3.6mm 5mm;margin:3mm 0}
.card .ttl{font-size:9.8pt;font-weight:600;letter-spacing:.05em;margin-bottom:1.4mm;color:var(--midori)}
.note{border-left:2px solid var(--gold-soft);background:rgba(184,154,94,.09);padding:3mm 4.5mm;margin:3mm 0;font-size:8.8pt;line-height:1.75}
.warn{border-left:2px solid var(--shu);background:rgba(156,58,43,.06);padding:3mm 4.5mm;margin:3mm 0;font-size:8.8pt;line-height:1.75}
.warn .ttl{font-weight:600;color:var(--shu-deep);margin-bottom:.8mm;font-size:9.4pt}

/* 大きな数字 */
.big{font-family:var(--latin);font-size:22pt;font-weight:600;color:var(--shu);letter-spacing:.02em;line-height:1.1}
.timeset{display:flex;gap:9mm;margin:3mm 0 1mm}
.timeset .lb{font-size:8.6pt;color:var(--sumi-faint);letter-spacing:.14em;display:block}
.time{
  display:inline-flex;align-items:baseline;gap:.3em;
  font-family:var(--latin);font-size:15pt;font-weight:600;color:var(--shu);letter-spacing:.02em;
}
.time .u{font-size:9pt;font-family:var(--serif);color:var(--sumi-soft)}

/* 段組 */
.cols{display:grid;grid-template-columns:1fr 1fr;gap:4mm 6mm}
.cols3{display:grid;grid-template-columns:repeat(3,1fr);gap:4mm 5mm}
.cols.narrowgap{gap:3mm 4mm}

/* 写真 */
figure{margin:2mm 0 0}
figure img{width:100%;height:44mm;object-fit:cover;border:1px solid var(--line-soft)}
figure.tall img{height:58mm}
figure.short img{height:34mm}
figure.xshort img{height:28mm}
figure.full img{height:72mm}
/* .fit ＝ 説明用の写真。書き込みや操作部が切れないよう、トリミングせず全体を見せる */
figure.fit img{height:auto}
/* 幅を絞って高さを抑える（.fit と併用） */
figure.w75 img{width:75%;margin-inline:auto}
figure.w65 img{width:65%;margin-inline:auto}
figure.w60 img{width:60%;margin-inline:auto}
figure.w50 img{width:50%;margin-inline:auto}
figcaption{
  font-size:8pt;color:var(--sumi-faint);letter-spacing:.05em;line-height:1.55;
  margin-top:1.2mm;
}
figcaption b{color:var(--sumi);font-weight:600}

/* 要確認マーカー（公開前に削除） */
.tbd{
  display:inline-block;font-family:var(--sans);font-size:7.4pt;font-weight:500;
  letter-spacing:.08em;color:#8a6b12;background:#f7e9b8;border:1px solid #d9be6a;
  border-radius:2px;padding:.1em .5em;margin:0 .3em;vertical-align:.08em;line-height:1.5;
}

/* ───────── 表紙 ───────── */
.cover{
  justify-content:space-between;
  background:radial-gradient(120% 70% at 50% 0%,rgba(184,154,94,.16),transparent 60%),var(--washi-card);
}
.cover .crest{font-family:var(--latin);letter-spacing:.4em;font-size:11pt;color:var(--gold);text-transform:uppercase;text-align:center}
.cover .mid{text-align:center;padding:6mm 0}
.cover .jp{font-size:40pt;font-weight:600;letter-spacing:.22em;line-height:1.5;text-indent:.22em}
.cover .jp.sm{font-size:31pt}
.cover .rule{width:26mm;height:1px;background:var(--gold-soft);margin:9mm auto}
.cover .en{font-family:var(--latin);font-size:14pt;font-style:italic;letter-spacing:.28em;color:var(--gold)}
.cover .tag{font-size:11pt;letter-spacing:.14em;color:var(--sumi-soft);line-height:2.4;margin-top:10mm}
.cover .foot{text-align:center;font-size:9pt;color:var(--sumi-faint);letter-spacing:.16em;line-height:2.2}
.cover .seal{
  width:20mm;height:20mm;margin:0 auto 8mm;
  border:1px solid var(--shu);color:var(--shu);
  display:flex;align-items:center;justify-content:center;
  font-size:8.6pt;letter-spacing:.08em;text-align:center;line-height:1.45;
}
.cover .seal.one{letter-spacing:.14em}

/* 目次 */
.toc .grp{font-size:8.6pt;letter-spacing:.18em;color:var(--shu);margin:3mm 0 .6mm;font-weight:600}
.toc .grp:first-child{margin-top:0}
.toc .i{display:flex;align-items:baseline;gap:3mm;font-size:9.4pt;padding:.45mm 0;line-height:1.55}
.toc .dot{flex:1;border-bottom:1px dotted var(--line);transform:translateY(-.28em)}
.toc .pg{font-family:var(--latin);font-size:11pt;color:var(--gold);letter-spacing:.06em}

/* 連絡先 */
.contact{border:1px solid var(--line);padding:5mm 6mm;margin-top:5mm;background:rgba(237,229,210,.45)}
.contact .ttl{font-size:9pt;letter-spacing:.2em;color:var(--shu);margin-bottom:2.5mm;font-weight:600}
.sig{margin-top:7mm;text-align:right;font-size:9.6pt;letter-spacing:.1em;color:var(--sumi-soft);line-height:2}

/* ───────── Web版ナビゲーション（画面のみ・印刷では消える） ───────── */
.webnav{
  position:sticky;top:0;z-index:20;
  display:flex;align-items:center;justify-content:space-between;gap:4mm;
  margin:0 auto 8mm;max-width:210mm;
  padding:11px 18px;
  background:rgba(250,246,236,.94);backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line-soft);
  font-family:var(--sans);font-size:12px;letter-spacing:.08em;
}
.webnav a{color:var(--shu);text-decoration:none;font-weight:500;white-space:nowrap}
.webnav a:hover{text-decoration:underline}
.webnav .now{color:var(--sumi-faint);letter-spacing:.14em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media screen and (max-width:830px){
  .webnav{margin-bottom:0;padding:10px 16px}
}

/* ───────── 画面／印刷の出し分け ─────────
   Web公開版では伏せ、印刷・PDF（現地設置用）でのみ表示する。
   .print-row は「行まるごと」印刷限定（.rows div の display:flex を上書きするため
   詳細度を .rows div.print-row で揃えてある） */
.print-only{display:none}
.rows div.print-row{display:none}

/* ───────── 印刷 ───────── */
@media print{
  @page{size:A4;margin:0}
  body{background:#fff;padding:0}
  .page{margin:0;box-shadow:none;break-after:page;page-break-after:always;width:210mm;height:297mm;min-height:0}
  .page:last-child{break-after:auto;page-break-after:auto}
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .webnav{display:none}
  .print-only{display:inline}
  .screen-only{display:none}
  .rows div.print-row{display:flex}
}

/* ───────── 画面（スマホ） ───────── */
@media screen and (max-width:830px){
  body{padding:0;background:var(--washi-card)}
  .page{width:100%;min-height:0;margin:0;padding:26px 20px 30px;box-shadow:none;border-bottom:1px solid var(--line-soft)}
  .cover{min-height:100svh;justify-content:center;gap:6vh}
  .cover .jp{font-size:30pt}
  .cover .jp.sm{font-size:24pt}
  .h1{font-size:17pt}
  p,ul.list li,ol.steps li,.rows div{font-size:11pt;line-height:1.9}
  .lead{font-size:11pt}
  .cols,.cols3{grid-template-columns:1fr}
  .rows .k{flex:0 0 26mm}
  figure img{height:auto;max-height:60vh}
  /* 柱：スマホでは折り返さないよう、章名だけを小さく残す */
  .runhead{padding-bottom:2.5mm;margin-bottom:5mm}
  .runhead .chap{font-size:10px;letter-spacing:.1em}
  .runhead .brand{display:none}

  /* ── A4に収めるためのページ個別指定（#p03 など）を、画面では読みやすさ優先に戻す。
        個別指定はIDセレクタで詳細度が高いため、ここだけ !important で上書きする ── */
  .page .rows div{padding:2.2mm 0 !important;line-height:1.9 !important}
  .page ol.steps li{margin-bottom:3mm !important;line-height:1.9 !important}
  .page .h2{margin:6mm 0 2.5mm !important}
  .page .card,.page .warn,.page .note{margin:4mm 0 !important;padding:4mm 4.5mm !important}
  .page figcaption{margin-top:2mm !important}
  .page .lead{margin-bottom:4mm !important}

  /* 印刷時に幅を絞った写真は、スマホでは画面いっぱいに戻す（赤い書き込みが読めなくなるため） */
  figure.w75 img,figure.w65 img,figure.w60 img,figure.w50 img{width:100%}

  /* 見出し列を詰めて、本文に幅を回す */
  .rows .k{flex:0 0 22mm}
  .cover .tag{font-size:12pt}
}
