:root {
  --ink: #171a19;
  --teal: #24758d;
  --teal-dark: #155c71;
  --lime: #dfff78;
  --paper: #fff;
  --line: #d6dedc;
  --soft: #f4f7f6;
  --shadow: 0 18px 50px rgba(30, 52, 48, .12);
  color-scheme: light;
  font-family: "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #edf2ef; font-size: 16px; line-height: 1.8; }
body:has(dialog[open]) { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li, td { text-wrap: pretty; }
:focus-visible { outline: 3px solid #1676d2; outline-offset: 4px; }

.page-shell { width: min(100% - 48px, 1720px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; color: #fff; background: #000; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.hero,
.media-section,
.section-panel {
  background-color: #fbfcfb;
  background-image: linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.08)), url("./assets/site-background.png");
  background-position: center;
  background-size: cover;
}

.hero { min-height: 510px; display: grid; align-items: center; background-position: center 48%; }
.hero-inner { padding-block: 80px; }
.hero-kicker { margin-bottom: 26px; color: var(--teal-dark); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.hero h1 { max-width: 1280px; margin-bottom: 0; font-size: clamp(48px, 6vw, 92px); line-height: 1.18; letter-spacing: -.045em; }

.lead-band { background: #fff; }
.lead-band p { margin: 0; padding-block: 54px; font-size: clamp(24px, 2.7vw, 42px); font-weight: 800; line-height: 1.45; letter-spacing: -.025em; }

.media-section { padding-block: 52px 64px; background-attachment: fixed; }
.video-frame { padding: 18px; background: #111; box-shadow: var(--shadow); }
.video-frame video { width: 100%; aspect-ratio: 80 / 47; background: #000; object-fit: contain; }
.media-caption { margin: 0; padding: 18px 24px; color: #fff; background: #111; font-size: 15px; text-align: center; }
.action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 44px; }
.action-grid a { display: grid; min-height: 64px; align-items: center; padding: 14px 22px; color: var(--teal-dark); background: rgba(255,255,255,.9); border: 1px solid var(--teal); border-radius: 4px; font-size: 18px; font-weight: 700; text-align: center; text-decoration: none; transition: background .18s ease, color .18s ease, transform .18s ease; }
.action-grid a:hover { color: #fff; background: var(--teal); transform: translateY(-2px); }

.document-preview { padding: 70px 0; background: #f4f6fb; }
.document-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.document-label { margin-bottom: 4px; color: #2672ad; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.document-heading h2 { margin-bottom: 0; color: #0f2943; font-size: clamp(30px, 3.5vw, 48px); }
.document-heading > a { padding: 9px 14px; color: var(--teal-dark); border: 1px solid var(--teal); font-weight: 700; text-decoration: none; }
.pdf-frame { height: min(78vh, 900px); min-height: 620px; overflow: hidden; background: #dfe4e9; border: 1px solid #b9c3cc; box-shadow: var(--shadow); }
.pdf-frame iframe { width: 100%; height: 100%; border: 0; }
.pdf-fallback { margin: 14px 0 0; color: #586775; font-size: 14px; }
.pdf-fallback a { color: var(--teal-dark); font-weight: 700; }

.section-title { background: #fff; }
.section-title .page-shell { display: flex; min-height: 150px; align-items: center; gap: 8px; }
.section-title span, .section-title h2 { color: var(--teal); font-size: clamp(30px, 3vw, 46px); font-weight: 500; line-height: 1.3; }
.section-title h2 { margin: 0; }
.section-panel { padding-block: clamp(54px, 6vw, 92px); border-top: 1px solid rgba(36,117,141,.08); border-bottom: 1px solid rgba(36,117,141,.08); }

.readable-copy { max-width: 1320px; margin-inline: auto; }
.readable-copy p { max-width: 980px; margin-bottom: 26px; font-size: 18px; line-height: 1.95; }
.readable-copy p:last-child { margin-bottom: 0; }
.readable-copy .opening { max-width: 1120px; font-weight: 700; }

.persona-card { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); gap: clamp(36px, 6vw, 100px); align-items: start; }
.mini-label { margin-bottom: 8px; font-weight: 800; }
.persona-card h3 { margin-bottom: 0; font-size: clamp(26px, 3vw, 42px); line-height: 1.45; }
.persona-copy { max-width: 820px; padding-left: 42px; border-left: 4px solid var(--lime); font-size: 18px; }
.persona-copy p:last-child { margin-bottom: 0; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card-grid article { padding: 34px; background: rgba(255,255,255,.92); border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(30,52,48,.07); }
.card-grid article > span { display: inline-grid; width: 42px; height: 42px; place-items: center; margin-bottom: 28px; color: #143126; background: var(--lime); border-radius: 50%; font-size: 12px; font-weight: 800; }
.card-grid h3 { margin-bottom: 14px; font-size: 22px; line-height: 1.5; }
.card-grid p { margin-bottom: 0; color: #4b5752; }

.plan-list { max-width: 1180px; counter-reset: plan; }
.plan-list p { position: relative; margin: 0; padding: 22px 20px 22px 72px; background: rgba(255,255,255,.82); border-bottom: 1px solid var(--line); font-size: 18px; }
.plan-list p:first-child { border-top: 1px solid var(--line); }
.plan-list p::before { position: absolute; top: 22px; left: 20px; color: var(--teal); font-weight: 800; counter-increment: plan; content: "0" counter(plan); }

.achievement-wrap { display: grid; gap: 30px; }
.achievement-summary { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 16px; padding: 22px 26px; background: rgba(255,255,255,.94); border-left: 6px solid var(--lime); }
.achievement-summary strong { font-size: 22px; }
.achievement-summary span { padding: 4px 10px; color: #24440e; background: var(--lime); border-radius: 99px; font-size: 12px; font-weight: 800; }
.achievement-summary p { margin: 0 0 0 18px; color: #4b5752; }
.table-scroll { overflow-x: auto; background: #fff; border: 1px solid #c8cfcc; box-shadow: var(--shadow); }
table { width: 100%; min-width: 900px; border-collapse: collapse; }
th, td { padding: 13px 16px; border-right: 1px solid #d7ddda; border-bottom: 1px solid #d7ddda; text-align: left; vertical-align: top; }
th { background: #f7f9f8; font-weight: 800; text-align: center; }
tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.status::before { display: grid; width: 22px; height: 22px; place-items: center; color: #fff; background: #4ed391; border-radius: 4px; content: "✓"; }

.architecture-layout { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.architecture-copy h3 { margin-bottom: 8px; font-size: clamp(27px, 3vw, 42px); }
.architecture-copy p, .architecture-copy li { font-size: 17px; }
.diagram-button { position: relative; width: 100%; padding: 14px; background: #fff; border: 1px solid #9caaa5; box-shadow: var(--shadow); text-align: left; }
.diagram-button span { position: absolute; right: 20px; bottom: 18px; padding: 7px 12px; color: #fff; background: rgba(23,26,25,.88); font-size: 12px; }

.craft-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; padding: 1px; background: #bcc7c2; }
.craft-list article { min-height: 180px; padding: 32px; background: rgba(255,255,255,.95); }
.craft-list h3 { margin-bottom: 8px; font-size: 20px; }
.craft-list h3::before { margin-right: 9px; color: var(--teal); content: "•"; }
.craft-list p { margin: 0; color: #4b5752; }

footer { color: #fff; background: #202020; }
footer .page-shell { display: flex; min-height: 110px; align-items: center; justify-content: space-between; gap: 24px; }
footer span { color: rgba(255,255,255,.6); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }

.diagram-dialog { width: min(94vw, 1500px); max-height: 90vh; padding: 0; border: 0; box-shadow: 0 30px 100px rgba(0,0,0,.34); }
.diagram-dialog::backdrop { background: rgba(12,17,14,.78); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 0; font-size: 18px; }
.dialog-header button { width: 44px; height: 44px; color: #fff; background: #202020; border: 0; font-size: 26px; }
.dialog-body { max-height: calc(90vh - 77px); overflow: auto; padding: 20px; background: var(--soft); }
.dialog-body img { width: max(100%, 1100px); }

@media (max-width: 900px) {
  .page-shell { width: min(100% - 32px, 1720px); }
  .hero { min-height: 390px; }
  .action-grid, .card-grid { grid-template-columns: 1fr; }
  .persona-card, .architecture-layout { grid-template-columns: 1fr; }
  .persona-copy { padding-top: 24px; padding-left: 0; border-top: 4px solid var(--lime); border-left: 0; }
  .achievement-summary { grid-template-columns: auto 1fr; }
  .achievement-summary p { grid-column: 1 / -1; margin-left: 0; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .hero { min-height: 330px; background-position: 47% center; }
  .hero-inner { padding-block: 54px; }
  .hero h1 { font-size: clamp(40px, 12vw, 62px); }
  .hero-break { display: none; }
  .lead-band p { padding-block: 34px; font-size: 24px; }
  .media-section { padding-block: 24px 40px; background-attachment: scroll; }
  .video-frame { padding: 7px; }
  .media-caption { padding: 14px; font-size: 13px; text-align: left; }
  .action-grid { gap: 12px; margin-top: 28px; }
  .action-grid a { min-height: 54px; font-size: 15px; }
  .document-preview { padding: 36px 0; }
  .document-heading { align-items: start; flex-direction: column; }
  .pdf-frame { height: 70vh; min-height: 500px; }
  .section-title .page-shell { min-height: 104px; }
  .section-title span, .section-title h2 { font-size: 30px; }
  .section-panel { padding-block: 44px; }
  .readable-copy p, .persona-copy, .plan-list p { font-size: 16px; }
  .card-grid article, .craft-list article { padding: 24px; }
  .craft-list { grid-template-columns: 1fr; }
  footer .page-shell { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .action-grid a { transition: none; }
}
