/* プラマーナ サイト共通スタイル ― 案B「暦」 */

:root {
  --ground: #F3EBDD;
  --paper: #FAF5EA;
  --ink: #1A1714;
  --muted: #574C40;
  --rule-soft: #C9BBA3;
  --vermillion: #B23A2A;
  --link: #9A2F22;
  --link-hover: #74221A;

  --font-display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-body: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-deva: "Noto Serif Devanagari", serif;
  --font-latin: "Cormorant Garamond", Georgia, serif;

  --gutter: 80px;
  --measure: 720px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 2.1;
  padding: 40px;
}

a { color: var(--link); text-underline-offset: 4px; }
a:hover { color: var(--link-hover); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--vermillion); outline-offset: 3px; }

img, svg { max-width: 100%; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 8px 16px;
}
.skip:focus { left: 16px; top: 16px; z-index: 10; }

/* 枠（二重罫） */
.frame {
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 80px);
  border: 4px double var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

/* ヘッダー */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 56px;
  border-bottom: 1px solid var(--ink);
}
.brand {
  display: flex; align-items: center; gap: 16px;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.seal {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--vermillion); border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
}
.brand-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 24px; letter-spacing: 0.2em; line-height: 1;
}
.site-nav { display: flex; font-size: 15px; line-height: 1.6; }
.site-nav a {
  color: var(--ink); text-decoration: none;
  padding: 8px 22px; border-left: 1px solid var(--ink);
}
.site-nav a:last-child { border-right: 1px solid var(--ink); }
.site-nav a[aria-current="page"] { color: var(--vermillion); font-weight: 600; }

/* 汎用 */
main { flex-grow: 1; }
.section { padding: 80px var(--gutter); border-bottom: 1px solid var(--ink); }
.section:last-child { border-bottom: 0; }
.eyebrow { margin: 0; font-size: 14px; letter-spacing: 0.3em; color: var(--link); line-height: 1.6; }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.muted { color: var(--muted); }
strong { font-weight: 600; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.06em; }
.h2-mark { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; font-size: 24px; line-height: 1.5; }
.h2-mark::before { content: ""; width: 10px; height: 10px; background: var(--vermillion); flex-shrink: 0; }

/* ボタン */
.actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 32px;
  font-size: 16px; letter-spacing: 0.06em; line-height: 1.5;
  text-decoration: none; text-align: center;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #3A332C; color: var(--paper); }
.btn-secondary { border: 1px solid var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ground); color: var(--ink); }
.btn-apply { background: var(--vermillion); color: #FFFFFF; }
.btn-apply:hover { background: var(--link-hover); color: #FFFFFF; }

/* トップ：ヒーロー（縦書き） */
.hero { display: flex; gap: 72px; padding: 96px var(--gutter); border-bottom: 1px solid var(--ink); }
.hero-body { flex-grow: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 40px; }
.hero-lead { max-width: 560px; font-size: 19px; }
.hero-lead p { margin: 0 0 4px; }
.hero-vertical { display: flex; gap: 40px; align-items: flex-start; flex-shrink: 0; }
.hero h1 {
  margin: 0; writing-mode: vertical-rl;
  font-size: 60px; line-height: 1.5; letter-spacing: 0.12em; height: 700px;
}
.hero-side {
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 16px;
  font-size: 14px; letter-spacing: 0.3em; line-height: 1.6; color: var(--muted);
  border-left: 1px solid var(--ink); padding-left: 12px; height: 700px;
}
.hero-side .dot { color: var(--vermillion); }

/* 下層ページの見出し */
.page-head { padding: 88px var(--gutter) 64px; border-bottom: 1px solid var(--ink); display: flex; flex-direction: column; gap: 28px; }
.page-head h1 { margin: 0; font-size: 44px; line-height: 1.55; }
.page-head .sub { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.8; }

/* 条件の表（二重罫） */
.cond-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
.cond-grid > .cond-intro { grid-column: span 4; }
.cond-grid > table { grid-column: 6 / span 7; }
.cond-intro h2 { margin: 0 0 20px; font-size: 26px; line-height: 1.6; }
table.rule {
  width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.7;
  border-top: 3px double var(--ink); border-bottom: 3px double var(--ink);
}
table.rule th, table.rule td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule-soft); text-align: left; vertical-align: top; }
table.rule tr:last-child th, table.rule tr:last-child td { border-bottom: 0; }
table.rule th { font-weight: 600; width: 36%; }
table.rule thead th { border-bottom: 1px solid var(--ink); width: auto; }
table.rule .note { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }

/* 屋号 */
.name-block { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.name-scripts { margin: 0; display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; justify-content: center; line-height: 1.4; }
.deva { font-family: var(--font-deva); font-size: 30px; font-weight: 500; }
.latin { font-family: var(--font-latin); font-style: italic; font-weight: 500; font-size: 28px; color: var(--muted); }
.name-meaning { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.7; }

/* 2カラム */
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--ink); }
.two-col > div { padding: 72px 56px 80px var(--gutter); }
.two-col > div + div { border-left: 1px solid var(--ink); padding: 72px var(--gutter) 80px 56px; }

/* 目次つき本文（/method/） */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 72px; padding: 72px var(--gutter) 96px; }
.toc { position: sticky; top: 24px; align-self: start; font-size: 14px; line-height: 1.7; }
.toc p { margin: 0 0 12px; font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 5px 0; color: var(--muted); text-decoration: none; }
.toc a::before { content: counter(toc); color: var(--vermillion); min-width: 1.4em; }
.toc a:hover { color: var(--ink); }
.doc-body { max-width: var(--measure); display: flex; flex-direction: column; gap: 80px; }
.doc-sec h2 {
  margin: 0 0 24px; font-size: 26px; line-height: 1.6;
  display: flex; align-items: baseline; gap: 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--ink);
}
.doc-sec h2 .num { font-size: 18px; color: var(--vermillion); }
.doc-sec p { margin: 0 0 1.1em; }
.doc-sec p:last-child { margin-bottom: 0; }
.doc-sec ul, .doc-sec ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.steps { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center; font-size: 14px; line-height: 1.6; }
.steps li { padding: 14px 4px; border: 1px solid var(--ink); background: var(--paper); }
.steps li.key { background: var(--ink); color: var(--paper); }
.figure-num { display: flex; gap: 28px; align-items: center; padding: 24px 28px; margin: 0 0 1.1em; border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); }
.figure-num .big { font-family: var(--font-display); font-weight: 800; font-size: 52px; line-height: 1; }
.figure-num p { margin: 0; font-size: 15px; line-height: 1.9; color: var(--muted); }
.pull { margin: 0 0 1.1em; padding: 4px 0 4px 24px; border-left: 3px solid var(--vermillion); font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.85; }
.pending { padding: 20px 24px; border: 1px dashed var(--muted); color: var(--muted); font-size: 15px; }

/* 料金ボックス */
.price-box { border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); padding: 24px 0; max-width: var(--measure); }
.price { margin: 0 0 12px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; line-height: 1.4; }
.price .yen { font-family: var(--font-display); font-weight: 800; font-size: 44px; }
.dl { margin: 0; }
.dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--rule-soft); font-size: 15px; line-height: 1.7; }
.dl dt { color: var(--muted); flex-shrink: 0; }
.dl dd { margin: 0; text-align: right; }

.ink-panel { background: var(--ink); color: var(--paper); padding: 40px 44px; max-width: var(--measure); }
.ink-panel h2 { margin: 0 0 16px; font-size: 22px; line-height: 1.5; color: var(--paper); }
.ink-panel p { margin: 0 0 1em; }
.ink-panel p:last-child { margin: 0; }

.faq dt { font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1.7; margin-top: 32px; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 8px 0 0; }

.hotline { border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); padding: 8px 0; max-width: var(--measure); }
.hotline h3 { font-size: 17px; margin: 24px 0 6px; line-height: 1.6; }
.hotline p { margin: 0; font-size: 15px; line-height: 1.9; }

/* フッター */
.site-footer { border-top: 4px double var(--ink); padding: 40px var(--gutter); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; row-gap: 24px; font-size: 14px; line-height: 1.9; color: var(--muted); }
.site-footer h2 { margin: 0 0 6px; font-size: 15px; color: var(--ink); letter-spacing: 0.06em; }
.site-footer p, .site-footer ul { margin: 0; }
.site-footer ul { padding-left: 1.2em; }
.site-footer .foot-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 16px; border-top: 1px solid var(--rule-soft); }

/* ―― スマホ ―― */
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  body { padding: 12px; font-size: 15px; }
  .frame { min-height: calc(100vh - 24px); }
  .site-header { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px 0; }
  .seal { width: 34px; height: 34px; }
  .seal svg { width: 26px; height: 26px; }
  .brand-name { font-size: 19px; letter-spacing: 0.16em; }
  .site-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 -16px; border-top: 1px solid var(--ink); }
  .site-nav a, .site-nav a:last-child { border: 0; border-bottom: 1px solid var(--rule-soft); min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 8px; font-size: 14px; }
  .site-nav a:nth-child(odd) { border-right: 1px solid var(--rule-soft); }
  .site-nav a:nth-last-child(-n+2) { border-bottom: 0; }

  .section { padding: 48px var(--gutter); }
  .hero { flex-direction: column-reverse; gap: 32px; padding: 40px var(--gutter) 48px; }
  .hero-vertical { justify-content: flex-start; gap: 16px; flex-direction: row-reverse; }
  .hero h1 { font-size: 36px; letter-spacing: 0.1em; line-height: 1.55; height: 420px; }
  .hero-side { font-size: 12px; height: 420px; padding-left: 8px; }
  .hero-body { gap: 32px; }
  .hero-lead { font-size: 16px; }
  .actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; padding: 0 16px; }

  .page-head { padding: 48px var(--gutter) 40px; gap: 20px; }
  .page-head h1 { font-size: 28px; }
  .page-head .sub { font-size: 17px; }

  .cond-grid { display: block; }
  .cond-intro h2 { font-size: 22px; }
  table.rule { font-size: 14px; }
  .deva { font-size: 24px; }
  .latin { font-size: 22px; }
  .name-meaning { font-size: 20px; }

  .two-col { grid-template-columns: minmax(0, 1fr); border-bottom: 0; }
  .two-col > div, .two-col > div + div { padding: 48px var(--gutter); border-left: 0; border-bottom: 1px solid var(--ink); }
  .h2-mark { font-size: 21px; }

  .doc { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 40px var(--gutter) 64px; }
  .toc { position: static; border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); padding: 16px 0; }
  .doc-body { gap: 56px; }
  .doc-sec h2 { font-size: 21px; gap: 12px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure-num { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 0; }
  .pull { font-size: 18px; }
  .price .yen { font-size: 36px; }
  .dl div { flex-direction: column; gap: 0; }
  .dl dd { text-align: left; }
  .ink-panel { padding: 28px 20px; }

  .site-footer { grid-template-columns: minmax(0, 1fr); padding: 32px var(--gutter); font-size: 13px; }
}

/* ―― 記事→クッションの橋渡しブロック ―― */
.bridge {
  margin: 0; padding: 36px 40px; max-width: var(--measure);
  border: 4px double var(--ink); background: var(--ground);
  display: flex; flex-direction: column; gap: 16px;
}
.bridge .bridge-label { margin: 0; font-size: 13px; letter-spacing: 0.3em; color: var(--link); line-height: 1.6; }
.bridge h2 { margin: 0; font-size: 22px; line-height: 1.7; }
.bridge p { margin: 0; }
.bridge .actions { margin-top: 8px; }

/* クッション：記入例 */
.example { border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); padding: 20px 0; margin: 0 0 1.1em; }
.example .quote { margin: 0 0 16px; font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.9; }
.example table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.8; }
.example th, .example td { padding: 10px 12px 10px 0; border-top: 1px solid var(--rule-soft); text-align: left; vertical-align: top; }
.example th { width: 5.5em; font-weight: 600; color: var(--vermillion); white-space: nowrap; }
.steps-text h3 { font-size: 17px; margin: 28px 0 4px; line-height: 1.7; }
.steps-text h3:first-child { margin-top: 0; }

/* 記事一覧 */
.article-list { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }
.article-list li { border-top: 1px solid var(--ink); padding: 28px 0; }
.article-list li:last-child { border-bottom: 1px solid var(--ink); }
.article-list a { font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 1.7; color: var(--ink); text-decoration: none; }
.article-list a:hover { color: var(--vermillion); }
.article-list p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.article-meta { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }

@media (max-width: 900px) {
  .bridge { padding: 24px 18px; }
  .bridge h2 { font-size: 19px; }
  .example .quote { font-size: 16px; }
  .example th { width: auto; display: block; padding-bottom: 0; border-top: 1px solid var(--rule-soft); }
  .example td { display: block; border-top: 0; padding-top: 2px; }
  .article-list a { font-size: 18px; }
}

/* 動きで見る（2026-09-29 追加）：JavaScriptなし。横型と縦型を幅で出し分ける */
.motion { margin: 0 0 1.4em; max-width: 960px; }
.motion video { display: block; width: 100%; height: auto; border: 1px solid var(--ink); background: var(--paper); }
.motion .v-portrait { display: none; max-width: 420px; margin: 0 auto; }
.motion figcaption { margin-top: 12px; font-size: 15px; line-height: 1.9; color: var(--muted); }
@media (max-width: 900px) {
  .motion .v-landscape { display: none; }
  .motion .v-portrait { display: block; }
}

/* 図（読みもの記事用・2026-09-29 追加） */
.diagram { margin: 0 0 1.4em; padding: 20px 0; border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption { margin-top: 12px; font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.8; }
.diagram .diagram-note { margin: 6px 0 0; font-size: 14px; color: var(--muted); line-height: 1.8; }
.divider-note { padding: 20px 24px; border: 1px solid var(--ink); background: var(--ground); }
@media (max-width: 900px) { .diagram figcaption { font-size: 15px; } }

/* 物語ページ（2026-09-29 追加） */
.fiction-note { padding: 16px 20px; border: 1px solid var(--ink); background: var(--ground); font-size: 14px; line-height: 1.9; max-width: var(--measure); margin: 0; }
.story { padding: 72px var(--gutter) 40px; }
.story-body { max-width: var(--measure); }
.story-body p { margin: 0 0 1.6em; line-height: 2.3; }
.story-body .scene { margin: 2.6em 0; text-align: center; color: var(--vermillion); letter-spacing: 0.8em; }
.story-facts { padding: 24px var(--gutter) 96px; }
.story-facts .doc-sec { max-width: var(--measure); }
.story-facts h3 { font-size: 16px; margin: 24px 0 4px; line-height: 1.7; }
.tag { display: inline-block; min-width: 4.5em; margin-right: 8px; padding: 0 6px; font-size: 12px; letter-spacing: 0.1em; border: 1px solid var(--ink); text-align: center; line-height: 1.7; }
@media (max-width: 900px) { .story { padding: 40px var(--gutter) 24px; } .story-facts { padding: 16px var(--gutter) 64px; } }
