:root {
  --ink: #252222;
  --muted: #6f6464;
  --line: #eadcdc;
  --soft: #fff7f6;
  --soft-2: #fdebea;
  --red: #d7352a;
  --red-2: #a82019;
  --red-3: #7d1713;
  --white: #fff;
  --max: 1120px;
  --shadow: 0 18px 48px rgba(82, 35, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "BIZ UDPGothic", "BIZ UDP Gothic", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  line-height: 1.75;
}

img {
  max-width: 100%;
}

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

a:focus-visible,
summary:focus-visible {
  outline: 3px solid #1b6fdc;
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.brand-logo {
  width: 118px;
  height: auto;
  display: block;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #3d3434;
  font-size: 14px;
  font-weight: 800;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.mobile-nav-inner {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
  padding: 10px 0 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.mobile-nav a {
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(215, 53, 42, 0.2);
  border-radius: 7px;
  background: var(--soft);
  color: var(--red-2);
  font-size: 12px;
  font-weight: 900;
}

.mobile-nav a[aria-current="page"] {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.button {
  min-height: 48px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--red);
  border-radius: 7px;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.button:hover {
  background: var(--red-2);
  border-color: var(--red-2);
  transform: translateY(-1px);
}

.button.secondary {
  background: var(--white);
  color: var(--red-2);
}

.button.secondary:hover {
  background: var(--soft);
}

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 86% 15%, rgba(244, 183, 177, 0.36), transparent 30%),
    linear-gradient(135deg, #fffafa 0%, #fff4f2 54%, #fff 100%);
}

.hero-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 650px;
  margin: 0 auto;
  padding: 76px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.76fr);
  gap: 52px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--red-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--red);
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.2;
}

.lead {
  max-width: 740px;
  margin: 24px 0 0;
  color: #4b3f3f;
  font-size: 18px;
  line-height: 1.95;
  font-weight: 700;
}

.lead + .lead {
  margin-top: 10px;
}

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

.hero-models {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(215, 53, 42, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.hero-models::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: -1;
  border-radius: 16px;
  background: var(--soft-2);
  transform: rotate(3deg);
}

.hero-models-label {
  margin: 0 0 16px;
  color: var(--red-2);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

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

.hero-model {
  min-height: 88px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

.hero-model span {
  margin-bottom: 4px;
  color: var(--red);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.hero-support {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #2c2828;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.section {
  padding: 88px 0;
}

.section.alt {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.sp-section-head {
  max-width: 820px;
  margin: 0 0 38px;
}

.sp-section-head.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.sp-section-head.center .eyebrow {
  justify-content: center;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.35;
}

.section-copy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.intro-copy {
  max-width: 900px;
  display: grid;
  gap: 14px;
  color: #4f4444;
  font-size: 16px;
  font-weight: 650;
}

.intro-copy p {
  margin: 0;
}

.purpose-grid,
.reason-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.related-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  min-width: 0;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
}

.card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.purpose-card,
.reason-card {
  position: relative;
  padding-top: 54px;
}

.card-number {
  position: absolute;
  top: 20px;
  left: 24px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

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

.model-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(82, 35, 31, 0.05);
}

.model-card-head {
  padding: 24px 24px 20px;
}

.model-label {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.model-card h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.4;
}

.model-summary {
  margin: 12px 0 0;
  color: #5e5050;
  font-size: 15px;
  font-weight: 700;
}

.model-card details {
  border-top: 1px solid var(--line);
}

.model-card summary,
.faq-list summary {
  position: relative;
  padding: 17px 56px 17px 24px;
  cursor: pointer;
  color: var(--red-2);
  font-weight: 900;
  list-style: none;
}

.model-card summary::-webkit-details-marker,
.faq-list summary::-webkit-details-marker {
  display: none;
}

.model-card summary::after,
.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft-2);
  transform: translateY(-50%);
  font-size: 20px;
  line-height: 1;
}

.model-card details[open] summary::after,
.faq-list details[open] summary::after {
  content: "−";
}

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

.model-detail h4,
.support-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.compact-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}

.compact-list li {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: #5b4848;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.diagram {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.diagram-label {
  margin: 0 0 15px;
  color: var(--red-2);
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.diagram-models,
.diagram-foundation {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.diagram-models span,
.diagram-foundation span {
  min-width: 0;
  padding: 12px 8px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
}

.diagram-models span {
  border: 1px solid rgba(215, 53, 42, 0.28);
  background: var(--soft);
  color: var(--red-2);
}

.diagram-arrow {
  width: 2px;
  height: 38px;
  margin: 13px auto;
  position: relative;
  background: var(--red);
}

.diagram-arrow::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: -5px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(45deg);
}

.diagram-foundation {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.diagram-foundation span {
  background: #2c2828;
  color: #fff;
}

.diagram-conclusion {
  margin: 24px 0 0;
  color: var(--red-2);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  line-height: 1.5;
  text-align: center;
}

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

.support-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: 12px;
  background: var(--white);
}

.support-card ul {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 30px;
  color: #5c4d4d;
  font-size: 13px;
  font-weight: 700;
}

.support-card li {
  margin-bottom: 7px;
  break-inside: avoid;
}

.legal-note,
.medical-note {
  margin: 24px 0 0;
  padding: 18px 20px;
  border-left: 4px solid var(--red);
  border-radius: 8px;
  background: #fffafa;
  color: #594a4a;
  font-size: 13px;
  font-weight: 700;
}

.cta-band {
  padding: 68px 0;
  background: var(--red);
  color: #fff;
}

.cta-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.35;
}

.cta-band p {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.cta-band .button {
  background: #fff;
  border-color: #fff;
  color: var(--red-2);
}

.reason-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.flow-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.flow-card::before {
  content: attr(data-step);
  display: inline-block;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.flow-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.flow-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.dental-box {
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 38px;
  border-radius: 14px;
  background: #2c2828;
  color: #fff;
}

.dental-box h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.4;
}

.dental-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.dental-box p + p {
  margin-top: 12px;
}

.dental-box .medical-note {
  padding: 16px 18px;
  border-left-color: #f06a61;
  background: #fffafa;
  color: #4f4141;
  font-size: 13px;
}

.related-card {
  display: flex;
  flex-direction: column;
}

.related-card .text-link {
  margin-top: auto;
  padding-top: 18px;
  color: var(--red-2);
  font-size: 14px;
  font-weight: 900;
}

.faq-list {
  max-width: 900px;
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  overflow: hidden;
}

.faq-list summary {
  color: var(--ink);
  font-size: 15px;
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.faq-answer p {
  margin: 0;
}

.contact {
  padding: 74px 0;
  background: var(--red);
  color: var(--white);
}

.contact-wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.contact-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.contact h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.35;
}

.contact p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.contact .button {
  background: #fff;
  border-color: #fff;
  color: var(--red-2);
}

.promise-box {
  padding: 24px 28px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

.promise-box h3 {
  margin: 0 0 12px;
  color: var(--red-2);
  font-size: 18px;
}

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

.promise-list li {
  position: relative;
  padding: 12px 12px 12px 34px;
  border-radius: 8px;
  background: var(--soft);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.55;
}

.promise-list li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 13px;
  width: 10px;
  height: 10px;
  border: 3px solid var(--red);
  border-radius: 50%;
}

footer {
  padding: 28px 0;
  background: #1f1d1d;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.language-switch {
  position: fixed;
  top: 12px;
  right: 14px;
  z-index: 99999;
  display: inline-flex;
  padding: 4px;
  border: 1px solid rgba(37, 34, 34, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.language-switch a,
.language-switch span {
  min-width: 42px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #4f4747;
  font-size: 12px;
  font-weight: 900;
}

.language-switch .is-current {
  background: #252222;
  color: #fff;
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .hero-inner,
  .cta-inner,
  .contact-main,
  .dental-box {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .purpose-grid,
  .reason-grid,
  .related-grid,
  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diagram-models {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .diagram-foundation {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .promise-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 126px;
  }

  .header-inner,
  .hero-inner,
  .container,
  .cta-inner,
  .contact-wrap,
  .footer-inner {
    width: min(100% - 28px, var(--max));
  }

  .brand-logo {
    width: 92px;
  }

  .brand span {
    font-size: 13px;
  }

  .brand small {
    font-size: 9px;
  }

  .hero-inner {
    padding: 52px 0 58px;
    gap: 34px;
  }

  h1 {
    font-size: 34px;
  }

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

  .hero-actions,
  .hero-actions .button,
  .button {
    width: 100%;
  }

  .hero-models {
    padding: 18px;
  }

  .hero-model {
    min-height: 78px;
    padding: 12px 9px;
    font-size: 12px;
  }

  .section {
    padding: 62px 0;
  }

  .purpose-grid,
  .reason-grid,
  .related-grid,
  .model-grid,
  .support-grid,
  .flow-grid,
  .model-detail {
    grid-template-columns: 1fr;
  }

  .card,
  .model-card-head,
  .support-card,
  .flow-card {
    padding: 20px;
  }

  .model-card summary,
  .faq-list summary {
    padding-left: 20px;
  }

  .model-detail {
    padding: 2px 20px 20px;
  }

  .support-card ul {
    columns: 1;
  }

  .diagram {
    padding: 20px 14px;
  }

  .diagram-models,
  .diagram-foundation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diagram-models span,
  .diagram-foundation span {
    padding: 10px 6px;
    font-size: 11px;
  }

  .cta-band,
  .contact {
    padding: 56px 0;
  }

  .dental-box {
    padding: 24px 20px;
    gap: 22px;
  }

  .promise-box {
    padding: 20px;
  }

  .language-switch {
    top: 8px;
    right: 8px;
    padding: 3px;
  }

  .language-switch a,
  .language-switch span {
    min-width: 36px;
    height: 30px;
    font-size: 11px;
  }
}

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

  .button {
    transition: none;
  }
}
