/* Vimori 紹介ページ スタイル（モダン／モーション対応）
   自己完結（外部フォント・画像なし）。ライト/ダーク両対応。 */

:root {
  --accent: #208aef;
  --accent-2: #6a5cff;
  --accent-3: #22d3ee;
  --accent-soft: rgba(32, 138, 239, 0.14);

  --ink: #0f1622;
  --ink-2: #4a5765;

  --bg: #f6f9ff;
  --bg-alt: rgba(255, 255, 255, 0.55);
  --glass: rgba(255, 255, 255, 0.6);
  --glass-brd: rgba(15, 22, 34, 0.08);
  --shadow: 0 20px 50px rgba(20, 40, 80, 0.12);
  --radius: 20px;
  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef3fb;
    --ink-2: #9fb0c4;
    --bg: #070b13;
    --bg-alt: rgba(20, 28, 42, 0.5);
    --glass: rgba(24, 33, 50, 0.5);
    --glass-brd: rgba(255, 255, 255, 0.1);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    --accent-soft: rgba(32, 138, 239, 0.22);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* JSで描画するアニメ背景。最背面に固定。 */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: block;
}
/* 細かいノイズ（モダンな質感）。CSSだけの軽量グレイン。 */
.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: radial-gradient(currentColor 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  color: #000;
}
@media (prefers-color-scheme: dark) { .bg-grain { color: #fff; opacity: 0.05; } }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
a { color: inherit; text-decoration: none; }

/* ガラス質感（共通） */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

/* ── ヘッダー ─────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background .3s, border-color .3s, box-shadow .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--glass-brd);
  box-shadow: 0 6px 24px rgba(20, 40, 80, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.brand-mark { font-size: 22px; filter: drop-shadow(0 2px 6px rgba(32, 138, 239, 0.4)); }
.brand-name {
  font-size: 21px;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav { display: flex; gap: 24px; }
.nav a { color: var(--ink-2); font-size: 14px; font-weight: 600; transition: color .15s; }
.nav a:hover { color: var(--accent); }
.nav-cta { margin-left: 8px; }
@media (max-width: 820px) { .nav, .nav-cta { display: none; } }

/* ── ボタン ──────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  overflow: hidden;
  transition: transform .14s ease, box-shadow .25s ease, background .2s, color .2s;
}
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 26px rgba(32, 138, 239, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(32, 138, 239, 0.5); }
/* 光沢が横切るシャイン */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-18deg);
  transition: left .6s ease;
}
.btn-primary:hover::after { left: 130%; }
.btn-ghost { background: var(--glass); color: var(--ink); border: 1px solid var(--glass-brd); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* App Store バッジ（公式風・常に黒） */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: #000;
  color: #fff;
  padding: 10px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  transition: transform .14s ease, box-shadow .25s ease;
}
.appstore-badge:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42); }
.apple-logo { width: 26px; height: 26px; fill: #fff; flex: 0 0 auto; }
.ab-text { display: flex; flex-direction: column; line-height: 1.08; text-align: left; }
.ab-text small { font-size: 11px; font-weight: 600; opacity: 0.85; }
.ab-text strong { font-size: 19px; font-weight: 800; letter-spacing: 0.01em; }
.appstore-badge-lg { padding: 14px 30px; border-radius: 16px; }
.appstore-badge-lg .apple-logo { width: 32px; height: 32px; }
.appstore-badge-lg .ab-text small { font-size: 12px; }
.appstore-badge-lg .ab-text strong { font-size: 23px; }

/* ダウンロード導線 */
.dl-cta { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.dl-note { margin: 0; color: var(--ink-2); font-size: 13.5px; }

/* ── ヒーロー ─────────────────────────────── */
.hero { position: relative; padding: 78px 0 40px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.headline {
  margin: 0 0 20px;
  font-size: clamp(31px, 5.4vw, 56px);
  line-height: 1.26;
  font-weight: 900;
  letter-spacing: 0.01em;
}
.hl {
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 50%, var(--accent-3));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hueflow 6s ease-in-out infinite;
}
@keyframes hueflow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.lead { margin: 0 0 28px; color: var(--ink-2); font-size: 17px; max-width: 34em; }
.lead strong { color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
}

/* スマホモック（CSSのみ・浮遊アニメ） */
.hero-visual { display: flex; justify-content: center; perspective: 1000px; }
.phone {
  position: relative;
  width: 268px;
  aspect-ratio: 9 / 19;
  background: linear-gradient(160deg, #212c3b, #0b0f17);
  border-radius: 42px;
  padding: 12px;
  box-shadow: var(--shadow), 0 0 0 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.phone-glow {
  position: absolute;
  inset: -30px;
  border-radius: 60px;
  background: radial-gradient(closest-side, rgba(106, 92, 255, 0.5), transparent 70%);
  filter: blur(24px);
  z-index: -1;
  animation: glowpulse 5s ease-in-out infinite;
}
@keyframes glowpulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
.float { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-1.2deg); }
}
.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 98px;
  height: 22px;
  background: #000;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  height: 100%;
  border-radius: 30px;
  background: linear-gradient(180deg, #eaf2fb, #dbe7f5);
  padding: 34px 14px 16px;
  display: flex;
  flex-direction: column;
  color: #10151c;
  overflow: hidden;
}
.mock-title { text-align: center; font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.timeline { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-around; }
.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 50%;
  width: 2px;
  transform: translateX(-1px);
  background: repeating-linear-gradient(to bottom, #b9c8da 0 5px, transparent 5px 10px);
}
.tl-row { display: flex; align-items: center; gap: 8px; }
.tl-row.left { justify-content: flex-start; }
.tl-row.right { justify-content: flex-end; }
.tl-time { font-size: 11px; font-weight: 700; color: #5a6b7c; width: 34px; text-align: center; }
.tl-thumb {
  width: 46px;
  height: 62px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(16, 21, 28, 0.18);
  z-index: 1;
}
.c1 { background: #ffe4a3; } .c2 { background: #ffc9c9; } .c3 { background: #cdeacb; }
.c4 { background: #c6dcff; } .c5 { background: #e3ccff; }
.tl-thumb.now { outline: 3px solid var(--accent); outline-offset: 1px; animation: nowpulse 2s ease-in-out infinite; }
@keyframes nowpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(32, 138, 239, 0.5); } 50% { box-shadow: 0 0 0 7px rgba(32, 138, 239, 0); } }
.mock-play {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  padding: 9px;
  border-radius: 12px;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
}

/* ── 流れるキーワード帯 ───────────────────── */
.marquee {
  margin-top: 36px;
  padding: 14px 0;
  border-top: 1px solid var(--glass-brd);
  border-bottom: 1px solid var(--glass-brd);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
  animation: scrollx 26s linear infinite;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink-2);
}
.marquee-track span:nth-child(3n+1) { color: var(--accent); }
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── 汎用セクション ───────────────────────── */
.section { position: relative; padding: 84px 0; }
.section.alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-alt);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: -1;
}
.kicker { margin: 0 0 8px; color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: 0.2em; }
.section-title { margin: 0 0 14px; font-size: clamp(25px, 3.8vw, 36px); font-weight: 900; line-height: 1.35; }
.section-lead { margin: 0 0 44px; max-width: 42em; color: var(--ink-2); font-size: 16px; }
.section-lead strong { color: var(--ink); }

/* ── コンセプト ───────────────────────────── */
.concept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.concept-card { border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); }
.concept-num {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 12px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.concept-num span { font-size: 16px; margin-left: 4px; color: var(--ink-2); -webkit-text-fill-color: var(--ink-2); }
.concept-card p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ── 機能グリッド ─────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .18s ease, box-shadow .25s ease, border-color .2s;
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--glass-brd));
}
.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: linear-gradient(140deg, var(--accent-soft), rgba(106, 92, 255, 0.16));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  margin-bottom: 15px;
}
.feature h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; }
.feature p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ── 使い方ステップ ───────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  box-shadow: 0 8px 18px rgba(32, 138, 239, 0.4);
}
.step h3 { margin: 0 0 8px; font-size: 16px; font-weight: 800; }
.step p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* ── ユースケース ─────────────────────────── */
.usecase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.usecase {
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  transition: transform .18s ease;
}
.usecase:hover { transform: translateY(-5px); }
.usecase-emoji { font-size: 34px; margin-bottom: 10px; }
.usecase h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; }
.usecase p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ── 締めCTA ─────────────────────────────── */
.closing { position: relative; padding: 92px 0; text-align: center; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, var(--accent), var(--accent-2)); }
.closing-orbs {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(360px 360px at 15% 20%, rgba(255, 255, 255, 0.25), transparent 60%),
    radial-gradient(420px 420px at 85% 90%, rgba(34, 211, 238, 0.35), transparent 60%);
  animation: floaty 9s ease-in-out infinite;
}
.closing-inner { position: relative; }
.closing-inner h2 { margin: 0 0 12px; font-size: clamp(25px, 4.2vw, 38px); font-weight: 900; }
.closing-inner p { margin: 0 auto 24px; max-width: 32em; font-size: 17px; opacity: 0.96; }
.closing-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.closing-badges span {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

/* ── お問い合わせページ ───────────────────── */
.page-hero { position: relative; padding: 72px 0 8px; text-align: center; }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { margin: 0 0 12px; font-size: clamp(28px, 4.6vw, 44px); font-weight: 900; }
.page-hero p { margin: 0 auto; max-width: 40em; color: var(--ink-2); font-size: 16px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card { border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-card h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.contact-card .muted { margin: 0 0 20px; color: var(--ink-2); font-size: 14px; }

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 700; }
.field .req { color: #ff4d6a; margin-left: 4px; font-size: 12px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  border: 1px solid var(--glass-brd);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 6px; }
.form-hint { margin: 0; color: var(--ink-2); font-size: 12.5px; }

.contact-side { display: flex; flex-direction: column; gap: 18px; }
.side-card { border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.side-card h3 { margin: 0 0 10px; font-size: 16px; font-weight: 800; }
.side-card p { margin: 0 0 6px; color: var(--ink-2); font-size: 14px; }
.side-card a { color: var(--accent); font-weight: 700; word-break: break-all; }
.side-list { margin: 0; padding-left: 1.1em; color: var(--ink-2); font-size: 14px; }
.side-list li { margin-bottom: 6px; }

/* よくある質問 */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details {
  border-radius: 14px;
  padding: 4px 20px;
  box-shadow: var(--shadow);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-weight: 800;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--accent); font-weight: 900; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--ink-2); font-size: 14.5px; }

/* ── お知らせ（Information）一覧 ───────────── */
.info-list { display: grid; gap: 16px; max-width: 820px; }
.info-item { border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); }
.info-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.info-cat {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  padding: 3px 11px;
  border-radius: 999px;
}
.info-meta time { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.info-item h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.info-body { color: var(--ink-2); font-size: 15px; }
.info-empty { color: var(--ink-2); text-align: center; padding: 40px 0; }

/* ── フッター ─────────────────────────────── */
.site-footer { position: relative; padding: 44px 0; border-top: 1px solid var(--glass-brd); background: var(--bg-alt); }
.footer-inner { display: flex; flex-direction: column; gap: 10px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; }
.footer-note { margin: 0; color: var(--ink-2); font-size: 14px; }
.footer-copy { margin: 0; color: var(--ink-2); font-size: 13px; opacity: 0.8; }

/* ── スクロール出現アニメ ─────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }

/* ── レスポンシブ ─────────────────────────── */
@media (max-width: 900px) {
  .concept-grid, .feature-grid, .usecase-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .concept-grid, .feature-grid, .usecase-grid, .steps { grid-template-columns: 1fr; }
}

/* 動きを控える設定を尊重 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}
