/* layout: full-width bands alternating plain / tinted; inner column max 1080px; phone screenshots as the proof points */
:root {
  --bg: #F3F5F8; --surface: #FFFFFF; --tint: #E8EDF4; --ink: #17202B; --muted: #5E6B7A; --line: #D6DDE6;
  --ai: #1F3A5F; --ai-deep: #152A46; --on-ai: #FFFFFF;
  --red: #B8321F; --amber: #9A5B00; --violet: #5B3F99; --green: #2E6B46;
  --red-soft: #FBE7E3; --amber-soft: #FDF0D9; --violet-soft: #ECE6F7; --green-soft: #E3F1E8;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --f-display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1520; --surface: #182130; --tint: #141C29; --ink: #E7ECF2; --muted: #9AA7B6; --line: #2A3546;
    --ai: #8FB2DE; --ai-deep: #0B1220; --on-ai: #0F1520;
    --red: #F08A78; --amber: #F2B65B; --violet: #B9A2EC; --green: #7FC79A;
    --red-soft: #3A1E1B; --amber-soft: #352914; --violet-soft: #2A2340; --green-soft: #17301F; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.85; -webkit-text-size-adjust: 100%; }
a { color: var(--ai); }
img { max-width: 100%; }
.in { max-width: 1080px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
section { padding-block: 72px; }
.band { background: var(--tint); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 4.2vw, 38px); line-height: 1.45; letter-spacing: .02em; }
h3 { font-size: 18px; line-height: 1.5; }
p { margin: 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--ai); margin-bottom: 10px; }
.sub { color: var(--muted); max-width: 40em; margin-top: 14px; }
:focus-visible { outline: 3px solid var(--ai); outline-offset: 3px; }

/* nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 11; background: var(--surface); }
.nav-in { max-width: 1080px; margin: 0 auto; padding: 10px max(20px, env(safe-area-inset-right, 0px)) 10px max(20px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; flex: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--ai); color: var(--on-ai); display: grid; place-items: center; font-family: var(--f-display); font-size: 19px; }
.brand b { font-family: var(--f-display); font-size: 20px; letter-spacing: .08em; }
.nav nav { display: flex; gap: 20px; margin-left: auto; }
.nav nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.login { font-size: 14px; font-weight: 700; text-decoration: none; }
@media (max-width: 860px) { .nav nav { display: none; } .nav-cta { margin-left: auto; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 10px; background: var(--ai); color: var(--on-ai); font-weight: 700; text-decoration: none; border: 2px solid var(--ai); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--ai); }
.btn.wide { width: 100%; }
.btn.light { background: #FFFFFF; color: #1F3A5F; border-color: #FFFFFF; }
.btn.ghost.light { background: transparent; color: #FFFFFF; border-color: rgb(255 255 255 / .6); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-row.center { justify-content: center; }

/* hero */
.hero { padding-block: 56px 64px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 22px; }
.tag span { background: var(--red); color: #FFFFFF; padding: 3px 12px; border-radius: 4px; letter-spacing: .06em; }
.hero h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 7.4vw, 72px); line-height: 1.25; letter-spacing: .02em; }
.lead { margin-top: 24px; font-size: 17px; max-width: 32em; }
.facts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.facts li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.phone { margin: 0; justify-self: center; position: relative; width: min(320px, 100%); }
.phone::before { content: ""; position: absolute; inset: 8% -18% -6% 18%; background: repeating-linear-gradient(180deg, var(--red) 0 25%, var(--violet) 25% 50%, var(--amber) 50% 75%, var(--green) 75% 100%); opacity: .14; border-radius: 28px; }
.phone img { position: relative; display: block; width: 100%; height: auto; border-radius: 28px; border: 8px solid var(--ink); box-shadow: 0 24px 48px rgb(15 25 40 / .22); }
@media (max-width: 760px) { .hero-in { grid-template-columns: 1fr; gap: 40px; } .phone { width: min(280px, 82%); } }

/* cards */
.cards { display: grid; gap: 14px; margin-top: 34px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cards.feats { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards article { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.cards article p { color: var(--muted); font-size: 15px; }
.soon { margin-top: 18px; font-size: 15px; color: var(--muted); }
.soon b { color: var(--ai); }

/* flow */
.flow { list-style: none; padding: 0; margin: 38px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.flow li { display: grid; gap: 18px; align-content: start; }
.flow figure { margin: 0; }
.flow img { display: block; width: 100%; max-width: 260px; height: auto; margin: 0 auto; border-radius: 18px; border: 1px solid var(--line); }
.flow .num { font-family: var(--f-display); font-size: 40px; font-weight: 800; line-height: 1; color: var(--ai); margin-bottom: 8px; }
.flow h3 { font-size: 20px; margin-bottom: 6px; }
.flow p:not(.num) { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; gap: 44px; } .flow li { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); align-items: start; } }
@media (max-width: 420px) { .flow li { grid-template-columns: minmax(0, 120px) minmax(0, 1fr); gap: 14px; } }

/* status strip */
.statuses { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.statuses li { background: var(--surface); border: 1px solid var(--line); border-left: 8px solid; border-radius: 12px; padding: 16px 18px; display: grid; gap: 4px; }
.statuses span { font-size: 14px; color: var(--muted); }
.s-red { border-left-color: var(--red) !important; } .s-red b { color: var(--red); }
.s-violet { border-left-color: var(--violet) !important; } .s-violet b { color: var(--violet); }
.s-amber { border-left-color: var(--amber) !important; } .s-amber b { color: var(--amber); }
.s-green { border-left-color: var(--green) !important; } .s-green b { color: var(--green); }

/* table */
.tbl { overflow-x: auto; margin-top: 30px; border-radius: 14px; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 620px; background: var(--surface); font-size: 15px; line-height: 1.6; }
th, td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { font-size: 13px; color: var(--muted); background: var(--bg); }
tbody th { font-weight: 700; }
tbody tr:last-child > * { border-bottom: 0; }
.us { background: var(--tint); font-weight: 700; color: var(--ai); }
thead .us { color: var(--ai); }

/* steps */
.steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 10px; counter-reset: s; max-width: 720px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 16px; background: var(--ai); color: var(--on-ai); display: grid; place-items: center; font-weight: 700; }
.steps span { color: var(--muted); font-size: 15px; }
.more { margin-top: 18px; font-weight: 700; }

/* price */
.price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 40px; align-items: center; }
.price-card { background: var(--surface); border: 2px solid var(--ai); border-radius: 18px; padding: 28px; display: grid; gap: 10px; }
.price-main { font-family: var(--f-display); font-size: 64px; font-weight: 800; line-height: 1; color: var(--ai); }
.price-main small { font-size: 22px; margin-left: 4px; }
.price-note { color: var(--muted); font-weight: 700; }
.price-card ul { margin: 6px 0 12px; padding-left: 1.2em; display: grid; gap: 4px; font-size: 15px; }
@media (max-width: 760px) { .price { grid-template-columns: 1fr; } }

/* faq */
.faq { margin-top: 28px; display: grid; gap: 10px; max-width: 820px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "＋"; color: var(--ai); flex: none; }
details[open] summary::after { content: "－"; }
details p { padding-bottom: 16px; color: var(--muted); font-size: 15px; }

/* closing + footer */
.closing { background: var(--ai-deep); color: #FFFFFF; text-align: center; background-color: #1F3A5F; }
.closing h2 { color: #FFFFFF; }
.contact { margin-top: 26px; font-size: 14px; color: rgb(255 255 255 / .8); }
.mail { user-select: all; font-weight: 700; color: #FFFFFF; }
.foot { padding-block: 30px calc(30px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot nav a { color: var(--ink); text-decoration: none; }

/* contact */
.contact-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 40px; align-items: start; }
@media (max-width: 760px) { .contact-in { grid-template-columns: 1fr; } }
.mail-ink { font-weight: 700; color: var(--ink); user-select: all; }
.cform { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 6px; }
.cform label { font-size: 14px; font-weight: 700; margin-top: 8px; }
.cform input, .cform textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; }
.cform textarea { min-height: 120px; resize: vertical; }
.req { font-size: 11px; color: #FFFFFF; background: var(--red); border-radius: 4px; padding: 0 6px; margin-left: 8px; vertical-align: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: 13px; color: var(--muted); margin: 8px 0 4px; }
.cmsg { margin-top: 8px; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.cmsg.ok { background: var(--green-soft); color: var(--green); }
.cmsg.err { background: var(--red-soft); color: var(--red); }

/* nav: keep the buttons on one line on narrow phones */
.login, .btn.small { white-space: nowrap; }
@media (max-width: 420px) {
  .nav-in { gap: 10px; }
  .nav-cta { gap: 10px; }
  .brand b { font-size: 18px; }
  .btn.small { padding: 0 12px; font-size: 13px; }
  .login { font-size: 13px; }
}
