:root {
  --ink: #102033;
  --muted: #5e6b7c;
  --line: #dce5ee;
  --paper: #ffffff;
  --soft: #f4f8fb;
  --navy: #0b1f36;
  --teal: #17a8a0;
  --teal-dark: #0d7f79;
  --gold: #d7a84e;
  --shadow: 0 22px 60px rgba(16, 32, 51, .12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fbfdff;
  line-height: 1.75;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.section {
  padding: 92px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 32px;
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(220, 229, 238, .82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: .02em;
}

.brand-logo {
  flex: 0 0 auto;
}

.legacy-logo {
  width: 64px;
  height: 48px;
  background-image: url("assets/rakuyaku-logo.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  border-radius: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #0c5672);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(23, 168, 160, .28);
}

.brand small {
  display: block;
  margin-top: -4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
}

.brand-text {
  display: block;
}

.nowrap {
  white-space: nowrap;
}

.title-chunk,
.term {
  display: inline-block;
  white-space: nowrap;
}

.phrase-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
}

.phrase-list .sep {
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #27384c;
  font-size: 14px;
  font-weight: 700;
}

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

.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: #eef4f8;
  border-radius: 999px;
}

.lang-switch a {
  min-width: 32px;
  padding: 3px 8px;
  text-align: center;
  border-radius: 999px;
}

.lang-switch [aria-current="page"] {
  color: #fff;
  background: var(--navy);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.nav-cta,
.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  box-shadow: 0 14px 28px rgba(23, 168, 160, .24);
}

.button-secondary {
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(16, 32, 51, .08);
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 98px 0 82px;
  background:
    radial-gradient(circle at 80% 16%, rgba(23, 168, 160, .18), transparent 30%),
    linear-gradient(145deg, #f8fbff 0%, #eef6f8 50%, #f8fbff 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: .42;
  background-image:
    linear-gradient(rgba(16, 32, 51, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 32, 51, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, .78fr);
  gap: 64px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(29px, 3vw, 44px);
  line-height: 1.2;
  letter-spacing: -.03em;
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.38;
}

.hero-lead {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(22px, 2.15vw, 30px);
  font-weight: 800;
  line-height: 1.45;
  text-wrap: balance;
}

.hero-text,
.section-lead {
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 20px;
}

.trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.trust-points li {
  padding: 7px 12px;
  color: #284157;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(220, 229, 238, .94);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 24px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: auto 28px -18px 28px;
  height: 34px;
  background: rgba(23, 168, 160, .14);
  filter: blur(18px);
}

.doc-card {
  position: relative;
  padding: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.doc-card::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 74px;
  height: 54px;
  background: repeating-linear-gradient(to bottom, rgba(16, 32, 51, .12), rgba(16, 32, 51, .12) 2px, transparent 2px, transparent 10px);
}

.doc-card span,
.case-grid span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.doc-card strong {
  display: block;
  font-size: 22px;
}

.doc-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.doc-ai {
  transform: translateX(18px);
}

.doc-check {
  border-color: rgba(23, 168, 160, .36);
  box-shadow: inset 4px 0 0 var(--teal);
}

.flow-arrow {
  width: 38px;
  height: 38px;
  margin: -4px auto;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy);
  border-radius: 999px;
  font-weight: 900;
}

.quality-meter {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  padding: 18px;
  color: #395066;
  background: #f6fafb;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
}

.quality-meter i {
  display: block;
  height: 8px;
  overflow: hidden;
  background: #d8e8ed;
  border-radius: 999px;
}

.quality-meter i::before {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: inherit;
}

.logo-strip {
  padding: 34px 0;
  background: var(--navy);
  color: rgba(255, 255, 255, .76);
}

.logo-strip p {
  margin-bottom: 18px;
  color: #fff;
  font-weight: 800;
}

.logo-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.logo-list span {
  display: grid;
  min-height: 58px;
  place-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
}

.logo-strip small {
  display: block;
  margin-top: 12px;
  font-size: 12px;
}

.two-col,
.pricing-grid,
.ai-grid {
  display: grid;
  grid-template-columns: .86fr 1fr;
  gap: 64px;
  align-items: start;
}

.pain-list,
.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pain-list li,
.check-list li {
  position: relative;
  padding: 16px 18px 16px 48px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(16, 32, 51, .05);
}

.pain-list li::before,
.check-list li::before {
  content: "✓";
  position: absolute;
  top: 16px;
  left: 18px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.section-heading {
  width: min(920px, 100%);
  margin-bottom: 36px;
}

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

.service-card,
.case-grid article,
.feature-grid div {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(16, 32, 51, .06);
}

.service-card.featured {
  color: #fff;
  background: linear-gradient(145deg, var(--navy), #123b57);
  border-color: transparent;
  transform: translateY(-12px);
  box-shadow: 0 28px 70px rgba(16, 32, 51, .22);
}

.service-card.featured p,
.service-card.featured .card-number {
  color: rgba(255, 255, 255, .78);
}

.card-number {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.service-card p,
.feature-grid p,
.case-grid p,
.pricing-grid p,
.security p,
.faq p,
.site-footer p {
  color: var(--muted);
}

.service-card a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--teal-dark);
  font-weight: 900;
}

.service-card.featured a {
  color: #6ff1e8;
}

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

.compare-panel {
  display: grid;
  gap: 12px;
}

.compare-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 4px 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.compare-row strong {
  grid-row: span 2;
  font-size: 20px;
}

.compare-row em {
  color: var(--muted);
  font-style: normal;
}

.compare-row.highlight {
  border-color: rgba(23, 168, 160, .42);
  box-shadow: inset 5px 0 0 var(--teal);
}

.quality {
  background:
    linear-gradient(180deg, #fff, #f8fbfc);
}

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

.icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--navy);
  border-radius: 18px;
  font-weight: 900;
}

.case-grid article {
  min-height: 260px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .98)),
    radial-gradient(circle at top right, rgba(23, 168, 160, .18), transparent 40%);
}

.process {
  background: var(--navy);
  color: #fff;
}

.process .eyebrow {
  color: #6ff1e8;
}

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

.timeline li {
  padding: 20px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
}

.timeline span {
  color: #6ff1e8;
  font-weight: 900;
}

.timeline strong {
  display: block;
  margin: 6px 0;
}

.timeline p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  line-height: 1.55;
}

.price-list {
  display: grid;
  gap: 12px;
}

.price-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: baseline;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.price-list strong {
  color: var(--teal-dark);
  font-size: 26px;
}

.price-list small {
  grid-column: 2;
  color: var(--muted);
}

.security {
  background: #f7fafc;
}

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

.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(16, 32, 51, .04);
}

.faq-list summary {
  min-height: 58px;
  padding: 17px 22px;
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  padding: 0 22px 22px;
  margin: 0;
}

.final-cta {
  padding-top: 40px;
}

.cta-box {
  padding: 54px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(111, 241, 232, .18), transparent 32%),
    linear-gradient(135deg, var(--navy), #0c3448);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.cta-box .eyebrow {
  color: #6ff1e8;
}

.cta-box p {
  color: rgba(255, 255, 255, .78);
}

.cta-box .button-secondary {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .22);
}

.business-hours {
  margin-bottom: 0;
  font-size: 14px;
}

.site-footer {
  padding: 58px 0 88px;
  color: rgba(255, 255, 255, .78);
  background: #071421;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
}

.footer-brand {
  color: #fff;
}

.footer-brand .legacy-logo {
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}

.site-footer h3 {
  color: #fff;
  font-size: 15px;
}

.site-footer a:not(.brand) {
  display: block;
  margin: 8px 0;
}

.mobile-sticky {
  display: none;
}

.service-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  background:
    radial-gradient(circle at 86% 12%, rgba(23, 168, 160, .16), transparent 34%),
    linear-gradient(145deg, #f8fbff 0%, #eef6f8 58%, #fbfdff 100%);
}

.service-hero.ai-page {
  background:
    radial-gradient(circle at 82% 10%, rgba(215, 168, 78, .18), transparent 32%),
    linear-gradient(145deg, #f8fbff 0%, #f4f8fb 58%, #fbfdff 100%);
}

.service-hero.sds-page {
  background:
    radial-gradient(circle at 84% 12%, rgba(23, 168, 160, .14), transparent 30%),
    linear-gradient(145deg, #fbfdff 0%, #f1f7f4 56%, #fbfdff 100%);
}

.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .34;
  background-image:
    linear-gradient(rgba(16, 32, 51, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 32, 51, .05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.service-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 48px;
  align-items: center;
}

.service-hero h1 {
  max-width: 850px;
  font-size: clamp(42px, 4.7vw, 64px);
  line-height: 1.15;
  word-break: keep-all;
  overflow-wrap: normal;
}

.service-summary-card {
  padding: 30px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.service-summary-card span,
.level-grid span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.service-summary-card strong {
  display: block;
  margin-bottom: 18px;
  font-size: 24px;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: normal;
}

.service-summary-card strong.phrase-list {
  display: flex;
  margin-bottom: 24px;
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: -.02em;
}

.service-summary-card strong.phrase-list .term {
  color: var(--ink);
  font-weight: 900;
}

.service-summary-card strong.phrase-list .sep {
  color: var(--teal-dark);
  font-weight: 900;
}

.service-summary-card ul,
.service-steps {
  display: grid;
  gap: 11px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.service-summary-card li,
.service-steps li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  font-weight: 700;
}

.service-summary-card li::before,
.service-steps li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.ai-flow-card {
  background:
    radial-gradient(circle at 95% 5%, rgba(215, 168, 78, .24), transparent 36%),
    rgba(255, 255, 255, .84);
}

.molecule-card {
  background:
    radial-gradient(circle at 95% 5%, rgba(23, 168, 160, .2), transparent 36%),
    rgba(255, 255, 255, .84);
}

.service-layout {
  display: grid;
  gap: 28px;
}

.service-card-list,
.check-grid,
.policy-grid,
.level-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card-list article,
.check-grid div,
.policy-grid div,
.level-grid article {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(16, 32, 51, .06);
}

.service-card-list article h3,
.check-grid strong,
.policy-grid strong,
.level-grid h3 {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.42;
}

.service-card-list article p,
.check-grid p,
.policy-grid p,
.level-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

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

.notice-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(16, 32, 51, .06);
}

.notice-card p:first-child {
  margin-top: 0;
}

.notice-card p:last-child {
  margin-bottom: 0;
}

.info-table {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.info-table div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.info-table div:last-child {
  border-bottom: 0;
}

.info-table strong {
  color: var(--teal-dark);
}

.info-table span {
  min-width: 0;
  color: var(--text);
}

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

.service-steps {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 34px rgba(16, 32, 51, .06);
}

.service-steps li {
  padding: 14px 0 14px 46px;
  border-bottom: 1px solid var(--line);
}

.service-steps li:last-child {
  border-bottom: 0;
}

.service-steps li::before {
  display: none;
}

.service-steps span {
  position: absolute;
  left: 0;
  top: 13px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  background: var(--navy);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
}

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

.level-grid article {
  min-height: 260px;
}

.level-grid .featured-level {
  color: #fff;
  background: linear-gradient(145deg, var(--navy), #123b57);
  border-color: transparent;
  box-shadow: 0 24px 62px rgba(16, 32, 51, .2);
}

.level-grid .featured-level h3,
.level-grid .featured-level span {
  color: #fff;
}

.level-grid .featured-level p {
  color: rgba(255, 255, 255, .76);
}

.compact-cases article {
  min-height: 220px;
}

.two-card-list {
  grid-template-columns: repeat(2, 1fr);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 44px;
  align-items: start;
}

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

.inquiry-card {
  display: grid;
  gap: 12px;
  min-height: 230px;
  padding: 28px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 14px 40px rgba(16, 32, 51, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}

.inquiry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(16, 32, 51, .12);
}

.inquiry-card span {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
}

.inquiry-card strong {
  font-size: 24px;
  line-height: 1.32;
}

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

.inquiry-card.featured {
  color: #fff;
  background: linear-gradient(145deg, var(--navy), #123b57);
  border-color: transparent;
}

.inquiry-card.featured span {
  color: #6ff1e8;
}

.inquiry-card.featured p {
  color: rgba(255, 255, 255, .72);
}

.quote-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 14px 40px rgba(16, 32, 51, .08);
}

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

.quote-form label,
.quote-form fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
}

.quote-form textarea {
  resize: vertical;
}

.quote-form fieldset {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.quote-form legend {
  padding: 0 8px;
}

.required {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.4;
  vertical-align: middle;
}

.hp-field {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0 !important;
  margin: -1px !important;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0 !important;
}

.quote-form input[type="file"] {
  padding: 10px;
  background: #fff;
}

.inline-check {
  display: flex !important;
  grid-template-columns: none;
  gap: 10px !important;
  align-items: flex-start;
  color: var(--muted) !important;
  font-weight: 700 !important;
}

.inline-check input {
  width: auto;
  min-height: auto;
  margin-top: 7px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-side {
  display: grid;
  gap: 20px;
  padding: 26px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 26px;
}

.contact-side h3 {
  margin-bottom: 0;
}

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

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

.quote-guides article {
  display: grid;
  gap: 14px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 14px 40px rgba(16, 32, 51, .07);
}

.quote-guides article.featured {
  background:
    radial-gradient(circle at 95% 0%, rgba(215, 168, 78, .2), transparent 34%),
    #fff;
  border-color: rgba(215, 168, 78, .42);
}

.quote-guides span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.quote-guides h3 {
  margin: 0;
}

.quote-guides ul {
  display: grid;
  gap: 10px;
  padding-left: 1.2em;
  margin: 0;
  color: var(--muted);
}

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

.article-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 14px 40px rgba(16, 32, 51, .07);
}

.article-card.featured {
  color: #fff;
  background: linear-gradient(145deg, var(--navy), #123b57);
  border-color: transparent;
}

.article-card span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.article-card.featured span {
  color: #6ff1e8;
}

.article-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.34;
}

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

.article-card.featured p {
  color: rgba(255, 255, 255, .74);
}

.article-card a {
  color: var(--teal-dark);
  font-weight: 900;
}

.article-card.featured a {
  color: #fff;
}

.article-meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 760px);
  gap: 54px;
  align-items: start;
}

.article-toc {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 10px;
  padding: 22px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.article-toc strong {
  color: var(--ink);
}

.article-toc a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.article-body {
  color: var(--text);
  font-size: 18px;
  line-height: 1.9;
}

.article-body h2 {
  margin-top: 46px;
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 40px);
}

.article-body p {
  color: var(--text);
}

.article-body li {
  margin-bottom: 8px;
}

.article-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.article-checks div,
.article-cta {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(16, 32, 51, .06);
}

.article-checks strong {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-dark);
}

.article-checks p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.article-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 42px;
  background:
    radial-gradient(circle at 95% 5%, rgba(23, 168, 160, .12), transparent 34%),
    #fff;
}

.article-cta h2,
.article-cta p {
  flex-basis: 100%;
  margin: 0;
}

.detailed-cases article {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 420px;
}

.detailed-cases ul {
  display: grid;
  gap: 8px;
  padding-left: 1.2em;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.detailed-cases a {
  margin-top: auto;
  color: var(--teal-dark);
  font-weight: 900;
}

.faq-catalog {
  display: grid;
  gap: 46px;
}

.faq-category {
  display: grid;
  gap: 18px;
}

.faq-category h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 2.4vw, 38px);
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 20px;
  }

  .legacy-logo {
    width: 58px;
    height: 44px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > a {
    min-height: 44px;
    padding: 8px 4px;
  }

  .lang-switch {
    margin: 8px 0;
    width: fit-content;
  }

  .nav-cta {
    margin-top: 8px;
  }

  .hero-grid,
  .two-col,
  .pricing-grid,
  .ai-grid,
  .service-hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .card-grid,
  .feature-grid,
  .case-grid,
  .service-card-list,
  .check-grid,
  .policy-grid,
  .inquiry-types,
  .quote-guides,
  .article-card-grid,
  .two-card-list {
    grid-template-columns: 1fr 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .article-toc {
    position: static;
  }

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

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

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 62px 0 58px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 29px;
  }

  .hero-lead {
    font-size: 23px;
  }

  .nowrap {
    white-space: normal;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    padding: 16px;
    border-radius: 24px;
  }

  .doc-ai {
    transform: none;
  }

  .logo-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid,
  .feature-grid,
  .case-grid,
  .service-card-list,
  .check-grid,
  .policy-grid,
  .inquiry-types,
  .quote-guides,
  .article-card-grid,
  .level-grid,
  .two-card-list,
  .timeline,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-hero {
    padding: 58px 0 50px;
  }

  .service-hero h1 {
    font-size: 38px;
  }

  .title-chunk {
    display: inline;
    white-space: normal;
  }

  .service-summary-card {
    padding: 24px;
    border-radius: 24px;
  }

  .service-summary-card strong.phrase-list {
    font-size: 24px;
  }

  .service-card.featured {
    transform: none;
  }

  .compare-row {
    grid-template-columns: 1fr;
  }

  .compare-row strong {
    grid-row: auto;
  }

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

  .info-table div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .inquiry-card,
  .quote-guides article {
    min-height: auto;
    padding: 24px;
  }

  .article-checks {
    grid-template-columns: 1fr;
  }

  .article-body {
    font-size: 16px;
  }

  .price-list small {
    grid-column: auto;
  }

  .cta-box {
    padding: 34px 22px;
    border-radius: 24px;
  }

  .site-footer {
    padding-bottom: 96px;
  }

  .mobile-sticky {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 80;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
  }

  .mobile-sticky a {
    display: grid;
    min-height: 46px;
    place-items: center;
    color: #fff;
    background: var(--teal-dark);
    border-radius: 12px;
    font-weight: 900;
  }

  .mobile-sticky a:last-child {
    background: var(--navy);
  }
}
