/* =========================================================
   LiveCapture4 サイト用スタイル
   色・フォントは :root の変数だけ変えれば全体に反映されます
   目次:
     1. 変数 / 2. ベース / 3. 共通部品 / 4. ヘッダー / 5. Hero
     6. ニュース / 7. 機能セクション / 8. カメラ・安心カード
     9. 動作環境 / 10. ダウンロード / 11. フッター / 12. 動き
   ========================================================= */

/* 1. 変数 ------------------------------------------------ */
:root {
  --bg: #060814;
  --text: #E8ECFF;
  --text-strong: #FFFFFF;
  --text-sub: #B7C0E6;
  --text-muted: #9AA4C7;
  --accent: #2DE2C8;          /* 差し色(ティール) */
  --brand: #5B4BFF;           /* ボタンなどのブランド色(青紫) */
  --violet: #A99BFF;
  --danger: #FF4D6A;
  --line: rgba(140, 150, 255, 0.25);
  --line-soft: rgba(140, 150, 255, 0.14);
  --panel: rgba(255, 255, 255, 0.04);
  --container: 1240px;
  --font-body: 'Noto Sans JP', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-logo: 'Space Grotesk', sans-serif;
}

/* 2. ベース ---------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(900px 620px at 78% 30%, rgba(91, 75, 255, 0.30), transparent 60%),
    radial-gradient(700px 500px at 8% 100%, rgba(45, 226, 200, 0.12), transparent 60%),
    linear-gradient(rgba(140, 150, 255, 0.05) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(140, 150, 255, 0.05) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--bg);
  background-attachment: scroll;
  overflow-x: hidden;
}
a { color: #C9D1F5; }
a:hover { color: var(--text-strong); }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* 3. 共通部品 -------------------------------------------- */
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.section { padding: 64px 0; }
.section > .container { border-top: 1px solid var(--line); padding-top: 56px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
  font-weight: 900;
  color: var(--text-strong);
}
.section-title--sm { font-size: clamp(24px, 3vw, 32px); }
.lead { font-size: 16px; line-height: 1.9; color: var(--text-sub); }
.icon { color: var(--accent); flex: none; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border-radius: 12px;
  font-size: 16px; text-decoration: none;
}
.btn-primary {
  background: var(--brand); color: #FFFFFF; font-weight: 700;
  box-shadow: 0 0 32px rgba(91, 75, 255, 0.55);
}
.btn-primary:hover { color: #FFFFFF; filter: brightness(1.12); }
.btn-outline { border: 1px solid rgba(140, 150, 255, 0.45); color: var(--text-strong); font-weight: 500; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.06); }

.panel {
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.mono-label {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.08em;
  color: var(--text-muted);
}
.rec-dot {
  display: inline-block; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent);
  animation: lc4pulse 1.4s ease-in-out infinite;
}
.rec-dot--red { background: var(--danger); }

/* 4. ヘッダー -------------------------------------------- */
.site-header {
  width: min(100% - 48px, var(--container)); margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px; padding: 24px 0;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-strong); }
.logo img { width: 40px; height: 40px; border-radius: 50%; }
.logo span { font-family: var(--font-logo); font-weight: 700; font-size: 22px; letter-spacing: 0.01em; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; }
.nav-links a { text-decoration: none; }
.nav-links .nav-cta {
  color: var(--text-strong); font-weight: 700;
  border: 1px solid rgba(140, 150, 255, 0.45); border-radius: 999px; padding: 10px 20px;
}

/* 5. Hero ------------------------------------------------ */
.hero {
  width: min(100% - 48px, var(--container)); margin-inline: auto;
  padding: 56px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-areas: "top visual" "bottom visual";
  column-gap: 48px; row-gap: 28px; align-items: center;
}
.hero-top { grid-area: top; align-self: end; }
.hero-bottom { grid-area: bottom; align-self: start; }
.hero-top, .hero-bottom { min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-visual { grid-area: visual; min-width: 0; width: 100%; max-width: 540px; margin: 0 auto; }

.badge {
  align-self: flex-start; display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(140, 150, 255, 0.35); background: var(--panel);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; color: #C9D1F5;
}
.hero-title {
  font-size: clamp(40px, 6.2vw, 72px);
  line-height: 1.12; font-weight: 900; letter-spacing: -0.01em;
  color: var(--text-strong);
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-lead { max-width: 560px; font-size: 18px; line-height: 1.8; color: var(--text-sub); }

.trust {
  display: flex; align-items: flex-start; gap: 14px; max-width: 560px;
  padding: 16px 18px; border-radius: 14px;
  border: 1px solid rgba(140, 150, 255, 0.3); background: var(--panel);
}
.trust .icon { margin-top: 2px; }
.trust-title { font-size: 17px; font-weight: 700; color: var(--text-strong); }
.trust-text { margin-top: 4px; font-size: 14px; line-height: 1.7; color: var(--text-sub); }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.version { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.05em; color: var(--text-muted); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  padding: 8px 14px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(140, 150, 255, 0.22);
  font-size: 14px; color: #D5DBF7;
}

/* Hero画像(ビューファインダー風の枠 + サーチ線) */
.viewfinder {
  position: relative; border-radius: 28px; overflow: hidden;
  border: 1px solid rgba(140, 150, 255, 0.35);
  box-shadow: 0 0 90px rgba(91, 75, 255, 0.40);
}
.viewfinder img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.scanline {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--accent); opacity: 0.45;
  animation: lc4scan 5s linear infinite;
}
.corner { position: absolute; width: 30px; height: 30px; border: 0 solid var(--accent); }
.corner--tl { top: 14px; left: 14px; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 8px; }
.corner--tr { top: 14px; right: 14px; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 8px; }
.corner--bl { bottom: 14px; left: 14px; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 8px; }
.corner--br { bottom: 14px; right: 14px; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 8px; }
.hud {
  position: absolute; top: 24px; padding: 5px 10px; border-radius: 6px;
  background: rgba(6, 8, 20, 0.75);
  font-family: var(--font-mono); font-size: 18px; letter-spacing: 0.08em;
}
.hud--left { left: 54px; display: flex; align-items: center; gap: 8px; color: #FFFFFF; }
.hud--right { right: 54px; color: var(--accent); }

/* Hero下の4つのポイント */
.highlights { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.highlights-inner {
  display: flex; flex-wrap: wrap; gap: 24px; padding: 40px 0 56px;
  border-top: 1px solid var(--line);
}
.highlight { flex: 1 1 240px; display: flex; flex-direction: column; gap: 10px; }
.highlight h2 { font-size: 18px; font-weight: 700; color: var(--text-strong); }
.highlight p { font-size: 14px; line-height: 1.7; color: var(--text-muted); }

/* 6. ニュース -------------------------------------------- */
.news { padding: 0 0 64px; }
.news > .container { border-top: 1px solid var(--line); padding-top: 48px; }
.news-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.link-more { font-size: 14px; text-decoration: none; color: var(--accent); }
.link-more:hover { color: var(--text-strong); }
.news-list { margin-top: 24px; border-top: 1px solid var(--line-soft); }
.news-item {
  display: grid;
  grid-template-columns: 112px 104px minmax(0, 1fr) 24px;
  align-items: center; gap: 20px;
  padding: 20px 12px;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none; color: var(--text);
  transition: background .2s ease;
}
.news-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--text-strong); }
.news-date { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.04em; color: var(--text-muted); }
.news-tag {
  justify-self: start; min-width: 88px; padding: 4px 10px; border-radius: 6px; text-align: center;
  font-size: 12px; font-weight: 700; border: 1px solid currentColor;
}
.news-tag--info { color: var(--accent); }        /* お知らせ */
.news-tag--update { color: var(--violet); }      /* アップデート */
.news-tag--important { color: #FF8CA0; }         /* 重要 */
.news-title { font-size: 16px; line-height: 1.6; font-weight: 500; }
.news-arrow { color: var(--text-muted); }
.news-item:hover .news-arrow { color: var(--accent); }

/* 7. 機能セクション -------------------------------------- */
.feature-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding: 64px 0;
  border-top: 1px solid var(--line-soft);
}
.features-head + .feature-row { border-top: 0; }
.feature-row.is-reverse { flex-direction: row-reverse; flex-wrap: wrap-reverse; }
.feature-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.feature-text h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.35; font-weight: 700; color: var(--text-strong); }
.feature-visual { flex: 1 1 420px; min-width: 0; }
.feature-visual img {
    display: block;        /* ブロック要素化して幅を持たせる */
    margin-left: auto;     /* 左右の余白を自動で均等にして中央寄せ */
    margin-right: auto;
    max-width: 100%;       /* 親要素からはみ出さないようにする */
    height: auto;
}
.checks { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: #D5DBF7; }
.checks li { display: flex; align-items: center; gap: 10px; }

/* 01: 検知10秒前の図 */
.big-number { margin: 18px 0 20px; font-family: var(--font-mono); font-size: 64px; line-height: 1; color: var(--accent); }
.big-number small { font-size: 22px; color: var(--text-muted); }
.bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, 0.08); }
.bar-pre { width: 28%; background: var(--accent); opacity: 0.4; }
.bar-post { width: 72%; background: var(--accent); }
.bar-labels { display: flex; margin-top: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.bar-labels span:first-child { width: 28%; }
.bar-labels span:last-child { width: 72%; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head .live { display: flex; align-items: center; gap: 6px; color: var(--accent); }

/* 02: 検知イメージ */
.detect-svg { display: block; width: 100%; border-radius: 20px; background: #0A0F24; border: 1px solid rgba(140, 150, 255, 0.3); }
.detect-svg .det-box { fill: none; stroke: var(--accent); stroke-width: 2; }
.detect-svg .det-label { fill: var(--accent); }

/* 03: 24時間タイムライン */
.day-bar { position: relative; height: 44px; margin-top: 16px; border-radius: 8px; background: rgba(255, 255, 255, 0.07); }
.day-seg { position: absolute; top: 0; bottom: 0; background: var(--accent); opacity: 0.6; }
.day-select { position: absolute; top: -4px; bottom: -4px; border: 2px solid #FFFFFF; border-radius: 6px; }
.day-hours { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.thumbs { display: flex; gap: 12px; margin-top: 20px; }
.thumb {
  flex: 1; aspect-ratio: 16 / 9; border-radius: 10px;
  border: 1px solid rgba(140, 150, 255, 0.25);
  background: linear-gradient(135deg, #1B1F4A, #0C1E2E);
  display: flex; align-items: center; justify-content: center; color: var(--text);
}
.save-chip {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  padding: 8px 14px; border-radius: 8px; background: rgba(255, 255, 255, 0.07);
  font-size: 14px; color: var(--text-strong);
}

/* 8. カメラ・安心カード ---------------------------------- */
.cards { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 36px; }
.card {
  flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px;
  padding: 28px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel);
}
.card h3 { font-size: 20px; font-weight: 700; color: var(--text-strong); }
.card p { font-size: 15px; line-height: 1.8; color: var(--text-muted); }

/* 9. 動作環境 -------------------------------------------- */
.spec-wrap { display: flex; flex-wrap: wrap; gap: 40px; }
.spec-wrap .section-head { flex: 1 1 300px; }
.spec { flex: 2 1 480px; min-width: 0; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.spec-row { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 18px 24px; border-bottom: 1px solid rgba(140, 150, 255, 0.15); }
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { flex: 0 0 140px; font-size: 14px; color: var(--text-muted); }
.spec-row dd { flex: 1 1 200px; margin: 0; font-size: 15px; color: var(--text-strong); }
.spec dl { margin: 0; }

/* 10. ダウンロード --------------------------------------- */
.download { padding: 24px 0 72px; }
.download-box {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding: 56px 24px; text-align: center; border-radius: 28px;
  border: 1px solid rgba(140, 150, 255, 0.35);
  background: radial-gradient(600px 300px at 50% 0%, rgba(91, 75, 255, 0.35), transparent 70%), var(--panel);
}
.download-box img { width: 72px; height: 72px; border-radius: 50%; }
.download-box .lead { max-width: 520px; }

/* 11. フッター ------------------------------------------- */
.site-footer {
  width: min(100% - 48px, var(--container)); margin-inline: auto;
  padding: 28px 0 40px; text-align: center;
  border-top: 1px solid var(--line); font-size: 14px; color: var(--text-muted);
}
.site-footer a { color: var(--text-sub); }
.site-footer a:hover { color: var(--text-strong); }

/* 12. 動き ----------------------------------------------- */
@keyframes lc4scan { 0% { top: 0; } 100% { top: 100%; } }
@keyframes lc4pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ふわっと表示(main.js が <html class="js"> を付けたときだけ有効) */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scanline, .rec-dot { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* スマホ・タブレット(幅900px以下) */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "top" "visual" "bottom";
    row-gap: 36px;
  }
  .hero-top, .hero-bottom { align-self: auto; }
}
@media (max-width: 700px) {
  .news-item {
    grid-template-columns: auto minmax(0, 1fr) 24px;
    grid-template-areas: "date tag arrow" "title title title";
    gap: 8px 14px; padding: 16px 4px;
  }
  .news-date { grid-area: date; }
  .news-tag { grid-area: tag; }
  .news-arrow { grid-area: arrow; }
  .news-title { grid-area: title; }
}

/* 言語切り替えリンク(JA / EN) */
.nav-links .nav-lang {
  font-size: 13px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-sub);
}
.nav-links .nav-lang:hover { color: var(--text-strong); border-color: var(--accent); }
