/* ZAXEL サイト共通（トップ・ギャラリー）。色・文字・ヘッダー・ボタン・フッターをここで1つに決める。
   決まり:
   - アクセント色は1色（コバルト）。ページの途中で色を足さない
   - 角丸は 3 段だけ: ボタン 10px / 画像 12px / カード 18px
   - テーマは端末の設定に合わせる（明・暗）。セクションごとに反転させない */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #eef0f4;
  --ink: #101217;
  --ink-2: #3b414b;
  --muted: #5f6672;
  --line: #e1e4ea;
  --accent: #2343f5;
  --accent-ink: #ffffff;
  --accent-soft: #e7ebff;
  --shadow: 0 18px 50px rgba(20, 30, 70, .10);
  --r-btn: 10px;
  --r-img: 12px;
  --r-card: 18px;
  --wrap: 1200px;
  --font: 'Geist', 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f13;
    --surface: #15181e;
    --surface-2: #1c2028;
    --ink: #f1f3f6;
    --ink-2: #c9ced6;
    --muted: #949ba6;
    --line: #272c35;
    --accent: #6d85ff;
    --accent-ink: #0d0f13;
    --accent-soft: #1b2242;
    --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ── ヘッダー（1行・高さ68px） ── */
.site-head {
  position: sticky; top: 0; z-index: 50; height: 68px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .14em; font-size: 17px; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 15px; letter-spacing: 0; }
.nav { display: flex; gap: 4px; list-style: none; margin-left: 8px; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 14.5px; color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; background: var(--surface-2); border-radius: 8px; padding: 3px; }
.lang-switch button { font: 600 12px var(--font); letter-spacing: .06em; border: 0; background: transparent; color: var(--muted); padding: 5px 9px; border-radius: 6px; cursor: pointer; }
.lang-switch button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--surface); cursor: pointer; position: relative; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; content: ''; }
.menu-btn span { top: 19px; } .menu-btn span::before { left: 0; right: 0; top: -6px; } .menu-btn span::after { left: 0; right: 0; top: 6px; }

/* ── ボタン（1行に収める） ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: var(--r-btn);
  font: 600 15px var(--font); text-decoration: none; white-space: nowrap; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, background .2s, border-color .2s, color .2s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.arrow::after { content: '→'; display: inline-block; margin-left: 6px; transition: transform .2s; }
a:hover > .arrow::after, .arrow:hover::after { transform: translateX(3px); }

/* ── 見出し・本文 ── */
.h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.18; letter-spacing: -.02em; font-weight: 700; }
.h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.3; letter-spacing: -.015em; font-weight: 700; }
.h3 { font-size: 20px; line-height: 1.45; font-weight: 700; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.sec { padding: 96px 0; }
.sec-head { margin-bottom: 40px; max-width: 720px; }
.sec-head p { margin-top: 12px; }

/* ── 端末の枠（本物の画面・動画を入れる） ── */
.browser { border-radius: var(--r-card); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.browser::before { content: ''; display: block; height: 30px; border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 16px 15px, #ff6b5e 4px, transparent 5px), radial-gradient(circle at 32px 15px, #f6c042 4px, transparent 5px),
    radial-gradient(circle at 48px 15px, #3ecf6a 4px, transparent 5px), var(--surface-2); }
.browser video, .browser img { width: 100%; }
.phone { border-radius: 30px; padding: 8px; background: #0d0f13; box-shadow: var(--shadow); }
.phone img { border-radius: 23px; background: #fff; }

/* ── 表示時のふわっと（動きを減らす設定では出さない） ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ── フッター ── */
.site-foot { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.foot-grid ul { list-style: none; display: grid; gap: 6px; }
.foot-grid a { text-decoration: none; color: var(--ink-2); font-size: 14.5px; }
.foot-grid a:hover { color: var(--accent); }
.copy { margin-top: 36px; font-size: 13px; color: var(--muted); }

@media (max-width: 1080px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 16px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .sec { padding: 64px 0; }
  .head-right .btn { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
