/* トークンのぞき見 — 生成物（編集は build.mjs 側で） */
:root {
  --band: #E6F1FB;
  --line: #B5D4F4;
  --accent-soft: #85B7EB;
  --accent: #378ADD;
  --label: #185FA5;
  --title: #0C447C;
  --text: #0b2540;
  --text2: #33475c;
  --sub: #6b7f92;
  --sub2: #8aa0b5;
  --card-bg: #ffffff;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
}

a { color: var(--accent); }
a:hover { color: var(--label); }

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* ---- ヘッダー ---- */
.hero {
  background: var(--band);
  border-bottom: 2px solid var(--line);
  padding: 28px 16px 24px;
  text-align: center;
}
.hero-inner { max-width: 640px; margin: 0 auto; }
.hero-logo { font-size: 2rem; margin: 0; }
.hero-title {
  margin: 4px 0 0;
  color: var(--title);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.hero-copy {
  margin: 6px 0 0;
  color: var(--label);
  font-weight: 700;
  font-size: 1rem;
}

/* ---- 共通セクション ---- */
.section { margin: 28px 0; }
.section-title {
  color: var(--title);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 12px;
}

/* ---- プライバシー明記 ---- */
.privacy-note {
  background: var(--band);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--label);
  font-weight: 700;
  font-size: 0.88rem;
  text-align: center;
  margin: 20px 0 0;
}

/* ---- 入力エリア ---- */
.input-label {
  display: block;
  color: var(--title);
  font-weight: 800;
  margin-bottom: 8px;
}
.input-textarea {
  width: 100%;
  min-height: 120px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  resize: vertical;
}
.input-textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.char-counter {
  text-align: right;
  color: var(--sub);
  font-size: 0.8rem;
  margin: 4px 0 0;
}
.input-feedback {
  color: #a33a19;
  font-size: 0.86rem;
  font-weight: 700;
  margin: 6px 0 0;
}

.sample-list { margin: 16px 0; }
.sample-list-label { color: var(--label); font-weight: 700; font-size: 0.85rem; margin: 0 0 8px; }
.sample-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.sample-btn {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--label);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  min-height: 44px;
  transition: transform 0.1s ease-out, background 0.15s, border-color 0.15s;
}
.sample-btn:hover { background: var(--band); border-color: var(--accent); }
.sample-btn:active { transform: scale(0.97); }

.btn-primary {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 16px auto 0;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  min-height: 44px;
  transition: transform 0.1s ease-out, background 0.15s;
}
.btn-primary:hover { background: var(--label); }
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  display: block;
  margin: 14px auto 0;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  color: var(--label);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  min-height: 44px;
  transition: transform 0.1s ease-out, border-color 0.15s;
}
.btn-secondary:hover { border-color: var(--accent); }
.btn-secondary:active { transform: scale(0.97); }

/* ---- イルカの待ち演出 ---- */
.loading-section { text-align: center; }
.dolphin-loading { padding: 20px 0; }
.dolphin-loading-emoji {
  font-size: 2.4rem;
  margin: 0;
  display: inline-block;
  animation: dolphin-bounce 0.9s ease-in-out infinite;
}
@keyframes dolphin-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-8deg); }
}
.dolphin-loading-text {
  color: var(--label);
  font-weight: 700;
  margin: 8px 0 0;
}
.loading-spinner {
  width: 28px;
  height: 28px;
  margin: 12px auto 0;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- 色分け結果 ---- */
.token-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  min-height: 48px;
}
.token-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border-radius: 8px;
  padding: 4px 6px;
  font-size: 0.95rem;
  border: 1px solid rgba(12, 68, 124, 0.12);
  white-space: pre-wrap;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out, outline 0.15s;
  cursor: default;
}
.token-chip-multi {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.token-chip-multi:focus-visible { outline: 3px solid var(--title); outline-offset: 2px; }
.token-chip.token-chip-in { opacity: 1; transform: translateY(0); }
.token-chip-multi { border: 1.5px dashed var(--accent); font-weight: 700; }
.token-chip-multi:hover, .token-chip-multi:active {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.token-chip-badge {
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 800;
}
.token-summary {
  margin: 12px 0 0;
  color: var(--title);
  font-weight: 800;
  font-size: 1.05rem;
}
.tap-hint { color: var(--sub); font-size: 0.82rem; margin: 6px 0 0; }
.token-detail {
  background: var(--band);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: var(--label);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.6;
  margin: 10px 0 0;
  padding: 10px 12px;
  word-break: break-word;
}

/* ---- 日英対決 ---- */
.duel-lead { color: var(--text2); font-size: 0.9rem; margin: 0 0 14px; }
.duel-pair {
  background: var(--card-bg);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
}
.duel-row + .duel-row { margin-top: 18px; }
.duel-lang-label { margin: 0 0 4px; color: var(--label); font-weight: 700; font-size: 0.85rem; }
.duel-text { margin: 0 0 8px; color: var(--text); font-size: 0.92rem; }
.duel-meter-track {
  width: 100%;
  height: 14px;
  background: var(--band);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.duel-meter-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease-out;
}
.duel-meter-ja { background: var(--accent); }
.duel-meter-en { background: var(--accent-soft); }
.duel-count { margin: 6px 0 0; color: var(--text2); font-size: 0.85rem; font-weight: 700; }
.duel-verdict { margin: 16px 0 0; color: var(--title); font-weight: 800; text-align: center; }

/* ---- 豆知識カード ---- */
.trivia-card {
  background: var(--band);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
}
.trivia-title { margin: 0 0 8px; color: var(--title); font-weight: 800; font-size: 1.02rem; }
.trivia-body { margin: 0 0 8px; color: var(--text2); font-size: 0.9rem; }
.trivia-source { margin: 0; color: var(--sub); font-size: 0.75rem; }

/* ---- 注意書き ---- */
.notice-text {
  color: var(--sub); font-size: 0.82rem; text-align: center;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}

/* ---- シェア ---- */
.share-section { text-align: center; }
.share-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  min-height: 44px;
}
.share-btn:hover { background: var(--label); }

/* ---- 導線リンク ---- */
/* ---- 広告枠 / フッター ---- */
.ad-slot { min-height: 0; margin: 32px 0; }
.site-footer {
  background: var(--band);
  border-top: 2px solid var(--line);
  text-align: center;
  padding: 20px 16px 24px;
  color: var(--sub);
  font-size: 0.8rem;
}
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--label); }

/* ---- スマホ幅の微調整 ---- */
@media (max-width: 480px) {
  .hero-title { font-size: 1.5rem; }
  .sample-buttons { gap: 6px; }
}
