/* ミクトリ サービスサイト — 共通スタイル（DSトークンを継承） */
@import url("styles.css");

:root {
  --site-max: 1120px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  background: var(--gb-white);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.wrap { max-width: var(--site-max); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--color-text-accent-strong);
  background: var(--color-surface-accent-soft);
  padding: 7px 14px; border-radius: 999px;
}
.eyebrow svg { width: 15px; height: 15px; }

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.18; font-weight: 900; }
.h-display { font-size: clamp(38px, 6.4vw, 68px); }
.h-section { font-size: clamp(28px, 4vw, 42px); }
.lead { font-size: clamp(15px, 1.7vw, 18px); color: var(--color-text-secondary); line-height: 1.9; font-weight: 500; }

/* ===== ボタン ===== */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-weight: 800; font-size: 15px; cursor: pointer;
  border-radius: 999px; padding: 15px 26px; border: none; transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}
.cta svg { width: 19px; height: 19px; }
.cta-primary { background: var(--color-surface-accent); color: #fff; box-shadow: 0 6px 18px rgba(226,93,122,.32); }
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(226,93,122,.4); }
.cta-ink { background: var(--gb-ink); color: #fff; }
.cta-ink:hover { transform: translateY(-2px); }
.cta-ghost { background: transparent; color: var(--color-text-primary); box-shadow: inset 0 0 0 1.5px var(--color-border-strong); }
.cta-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--gb-ink); }

/* ストアバッジ（旧・未使用） */
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--gb-ink); color: #fff; border-radius: 13px; padding: 11px 18px;
  transition: transform .16s var(--ease);
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 24px; height: 24px; flex: none; }
.store .s-sm { font-size: 10.5px; opacity: .8; line-height: 1.2; }
.store .s-lg { font-size: 16px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }

/* ===== PWA 導線 ===== */
.pwa-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.pwa-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.pwa-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--color-text-secondary);
  background: var(--gb-white); border: 1px solid var(--color-border);
  border-radius: 999px; padding: 7px 13px;
}
.pwa-chip svg { width: 14px; height: 14px; color: var(--color-text-accent); flex: none; }
/* ダークな帯の上での調整 */
.band .cta-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); }
.band .cta-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; background: rgba(255,255,255,.08); }
.band .pwa-chip { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: rgba(255,255,255,.86); }
.band .pwa-chip svg { color: #fff; }
.band .pwa-badges { justify-content: center; }

/* ===== ナビ ===== */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 900; font-size: 21px; letter-spacing: -.02em; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 28px; margin-left: 14px; }
.nav-links a { font-size: 14.5px; font-weight: 700; color: var(--color-text-secondary); transition: color .15s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--color-text-accent); }
.nav-cta { margin-left: auto; }
.nav .cta { padding: 11px 20px; font-size: 14px; }
.nav-burger { display: none; }

/* ===== ヒーロー ===== */
.hero { position: relative; padding: 72px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(680px 460px at 82% 8%, var(--gb-red-050) 0%, transparent 60%),
    radial-gradient(560px 520px at 8% 92%, #faf4f6 0%, transparent 55%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero-copy { max-width: 560px; }
.hero h1 { margin: 20px 0 22px; }
.hero h1 .accent { color: var(--color-text-accent); }
.hero-actions { display: flex; flex-direction: column; gap: 18px; margin-top: 32px; }
.hero-note { font-size: 13px; color: var(--color-text-muted); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.hero-note svg { width: 15px; height: 15px; color: var(--color-text-accent); }
.hero-stage { display: flex; justify-content: center; position: relative; }

/* ===== デバイス枠（実アプリ画面をiframeで埋め込み） ===== */
.device {
  --k: 0.62;
  width: calc(393px * var(--k) + 16px);
  padding: 8px;
  background: #1c1418;
  border-radius: calc(46px * var(--k) + 8px);
  box-shadow: 0 30px 70px rgba(30,20,30,.28), 0 8px 20px rgba(30,20,30,.16);
  flex: none;
}
.device-screen {
  width: calc(393px * var(--k));
  height: calc(895px * var(--k));
  border-radius: calc(40px * var(--k));
  overflow: hidden;
  background: #fff;
  position: relative;
}
.device-screen iframe {
  width: 393px; height: 895px; border: 0;
  transform: scale(var(--k)); transform-origin: top left;
  pointer-events: none;
}
.device.sm { --k: 0.5; }
.device.lg { --k: 0.72; }
.device.tilt { transform: rotate(-3deg); }

/* デバイスを回転させたときのキャプション吹き出し */
.device-tag {
  position: absolute; z-index: 2;
  background: #fff; border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md); border-radius: 12px; padding: 10px 14px;
  display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700;
}
.device-tag .dot { width: 30px; height: 30px; border-radius: 999px; background: var(--color-surface-accent-soft); color: var(--color-text-accent); display: flex; align-items: center; justify-content: center; flex: none; }
.device-tag svg { width: 16px; height: 16px; }

/* ===== 共感セクション ===== */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.pain {
  background: var(--gb-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.pain .q { font-size: 15px; font-weight: 800; color: var(--color-text-muted); margin-bottom: 10px; }
.pain .b { font-size: 17px; font-weight: 800; line-height: 1.55; }
.pain .b em { font-style: normal; color: var(--color-text-accent); }

/* ===== 3ステップ ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; align-items: start; }
.step { text-align: center; }
.step .num { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--color-text-accent); margin-bottom: 20px; }
.step .step-device { display: flex; justify-content: center; margin-bottom: 22px; }
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--color-text-secondary); line-height: 1.85; font-weight: 500; margin: 0; }

/* ===== 特徴 ===== */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 52px; }
.feature {
  display: flex; gap: 18px; padding: 28px;
  background: var(--gb-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature .ficon { width: 54px; height: 54px; border-radius: 15px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--color-surface-accent-soft); color: var(--color-text-accent); }
.feature .ficon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { margin: 0; font-size: 14px; color: var(--color-text-secondary); line-height: 1.8; font-weight: 500; }

/* ===== ギャラリー ===== */
.gallery { background: var(--gb-gray-100); }
.gallery-rail { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-top: 52px; }
.gallery-item { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.gallery-item .cap { font-size: 14px; font-weight: 800; }
.gallery-item .cap span { display: block; font-size: 12.5px; font-weight: 600; color: var(--color-text-muted); margin-top: 3px; }

/* ===== 帯CTA ===== */
.band { text-align: center; }
.band-inner {
  background: linear-gradient(135deg, var(--gb-ink) 0%, #3a2f36 100%);
  color: #fff; border-radius: 28px; padding: 64px 40px; position: relative; overflow: hidden;
}
.band-inner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 300px at 85% 20%, rgba(226,93,122,.4) 0%, transparent 60%); }
.band-inner > * { position: relative; }
.band h2 { color: #fff; margin-bottom: 16px; }
.band .lead { color: rgba(255,255,255,.82); max-width: 520px; margin: 0 auto 30px; }
.band .stores { justify-content: center; }

/* セクション見出し中央 */
.head-center { text-align: center; max-width: 640px; margin: 0 auto; }
.head-center .lead { margin-top: 16px; }

/* ===== 使い方（交互レイアウト） ===== */
.how { display: flex; flex-direction: column; gap: 96px; margin-top: 64px; }
.how-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.how-row.rev .how-copy { order: 2; }
.how-row.rev .how-media { order: 1; }
.how-media { display: flex; justify-content: center; }
.how-copy .num { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--color-text-accent); margin-bottom: 14px; }
.how-copy h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 18px; }
.how-copy p { font-size: 16px; color: var(--color-text-secondary); line-height: 1.9; font-weight: 500; margin: 0 0 20px; }
.how-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.how-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; font-weight: 600; color: var(--color-text-secondary); }
.how-list svg { width: 20px; height: 20px; flex: none; color: var(--color-text-accent); margin-top: 1px; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; overflow: hidden; transition: box-shadow .18s; }
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 800; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { margin-left: auto; width: 24px; height: 24px; flex: none; color: var(--color-text-accent); transition: transform .2s var(--ease); }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .a { padding: 0 22px 22px 58px; font-size: 14.5px; color: var(--color-text-secondary); line-height: 1.9; font-weight: 500; }
.faq-item summary .q-ic { width: 30px; height: 30px; border-radius: 999px; flex: none; background: var(--color-surface-accent-soft); color: var(--color-text-accent); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 15px; }

/* ===== フッター ===== */
.foot { background: var(--gb-gray-100); border-top: 1px solid var(--color-border); padding: 56px 0 40px; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot .brand { margin-bottom: 14px; }
.foot .desc { font-size: 13.5px; color: var(--color-text-muted); line-height: 1.9; font-weight: 500; max-width: 300px; }
.foot h4 { font-size: 13px; font-weight: 800; margin: 0 0 14px; color: var(--color-text-primary); }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot ul a { font-size: 14px; color: var(--color-text-secondary); font-weight: 600; }
.foot ul a:hover { color: var(--color-text-accent); }
.foot-bottom { border-top: 1px solid var(--color-border); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--color-text-muted); font-weight: 600; }
.foot-social { display: flex; gap: 12px; }
.foot-social a { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; color: var(--color-text-secondary); transition: all .15s; }
.foot-social a:hover { color: var(--color-text-accent); border-color: var(--color-border-accent); }
.foot-social svg { width: 18px; height: 18px; }

/* ===== 出現アニメ ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
  .section { padding: 68px 0; }
  .hero { padding: 40px 0 60px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: none; text-align: center; margin: 0 auto; }
  .hero-actions { align-items: center; }
  .stores { justify-content: center; }
  .pains, .steps, .features { grid-template-columns: 1fr; }
  .how-row, .how-row.rev .how-copy, .how-row.rev .how-media { grid-template-columns: 1fr; order: initial; }
  .how-row { gap: 32px; }
  .how { gap: 64px; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .foot .wrap { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .band-inner { padding: 44px 24px; }
}
