/* ============================================
   ライトテーマ — 読みやすさ・余白・フォント改善版
   Straight / Minimal / Contrast / Playful
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #fff;
  color: #111;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ── Progress bar ── */
.progress-line {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: #e8e8e8;
  z-index: 200;
}
.progress-line-fill {
  height: 100%;
  background: #CAFF4D;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Step animation ── */
.question-step        { display: none; }
.question-step.active { display: block; animation: stepIn 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Option buttons ── */
.option-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.625rem;
  border: 1.5px solid #ddd;
  border-radius: 14px;
  background: #fff;
  color: #3a3a3a;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s, box-shadow 0.18s;
  font-size: 1rem;
  line-height: 1.5;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
}
.option-btn::before {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid #ccc;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.option-btn:hover {
  border-color: #8ac000;
  background: rgba(202, 255, 77, 0.1);
  color: #1a1a1a;
}
.option-btn:hover::before {
  border-color: #8ac000;
}

/* ★ 選択済み：ライムグリーンで塗りつぶし → 一目でわかる */
.option-btn.selected {
  border-color: #CAFF4D;
  background: #CAFF4D;
  color: #000;
  font-weight: 900;
  box-shadow: 0 4px 18px rgba(202, 255, 77, 0.45);
}
.option-btn.selected::before {
  border-color: #000;
  background: #000;
  box-shadow: none;
}

/* ── Primary button ── */
.btn-primary {
  display: block;
  width: 100%;
  background: #CAFF4D;
  color: #000;
  font-weight: 900;
  font-size: 1.05rem;
  border-radius: 9999px;
  padding: 1.1rem 1.75rem;
  border: none;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.02em;
  text-align: center;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-primary:hover:not(:disabled) {
  background: #d8ff6b;
  box-shadow: 0 0 28px rgba(202, 255, 77, 0.5);
}
.btn-primary:disabled {
  background: #dceec0;
  color: #7a9e50;
  cursor: not-allowed;
}

/* ── Secondary button ── */
.btn-secondary {
  background: transparent;
  color: #52525b;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 9999px;
  padding: 0.9rem 1.5rem;
  border: 1.5px solid #d0d0d0;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-secondary:hover {
  border-color: #a0a0a0;
  color: #222;
}

/* ── Form inputs ── */
/* ★ 薄いライム地 + グリーンボーダー → 入力欄だと一目でわかる */
.dark-input {
  width: 100%;
  background: #f7fde8;
  border: 2px solid #a8d050;
  border-radius: 12px;
  color: #111;
  padding: 1rem 1.25rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.dark-input::placeholder {
  color: #9ab858;
  font-weight: 400;
}
.dark-input:focus {
  outline: none;
  background: #f2fcd8;
  border-color: #3d6b00;
  box-shadow: 0 0 0 4px rgba(202, 255, 77, 0.35);
}
.dark-input option {
  background: #fff;
  color: #111;
}

/* Select — custom chevron arrow */
select.dark-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236a9a20' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 1.1rem;
  padding-right: 3rem;
  cursor: pointer;
}

/* ── Pet select buttons ── */
.pet-btn {
  border: 1.5px solid #ddd;
  border-radius: 14px;
  background: #fafafa;
  color: #888;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}
.pet-btn:hover  { border-color: #8ac000; color: #1a1a1a; background: rgba(202,255,77,0.1); }
.pet-btn.active {
  border-color: #CAFF4D;
  background: #CAFF4D;
  color: #000;
  font-weight: 900;
  box-shadow: 0 4px 18px rgba(202, 255, 77, 0.45);
}

/* ── Score bar ── */
.score-bar-fill { transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1); }

/* ── Breed card ── */
.breed-card {
  background: #f8f8f8;
  border: 1.5px solid #e5e5e5;
  border-radius: 16px;
  padding: 1.25rem;
  transition: border-color 0.2s;
}
.breed-card:hover { border-color: #ccc; }

/* ── Link buttons ── */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: 'Noto Sans JP', sans-serif;
  transition: opacity 0.15s;
}
.share-btn:hover { opacity: 0.82; }

/* ── Segment dots ── */
.seg-dot {
  height: 4px;
  border-radius: 9999px;
  flex: 1;
  background: #e0e0e0;
  transition: background 0.3s;
}
.seg-dot.done { background: #CAFF4D; }

/* ── 回答確認アコーディオン ── */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary span:last-child { transform: rotate(180deg); }
details > summary span:last-child { display: inline-block; transition: transform 0.2s ease; }

/* ── Ticker / Marquee ── */
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: tickerScroll var(--ticker-dur, 20s) linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }

/* ── Form label ── */
.field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}
.field-label span { color: #3d6b00; }
