:root {
  --navy: #112F56;
  --navy-deep: #0B203D;
  --deep-blue: #0C3989;
  --blue: #1458BA;
  --sky: #498DEA;
  --ink: #162B45;
  --ink-muted: #4A607A;
  --paper: #FFFFFF;
  --wash: #F2F7FD;
  --wash-strong: #E4EFFC;
  --rule: #B8CCE4;
  --divider: #DCE7F5;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --container: 1140px;
  --gutter: clamp(20px, 5vw, 48px);
  --shadow-sm: 0 1px 2px rgba(17, 47, 86, 0.05), 0 6px 20px rgba(17, 47, 86, 0.04);
  --shadow-md: 0 8px 28px rgba(17, 47, 86, 0.08);
}

/* Base & Typography */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.9;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
dd {
  line-height: 1.9;
}

h1,
h2,
h3,
summary,
.cta,
nav {
  font-feature-settings: "palt" 1;
}

h1,
h2,
h3 {
  color: var(--navy);
  text-wrap: balance;
  word-break: auto-phrase;
}

h1 {
  letter-spacing: -0.02em;
}

small,
.eyebrow {
  display: inline-block;
  font: 600 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.container {
  width: min(100%, var(--container));
  margin-inline: auto;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.hero :focus-visible,
.cta-card :focus-visible,
footer :focus-visible {
  outline-color: #AACFFF;
}

/* Sticky Header */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
  padding: 14px var(--gutter);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  display: block;
  width: 172px;
  height: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}

nav a {
  transition: color 0.16s ease;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--blue);
}

nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

nav a.nav-cta {
  background: var(--blue);
  color: #FFFFFF;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

nav a.nav-cta:hover {
  background: var(--deep-blue);
  color: #FFFFFF;
  text-decoration: none;
}

nav a.nav-cta[aria-current="page"] {
  background: var(--deep-blue);
  color: #FFFFFF;
  text-decoration: none;
  box-shadow: 0 0 0 2px rgba(20, 88, 186, 0.25);
}

/* Buttons */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue);
  color: #FFFFFF;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.cta:hover {
  background: var(--deep-blue);
  transform: translateY(-1px);
}

.cta:disabled {
  background: #DCE5F1;
  color: #475971;
  border-color: transparent;
  cursor: default;
  transform: none;
}

.cta-light {
  background: #FFFFFF;
  color: var(--navy);
  box-shadow: 0 2px 10px rgba(11, 32, 61, 0.18);
}

.cta-light:hover {
  background: #E8F1FD;
  color: var(--navy);
}

.cta-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.38);
}

.cta-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.65);
}

.cta-secondary {
  background: var(--paper);
  color: var(--navy);
  border: 1px solid var(--rule);
}

.cta-secondary:hover {
  background: var(--wash);
  color: var(--navy);
  border-color: var(--blue);
}

.cta-secondary:disabled {
  background: var(--wash);
  color: #475971;
  border-color: var(--divider);
  cursor: default;
  transform: none;
}

/* Hero */
.hero {
  background: linear-gradient(115deg, var(--navy-deep) 0%, var(--navy) 48%, #0E3C86 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 112px) var(--gutter);
}

.hero .intro {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-kicker {
  color: #93C5FD;
  margin-bottom: 14px;
}

.hero h1 {
  color: #FFFFFF;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}

.hero h1 span {
  display: inline-block;
}

.hero p {
  margin: 0;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.9;
  color: #DCE9FA;
  max-width: 38em;
  word-break: auto-phrase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.art {
  position: absolute;
  inset: 0 0 0 40%;
  mask-image: linear-gradient(to right, transparent, black 20%);
  pointer-events: none;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Common Sections */
.block {
  padding: clamp(56px, 7vw, 96px) var(--gutter);
}

.block h1 {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.25;
  margin: 10px 0 32px;
}

.block h2 {
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.32;
  letter-spacing: -0.015em;
  margin: 10px 0 18px;
}

.section-head {
  margin-bottom: clamp(28px, 4vw, 44px);
  max-width: 44em;
}

.section-lead {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15.5px;
}

/* Custom Disclosure Controls */
summary {
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

summary::marker {
  content: "";
}

/* Scenarios Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--divider);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius-md);
  padding: 26px 24px 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.card-num {
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--blue);
  background: var(--wash);
  border: 1px solid var(--divider);
  padding: 4px 8px;
  border-radius: 999px;
}

.card-tag {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.card h3 {
  font-size: 20px;
  line-height: 1.45;
  margin: 0 0 12px;
}

.card > p {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--ink);
}

.card details {
  border-top: 1px solid var(--divider);
  margin-top: auto;
}

.card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}

.card summary::after,
.steps summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: var(--blue);
  flex: 0 0 auto;
}

.card details[open] > summary::after,
.steps details[open] > summary::after {
  content: "−";
}

.card details p {
  margin: 12px 0 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--divider);
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-muted);
}

@media (min-width: 961px) {
  .cards > .card {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
}

/* Approach Section */
.approach {
  background: var(--wash);
  border-block: 1px solid var(--divider);
}

.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.approach-note {
  margin: 12px 0 0;
  font-size: 14.5px;
  color: var(--ink-muted);
}

.steps {
  display: grid;
  gap: 14px;
}

.steps details {
  background: var(--paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: 0 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.steps details[open] {
  border-color: var(--sky);
  box-shadow: var(--shadow-sm);
}

.steps summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-weight: 700;
  font-size: 16.5px;
  color: var(--navy);
}

.step-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-label {
  font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.steps details p {
  margin: 0 0 20px;
  padding-top: 14px;
  border-top: 1px solid var(--divider);
  font-size: 15px;
  color: var(--ink);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.story p:first-child {
  margin-top: 0;
  font-size: clamp(19px, 1.9vw, 25px);
  line-height: 1.7;
  font-weight: 600;
  color: var(--navy);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.text-link:hover {
  color: var(--deep-blue);
}

/* Closing CTA Band */
.cta-band {
  padding: 0 var(--gutter) clamp(64px, 8vw, 96px);
}

.cta-card {
  background: linear-gradient(115deg, var(--navy-deep) 0%, var(--navy) 55%, #11418F 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-card small {
  color: #93C5FD;
}

.cta-card h2 {
  color: #FFFFFF;
  font-size: clamp(22px, 2.3vw, 32px);
  margin: 8px 0 12px;
}

.cta-card p {
  margin: 0;
  color: #DCE9FA;
  max-width: 38em;
  font-size: 15px;
}

/* Definition Lists */
dl {
  display: grid;
  grid-template-columns: minmax(140px, 240px) 1fr;
  margin: 0;
  border-top: 1px solid var(--rule);
}

dt,
dd {
  padding: 17px 0;
  margin: 0;
  border-bottom: 1px solid var(--divider);
}

dt {
  font-weight: 600;
  color: var(--navy);
  padding-right: 16px;
}

dd a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Company Page */
.company-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.company-card {
  background: var(--wash);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 34px);
}

.company-card h2 {
  font-size: clamp(20px, 1.9vw, 25px);
  margin: 10px 0 12px;
}

.company-card p {
  margin: 0;
  font-size: 15px;
}

.company-values {
  margin-bottom: 56px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.values-grid li {
  background: var(--paper);
  border: 1px solid var(--divider);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius-md);
  padding: 22px 20px;
}

.values-grid strong {
  display: block;
  color: var(--navy);
  font-size: 16.5px;
  margin: 10px 0 8px;
}

.values-grid p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-muted);
}

/* Contact Page */
.contact {
  background: var(--wash);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.contact-panel {
  background: var(--paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3.5vw, 44px);
  box-shadow: var(--shadow-sm);
}

.contact-panel h2 {
  font-size: clamp(22px, 2.2vw, 28px);
  margin: 0 0 20px;
}

#inquiry:not([hidden]) {
  display: grid;
  gap: 20px;
}

#inquiry fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

#inquiry legend,
#inquiry > label {
  display: block;
  font-weight: 600;
  color: var(--navy);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  vertical-align: 1px;
  background: var(--wash);
  color: var(--ink-muted);
}

.badge-required {
  background: #E3EEFD;
  color: var(--blue);
}

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.topics label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  background: var(--paper);
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.topics label:hover {
  border-color: var(--blue);
}

.topics label:has(input:checked) {
  border-color: var(--blue);
  background: var(--wash);
  color: var(--navy);
  font-weight: 600;
}

.topics input,
.consent input {
  accent-color: var(--blue);
}

#inquiry > label input,
#inquiry textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--paper);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#inquiry > label input:focus,
#inquiry textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 88, 186, 0.14);
}

#inquiry textarea {
  resize: vertical;
}

.consent label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

.consent input {
  flex: 0 0 auto;
  width: auto;
}

.consent a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

#inquiry .cta {
  justify-self: start;
}

.review-note,
.complete-note,
.form-note {
  margin: 20px 0 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.form-error {
  margin: 16px 0 0;
  padding: 12px 16px;
  border: 1px solid #DC2626;
  border-radius: var(--radius-sm);
  background: #FEF2F2;
  color: #991B1B;
  font-size: 0.95rem;
  line-height: 1.6;
}

#review dd {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#complete .cta {
  margin-top: 24px;
}

/* Privacy Policy & 404 */
.privacy-body {
  max-width: 48em;
}

.privacy h2 {
  font-size: clamp(19px, 1.8vw, 24px);
  margin: 36px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
}

.privacy ul {
  margin: 8px 0 16px;
  padding-inline-start: 1.4em;
  line-height: 1.9;
}

.privacy li + li {
  margin-top: 0.35em;
}

.privacy a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  color: var(--blue);
}

.privacy-date {
  margin-top: 40px;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.not-found {
  padding-block: clamp(72px, 12vw, 128px);
}

.not-found p {
  max-width: 38em;
  margin: 0 0 28px;
  color: var(--ink-muted);
}

/* Footer */
footer {
  background: var(--navy-deep);
  color: #FFFFFF;
  padding: 36px var(--gutter);
  font-weight: 600;
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: flex-end;
  font-size: 13px;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.footer-links [aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.copyright {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  color: #C5D9F5;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .cards,
  .approach-grid,
  .about-grid,
  .contact-grid,
  .company-intro,
  .values-grid {
    grid-template-columns: 1fr;
  }

  header .container {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  nav {
    gap: 14px 20px;
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  .brand img {
    width: 148px;
  }

  nav {
    gap: 10px 14px;
    font-size: 13px;
    width: 100%;
  }

  nav a.nav-cta {
    padding: 7px 14px;
  }

  .hero {
    padding-bottom: 128px;
  }

  .art {
    inset: 46% -18% -14% 8%;
    mask-image: linear-gradient(to bottom, transparent, black 28%);
    opacity: 0.72;
  }

  dl {
    grid-template-columns: 1fr;
  }

  dt {
    padding: 14px 0 4px;
    border-bottom: 0;
    font-size: 13px;
    color: var(--ink-muted);
  }

  dd {
    padding: 0 0 14px;
  }

  footer .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
    gap: 10px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .cta:hover {
    transform: none;
  }
}
