/* あと何回会える？ 固有スタイル（色は common.css の変数のみ） */

.h-sec { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.h-sub { font-size: 14px; font-weight: 700; color: var(--text-sub); margin: 16px 0 8px; }

/* トップ */
.hero { padding: 8px 0 16px; }
.hero .title-xl { margin-bottom: 8px; }
.hero > * + * { margin-top: 10px; }
.season-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.season-box p { margin: 6px 0 0; font-weight: 600; }
.letter-link { font-size: 14px; color: var(--text-sub); border-color: transparent; }
.landing-card { border-color: var(--accent); background: var(--accent-soft); }
.landing-q { font-weight: 800; font-size: 18px; margin-bottom: 10px; }
.daily-text { font-size: 16px; font-weight: 600; margin: 8px 0; }
.streak-line { font-size: 14px; color: var(--text-sub); margin-bottom: 8px; }

/* 登録した人 */
.person-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.person-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.person-emoji { font-size: 28px; width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border-radius: 50%; }
.person-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.45; }
.person-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-row .btn { flex: none; }
.met-list { margin: 0; padding-left: 1.2em; color: var(--text-sub); }
.danger { color: var(--bad); }

/* 対話フロー */
.flow-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.flow-head .btn { padding: 4px 10px; }
.flow-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.chat { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.bubble-row { display: flex; align-items: flex-end; gap: 8px; }
.bubble-row.me { justify-content: flex-end; }
.avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 18px; line-height: 1.6; font-size: 15px; }
.bubble.bot { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.me { background: var(--accent-soft); border-bottom-right-radius: 4px; font-weight: 600; }
.bubble.in, .panel-inner.in { animation: ato-rise .5s ease both; }
.panel-inner.in { animation-delay: .15s; }
@keyframes ato-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.panel { background: var(--surface-2); border-radius: var(--radius); padding: 14px; }
.choices.cols-2 { grid-template-columns: 1fr 1fr; }
.choices.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.choices.cols-2 .choice, .choices.cols-3 .choice { padding: 12px 10px; font-size: 15px; }
.cols-3 .choice { text-align: center; }
.custom summary { font-size: 13px; }
.custom input[type="number"] { width: 90px; flex: none; min-height: 40px; }
.slider-row { display: flex; align-items: center; gap: 10px; }
.slider-row input[type="range"] { flex: 1; min-width: 0; }
.slider-num { display: flex; align-items: center; gap: 4px; flex: none; font-weight: 700; }
.slider-num input { width: 72px; min-height: 44px; text-align: right; font-weight: 700; font-size: 18px; padding: 6px 8px; }
.typing { display: flex; gap: 6px; justify-content: center; padding: 12px; }
.typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--text-sub); animation: ato-blink 1.2s infinite ease-in-out both; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes ato-blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }

/* 結果 */
.result-lead { font-size: 18px; font-weight: 700; text-align: center; margin: 8px 0 0; }
.result-big { text-align: center; margin: 0 0 8px; color: var(--accent); display: flex; justify-content: center; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.result-card.is-pet .result-big { color: var(--good); }
.small-word { font-size: 20px; font-weight: 800; color: var(--text); }
.result-card .stats { margin-top: 12px; }
.dots { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; background: var(--surface-2); border-radius: var(--radius-sm); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.past { background: var(--line); }
.dot.left { background: var(--accent); animation: ato-dot .6s ease both; }
.dots.is-pet .dot.left, .dot.left.pet { background: var(--good); }
@keyframes ato-dot { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0; color: var(--text-sub); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .dot { animation: none; }
.healthy { color: var(--text-sub); border-left: 3px solid var(--good); padding-left: 10px; }

.boost-card { border-color: var(--good); }
.boost-lead { font-weight: 700; color: var(--text); margin-bottom: 8px; }
.boost { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 10px; }
.boost-out { margin: 6px 0 0; font-size: 15px; }
.plus { color: var(--good); font-size: 22px; font-weight: 900; }
.boost-cta { font-weight: 700; margin: 4px 0 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip { border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 999px; padding: 8px 12px; font-size: 13px; cursor: pointer; min-height: 36px; text-align: left; touch-action: manipulation; }
.chip:active { transform: scale(.97); }
.chip:hover { border-color: var(--accent); }
.date-input { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; width: 100%; min-height: 48px; margin-bottom: 10px; }
.next-set { margin: 0; font-size: 15px; }
.share-area { margin: 8px 0 16px; }
.result-nav { margin-bottom: 8px; }
.result-nav .btn { min-width: 0; }
.bar-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; }
.bar-row.is-me .bar-label { font-weight: 800; color: var(--accent); }
.bar-label { width: 96px; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-pct { width: 44px; text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.src-list { margin: 4px 0 8px; padding-left: 1.2em; }

/* メッセージ */
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.msg-preview { white-space: pre-wrap; background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px; margin: 8px 0 0; }

/* 手紙 */
.letter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; margin: 8px 0 12px; box-shadow: var(--shadow);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, var(--line) 35px, var(--line) 36px);
  line-height: 36px; font-size: 17px; }
.letter p { margin: 0 0 36px; white-space: pre-wrap; }
.letter p:last-child { margin-bottom: 0; text-align: right; }
.soft-card { background: var(--surface-2); box-shadow: none; }

/* 静的解説 */
.about h2 { font-size: 20px; margin-top: 24px; }
.about h3 { font-size: 16px; margin-top: 18px; }
.about p, .about li { font-size: 14px; }
.about .formula { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; font-weight: 600; }
.table-wrap { overflow-x: auto; }
.life-table { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
.life-table th, .life-table td { border-bottom: 1px solid var(--line); padding: 4px 6px; text-align: right; }
.life-table th:first-child, .life-table td:first-child { text-align: left; }
.life-table thead th { color: var(--text-sub); }

@media (max-width: 380px) {
  .choices.cols-2 .choice, .choices.cols-3 .choice { font-size: 14px; padding: 10px 8px; }
  .bubble { max-width: 88%; }
  .slider-num input { width: 62px; }
  .bar-label { width: 80px; }
}
