/* ===========================================================================
   rayout レコーダー 社内LP / マニュアル 共通スタイル
   トンマナは rayout-inc.com を継承（背景 #fafafa / 文字 #333 / アクセント
   ピンク #e83c5c / パステル装飾 / 黒ピルCTA）。色はこの :root だけで管理する。
   =========================================================================== */
:root {
  --ink: #333333;
  --ink-soft: #6f7378;
  --ink-faint: #6d7379;
  --bg: #fafafa;
  --card: #ffffff;
  --bg-soft: #f2f3f5;
  --line: #e6e8eb;
  --pink: #e83c5c;
  --pink-deep: #cf2f4d;
  --pink-wash: #ffe9ed;
  --blue: #0283ff;
  --blue-wash: #aaecfb;
  --lavender: #dad2ff;
  --btn: #2b2b2e;
  --btn-hover: #000;
  --shadow: 0 1px 2px rgba(40, 40, 45, .04), 0 14px 34px -14px rgba(40, 40, 45, .16);
  --shadow-lg: 0 2px 6px rgba(40, 40, 45, .06), 0 32px 64px -22px rgba(40, 40, 45, .26);
  --radius: 18px;
  --maxw: 1140px;
  --font: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Zen Kaku Gothic New", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; line-height: 1.8; letter-spacing: .01em; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.32; margin: 0; letter-spacing: .005em; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.eyebrow { font-weight: 700; font-size: 12px; letter-spacing: .18em; color: var(--pink-deep); }

/* nav */
nav { position: sticky; top: 0; z-index: 50; background: rgba(250, 250, 250, .82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; white-space: nowrap; }
.brand img { width: 27px; height: 27px; border-radius: 7px; }
.brand .sub { color: var(--ink-soft); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink); transition: color .15s; }
.nav-links a:hover { color: var(--pink); }
.nav-links a.active { color: var(--pink); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 999px; background: var(--btn); color: #fff !important; font-weight: 700; font-size: 14px; white-space: nowrap; transition: background .15s, transform .15s; }
.nav-cta:hover { background: var(--btn-hover); transform: translateY(-1px); }
.nav-cta svg { width: 15px; height: 15px; flex: none; }
@media (max-width: 860px) { .nav-links { gap: 14px; } .nav-links a:not(.nav-cta):not(.nav-keep) { display: none; } }
@media (max-width: 420px) {
  .nav-in { padding-right: 14px; padding-left: 14px; }
  .brand { gap: 7px; font-size: 16px; }
  .brand img { width: 24px; height: 24px; }
  .brand .sub { display: none; }
  .nav-links { gap: 8px; }
  .nav-links a { font-size: 12.5px; white-space: nowrap; }
  .nav-cta { height: 40px; gap: 6px; padding: 0 12px; font-size: 12.5px; }
}

/* buttons */
.btn-dl { display: inline-flex; align-items: center; gap: 11px; height: 56px; padding: 0 28px; border-radius: 999px; background: var(--btn); color: #fff; font-weight: 700; font-size: 16px; white-space: nowrap; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, background .15s; }
.btn-dl:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); background: var(--btn-hover); }
.btn-dl svg { width: 19px; height: 19px; flex: none; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; height: 56px; font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; }
.btn-ghost:hover { color: var(--pink); }
.btn-ghost svg { width: 17px; height: 17px; }

/* badges */
.badges { display: flex; flex-wrap: wrap; gap: 9px 22px; margin-top: 26px; }
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.badge svg { width: 15px; height: 15px; color: var(--pink); }
.ver-note { margin-top: 14px; font-size: 12.5px; color: var(--ink-soft); }

/* sections */
section { padding: 92px 0; position: relative; }
.sec-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 720px; }
.sec-head h2 { font-size: clamp(25px, 3.2vw, 36px); font-weight: 900; margin-top: 13px; }
.sec-head p { margin-top: 16px; font-size: 16.5px; color: var(--ink-soft); }
.center { margin: 0 auto; text-align: center; }

/* cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .ic { width: 48px; height: 48px; border-radius: 13px; background: var(--pink-wash); color: var(--pink); display: grid; place-items: center; margin-bottom: 20px; }
.card .ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; font-weight: 700; }
.card p { margin-top: 12px; font-size: 14.5px; color: var(--ink-soft); }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }

/* steps (LP) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.step .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 900; font-size: 15px; counter-increment: step; }
.step .n::before { content: counter(step); }
.step h3 { font-size: 18px; font-weight: 700; margin-top: 16px; }
.step p { margin-top: 10px; font-size: 14.5px; color: var(--ink-soft); }
.step .kbd { display: inline-block; margin-top: 14px; font-size: 12.5px; font-weight: 500; color: var(--ink-soft); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 7px; padding: 4px 10px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .split-media { order: -1; }
.split h2 { font-size: clamp(23px, 2.8vw, 33px); font-weight: 900; margin-top: 13px; }
.split .lead { margin-top: 16px; font-size: 16px; color: var(--ink-soft); }
.split ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 13px; }
.split li { display: flex; gap: 11px; font-size: 15px; color: var(--ink); }
.split li svg { width: 20px; height: 20px; color: var(--pink); flex: none; margin-top: 4px; }
.split li b { font-weight: 700; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.rev .split-media { order: 0; } }

.shot-frame { background: linear-gradient(150deg, var(--pink-wash), var(--blue-wash)); border-radius: 22px; padding: 34px; display: grid; place-items: center; box-shadow: var(--shadow); }
.shot-frame img { border-radius: 16px; box-shadow: var(--shadow-lg); }
.shot-frame.notch { background: #0e1b2e; padding: 0; overflow: hidden; }
.shot-frame.notch img { border-radius: 0; box-shadow: none; width: 100%; }

/* summary chips + doc mock */
.style-chips { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: 14px; color: var(--ink); }
.chip .d { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.chip.is-on { background: var(--pink); color: #fff; border-color: var(--pink); }
.doc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.doc .bar { height: 40px; background: var(--bg-soft); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; padding: 0 15px; }
.doc .bar i { width: 11px; height: 11px; border-radius: 50%; background: #d8dde2; }
.doc .bar .tt { margin-left: 8px; font-size: 12.5px; font-weight: 500; color: var(--ink-soft); }
.doc .body { padding: 26px 28px; }
.doc .body .tag { display: inline-block; margin-bottom: 14px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--pink); background: var(--pink-wash); padding: 4px 11px; border-radius: 7px; }
.doc .body .h { font-weight: 900; font-size: 16px; }
.doc .body .h + .h { margin-top: 20px; }
.doc .body ul { margin: 13px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.doc .body li { display: flex; gap: 10px; font-size: 14px; color: var(--ink); }
.doc .body li b { color: var(--pink); flex: none; font-weight: 900; }

/* faq */
.faq { max-width: 800px; margin: 44px auto 0; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 22px 4px; font-weight: 700; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary .pm { width: 22px; height: 22px; flex: none; position: relative; transition: transform .2s; }
summary .pm::before, summary .pm::after { content: ""; position: absolute; background: var(--pink); border-radius: 2px; }
summary .pm::before { top: 10px; left: 3px; width: 16px; height: 2px; }
summary .pm::after { top: 3px; left: 10px; width: 2px; height: 16px; transition: opacity .2s; }
details[open] summary .pm::after { opacity: 0; }
details[open] summary .pm { transform: rotate(180deg); }
details p { padding: 0 4px 24px; font-size: 15px; color: var(--ink-soft); }

/* band */
.band { background: var(--ink); color: #fff; border-radius: 24px; padding: 58px; text-align: center; position: relative; overflow: hidden; }
.band .glow { position: absolute; width: 460px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 60, 92, .5), transparent 62%); top: -120px; left: 50%; transform: translateX(-50%); }
.band > *:not(.glow) { position: relative; }
.band h2 { font-size: clamp(25px, 3vw, 35px); font-weight: 900; color: #fff; }
.band p { margin-top: 13px; color: rgba(255, 255, 255, .74); font-size: 16px; }
.band .btn-dl { background: var(--pink); margin-top: 30px; }
.band .btn-dl:hover { background: #ff4e6c; }
.band .badges { justify-content: center; margin-top: 22px; }
.band .badge { color: rgba(255, 255, 255, .66); }
.band .badge svg { color: var(--pink); }
@media (max-width: 640px) {
  .band { padding: 44px 22px; }
  .band .btn-dl { max-width: 100%; height: auto; min-height: 56px; padding: 14px 22px; white-space: normal; line-height: 1.4; }
}

/* footer */
footer { padding: 48px 0 64px; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.foot-meta { font-size: 13px; color: var(--ink-faint); }
.foot-meta code { background: var(--bg-soft); padding: 2px 7px; border-radius: 5px; font-size: 12.5px; }

/* entrance */
[data-rise] { opacity: 0; transform: translateY(16px); animation: rise .7s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { [data-rise] { animation: none; opacity: 1; transform: none; } }

/* ---------- LP hero（index 専用だが共有でも害なし）---------- */
.hero { position: relative; overflow: hidden; padding: 92px 0 88px; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); z-index: 0; opacity: .8; }
.blob.b1 { width: 320px; height: 320px; background: var(--pink-wash); top: -70px; right: 18%; }
.blob.b2 { width: 200px; height: 200px; background: var(--blue-wash); bottom: -40px; left: 6%; opacity: .55; }
.blob.b3 { width: 150px; height: 150px; background: var(--lavender); top: 120px; left: 38%; opacity: .4; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(33px, 4.6vw, 52px); font-weight: 900; margin-top: 20px; letter-spacing: .01em; }
.hero h1 .pink { color: var(--pink); }
.hero .lead { margin-top: 22px; font-size: 17.5px; color: var(--ink-soft); max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }
.hero-media { position: relative; display: flex; justify-content: center; }
.panel-shot { width: 300px; border-radius: 18px; box-shadow: var(--shadow-lg); position: relative; z-index: 2; }
.notch-float { position: absolute; z-index: 3; top: -14px; left: -26px; width: 260px; border-radius: 0 0 12px 12px; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .4); }
.disc { position: absolute; z-index: 1; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff 0%, var(--pink-wash) 70%, transparent 72%); top: 50%; left: 50%; transform: translate(-50%, -46%); }
@media (max-width: 460px) { .notch-float { left: 0; width: 220px; } }

/* ===========================================================================
   マニュアル（manual.html）専用
   =========================================================================== */
.man-hero { position: relative; overflow: hidden; padding: 64px 0 44px; border-bottom: 1px solid var(--line); }
.man-hero .blob.b1 { top: -90px; right: 8%; }
.crumb { font-size: 13px; color: var(--ink-faint); font-weight: 500; }
.crumb a:hover { color: var(--pink); }
.man-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; margin-top: 14px; }
.man-hero p { margin-top: 16px; font-size: 16.5px; color: var(--ink-soft); max-width: 38em; }

/* 2カラム：左固定TOC + 本文 */
.man-layout { display: grid; grid-template-columns: 232px 1fr; gap: 56px; align-items: start; padding: 56px 0 90px; }
.toc { position: sticky; top: 90px; }
.toc .lbl { font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--ink-faint); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: grid; gap: 2px; }
.toc a { display: flex; gap: 10px; align-items: baseline; padding: 7px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); transition: background .15s, color .15s; }
.toc a .num { counter-increment: toc; color: var(--pink); font-weight: 700; font-size: 12px; min-width: 16px; }
.toc a .num::before { content: counter(toc, decimal-leading-zero); }
.toc a:hover { background: var(--bg-soft); color: var(--ink); }
.toc a.active { background: var(--pink-wash); color: var(--pink); }
@media (max-width: 880px) { .man-layout { grid-template-columns: 1fr; gap: 0; padding-top: 36px; } .toc { display: none; } }

.man-body { min-width: 0; }
.man-sec { padding: 18px 0 46px; border-bottom: 1px solid var(--line); scroll-margin-top: 88px; }
.man-sec:last-child { border-bottom: 0; }
.man-sec > .kicker { display: flex; align-items: center; gap: 12px; }
.man-sec > .kicker .step-no { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 900; font-size: 16px; flex: none; }
.man-sec > .kicker h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 900; }
.man-sec .intro { margin-top: 16px; font-size: 16px; color: var(--ink-soft); }
.man-sec h3 { font-size: 17px; font-weight: 700; margin-top: 30px; }

/* 手順リスト（番号付き・具体的操作） */
.howto { list-style: none; counter-reset: ht; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; }
.howto > li { counter-increment: ht; display: grid; grid-template-columns: 30px 1fr; gap: 14px; font-size: 15.5px; }
.howto > li::before { content: counter(ht); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 13px; }
.howto > li > div { padding-top: 2px; }
.howto b { font-weight: 700; }

/* 番号なしの説明リスト（.howto の見た目から連番バッジを除いたもの） */
.howto-plain { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.howto-plain > li { display: grid; grid-template-columns: 6px 1fr; gap: 14px; font-size: 15.5px; }
.howto-plain > li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); margin-top: 11px; }

/* インラインのキー/メニュー表記 */
.k { display: inline-block; font-size: .86em; font-weight: 600; color: var(--ink); background: var(--bg-soft); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; margin: 0 1px; white-space: nowrap; }
.path { font-weight: 600; color: var(--ink); }
.path::before { content: ""; }

/* 図（スクショ） */
figure.shot { margin: 22px 0 0; }
figure.shot img { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
figure.shot.dark { background: #0e1b2e; border-radius: 14px; padding: 0; overflow: hidden; }
figure.shot.dark img { border-radius: 0; border: 0; box-shadow: none; width: 100%; }
figure.shot figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-faint); display: flex; align-items: center; gap: 7px; }
figure.shot figcaption::before { content: "▸"; color: var(--pink); }
.shot-narrow { max-width: 360px; }
.shot-mid { max-width: 560px; }

/* スクショ差し込み用プレースホルダ */
.ph { margin: 22px 0 0; border: 2px dashed #c7ccd2; border-radius: 14px; background: repeating-linear-gradient(135deg, #f7f8fa, #f7f8fa 14px, #f1f3f5 14px, #f1f3f5 28px); display: grid; place-items: center; text-align: center; padding: 34px 24px; color: var(--ink-soft); }
.ph .pin { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--pink); display: inline-flex; align-items: center; gap: 6px; }
.ph .pin::before { content: "📷"; }
.ph .what { margin-top: 8px; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.ph .file { margin-top: 6px; font-size: 12.5px; color: var(--ink-faint); }
.ph .file code { background: #fff; border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; }
.ph.tall { padding: 60px 24px; }

/* コールアウト */
.note { margin: 22px 0 0; border-radius: 12px; padding: 16px 18px 16px 46px; position: relative; font-size: 14.5px; line-height: 1.7; }
.note::before { position: absolute; left: 16px; top: 15px; font-size: 16px; }
.note.tip { background: var(--pink-wash); color: #8a1f37; }
.note.tip::before { content: "💡"; }
.note.info { background: #eaf4ff; color: #114a86; }
.note.info::before { content: "ℹ️"; }
.note.warn { background: #fff5e6; color: #8a5800; }
.note.warn::before { content: "⚠️"; }
.note b { font-weight: 700; }
.note code { background: rgba(255, 255, 255, .6); padding: 1px 6px; border-radius: 5px; font-size: .92em; }

/* 仕様の小箱（key-value） */
.facts { margin: 22px 0 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 0; font-size: 14px; }
.facts div + div { border-top: 1px solid var(--line); }
.facts dt { background: var(--bg-soft); padding: 11px 16px; font-weight: 700; color: var(--ink); }
.facts dd { margin: 0; padding: 11px 16px; color: var(--ink-soft); }
@media (max-width: 520px) { .facts div { grid-template-columns: 1fr; } .facts dd { padding-top: 0; } }

/* 2カラムのスクショ並び（640px 以下で 1 カラム） */
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
@media (max-width: 640px) { .shot-pair { grid-template-columns: 1fr; } }

/* インライン style の置き換え用ユーティリティ */
.card.row { display: flex; gap: 18px; align-items: flex-start; }
.card.row .ic { margin: 0; flex: none; }
.btn-dl.small { height: 46px; font-size: 14px; margin-top: 12px; }
.btn-dl.small svg { width: 16px; height: 16px; }
.link-pink { color: var(--pink); font-weight: 700; }

/* ダークモード（色は :root 変数の上書きで対応） */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eaed;
    --ink-soft: #a8adb4;
    --ink-faint: #878d94;
    --bg: #161719;
    --card: #1e2023;
    --bg-soft: #212327;
    --line: #33363b;
    --pink-wash: #3a2228;
    --blue-wash: #16323d;
    --lavender: #2c2740;
    --btn: #3a3b40;
    --btn-hover: #4a4b52;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px -14px rgba(0, 0, 0, .55);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .5), 0 32px 64px -22px rgba(0, 0, 0, .65);
  }
  nav { background: rgba(22, 23, 25, .82); }
  figure.shot img { border-color: var(--line); }
  .note code, .ph .file code { background: rgba(0, 0, 0, .3); }
  .note.tip { background: #35222a; color: #f2b8c4; }
  .note.info { background: #1a2c40; color: #a9cdf2; }
  .note.warn { background: #362a14; color: #e8c07a; }
}
