/* RemoteDesk 紹介ページ（2026-11-20 作成）。
   作りは TalkLens・Reform Lens の紹介ページと同じ（独自の HTML。build.py が title・説明文・OGP・構造化データ・計測を head に足す）。
   配色は、App Store の画像とアプリの「リッチカラー」に合わせて、紺の地にシャンパンゴールド。
   フォントは Apple のヒラギノ角ゴ。小さな字は 14px より小さくしない。スマートフォンの幅を先に作り、広い画面で段組みを増やす。
   外部のライブラリは使わない。 */
:root {
  --bg: #120f24;
  --bg-2: #1a1630;
  --bg-3: #221d3d;
  --gold: #dec48c;
  --gold-2: #f1dfb4;
  --gold-deep: #b89a5c;
  --ink: #f3f1fa;
  --ink-2: #c3c0d8;
  --line: rgba(222, 196, 140, 0.18);
  --line-2: rgba(255, 255, 255, 0.1);
  --radius: 20px;
  --gutter: 16px;
}

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

body {
  margin: 0;
  background: var(--bg);
  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(--gold); }
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, b { font-weight: 800; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 820px; }
.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(18, 15, 36, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.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; }
.brand img { border-radius: 8px; }
.header-nav { display: none; gap: 22px; }
.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(--gold); }
@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;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(0.98); }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-deep)); color: #1b1530; box-shadow: 0 10px 28px rgba(222, 196, 140, 0.25); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--gold); border: 1px solid rgba(222, 196, 140, 0.55); }
.btn-small { min-height: 44px; padding: 8px 18px; font-size: 14px; }
/* Mac 用アプリ（RemoteDeskHost.dmg）がまだ無いときは「準備中」（main.js がファイルの有無を確かめて切り替える） */
.btn.is-off { opacity: 0.55; pointer-events: none; box-shadow: none; filter: grayscale(0.4); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; }
.cta-row.center { justify-content: center; }
.store-badge { display: inline-flex; align-items: center; min-height: 52px; border-radius: 10px; }
.store-badge img { width: 156px; height: 52px; }
.store-badge.large img { width: 180px; height: 60px; }
.store-badge:focus-visible, .zoom:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---- 最初の画面 ---- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(70% 60% at 85% 0%, rgba(222, 196, 140, 0.18) 0%, rgba(222, 196, 140, 0) 60%),
    radial-gradient(60% 60% at 0% 100%, rgba(98, 80, 170, 0.28) 0%, rgba(98, 80, 170, 0) 60%),
    linear-gradient(180deg, #2a1f3f 0%, var(--bg) 100%);
  padding: 44px 0 56px;
}
.hero-inner { position: relative; display: grid; gap: 36px; align-items: center; }
.eyebrow { color: var(--gold); font-weight: 800; font-size: 14px; letter-spacing: 0.08em; margin-bottom: 12px; }
.hero h1 { font-size: clamp(31px, 8.4vw, 56px); line-height: 1.25; }
.gold { color: var(--gold); }
.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; }
.chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 5px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; border: 1px solid rgba(222, 196, 140, 0.6); color: var(--gold-2); background: rgba(222, 196, 140, 0.06); }

.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(0, 0, 0, 0.5); border: 1px solid rgba(222, 196, 140, 0.25); transition: transform 0.35s ease; background: var(--bg-2); }
.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 88px; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; }
  .hero-fan { height: 600px; }
}

/* ---- セクション ---- */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.tint { background: linear-gradient(180deg, #17132c 0%, #1b1634 100%); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.kicker { text-align: center; color: var(--gold); font-weight: 800; font-size: 14px; letter-spacing: 0.12em; margin-bottom: 10px; }
.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: 36em; margin: 0 auto 32px; font-weight: 500; }
.grid-3 { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---- カード ---- */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}
.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: rgba(222, 196, 140, 0.14); color: var(--gold); display: grid; place-items: center; margin-bottom: 12px; }
.card-icon svg { width: 24px; height: 24px; }
.card-icon .kana { font-size: 20px; font-weight: 800; line-height: 1; }
.scene-label { color: var(--gold) !important; font-size: 14px; font-weight: 800 !important; letter-spacing: 0.06em; margin-bottom: 6px; }

/* こだわり */
.why-grid { display: grid; gap: 16px; margin-top: 8px; }
@media (min-width: 720px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why-grid { grid-template-columns: repeat(4, 1fr); } .why-grid .accent { grid-column: span 2; } }
.why.accent { border-color: rgba(222, 196, 140, 0.55); background: linear-gradient(180deg, rgba(222, 196, 140, 0.14), rgba(222, 196, 140, 0.04)); }

/* ---- つながる仕組みの図 ---- */
.diagram { margin: 8px auto 0; max-width: 960px; padding: 12px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-2); }
.diagram svg { width: 100%; height: auto; display: block; font-family: inherit; }
.diagram .dg-sp { max-width: 360px; margin: 0 auto; }
.diagram .dg-pc { display: none; }
@media (min-width: 720px) { .diagram .dg-sp { display: none; } .diagram .dg-pc { display: block; } }

/* ---- 段ごとの説明（画面と文） ---- */
.step { display: grid; gap: 24px; align-items: center; margin-top: 56px; }
.step:first-of-type { margin-top: 40px; }
.step-shots { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 250px; width: 100%; margin: 0 auto; }
.step-shots a { border-radius: 20px; overflow: hidden; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45); border: 1px solid rgba(222, 196, 140, 0.22); background: var(--bg-2); }
.step-text { padding: 0 4px; }
.step-num { color: var(--gold); font-weight: 800; letter-spacing: 0.12em; font-size: 14px; margin-bottom: 6px; }
.step-text h3 { font-size: 23px; margin-bottom: 12px; }
.step-text p { color: var(--ink-2); font-weight: 500; }
.step-text p + .ticks, .step-text p + p { margin-top: 12px; }
@media (min-width: 900px) {
  .step { grid-template-columns: 320px 1fr; gap: 64px; margin-top: 88px; }
  .step.reverse { grid-template-columns: 1fr 320px; }
  .step.reverse .step-shots { order: 2; }
  .step-shots { max-width: 290px; }
  .step-text h3 { font-size: 28px; }
}

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--ink-2); font-weight: 500; }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(222, 196, 140, 0.18); }
.ticks b { color: var(--ink); display: block; }

/* ---- 画面を消して操作 ---- */
.blackout { display: grid; gap: 24px; align-items: center; }
.blackout-art { margin: 0 auto; max-width: 520px; width: 100%; }
.blackout-art svg { width: 100%; height: auto; display: block; font-family: inherit; }
.blackout-cards { display: grid; gap: 14px; }
@media (min-width: 900px) { .blackout { grid-template-columns: 1.1fr 1fr; gap: 48px; } }

/* ---- 安全 ---- */
.sec-layout { display: grid; gap: 32px; align-items: start; }
.sec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: sec; }
.sec-list li { counter-increment: sec; position: relative; padding: 20px 20px 20px 66px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); }
.sec-list li::before { content: ""; position: absolute; left: 20px; top: 22px; width: 30px; height: 30px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1530' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 18px no-repeat; }
.sec-list h3 { font-size: 18px; margin-bottom: 4px; }
.sec-list p { color: var(--ink-2); font-weight: 500; }
@media (min-width: 720px) { .sec-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .sec-layout { grid-template-columns: 290px 1fr; gap: 48px; } .sec-layout .step-shots { position: sticky; top: 88px; } }

/* ---- Mac 用アプリ ---- */
.host-dl { margin-top: 20px; display: grid; gap: 18px; align-items: center; border-color: rgba(222, 196, 140, 0.45); }
@media (min-width: 900px) { .host-dl { grid-template-columns: 1fr auto; gap: 32px; padding: 28px 32px; } }

/* ---- 困りごとと答え ---- */
.compare { border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; }
.compare-row + .compare-row { border-top: 1px solid var(--line-2); }
.compare-row p { padding: 14px 16px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.compare-row p + p { background: rgba(222, 196, 140, 0.07); color: var(--ink); border-left: 1px solid var(--line-2); }
.compare-row b { color: var(--gold); }
.compare-head p { font-size: 14px; font-weight: 800; color: var(--ink); background: rgba(255, 255, 255, 0.05); letter-spacing: 0.04em; }
.compare-head p + p { background: rgba(222, 196, 140, 0.2); color: var(--gold-2); }

/* ---- 料金 ---- */
.plans { display: grid; gap: 16px; margin-top: 8px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { position: relative; padding-top: 30px; }
.plan h3 { font-size: 18px; }
.price { margin: 8px 0 4px; font-size: 18px; font-weight: 800; color: var(--ink) !important; }
.price .yen { font-size: 40px; margin: 0 2px; color: var(--gold); letter-spacing: 0.01em; }
.price-sub { font-size: 14px; color: var(--gold-2) !important; margin-bottom: 4px; }
.plan .ticks { margin-top: 14px; }
.plan .ticks b { display: inline; }
.plan.featured { border-color: var(--gold); background: linear-gradient(180deg, rgba(222, 196, 140, 0.16), rgba(222, 196, 140, 0.04)); }
.badge { position: absolute; top: -13px; left: 22px; padding: 2px 14px; border-radius: 999px; background: var(--gold); color: #1b1530 !important; font-size: 14px; font-weight: 800 !important; }
.fine { color: var(--ink-2); font-size: 14px; margin-top: 22px; text-align: center; font-weight: 500; max-width: 52em; margin-left: auto; margin-right: auto; }

/* ---- はじめかた ---- */
.steps4 { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .steps4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps4 { grid-template-columns: repeat(4, 1fr); } }
.step-badge { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #1b1530 !important; font-weight: 800 !important; margin-bottom: 12px; }

/* ---- 動作環境 ---- */
.spec { margin: 8px 0 0; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.spec div { display: grid; gap: 2px; padding: 14px 18px; }
.spec div + div { border-top: 1px solid var(--line-2); }
.spec dt { color: var(--gold); font-weight: 800; font-size: 14px; }
.spec dd { margin: 0; color: var(--ink); font-weight: 500; }
@media (min-width: 720px) { .spec div { grid-template-columns: 190px 1fr; gap: 16px; } }

/* ---- よくある質問 ---- */
.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(--gold); 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: radial-gradient(70% 80% at 50% 0%, rgba(222, 196, 140, 0.16) 0%, rgba(222, 196, 140, 0) 70%), linear-gradient(180deg, var(--bg) 0%, #22183a 100%); }
.final-icon { margin: 0 auto 18px; border-radius: 22px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }

/* ---- 画面の下 ---- */
.site-footer { background: #0b0918; border-top: 1px solid var(--line-2); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); text-align: center; font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.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; }

/* ---- ライトボックス ---- */
.zoom { display: block; cursor: zoom-in; position: relative; color: inherit; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6, 5, 14, 0.95); 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; } }
