/* 紹介のページ (/・/ja/) の見た目 (TASK-239。日英で共通。日本語だけの規則は日本語のページの <style>)。
   色はヘルプ・規約 (pages.css) と同じ組み立て (既定はダーク、システムかアプリの設定でライト)。Google のボタン・タグの色はアプリと同じ */
:root {
  color-scheme: dark;
  --shadow: none;
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.45);
  --strong: #ffffff;
  --bg: #0f1117;
  --card: #1a1d27;
  --border: #2a2e3d;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #2f72ef;
  --primary-soft: #60a5fa;
  --logo-2: #38bdf8;
  --tag-bg: rgba(96, 165, 250, 0.16);
  --tag-text: #a9cdfb;
  --google-bg: #131314;
  --google-border: #8e918f;
  --google-text: #e3e3e3;
  --google-hover: #1f1f20;
  --bezel: #2b2e3a;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #edf1f8;
    --card: #ffffff;
    --border: #dce4ef;
    --text: #23283a;
    --muted: #5f6679;
    --primary: #2563eb;
    --primary-soft: #1d4ed8;
    --logo-2: #0284c7;
    --tag-bg: #e8f1fe;
    --tag-text: #1d4ed8;
    --google-bg: #ffffff;
    --google-border: #747775;
    --google-text: #1f1f1f;
    --google-hover: #f2f2f2;
    --shadow: 0 1px 2px rgba(15,32,72,.06), 0 4px 14px rgba(15,32,72,.08);
    --shadow-lg: 0 2px 6px rgba(15,32,72,.08), 0 18px 48px rgba(15,32,72,.16);
    --strong: #0f1b33;
    --bezel: #1b1d24;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #edf1f8;
  --card: #ffffff;
  --border: #dce4ef;
  --text: #23283a;
  --muted: #5f6679;
  --primary: #2563eb;
  --primary-soft: #1d4ed8;
  --logo-2: #0284c7;
  --tag-bg: #e8f1fe;
  --tag-text: #1d4ed8;
  --google-bg: #ffffff;
  --google-border: #747775;
  --google-text: #1f1f1f;
  --google-hover: #f2f2f2;
  --shadow: 0 1px 2px rgba(15,32,72,.06), 0 4px 14px rgba(15,32,72,.08);
  --shadow-lg: 0 2px 6px rgba(15,32,72,.08), 0 18px 48px rgba(15,32,72,.16);
  --strong: #0f1b33;
  --bezel: #1b1d24;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.75;
  /* 日本語を語の途中で折り返さない (対応していないブラウザはふつうに折り返す) */
  word-break: auto-phrase;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-soft); }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}
h1, h2, h3 { text-wrap: balance; color: var(--strong); }
.wrap { width: min(960px, 100%); margin: 0 auto; padding: 0 16px; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 上の帯 */
.site-header {
  position: relative;
  z-index: 1;
  padding-top: env(safe-area-inset-top);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--strong);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.header-link {
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
  padding: 6px 4px;
}
.header-link:hover { color: var(--text); }
.header-login {
  color: var(--primary-soft);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
}
.header-login:hover { border-color: var(--primary); }

/* 最初の画面 */
.hero { position: relative; padding: 24px 0 56px; overflow-x: clip; }
/* 上のほうにうっすら色の光を置く (アプリのログインの画面と同じ) */
.hero::before {
  content: '';
  position: absolute;
  inset: -120px -10% auto;
  height: 640px;
  background:
    radial-gradient(40% 50% at 30% 40%, color-mix(in srgb, var(--primary) 26%, transparent), transparent 70%),
    radial-gradient(35% 45% at 72% 30%, color-mix(in srgb, var(--logo-2) 20%, transparent), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: 36px; }
.hero-text { text-align: center; }
.hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(1.75rem, 7vw, 2.6rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.lede { margin: 0 auto; max-width: 30em; color: var(--muted); font-size: 1.02rem; text-wrap: balance; }
/* ブラウザ拡張機能 (ヒーローの下の帯。2026-10-28 オーナー: 上部の目立つところに) */
.ext-band {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: left;
}
.ext-band-text { flex: 1 1 220px; min-width: 0; }
.ext-band p { margin: 0; }
.ext-band-lede { color: var(--strong); font-weight: 600; line-height: 1.6; }
.ext-band .ext-band-note { margin-top: 4px; color: var(--muted); font-size: 0.85rem; }
.ext-band-button {
  display: none;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px 0 12px;
  border: 1px solid var(--google-border);
  border-radius: 999px;
  color: var(--strong);
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  text-decoration: none;
}
.ext-band-button:hover { background: var(--google-hover); }
.ext-band-button .icon { width: 16px; height: 16px; }
/* 拡張機能のヘルプへ (TASK-217)。ボタンの出ないスマホでも出す。スマホでは一言の下の行に、文の頭 (アイコンの幅 36px と間 16px の右) に揃えて置く */
.ext-band-more { align-self: center; margin: -6px 0 0 52px; color: var(--primary-soft); font-size: 0.85rem; white-space: nowrap; text-decoration: none; }
.ext-band-more:hover { text-decoration: underline; text-underline-offset: 3px; }
/* マウスのある端末 (拡張機能を入れられる) だけボタンを出す。スマホでは一言だけ */
@media (hover: hover) and (pointer: fine) {
  .ext-band-button { display: inline-flex; }
  .ext-band-note { display: none; }
  .ext-band-more { margin: 0; }
}
/* エンドツーエンド暗号化を少し強調する (鍵のアイコンと色。2026-10-25 オーナー) */
.e2ee { color: var(--primary-soft); font-weight: 600; white-space: nowrap; }
.e2ee .icon { width: 1em; height: 1em; margin-right: 0.2em; vertical-align: -0.125em; }

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  scroll-margin-top: 24px;
}
/* 最初の画面の「無料ではじめる」: ボタンの上の見出しとして大きく、「無料」に色 */
.cta-label { margin: 0 0 2px; font-size: 1.3rem; font-weight: 800; line-height: 1.3; color: var(--strong); }
.cta-label .free { color: var(--primary-soft); }
.google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 260px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--google-border);
  background: var(--google-bg);
  color: var(--google-text);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background 0.15s, transform 0.15s;
}
.google-button:hover { background: var(--google-hover); }
.google-button:active { transform: scale(0.98); }
.other-logins { display: flex; gap: 8px; }
.google-button.small {
  min-width: 126px;
  height: 38px;
  padding: 0 14px;
  gap: 8px;
  font-size: 0.875rem;
  box-shadow: none;
}
.mark { width: 20px; height: 20px; flex: none; }
.google-button.small .mark { width: 16px; height: 16px; }
.more-login-link {
  padding: 4px 8px;
  color: var(--muted);
  font-size: 0.85rem;
  text-underline-offset: 3px;
}
.more-login-link:hover { color: var(--text); }
.agreement {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
  text-align: center;
  text-wrap: balance;
}
.agreement a { color: inherit; text-underline-offset: 2px; }
/* スマホから始める (PC だけ。2026-11-03)。画面写真の側: パソコンの画面の下、スマホの写真の左に置く (QR とスマホが並ぶ) */
.start-phone { display: none; }
@media (min-width: 860px) and (hover: hover) and (pointer: fine) {
  .hero .hero-shots { padding-bottom: 18%; }
  .start-phone { position: absolute; left: 0; bottom: 0; width: 64%; display: flex; align-items: center; gap: 12px; text-align: left; }
  .start-phone .qr { flex: none; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
  .start-phone .qr svg { display: block; width: 100%; height: 100%; }
  .start-phone strong { display: block; margin-bottom: 1px; color: var(--strong); font-size: 0.875rem; }
  .start-phone p { margin: 0; color: var(--muted); font-size: 0.78rem; line-height: 1.55; }
}
.agreement a:hover { color: var(--text); }

/* 画面の写真: パソコンの画面にスマホを重ねる */
.hero-shots { position: relative; padding: 0 9% 13% 0; }
.shot-desktop {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}
.shot-desktop .bar {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.shot-desktop .bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.phone {
  border: 5px solid var(--bezel);
  border-radius: 26px;
  overflow: hidden;
  background: var(--bezel);
  box-shadow: var(--shadow-lg);
}
.phone img { border-radius: 21px; }
.hero-shots .phone { position: absolute; right: 0; bottom: 0; width: 31%; }

/* 欄 */
section { padding: 48px 0; }
.section-title { margin: 0 0 8px; font-size: clamp(1.3rem, 4.6vw, 1.7rem); line-height: 1.4; text-align: center; }
.section-lede { margin: 0 auto 28px; max-width: 34em; color: var(--muted); text-align: center; text-wrap: balance; }
.cards {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.card {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.card-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--tag-bg);
  color: var(--tag-text);
}
.card h3 { margin: 4px 0 2px; font-size: 1rem; line-height: 1.5; }
.card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
@media (min-width: 560px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
  .cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* こんな使い方 */
.uses {
  margin: 0 auto 32px;
  padding: 0;
  max-width: 640px;
  list-style: none;
  display: grid;
  gap: 8px;
}
.uses li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.uses .icon { margin-top: 4px; color: var(--primary-soft); }
/* 画面の写真を横に並べる (狭い画面では横にスクロール) */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(62%, 240px);
  gap: 16px;
  margin: 0 -16px;
  padding: 4px 16px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.gallery figure { margin: 0; scroll-snap-align: center; }
/* 写真は画面の上のほうだけ。下は消えていくように */
.gallery .phone {
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, #000 78%, transparent);
}
.gallery .phone img { border-radius: 21px 21px 0 0; }
.gallery figcaption { margin-top: 10px; text-align: center; color: var(--muted); font-size: 0.88rem; }
@media (min-width: 760px) {
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 240px)); justify-content: center; margin: 0; padding: 4px 0 0; overflow: visible; }
}

/* 暗号化・料金 */
.panel {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.panel .section-title { display: flex; align-items: center; justify-content: center; gap: 10px; }
.panel ul { margin: 12px 0 16px; padding-left: 1.3em; }
.panel li { margin-bottom: 6px; }
.panel-links { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; margin: 0; font-size: 0.92rem; }
/* 節のカードの下のヘルプへのリンク (TASK-245) */
.section-links { margin-top: 20px; }
.price { margin: 0; text-align: center; font-size: 1.05rem; }

/* よくある質問 */
.faq { max-width: 720px; margin: 0 auto; }
details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 18px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
/* stylelint-disable-next-line no-descending-specificity -- 前の summary:focus-visible とは別の要素 (節ごとに並べている。TASK-239) */
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style-position: inside;
}
/* stylelint-disable-next-line no-descending-specificity -- 前の .ext-band p とは別の要素 (節ごとに並べている。TASK-239) */
details p { margin: 0 0 14px; color: var(--muted); font-size: 0.95rem; }

/* 最後のログイン */
.final { text-align: center; }
.final .cta { margin-top: 20px; }

.site-footer {
  padding: 24px 16px max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
}
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 0.85rem; }
/* stylelint-disable-next-line no-descending-specificity -- 前の .agreement a:hover とは別の要素 (節ごとに並べている。TASK-239) */
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (min-width: 860px) {
  .hero { padding: 40px 0 72px; }
  .hero .wrap { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 40px; }
  .ext-band { grid-column: 1 / -1; align-items: center; }
  .hero-text { text-align: left; }
  .lede { margin: 0; }
  .hero .cta { align-items: flex-start; }
  .hero .agreement { text-align: left; }
  section { padding: 64px 0; }
}
