:root {
  --ink: #292426;
  --muted: #6f6667;
  --cream: #fff8f2;
  --paper: #fffdfb;
  --rose: #b84e68;
  --coral: #eb755f;
  --peach: #f6b9a7;
  --line: #eadbd5;
  --soft-rose: #fae8e8;
  --soft-sage: #e9f1ea;
  --shadow: 0 18px 55px rgba(73, 42, 45, 0.12);
  --radius-lg: 30px;
  --radius-md: 18px;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 6%, rgba(246, 185, 167, 0.32), transparent 28rem),
    linear-gradient(180deg, var(--cream) 0, var(--paper) 34rem, #fff 100%);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--rose);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: #8f3049;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(235, 117, 95, 0.58);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(234, 219, 213, 0.8);
  background: rgba(255, 248, 242, 0.86);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(calc(100% - 40px), var(--content));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 12px 12px 12px 4px;
  color: #fff;
  background: linear-gradient(145deg, var(--coral), var(--rose));
  box-shadow: 0 8px 20px rgba(184, 78, 104, 0.25);
  font-size: 0.8rem;
  letter-spacing: 0;
}

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

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a[aria-current="page"] {
  color: var(--rose);
}

.page-shell {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
}

.hero {
  padding: clamp(68px, 10vw, 132px) 0 clamp(70px, 10vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
  align-items: center;
  gap: clamp(40px, 7vw, 94px);
}

.eyebrow,
.kicker {
  margin: 0 0 18px;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero h1,
.legal-hero h1 {
  margin: 0;
  max-width: 12ch;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: clamp(3.2rem, 7.6vw, 6.6rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 span {
  display: block;
  margin-top: 0.18em;
  color: var(--rose);
}

.hero-lead {
  max-width: 42rem;
  margin: 30px 0 0;
  color: #4f4749;
  font-size: clamp(1.02rem, 2vw, 1.25rem);
  font-weight: 560;
  line-height: 1.85;
}

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

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-weight: 800;
}

.button-link.primary {
  border-color: var(--rose);
  color: #fff;
  background: var(--rose);
}

.hero-card {
  position: relative;
  min-height: 465px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 42px 42px 42px 12px;
  background:
    linear-gradient(150deg, rgba(46, 38, 41, 0.88), rgba(91, 52, 60, 0.75)),
    linear-gradient(45deg, var(--rose), var(--coral));
  box-shadow: var(--shadow);
  color: #fff;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
}

.hero-card::before {
  width: 270px;
  height: 270px;
  right: -115px;
  top: -75px;
}

.hero-card::after {
  width: 170px;
  height: 170px;
  left: -65px;
  bottom: -75px;
}

.status-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd3c4;
  box-shadow: 0 0 0 5px rgba(255, 211, 196, 0.13);
}

.hero-card h2 {
  position: relative;
  z-index: 1;
  margin: 56px 0 0;
  max-width: 11ch;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.hero-card p {
  position: relative;
  z-index: 1;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.8);
}

.mini-flow {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 28px;
  left: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mini-flow span {
  padding: 11px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 750;
}

.section {
  padding: clamp(70px, 9vw, 112px) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-heading h2,
.content-card h2,
.legal-copy h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.7rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card,
.content-card,
.notice,
.scope-item {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 38px rgba(75, 44, 48, 0.06);
}

.feature-card {
  min-height: 290px;
  padding: 30px;
  border-radius: var(--radius-md);
}

.feature-card:nth-child(2) {
  background: var(--soft-rose);
}

.feature-card:nth-child(3) {
  background: #fff3eb;
}

.feature-index {
  color: var(--coral);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.feature-card h3,
.scope-item h3 {
  margin: 58px 0 12px;
  font-size: 1.32rem;
  line-height: 1.4;
}

.feature-card p,
.scope-item p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(36px, 7vw, 84px);
  align-items: start;
}

.scope-list {
  display: grid;
  gap: 14px;
}

.scope-item {
  padding: 24px 26px;
  border-radius: var(--radius-md);
}

.scope-item h3 {
  margin: 0 0 7px;
  font-size: 1rem;
}

.scope-item code {
  color: var(--rose);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.85em;
  overflow-wrap: anywhere;
}

.guard-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 15px;
}

.guard-list li {
  position: relative;
  padding-left: 34px;
}

.guard-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--rose);
  background: var(--soft-rose);
  font-size: 0.78rem;
  font-weight: 900;
}

.notice {
  padding: 24px 28px;
  border-left: 5px solid var(--coral);
  border-radius: 4px var(--radius-md) var(--radius-md) 4px;
}

.notice strong {
  display: block;
  margin-bottom: 4px;
}

.notice p {
  margin: 0;
  color: var(--muted);
}

.legal-hero {
  padding: clamp(70px, 10vw, 126px) 0 52px;
}

.legal-hero h1 {
  max-width: none;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.legal-hero .summary {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.legal-meta {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.legal-layout {
  padding: 0 0 100px;
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  gap: clamp(40px, 7vw, 86px);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 28px;
  padding: 20px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.legal-toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.legal-toc a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
}

.legal-copy section {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.legal-copy section:first-child {
  border-top: 2px solid var(--ink);
}

.legal-copy h2 {
  font-family: inherit;
  font-size: clamp(1.3rem, 2.6vw, 1.72rem);
  letter-spacing: -0.02em;
}

.legal-copy h3 {
  margin: 28px 0 8px;
  font-size: 1rem;
}

.legal-copy p,
.legal-copy li {
  color: #514a4b;
}

.legal-copy ul,
.legal-copy ol {
  padding-left: 1.3em;
}

.legal-copy li + li {
  margin-top: 8px;
}

.data-table {
  width: 100%;
  margin-top: 22px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  width: 30%;
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #332d2f;
  color: rgba(255, 255, 255, 0.76);
}

.footer-shell {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
}

.footer-brand {
  color: #fff;
  font-weight: 850;
  font-size: 1.05rem;
}

.footer-shell p {
  max-width: 560px;
  margin: 8px 0 0;
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 22px;
}

.footer-links a {
  color: #fff;
  font-size: 0.88rem;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
}

@media (max-width: 850px) {
  .hero,
  .split,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 410px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .feature-card h3 {
    margin-top: 32px;
  }

  .legal-toc {
    position: static;
    columns: 2;
  }
}

@media (max-width: 600px) {
  .nav-shell {
    min-height: 94px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 6px 16px;
  }

  .hero {
    padding-top: 54px;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .hero-card {
    min-height: 425px;
    padding: 28px;
  }

  .mini-flow {
    grid-template-columns: 1fr;
  }

  .mini-flow span {
    padding: 7px;
  }

  .legal-toc {
    columns: 1;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table th {
    padding-bottom: 2px;
    border-bottom: 0;
  }

  .data-table td {
    padding-top: 2px;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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