/* ノロケテ 紹介・サポートサイト共通スタイル
   色はアプリのテーマ（design/assets/nk.css の .th-h / .th-w / .th-g）と同じ値。 */
:root {
  /* 夫＝ピンク */
  --h-fill: #FDA1A7;
  --h-on: #5C1F28;
  --h-accent: #BF4A5C;
  --h-tint: #FFEFF0;
  /* 妻＝水色 */
  --w-fill: #96D7F6;
  --w-on: #0E3D5A;
  --w-accent: #2B74A3;
  --w-tint: #ECF7FD;
  /* 見守り＝グレー */
  --g-accent: #5E6875;
  --g-tint: #EEF0F3;

  --ink: #2B2530;
  --muted: #5F5862;
  --line: #ECE6EA;
  --bg: #FFFFFF;

  --font-body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Segoe UI", "Noto Sans", "Noto Sans JP", "Noto Sans TC", "Noto Sans KR", "Noto Sans Thai", "PingFang TC", "Apple SD Gothic Neo", "Yu Gothic UI", Meiryo, Roboto, Helvetica, Arial, sans-serif;
  /* 見出し：iPhone・Mac では丸ゴシック（アプリの M PLUS Rounded 1c に近い雰囲気） */
  --font-round: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "M PLUS Rounded 1c", "Arial Rounded MT Bold", var(--font-body);

  --wrap: 1080px;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

img { max-width: 100%; }

a { color: var(--w-accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--w-accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.4; font-family: var(--font-round); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }

/* ───────── ヘッダー（ロゴ＋アプリ名／言語ボタン） */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-round);
  font-weight: 800;
  font-size: 1.15rem;
}
.brand img { display: block; height: 28px; width: auto; }

/* 言語メニュー */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s ease;
}
.lang-menu[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.lang-menu summary:hover { border-color: var(--h-fill); }
.lang-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  margin: 0;
  padding: 6px;
  list-style: none;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px -12px rgba(92, 31, 40, 0.28);
}
.lang-menu li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.3;
}
.lang-menu li a:hover { background: var(--h-tint); }
.lang-menu li a[aria-current] { font-weight: 700; background: var(--w-tint); }
.lang-menu li a[aria-current]::after { content: "✓"; margin-left: auto; padding-left: 12px; color: var(--w-accent); }

/* ───────── フッター */
.site-footer {
  margin-top: 0;
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer p { margin: 0.4em 0; }
.foot-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-family: var(--font-round); font-weight: 800; }
.foot-brand img { height: 24px; width: auto; }
.foot-links { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.foot-links a[aria-current] { font-weight: 700; color: var(--h-accent); text-decoration: none; }
.copy { font-size: 0.85rem; }

/* ───────── サポート・規約などのページ */
.doc { max-width: 760px; margin: 0 auto; padding: 8px 20px 56px; }
.doc h1 { font-size: 1.7rem; margin: 1.2em 0 0.6em; color: var(--ink); }
.doc h2 { font-size: 1.2rem; margin: 2em 0 0.6em; padding-bottom: 0.3em; border-bottom: 2px solid var(--h-tint); }
.doc h3 { font-size: 1.05rem; margin: 1.6em 0 0.4em; }
.doc p, .doc ul, .doc ol, .doc dl { margin: 0 0 1em; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin: 0.25em 0; }
.doc dl { border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; }
.doc dt { font-weight: 700; margin-top: 12px; color: var(--h-accent); }
.doc dd { margin: 4px 0 12px; }
.doc dd p:last-child, .doc dd ul:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; }


.prevail, .note {
  padding: 10px 14px;
  border-left: 4px solid var(--w-accent);
  background: var(--w-tint);
  border-radius: 0 10px 10px 0;
  font-size: 0.95rem;
}
.note { border-left-color: var(--h-accent); background: var(--h-tint); }

.qa { padding: 2px 0 6px; border-bottom: 1px dashed var(--line); }
.qa:last-child { border-bottom: 0; }

.dates { margin-top: 2.5em; color: var(--muted); font-size: 0.9rem; text-align: right; }

/* ───────── App Store ボタン（Apple のバッジ画像は使わない） */
.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--h-fill);
  color: var(--h-on);
  font-family: var(--font-round);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 0 -1px #F28C93;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.store-btn:hover { transform: translateY(-1px); box-shadow: 0 7px 0 -1px #F28C93; }
.store-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 -1px #F28C93; }

/* ───────── 画面の切り出し（文字が読める大きさで、角丸のカードとして見せる） */
.shot {
  margin: 0;
  overflow: hidden;
  background: #FFFFFF;
  border-radius: 26px;
  border: 1px solid rgba(43, 37, 48, 0.08);
  box-shadow: 0 28px 50px -24px rgba(92, 31, 40, 0.32), 0 10px 22px -14px rgba(14, 61, 90, 0.2);
}
.shot img { display: block; width: 100%; height: auto; }

/* ───────── LP */
.lp h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); font-weight: 800; margin: 0 0 0.6em; letter-spacing: 0.01em; text-wrap: balance; word-break: auto-phrase; }
.lp section > .wrap { padding-top: 72px; padding-bottom: 72px; }

/* ヒーロー：ロゴの2つのハートのように、ピンクと水色の円が重なる */
.hero { overflow: hidden; }
.hero .wrap.hero-grid { padding-top: 48px; padding-bottom: 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.hero h1 {
  margin: 0 0 0.5em;
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: 0.01em;
  text-wrap: balance;
  word-break: auto-phrase;
}
.lead { font-size: 1.08rem; color: var(--ink); margin: 0 0 1.6em; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 1em 0 0; color: var(--muted); font-size: 0.92rem; }

.hero-art { position: relative; padding: 24px 0 128px 0; }
.disc { position: absolute; border-radius: 50%; }
.disc-h { width: 72%; aspect-ratio: 1; left: -6%; top: 8%; background: var(--h-tint); box-shadow: inset 0 0 0 2px #FFE0E3; }
.disc-w { width: 66%; aspect-ratio: 1; right: -8%; top: -4%; background: var(--w-tint); box-shadow: inset 0 0 0 2px #D9EFFB; mix-blend-mode: multiply; }
.hero-main { position: relative; z-index: 1; width: min(460px, 100%); margin-left: auto; }
.hero-sub { position: absolute; z-index: 2; left: 0; bottom: 0; width: min(330px, 68%); }
.hero-sub img { margin-bottom: -2px; }

/* 使い方（順番がある内容なので番号を付ける） */
.how { background: linear-gradient(180deg, var(--bg) 0, var(--h-tint) 100%); }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 72px; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; align-items: center; }
.step:nth-child(even) .step-text { order: 2; }
.step-text { max-width: 30em; }
.step-no {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--h-fill);
  color: var(--h-on);
  font-family: var(--font-round);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.step-2 .step-no { background: var(--w-fill); color: var(--w-on); }
.step h3 { margin: 0 0 0.4em; font-size: 1.35rem; font-weight: 800; }
.step p { margin: 0; font-size: 1.05rem; }

/* 大好きレベル */
.level { background: var(--w-tint); }
.level-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; align-items: center; }
.level-text p { font-size: 1.08rem; max-width: 30em; margin: 0; }
.level-text h2 { color: var(--w-on); }

/* 安心して使えるように */
.safe-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.safe-list li { padding: 18px 0 18px 22px; border-top: 1px solid var(--line); position: relative; }
.safe-list li::before { content: ""; position: absolute; left: 0; top: 28px; width: 10px; height: 10px; border-radius: 50%; background: var(--h-fill); }
.safe-list li:nth-child(even)::before { background: var(--w-fill); }
.safe-list h3 { margin: 0 0 0.2em; font-size: 1.08rem; font-weight: 800; }
.safe-list p { margin: 0; color: var(--muted); }

/* 見守りさん・広告の非表示 */
.options-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.lp .options .wrap { padding-top: 0; }
.panel { border-radius: 28px; padding: 32px; }
.panel h2 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); }
.panel p { margin: 0; }
.panel-watcher { background: var(--g-tint); }
.panel-watcher h2 { color: #2F353D; }
.panel-ads { background: var(--h-tint); }
.panel-ads h2 { color: var(--h-on); }

/* よくある質問 */
.faq-list { margin: 28px 0 0; max-width: 760px; border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; min-height: 44px; padding: 18px 44px 18px 0; position: relative; font-family: var(--font-round); font-weight: 800; font-size: 1.08rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ''; position: absolute; right: 12px; top: 50%; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.faq-item p { margin: 0 0 18px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }
.faq-more { margin: 28px 0 0; font-weight: 700; }

/* 締め */
.closing { background: linear-gradient(90deg, var(--h-tint) 0 50%, var(--w-tint) 50% 100%); }
.closing .wrap { text-align: center; }
.closing img { display: block; margin: 0 auto 12px; height: 51px; width: auto; }
.closing h2 { margin-bottom: 1em; }

/* ───────── ルート（言語の振り分け）と 404 */
.root-pick { max-width: 560px; margin: 0 auto; padding: 56px 20px; text-align: center; }
.root-pick img { height: 68px; width: auto; }
.root-pick h1 { font-size: 1.6rem; margin: 0.4em 0; }
.root-langs { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.root-langs a { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; }
.root-langs a:hover { border-color: var(--h-fill); background: var(--h-tint); }

/* ───────── 狭い画面 */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; width: 100%; margin: 0 auto; padding-bottom: 27%; }
  .hero-main { margin: 0 auto; }
  .steps { gap: 56px; }
  .step { grid-template-columns: 1fr; gap: 24px; }
  .step:nth-child(even) .step-text { order: 0; }
  .step .shot, .level-grid .shot { width: 100%; max-width: 520px; margin: 0 auto; }
  .level-grid { grid-template-columns: 1fr; gap: 28px; }
  .safe-list { grid-template-columns: 1fr; }
  .options-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  .lp section > .wrap { padding-top: 56px; padding-bottom: 56px; }
  .hero .wrap.hero-grid { padding-top: 28px; padding-bottom: 40px; }
  .panel { padding: 24px; border-radius: 22px; }
  .doc { padding: 4px 16px 48px; }
  .doc h1 { font-size: 1.45rem; }
  .store-btn { width: 100%; }
  .shot { border-radius: 20px; }
  .step .shot, .level-grid .shot, .hero-main { width: calc(100% + 20px); max-width: none; margin-left: -10px; margin-right: -10px; }
  .hero-sub { width: 78%; }
  .hero-art { padding-bottom: 30%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
