:root {
  --teal: #5FA9A4;
  --teal-deep: #2F7772;
  --teal-dark: #235F5B;
  --aqua: #DDEEEE;
  --aqua-soft: #EEF6F5;
  --navy: #345F8B;
  --navy-soft: #DFE8F0;
  --purple: #746F9E;
  --purple-soft: #E7E4F1;
  --gold: #A98E55;
  --gold-soft: #EFE6D1;
  --red: #C75B5D;
  --paper: #FFFFFF;
  --base: #F3F4F1;
  --warm-base: #F2F0E8;
  --ink: #222222;
  --charcoal: #383637;
  --muted: #72726D;
  --line: #DDE2DE;
  --line-strong: #C8D4D1;
  --footer: #4F463D;
  --maxw: 1180px;
  --header-h: 72px;
  --radius: 8px;
  font-family: "Noto Sans JP", "Yu Gothic", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--base);
  font-family: inherit;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

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

.brand-logo {
  width: min(270px, 52vw);
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

.site-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 800;
  border-radius: 4px;
}

.site-nav a:hover {
  background: var(--aqua-soft);
  color: var(--teal-dark);
}

.site-nav .nav-cta {
  color: var(--paper);
  background: var(--teal-deep);
}

.site-nav .nav-cta:hover {
  color: var(--paper);
  background: var(--teal-dark);
}

.hero {
  position: relative;
  min-height: clamp(520px, 78vh, 760px);
  display: grid;
  align-items: end;
  isolation: isolate;
  background-image: url("assets/r9-materials-hero.png");
  background-size: cover;
  background-position: center center;
  overflow: hidden;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(24, 44, 45, 0.58);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(47, 119, 114, 0.18);
}

.hero-inner {
  width: min(var(--maxw), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(74px, 13vh, 124px) 0 28px;
  color: var(--paper);
  min-width: 0;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 10px;
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-kicker {
  color: var(--aqua);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 900;
}

.hero-title-line {
  display: block;
}

.hero-lead {
  max-width: 1120px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1.9;
  font-weight: 700;
  white-space: nowrap;
}

.hero-note {
  display: inline-block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.84em;
  font-weight: 700;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 900;
  line-height: 1.2;
  border: 1px solid transparent;
}

.button.primary {
  color: var(--paper);
  background: var(--red);
}

.button.primary:hover {
  background: #B0484B;
}

.button.ghost {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.button.outline-dark {
  color: var(--teal-dark);
  background: transparent;
  border-color: var(--line-strong);
}

.button.outline-dark:hover {
  background: rgba(53, 148, 132, 0.08);
}

.hero-summary {
  width: min(var(--maxw), calc(100% - 32px));
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-summary div {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 15px 18px;
  border-right: 1px solid var(--line);
}

.hero-summary div:last-child {
  border-right: 0;
}

.hero-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hero-summary strong {
  color: var(--teal-dark);
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.2;
  font-weight: 900;
  white-space: nowrap;
  overflow-wrap: normal;
}

.tax-note {
  display: inline;
  font-size: 0.58em;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
  vertical-align: 0.08em;
}

.section {
  padding: clamp(54px, 8vw, 88px) 0;
  background: var(--paper);
}

.section:nth-of-type(even) {
  background: var(--warm-base);
}

.section-inner {
  width: min(var(--maxw), calc(100% - 32px));
  margin: 0 auto;
  min-width: 0;
}

.section-head {
  max-width: 820px;
  margin-bottom: 28px;
}

.two-column-head {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 28px;
  align-items: end;
}

.section h2,
.final-cta h2 {
  margin: 0;
  color: var(--charcoal);
  font-size: clamp(28px, 4.3vw, 46px);
  line-height: 1.22;
  letter-spacing: 0;
  font-weight: 900;
}

.section p,
.final-cta p {
  margin: 16px 0 0;
  color: var(--charcoal);
  font-size: 16px;
}

.intro-section {
  border-top: 6px solid var(--teal-deep);
}

.intro-grid,
.value-grid,
.period-grid,
.price-grid,
.final-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr);
  gap: clamp(26px, 5vw, 60px);
  align-items: start;
}

.two-column-head > *,
.intro-grid > *,
.value-grid > *,
.period-grid > *,
.price-grid > *,
.final-cta-inner > * {
  min-width: 0;
}

.target-list {
  margin: 0;
  display: grid;
  gap: 10px;
}

.target-list div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: var(--radius);
}

.target-list dt {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.target-list dd {
  margin: 0;
  color: var(--charcoal);
  font-size: 15px;
  font-weight: 700;
}

.material-visual {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}

.material-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #F2EFE7;
}

.material-visual figcaption {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.section.app-section {
  color: var(--paper);
  background: #112133;
}

.app-section .section-kicker {
  color: var(--teal);
}

.app-head {
  max-width: 980px;
}

.app-head h2 {
  color: var(--paper);
  font-size: clamp(30px, 3.6vw, 46px);
}

.app-head p {
  max-width: 900px;
  color: #CFE2E6;
  font-size: 17px;
}

.section.app-section .important-note {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.26);
  border-left-color: #8EE2DD;
}

.section.app-section .important-note a {
  color: #8EE2DD;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.app-card {
  min-height: 236px;
  padding: 32px;
  color: var(--paper);
  background: rgba(49, 95, 139, 0.32);
  border: 1px solid rgba(95, 169, 164, 0.38);
  border-radius: var(--radius);
}

.app-card-know {
  background: rgba(116, 111, 158, 0.34);
  border-color: rgba(116, 111, 158, 0.58);
}

.app-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.app-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  color: #0E2230;
  background: #68C5BD;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;
}

.app-icon-know {
  background: #A7B7F2;
  font-size: 20px;
}

.app-card h3 {
  margin: 0;
  color: var(--paper);
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
}

.app-card-head p {
  margin: 4px 0 0;
  color: #8EE2DD;
  font-size: 14px;
  font-weight: 900;
}

.app-card-know .app-card-head p {
  color: #C8D2FF;
}

.app-card > p {
  margin: 0;
  color: #F2F8FA;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.9;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 8px solid var(--teal);
  border-radius: var(--radius);
}

.product-code {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--paper);
  background: var(--teal-deep);
  font-weight: 900;
  border-radius: 4px;
}

.product-card h3 {
  min-height: 68px;
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.45;
  letter-spacing: 0;
  font-weight: 900;
}

.product-card p {
  margin-top: 12px;
  color: var(--charcoal);
  font-size: 15px;
}

.product-card ul {
  margin: auto 0 0;
  padding: 14px 0 0;
  list-style: none;
  color: var(--charcoal);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.product-card li {
  position: relative;
  padding-left: 16px;
  margin-top: 7px;
}

.product-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--teal-deep);
  border-radius: 50%;
}

.tone-navy {
  border-top-color: var(--navy);
}

.tone-navy .product-code,
.tone-navy li::before {
  background: var(--navy);
}

.tone-purple {
  border-top-color: var(--purple);
}

.tone-purple .product-code,
.tone-purple li::before {
  background: var(--purple);
}

.tone-gold {
  border-top-color: var(--gold);
}

.tone-gold .product-code,
.tone-gold li::before {
  background: var(--gold);
}

.value-section {
  background: var(--aqua-soft);
}

.flow-list {
  display: grid;
  gap: 10px;
}

.flow-list div {
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.flow-list span,
.timeline span {
  display: block;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.flow-list strong,
.timeline strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 900;
}

.flow-list p,
.timeline p {
  margin-top: 6px;
  color: var(--charcoal);
  font-size: 14px;
}

.period-section {
  background: var(--warm-base);
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  counter-reset: year;
}

.timeline li {
  position: relative;
  min-height: 124px;
  padding: 18px 18px 18px 88px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.timeline li::before {
  counter-increment: year;
  content: counter(year);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--teal-deep);
  border-radius: 4px;
  font-weight: 900;
}

.section.price-section {
  color: var(--paper);
  background: var(--footer);
}

.price-section .section-kicker,
.price-section h2,
.price-section p {
  color: var(--paper);
}

.price-section p {
  color: rgba(255, 255, 255, 0.86);
}

.price-panel {
  min-height: 280px;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 28px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
}

.price-panel .price-label {
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 900;
}

.price-panel strong {
  color: var(--red);
  font-size: clamp(42px, 7vw, 64px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 900;
}

.price-options {
  display: grid;
}

.price-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.price-option:first-child {
  padding-top: 4px;
}

.price-option:last-child {
  border-bottom: 0;
}

.price-option-main {
  margin: 5px -12px 0;
  padding: 16px 12px;
  background: rgba(53, 148, 132, 0.1);
  border: 1px solid rgba(53, 148, 132, 0.28);
  border-radius: var(--radius);
}

.price-option .plan-name {
  display: block;
  color: var(--teal-dark);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 900;
}

.price-option > div > small {
  display: block;
  margin-top: 3px;
}

.price-panel .price-option > strong {
  white-space: nowrap;
  font-size: clamp(25px, 3vw, 34px);
}

.price-panel .price-option > strong small {
  color: inherit;
  font-size: 0.48em;
}

.price-panel small,
.cta-box small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.price-panel .button {
  width: 100%;
  margin-top: 4px;
}

.support-compare {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 10px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.support-compare > div {
  min-width: 0;
}

.support-compare span {
  display: block;
  margin-bottom: 7px;
  color: var(--aqua);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.support-compare strong {
  display: block;
  color: var(--paper);
  font-size: clamp(20px, 2.4vw, 29px);
  line-height: 1.35;
  font-weight: 900;
}

.support-compare p {
  margin-top: 10px;
}

.support-compare .button {
  min-width: 220px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 14px 18px;
  color: var(--charcoal);
  font-weight: 900;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 14px;
}

details p a {
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.final-cta {
  padding: clamp(54px, 8vw, 88px) 0;
  color: var(--paper);
  background: var(--teal-dark);
}

.final-cta .section-kicker,
.final-cta h2,
.final-cta p {
  color: var(--paper);
}

.final-cta p {
  color: rgba(255, 255, 255, 0.86);
}

.cta-box {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
}

.cta-box strong {
  color: var(--teal-dark);
  font-size: 22px;
  line-height: 1.35;
}

.site-footer {
  color: var(--paper);
  background: var(--charcoal);
}

.footer-inner {
  width: min(var(--maxw), calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .two-column-head,
  .intro-grid,
  .value-grid,
  .period-grid,
  .price-grid,
  .final-cta-inner {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .app-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1,
  .hero-lead,
  .section h2,
  .section p,
  .final-cta h2,
  .final-cta p,
  .app-card h3,
  .app-card p,
  .target-list dd,
  .flow-list strong,
  .timeline strong,
  .product-card h3,
  .product-card p,
  .product-card li {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-all;
    line-break: anywhere;
    white-space: normal;
  }

  .app-head h2,
  .app-head p,
  .app-card h3,
  .app-card p {
    overflow-wrap: break-word;
    word-break: normal;
    line-break: strict;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav a {
    justify-content: center;
    min-height: 42px;
    padding: 8px 6px;
    font-size: 13px;
  }

  .hero {
    min-height: 600px;
    background-position: 58% center;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-inner,
  .section-inner,
  .hero-summary {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    margin-left: 16px;
    margin-right: 16px;
  }

  .hero-inner > *,
  .section-inner > * {
    min-width: 0;
  }

  .hero h1,
  .hero-lead,
  .section h2,
  .section p,
  .final-cta h2,
  .final-cta p,
  .target-list dd,
  .flow-list strong,
  .timeline strong,
  .product-card h3,
  .product-card p,
  .product-card li {
    max-width: calc(100vw - 32px);
    overflow-wrap: anywhere;
    word-break: break-all;
    line-break: anywhere;
    white-space: normal;
  }

  .hero-lead {
    font-size: 16px;
    line-height: 1.75;
  }

  .section h2,
  .final-cta h2 {
    font-size: 28px;
    overflow-wrap: break-word;
    word-break: normal;
    line-break: strict;
  }

  .section p,
  .final-cta p {
    overflow-wrap: break-word;
    word-break: normal;
    line-break: strict;
  }

  .app-head h2,
  .app-head p,
  .app-card h3,
  .app-card p {
    overflow-wrap: break-word;
    word-break: normal;
    line-break: strict;
  }

  .hero-summary,
  .product-grid,
  .app-grid,
  .support-compare,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-summary div {
    min-height: 70px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-summary div:last-child {
    border-bottom: 0;
  }

  .target-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .product-card {
    min-height: auto;
  }

  .app-card {
    min-height: auto;
    padding: 24px;
  }

  .app-card-head {
    align-items: flex-start;
  }

  .product-card h3 {
    min-height: auto;
  }

  .timeline li {
    padding-left: 80px;
  }

  .footer-inner {
    min-height: 96px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: 22px 0;
  }
}
