:root {
  color-scheme: light dark;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eaf0f7;
  --ink: #101a2b;
  --muted: #536176;
  --line: #cbd5e2;
  --accent: #1d4f91;
  --accent-strong: #153b70;
  --on-accent: #ffffff;
  --danger: #9d2b3e;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(30, 61, 103, .10);
  --shell: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1420;
    --surface: #141e2d;
    --surface-2: #1b293a;
    --ink: #eef4fb;
    --muted: #aebdd0;
    --line: #34465d;
    --accent: #76a9ee;
    --accent-strong: #a8c9f5;
    --on-accent: #0c1c30;
    --danger: #ff9bae;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 900px); }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 20; background: var(--ink); color: var(--bg); padding: 10px 16px; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; line-height: 1.1; }
.brand-mark { width: 42px; height: 42px; display: block; flex: 0 0 auto; background: url("marikulu-mark.png") center / contain no-repeat; font-size: 0; }
.brand strong { display: block; font-size: 16px; letter-spacing: .08em; }
.brand small { display: block; color: var(--muted); font-size: 9px; letter-spacing: .16em; margin-top: 4px; }
.site-nav { display: flex; align-items: center; gap: 28px; white-space: nowrap; }
.site-nav a { font-size: 14px; text-decoration: none; font-weight: 700; }
.site-nav a:hover { color: var(--accent); }
.site-nav .nav-cta { padding: 10px 18px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.site-nav .nav-cta:hover { background: var(--accent-strong); color: var(--on-accent); }
.menu-button { display: none; color: var(--ink); background: none; border: 0; padding: 8px; }

.hero { min-height: calc(100dvh - 72px); display: grid; align-items: center; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: clamp(28px, 5vw, 76px); padding-block: 54px; }
.hero-copy { position: relative; z-index: 1; }
.hero-label { margin: 0 0 18px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.hero h1 { margin: 0; font-size: clamp(44px, 4.5vw, 64px); line-height: 1.13; letter-spacing: -.045em; }
.hero h1 span { display: block; white-space: nowrap; }
.hero-lead { max-width: 31em; margin: 24px 0 0; color: var(--muted); font-size: clamp(16px, 2vw, 19px); }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 12px 24px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .16s ease, background-color .16s ease; }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--accent); color: var(--on-accent); }
.button-primary:hover { background: var(--accent-strong); }
.text-link { color: var(--ink); font-weight: 800; text-decoration-thickness: 1px; }
.hero-media { margin: 0; position: relative; }
.hero-media img { width: 100%; border-radius: var(--radius); background: #eef3f8; }
.hero-media figcaption { margin-top: 8px; color: var(--muted); font-size: 11px; text-align: right; }

.trust-strip { border-block: 1px solid var(--line); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-grid > div { padding: 24px 30px; }
.trust-grid > div + div { border-left: 1px solid var(--line); }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid strong { font-size: 18px; }
.trust-grid span { color: var(--muted); font-size: 13px; }

.section { padding-block: clamp(84px, 11vw, 148px); }
.section-heading { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 760px; margin-bottom: 56px; }
.section h2 { margin: 0; font-size: clamp(36px, 5vw, 62px); line-height: 1.2; letter-spacing: -.035em; }
.section-heading p, .inspection-copy > p, .assessment-intro > p { max-width: 42em; margin: 0; color: var(--muted); }

.models { background: var(--surface); }
.model-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 14px; }
.model { min-height: 190px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); text-align: left; cursor: pointer; appearance: none; transition: transform .16s ease, border-color .16s ease, background-color .16s ease; }
.model:hover { transform: translateY(-2px); border-color: var(--accent); }
.model:active { transform: translateY(1px); }
.model-featured { grid-row: span 2; min-height: 370px; background: var(--accent); color: var(--on-accent); border-color: transparent; }
.model p { margin: 0; font-size: clamp(20px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.025em; }
.model strong { margin-top: auto; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.2; }
.model span { color: var(--muted); font-size: 13px; }
.model-featured span { color: color-mix(in srgb, var(--on-accent) 75%, transparent); }
.model .price-suffix { margin-left: 6px; font-size: 12px; font-weight: 700; }
.model .model-action { margin-top: 18px; color: var(--accent); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.model-featured .model-action { color: var(--on-accent); }
.model .individual-price { font-size: clamp(24px, 3vw, 36px); }
.note { margin: 22px 0 0; color: var(--muted); font-size: 12px; }

.price-dialog { width: min(calc(100% - 40px), 820px); max-height: min(86dvh, 880px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: 0 20px 56px rgba(13, 35, 68, .22); overflow: hidden; }
.price-dialog::backdrop { background: rgba(8, 18, 32, .64); backdrop-filter: blur(3px); }
.price-dialog-shell { max-height: min(86dvh, 880px); display: flex; flex-direction: column; }
.price-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 28px 30px 22px; border-bottom: 1px solid var(--line); }
.price-dialog-label { margin: 0 0 4px; color: var(--accent); font-size: 12px; font-weight: 800; }
.price-dialog h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.2; letter-spacing: -.03em; }
.price-updated { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.dialog-close { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: var(--bg); color: var(--ink); font-weight: 800; cursor: pointer; }
.dialog-close:hover { border-color: var(--accent); color: var(--accent); }
.price-dialog-body { padding: 26px 30px; overflow-y: auto; overscroll-behavior: contain; }
.price-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.price-group { padding: 20px; border-radius: var(--radius); background: var(--bg); }
.price-capacity { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.price-capacity h3 { margin: 0; font-size: 21px; }
.price-capacity span { color: var(--muted); font-size: 11px; }
.price-rows { display: grid; gap: 7px; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.price-row span { color: var(--muted); font-size: 13px; }
.price-row strong { font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-empty { padding: 28px; border-radius: var(--radius); background: var(--bg); }
.price-empty h3 { margin: 0 0 8px; font-size: 24px; }
.price-empty p { margin: 0; color: var(--muted); }
.price-conditions { margin: 0 30px 24px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface-2); }
.price-conditions strong { font-size: 14px; }
.price-conditions p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.price-dialog-footer { padding: 0 30px 28px; }
.price-dialog-footer .button { width: 100%; }
body.dialog-open { overflow: hidden; }

.inspection-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(34px, 7vw, 92px); }
.inspection-media { margin: 0; }
.inspection-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.inspection-copy > p { margin-top: 24px; }
.check-list { margin: 42px 0 0; }
.check-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.check-list > div:first-child { border-top: 1px solid var(--line); }
.check-list dt { font-weight: 800; }
.check-list dd { margin: 0; color: var(--muted); }

.flow { background: var(--surface-2); }
.flow h2 { margin-bottom: 48px; }
.flow-list { margin: 0; padding: 0; list-style: none; }
.flow-list li { display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.flow-list li:first-child { border-top: 1px solid var(--line); }
.flow-list span { color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }
.flow-list h3 { margin: 0 0 6px; font-size: 21px; }
.flow-list p { margin: 0; color: var(--muted); }

.assessment-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(42px, 7vw, 94px); align-items: start; }
.assessment-intro { position: sticky; top: 112px; }
.assessment-intro > p { margin-top: 20px; }
.safety-note { margin-top: 36px; padding: 20px; border-radius: var(--radius); background: var(--surface-2); }
.safety-note strong { color: var(--danger); }
.safety-note p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.assessment-form { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.form-status { margin-bottom: 22px; padding: 14px 16px; border-radius: 10px; background: var(--surface-2); font-weight: 700; }
.form-status.is-error { color: var(--danger); }
.field-grid { display: grid; gap: 18px; }
.field-grid-two { grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field > span { font-weight: 800; }
.field b { color: var(--danger); font-size: 11px; }
.field small { color: var(--muted); font-size: 12px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); padding: 13px 14px; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 32%, transparent); outline-offset: 0; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 24px; }
.consent input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 3px; accent-color: var(--accent); }
.submit-button { width: 100%; }
.submit-button[disabled] { cursor: wait; opacity: .65; }
.form-footnote { color: var(--muted); font-size: 11px; margin: 14px 0 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.company { border-top: 1px solid var(--line); }
.company-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 72px; }
.company-brand { color: var(--accent); margin: 0 0 14px; font-weight: 800; letter-spacing: .14em; }
.company-details { margin: 0; }
.company-details > div { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.company-details > div:first-child { border-top: 1px solid var(--line); }
.company-details dt { color: var(--muted); }
.company-details dd { margin: 0; font-weight: 700; }

.site-footer { padding-block: 44px; background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px 48px; align-items: start; }
.footer-inner strong { letter-spacing: .1em; }
.footer-inner p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.footer-inner nav { display: flex; gap: 22px; font-size: 13px; }
.footer-inner .copyright { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); }

.legal-page main { min-height: 70dvh; }
.legal-hero { padding: 88px 0 46px; }
.legal-hero h1 { margin: 0; font-size: clamp(38px, 6vw, 66px); line-height: 1.2; letter-spacing: -.035em; }
.legal-content { padding-bottom: 100px; }
.legal-content h2 { margin: 52px 0 16px; font-size: 24px; }
.legal-content p, .legal-content li { color: var(--muted); }
.legal-table { margin: 0; }
.legal-table > div { display: grid; grid-template-columns: 190px 1fr; gap: 26px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.legal-table > div:first-child { border-top: 1px solid var(--line); }
.legal-table dt { color: var(--muted); }
.legal-table dd { margin: 0; font-weight: 700; }

@media (max-width: 900px) {
  .shell, .narrow { width: min(calc(100% - 32px), var(--shell)); }
  .menu-button { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
  .menu-button i, .menu-button i::before { width: 22px; height: 2px; display: block; background: currentColor; content: ""; transition: transform .18s ease; }
  .menu-button i::before { transform: translateY(6px); }
  .menu-button[aria-expanded="true"] i { transform: translateY(3px) rotate(45deg); }
  .menu-button[aria-expanded="true"] i::before { transform: rotate(-90deg); }
  .site-nav { display: none; position: absolute; left: 16px; right: 16px; top: 72px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
  .site-nav.is-open { display: grid; gap: 12px; }
  .site-nav a { padding: 10px 4px; }
  .site-nav .nav-cta { text-align: center; }
  .hero { min-height: auto; }
  .hero-grid, .inspection-grid, .assessment-grid, .company-grid { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 44px 30px; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 3 / 2; object-fit: cover; }
  .hero h1 { font-size: clamp(42px, 12vw, 62px); }
  .model-grid { grid-template-columns: 1fr 1fr; }
  .model-featured { grid-column: 1 / -1; grid-row: auto; min-height: 280px; }
  .inspection-grid { gap: 42px; }
  .assessment-intro { position: static; }
  .company-grid { gap: 40px; }
}

@media (max-width: 620px) {
  .header-inner { min-height: 66px; }
  .brand small { display: none; }
  .menu-button { font-size: 13px; }
  .site-nav { top: 66px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 16px; }
  .text-link { text-align: center; }
  .trust-grid { grid-template-columns: 1fr; padding-block: 4px; }
  .trust-grid > div { padding: 16px 4px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .trust-grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .trust-grid span { text-align: right; }
  .section { padding-block: 76px; }
  .section-heading { margin-bottom: 36px; }
  .model-grid, .field-grid-two { grid-template-columns: 1fr; }
  .model-featured { grid-column: auto; min-height: 230px; }
  .model { min-height: 150px; padding: 22px; }
  .model .model-action { margin-top: 14px; }
  .price-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .price-dialog-shell { max-height: calc(100dvh - 20px); }
  .price-dialog-header { padding: 20px 18px 16px; gap: 12px; }
  .price-dialog-body { padding: 18px; }
  .price-groups { grid-template-columns: 1fr; }
  .price-group { padding: 17px; }
  .price-conditions { margin: 0 18px 18px; }
  .price-dialog-footer { padding: 0 18px 20px; }
  .check-list > div { grid-template-columns: 1fr; gap: 4px; }
  .flow-list li { grid-template-columns: 42px 1fr; gap: 14px; }
  .assessment-form { padding: 22px 18px; }
  .company-details > div, .legal-table > div { grid-template-columns: 1fr; gap: 4px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner nav { flex-direction: column; gap: 8px; }
  .footer-inner .copyright { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@supports not (backdrop-filter: blur(14px)) {
  .site-header { background: var(--bg); }
}
