/* =========================================================
   tarakte — Laser cut / UV print LP
   ========================================================= */

:root {
  /* Brand: ロゴのグリーン / 白 / 黒 / グリーンの反転色（RGB反転） */
  --green: #53B762;
  --purple: #AC489D;
  --black: #0A0A0A;
  --white: #FFFFFF;

  /* 派生（上記4色の濃淡・透過のみ） */
  --green-hover: #47A456;
  --green-soft: #EAF6EC;
  --purple-soft: #F5EDF3;
  --ink: var(--black);
  --ink-2: #161616;
  --ink-3: #262626;
  --text: var(--black);
  --text-2: #575757;
  --line: #E5E5E5;
  --bg: var(--white);
  --tint: #F4F5F3;

  --accent: var(--green);
  --accent-hover: var(--green-hover);
  --accent-soft: var(--green-soft);
  --uv: var(--purple);
  --uv-soft: var(--purple-soft);
  --ok: var(--green);

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(10, 10, 10, .08);
  --shadow-lg: 0 24px 60px rgba(10, 10, 10, .2);

  --font: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Inter", var(--font);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.75; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.35; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(800px, 100% - 32px); }
.sp { display: none; }
@media (max-width: 640px) { .sp { display: inline; } }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }

.todo { display: inline-block; font-size: .7rem; font-weight: 700; line-height: 1.4; padding: 1px 6px; border-radius: 4px; background: #FFE45C; color: #5B4A00; vertical-align: middle; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: .975rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, transform .15s, box-shadow .2s, border-color .2s; white-space: nowrap; line-height: 1.3; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--green); color: var(--black); box-shadow: 0 8px 20px rgba(83, 183, 98, .35); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn--ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--ghost:hover { background: rgba(255,255,255,.14); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn--ghost-dark { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--line { background: #06C755; color: #fff; }
.btn--sm { padding: 9px 18px; font-size: .875rem; }
.btn--lg { padding: 17px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; height: var(--header-h); z-index: 100; background: rgba(10, 10, 10, .72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255,255,255,.06); color: #fff; transition: background .25s; }
.header.is-scrolled { background: rgba(10, 10, 10, .94); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.logo img { height: 28px; width: auto; }
.logo--footer img { height: 34px; }
.header__nav { display: flex; gap: 24px; margin-left: auto; font-size: .9rem; }
.header__nav a { text-decoration: none; opacity: .8; transition: opacity .2s; }
.header__nav a:hover { opacity: 1; }
.header__menu { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.header__menu span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .2s; }
.header__menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.drawer { position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--ink); padding: 8px 16px 20px; display: flex; flex-direction: column; border-bottom: 1px solid rgba(255,255,255,.08); }
.drawer a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); text-decoration: none; }
.drawer .btn { margin-top: 16px; }

@media (max-width: 900px) {
  .header__nav { display: none; }
  .header__cta { margin-left: auto; }
  .header__menu { display: block; }
}
@media (max-width: 400px) { .header__cta { display: none; } .header__menu { margin-left: auto; } }

/* ---------- Common sections ---------- */
.section { padding: 104px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: #fff; }
.section__head { text-align: center; margin-bottom: 52px; }
.section__title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 900; letter-spacing: -.01em; }
.section__sub { margin-top: 14px; color: var(--text-2); }
.section--dark .section__sub { color: rgba(255,255,255,.7); }
.eyebrow { font-family: var(--font-en); font-weight: 700; font-size: .78rem; letter-spacing: .16em; color: var(--purple); margin-bottom: 10px; }
.eyebrow--light { color: var(--green); }
@media (max-width: 640px) { .section { padding: 72px 0; } .section__head { margin-bottom: 36px; } }

.check { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ok); position: relative; }
.check::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid var(--black); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(1200px 600px at 85% -10%, rgba(172, 72, 157, .35), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(83, 183, 98, .28), transparent 60%), var(--ink); color: #fff; padding: calc(var(--header-h) + 72px) 0 56px; overflow: hidden; }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero .eyebrow { color: var(--green); }
.hero__title { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.18; }
.hero__title em { font-style: normal; background: linear-gradient(90deg, var(--green), var(--green) 40%, var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__place { display: block; font-size: .5em; letter-spacing: 0; color: rgba(255,255,255,.85); margin-bottom: .25em; }
.hero__lead { margin-top: 22px; font-size: 1.05rem; color: rgba(255,255,255,.82); max-width: 34em; }
.hero__lead strong { color: #fff; }
.hero__points { margin-top: 24px; display: grid; gap: 10px; font-weight: 500; }
.hero__points li { display: flex; gap: 10px; align-items: center; }
.hero__points strong { color: var(--green); }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__micro { margin-top: 12px; font-size: .82rem; color: rgba(255,255,255,.6); }

.hero__visual { position: relative; }
.fabsim { position: relative; }
.fabsim__canvas { display: block; width: 100%; aspect-ratio: 520 / 440; }
.fabsim__steps { display: flex; justify-content: center; gap: 6px; margin-top: 14px; counter-reset: none; }
.fabsim__steps li { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .75rem; font-weight: 700; color: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.1); transition: color .3s, background .3s, border-color .3s; }
.fabsim__steps li span { font-family: var(--font-en); font-size: .68rem; opacity: .8; }
.fabsim__steps li.is-active { color: var(--black); background: var(--green); border-color: var(--green); }
.fabsim__steps li[data-step="print"].is-active { color: var(--white); background: var(--purple); border-color: var(--purple); }
.hv-badge { position: absolute; left: -22px; bottom: 34px; transform: rotate(-8deg); width: 112px; height: 112px; border-radius: 50%; background: var(--purple); color: var(--white); z-index: 2; display: grid; place-content: center; text-align: center; box-shadow: 0 16px 40px rgba(172, 72, 157, .5); border: 4px solid var(--ink); }
.hv-badge__num { font-family: var(--font-en); font-weight: 800; font-size: 2.6rem; line-height: 1; }
.hv-badge__num small { font-size: .9rem; font-family: var(--font); }
.hv-badge__txt { font-size: .72rem; font-weight: 700; margin-bottom: 2px; }

.stats { position: relative; margin: 64px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); background: rgba(255,255,255,.03); }
.stats__item { padding: 20px 16px; text-align: center; }
.stats__item + .stats__item { border-left: 1px solid rgba(255,255,255,.1); }
.stats dt { font-size: .78rem; color: rgba(255,255,255,.6); }
.stats dd { margin: 2px 0 0; font-family: var(--font-en); font-weight: 800; font-size: 1.7rem; }
.stats dd small { font-family: var(--font); font-size: .8rem; font-weight: 500; margin-left: 2px; }

@media (max-width: 900px) {
  .hero { padding-top: calc(var(--header-h) + 44px); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; width: 100%; margin-inline: auto; }
  .hv-badge { width: 100px; height: 100px; }
  .hv-badge__num { font-size: 2rem; }
}
@media (max-width: 640px) {
  .hero__actions .btn { width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .stats__item:nth-child(3) { border-left: 0; }
  .stats__item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
  .stats dd { font-size: 1.4rem; }
}

/* ---------- Use cases ---------- */
.usecases { padding: 28px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.usecases__lead { text-align: center; font-size: .85rem; color: var(--text-2); margin-bottom: 14px; }
.usecases__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.usecases__list li { padding: 6px 14px; border-radius: 999px; background: var(--tint); font-size: .875rem; font-weight: 500; }

/* ---------- Pains ---------- */
.pains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pain { background: #fff; border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }
.pain__q { font-weight: 700; font-size: 1.05rem; color: var(--text-2); position: relative; padding-left: 18px; }
.pain__q::before { content: ""; position: absolute; left: 0; top: .35em; bottom: .35em; width: 4px; border-radius: 2px; background: var(--line); }
.pain__a { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.pain__a span { color: var(--green); font-weight: 900; margin-right: 6px; }
.pain__a strong { color: var(--purple); }
.pain__a a { color: var(--purple); font-weight: 700; }
@media (max-width: 760px) { .pains { grid-template-columns: 1fr; } .pain__q br { display: none; } }

/* ---------- Services ---------- */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.service + .service { margin-top: 88px; padding-top: 88px; border-top: 1px solid var(--line); }
.service--reverse .service__media { order: 2; }
.service__media { margin: 0; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--tint); }
.service__media img { width: 100%; height: 100%; object-fit: cover; }
.service__kicker { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9rem; margin-bottom: 12px; }
.service__kicker span { font-family: var(--font-en); font-weight: 800; font-size: .8rem; padding: 2px 8px; border-radius: 6px; background: var(--green); color: var(--black); }
#panel-uv .service__kicker span { background: var(--purple); color: var(--white); }
.service__title { font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 900; }
.service__desc { margin-top: 14px; color: var(--text-2); }
.spec { margin: 26px 0 28px; display: grid; gap: 18px; }
.spec__label { font-size: .8rem; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }
.spec__note { margin-top: 10px; font-size: .82rem; color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: 8px; background: var(--accent-soft); color: var(--black); font-size: .875rem; font-weight: 500; }
#panel-uv .chips li { background: var(--uv-soft); color: var(--purple); }
.chips--ng li { background: var(--tint); color: var(--text-2); text-decoration: line-through; text-decoration-color: rgba(10, 10, 10, .35); }
.chips--outline li, #panel-uv .chips--outline li { background: #fff; border: 1px solid var(--line); color: var(--text); }
.combo { margin-top: 48px; display: flex; gap: 20px; align-items: center; padding: 24px 28px; border-radius: var(--radius); background: linear-gradient(100deg, var(--accent-soft), var(--uv-soft)); }
.combo__icon { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; font-weight: 900; color: var(--white); background: var(--purple); }
.combo__title { font-weight: 900; }
.combo__desc { font-size: .925rem; color: var(--text-2); }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; gap: 28px; } .service--reverse .service__media { order: 0; } .service + .service { margin-top: 56px; padding-top: 56px; } .service .btn { width: 100%; } }

/* ---------- Reasons ---------- */
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.reason { padding: 30px 24px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid rgba(255,255,255,.07); }
.reason__num { font-family: var(--font-en); font-weight: 800; font-size: 2rem; background: linear-gradient(90deg, var(--green), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reason__title { margin-top: 10px; font-size: 1.1rem; font-weight: 700; }
.reason__desc { margin-top: 10px; font-size: .9rem; color: rgba(255,255,255,.7); }
@media (max-width: 1000px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .reasons { grid-template-columns: 1fr; } }

/* ---------- Simulator ---------- */
.sim { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.sim__form { background: #fff; border-radius: 20px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 26px; }
.sim__group { border: 0; padding: 0; margin: 0; min-width: 0; }
.sim__group legend { font-weight: 700; margin-bottom: 12px; padding: 0; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.seg--3 { grid-template-columns: repeat(3, 1fr); }
.seg--sizes { grid-template-columns: repeat(3, 1fr); }
.seg--opts { grid-template-columns: repeat(2, 1fr); }
.sim__uvopts { margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--purple-soft); }
.sim__uvlabel { font-size: .85rem; font-weight: 700; margin-bottom: 8px; color: var(--purple); }
.sim__uvlabel small { font-weight: 500; color: var(--text-2); margin-left: 6px; }
.seg.seg--opts span { background: var(--white); }
.seg.seg--opts input:checked + span { border-color: var(--purple); background: var(--white); color: var(--purple); box-shadow: inset 0 0 0 1px var(--purple); }
.field__hint--pm { color: var(--purple); margin-top: -8px; }
.sim__hint, .field__legendhint { margin-left: 8px; font-size: .75rem; font-weight: 500; color: var(--text-2); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; padding: 10px; text-align: center; border: 2px solid var(--line); border-radius: 12px; font-weight: 700; font-size: .9rem; cursor: pointer; transition: border-color .15s, background .15s; line-height: 1.35; }
.seg span small { font-weight: 500; font-size: .72rem; color: var(--text-2); }
.seg input:checked + span { border-color: var(--green); background: var(--green-soft); color: var(--black); box-shadow: inset 0 0 0 1px var(--green); }
.seg input:focus-visible + span { outline: 3px solid var(--purple); outline-offset: 2px; }
.qty { display: inline-flex; align-items: center; gap: 8px; }
.qty__btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.qty__btn:hover { border-color: var(--ink); }
.qty input { width: 88px; height: 48px; text-align: center; font-size: 1.25rem; font-weight: 700; border: 2px solid var(--line); border-radius: 12px; font-family: var(--font-en); }
.qty__unit { font-weight: 700; }
.toggle { display: flex; align-items: center; gap: 10px; margin-top: 16px; cursor: pointer; font-size: .925rem; }
.toggle input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.toggle--light a { color: #fff; }

.sim__result { position: sticky; top: calc(var(--header-h) + 20px); background: var(--ink); color: #fff; border-radius: 20px; padding: 32px; box-shadow: var(--shadow-lg); }
.sim__label { font-size: .85rem; color: rgba(255,255,255,.65); }
.sim__price { color: var(--green); font-family: var(--font-en); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.2rem); line-height: 1.15; margin-top: 4px; }
.sim__price small { font-size: 1rem; font-family: var(--font); margin-left: 4px; }
.sim__price.is-bump { animation: bump .3s ease; }
@keyframes bump { 50% { transform: scale(1.04); } }
.sim__unit { color: rgba(255,255,255,.75); font-size: .9rem; }
.sim__breakdown { margin: 20px 0 24px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; display: grid; gap: 6px; font-size: .875rem; }
.sim__breakdown li { display: flex; justify-content: space-between; color: rgba(255,255,255,.75); }
.sim__breakdown li span:last-child { font-family: var(--font-en); color: #fff; }
.sim__pm { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: rgba(172, 72, 157, .22); border: 1px solid rgba(172, 72, 157, .6); font-size: .85rem; }
.sim__pm strong { color: var(--green); }
.sim__note { margin-top: 14px; font-size: .75rem; color: rgba(255,255,255,.55); }
@media (max-width: 900px) { .sim { grid-template-columns: 1fr; } .sim__result { position: static; } .sim__form, .sim__result { padding: 24px 20px; } }

/* ---------- Flow ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: flow; }
.flow__step { position: relative; padding: 28px 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.flow__step:not(:last-child)::after { content: ""; position: absolute; right: -15px; top: 42px; width: 10px; height: 10px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); }
.flow__num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-en); font-weight: 800; }
.flow__step h3 { margin-top: 14px; font-size: 1.05rem; font-weight: 700; }
.flow__step p { margin-top: 8px; font-size: .875rem; color: var(--text-2); }
.flow__time { display: inline-block; margin-top: 14px; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--black); }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 14px; }
  .flow__step:not(:last-child)::after { right: auto; left: 38px; top: auto; bottom: -11px; transform: rotate(135deg); }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq__item summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before { content: "Q"; font-family: var(--font-en); color: var(--purple); font-weight: 800; margin-right: 10px; }
.faq__item summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__item p { padding: 0 22px 20px 46px; color: var(--text-2); font-size: .95rem; }

/* ---------- Contact / Form ---------- */
.contact { background: radial-gradient(800px 400px at 100% 0%, rgba(172, 72, 157, .25), transparent 60%), var(--ink); }
.contact__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact .section__title { text-align: left; }
.assure { margin-top: 28px; display: grid; gap: 12px; }
.assure li { display: flex; gap: 10px; align-items: center; }
.contact__alt { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); }
.contact__alt p { font-size: .875rem; color: rgba(255,255,255,.7); margin-bottom: 10px; }

.form { background: #fff; color: var(--text); border-radius: 20px; padding: 32px; box-shadow: var(--shadow-lg); }
.form__progress { height: 6px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.form__bar { display: block; height: 100%; width: 50%; background: var(--green); border-radius: inherit; transition: width .35s ease; }
.form__stepinfo { margin: 12px 0 20px; font-size: .8rem; font-weight: 700; color: var(--text-2); }
.form__step { display: grid; gap: 18px; animation: fadeIn .3s ease; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.field > label, .field legend { font-weight: 700; font-size: .9rem; padding: 0; margin-bottom: 0; }
.field legend { margin-bottom: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.req, .opt { display: inline-block; margin-left: 6px; font-size: .68rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; vertical-align: 1px; }
.req { background: var(--purple); color: var(--white); }
.opt { background: var(--tint); color: var(--text-2); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea { width: 100%; border: 2px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; font-size: 16px; transition: border-color .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
.field input[type="file"] { font-size: .875rem; }
.field__hint { font-size: .78rem; color: var(--text-2); }
.field__label { font-weight: 700; font-size: .9rem; }
.files { display: grid; gap: 6px; }
.files:empty { display: none; }
.files__item { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 10px; background: var(--tint); font-size: .85rem; }
.files__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files__size { color: var(--text-2); font-size: .75rem; }
.files__remove { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--white); cursor: pointer; font-size: 1rem; line-height: 1; }
.files__remove:hover { background: var(--black); color: var(--white); }
.files__add { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border: 2px dashed var(--line); border-radius: 12px; font-weight: 700; font-size: .9rem; cursor: pointer; transition: border-color .15s, background .15s; }
.files__add:hover { border-color: var(--green); background: var(--green-soft); }
.files__add svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.files__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.files__input:focus-visible + .files__add { outline: 3px solid var(--purple); outline-offset: 2px; }
.field .is-invalid, .seg--wrap.is-invalid span { border-color: #E5484D; }
.seg--wrap { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.form .toggle--light { color: var(--text); margin-top: 0; }
.form .toggle--light a { color: var(--purple); }
.form__nav { display: flex; gap: 10px; }
.form__nav .btn--ghost-light { color: var(--text); border-color: var(--line); }
.form__nav .btn--primary { flex: 1; }
.form__error { font-size: .85rem; color: #C62A2F; background: #FDECEC; padding: 10px 12px; border-radius: 8px; }
.form__done { text-align: center; padding: 40px 8px; }
.form__doneicon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--ok); color: var(--black); font-size: 2rem; display: grid; place-items: center; }
.form__done h3 { font-size: 1.3rem; }
.form__done p { margin-top: 10px; color: var(--text-2); font-size: .925rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 900px) { .contact__inner { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 520px) { .form { padding: 22px 18px; } .field-row { grid-template-columns: 1fr; } .form__nav { flex-direction: column-reverse; } }

/* ---------- Footer ---------- */
.footer { background: #000; color: rgba(255,255,255,.75); padding: 56px 0 100px; font-size: .875rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__desc { margin-top: 8px; }
.footer__info { margin: 0; display: grid; gap: 8px; }
.footer__info div { display: flex; gap: 16px; }
.footer__info dt { width: 7em; color: rgba(255,255,255,.5); }
.footer__info dd { margin: 0; }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; font-size: .78rem; }
@media (min-width: 901px) { .footer { padding-bottom: 56px; } }

/* ---------- Price match ---------- */
.pm { background: linear-gradient(110deg, var(--ink-2) 0%, var(--black) 55%, #2B1628 100%); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.pm::before { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(83, 183, 98,.35), transparent 70%); }
.pm__inner { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; }
.pm__badge { width: 150px; height: 150px; border-radius: 50%; background: var(--purple); color: var(--white); display: grid; place-content: center; text-align: center; line-height: 1.1; font-weight: 700; box-shadow: 0 0 0 8px rgba(83, 183, 98,.18), 0 18px 40px rgba(83, 183, 98,.4); }
.pm__badge span { font-size: .8rem; }
.pm__badge strong { font-family: var(--font-en); font-size: 3.4rem; font-weight: 800; line-height: 1; }
.pm__badge small { font-size: 1.4rem; }
.pm__title { font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 900; }
.pm__title em { font-style: normal; color: var(--green); }
.pm__desc { margin-top: 12px; color: rgba(255,255,255,.78); font-size: .95rem; }
.pm__terms { margin-top: 14px; display: grid; gap: 4px; font-size: .78rem; color: rgba(255,255,255,.55); }
.pm__terms li::before { content: "※ "; }
@media (max-width: 1000px) { .pm__inner { grid-template-columns: auto 1fr; } .pm__cta { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .pm { padding: 48px 0; }
  .pm__inner { grid-template-columns: 1fr; gap: 20px; text-align: left; }
  .pm__badge { width: 96px; height: 96px; box-shadow: 0 0 0 6px rgba(83, 183, 98,.18); }
  .pm__badge strong { font-size: 2.2rem; }
  .pm__badge small { font-size: 1rem; }
  .pm__badge span { font-size: .65rem; }
  .pm__title br { display: none; }
  .pm__cta { width: 100%; }
}

/* ---------- Sticky CTA (mobile) ---------- */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(10, 10, 10,.08); transform: translateY(110%); transition: transform .3s ease; }
.sticky.is-visible { transform: none; }
.sticky__default, .sticky__sim { display: flex; gap: 8px; align-items: center; }
.sticky__sim { display: none; }
.sticky.is-sim .sticky__default { display: none; }
.sticky.is-sim .sticky__sim { display: flex; }
.sticky .btn { padding: 14px 10px; min-height: 48px; }
.sticky__default .btn--ghost-dark { flex: 1; }
.sticky__default .btn--primary { flex: 1.6; }
.sticky__sim .btn { flex: 1.3; }
.sticky__price { flex: 1; font-family: var(--font-en); font-weight: 800; font-size: 1.35rem; line-height: 1.1; white-space: nowrap; }
.sticky__price small { font-family: var(--font); font-size: .7rem; font-weight: 500; color: var(--text-2); margin: 0 2px; }
@media (max-width: 900px) { .sticky { display: block; } }

/* =========================================================
   Mobile optimization (≤640px)
   ========================================================= */
@media (max-width: 640px) {
  body { font-size: 15px; line-height: 1.7; }
  :root { --header-h: 58px; }
  .logo img { height: 24px; }
  .header__cta { padding: 8px 14px; font-size: .8rem; box-shadow: none; }

  /* Hero: ビジュアルを省いてCTAと数値を1画面目に */
  .hero { padding: calc(var(--header-h) + 28px) 0 32px; }
  .hero__visual { display: none; }
  .hero__title { font-size: 2.15rem; }
  .hero__lead { margin-top: 16px; font-size: .95rem; }
  .hero__points { margin-top: 18px; gap: 8px; font-size: .92rem; }
  .hero__actions { margin-top: 22px; gap: 10px; }
  .btn--lg { padding: 16px 20px; font-size: 1rem; }
  .stats { margin-top: 28px; }
  .stats__item { padding: 14px 8px; }

  /* Use cases: 折り返さず横スクロール */
  .usecases { padding: 20px 0; }
  .usecases__list { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; scroll-snap-type: x proximity; }
  .usecases__list::-webkit-scrollbar { display: none; }
  .usecases__list li { flex: none; scroll-snap-align: start; }

  .section { padding: 56px 0; }
  .section__head { margin-bottom: 28px; }
  .section__sub { font-size: .9rem; text-align: left; }
  .section__head { text-align: left; }

  .pains { gap: 12px; }
  .pain { padding: 18px 18px; }
  .pain__q { font-size: .98rem; }

  .service__title br { display: none; }
  .spec { margin: 20px 0; }
  .combo { margin-top: 32px; padding: 18px; gap: 14px; align-items: flex-start; }
  .combo__icon { width: 40px; height: 40px; font-size: 1.2rem; }

  /* Reasons: 2列のコンパクトカード */
  .reasons { grid-template-columns: 1fr 1fr; gap: 10px; }
  .reason { padding: 18px 14px; }
  .reason__num { font-size: 1.4rem; }
  .reason__title { font-size: .95rem; margin-top: 4px; }
  .reason__desc { font-size: .8rem; line-height: 1.6; }

  /* Simulator */
  .sim__form { gap: 22px; }
  .seg { grid-template-columns: 1fr 1fr; }
  .sim__group:nth-of-type(2) .seg { grid-template-columns: repeat(3, 1fr); }
  .seg--3 { grid-template-columns: 1fr; gap: 6px; }
  .seg--3 span { min-height: 46px; }
  .seg span { min-height: 50px; font-size: .85rem; padding: 8px 6px; }
  .qty { width: 100%; }
  .qty input { flex: 1; width: auto; }
  .qty__btn { width: 48px; height: 48px; }

  /* Flow: 縦タイムライン */
  .flow { gap: 0; }
  .flow__step { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; border: 0; border-radius: 0; padding: 0 0 22px; background: transparent; }
  .flow__step:not(:last-child)::after { content: ""; left: 17px; top: 40px; bottom: 4px; width: 2px; height: auto; border: 0; background: var(--line); transform: none; }
  .flow__num { grid-row: 1 / span 3; }
  .flow__step h3 { margin-top: 6px; }
  .flow__step p { margin-top: 2px; }
  .flow__time { grid-column: 2; justify-self: start; margin-top: 8px; }

  .faq__item summary { padding: 16px 44px 16px 16px; font-size: .95rem; }
  .faq__item summary::after { right: 18px; }
  .faq__item p { padding: 0 16px 16px 16px; font-size: .9rem; }

  .assure { gap: 6px; font-size: .9rem; margin-top: 18px; }
  .assure .check { width: 18px; height: 18px; }
  .assure .check::after { left: 6px; top: 3px; }
  .seg--wrap { grid-template-columns: 1fr 1fr; }

  .footer { font-size: .8rem; padding-top: 40px; }
  .footer__info div { flex-direction: column; gap: 0; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}

/* ---------- Legal pages (privacy) ---------- */
.legal { padding: calc(var(--header-h) + 56px) 0 80px; }
.legal__title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 900; margin-bottom: 24px; }
.legal h2 { font-size: 1.1rem; font-weight: 700; margin: 40px 0 12px; padding-left: 12px; border-left: 4px solid var(--green); }
.legal p, .legal li { color: var(--text); font-size: .95rem; }
.legal p + p { margin-top: 10px; }
.legal ul { margin: 10px 0; padding-left: 1.2em; list-style: disc; display: grid; gap: 4px; }
.legal a { color: var(--purple); }
.legal__info { margin: 0; display: grid; gap: 6px; }
.legal__info div { display: flex; gap: 16px; }
.legal__info dt { width: 5em; flex: none; color: var(--text-2); }
.legal__info dd { margin: 0; }
.legal__date { margin-top: 40px; color: var(--text-2); font-size: .85rem; }
.legal__back { display: inline-block; margin-top: 8px; font-weight: 700; }
.legal + .footer { padding: 32px 0; }
.legal + .footer .footer__bottom { margin-top: 0; border-top: 0; padding-top: 0; }
.legal + .footer a { color: inherit; }
