:root {
  /* Latin glyphs in Inter, Japanese in Noto Sans JP (both Google Fonts, free) */
  --font: "Inter", "Noto Sans JP", sans-serif;
  --navy: #10366B;
  --navy-dark: #0A2447;
  --navy-ink: #071830; /* darkest: hero, dark sections, footer */
  --red: #D71920;
  --sky: #A9C1E3;
  --ink: #1A1A1A;
  --muted: #4A5568;
  --paper: #FFFFFF;
  --mist: #F3F6FA;
  --line: rgba(16, 54, 107, .12);
  --line-dark: rgba(169, 193, 227, .18); /* rules on navy */
  --shadow: 0 1px 2px rgba(16, 54, 107, .06), 0 8px 24px rgba(16, 54, 107, .06);
  --shadow-hover: 0 2px 4px rgba(16, 54, 107, .08), 0 24px 48px rgba(16, 54, 107, .16);
  --radius: 16px;
  --header-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
/* clip (not hidden): no scroll container, so sticky/anchors keep working;
   stops reveal translateX and the hero map from widening the page. */
main { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper);
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font); line-height: 1.5; margin: 0 0 .6em; }
a { color: var(--navy); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
/* On navy, red is too faint for a focus ring (2.3:1): use white */
.site-header :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible,
.page-hero :focus-visible, .hero :focus-visible, .section-dark :focus-visible,
.skip-link:focus-visible { outline-color: #fff; }

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 48px);
}

.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 200;
  background: var(--navy); color: #fff; padding: 8px 16px;
}
.skip-link:focus { top: 8px; }

/* Header: dark glass over every page (the hero and page titles are navy too) */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(7, 24, 48, .95);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
  color: #fff;
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em;
  color: #fff; text-decoration: none;
}
.logo-mark { width: 40px; height: auto; flex: none; }
.logo small, .footer-brand small { font-family: var(--font); font-size: .7rem; font-weight: 500; margin-left: .3em; opacity: .8; }
/* no display here: it would override the browser hiding the closed popover on mobile */
.global-nav { gap: clamp(16px, 2.5vw, 32px); align-items: center; }
.global-nav a {
  position: relative; color: #fff; text-decoration: none;
  font-size: .9rem; font-weight: 500; padding: 4px 0; opacity: .9;
}
.global-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.global-nav a:hover { opacity: 1; }
.global-nav a:hover::after, .global-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Mobile menu: a native popover, no JavaScript. The button opens it, Esc and
   the close button shut it, and browsers announce its open/closed state. */
.nav-toggle, .nav-close, .nav-fallback { display: none; }

@media (min-width: 769px) {
  /* Wide screens: undo the browser's popover styles so the nav is always shown.
     Only while closed: an open menu keeps its overlay look (see below). */
  .global-nav[popover]:not(:popover-open) {
    display: flex; position: static; inset: auto; width: auto; height: auto;
    margin: 0; padding: 0; border: 0; overflow: visible; background: none; color: inherit;
  }
  /* the last link (お問い合わせ) is a pill button */
  .global-nav[popover]:not(:popover-open) a[href="/contact.html"] {
    padding: 6px 18px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px;
    transition: background .3s, color .3s;
  }
  .global-nav[popover]:not(:popover-open) a[href="/contact.html"]::after { display: none; }
  .global-nav[popover]:not(:popover-open) a[href="/contact.html"]:hover,
  .global-nav[popover]:not(:popover-open) a[href="/contact.html"][aria-current="page"] {
    background: #fff; color: var(--navy-ink);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; border: 0; background: none;
    color: #fff; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 24px; height: 2px; background: currentColor; position: relative;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -8px; }
  .nav-toggle-bars::after { top: 8px; }
  .logo-mark { width: 34px; }
}

/* Open menu: full-screen navy overlay. Not limited to narrow screens, so a menu
   left open while the screen widens (e.g. a tablet rotated) stays usable. */
.global-nav:popover-open {
  position: fixed; inset: 0; width: auto; height: auto; margin: 0; padding: 0; border: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  background: var(--navy-ink); color: #fff;
}
.global-nav:popover-open a { color: #fff; font-size: 1.2rem; }
/* lines up with the open button in the header (centred in 72px) */
.global-nav:popover-open .nav-close {
  display: flex; position: absolute; top: 14px; right: clamp(16px, 5vw, 48px);
  width: 44px; height: 44px; padding: 0; border: 0; background: none;
  color: #fff; cursor: pointer;
}
.nav-close::before, .nav-close::after {
  content: ""; position: absolute; top: 21px; left: 10px; width: 24px; height: 2px;
  background: currentColor;
}
.nav-close::before { transform: rotate(45deg); }
.nav-close::after { transform: rotate(-45deg); }
/* open menu is navy: current-page underline and focus rings go white */
.global-nav:popover-open a::after { background: #fff; }
.global-nav:popover-open :focus-visible { outline-color: #fff; }
/* the page behind the open menu does not scroll */
html:has(.global-nav:popover-open) { overflow: hidden; }

/* Browsers without popover: the menu button jumps to the footer's link list. */
@supports not selector(:popover-open) {
  @media (max-width: 768px) {
    .nav-toggle, .global-nav { display: none; }
    .nav-fallback {
      display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
      color: #fff; font-weight: 700; text-decoration: none;
    }
  }
}

/* Footer */
.site-footer { background: var(--navy-ink); color: rgba(255, 255, 255, .8); padding: 72px 0 28px; font-size: .88rem; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; }
.footer-company { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; }
  .footer-company { grid-column: auto; }
}
.footer-brand {
  display: flex; align-items: center; gap: .6em; margin-bottom: 16px;
  color: #fff; font-weight: 700; font-size: 1.2rem;
}
.footer-logo { color: #fff; width: 40px; line-height: 0; }
.footer-logo .logo-mark { width: 100%; }
.footer-company p { margin: 0; max-width: 26em; }
.footer-heading {
  margin: 0 0 14px; color: var(--sky); font-size: .72rem; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase; line-height: 1.5;
}
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer-nav a, .footer-bottom a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.footer-nav a:hover, .footer-bottom a:hover { color: #fff; text-decoration: underline; }
.footer-col p { margin: 0 0 6px; }
.footer-name { color: #fff; font-weight: 700; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .78rem;
}
.copyright { margin: 0; opacity: .7; }

/* Shared components */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section.alt { background: var(--mist); }
.section-dark { background: var(--navy-ink); color: #fff; }
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--red); font-size: .75rem; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase; margin-bottom: 8px;
}
.section-label::before { content: ""; width: 24px; height: 2px; background: var(--red); }
/* Large English heading: decoration in Inter, tight like a display face */
.section-display {
  margin: 8px 0 12px; font-weight: 700; color: var(--navy);
  font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.04em; line-height: 1;
}
.section-head .section-display + .section-title { font-size: 1rem; margin: 0; }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--navy); }
.section-dark .section-label { color: var(--sky); }
.section-dark .section-display { color: #fff; }
.section-dark .section-title { color: var(--sky); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.head-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 16px 24px; margin-bottom: clamp(32px, 5vw, 56px);
}
.head-row .section-head { margin-bottom: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  background: var(--navy); color: #fff; text-decoration: none;
  padding: 14px 30px; font-weight: 700; font-size: .95rem; line-height: 1.5;
  border: 1px solid var(--navy); border-radius: 999px;
  transition: background .3s, color .3s, border-color .3s;
}
.btn::after { content: "→"; display: inline-block; transition: transform .3s ease; }
.btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn:hover::after { transform: translateX(6px); }
.btn-light { background: #fff; color: var(--navy-ink); border-color: #fff; }
.btn-light:hover { background: var(--sky); border-color: var(--sky); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { background: #fff; color: var(--navy-ink); border-color: #fff; }
.btn-small { padding: 9px 20px; font-size: .85rem; }
.btn-block { width: 100%; }

.link-more {
  display: inline-flex; align-items: center; gap: .5em;
  color: var(--navy); font-weight: 700; font-size: .9rem; text-decoration: none;
  padding-bottom: 2px; border-bottom: 2px solid var(--red);
}
.link-more::after { content: "→"; transition: transform .3s ease; }
.link-more:hover::after { transform: translateX(4px); }

/* Navy title band for subpages, in the hero's style */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(200px, 30vh, 340px); display: flex; align-items: center;
  background:
    radial-gradient(50% 90% at 85% 20%, rgba(46, 102, 180, .5), transparent 70%),
    linear-gradient(160deg, var(--navy-dark) 0%, var(--navy-ink) 100%);
  color: #fff;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(169, 193, 227, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 193, 227, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%);
  mask-image: linear-gradient(90deg, transparent, #000 70%);
}
/* As a flex item the container shrank to its text and centred itself (margin-inline: auto);
   full width keeps the title on the same left edge as the breadcrumb below. */
.page-hero > .container { width: 100%; }
.page-hero .section-label { color: var(--sky); }
/* .page-hero-title: same look as the h1, for pages whose h1 is the article title */
.page-hero h1, .page-hero-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.5; margin: 0; letter-spacing: .02em; }

/* ===== Top page ===== */
/* Hero: full viewport, under the fixed header. Map of Japan instead of a photo. */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh;
  margin-top: calc(-1 * var(--header-h));
  padding: 0;
  display: flex; flex-direction: column;
  color: #fff;
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(46, 102, 180, .55) 0%, rgba(16, 54, 107, 0) 70%),
    radial-gradient(40% 50% at 92% 90%, rgba(215, 25, 32, .14) 0%, rgba(215, 25, 32, 0) 70%),
    linear-gradient(160deg, var(--navy-dark) 0%, var(--navy-ink) 100%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -3;
  background-image:
    linear-gradient(rgba(169, 193, 227, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 193, 227, .06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 80% at 70% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(80% 80% at 70% 40%, #000 30%, transparent 85%);
}
/* Map and dot share one box (same viewBox), so the dot sits on the map at any size */
.hero-map {
  position: absolute; z-index: -2; top: 0; bottom: 0; right: -4%;
  aspect-ratio: 800 / 744; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 35%);
  mask-image: linear-gradient(90deg, transparent 0, #000 35%);
}
.hero-map img, .hero-pin { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.pin-dot { fill: var(--red); }
.pin-wave { fill: none; stroke: var(--red); stroke-opacity: .6; stroke-width: 1.5; }
.hero-word {
  position: absolute; z-index: -1; left: -1vw; bottom: 12vh; margin: 0;
  white-space: nowrap; pointer-events: none;
  font-weight: 700; font-size: clamp(5rem, 17vw, 16rem); letter-spacing: -.05em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(169, 193, 227, .14);
}
.hero-inner {
  position: relative; width: 100%; flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--header-h) + 4vh); padding-bottom: 6vh;
}
.hero-kicker {
  margin: 0 0 1.6rem; color: var(--sky);
  font-size: .78rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  display: flex; align-items: center; gap: 14px;
}
.hero-kicker::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: var(--red); box-shadow: 0 0 0 6px rgba(215, 25, 32, .18);
}
.hero h1 {
  font-family: var(--font); font-weight: 700;
  font-size: clamp(2.6rem, 7.4vw, 6rem); line-height: 1.2; letter-spacing: .02em;
  color: #fff; margin: 0;
}
.hero h1 span { display: block; }
.hero-accent {
  background: linear-gradient(90deg, #fff, var(--sky));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  max-width: 34em; margin: 1.8rem 0 2.4rem;
  font-size: clamp(.95rem, 1.4vw, 1.05rem); color: rgba(255, 255, 255, .8);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.hero-band { border-top: 1px solid var(--line-dark); background: rgba(7, 24, 48, .45); }
.hero-band ul { list-style: none; margin-block: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.hero-band li { border-left: 1px solid var(--line-dark); }
.hero-band li:first-child { border-left: 0; }
.hero-band a {
  display: block; height: 100%; padding: 16px 0 16px 12px; color: #fff; text-decoration: none; font-size: .8rem; line-height: 1.6;
}
.hero-band li:first-child a { padding-left: 0; }
.hero-band a:hover { color: var(--sky); }
.hero-band-num { display: block; color: var(--sky); font-size: .7rem; font-weight: 700; letter-spacing: .2em; }
@media (min-width: 769px) {
  .hero-band a { padding: 22px 0 22px 24px; font-size: .85rem; }
}
/* Narrow screens: the map sits behind the copy, dimmer. Dim the image, not
   .hero-map: its load fade animates opacity and would end at 1. */
@media (max-width: 899px) {
  .hero-map { right: -60%; }
  .hero-map img { opacity: .4; }
}

/* About */
.about-grid { display: grid; gap: 24px 80px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 5fr 7fr; align-items: start; } }
.about-lead {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 700; color: var(--navy);
  line-height: 1.8; margin: 0 0 1.2rem;
}
.about-body > p:not(.about-lead) { margin: 0 0 1.6rem; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 40px 0 0; border-top: 1px solid var(--line); }
.about-facts div { padding-top: 24px; display: flex; flex-direction: column-reverse; }
.about-facts dt { font-size: .8rem; color: var(--muted); }
.about-facts dd {
  margin: 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.03em;
  color: var(--navy); line-height: 1.1;
}

/* Business cards */
.biz-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .biz-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .biz-grid { grid-template-columns: repeat(4, 1fr); } }
.biz-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; color: var(--ink); text-decoration: none;
  background: var(--paper); border-radius: var(--radius); padding: 32px 28px 28px;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.biz-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--red) 0 30%, var(--navy) 30%);
  transform: scaleX(.3); transform-origin: left; transition: transform .4s ease;
}
.biz-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.biz-card:hover::before { transform: none; }
.biz-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.biz-icon-wrap {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px;
  background: var(--mist); color: var(--navy); transition: background .3s, color .3s;
}
.biz-icon-wrap .biz-icon { width: 40px; height: 40px; stroke-width: 5; }
.biz-card:hover .biz-icon-wrap { background: var(--navy); color: #fff; }
.biz-card .biz-num { font-size: .85rem; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.biz-en { font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
.biz-title { font-size: 1.15rem; color: var(--navy); margin: 4px 0 12px; }
.biz-summary { font-size: .88rem; margin: 0 0 24px; flex: 1; color: var(--muted); }
.biz-more {
  align-self: flex-end; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--line); color: var(--navy);
  font-size: 0; transition: background .3s, border-color .3s, color .3s;
}
.biz-more::after { content: "→"; font-size: 1rem; }
.biz-card:hover .biz-more { background: var(--red); border-color: var(--red); color: #fff; }
@media (min-width: 1024px) { .biz-grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* AI-driven solutions (business.html#solution): message, who it is for, and the founder's result */
.solution-title {
  font-size: clamp(2rem, 5.4vw, 4rem); line-height: 1.3; letter-spacing: .02em; color: #fff; margin: 0;
}
.solution-title span { display: block; }
.hero-lead { margin: 1.8rem 0 2.4rem; }
.hero-lead .hero-sub { max-width: 38em; margin: 0 0 .8rem; font-size: clamp(.95rem, 1.4vw, 1.05rem); color: rgba(255, 255, 255, .8); }
.hero-note { margin: 1.6rem 0 0; color: var(--sky); font-size: .85rem; }
.hero-result {
  margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; max-width: 46em;
}
.hero-result .result-figure { color: #fff; }
.hero-result-note { margin: 0; flex: 1 1 18em; font-size: .8rem; color: rgba(255, 255, 255, .72); line-height: 1.7; }
.result-figure { margin: 0; display: flex; flex-direction: column; line-height: 1.2; }
.result-label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: var(--sky); }
.result-nums { display: flex; align-items: baseline; gap: .3em; font-variant-numeric: tabular-nums; }
.result-from { font-size: 1.6rem; font-weight: 700; opacity: .65; text-decoration: line-through; text-decoration-thickness: 2px; }
.result-arrow { font-size: 1.2rem; }
.result-to { font-size: 2.6rem; font-weight: 700; letter-spacing: -.02em; }

/* Two columns: heading left, content right */
.split { display: grid; gap: 8px 80px; }
.split .section-title { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
/* Japanese headings: break between phrases, not inside words (where supported) */
.section-title, .solution-title, .stage-title, .biz-title, .why-item h3, .founder-title, .cta-box .btn { word-break: auto-phrase; }
.cta-box .btn { padding-inline: 20px; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; align-items: start; } }
.section-lead { max-width: 44em; margin: 0 0 32px; }
.closing { margin: 1.6rem 0 0; font-weight: 700; color: var(--navy); }
.package-note { margin: 32px 0 0; padding: 20px 24px; border-left: 3px solid var(--red); background: var(--mist); font-size: .92rem; }

.check-list, .cross-list, .example-list, .ba-list { list-style: none; margin: 0; padding: 0; }
.check-list li, .cross-list li, .ba-list li {
  position: relative; padding: 14px 0 14px 32px; border-bottom: 1px solid var(--line);
}
.check-list li::before, .cross-list li::before, .ba-list li::before {
  position: absolute; left: 0; top: 14px; font-weight: 700;
}
.check-list li::before { content: "✓"; color: var(--red); }
.cross-list li::before { content: "×"; color: var(--muted); }

/* Before / After */
.ba-grid { display: grid; gap: 20px; }
@media (min-width: 769px) { .ba-grid { grid-template-columns: 1fr 1fr; } }
.ba-col { border-radius: var(--radius); padding: 28px clamp(20px, 3vw, 36px); background: var(--paper); box-shadow: var(--shadow); }
.ba-label { margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ba-before .ba-list li::before { content: "−"; color: var(--muted); }
.ba-after { background: var(--navy); color: #fff; }
.ba-after .ba-label { color: var(--sky); }
.ba-after .ba-list li { border-bottom-color: var(--line-dark); }
.ba-after .ba-list li::before { content: "✓"; color: var(--sky); }
.ba-list li:last-child { border-bottom: 0; }

/* Stages: free consultation, then Stage 1–3 */
.process-note { margin: 24px 0 0; font-size: .85rem; color: var(--muted); }
.stage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.stage {
  display: grid; gap: 8px 48px; background: var(--paper); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); border-top: 3px solid var(--navy);
}
.stage-entry { border-top-color: var(--sky); }
#stage1 { border-top-color: var(--red); }
@media (min-width: 900px) { .stage { grid-template-columns: 4fr 8fr; } }
.stage-label { font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
.stage-title { font-size: 1.2rem; color: var(--navy); margin: 4px 0 8px; }
.stage-terms { margin: 0; font-weight: 700; color: var(--ink); }
.stage-body p { margin: 0 0 .8em; }
.stage-items-label { font-size: .8rem; font-weight: 700; color: var(--navy); margin-bottom: 4px !important; }
.stage-items { margin: 0 0 1em; padding-left: 1.2em; }
.stage-note { font-size: .85rem; color: var(--muted); }

/* Use cases */
.example-list { display: grid; gap: 12px; }
@media (min-width: 640px) { .example-list { grid-template-columns: 1fr 1fr; } }
.example-list li { background: var(--mist); border-radius: 12px; padding: 16px 20px; font-size: .95rem; }

/* Product (in development) */
.status-tag {
  display: inline-block; margin: 16px 0 0; padding: 2px 12px; border-radius: 999px;
  border: 1px solid var(--red); color: var(--red); font-size: .8rem; font-weight: 700;
}

/* Why Lead Japan */
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 900px) { .why-list { grid-template-columns: repeat(3, 1fr); } }
.why-item { padding-top: 24px; border-top: 2px solid var(--navy); }
.why-num { display: block; color: var(--red); font-size: 2rem; font-weight: 700; line-height: 1; margin-bottom: 16px; }
.why-item h3, .why-item h4 { font-size: 1.1rem; color: var(--navy); }
.why-item p { margin: 0; font-size: .93rem; }

.founder-title { font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 700; line-height: 1.6; margin: 0 0 1rem; }

/* Fit */
.fit-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .fit-grid { grid-template-columns: 1fr 1fr; } }
.fit-col { background: var(--mist); border-radius: var(--radius); padding: 28px clamp(20px, 3vw, 36px); }
.fit-col h3 { font-size: 1.1rem; color: var(--navy); }
.fit-col--no { background: var(--paper); border: 1px solid var(--line); }
.fit-col li:last-child { border-bottom: 0; }

/* FAQ: <details>, no JavaScript */
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 20px 40px 20px 0; font-weight: 700; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 18px; font-size: 1.3rem; color: var(--red); }
.faq[open] summary::after { content: "−"; }
.faq p { margin: 0 0 20px; }

/* Business pages (business.html cards, solution.html, product.html, publishing.html) */
.business-back { margin: 40px 0 0; }
.cta-band .business-back .link-more { color: var(--navy); }
.solution-head .result-note { margin: 12px 0 0; max-width: 46em; font-size: .78rem; color: rgba(255, 255, 255, .65); line-height: 1.7; }
.solution-head .hero-actions { margin: 0 0 2rem; }
.solution-head .hero-note { margin: 0 0 1.6rem; }
.solution-head .hero-result { margin-top: 0; }
.solution-subtitle { margin: 2rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line-dark); color: var(--sky); font-weight: 700; }
.service-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 769px) { .service-list { grid-template-columns: 1fr 1fr; gap: 16px; } }
.service { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: var(--mist); }
.service-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--paper); color: var(--navy); }
.service-icon .biz-icon { width: 30px; height: 30px; stroke-width: 5; }
.service .biz-num { font-size: .75rem; font-weight: 700; letter-spacing: .1em; color: var(--red); }
.service-title { font-size: 1.02rem; color: var(--navy); margin: 0 0 4px; }
.service p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.8; }
.stage-more summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: .9rem; padding: 4px 0; }
.stage-more[open] summary { margin-bottom: 12px; }
@media (min-width: 900px) { .stage { align-items: start; } }

/* Tap to open (<details>, no JavaScript) */
.fold-list { border-top: 1px solid var(--line); }
.fold { border-bottom: 1px solid var(--line); }
#service .fold { margin-top: 24px; border-top: 1px solid var(--line); }
.fold summary { cursor: pointer; list-style: none; position: relative; padding: 18px 40px 18px 0; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "+"; position: absolute; right: 8px; top: 16px; font-size: 1.3rem; color: var(--red); }
.fold[open] summary::after { content: "−"; }
.fold-title { margin: 0; font-size: 1.05rem; color: var(--navy); }
.fold-body { padding: 0 0 28px; }
.fold-body h4 { font-size: 1rem; color: var(--navy); margin: 1.2em 0 .4em; }
.fold-body .why-list { margin-bottom: 24px; }
.fold-body .faq-list { border-top: 0; }
.fold-body .faq summary { font-size: .95rem; }
.fold-body .why-item h4 { margin-top: 0; }
.fold-body .fit-col h4 { margin-top: 0; }
.fold-body .ba-before .ba-list li, .fold-body .fit-col li { border-bottom-color: var(--line); }

.publishing { display: grid; gap: 32px; align-items: start; }
@media (min-width: 769px) { .publishing { grid-template-columns: 260px 1fr; gap: 56px; } }
.publishing-cover { display: block; width: 180px; margin-inline: auto; }
@media (min-width: 769px) { .publishing-cover { width: 100%; } }
.publishing-cover img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: var(--shadow-hover); }
.publishing-status { display: inline-block; margin: 0 0 8px; padding: 2px 12px; border-radius: 999px; background: var(--red); color: #fff; font-size: .8rem; font-weight: 700; }
.publishing-title { font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--navy); margin: 0 0 4px; }
.publishing-sub { margin: 0 0 1.2rem; color: var(--muted); font-weight: 500; }

/* Company and contact */
.philosophy-text { max-width: 44em; margin: 32px auto 0; }
.contact-title { font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--navy); }

/* Message (dark band) */
.message-grid { display: grid; gap: 32px 80px; align-items: center; }
@media (min-width: 900px) { .message-grid { grid-template-columns: 4fr 8fr; } }
.message-excerpt {
  position: relative; margin: 0; padding-top: 56px;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 2; font-weight: 500;
}
.message-excerpt::before {
  content: "“"; position: absolute; top: -24px; left: -4px;
  font-size: 7rem; font-weight: 700; line-height: 1; color: var(--red);
}
.message-excerpt p { margin: 0; }
.message-sign { margin: 24px 0 36px; color: var(--sky); font-size: .85rem; }
.message-sign strong { color: #fff; font-size: 1.2rem; margin-left: .6em; }

/* News */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px;
  padding: 22px 4px; border-bottom: 1px solid var(--line);
}
.news-list time { font-variant-numeric: tabular-nums; color: var(--navy); font-size: .9rem; font-weight: 500; letter-spacing: .05em; }
.news-cat {
  font-size: .72rem; font-weight: 700; color: var(--navy);
  background: var(--mist); padding: 0 12px; border-radius: 999px; line-height: 1.9;
}
.section.alt .news-cat { background: var(--paper); }
.news-list a { flex-basis: 100%; color: var(--ink); text-decoration: none; font-weight: 500; }
.news-list a:hover { color: var(--red); text-decoration: underline; }
@media (min-width: 640px) {
  .news-list time { min-width: 7em; }
  .news-list a { flex-basis: auto; flex: 1; }
  .top-news .news-list a::after { content: "→"; float: right; color: var(--red); }
}

/* Contact CTA: a navy card on the mist band */
.cta-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 40px; padding: clamp(32px, 6vw, 72px);
  border-radius: 24px; color: #fff;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(46, 102, 180, .6), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
}
.cta-card::after {
  content: ""; position: absolute; z-index: -1; right: -120px; bottom: -120px;
  width: 360px; height: 360px; border-radius: 50%; border: 1px solid var(--line-dark);
}
@media (min-width: 900px) { .cta-card { grid-template-columns: 7fr 5fr; align-items: center; } }
.cta-band .section-label { color: var(--sky); }
.cta-card .section-display { color: #fff; }
.cta-card .section-title { color: var(--sky); font-size: 1rem; margin: 0; }
.cta-lead { margin: 16px 0 24px; color: rgba(255, 255, 255, .88); font-size: 1.02rem; }
.cta-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cta-tags li {
  font-size: .8rem; color: var(--sky); border: 1px solid rgba(169, 193, 227, .4);
  padding: 2px 14px; border-radius: 999px;
}
.cta-box {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius); padding: 28px;
}
.cta-box dl { margin: 0 0 24px; display: grid; grid-template-columns: 5em 1fr; gap: 8px 12px; font-size: .9rem; }
.cta-box dt { color: var(--sky); }
.cta-box dd { margin: 0; }

/* ===== Subpages: company / business / message ===== */
.breadcrumb { padding: 16px 0; font-size: .85rem; color: var(--muted); }
.breadcrumb a { color: var(--navy); }
.philosophy {
  margin: 0; padding: 8px 0 8px clamp(20px, 4vw, 40px);
  border-left: 4px solid var(--red);
  font-family: var(--font); font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.9; color: var(--navy);
}
.philosophy p { margin: 0; }
.name-origin { display: grid; gap: 32px; }
.name-origin p { margin: 0 0 1em; }
@media (min-width: 900px) { .name-origin { grid-template-columns: 1fr 2fr; gap: 64px; } }

.company-table { width: 100%; border-collapse: collapse; background: var(--paper); }
.company-table th, .company-table td {
  padding: 20px 24px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.company-table tr:first-child th, .company-table tr:first-child td { border-top: 2px solid var(--navy); }
.company-table th { width: 220px; color: var(--navy); font-weight: 700; }
.company-table ul { margin: 0; padding-left: 1.2em; }
@media (max-width: 639px) {
  .company-table, .company-table tbody, .company-table tr,
  .company-table th, .company-table td { display: block; width: 100%; }
  .company-table th { padding: 10px 16px 0; border-bottom: 0; }
  .company-table tr:first-child td { border-top: 0; }
  .company-table td { padding: 4px 16px 16px; }
}


.message-layout { display: grid; gap: 40px; justify-items: center; }
.message-photo { margin: 0; width: 100%; max-width: 960px; background: var(--navy); border-radius: var(--radius); overflow: hidden; }
.message-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 53% 22%; display: block; }
.message-body { width: 100%; max-width: 760px; }
.message-body h2 { color: var(--navy); font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.signature { margin-top: 2em; text-align: right; font-family: var(--font); }
.signature span { margin-right: 1em; }
.signature strong { font-size: 1.3rem; }
@media (min-width: 900px) {
  .message-layout { gap: 56px; }
  .message-photo img { aspect-ratio: 3 / 2; }
}

/* Newsroom / Privacy / Contact */
.news-articles { max-width: 760px; }
.news-article { padding: 32px 0; border-bottom: 1px solid var(--line); }
.news-article:first-child { padding-top: 0; }
.news-meta { display: flex; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.news-meta time { font-variant-numeric: tabular-nums; color: var(--navy); letter-spacing: .05em; }
.news-article .news-cat { background: var(--navy-dark); color: #fff; }
.news-article h2:not(.article-title) { font-size: 1.3rem; color: var(--navy); margin: 0 0 .6rem; }
.news-articles .news-list li { flex-wrap: wrap; }
.news-summary { flex-basis: 100%; margin: .2rem 0 .6rem; color: var(--muted); font-size: .9rem; }
.news-article .article-title { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--navy); margin: .4rem 0 1.4rem; }
.article-image { margin: 0 0 1.6rem; }
.article-image img { display: block; max-width: 100%; height: auto; border-radius: 12px; }
.article-body { line-height: 1.95; }
.article-body h2, .article-body h3 { font-family: var(--font); color: var(--navy); margin: 2em 0 .6em; }
.article-body p { margin: 0 0 1.2em; }
.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-left: 1.6em; }
.article-body blockquote { margin: 1.4em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--sky); }
/* Navy like every other link; the red stays as the underline accent. */
.article-body a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .2em; }
.article-body img { max-width: 100%; height: auto; }
.press-contact { margin-top: 2.4rem; padding: 20px 24px; background: var(--mist); border-radius: 12px; border-top: 3px solid var(--red); }
.press-contact h3 { font-size: 1rem; margin: 0 0 .5em; color: var(--navy); }
.press-contact p { margin: 0; }
.article-back { margin-top: 2rem; }
.policy { max-width: 760px; line-height: 1.95; }
.policy h2 { font-size: 1.15rem; color: var(--navy); margin: 2.4rem 0 .6rem; padding-left: 12px; border-left: 3px solid var(--red); }
.policy-sign { margin-top: 3rem; text-align: right; }
.contact { max-width: 760px; line-height: 1.95; }
.contact-info {
  display: grid; grid-template-columns: 1fr; gap: 4px 24px; margin: 2rem 0; padding: 28px;
  background: var(--mist); border-radius: var(--radius);
}
.contact-info dt { font-weight: 700; color: var(--navy); }
.contact-info dd { margin: 0 0 12px; }
@media (min-width: 640px) {
  .contact-info { grid-template-columns: 8em 1fr; }
  .contact-info dd { margin: 0; }
}
.contact-sub { font-size: 1.1rem; color: var(--navy); margin-top: 2.5rem; }
.contact-cats { padding-left: 1.2rem; }
.contact-note { font-size: .9rem; margin-top: 2rem; }
.btn.is-disabled { opacity: .55; cursor: not-allowed; }
.btn.is-disabled:hover { background: var(--navy); border-color: var(--navy); }

/* ===== Book landing page (pm-book.html) and reader bonus (pm-book-bonus.html) =====
   The book's own colours: the cover's yellow and navy. Navy text only on yellow (white is unreadable). */
.layout-book {
  --book-yellow: #FFDF32; --book-yellow-soft: #FFF6C7; --book-navy: #09233D; --book-paper: #FBF9F3;
}
/* Header: the book's own, with in-page links (no company navigation) */
.book-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
  background: rgba(9, 35, 61, .96); color: #fff;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.book-header :focus-visible, .book-footer :focus-visible, .book-closing :focus-visible { outline-color: #fff; }
.book-header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.book-brand { display: flex; flex-direction: column; color: #fff; text-decoration: none; line-height: 1.25; flex: none; }
.book-brand-sub { font-size: .68rem; opacity: .8; letter-spacing: .04em; }
.book-brand-main { font-size: 1.05rem; font-weight: 700; letter-spacing: .04em; }
.book-nav { display: flex; gap: clamp(14px, 2vw, 28px); margin-left: auto; }
.book-nav a { color: #fff; opacity: .85; text-decoration: none; font-size: .88rem; font-weight: 500; white-space: nowrap; }
.book-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.book-header-cta {
  flex: none; padding: 8px 18px; border-radius: 999px; background: var(--book-yellow); color: var(--book-navy);
  font-size: .85rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.book-header-cta:hover { background: #fff; }
@media (max-width: 768px) {
  /* two rows: brand and button, then the in-page links (scrolls sideways if needed) */
  .layout-book { --header-h: 108px; }
  .book-header-inner { flex-wrap: wrap; gap: 0 12px; align-content: center; }
  .book-header-cta { margin-left: auto; padding: 7px 14px; font-size: .8rem; }
  .book-nav {
    order: 3; width: 100%; margin: 8px 0 0; padding-bottom: 2px; gap: 20px;
    overflow-x: auto; scrollbar-width: none;
  }
  .book-nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 419px) {
  /* 320–360px phones: brand and a short button still share the first row */
  .book-header-cta .cta-more { display: none; }
}

/* Hero */
.book-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--book-yellow); color: var(--book-navy);
  padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 104px);
}
.book-hero::after {
  content: ""; position: absolute; z-index: -1; right: -12vw; top: -20%; width: 52vw; aspect-ratio: 1;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .45), transparent);
}
.book-hero :focus-visible { outline-color: var(--book-navy); }
.book-hero-inner { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.book-cover-wrap { position: relative; width: 220px; margin-inline: auto; }
.book-cover img {
  display: block; width: 100%; border-radius: 2px 6px 6px 2px;
  box-shadow: -1px 0 0 rgba(9, 35, 61, .08), 0 2px 4px rgba(9, 35, 61, .12), 0 24px 48px rgba(9, 35, 61, .28);
  transform: rotate(-2deg);
}
.book-seal {
  position: absolute; right: -22px; top: -22px; margin: 0;
  display: grid; place-items: center; width: 92px; height: 92px; padding: 10px; border-radius: 50%;
  background: var(--book-navy); color: #fff; text-align: center;
  font-size: .82rem; font-weight: 700; line-height: 1.35;
  box-shadow: 0 0 0 4px var(--book-yellow), 0 8px 20px rgba(9, 35, 61, .3); transform: rotate(8deg);
}
.book-title { margin: 0 0 .9rem; font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 700; line-height: 1.4; color: var(--book-navy); }
.book-title span { display: block; }
.book-title-main { font-size: 2.1em; letter-spacing: .02em; line-height: 1.2; }
.book-subtitle { margin: 0; font-weight: 500; }
.book-author { margin: .2rem 0 1.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.book-format {
  font-size: .78rem; font-weight: 700; padding: 2px 10px; border: 1px solid rgba(9, 35, 61, .35); border-radius: 4px;
}
.book-catch {
  margin: 0 0 .8rem; font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 700; line-height: 1.6;
  padding-left: 14px; border-left: 4px solid var(--book-navy);
}
.book-lead { margin: 0 0 1.4rem; max-width: 40em; }
.book-badges { list-style: none; margin: 0 0 1.8rem; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.book-badges li {
  padding: 6px 14px; border-radius: 999px; background: var(--book-navy); color: #fff;
  font-size: .82rem; font-weight: 700; line-height: 1.5;
}
.book-buy { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.2rem; }
.btn .icon { flex: none; }
.book-btn { background: var(--book-navy); border-color: var(--book-navy); color: #fff; min-height: 52px; }
.book-btn::after { content: none; }
.book-btn:hover { background: #000; border-color: #000; }
.book-btn-large { padding: 16px 36px; font-size: 1rem; }
.book-btn-large::after { content: "→"; }
.book-notify {
  max-width: 34em; padding: 18px 20px; border-radius: 12px;
  background: rgba(255, 255, 255, .72); box-shadow: 0 1px 0 rgba(9, 35, 61, .08);
}
.book-notify-title { margin: 0; font-weight: 700; }
.book-notify-text { margin: .2rem 0 0; font-size: .9rem; }
.book-notify-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.book-notify-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  background: var(--book-navy); color: #fff; text-decoration: none; font-size: .88rem; font-weight: 700;
}
.book-notify-btn:hover { background: #000; }
.book-more { margin: 1.2rem 0 0; font-size: .9rem; }
.book-more a { color: var(--book-navy); font-weight: 700; }
@media (min-width: 768px) {
  .book-hero-inner { grid-template-columns: 260px 1fr; }
  .book-cover-wrap { width: 260px; }
}
@media (min-width: 1024px) {
  .book-hero-inner { grid-template-columns: 360px 1fr; }
  .book-cover-wrap { width: 340px; }
  .book-seal { width: 108px; height: 108px; font-size: .9rem; }
}

/* Sections: Japanese headings with a short yellow rule (no English labels) */
.book-section { padding: clamp(64px, 9vw, 112px) 0; background: #fff; }
.book-section-tint { background: var(--book-paper); }
.book-narrow { max-width: 1040px; }
.book-head { margin-bottom: clamp(28px, 4vw, 44px); }
.book-head h2 {
  margin: 0; font-size: clamp(1.5rem, 3.2vw, 2.1rem); color: var(--book-navy); line-height: 1.45;
}
.book-head h2::before {
  content: ""; display: block; width: 40px; height: 6px; border-radius: 3px; margin-bottom: 16px;
  background: var(--book-yellow); box-shadow: 0 0 0 1px rgba(9, 35, 61, .08);
}
.book-head-lead { margin: .6rem 0 0; color: var(--muted); }
.book-prose p { max-width: 40em; }
.book-prose p:first-child { font-size: 1.08rem; font-weight: 500; color: var(--book-navy); }

.book-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 768px) { .book-checklist { grid-template-columns: repeat(2, 1fr); } }
.book-checklist li {
  display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow); font-weight: 500;
}
.book-checklist .icon {
  flex: none; width: 28px; height: 28px; padding: 5px; border-radius: 50%;
  background: var(--book-yellow); color: var(--book-navy); stroke-width: 3;
}

/* Contents: cards led by a big number */
.book-parts { display: grid; gap: 24px; }
@media (min-width: 768px) { .book-parts { grid-template-columns: repeat(2, 1fr); } }
.book-part {
  position: relative; overflow: hidden; padding: 28px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.book-part:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.book-part::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--book-yellow); }
.book-part-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.book-part-label {
  padding: 2px 12px; border-radius: 999px; background: var(--book-navy); color: #fff; font-size: .8rem; font-weight: 700;
}
.book-part-count { margin: -8px 0 0; color: var(--book-navy); font-size: .85rem; font-weight: 700; text-align: right; line-height: 1.2; }
.book-part-count span {
  display: block; font-family: "Inter", sans-serif; font-size: 3.6rem; font-weight: 700; line-height: 1;
  letter-spacing: -.04em; color: var(--book-navy); text-shadow: 3px 3px 0 var(--book-yellow);
}
.book-part h3 { font-size: 1.2rem; color: var(--book-navy); margin: 0 0 .5rem; }
.book-part-summary { margin: 0 0 .8rem; font-size: .95rem; }
.book-part-note { margin: 0 0 .4rem; font-size: .78rem; font-weight: 700; color: var(--muted); }
.book-part-list { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 6px; }
.book-part-list li { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; line-height: 1.7; }
.book-part-list .icon { flex: none; width: 16px; height: 16px; margin-top: .3em; color: var(--book-navy); stroke-width: 3; }
.book-columns {
  margin-top: 28px; padding: 20px 24px; border-radius: 12px; background: var(--book-yellow-soft);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
}
.book-columns p { margin: 0; font-weight: 700; color: var(--book-navy); }
.book-columns ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.book-columns li { padding: 4px 12px; border-radius: 999px; background: #fff; font-size: .85rem; font-weight: 500; }

/* Reader bonus: what it is, and the real screens */
.book-bonus { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
@media (min-width: 960px) { .book-bonus { grid-template-columns: 5fr 6fr; } }
.book-bonus-features { list-style: none; margin: 1.6rem 0 2rem; padding: 0; display: grid; gap: 14px; }
.book-bonus-features li { display: flex; gap: 14px; align-items: flex-start; }
.book-bonus-features .icon {
  flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 10px;
  background: var(--book-navy); color: var(--book-yellow);
}
.book-bonus-features strong { display: block; color: var(--book-navy); }
.book-bonus-features span { font-size: .9rem; color: var(--muted); }
.book-bonus-shots { position: relative; margin: 0; padding: 0 0 48px 0; }
.book-bonus-shots img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid rgba(9, 35, 61, .12); }
.shot-main { box-shadow: 0 24px 56px rgba(9, 35, 61, .18); }
.shot-sub {
  position: absolute; right: -12px; bottom: 0; width: 62% !important;
  box-shadow: 0 16px 40px rgba(9, 35, 61, .24);
}
/* the caption sits under the main screen, left of the overlapping one */
.book-bonus-shots figcaption { position: absolute; left: 0; bottom: 0; width: 34%; font-size: .78rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 639px) {
  /* narrow screens: the board overlaps less and the caption goes underneath */
  .book-bonus-shots { padding-bottom: 0; }
  .shot-sub { position: relative; right: auto; bottom: auto; width: 78% !important; margin: -28px 0 0 auto; }
  .book-bonus-shots figcaption { position: static; width: auto; margin-top: 10px; }
}

/* Author */
.book-author-card {
  padding: clamp(24px, 4vw, 40px); border-radius: 16px; background: var(--book-paper);
  border-left: 6px solid var(--book-yellow);
}
.book-author-card p { max-width: 42em; }
.book-author-name { font-size: 1.2rem; font-weight: 700; color: var(--book-navy); margin-top: 0; }

/* Book information table */
.book-info { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.book-info-table { width: 100%; border-collapse: collapse; }
.book-info-table th, .book-info-table td { padding: 16px 24px; text-align: left; vertical-align: top; }
.book-info-table tr + tr th, .book-info-table tr + tr td { border-top: 1px solid var(--line); }
.book-info-table th { width: 13em; background: var(--book-paper); color: var(--book-navy); font-weight: 700; font-size: .92rem; }
.book-info-table td a { color: var(--book-navy); font-weight: 700; }
@media (max-width: 639px) {
  .book-info-table th, .book-info-table td { display: block; width: 100%; }
  .book-info-table th { padding: 10px 18px; }
  .book-info-table td { padding: 10px 18px 16px; }
  .book-info-table tr + tr td { border-top: 0; }
}

/* Closing call to action */
.book-closing { background: var(--book-navy); color: #fff; padding: clamp(64px, 9vw, 112px) 0; text-align: center; }
.book-closing-inner { display: flex; flex-direction: column; align-items: center; }
.book-closing-label {
  margin: 0 0 1rem; padding: 2px 14px; border-radius: 999px; background: var(--book-yellow); color: var(--book-navy);
  font-size: .85rem; font-weight: 700;
}
.book-closing h2 { margin: 0 0 1.6rem; font-size: clamp(1.4rem, 3.4vw, 2.2rem); color: #fff; }
.book-closing .book-buy { justify-content: center; }
.book-closing .book-btn { background: var(--book-yellow); border-color: var(--book-yellow); color: var(--book-navy); }
.book-closing .book-btn:hover { background: #fff; border-color: #fff; }
.book-closing .book-notify { background: rgba(255, 255, 255, .08); color: #fff; text-align: center; }
.book-closing .book-notify-links { justify-content: center; }
.book-closing .book-notify-btn { background: var(--book-yellow); color: var(--book-navy); }
.book-closing .book-notify-btn:hover { background: #fff; }
.book-closing-bonus { margin: 1.6rem 0 0; font-size: .92rem; }
.book-closing-bonus a { color: var(--book-yellow); font-weight: 700; }
.book-notes { margin: 2.4rem 0 0; font-size: .75rem; opacity: .7; }

/* Footer: publisher only */
.book-footer { background: #061a2e; color: rgba(255, 255, 255, .8); padding: 28px 0; font-size: .82rem; }
.book-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.book-footer a { color: #fff; text-decoration: none; }
.book-footer a:hover { text-decoration: underline; }
.book-footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.book-footer-brand .logo-mark { width: 28px; }
.book-footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.book-footer .copyright { margin: 0; }

/* Reader-bonus pages use the book layout too */
.layout-book .page-hero { background: var(--book-navy); }
.layout-book .breadcrumb a { color: var(--book-navy); }

.bonus-card {
  max-width: 720px; padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.bonus-book { margin: 0; font-size: .9rem; color: var(--muted); }
.bonus-title { font-size: clamp(1.3rem, 3vw, 1.7rem); color: var(--navy); }
.bonus-form { margin: 1.6rem 0 0; }
.bonus-form label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.bonus-row { display: flex; flex-wrap: wrap; gap: 12px; }
.bonus-row input {
  flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 10px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  border: 1px solid rgba(16, 54, 107, .4); border-radius: 8px; background: #fff;
}
button.btn { font-family: inherit; cursor: pointer; }
.bonus-row input[aria-invalid="true"] { border-color: var(--red); }
.bonus-error {
  margin: 1.2rem 0 0; padding: 12px 16px; border-left: 4px solid var(--red);
  background: #FDF0F0; color: #A3121A; font-weight: 700;
}
.bonus-sub { font-size: 1rem; color: var(--navy); margin-top: 2.4rem; }
.bonus-howto { margin: 0; padding-left: 1.2em; font-size: .9rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
