/* SNS マネージャー 紹介ページ（2026-11-27 作り直し）。
   作りは Reform Lens の紹介ページと同じ（独自の HTML。build.py が title・説明文・OGP・構造化データ・計測を head に足す）。
   配色は、アプリと同じ藍色（#4f46e5）をボタンと強調に、地は淡い紫（#f4f3ff）と白。フォントは Apple のヒラギノ角ゴ。
   小さな字は 14px より小さくしない。スマートフォンの幅を先に作り、広い画面で段組みを増やす。外部のライブラリは使わない。
   画面の画像は、アステロイドテクノロジー自身の SNS をつないだアプリの実画面（tools/make_sns_manager_shots.py）。 */
:root {
  --accent: #4f46e5;
  --accent-deep: #4338ca;
  --accent-soft: #ecebff;
  --sky: #f4f3ff;
  --sky-2: #fbfaff;
  --ink: #161330;
  --ink-2: #4d4a66;
  --line: #e2e0f2;
  --radius: 20px;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); }
h1, h2, h3 { line-height: 1.35; margin: 0; font-weight: 800; letter-spacing: 0.01em; word-break: keep-all; overflow-wrap: anywhere; }
p { margin: 0; }
strong { font-weight: 800; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 780px; }
.center { text-align: center; }
.sp-only { display: inline; }
@media (min-width: 720px) { .sp-only { display: none; } }

/* ---- ヘッダー ---- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: 0.01em; }
.brand img { border-radius: 8px; }
.header-nav { display: none; gap: 20px; }
.header-nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.header-nav a:hover { color: var(--ink); }
@media (min-width: 960px) { .header-nav { display: flex; } }

/* ---- ボタン ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 26px; border-radius: 999px;
  font-size: 16px; font-weight: 800; text-decoration: none; text-align: center;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: linear-gradient(180deg, #6a62f0, var(--accent-deep)); color: #fff; box-shadow: 0 10px 26px rgba(79, 70, 229, 0.3); }
.btn-ghost { background: #fff; color: var(--accent-deep); border: 1px solid #cfcaf6; }
.btn-small { min-height: 44px; padding: 8px 16px; font-size: 14px; box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25); }
.soon { display: inline-flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 6px 22px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 800; font-size: 16px; line-height: 1.35; }
.soon small { font-weight: 600; font-size: 14px; opacity: 0.8; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; }
.cta-row.center { justify-content: center; }
.zoom:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---- 最初の画面：淡い紫の地 ---- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(90% 70% at 85% 10%, #e3e0ff 0%, rgba(227, 224, 255, 0) 60%), linear-gradient(180deg, var(--sky-2) 0%, var(--sky) 100%);
  padding: 44px 0 48px;
}
.hero-inner { position: relative; display: grid; gap: 36px; align-items: center; }
.eyebrow { color: var(--accent-deep); font-weight: 800; font-size: 14px; letter-spacing: 0.06em; margin-bottom: 12px; }
.hero h1 { font-size: clamp(31px, 8.2vw, 54px); line-height: 1.25; }
.hero h1 .accent { color: var(--accent); }
.lead { font-size: clamp(16px, 4.2vw, 18px); color: var(--ink-2); margin-top: 18px; max-width: 34em; font-weight: 500; }
.note { color: var(--ink-2); font-size: 14px; margin-top: 14px; font-weight: 500; }

/* SNS の名前の札（各 SNS の色は小さな点だけに使う） */
.sns-chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sns-chips li { padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; background: #fff; border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 7px; }
.sns-chips li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--accent)); }

/* 画面3枚を扇のように重ねる（押すと大きく表示） */
.hero-fan { position: relative; height: clamp(400px, 118vw, 560px); max-width: 520px; width: 100%; margin: 0 auto; }
.hero-fan .fan-card { position: absolute; top: 0; left: 50%; width: 46%; border-radius: 22px; overflow: hidden; box-shadow: 0 26px 60px rgba(22, 19, 48, 0.22); transition: transform 0.35s ease; background: var(--sky); }
.fan-card img { width: 100%; height: auto; }
.fan-c { transform: translateX(-50%); z-index: 3; }
.fan-l { transform: translateX(-108%) translateY(36px) rotate(-7deg); z-index: 1; }
.fan-r { transform: translateX(8%) translateY(36px) rotate(7deg); z-index: 2; }
.fan-card:hover, .fan-card:focus-visible { z-index: 4; }
.fan-c:hover { transform: translateX(-50%) translateY(-6px); }
@media (max-width: 599px) {
  .hero-fan { height: clamp(330px, 98vw, 480px); }
  .hero-fan .fan-card { width: 40%; border-radius: 18px; }
  .fan-l { transform: translateX(-104%) translateY(30px) rotate(-7deg); }
  .fan-r { transform: translateX(4%) translateY(30px) rotate(7deg); }
}
@media (min-width: 900px) {
  .hero { padding: 72px 0 64px; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; }
  .hero-fan { height: 600px; }
}

/* 実画面であることの断り（最初の画面の下） */
.real { position: relative; display: flex; gap: 12px; align-items: flex-start; max-width: 860px; margin: 36px auto 0; padding: 16px 20px; border-radius: 16px; background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); font-size: 15px; color: var(--ink-2); font-weight: 500; }
.real b { color: var(--ink); }
.real .dot { flex: 0 0 auto; margin-top: 7px; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.18); }

/* ---- セクション ---- */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.tint { background: var(--sky); }
.section-title { font-size: clamp(25px, 6.2vw, 38px); text-align: center; margin-bottom: 14px; }
.section-lead { color: var(--ink-2); text-align: center; max-width: 38em; margin: 0 auto 32px; font-weight: 500; }
.grid-2, .grid-3 { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---- カード ---- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: 0 6px 24px rgba(22, 19, 48, 0.06);
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-weight: 500; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; margin-bottom: 12px; }
.card-icon svg { width: 24px; height: 24px; }

/* ---- 悩み→解決（3つ） ---- */
.pains { display: grid; gap: 16px; margin-top: 8px; }
@media (min-width: 900px) { .pains { grid-template-columns: repeat(3, 1fr); } }
.pains .q { color: var(--ink-2); font-size: 15px; font-weight: 600; margin-bottom: 12px; padding-left: 12px; border-left: 3px solid #cfcaf6; }

/* ---- 流れ（ひと目で分かる帯） ---- */
.flow { list-style: none; padding: 0; margin: 8px auto 0; display: grid; gap: 10px; max-width: 560px; counter-reset: fl; }
.flow li { counter-increment: fl; position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; font-weight: 800; font-size: 16px; line-height: 1.5; }
.flow li::before { content: counter(fl); flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 16px; font-weight: 800; }
.flow small { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); }
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(5, 1fr); gap: 0; max-width: 980px; }
  .flow li { flex-direction: column; text-align: center; padding: 18px 12px; border-radius: 0; border-left-width: 0; }
  .flow li:first-child { border-left-width: 1px; border-radius: 16px 0 0 16px; }
  .flow li:last-child { border-radius: 0 16px 16px 0; }
  .flow li:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 50%; width: 16px; height: 16px; background: #fff; border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: translateY(-50%) rotate(45deg); z-index: 1; }
}

/* ---- 機能ごとの説明（画面と文） ---- */
.step { display: grid; gap: 22px; align-items: center; margin-top: 56px; }
.step-shots { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 250px; width: 100%; margin: 0 auto; }
.step-shots.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 460px; }
.step-shots a { border-radius: 20px; overflow: hidden; box-shadow: 0 18px 44px rgba(22, 19, 48, 0.16); border: 1px solid var(--line); background: var(--sky); }
.step-text { padding: 0 4px; }
.step-num { color: var(--accent-deep); font-weight: 800; letter-spacing: 0.12em; font-size: 14px; margin-bottom: 6px; }
.step-text h3 { font-size: 23px; margin-bottom: 10px; }
.step-text p { color: var(--ink-2); font-weight: 500; }
.step-text p + p, .step-text p + .ticks, .step-text .ticks + p { margin-top: 12px; }
.step-text .small { font-size: 14px; }
.step-text strong { color: var(--ink); }
.plan-tag { display: inline-block; margin-left: 6px; padding: 1px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); font-size: 14px; font-weight: 800; letter-spacing: 0; vertical-align: 3px; white-space: nowrap; }
@media (min-width: 900px) {
  .step { grid-template-columns: 460px 1fr; gap: 56px; margin-top: 88px; }
  .step.reverse { grid-template-columns: 1fr 460px; }
  .step.reverse .step-shots { order: 2; }
  .step-shots { max-width: 270px; }
  .step-text h3 { font-size: 27px; }
}

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--ink-2); font-weight: 500; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.ticks b { color: var(--ink); font-weight: 800; }

/* ---- 小さな機能のカード（通知・ウィジェットなど） ---- */
.mini { display: grid; gap: 14px; margin-top: 72px; }
@media (min-width: 720px) { .mini { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .mini { grid-template-columns: repeat(4, 1fr); } }
.mini .card { padding: 20px; }
.mini .card h3 { font-size: 17px; }
.mini .card p { font-size: 15px; }

/* ---- iPad・Mac ---- */
.ipad { max-width: 860px; margin: 8px auto 0; }
.ipad a { display: block; border-radius: 26px; overflow: hidden; border: 10px solid #1c1a2b; box-shadow: 0 30px 70px rgba(22, 19, 48, 0.25); background: #1c1a2b; }
.ipad a img { border-radius: 16px; }
.devices { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 900px) { .devices { grid-template-columns: repeat(3, 1fr); } }

/* ---- チームで使う：会社→事業→SNS の図 ---- */
.tree { display: grid; gap: 10px; max-width: 760px; margin: 0 auto; }
.tree .lv { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.tree .box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; font-weight: 800; text-align: center; min-width: 140px; }
.tree .box small { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.tree .box.top { background: var(--accent); color: #fff; border-color: var(--accent); }
.tree .box.top small { color: rgba(255, 255, 255, 0.85); }
.tree .arrow { text-align: center; color: var(--accent); font-weight: 800; line-height: 1; }

/* ---- 料金 ---- */
.plans { display: grid; gap: 20px; margin-top: 8px; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .plans { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.plan { position: relative; display: flex; flex-direction: column; }
.plan h3 { font-size: 20px; margin-bottom: 4px; }
.plan .who { color: var(--ink-2); font-size: 14px; font-weight: 600; min-height: 3.2em; }
.plan .price { margin: 12px 0 2px; font-size: 32px; font-weight: 800; line-height: 1.2; }
.plan .price small { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.plan .year { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.plan .ticks { margin-top: 16px; font-size: 15px; }
.plan .ticks li.off { color: #8f8ca6; }
.plan .ticks li.off::before { background: #d6d3e6; }
.plan.best { border: 2px solid var(--accent); box-shadow: 0 16px 40px rgba(79, 70, 229, 0.18); }
.plan .badge { position: absolute; top: -13px; left: 20px; background: var(--accent); color: #fff; border-radius: 999px; padding: 2px 12px; font-size: 14px; font-weight: 800; }
.fine { color: var(--ink-2); font-size: 14px; margin-top: 22px; font-weight: 500; }
.fine.c { text-align: center; }

/* ---- 動作環境の表 ---- */
.spec { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 40px; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.spec th, .spec td { text-align: left; padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.spec tr:first-child th, .spec tr:first-child td { border-top: 0; }
.spec th { width: 30%; background: var(--sky-2); font-weight: 800; }
.spec td { color: var(--ink-2); font-weight: 500; }
@media (max-width: 599px) { .spec th, .spec td { display: block; width: auto; } .spec td { border-top: 0; padding-top: 0; background: var(--sky-2); } }

/* ---- よくある質問 ---- */
.faq { display: grid; gap: 12px; margin-top: 28px; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 48px 18px 20px; font-weight: 800; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--accent-deep); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 20px; color: var(--ink-2); font-weight: 500; }

/* ---- 最後の案内 ---- */
.final { background: linear-gradient(180deg, var(--sky) 0%, #e3e0ff 100%); }
.final-icon { margin: 0 auto 18px; border-radius: 22px; box-shadow: 0 16px 40px rgba(22, 19, 48, 0.25); }

/* ---- 画面の下 ---- */
.site-footer { background: var(--ink); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); text-align: center; font-size: 14px; color: rgba(255, 255, 255, 0.82); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; margin-bottom: 8px; }
.footer-links a { color: rgba(255, 255, 255, 0.9); display: inline-flex; align-items: center; min-height: 44px; }
.copyright { margin-top: 6px; }
.tm { margin-top: 6px; color: rgba(255, 255, 255, 0.7); }

/* ---- 押すと大きくなるもの・大きく表示（ライトボックス） ---- */
.zoom { display: block; cursor: zoom-in; position: relative; color: inherit; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 8, 24, 0.94); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px;
  padding: calc(12px + env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; height: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.lb-img { max-width: 100%; max-height: calc(100% - 40px); width: auto; height: auto; object-fit: contain; border-radius: 14px; touch-action: pan-y pinch-zoom; }
.lb-cap { color: #fff; font-size: 15px; font-weight: 600; text-align: center; min-height: 1.4em; }
.lb-close, .lb-prev, .lb-next { appearance: none; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); color: #fff; border-radius: 999px; width: 48px; height: 48px; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); z-index: 2; }
.lb-prev:hover, .lb-next:hover, .lb-close:hover { background: rgba(255, 255, 255, 0.16); }
@media (max-width: 600px) { .lb-prev, .lb-next { width: 44px; height: 44px; font-size: 24px; } }
body.lb-open { overflow: hidden; }

/* ---- 控えめな表示のアニメーション ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .fan-card { transition: none; } }
