@font-face {
  font-family: "Noto Sans JP";
  src: url("fonts/NotoSansJP-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans JP";
  src: url("fonts/NotoSansJP-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans JP";
  src: url("fonts/NotoSansJP-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  --primary: #1B5E3F;
  --secondary: #8CB369;
  --accent: #4BA7B8;
  --accent2: #D86B3D;
  --ink: #2D2D2D;
  --muted: #6B6B6B;
  --surface: #FFFFFF;
  --surface-alt: #FAF7ED;
  --border: #D9D4C5;
  --shadow: color-mix(in srgb, var(--primary) 10%, transparent);
}
* { box-sizing: border-box; }
html { background: var(--surface-alt); }
body { margin: 0; color: var(--ink); font: 400 17px/1.8 "Noto Sans JP", sans-serif; overflow-wrap: anywhere; }
.wrap { width: min(100% - 48px, 1120px); margin-inline: auto; }
.header { display: flex; align-items: center; justify-content: space-between; padding-block: 22px; border-bottom: 1px solid var(--border); }
.brand { color: var(--primary); font-weight: 700; font-size: 20px; letter-spacing: .06em; }
.draft { display: none; font-size: 14px; color: var(--muted); border: 1px solid var(--border); border-radius: 5px; padding: 2px 12px; }
/* 試作の札は、このセレクターの表示指定だけで切り替える。 */
html[data-draft="true"] .draft { display: inline-block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--primary); }
h1 { font-size: 34px; line-height: 1.45; font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: 26px; line-height: 1.55; font-weight: 700; letter-spacing: -.025em; }
h3 { font-size: 18px; line-height: 1.7; font-weight: 500; }
p { margin-top: 22px; }
.story { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; padding-block: 64px; border-bottom: 1px solid var(--border); }
.story > *, .story-copy { min-width: 0; }
.hero { padding-top: 42px; }
.eyebrow { margin: 0 0 18px; color: var(--primary); font-size: 17px; font-weight: 500; letter-spacing: .12em; }
.hero-intro { font-size: 18px; }
.story-art { width: 100%; max-width: 440px; justify-self: center; }
.paper { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 16px; box-shadow: 0 5px 14px var(--shadow), 0 20px 40px var(--shadow); background: var(--surface); }
.cta { margin-top: 32px; }
button { font: inherit; }
button:disabled { display: block; width: 100%; padding: 18px 20px; border: 1px solid var(--border); border-radius: 10px; background: var(--border); color: var(--muted); font-size: 17px; font-weight: 500; line-height: 1.8; cursor: not-allowed; opacity: 1; white-space: normal; }
.cta-note { margin-top: 12px; font-size: 17px; color: var(--muted); }
.idea { font-size: 20px; font-weight: 500; }
.caption { font-size: 17px; }
.diagram { margin-top: 32px; display: grid; grid-template-columns: 26px minmax(0, 1fr); grid-template-rows: auto 30px; column-gap: 10px; }
.axis-y { writing-mode: vertical-rl; align-self: center; justify-self: start; font-size: 16px; font-weight: 500; color: var(--primary); }
.plot { border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); }
.plot svg { display: block; width: 100%; height: auto; }
.route { fill: none; stroke: var(--secondary); stroke-width: 3; stroke-dasharray: 5 7; stroke-linecap: round; }
.origin { fill: var(--accent); }
.star { fill: var(--accent2); }
.axis-x { grid-column: 2; justify-self: end; padding-top: 4px; font-size: 16px; color: var(--primary); font-weight: 500; }
.features, .development { padding: 0; margin: 26px 0 0; list-style: none; }
.features li { padding: 20px 0; border-top: 1px solid var(--border); }
.features p { margin-top: 6px; }
.development { margin-bottom: 24px; }
.development li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.status { flex: 0 0 auto; border: 1px solid var(--accent2); color: var(--accent2); font-size: 14px; line-height: 1.7; border-radius: 4px; padding: 2px 8px; }
.manga-preview { padding-block: 64px; }
.preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block: 32px; }
.preview-grid .paper { box-shadow: 0 5px 18px var(--shadow); }
a { color: var(--primary); text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 6px; }
.read-link { display: block; width: fit-content; margin: 36px auto; border-bottom: 2px solid var(--primary); padding-block: 10px; font-size: 19px; font-weight: 700; text-decoration: none; }
.read-link:hover, .back-link:hover { text-decoration: underline; }
.notice { font-size: 16px; color: var(--ink); line-height: 1.9; padding: 22px 24px; background: var(--surface); border-left: 3px solid var(--secondary); }
.faq { padding-block: 48px 64px; border-top: 1px solid var(--border); }
.questions { margin-top: 28px; }
details { border-bottom: 1px solid var(--border); }
summary { padding: 22px 4px; color: var(--primary); font-weight: 500; cursor: pointer; }
details p { margin: 0; padding: 0 4px 24px; }
.closing { padding: 48px 24px; text-align: center; background: var(--surface); border-radius: 20px; margin-bottom: 64px; }
.closing .cta { max-width: 560px; margin-inline: auto; }
.footer { padding-block: 0 28px; }
.footer-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: 14px; color: var(--muted); }
.manga-reader { width: min(100% - 48px, 720px); margin: 32px auto 48px; }
.back-link { display: inline-block; padding-block: 10px; }
.reader-title { margin-block: 24px 32px; font-size: 26px; }
.manga-pages .paper { margin-bottom: 24px; }
@media (min-width: 768px) {
  .wrap { width: min(100% - 80px, 1120px); }
  .story { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; padding-block: 88px; }
  .story.reverse { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .reverse .story-art { grid-column: 1; grid-row: 1; }
  .reverse .story-copy { grid-column: 2; grid-row: 1; }
  h1 { font-size: 56px; }
  h2 { font-size: 36px; }
  .hero-intro { font-size: 22px; }
  .hero .story-art { max-width: 420px; }
  .idea { font-size: 23px; }
  .manga-preview { padding-block: 88px; }
  .preview-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .faq { max-width: 800px; margin-inline: auto; }
  .closing { padding: 64px 40px; margin-bottom: 88px; }
}
@media (prefers-reduced-motion: no-preference) {
  .read-link { transition: border-color .15s; }
  .read-link:hover { border-color: var(--secondary); }
}
/* 見出しとボタンは指定の区切り（／）と句読点でだけ折り返す（Claude 2026-10-21） */
h1, h2, h3, .cta button, .lead { word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, .cta button { line-break: strict; }
@media (max-width: 767px) { .hero h1, h1 { font-size: 30px; } }

/* REVIEW_1 の Fix（Claude 2026-10-21） */
h1, h2, h3, .lead, .story p, .closing p, .faq p { word-break: auto-phrase; text-wrap: pretty; }
.development .status { color: var(--primary); }
button:disabled { color: var(--ink); }
@media (min-width: 768px) { .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin-inline: auto; } }

/* 法務 N2（Claude 2026-10-21）: 強調表示の近くに開発中を明記 */
.notice-inline { margin-top: 8px; font-size: 16px; line-height: 1.7; color: var(--ink); }
