/* Base */
:root {
  --color-text: #262626;
  --color-blue: #0066cc;
  --color-light-blue: #2aaff8;
  --color-pink: #e90b83;
  --color-section: #edf9ff;
  --color-border: #ccc;
  --space-unit: 6px;
  --content-width: 1200px;
  --card-shadow: 0 3px 9px rgb(0 0 0 / 15%);
}
* { box-sizing: border-box; }
html { font-size: 62.5%; font-family: "Inter", "Noto Sans JP", sans-serif; font-feature-settings: "palt"; color: var(--color-text); background: #fff; }
body { min-width: var(--content-width); margin: 0; font-size: 1.6rem; line-height: 1.7; }
/* 縮小時も文字だけを自動拡大せず、1200pxのPCレイアウトの比率を保つ。 */
html[data-display-mode="tablet-fit"] { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
h1, h2, h3, h4, strong { font-weight: 700; }
h1, h2, h3 { line-height: 1.5; }
ul, ol { padding: 0; margin: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-blue); text-decoration: none; }
a:focus-visible { outline: 3px solid var(--color-pink); outline-offset: 5px; }
mark { color: var(--color-pink); background: linear-gradient(transparent 75%, #ffff45 75%); }
svg { display: block; }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.sp-only { display: none; }

/* Layout */
.container, .header-inner { width: var(--content-width); margin-inline: auto; padding: 0 36px; }
.section { padding-block: 90px; }
.section-blue { background: var(--color-section); }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.three-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

/* Shared card surface */
.card { background: #fff; border-radius: 12px; box-shadow: var(--card-shadow); padding: 36px 48px; }

/* Header and navigation */
.site-header { background: #fff; border-bottom: 1px solid var(--color-border); position: relative; z-index: 30; }
.header-inner { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.brand { display: block; flex-shrink: 0; width: 168px; }
.brand > img { transform: translateY(2px); }
.header-tagline { margin-right: auto; font-size: 1.4rem; flex-shrink: 0; }
.desktop-nav { display: flex; align-items: center; gap: 30px; line-height: 1.3; }
.desktop-nav a, .nav-label { color: #111; white-space: nowrap; }
.desktop-nav .header-consult { color: #fff; }
.desktop-nav a:not(.header-consult) { transition: color 150ms ease; }
.consult-label { display: inline-block; color: #fff; background: var(--color-pink); border-radius: 999px; font-weight: 700; text-align: center; }
.header-consult { padding: .5em 1em; white-space: nowrap; }
.menu-indicator, .mobile-nav, .menu-backdrop { display: none; }

/* Hero */
.hero { padding-block: 48px 90px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 512px); column-gap: 16px; align-items: start; }
.hero-copy { grid-column: 1; grid-row: 1; }
.hero-kicker { color: #555; font-weight: 700; margin-bottom: 36px; }
.hero-question { font-size: 2.4rem; font-weight: 700; margin-bottom: 12px; }
.hero-question > span { background: linear-gradient(transparent 60%, #ffff80 60%); }
h1 { font-size: 4.8rem; }
h1 > span { color: var(--color-blue); display: block; }
.hero-picture { grid-column: 2; grid-row: 1; width: 100%; }
.hero-description { grid-column: 1 / -1; grid-row: 2; position: relative; width: calc(100% - 84px); margin-top: -55px; padding: 30px 48px; display: flex; align-items: center; gap: 36px; color: #fff; background: #119ee9 url("../images/bg_cva.jpg") center / cover no-repeat; }
.hero-description > p { flex: 1; min-width: 0; }
.hero-consult { flex-shrink: 0; padding: .5em 1.2em; font-size: 2.4rem; }
.hero-consult > span { font-size: smaller; font-weight: 400; }

/* Section headings and cards */
.section-title { font-size: 3.6rem; margin-bottom: 1em; }
.section-eyebrow { display: flex; align-items: center; gap: 18px; color: var(--color-blue); font-size: 1.6rem; letter-spacing: .16em; line-height: 1.5; margin-bottom: 1.5em; }
.section-eyebrow::after { content: ""; width: 72px; height: 1px; background: var(--color-blue); }
.section-description { margin-top: -1.5em; margin-bottom: 2em; }
.challenge-card { display: flex; flex-direction: column; align-items: start; }
.subheading { color: var(--color-blue); font-size: 2.4rem; margin-bottom: .5em; }
.challenge-card p { margin-bottom: 1em; }
.section-link { display: inline-flex; align-items: center; color: #fff; background: var(--color-blue); font-weight: 700; padding: .5em 1.25em .5em 1em; border-radius: 999px; line-height: 1.5; margin-top: auto;  font-size: 1.6rem; }
.icon-arrow { fill: currentColor; width: 1em; height: 1em; flex-shrink: 0; }
.icon-card { border: 1px solid var(--color-border); display: flex; align-items: center; gap: 18px; }
.service-card > img { width: 54px; flex-shrink: 0; }
.capability-card { display: block; }

/* Record: final chart geometry and values */
.record-title-detail { display: block; margin-top: 10px; }
.headline-number { font-size: 6rem; line-height: 1; }
.record-stack { display: grid; gap: 18px; }
.bar-list { display: grid; gap: 3px; }
.bar-list li { display: grid; grid-template-columns: 282px minmax(0, 1fr) 48px; align-items: center; gap: 12px; }
.bar-label { line-height: 1.5; }
.bar-track { height: 18px; border-radius: 999px; background: #e8ebed; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: var(--bar-width); background: #00a5f5; border-radius: inherit; }
.record-number { color: var(--color-pink); font-size: 3.6rem; line-height: 1.2; }
.bar-list .record-number { text-align: right; }
.work-records { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 36px; }
.work-records > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--color-border); padding-bottom: .5em; }
.work-records dd { font-weight: 700; }
.work-records dt { font-weight: 700; line-height: 1.5; }
.pie-card .subheading { text-align: center; }
.pie-chart { width: min(100%, 390px); aspect-ratio: 1; margin: 30px auto 6px; position: relative; background: conic-gradient(var(--pie-segments)); border-radius: 50%; }
.pie-label { position: absolute; background: #fff; border-radius: 9px; box-shadow: var(--card-shadow); padding: .4em .8em; font-size: 1.6rem; text-align: center; line-height: 1.3; white-space: nowrap; }
.pie-label > span { display: inline-flex; align-items: baseline; font-weight: 700; }
.pie-label strong { color: var(--color-pink); font-size: 3.6rem; vertical-align: baseline; margin-left: 0.1em; margin-right: 0.1em; position: relative; top: .05em; }
.pie-label small { font-size: 1.6rem; display: block; }
/* Interの数字と和文の字面を揃える。補正は指定された数字だけに適用する。 */
.product-pie .pie-label > span, .phase-pie .pie-label-4 > span { display: inline-block; }
.baseline-number { line-height: 1; }
.map-total .baseline-number, .price-estimate .baseline-number { vertical-align: -.08em; }
.product-pie .pie-label-1 { left: 58%; top: 61%; }
.product-pie .pie-label-2 { left: -6%; top: 35%; }
.product-pie .pie-label-3 { left: 20%; top: 5%; }
.phase-pie .pie-label-1 { left: 59%; top: 20%; }
.phase-pie .pie-label-2 { left: 39%; top: 67%; }
.phase-pie .pie-label-3 { left: -5%; top: 38%; }
.phase-pie .pie-label-4 { left: 16%; top: 11%; }
.facility-pie { display: grid; align-content: center; justify-items: center; gap: 18px; min-width: 0; }
.facility-pie .pie-chart { margin: 0; }
.facility-pie-caption { width: 100%; font-size: 1.6rem; text-align: center; }
.facility-pie .pie-label > span { display: inline-block; }
.facility-pie .pie-label-1 { left: 57%; top: 45%; }
.facility-pie .pie-label-2 { left: -4%; top: 56%; }
.facility-pie .pie-label-3 { left: -5%; top: 23%; }
.facility-pie .pie-label-4 { left: 24%; top: -2%; }
.map-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.map-figure { position: relative; min-width: 0; }
.map-figure > img { width: 100%; }
.map-figure h4 { position: absolute; left: 0; top: 0; font-size: 1.6rem; max-width: 75%; }
.map-total { white-space: nowrap; display: block; margin-top: .5em; }
.map-total strong { color: var(--color-pink); font-size: 3.6rem; }
.legend { position: absolute; left: 0; top: 21%; line-height: 1.6; }
.legend-title { margin-bottom: .5em; }
.map-legend li { display: flex; align-items: center; gap: .5em; margin-bottom: .25em; }
.map-legend i { display: block; width: 42px; height: 18px; border-radius: 3px; }
.legend-high { background: #0066cc; }
.legend-medium { background: #80b3e6; }
.legend-low { background: #b3d3f0; }
.legend-zero { background: #f0f1f2; border: 1px solid #d6d6d6; }
.legend-supported { background: #00b4c9; }
.map-partner-title, .map-partner-detail { display: block; }
.map-figure-3 .legend { top: 34%; }

/* Price and steps */
.price-heading-note { display: table; max-width: 100%; padding: .15em .6em; margin-bottom: .5em; color: #fff; background: var(--color-pink); font-size: 1.8rem; }
.price-card .price-estimate { margin-top: 1em; }
.price-estimate mark { font-size: 2.4rem; font-weight: 700; white-space: nowrap; margin-left: .25em; }
.price-estimate strong { font-size: 3.6rem; }
.steps-list { --step-overlap: calc(32px / 3); display: flex; width: 1128px; margin-inline: auto; gap: 0; }
.step { flex: 0 0 290px; }
.step + .step { margin-left: calc(-1 * var(--step-overlap)); }
.step-heading { position: relative; height: 60px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 24px; line-height: 1.4; }
.step-shape { position: absolute; inset: 0; width: 290px; height: 60px; z-index: 0; }
.step-shape-sp { display: none; }
.step-1 { color: #0066cc; }
.step-2 { color: #0095dd; }
.step-3 { color: #00a5f5; }
.step-4 { color: #2aaff8; }
.step-heading h3 { font-size: 1.8rem; line-height: 1.4; position: relative; color: #fff; }
.step-number { display: grid; place-items: center; background: #fff; color: #555; border-radius: 50%; width: 30px; height: 30px; font-weight: 700; line-height: 1; flex-shrink: 0; position: relative;  font-size: 2.4rem; }
.step-detail { padding: 24px 12px 0; color: var(--color-text); text-align: center; }
.step-detail > img { width: 80px; margin-inline: auto; }
.step-detail p { margin-top: 1em; }

/* FAQ */
.faq-group { margin-top: 36px; }
.faq-group > .subheading { margin-bottom: -.5em; }
.faq-item { cursor: pointer; border: 1px solid var(--color-border); margin-top: 18px; padding: 24px 36px; }
.faq-question { display: grid; grid-template-columns: 24px minmax(0, 1fr) 24px; gap: 12px; align-items: center; font-size: 1.6rem; line-height: 1.7; }
.faq-letter { color: var(--color-blue); font-size: 2.4rem; font-weight: 700; line-height: 1.5; }
.faq-toggle { width: 24px; height: 24px; position: relative; }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; background: #888; }
.faq-toggle::before { width: 24px; height: 3px; left: 0; top: 10px; }
.faq-toggle::after { width: 3px; height: 24px; left: 10px; top: 0; }
.faq-answer { display: none; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; margin-top: .5em;  align-items: first baseline; }
.faq-answer .faq-letter { color: var(--color-light-blue); align-self: first baseline; transform: translateY(2px); }
.faq-answer p { white-space: pre-line; }

/* Consultation, glossary and footer */
.consult-section { padding-block: 84px; }
.consult-panel { background: #119ee9 url("../images/bg_cva.jpg") center / cover no-repeat; padding: 60px 36px; color: #fff; text-align: center; }
.consult-panel h2 { font-size: 3.6rem; }
.consult-main { width: min(660px, 100%); margin-top: .5em; padding: .5em 1em; border: 2px solid #fff; font-size: 3.6rem; line-height: 1.4; }
.consult-main small { display: flex; align-items: center; justify-content: center; gap: .4em; font-size: 1.8rem; }
.glossary-section { background: #f5f5f5; }
.glossary-grid { gap: 48px; }
.glossary-list > div, .source-list > li { border-top: 1px solid var(--color-border); padding-block: 1.3em; line-height: 1.75; }
.glossary-list > div:last-child, .source-list > li:last-child { border-bottom: 1px solid var(--color-border); }
.glossary-list dt { font-weight: 700; margin-bottom: .25em; }
.pending-source, .back-to-top { align-items: center; gap: .4em; }
.pending-source { display: flex; color: var(--color-blue); font-weight: 700; margin-top: .25em; }
.back-to-top { display: inline-flex; font-weight: 700; margin-top: 48px; }
.pending-source .icon-arrow, .consult-main .icon-arrow { transform: rotate(-90deg); }
.back-to-top .icon-arrow { transform: rotate(180deg); }
.site-footer { padding-block: 36px 18px; }
.footer-brand { display: flex; align-items: center; gap: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--color-border); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 14px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { display: inline-flex; align-items: center; gap: .4em; color: var(--color-text); font-size: 1.6rem; }
.footer-links .icon-arrow { transform: rotate(-90deg); }
.copyright { font-size: 1.4rem; }
.floating-consult { display: none; position: fixed; z-index: 20; right: 36px; bottom: 36px; }
.floating-consult-label { display: grid; place-content: center; width: 144px; height: 144px; border-radius: 50%; background: var(--color-pink); color: #fff; font-size: 2.4rem; font-weight: 700; text-align: center; line-height: 1.4; box-shadow: var(--card-shadow); }

@media (max-width: 600px) {
  /* SP Layout */
  body { min-width: 375px; }
  .container, .header-inner { width: 100%; padding: 0 12px; }
  .section { padding-block: 48px; }
  .two-columns, .three-columns { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pc-only { display: none; }
  .sp-only { display: initial; }
  .sp-break { display: block; }
  .header-inner { min-height: 54px; gap: 0; }
  .site-header .brand { width: 120px; margin-right: 12px; }
  .header-tagline { flex: 1; min-width: 0; font-size: 1.2rem; margin-top: 1px; }
  .brand { width: 150px; }
  .desktop-nav { display: none; }
  .menu-indicator { display: grid; place-items: center; width: 54px; height: 54px; flex: 0 0 54px; margin-right: -12px; padding: 0; border: 0; background: transparent; position: relative; color: #888; cursor: pointer; }
  .menu-indicator:focus-visible { outline: 3px solid var(--color-pink); outline-offset: -3px; }
  .menu-indicator::before, .menu-indicator::after, .menu-indicator > span { content: ""; position: absolute; left: 18px; height: 2px; width: 18px; background: currentColor; }
  .menu-indicator::before { top: 20px; }
  .menu-indicator > span { top: 26px; }
  .menu-indicator::after { top: 32px; }

  /* SP Hero */
  .hero { padding-block: 24px 48px; }
  .hero-grid { display: flex; flex-direction: column; gap: 0; }
  .hero-kicker { line-height: 1.6; margin-bottom: 24px; }
  .hero-question { font-size: 1.8rem; }
  h1 { font-size: 3rem; }
  .hero-picture { width: calc(100% + 24px); max-width: none; margin: 24px -12px 0; }
  .hero-description { display: block; width: 100%; margin-top: -30px; padding: 24px; background-image: url("../images/bg_cva_sp.jpg"); }
  .hero-consult { display: block; font-size: 1.8rem; margin-top: 1em; box-shadow: var(--card-shadow); }

  /* SP Components */
  .section-title { font-size: 2.4rem; }
  .section-eyebrow { font-size: 1.2rem; gap: 12px; }
  .card { padding: 24px; }
  .subheading { font-size: 1.8rem; }

  .icon-card { gap: 24px; }
  .service-card > img { width: 48px; }

  .section-description { margin-top: -.5em; margin-bottom: 1.5em; }

  /* SP Records */
  .record-title-detail { margin-top: 4px; line-height: 1.8; }
  .record-stack { gap: 12px; }
  .headline-number { font-size: 4rem; }
  .bar-list { gap: 6px; }
  .bar-list li { grid-template-columns: minmax(0, 1fr) 48px; gap: 0 12px; }
  .bar-label { grid-column: 1 / -1; }
  .record-number { font-size: 3rem; line-height: 1;}
  .work-records { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .work-records > div { padding-block: .8em; }
  .pie-chart { width: 100%; margin-top: 18px; margin-bottom: 24px; }
  .pie-label { padding: .5em; border-radius: 6px; }
  .phase-pie .pie-label-4 { left: 11%; }
  .pie-label strong { font-size: 3rem; }
  .product-pie .pie-label-1 { left: 56%; }
  .phase-pie .pie-label-1 { left: 57%; }
  .facility-pie { display: block; }
  .facility-pie-caption { margin-top: 1em; }
  .facility-pie .pie-chart { margin-top: 18px; }
  .facility-pie .pie-label-1 { left: 54%; }
  .facility-pie .pie-label-3 { left: -4%; top: 21%; }
  .facility-pie .pie-label-4 { top: -4%; }
  .map-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .map-grid > .map-figure + .map-figure { margin-top: 30px; }
  .map-figure h4 { max-width: 80%; }
  .map-total strong { font-size: 3rem; }
  .legend { font-size: 1.2rem; }
  .map-legend i { width: 36px; height: 15px; }
  .map-figure-3 .legend { left: auto; right: 0; top: auto; bottom: 0; }
  .price-heading-note { font-size: 1.4rem; }

  /* SP Steps */
  .steps-list { flex-direction: column; width: 100%; gap: 0; }
  .step { position: relative; flex: 0 0 170px; height: 170px; padding: 18px 0 0 84px; }
  .step + .step { margin-left: 0; margin-top: -18px; }
  .step-heading { position: static; display: block; height: auto; padding: 0; }
  .step-shape-pc { display: none; }
  .step-shape-sp { display: block; width: 60px; height: 170px; left: 0; }
  .step-number { position: absolute; left: 21px; top: 76px; width: 18px; height: 18px; font-size: 1.8rem; }
  .step-heading h3 { color: var(--color-blue); }
  .step-detail { position: relative; display: flex; align-items: center; gap: 18px; padding: 12px 0 0; text-align: left; }
  .step-detail > img { margin: 0; flex-shrink: 0; }
  .step-detail p { margin: 0; }

  /* SP FAQ */
  .faq-group { margin-top: 30px; }
  .faq-item { margin-top: 12px; padding: 24px 18px; }
  .faq-question { grid-template-columns: 18px minmax(0, 1fr) 18px; gap: 12px; }
  .faq-toggle { width: 18px; height: 18px; }
  .faq-toggle::before { width: 18px; height: 2px; top: 8px; }
  .faq-toggle::after { width: 2px; height: 18px; left: 8px; }
  .faq-answer { grid-template-columns: 18px minmax(0, 1fr); }
  .faq-answer .faq-letter { font-size: 2.2rem; }

  /* SP Consultation and footer */
  .consult-section { padding-block: 48px; }
  .consult-panel { padding: 30px 18px; background-image: url("../images/bg_cva_sp.jpg"); }
  .consult-panel h2 { font-size: 2.2rem; }
  .consult-main { font-size: 2.4rem; }
  .consult-main small { font-size: 1.6rem; }
  .glossary-grid { gap: 36px; }
  .back-to-top { margin-top: 30px; }
  .pending-source { margin-top: 0;}

  .pending-source, .back-to-top { padding: .5em 0; }
  .site-footer { padding-block: 24px 12px; }
  .footer-brand { gap: 18px; justify-content: space-between; padding-bottom: 18px; }
  .footer-brand .brand { width: 120px; }
  .footer-brand p { font-size: 1.4rem; }
  .footer-bottom { display: block; margin-top: 0; }
  .footer-links { gap: 18px; }
  .footer-links a { min-height: 44px; padding-block: .5em; font-size: 1.4rem; }
  .copyright { font-size: 1.2rem; }

  /* SP CTA and navigation */
  .floating-consult { left: 0; right: 0; bottom: 0; padding: 12px; background: #119ee9 url("../images/bg_cva_sp.jpg") center / cover no-repeat; }
  .floating-consult-label { width: 100%; height: auto; padding: .7em .5em; border: 1px solid #fff; border-radius: 999px; box-shadow: none; font-size: 1.8rem; }
  .mobile-nav a, .mobile-nav .nav-label { color: var(--color-text); display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 0 0 0 24px; font-size: 1.8rem; border-bottom: 1px solid var(--color-border); gap: 12px; }
  .nav-arrow-area { display: grid; place-items: center; width: 54px; height: 54px; flex: 0 0 54px; }
  .mobile-nav .icon-arrow { width: 18px; height: 18px; }
}

/* 最小SP幅でもロゴ横の説明とMV見出しを収める */
@media (max-width: 389px) {
  .site-header .brand { width: 108px; margin-right: 8px; }
  .hero h1 { font-size: 2.9rem; }
}

/* UI states: responsive mode is owned by viewport.js */
:root { --ui-duration: 500ms; --faq-icon-duration: 200ms; }
[hidden] { display: none; }
.header-spacer { height: 0; }
section[id], #record-area { scroll-margin-top: var(--header-height, 73px); }
.site-header.is-fixed { position: fixed; top: 0; left: 0; width: 100%; min-width: 1200px; transform: translateY(-100%); transition: transform var(--ui-duration) ease, visibility 0s var(--ui-duration); visibility: hidden; }
.site-header.is-fixed.is-visible { transform: translateY(0); visibility: visible; transition-delay: 0s; }
.faq-question { width: 100%; padding: 0; border: 0; background: none; color: inherit; font-family: inherit; font-weight: inherit; text-align: left; cursor: pointer; }
.faq-question:focus-visible { outline: 3px solid var(--color-pink); outline-offset: 6px; }
.faq-answer:not([hidden]) { display: grid; overflow: hidden; }
.faq-toggle::before, .faq-toggle::after { transition: transform var(--faq-icon-duration) ease; }
.faq-toggle::after { width: 24px; height: 3px; left: 0; top: 10px; transform: rotate(-90deg); }
.faq-question[aria-expanded="true"] .faq-toggle::before,
.faq-question[aria-expanded="true"] .faq-toggle::after { transform: rotate(-180deg); }
.consult-label, .floating-consult-label, .section-link { transition: background-color 300ms ease; }
@media (hover: hover) {
  .desktop-nav a:not(.header-consult):hover { color: var(--color-blue); }
  .consult-label:hover, .floating-consult-label:hover { background-color: #ff1e92; }
  .section-link:hover { background-color: var(--color-light-blue); }
  .pending-source:hover, .back-to-top:hover, .footer-links a:hover { text-decoration: underline; }
}
.floating-consult { display: block; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity 300ms ease, visibility 0s 300ms; }
.floating-consult.is-visible { visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s; }
body.is-scroll-locked { position: fixed; width: 100%; overflow: hidden; }

@media (min-width: 601px) and (hover: hover) {
  .faq-item, .consult-panel { transition: box-shadow 150ms ease, transform 150ms ease; }
  .floating-consult-label { transition: background-color 300ms ease, box-shadow 150ms ease, transform 150ms ease; }
  .faq-item:hover, .consult-panel:hover, .floating-consult-label:hover { box-shadow: 0 6px 12px rgb(0 0 0 / 20%); transform: translateY(-2px); }
}

@media (max-width: 600px) {
  .site-header.is-fixed { min-width: 375px; }
  .mobile-nav { display: block; position: fixed; top: var(--header-height, 55px); left: 0; right: 0; min-width: 375px; z-index: 25; background: #f0f6f8; overflow: clip; touch-action: none; visibility: hidden; transform: translateY(calc(-100% - var(--header-height, 55px))); transition: transform var(--ui-duration) ease, visibility 0s var(--ui-duration); }
  .is-menu-open .mobile-nav { visibility: visible; transform: translateY(0); transition-delay: 0s; }
  .menu-backdrop { display: block; position: fixed; inset: var(--header-height, 55px) 0 0; z-index: 24; background: rgb(0 0 0 / 60%); opacity: 0; visibility: hidden; transition: opacity var(--ui-duration) ease, visibility var(--ui-duration); }
  .is-menu-open .menu-backdrop { opacity: 1; visibility: visible; }
  .menu-indicator::before, .menu-indicator::after, .menu-indicator > span { transition: transform 300ms ease, opacity 200ms ease; }
  .is-menu-open .menu-indicator > span { opacity: 0; }
  .is-menu-open .menu-indicator::before { transform: translateY(6px) rotate(-45deg); }
  .is-menu-open .menu-indicator::after { transform: translateY(-6px) rotate(45deg); }
  .faq-toggle::after { width: 18px; height: 2px; top: 8px; left: 0; }
  .floating-consult { min-width: 375px; opacity: 1; transform: translateY(100%); transition: transform var(--ui-duration) ease, visibility 0s var(--ui-duration); }
  .floating-consult.is-visible { transform: translateY(0); transition-delay: 0s; }
  .is-menu-open .floating-consult { pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --ui-duration: 0ms; --faq-icon-duration: 0ms; }
  .desktop-nav a:not(.header-consult), .consult-label, .floating-consult-label, .section-link, .faq-item, .consult-panel, .floating-consult, .menu-indicator::before, .menu-indicator::after, .menu-indicator > span { transition: none; }
}

/* Stage 5: initial presentation is enabled only by the head bootstrap. */
[data-motion-status] [data-motion-reveal]:not([data-motion-state="done"]) { opacity: 0; pointer-events: none; }
[data-motion-status] [data-motion-reveal="fade"]:not([data-motion-state="done"]) { translate: 0 var(--motion-distance, 20px); }
[data-motion-status] .price-heading-note[data-motion-reveal="fade"]:not([data-motion-state="done"]) { translate: 0 calc(-1 * var(--motion-distance, 20px)); }
[data-motion-status] [data-motion-reveal="heading"]:not([data-motion-state="done"]) { position: relative; top: var(--motion-distance, 20px); }
/* 各行の背景だけを描画し、文字と行の寸法は変えない。 */
[data-motion-status] [data-motion-marker]:not([data-motion-state="done"]) {
  background-image: linear-gradient(to right, var(--marker-color, #ffff45) var(--marker-progress, 0%), transparent var(--marker-progress, 0%));
  background-repeat: no-repeat; background-size: 100% var(--marker-height, 25%); background-position: left bottom;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
[data-motion-status] .hero-question > [data-motion-marker]:not([data-motion-state="done"]) { --marker-color: #ffff80; --marker-height: 40%; }
[data-motion-status] [data-motion-line]:not([data-motion-state="done"])::after { transform: scaleX(var(--line-progress, 0)); transform-origin: left; }
[data-motion-status] [data-motion-bar]:not([data-motion-state="done"]) { transform: scaleX(var(--bar-progress, 0)); transform-origin: left; }
[data-motion-status] [data-motion-count]:not([data-count-ready]):not([data-motion-state="done"]) { visibility: hidden; }
[data-motion-status] [data-motion-letters]:not([data-letters-ready]):not([data-motion-state="done"]) { visibility: hidden; }
.motion-count { position: relative; }
.count-final { opacity: 0; }
.count-live { position: absolute; inset: 0; text-align: inherit; white-space: pre; }
.work-records .count-live { text-align: right; }
.hero-character { opacity: 0; }
h1 > .hero-character { display: inline; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  [data-motion-status] [data-motion-reveal]:not([data-motion-state="done"]) { opacity: 1; translate: none; top: auto; pointer-events: auto; }
  [data-motion-status] [data-motion-marker]:not([data-motion-state="done"]) { --marker-progress: 100%; }
  [data-motion-status] [data-motion-line]::after, [data-motion-status] [data-motion-bar] { transform: none; }
  [data-motion-status] [data-motion-count], [data-motion-status] [data-motion-letters] { visibility: visible; }
  .hero-character, .count-final { opacity: 1; }
  .count-live { display: none; }
}
