/* AI content is isolated; existing consent modules/CSS remain byte-identical. */
@scope (.ai-page) {
:scope {
  color-scheme: light;
  --ink: #20363a;
  --muted: #4a6260;
  --accent: #07545c;
  --green: #235d45;
  --paper: #f1f6f4;
  --line: #c6d7d1;
  --warm: #963e49;
}
* { box-sizing: border-box; letter-spacing: 0; }
:scope { scroll-padding-top: 1rem; }
:scope { margin: 0; background: #fff; color: var(--ink); font: 1rem/1.85 "Yu Gothic", "Meiryo", system-ui, sans-serif; }
a { color: var(--accent); text-underline-offset: .22em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--warm); outline-offset: 5px; }
img { display: block; max-width: 100%; }
figure, blockquote { margin: 0; }
p { margin: 0 0 1.1rem; }
h1, h2, h3 { margin: 0 0 1rem; line-height: 1.5; overflow-wrap: anywhere; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.125rem; }
h1, h2, .pitch { text-wrap: balance; }
.keep { display: inline-block; white-space: nowrap; }
.wrap { width: min(68.75rem, calc(100% - 3rem)); margin-inline: auto; min-width: 0; }
.reading { max-width: 48rem; }
.skip { position: absolute; left: 1rem; top: -10rem; z-index: 3; background: #fff; padding: .75rem; }
.skip:focus { top: 1rem; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; padding-block: .85rem; }
.brand { display: flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0; text-decoration: none; }
.brand img:first-child { width: 36px; height: 36px; object-fit: contain; flex: 0 0 36px; }
.brand img:last-child { width: 136px; height: 34px; object-fit: contain; min-width: 0; }
nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .875rem; }
.book-opening { padding-block: 1.6rem 1.8rem; background: var(--paper); text-align: center; border-bottom: 1px solid var(--line); }
.book-opening h1 { margin-bottom: .45rem; }
.kicker { color: var(--green); font-size: .875rem; font-weight: 700; margin-bottom: .4rem; }
.subtitle { font-size: 1rem; margin-bottom: .5rem; }
.pitch { color: var(--accent); font-weight: 700; font-size: 1.75rem; line-height: 1.55; margin-bottom: 1rem; }
.cover { width: 100%; height: 15rem; object-fit: contain; }
.cover-caption { font-size: .8125rem; color: var(--muted); margin-top: .5rem; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-block: 1rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; max-width: 100%; padding: .6rem 1.2rem; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent); color: #fff; font-size: .9375rem; line-height: 1.7; text-decoration: none; font-weight: 700; text-align: center; }
.button:hover { background: #126972; color: #fff; }
.button.secondary { color: var(--accent); background: #fff; }
.button.secondary:hover { background: #e4efeb; }
.release, .note { font-size: .875rem; color: var(--muted); }
.release { margin: 0; }
.section { padding-block: 3.5rem; border-bottom: 1px solid var(--line); }
.tint { background: var(--paper); }
.eyebrow { font-size: .875rem; font-weight: 700; color: var(--green); margin-bottom: .55rem; }
.lead { font-size: 1.125rem; }
.statement { border-left: 3px solid var(--warm); padding-left: 1.25rem; margin-block: 1.5rem; font-weight: 700; }
.roles { width: 100%; border-collapse: collapse; table-layout: fixed; margin-block: 1.5rem; }
.roles caption { text-align: left; color: var(--muted); font-size: .875rem; margin-bottom: .5rem; }
.roles th, .roles td { text-align: left; padding: 1rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.roles thead { background: var(--paper); }
.roles th:first-child { width: 32%; }
.role-no { display: inline-block; color: var(--warm); font-size: .8125rem; margin-right: .5rem; }
.tools, .techniques { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; margin-block: 1.75rem; }
.tools > div, .techniques > li { border-top: 2px solid var(--line); padding-top: 1rem; min-width: 0; }
.tools dt { font-weight: 700; font-size: 1.125rem; margin-bottom: .5rem; }
.tools dd { margin: 0; }
.techniques { padding: 0; list-style: none; }
.techniques strong { display: block; margin-bottom: .4rem; }
.techniques .number { color: var(--warm); margin-right: .75rem; font-size: .875rem; }
.samples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin-block: 2rem; }
.sample-image-link { display: block; background: #fff; border: 1px solid var(--line); }
.sample-image-link:hover { outline: 2px solid var(--accent); }
.samples img { width: 100%; height: auto; object-fit: contain; }
.samples figcaption { padding-block: 1rem .5rem; font-size: .9375rem; }
.samples figcaption strong { display: block; margin-bottom: .25rem; }
.sample-expand { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; }
.purchase { text-align: center; }
.purchase .reading { margin-inline: auto; }
.purchase h2 { font-size: 1.75rem; }
.purchase .price { font-weight: 700; }
.price span { display: inline-block; max-width: 100%; }
.site-footer { padding-block: 1.5rem; }
.site-footer p { font-size: .8125rem; color: var(--muted); }
.site-footer nav { gap: .25rem 1.5rem; }
.viewer { padding-block: 1.5rem; }
.viewer h1 { font-size: 1.5rem; }
.viewer .viewer-page { width: 100%; max-width: 1259px; height: auto; object-fit: contain; margin-inline: auto; }
.viewer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1rem; }
.viewer-bar a { min-height: 2.75rem; display: inline-flex; align-items: center; }
.viewer-zoom { max-width: 100%; overflow: auto; border: 1px solid var(--line); }
.viewer-zoom img { width: 1259px; max-width: none; height: 1800px; object-fit: contain; }
details { margin-block: 1rem; }
summary { cursor: pointer; padding-block: .75rem; color: var(--accent); font-weight: 700; }
@media (max-width: 44rem) {
  .wrap { width: calc(100% - 2rem); }
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  .pitch { font-size: 1.375rem; }
  .book-opening { padding-block: 1.25rem; }
  .cover { height: 12rem; }
  .section { padding-block: 2.5rem; }
  .header-inner { padding-block: .5rem; }
  .header-inner nav { gap: .25rem 1rem; }
  .tools, .techniques, .samples { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .actions { gap: .6rem; }
  .actions .button { flex: 1 1 16rem; }
  .roles th, .roles td { padding: .85rem .4rem; }
  .roles th:first-child { width: 35%; }
  .role-no { display: block; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print {
  .site-header, .site-footer, .actions, .skip { display: none; }
  .section { break-inside: avoid; }
  .book-opening, .tint { background: #fff; }
}

/* AI r03: retain the cover and CTA hierarchy; compact only narrow opening spacing. */
@media (max-width: 44rem) {
  .book-opening { padding-block: .5rem; }
  .book-opening .first-step { line-height: 1.6; margin-bottom: .5rem; }
  .book-opening .actions { margin-block: .5rem; }
  .book-opening + .section { padding-top: 1rem; }
}

.legacy-anchor { display: block; scroll-margin-top: 1rem; }
}
body { margin: 0; }

@scope (.book-metrics-settings) {
  :scope, * { box-sizing: border-box; }
  :scope { border-top: 1px solid #cbdadb; padding: 18px 0; letter-spacing: 0; }
  summary { font-weight: 650; }
  a { text-underline-offset: 4px; }
  a:focus-visible, summary:focus-visible { outline: 3px solid #cc543e; outline-offset: 4px; }
}
