:root { --blue: #1965fa; --navy: #172b50; --muted: #7386a4; --line: #dde7f7; --danger: #e03a5a; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--navy); background: #fff; font-size: 15px; line-height: 1.8; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic UI', sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { outline-offset: 4px; }
img { max-width: 100%; }
p { color: var(--muted); }
.wrap { max-width: 1120px; margin: auto; padding: 0 24px; }

/* Header */
header { position: sticky; top: 0; z-index: 10; background: #ffffffed; backdrop-filter: blur(15px); border-bottom: 1px solid var(--line); }
.bar { min-height: 88px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; line-height: 1.2; }
.brand .mark { width: 42px; height: 42px; display: block; }
.brand strong { font-size: 24px; letter-spacing: -1px; }
.brand small { display: block; font-size: 10px; letter-spacing: 1px; margin-top: 5px; }
nav { display: flex; gap: 22px; font-size: 13px; font-weight: 700; align-items: center; }
nav a { white-space: nowrap; }
nav a:hover { color: var(--blue); }
nav .ext { width: 12px; height: 12px; margin-left: 4px; vertical-align: -1px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.menu-toggle { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 23px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-weight: 700; cursor: pointer; }
.btn:disabled { opacity: .6; cursor: progress; }
.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.pill { display: inline-block; background: #eaf1ff; color: var(--blue); font-size: 12px; padding: 8px 15px; border: 1px solid #d6e4ff; border-radius: 30px; font-weight: 700; }

/* Hero */
.hero { background: radial-gradient(ellipse at 90% 45%, #dfeaff, transparent 65%), linear-gradient(140deg, #fff, #f6f9ff); padding: 70px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.06fr; gap: 55px; align-items: center; }
h1 { font-size: 48px; line-height: 1.6; letter-spacing: -2px; margin: 27px 0 24px; }
h1 span { color: var(--blue); }
.actions { display: flex; gap: 12px; margin-top: 30px; }

/* Hero screenshot carousel (94364) */
.showcase { position: relative; min-width: 0; }
.stage { position: relative; height: 570px; min-width: 0; }
.slide { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateX(24px); transition: opacity .45s ease, transform .45s ease, visibility .45s; }
.slide.is-active { opacity: 1; visibility: visible; transform: none; }
/* 94522: iPhone frame (bezel, Dynamic Island, side button, status bar) */
.iphone { position: relative; width: 286px; padding: 11px; border-radius: 52px; background: #10151f; box-shadow: inset 0 0 0 2px #2d3648, 0 0 0 1.5px #c3cee0, 0 30px 70px #224f9d40; }
.iphone::before { content: ''; position: absolute; z-index: 2; top: 21px; left: 50%; width: 86px; height: 25px; border-radius: 15px; background: #000; transform: translateX(-50%); }
.iphone::after { content: ''; position: absolute; right: -3px; top: 132px; width: 3px; height: 62px; border-radius: 0 3px 3px 0; background: #2d3648; }
.iphone-screen { overflow: hidden; border-radius: 42px; background: #fff; }
.statusbar { display: flex; justify-content: space-between; align-items: center; height: 40px; padding: 2px 24px 0 34px; color: #0b1324; font-size: 13px; font-weight: 700; }
.statusbar svg { width: 54px; height: 12px; fill: currentColor; }
.iphone-screen img { display: block; width: 100%; height: auto; aspect-ratio: 620 / 1065; object-fit: cover; object-position: top; }
/* 94526: web screens in a browser window */
.browser { width: 100%; overflow: hidden; border-radius: 12px; background: #fff; border: 1px solid #d3deef; box-shadow: 0 30px 70px #224f9d33; }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #eef3fb; border-bottom: 1px solid #d3deef; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff6159; }
.browser-bar i:nth-child(2) { background: #ffbd2e; }
.browser-bar i:nth-child(3) { background: #28c941; }
.browser-bar span { flex: 1; max-width: 260px; margin-left: 10px; padding: 3px 12px; border-radius: 6px; background: #fff; color: var(--muted); font-size: 11px; line-height: 1.4; }
.browser img { display: block; width: 100%; height: auto; }
.slide-arrow { position: absolute; z-index: 3; top: 285px; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--blue); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px #224f9d1a; display: grid; place-items: center; padding: 0 0 4px; }
.slide-arrow:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.slide-arrow.prev { left: -22px; }
.slide-arrow.next { right: -22px; }
.slide-dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.slide-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: #c9d7f0; cursor: pointer; }
.slide-dots button.is-active { width: 26px; border-radius: 9px; background: var(--blue); }

/* Sections */
section { padding: 75px 0; }
.soft { background: #f7faff; }
.heading { text-align: center; margin-bottom: 38px; }
.heading h2 { font-size: 36px; margin: 12px 0; }
.heading p { margin: 8px 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature, .plan { border: 1px solid var(--line); border-radius: 16px; padding: 30px; background: #fff; }
.feature .symbol { color: var(--blue); font-size: 26px; }
.feature .symbol svg { width: 26px; height: 26px; vertical-align: -4px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 10px 0; }
.feature p { font-size: 14px; }
.steps { counter-reset: step; }
.steps h3::before { counter-increment: step; content: '0' counter(step); display: block; color: var(--blue); font-size: 28px; }

/* Pricing */
.platforms { text-align: center; font-weight: 700; margin-bottom: 30px; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan.recommended { border: 2px solid var(--blue); background: linear-gradient(#f2f7ff, #fff); }
.badge { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; padding: 3px 25px; border-radius: 20px; white-space: nowrap; font-size: 13px; }
.plan h3 { font-size: 24px; margin: 0; }
.plan p { font-size: 13px; min-height: 48px; }
.price { font-size: 43px; color: var(--blue); font-weight: 800; white-space: nowrap; }
.price small { font-size: 11px; font-weight: 400; color: var(--muted); }
.plan ul { padding: 20px 0; list-style: none; border-top: 1px solid var(--line); margin-top: 20px; flex: 1; }
.plan li { margin: 12px 0; font-size: 13px; }
.plan li::before { content: '✓'; color: var(--blue); background: #e7f0ff; border-radius: 50%; padding: 3px 6px; margin-right: 9px; }
/* 94537: pricing notes */
.notes { list-style: none; max-width: 720px; margin: 28px auto 0; padding: 0; font-size: 12px; color: var(--muted); line-height: 2; }

/* FAQ */
.faq { max-width: 800px; margin: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 5px; }
.faq summary { cursor: pointer; font-weight: 700; }

/* Contact */
.contact { background: linear-gradient(#f7faff, #eaf2ff); }
form { max-width: 820px; margin: auto; border-radius: 18px; background: #fff; padding: 36px; }
.field { display: grid; grid-template-columns: 190px 1fr; gap: 15px; margin-bottom: 18px; align-items: start; }
label { font-weight: 650; font-size: 13px; padding-top: 10px; }
.required, .optional { font-size: 10px; margin-left: 10px; padding: 2px 5px; border-radius: 3px; }
.required { color: #e35470; background: #fff0f3; }
.optional { color: #8090a6; background: #f1f4f8; }
input, select, textarea { border: 1px solid #d5e0f0; border-radius: 6px; padding: 10px 12px; width: 100%; color: var(--navy); background: #fff; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
textarea { resize: vertical; min-height: 130px; }
input::placeholder, textarea::placeholder { color: #9aaac0; }
.error { display: block; color: var(--danger); font-size: 12px; min-height: 0; }
.error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-bottom { margin-left: 205px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 12px; font-weight: 400; margin: 12px 0 6px; }
.check input { width: 17px; height: 17px; }
.check a { color: var(--blue); text-decoration: underline; }
.form-bottom .btn { width: 260px; margin-top: 12px; }
#form-status { font-size: 13px; margin: 14px 0 0; text-align: center; }
#form-status.is-error { color: var(--danger); }
.confirm-lead { margin-top: 0; }
.confirm-list { display: grid; grid-template-columns: 190px 1fr; margin: 0 0 24px; border-top: 1px solid var(--line); }
.confirm-list dt, .confirm-list dd { margin: 0; padding: 12px 6px; border-bottom: 1px solid var(--line); font-size: 14px; }
.confirm-list dt { font-weight: 700; }
.confirm-list dd { white-space: pre-wrap; word-break: break-word; }
.confirm-actions { display: flex; justify-content: center; gap: 12px; }
.confirm-actions .btn { min-width: 180px; }
#contact-done { text-align: center; padding: 20px 0; }
#contact-done h3 { font-size: 22px; margin: 0 0 8px; }

/* Footer (94369: same bottom row as alphacep.co.jp) */
footer { border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 22px; }
.footer-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a:hover { color: var(--blue); text-decoration: underline; }
.footer-mark { width: 64px; height: auto; display: block; }
.copy { text-align: right; }

/* 94521: back to top (shown after scrolling) */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 20; padding: 10px 18px; border-radius: 30px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 8px 24px #1965fa40; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease, visibility .25s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: #0f52d6; }

/* Header: 7 menu items + the tagline need the CTA button out of the way below 1100px. */
@media (max-width: 1100px) {
  nav { gap: 14px; font-size: 12px; }
  .bar { gap: 15px; }
  header .primary { display: none; }
}

@media (max-width: 950px) {
  nav { gap: 12px; font-size: 11px; }
  .hero-grid { gap: 25px; }
  h1 { font-size: 38px; }
  .price { font-size: 34px; }
  .price small { display: block; }
  .plan { padding: 23px; }
}

@media (max-width: 700px) {
  .wrap { padding: 0 20px; }
  .bar { min-height: 72px; flex-wrap: wrap; }
  .brand strong { font-size: 21px; }
  .menu-toggle { display: block; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 7px 12px; }
  nav { display: none; flex-basis: 100%; flex-wrap: wrap; padding-bottom: 18px; font-size: 13px; }
  nav.open { display: flex; }
  .hero { padding: 45px 0; }
  .hero-grid, .grid { grid-template-columns: 1fr; }
  h1 { font-size: 37px; letter-spacing: -1px; }
  .stage { height: 500px; }
  .slide-arrow { top: 250px; }
  .slide-arrow.prev { left: 0; }
  .slide-arrow.next { right: 0; }
  .iphone { width: 250px; padding: 10px; border-radius: 46px; }
  .iphone::before { top: 19px; width: 76px; height: 22px; }
  .iphone-screen { border-radius: 37px; }
  .statusbar { height: 36px; padding: 2px 20px 0 28px; font-size: 12px; }
  .slide-arrow { width: 38px; height: 38px; font-size: 24px; }
  .actions { flex-wrap: wrap; }
  .heading h2 { font-size: 30px; }
  section { padding: 50px 0; }
  .field { grid-template-columns: 1fr; gap: 5px; }
  .field label { padding: 0; }
  .form-bottom { margin: 0; }
  form { padding: 24px; }
  .form-bottom .btn, .confirm-actions .btn { width: 100%; min-width: 0; }
  .confirm-list { grid-template-columns: 1fr; }
  .confirm-list dt { border-bottom: 0; padding-bottom: 0; }
  .confirm-actions { flex-direction: column-reverse; }
  .plan p { min-height: 0; }
  .price small { display: inline; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .copy { text-align: center; }
  .to-top { right: 16px; bottom: 16px; padding: 9px 14px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .to-top { transition: none; }
}
