:root {
  --bg: #0e0e0e;
  --panel: #191919;
  --ink: #f4f4ee;
  --muted: #a2a29a;
  --line: #2e2e2e;
  --lime: #d7ff3e;
  --dark: #0e0e0e;
  --font-en: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --max: 1200px;
  --pad: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- ヘッダー ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--pad);
  transition: background .3s;
}

.header.scrolled { background: rgba(14, 14, 14, .94); }

.logo { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-en); font-size: 1.8rem; line-height: 1; letter-spacing: .04em; }
.logo small { font-family: var(--font-body); font-size: .6rem; font-weight: 700; letter-spacing: .22em; color: var(--muted); }

.nav {
  display: flex;
  gap: 2px;
  padding: 5px;
  font-size: .84rem;
  font-weight: 700;
  background: rgba(25, 25, 25, .88);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.nav a { padding: 6px 16px; border-radius: 999px; white-space: nowrap; transition: background .2s, color .2s; }
.nav a:hover { color: var(--dark); background: var(--ink); }

.header-side { display: flex; align-items: center; gap: 10px; }

.header-cta {
  padding: 10px 22px;
  font-size: .88rem;
  font-weight: 900;
  color: var(--dark);
  background: var(--lime);
  border-radius: 999px;
  transition: transform .2s;
}

.header-cta:hover { transform: scale(1.06); }

.nav-toggle { display: none; position: relative; width: 44px; height: 44px; background: var(--panel); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.nav-toggle span { position: absolute; left: 12px; width: 18px; height: 2px; background: var(--ink); transition: transform .25s; }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 24px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- ファーストビュー ---------- */
.hero { min-height: min(100vh, 800px); display: flex; flex-direction: column; }
.hero-main { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: var(--max); margin: 0 auto; padding: 100px var(--pad) 36px; }

.hero-label { font-size: .78rem; font-weight: 700; letter-spacing: .3em; color: var(--lime); }

.hero h1 {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: clamp(4.4rem, min(17vw, 28vh), 14.5rem);
  line-height: .92;
  letter-spacing: .01em;
  margin: 10px 0 30px;
}

.hero h1 em { font-style: normal; color: var(--lime); }

.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px 60px; }
.hero-copy { max-width: 30em; }
.hero-jp { font-size: clamp(1.3rem, 2.8vw, 1.9rem); font-weight: 900; line-height: 1.5; }
.hero-sub { margin-top: 12px; font-size: .92rem; color: var(--muted); }

.stats { display: flex; gap: clamp(20px, 3.4vw, 46px); }
.stats > div { padding-left: 16px; border-left: 2px solid var(--lime); }
.stats dt { font-size: .76rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.stats dd { font-family: var(--font-en); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1.1; }
.stats small { margin-left: 4px; font-family: var(--font-body); font-size: .9rem; font-weight: 900; }

/* 流れる帯 */
.marquee { overflow: hidden; color: var(--dark); background: var(--lime); }
.marquee-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee span { display: flex; align-items: center; gap: 30px; padding: 12px 0 12px 30px; font-size: 1.05rem; font-weight: 900; white-space: nowrap; }
.marquee span::after { content: ""; width: 9px; height: 9px; background: var(--dark); transform: rotate(45deg); }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- セクション共通 ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(70px, 10vw, 130px) var(--pad) 0; }

.head { margin-bottom: clamp(30px, 5vw, 54px); }
.head p { display: inline-flex; align-items: center; gap: 12px; font-size: .9rem; font-weight: 900; color: var(--lime); }
.head p::before { content: ""; width: 26px; height: 3px; background: var(--lime); }
.head h2 { font-family: var(--font-en); font-weight: 400; font-size: clamp(3.2rem, 10vw, 7.5rem); line-height: 1; letter-spacing: .01em; }

/* ---------- 特長(タイル型) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(230px, auto); gap: 16px; }

.tile {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px;
  transition: transform .3s, border-color .3s;
}

.tile:hover { transform: translateY(-6px); border-color: var(--lime); }
.tile-no { font-family: var(--font-en); font-size: 1.3rem; color: var(--lime); }
.tile h3 { font-size: 1.25rem; font-weight: 900; line-height: 1.5; margin: 6px 0 10px; }
.tile p:not(.tile-no) { position: relative; font-size: .92rem; color: var(--muted); }

.tile-main { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 44px); color: var(--dark); background: var(--lime); border-color: var(--lime); }
.tile-main .tile-no { color: var(--dark); }
.tile-main h3 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.35; margin-bottom: 16px; }
.tile-main p:not(.tile-no) { max-width: 24em; font-weight: 700; color: rgba(14, 14, 14, .76); }
.tile-bg { position: absolute; right: 10px; bottom: -.22em; font-family: var(--font-en); font-size: clamp(11rem, 24vw, 19rem); line-height: 1; color: rgba(14, 14, 14, .1); pointer-events: none; }
.tile-wide { grid-column: span 2; }

/* ---------- 料金 ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }

.plan { position: relative; padding: 34px 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 26px; }
.plan h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 1.2rem; font-weight: 900; }
.plan h3 small { font-size: .8rem; color: var(--muted); }
.price { margin: 14px 0 10px; font-size: .9rem; font-weight: 700; color: var(--muted); }
.price span { margin-right: 8px; font-family: var(--font-en); font-size: clamp(2.6rem, 4.6vw, 3.6rem); line-height: 1.1; color: var(--ink); }
.plan-lead { padding-bottom: 18px; font-size: .9rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.plan ul { display: grid; gap: 10px; margin-top: 20px; font-size: .92rem; }
.plan li { position: relative; padding-left: 26px; }
.plan li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 11px; height: 6px; border-left: 3px solid var(--lime); border-bottom: 3px solid var(--lime); transform: rotate(-45deg); }

.plan.featured { padding-top: 46px; padding-bottom: 46px; color: var(--dark); background: var(--ink); border-color: var(--ink); }
.plan.featured h3 small, .plan.featured .price, .plan.featured .plan-lead { color: #5c5c56; }
.plan.featured .price span { color: var(--dark); }
.plan.featured .plan-lead { border-bottom-color: #d2d2ca; }
.plan.featured li::before { border-color: var(--dark); }
.plan-badge { position: absolute; top: -14px; left: 28px; padding: 2px 16px; font-size: .8rem; font-weight: 900; color: var(--dark); background: var(--lime); border-radius: 999px; }

.plan-note { margin-top: 22px; font-size: .84rem; color: var(--muted); }

/* ---------- 体験の流れ ---------- */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 26px; }
.flow li { position: relative; padding-top: 22px; border-top: 3px solid var(--line); }
.flow li::before { content: ""; position: absolute; top: -9px; left: 0; width: 15px; height: 15px; background: var(--lime); border-radius: 50%; }
.flow span { display: block; font-family: var(--font-en); font-size: clamp(4.4rem, 8vw, 6.4rem); line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--lime); }
.flow h3 { font-size: 1.15rem; font-weight: 900; margin: 10px 0 6px; }
.flow p { font-size: .9rem; color: var(--muted); }

/* ---------- よくある質問(開閉式) ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 0 50px; align-items: start; }
.faq .head { position: sticky; top: 100px; }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: color .2s;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--lime); }

.faq-list summary i { position: relative; flex: 0 0 30px; height: 30px; border: 2px solid var(--lime); border-radius: 50%; transition: transform .3s, background .3s; }
.faq-list summary i::before, .faq-list summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--lime); transition: background .3s; }
.faq-list summary i::after { transform: rotate(90deg); }
.faq-list details[open] summary i { transform: rotate(45deg); background: var(--lime); }
.faq-list details[open] summary i::before, .faq-list details[open] summary i::after { background: var(--dark); }
.faq-list details p { padding: 0 54px 24px 4px; font-size: .94rem; color: var(--muted); }

/* ---------- 無料体験の案内 ---------- */
.trial {
  width: calc(100% - var(--pad) * 2);
  max-width: calc(var(--max) - var(--pad) * 2);
  margin: clamp(70px, 10vw, 130px) auto 0;
  padding: clamp(40px, 6vw, 80px);
  color: var(--dark);
  background: var(--lime);
  border-radius: 34px;
}

.trial h2 { font-family: var(--font-en); font-weight: 400; font-size: clamp(4rem, 14vw, 11.5rem); line-height: .92; }
.trial-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px 40px; margin-top: 30px; }
.trial-row p { font-size: clamp(1.3rem, 2.8vw, 1.9rem); font-weight: 900; line-height: 1.5; }
.trial-row small { display: block; font-size: .9rem; font-weight: 700; color: rgba(14, 14, 14, .7); }
.trial-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trial-note { margin-top: 20px; font-size: .78rem; font-weight: 700; color: rgba(14, 14, 14, .6); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 32px;
  font-weight: 900;
  border: 2px solid var(--dark);
  border-radius: 999px;
  white-space: nowrap;
  transition: transform .2s, background .2s, color .2s;
}

.btn:hover { transform: translateY(-3px); }
.btn-dark { color: var(--lime); background: var(--dark); }
.btn-line { font-family: var(--font-en); font-size: 1.3rem; font-weight: 400; letter-spacing: .04em; }
.btn-line:hover { color: var(--lime); background: var(--dark); }

/* ---------- フッター ---------- */
.footer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px 70px;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) var(--pad) 46px;
}

.footer-logo { font-family: var(--font-en); font-size: 3.4rem; line-height: 1; }
.footer-tag { font-size: .68rem; font-weight: 700; letter-spacing: .3em; color: var(--muted); }

.info > div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.info > div:first-child { border-top: 1px solid var(--line); }
.info dt { font-weight: 900; color: var(--lime); }

.copy { grid-column: 1 / -1; font-size: .76rem; color: var(--muted); }

/* ---------- スクロール表示 ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .tile[data-reveal].in:hover { transform: translateY(-6px); }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.trial :focus-visible { outline-color: var(--dark); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 980px) {
  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    top: 74px;
    left: var(--pad);
    right: var(--pad);
    flex-direction: column;
    gap: 0;
    padding: 12px;
    font-size: 1rem;
    border-radius: 24px;
    background: var(--panel);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }

  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 13px 18px; }

  .hero-row { flex-direction: column; align-items: flex-start; }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .tile-main { grid-row: auto; min-height: 320px; }

  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan.featured { padding-top: 40px; padding-bottom: 34px; }

  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 26px; }

  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq .head { position: static; }

  .trial-row { flex-direction: column; align-items: flex-start; }

  .footer { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .logo small { display: none; }
  .stats { gap: 14px; }
  .stats > div { padding-left: 10px; }
  .bento, .flow { grid-template-columns: minmax(0, 1fr); }
  .tile-main, .tile-wide { grid-column: auto; }
  .faq-list details p { padding-right: 4px; }
  .trial { border-radius: 26px; }
  .trial-actions, .btn { width: 100%; }
  .info > div { grid-template-columns: 84px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
