/* 方向 4「無口な器」用 dan.css（段＝質問画面）。app.css（エンジン同梱）の上に重ねて、
   静的ページ（site.css）と同じ器にする: 白地、端末の標準書体、1px の薄い線、角丸 8px、影なし。
   選択肢は白地に 1px 線の行。緑は「はじめる」ボタンと押した選択肢の線だけ */

:root {
  --bg: #ffffff;
  --card: #ffffff;
  --paper: #ffffff;
  --paper-sub: #f5f7f8;
  --ink: #313131;
  --sub: #5f6a70;
  --line: #e1e4e8;
  --line-strong: #c9ced3;
  --accent: #1f5a46;
  --accent-d: #174737;
  --accent-soft: #f5f7f8;
  --focus: #1f5a46;
  --radius: 8px;
  --shadow: none;
  --shadow-hover: none;
  --shadow-btn: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

.phone {
  max-width: 520px;
  background: var(--bg);
}
@media (min-width: 600px) {
  .phone {
    height: min(100dvh - 32px, 820px);
    border-radius: 0;
    box-shadow: none;
    border: 0;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    background: var(--bg);
  }
}

.screen {
  padding: max(env(safe-area-inset-top), 14px) 18px max(env(safe-area-inset-bottom), 20px);
}

/* 上部パンくずバー */
.dan-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--sub);
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
  width: 100%;
  flex: none;
}
.dan-nav a {
  color: var(--sub);
  text-decoration: none;
}
.dan-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.dan-nav .ad-pill {
  font-size: 11px;
  color: var(--sub);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1px 8px;
  border-radius: 999px;
}

/* 場面の挿絵（段の上） */
.dan-scene {
  flex: none;
  width: 100%;
  height: clamp(110px, 18dvh, 140px);
  object-fit: contain;
  margin: 0 auto;
}

/* スタート画面: 左寄せ。問いの画面と同じ組み */
.start { align-items: stretch; text-align: left; }
.start .mid { align-items: flex-start; }
.start .mid {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 10px 0 16px;
  width: 100%;
  margin: 0;
  flex: 0 0 auto;
  justify-content: flex-start;
  gap: 10px;
}
.start .fine { margin-top: auto; }
.start .kicker {
  color: var(--sub);
  background: none;
  border-radius: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.start h1 {
  font-weight: 700;
  font-size: clamp(20px, 5.4vw, 24px);
  line-height: 1.45;
  letter-spacing: 0;
  word-break: auto-phrase;
  text-wrap: balance;
}
.start .lead {
  color: var(--sub);
  font-size: 13.5px;
  line-height: 1.6;
}
.go {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: none;
  background: var(--accent);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 40px;
  transition: background 0.15s;
}
.go:hover { background: var(--accent-d); }
.go:active {
  transform: none;
  box-shadow: none;
  background: var(--accent-d);
}

/* 進み具合（棒になるドット） */
.dot {
  width: 8px;
  height: 8px;
  background: var(--line);
  transition: all 0.2s ease;
}
.dot.done {
  background: var(--line-strong);
  opacity: 1;
}
.dot.on {
  width: 22px;
  border-radius: 999px;
  background: var(--ink);
  transform: none;
}

/* 質問画面 */
.q .top {
  margin-bottom: 4px;
}
.q .back {
  color: var(--sub);
  font-weight: 400;
  width: auto;
  min-width: 54px;
}
.q .back:hover {
  color: var(--ink);
  text-decoration: underline;
}
.q .count {
  color: var(--sub);
}
.qtext {
  font-weight: 700;
  text-align: left;
  font-size: clamp(19px, 5vw, 22px);
  line-height: 1.45;
  padding: clamp(8px, 2dvh, 20px) 0 clamp(10px, 2.2dvh, 18px);
  word-break: auto-phrase;
}
.choices {
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
}
.choice {
  width: 100%;
  background: var(--paper) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 15px 18px;
  height: auto;
  min-height: 60px;
  text-align: left;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.choice:hover {
  border-color: var(--line-strong);
  background: var(--paper-sub) !important;
  box-shadow: none;
  transform: none;
}
.choice .big {
  font-weight: 700;
  font-size: clamp(15px, 4.2vw, 16px);
  line-height: 1.4;
}
.choice .small {
  font-size: 12px;
  color: var(--sub);
  opacity: 1;
}
.choice:active {
  transform: none;
  box-shadow: none;
}
.choice.picked {
  background: var(--paper-sub) !important;
  border-color: var(--accent);
  animation: none;
}
.skip {
  color: var(--sub);
  font-size: 13px;
}
.skip:hover {
  color: var(--ink);
}
