@charset "UTF-8";

/* =========================================================
   SimplePhone 紹介・使い方サイト 共通スタイル
   アプリ本体の配色（app/src/main/java/.../ui/theme/Color.kt）に合わせている
   ========================================================= */

:root {
  /* アプリ本体の配色 */
  --blue: #2196f3;
  --blue-dark: #1565c0;
  --blue-pale: #e3f2fd;
  --green: #4caf50;
  --orange: #ff9800;
  --red: #f44336;
  --yellow: #ffc107;

  /* 地の色 */
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --surface: #ffffff;
  --border: #d8dee6;
  --border-strong: #b6c0cc;

  /* 文字 */
  --text: #1a1a1a;
  --text-sub: #4a5560;
  --text-faint: #6b7683;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 2px 4px rgba(16, 32, 48, .06), 0 8px 24px rgba(16, 32, 48, .07);
  --shadow-sm: 0 1px 2px rgba(16, 32, 48, .06), 0 4px 12px rgba(16, 32, 48, .05);

  --maxw: 1080px;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium",
          "Yu Gothic", Meiryo, "Noto Sans JP", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-dark); }
a:hover { color: var(--blue); }

/* ---------------------------------------------------------
   ヘッダー
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: .01em;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  flex: none;
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-sub);
  font-size: .95rem;
  font-weight: 600;
}

.site-nav a:hover { background: var(--bg-soft); color: var(--text); }
.site-nav a[aria-current="page"] { background: var(--blue-pale); color: var(--blue-dark); }

/* ---------------------------------------------------------
   レイアウト
   --------------------------------------------------------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.wrap--narrow { max-width: 800px; }

section { padding: 64px 0; }
section + section { border-top: 1px solid var(--border); }

h1, h2, h3, h4 { line-height: 1.4; letter-spacing: .01em; }

h1 { font-size: 2.1rem; margin: 0 0 16px; }
h2 { font-size: 1.6rem; margin: 0 0 8px; }
h3 { font-size: 1.25rem; margin: 44px 0 12px; }
h4 { font-size: 1.05rem; margin: 28px 0 8px; }

.section-lead {
  color: var(--text-sub);
  margin: 0 0 36px;
  font-size: 1.02rem;
}

/* ---------------------------------------------------------
   ヒーロー（トップページ）
   --------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 520px at 85% 8%, rgba(33, 150, 243, .38), transparent 62%),
    radial-gradient(720px 460px at 8% 104%, rgba(76, 175, 80, .16), transparent 60%),
    linear-gradient(158deg, #0b2a55 0%, #103a75 48%, #15498f 100%);
  color: #fff;
  padding: 88px 0 96px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #cfe6ff;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 2.8rem);
  line-height: 1.28;
  margin: 0 0 22px;
  color: #fff;
  text-shadow: 0 2px 24px rgba(4, 16, 36, .35);
}

.hero h1 .accent { color: #8ecbff; }

.hero__lead {
  font-size: 1.16rem;
  color: rgba(255, 255, 255, .86);
  margin: 0 0 34px;
  max-width: 34em;
}

.hero__lead strong { color: #fff; }

/* ヒーロー内はボタンの明暗を反転する */
.hero .btn--primary { background: #fff; color: var(--blue-dark); box-shadow: 0 8px 24px rgba(4, 16, 36, .35); }
.hero .btn--primary:hover { background: var(--blue-pale); color: var(--blue-dark); }
.hero .btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.hero .btn--ghost:hover { border-color: #fff; color: #fff; }

/* 端末まわり：少し傾け、通知カードを浮かせる */
.hero__device { position: relative; }

.hero__device .phone {
  transform: rotate(-2.5deg);
  border-color: #101823;
  background: #101823;
  box-shadow: 0 34px 70px rgba(3, 12, 30, .5);
}

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: 0 14px 36px rgba(3, 12, 30, .4);
  font-size: .92rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.35;
}

.float-card small {
  display: block;
  font-weight: 600;
  color: var(--text-faint);
  font-size: .78rem;
}

.float-card__dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 1.05rem;
}

.float-card__dot--red   { background: #ffebee; }
.float-card__dot--green { background: #e8f5e9; }

.float-card--a { top: 17%; left: -84px; }
.float-card--b { bottom: 12%; right: -56px; }

/* ヒーロー下端の数字チップ */
.hero__stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 16px;
  padding: 18px 22px;
}

.stat b {
  display: block;
  font-size: 1.6rem;
  line-height: 1.3;
  color: #fff;
}

.stat b em { font-style: normal; font-size: 1rem; margin-left: 2px; color: rgba(255,255,255,.8); }
.stat span { font-size: .88rem; color: rgba(255, 255, 255, .72); }

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.03rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease;
}

.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost { border-color: var(--border-strong); color: var(--text); background: var(--surface); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-dark); }

/* ---------------------------------------------------------
   端末モック（スクリーンショット枠）
   --------------------------------------------------------- */
.phone {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border: 10px solid #222b36;
  border-radius: 34px;
  background: #222b36;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone > img,
.phone > .shot-missing {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: var(--bg-soft);
  object-fit: cover;
  object-position: top center;
}

/* 画像が未挿入のときに出るプレースホルダー（assets/app.js が差し替える） */
.shot-missing {
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
  padding: 24px;
  color: var(--text-faint);
  font-size: .84rem;
  line-height: 1.7;
  background: repeating-linear-gradient(45deg, #eef1f5 0 12px, #e6eaf0 12px 24px);
}

.shot-missing strong { display: block; font-size: .95rem; color: var(--text-sub); }
.shot-missing code { font-size: .78rem; word-break: break-all; }

/* 本文中に並べるスクリーンショット */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin: 28px 0 36px;
}

.shots figure { margin: 0; }

.shots figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: .92rem;
  color: var(--text-sub);
}

/* ---------------------------------------------------------
   カード
   --------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--text-sub); font-size: .98rem; }

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  background: var(--blue-pale);
}

/* 4枚を1行に並べたいとき（決めごとセクション） */
.cards--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card__icon--green  { background: #e8f5e9; }
.card__icon--orange { background: #fff3e0; }
.card__icon--purple { background: #ede7f6; }
.card__icon--red    { background: #ffebee; }
.card__icon--yellow { background: #fff8e1; }

/* 使い方トップの機能一覧（リンクカード） */
a.card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

a.card:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: var(--shadow);
  color: inherit;
}

a.card .card__more {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue-dark);
  font-weight: 700;
  font-size: .95rem;
}

/* ---------------------------------------------------------
   手順（番号つき）
   --------------------------------------------------------- */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 24px 0;
  padding: 0;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 26px 62px;
  border-left: 2px solid var(--border);
  margin-left: 19px;
}

.steps > li:last-child { border-left-color: transparent; padding-bottom: 4px; }

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: -20px;
  top: -2px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.05rem;
}

.steps > li > strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.steps > li p { margin: 0 0 6px; color: var(--text-sub); }
.steps ul { margin: 6px 0 0; padding-left: 1.3em; color: var(--text-sub); }

/* ---------------------------------------------------------
   注意書き
   --------------------------------------------------------- */
.note {
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 24px 0;
  border-left: 6px solid var(--blue);
  background: var(--blue-pale);
}

.note--warn   { border-left-color: var(--yellow); background: #fff8e1; }
.note--danger { border-left-color: var(--red);    background: #ffebee; }
.note--tip    { border-left-color: var(--green);  background: #e8f5e9; }

.note p { margin: 0; }
.note p + p { margin-top: 8px; }
.note strong { display: block; margin-bottom: 4px; }
.note ul { margin: 8px 0 0; padding-left: 1.3em; }



/* ---------------------------------------------------------
   セクションの明暗リズム
   --------------------------------------------------------- */
.section--soft { background: var(--bg-soft); }
section.section--soft + section, section + section.section--soft { border-top: 0; }

/* ---------------------------------------------------------
   親の声（吹き出し）
   --------------------------------------------------------- */
.voices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin: 36px 0 8px;
}

.voice {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px 20px 20px 4px;
  padding: 24px 26px 20px;
  font-size: 1.06rem;
  line-height: 1.8;
  box-shadow: var(--shadow-sm);
  color: var(--text);
}

.voice::before {
  content: "“";
  position: absolute;
  top: 6px;
  left: 16px;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--blue-pale);
  font-family: Georgia, serif;
}

.voice p { margin: 0; position: relative; }

.voice cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: .85rem;
  color: var(--text-faint);
}

/* ---------------------------------------------------------
   締めの誘導帯
   --------------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(760px 380px at 80% 0%, rgba(142, 203, 255, .35), transparent 60%),
    linear-gradient(135deg, #0f3b78, #1565c0);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.cta-band h2 { color: #fff; font-size: 1.9rem; margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 0 auto 36px; max-width: 36em; }
.cta-band .hero__actions { justify-content: center; }
.cta-band .btn--primary { background: #fff; color: var(--blue-dark); }
.cta-band .btn--primary:hover { background: var(--blue-pale); color: var(--blue-dark); }
.cta-band .btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.cta-band .btn--ghost:hover { border-color: #fff; color: #fff; }

/* ---------------------------------------------------------
   課題と答え（コンセプト説明）
   --------------------------------------------------------- */
.problem {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 28px 0 8px;
}

.problem__side { padding: 28px 30px; }

.problem__side--issue {
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
}

.problem__side--answer { background: var(--surface); }

.problem__tag {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.problem__tag--issue  { background: #fff1f1; color: #b3261e; }
.problem__tag--answer { background: var(--blue-pale); color: var(--blue-dark); }

.problem__side h3 { margin: 0 0 10px; font-size: 1.18rem; }
.problem__side p { margin: 0 0 12px; color: var(--text-sub); font-size: .99rem; }
.problem__side p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------
   操作の流れ（手段→相手 / 相手→手段 の対比）
   --------------------------------------------------------- */
.flow { margin: 18px 0 0; }

.flow__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.flow__row:last-child { margin-bottom: 0; }

.flow__step {
  padding: 7px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border-strong);
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
}

.flow__step--who {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.flow__step--how {
  background: #e8f5e9;
  border-color: #a5d6a7;
  color: #1b5e20;
}

.flow__step--hunt {
  background: repeating-linear-gradient(45deg, #f2f4f7 0 6px, #e9edf2 6px 12px);
  color: var(--text-faint);
  border-style: dashed;
}

.flow__arrow { color: var(--text-faint); font-weight: 700; flex: none; }

.flow__group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.flow__note {
  margin: 12px 0 0;
  font-size: .92rem;
  color: var(--text-faint);
}

@media (max-width: 820px) {
  .problem { grid-template-columns: 1fr; }
  .problem__side--issue { border-right: 0; border-bottom: 1px solid var(--border); }
  .problem__side { padding: 24px 22px; }
}

/* ---------------------------------------------------------
   表
   --------------------------------------------------------- */
.table-wrap { overflow-x: auto; margin: 24px 0; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 420px;
  font-size: .98rem;
}

th, td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}

th { background: var(--bg-soft); font-weight: 700; white-space: nowrap; }

/* ---------------------------------------------------------
   よくある質問
   --------------------------------------------------------- */
.faq { margin: 24px 0; }

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--surface);
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::before {
  content: "Q";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue-dark);
  display: grid;
  place-items: center;
  font-size: .9rem;
}

.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq .faq__body { padding: 18px 22px 20px 62px; color: var(--text-sub); }
.faq .faq__body > :first-child { margin-top: 0; }
.faq .faq__body > :last-child { margin-bottom: 0; }

/* ---------------------------------------------------------
   目次
   --------------------------------------------------------- */
.toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 0 0 44px;
}

.toc h2 { font-size: 1.05rem; margin: 0 0 10px; }
.toc ul { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 6px; break-inside: avoid; }

/* ---------------------------------------------------------
   ページ見出し
   --------------------------------------------------------- */
.page-head {
  background: linear-gradient(180deg, #fbfdff, var(--bg));
  border-bottom: 1px solid var(--border);
  padding: 44px 0 40px;
}

.breadcrumb {
  font-size: .92rem;
  color: var(--text-faint);
  margin: 0 0 14px;
}

.breadcrumb a { color: var(--text-sub); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.page-head h1 { margin: 0 0 12px; }
.page-head p { margin: 0; color: var(--text-sub); font-size: 1.05rem; }

/* ---------------------------------------------------------
   前後リンク
   --------------------------------------------------------- */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding: 32px 0 0;
  margin: 56px 0 0;
}

.pager a { text-decoration: none; font-weight: 700; color: var(--blue-dark); }

/* ---------------------------------------------------------
   フッター
   --------------------------------------------------------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-faint);
  font-size: .92rem;
}

.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a { color: var(--text-sub); }

/* ---------------------------------------------------------
   狭い画面
   --------------------------------------------------------- */
@media (max-width: 1080px) {
  .float-card--a { left: -18px; }
  .float-card--b { right: -8px; }
}

@media (max-width: 820px) {
  body { font-size: 17px; }
  .hero { padding: 56px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 { font-size: 2.15rem; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); margin-top: 44px; }
  .float-card { display: none; }
  section { padding: 48px 0; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  .toc ul { columns: 1; }
  .site-nav { width: 100%; margin-left: 0; }
  .faq .faq__body { padding-left: 22px; }
}

@media print {
  .site-header, .pager { display: none; }
  body { font-size: 12pt; }
  .faq details { break-inside: avoid; }
  .faq details .faq__body { display: block; }
}
