:root {
  --background: #ffffff;
  --background-soft: #f5f7fa;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #1d4ed8;
  --button: #1d4ed8;
  --button-text: #ffffff;
  --border: #e5e7eb;
  --radius: 12px;
  --content-width: 960px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--background); color: var(--text); font-family: -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
a { color: var(--accent); text-underline-offset: 4px; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 700; }
h2 { font-size: clamp(25px, 3.2vw, 34px); line-height: 1.5; letter-spacing: -.025em; text-align: center; margin-bottom: 36px; }
h3 { font-size: 19px; line-height: 1.65; margin: 12px 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.container { width: min(calc(100% - 48px), var(--content-width)); margin-inline: auto; }
.skip-link { position: absolute; top: 8px; left: 16px; transform: translateY(-160%); z-index: 2; padding: 8px 16px; background: var(--background); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--border); }
.header-inner { min-height: 88px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 20px; font-weight: 750; white-space: nowrap; text-decoration: none; }
.brand-mark { display: grid; place-items: center; background: var(--accent); color: var(--button-text); width: 32px; height: 32px; border-radius: 9px; font-size: 20px; line-height: 1; }
nav { display: flex; justify-content: center; gap: 24px; margin-left: auto; }
nav a { color: var(--text); text-decoration: none; font-size: 14px; }
nav a:hover { color: var(--accent); text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 12px 28px; border: 1px solid transparent; border-radius: 9px; background: var(--button); color: var(--button-text); font-weight: 700; text-align: center; text-decoration: none; line-height: 1.6; }
a.button:hover { background: #1e40af; }
.button-small { min-height: 48px; padding: 10px 18px; font-size: 14px; white-space: nowrap; }
.button-disabled { background: var(--border); color: #4b5563; cursor: not-allowed; opacity: 1; }
.hero { padding: 64px 0 56px; text-align: center; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--accent); margin-bottom: 12px; text-align: center; }
h1 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.5; letter-spacing: -.04em; }
h1 span { display: inline-block; }
h1 .headline-ending { color: var(--accent); }
.hero-description { margin: 22px auto 0; max-width: 720px; font-size: 17px; line-height: 1.9; }
.hero-action { margin-top: 28px; }
.note, figcaption { color: var(--muted); font-size: 13px; line-height: 1.8; }
.hero-action .note { margin-top: 10px; }
.app-preview img { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 40px rgb(31 41 55 / 9%); }
.app-preview figcaption { margin-top: 14px; text-align: center; }
.hero-preview { max-width: 800px; margin: 44px auto 0; }
.section { padding: 72px 0; }
.section-soft { background: var(--background-soft); }
.pain-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pain-grid li { position: relative; padding: 22px 24px 22px 48px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--background); }
.pain-grid li::before { content: "?"; position: absolute; left: 20px; top: 22px; color: var(--accent); font-weight: 700; }
.pain-grid li:last-child { grid-column: 1 / -1; }
.section-summary { text-align: center; font-weight: 700; font-size: 18px; margin-top: 30px; }
.accent { color: var(--accent); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-card { padding: 26px 24px; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 3px 12px rgb(31 41 55 / 3%); }
.card-number { display: block; font-size: 14px; line-height: 1.3; color: var(--accent); font-weight: 750; letter-spacing: .08em; }
.feature-card p { font-size: 15px; }
.tag { display: inline-block; margin-bottom: 12px; padding: 2px 9px; border: 1px solid var(--border); border-radius: 5px; font-size: 11px; color: var(--accent); background: var(--background-soft); font-weight: 700; }
.feature-note { margin-top: 18px; }
.feature-extra { margin: 30px auto 0; text-align: center; max-width: 700px; }
.queue-preview { max-width: 640px; margin: 36px auto 0; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; gap: 28px; }
.step-label { color: var(--accent); font-size: 13px; letter-spacing: .08em; font-weight: 700; display: inline-block; border-bottom: 2px solid var(--accent); padding-bottom: 8px; margin-bottom: 16px; }
.pricing-card { max-width: 800px; margin-inline: auto; padding: 36px; border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: var(--radius); box-shadow: 0 4px 24px rgb(31 41 55 / 5%); text-align: center; }
.trial-intro { font-weight: 700; font-size: 20px; }
.trial-intro > span { display: block; font-size: 14px; font-weight: 400; margin-top: 4px; }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 28px 0 20px; }
.price-item { padding: 14px 16px; }
.price-item + .price-item { border-left: 1px solid var(--border); }
.price-item > p:first-child { font-size: 14px; font-weight: 700; }
.price { font-size: 44px; font-weight: 750; line-height: 1.5; letter-spacing: -.03em; }
.price span { margin-left: 4px; font-size: 14px; font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.price-intro { color: var(--accent); }
.price-route { text-align: left; font-size: 14px; border-radius: 8px; background: var(--background-soft); padding: 16px 20px; }
.pricing-details { text-align: left; margin: 26px 0 30px; padding-left: 1.25em; }
.pricing-details li + li { margin-top: 10px; }
.pricing-card .button { min-width: 240px; }
.requirements h2 { font-size: 25px; }
.requirements ul { max-width: 800px; padding-left: 1.25em; margin: 0 auto; }
.requirements li + li { margin-top: 16px; }
.faq-list { max-width: 800px; margin-inline: auto; border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { position: relative; cursor: pointer; padding: 23px 48px 23px 0; font-weight: 700; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 8px; top: 20px; font-size: 24px; line-height: 1.5; color: var(--accent); font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 40px 24px 0; }
.final-cta { background: var(--background-soft); text-align: center; border-block: 1px solid var(--border); }
.final-cta h2 { margin-bottom: 28px; }
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.cta-buttons .button { min-width: 220px; }
.site-footer { padding: 36px 0; }
.footer-brand { font-weight: 750; font-size: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; list-style: none; padding: 0; margin: 16px 0 0; font-size: 12px; }
.footer-links span { margin-left: 4px; color: var(--muted); }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.legal-home-link { margin-left: auto; font-size: 14px; }
.legal-main { padding-block: 56px 64px; }
.legal-main .eyebrow { text-align: left; }
.legal-main h1 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.5; letter-spacing: -.025em; }
.draft-notice { margin-block: 28px 36px; padding: 20px 24px; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 8px; background: var(--background-soft); font-size: 14px; }
.disclosure-table { width: 100%; border-collapse: collapse; text-align: left; }
.disclosure-table th, .disclosure-table td { padding: 20px 24px; vertical-align: top; border: 1px solid var(--border); }
.disclosure-table th { width: 25%; background: var(--background-soft); font-weight: 700; }
.pending { display: inline; padding: 2px 4px; background: #fef3c7; color: #78350f; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.pending strong { margin-right: 6px; font-size: 13px; white-space: nowrap; }
.term-section + .term-section { margin-top: 28px; }
.term-section h2 { margin-bottom: 8px; text-align: left; font-size: 21px; letter-spacing: 0; }
.refund-list { padding-left: 1.4em; margin: 0; }
.refund-list li + li { margin-top: 24px; }
.refund-list li::marker { color: var(--accent); }
.legal-return { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 14px; }
.legal-page .site-footer { border-top: 1px solid var(--border); background: var(--background-soft); }

@media (max-width: 760px) {
  .header-inner { gap: 18px; flex-wrap: wrap; padding-block: 16px; }
  .header-inner > .button { margin-left: auto; }
  nav { order: 3; width: 100%; margin-left: 0; gap: 32px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding-top: 44px; }
  .desktop-break { display: none; }
}

@media (max-width: 520px) {
  .legal-page .header-inner { gap: 12px; }
  .legal-home-link { font-size: 12px; }
  .legal-main { padding-block: 36px 48px; }
  .draft-notice { padding: 16px; margin-block: 24px 28px; }
  .disclosure-table, .disclosure-table tbody, .disclosure-table tr, .disclosure-table th, .disclosure-table td { display: block; width: 100%; }
  .disclosure-table tr + tr { margin-top: 16px; }
  .disclosure-table th { padding: 12px 16px; border-bottom: 0; }
  .disclosure-table td { padding: 16px; }
  .term-section h2 { font-size: 19px; }
  .container { width: calc(100% - 40px); }
  .brand { font-size: 18px; gap: 8px; }
  .brand-mark { width: 28px; height: 28px; font-size: 18px; border-radius: 7px; }
  .button-small { font-size: 12px; padding-inline: 12px; }
  nav { gap: 28px; }
  nav a { font-size: 13px; }
  h1 { font-size: 32px; line-height: 1.55; text-align: left; }
  .hero-description { font-size: 16px; text-align: left; margin-top: 20px; }
  .hero .eyebrow { text-align: left; }
  .hero-action .button { width: 100%; padding-inline: 16px; }
  .hero-preview { margin-top: 32px; }
  .hero { padding-bottom: 40px; }
  .section { padding: 48px 0; }
  h2 { margin-bottom: 28px; }
  .pain-grid, .feature-grid, .steps { grid-template-columns: 1fr; gap: 16px; }
  .pain-grid li { padding: 20px 20px 20px 44px; }
  .pain-grid li::before { left: 18px; top: 20px; }
  .section-summary { text-align: left; font-size: 17px; }
  .feature-card { padding: 24px; }
  .feature-extra { text-align: left; }
  .steps { gap: 24px; }
  .step-label { padding-bottom: 4px; margin-bottom: 10px; }
  .pricing-card { padding: 24px 20px; }
  .trial-intro { font-size: 18px; }
  .price-grid { grid-template-columns: 1fr; gap: 10px; }
  .price-item { padding: 12px 0; }
  .price-item + .price-item { border-left: 0; border-top: 1px solid var(--border); padding-top: 20px; }
  .price { font-size: 42px; }
  .price-route { padding: 14px; }
  .pricing-card .button { min-width: 0; width: 100%; }
  .cta-buttons { flex-direction: column; }
  .cta-buttons .button { width: 100%; min-width: 0; }
  .footer-links { display: grid; gap: 12px; }
}

/* Trilingual introduction: keep language choices visible and diagrams uncropped. */
.header-inner { flex-wrap: wrap; padding-block: 16px; gap: 16px 24px; }
.header-inner > nav:not(.lang-switch) { margin-left: auto; }
.lang-switch { order: 4; flex: 0 0 100%; width: 100%; margin: 0; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 8px; white-space: nowrap; }
.lang-switch a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--button-text); font-weight: 700; }
.lang-switch a:hover { border-color: var(--accent); }
.map-preview { margin-top: 28px; }
.map-preview > a { display: block; }
.map-preview img { width: 100%; height: auto; object-fit: contain; }
.map-preview figcaption a { display: inline-block; padding-block: 8px; }
@media (max-width: 760px) {
  .lang-switch { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .lang-switch a { font-size: 13px; padding-inline: 12px; }
}
