@charset "UTF-8";

/*
 * ヤットク AIホームページ診断
 *
 * 入力画面と読みものはヤットク様LPの配色（クリーム／オレンジ／黄）に合わせ、
 * 結果の総合パネルだけ濃紺に落とす。先方のデザイン案の意図どおり、
 * 「無料ツール感」ではなく「診断結果を受け取った」という手応えを出すため。
 *   クリーム #FFF3D7 ／ オレンジ #F26510 ／ 黄 #FAB718 ／ 濃紺 #16233C
 */

:root {
  --cream: #fff3d7;
  --cream-deep: #ffe7b3;
  --orange: #f26510;
  --orange-dark: #d5540a;
  --yellow: #fab718;
  --sky: #d8eef7;
  --ink: #2a1a0c;
  --ink-soft: #6b5a4a;
  --line: #e7d9bd;
  --white: #fff;
  --danger: #d64000;
  --green: #2fa84f;

  /* 結果パネル */
  --navy: #16233c;
  --navy-soft: #223252;
  --navy-line: rgba(255, 255, 255, .16);
  --navy-text: #c3cee0;

  --radius: 18px;
  --radius-pill: 999px;
  --shadow: 0 2px 0 rgba(42, 26, 12, .1), 0 12px 28px -18px rgba(42, 26, 12, .5);
  /* 2026-08-09 先方のご要望で両サイドの余白を詰めて幅広に。
     ただし本文は1行が長くなりすぎると読みにくいので、読みものだけ別枠で抑える */
  --max: 1240px;
  --max-read: 900px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .01em;
}

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 20px 72px;
}

.hidden { display: none !important; }

/* ---------- 上の帯 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 247, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: .95rem;
}

.topbar__brand img { width: 26px; height: auto; }

.topbar__cta {
  font-size: .8rem;
  font-weight: 800;
  color: var(--white);
  background: var(--orange);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
}

.topbar__cta:hover { background: var(--orange-dark); }

/* ---------- 入力 ---------- */

.hero {
  display: grid;
  gap: 8px;
  padding: 18px 0 4px;
}

.hero__eyebrow {
  margin: 0 0 4px;
  font-size: .85rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.hero__title {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 5.4vw, 2.15rem);
  line-height: 1.42;
  font-weight: 900;
}

.hero__title em {
  font-style: normal;
  color: var(--orange);
  /* 下線を文字の背後に敷いて、LPの手書き強調に寄せる */
  background: linear-gradient(transparent 62%, var(--cream-deep) 62%);
}

.chips {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: .74rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
}

.hero__lead {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: .95rem;
}

.hero__art { display: none; }

.form {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: left;
}

.form__label {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 8px;
}

.form__row { display: flex; flex-direction: column; gap: 10px; }

.form input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: #fffdf7;
  border: 2px solid var(--line);
  border-radius: 12px;
}

.form input[type="text"]:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(242, 101, 16, .16);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  font-size: 1.02rem;
  font-weight: 800;
  font-family: inherit;
  color: var(--white);
  background: var(--orange);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--orange-dark);
  transition: transform .08s ease, box-shadow .08s ease;
}

.button:hover { background: var(--orange-dark); }
.button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--orange-dark); }
.button:disabled { opacity: .55; cursor: not-allowed; }

.button--line { background: #06c755; box-shadow: 0 4px 0 #04a445; }
.button--line:hover { background: #04a445; }

.button--ghost {
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 0 4px 0 rgba(42, 26, 12, .25);
}
.button--ghost:hover { background: #fff9ec; }

.form__note { margin: 12px 0 0; font-size: .78rem; color: var(--ink-soft); }

/* ---------- 診断中 ---------- */

.loading { text-align: center; padding: 32px 20px 40px; }

.loading__chick {
  width: 132px;
  height: auto;
  display: inline-block;
  animation: hop .9s ease-in-out infinite;
}

@keyframes hop {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.loading__title { margin: 10px 0 18px; font-size: 1.15rem; font-weight: 800; }
.loading__text { margin: 10px 0 0; color: var(--ink-soft); font-size: .88rem; min-height: 1.85em; }

.progress {
  height: 12px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  overflow: hidden;
  max-width: 420px;
  margin: 22px auto 0;
}

.progress__bar {
  height: 100%;
  width: 6%;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  transition: width .6s ease;
}

.steps {
  list-style: none;
  margin: 0 auto;
  padding: 16px 18px;
  max-width: 360px;
  text-align: left;
  display: grid;
  gap: 9px;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  font-weight: 700;
  color: #a2907c;
  transition: color .3s ease;
}

.step__mark {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--white);
  position: relative;
}

.step--active { color: var(--ink); }

.step--active .step__mark {
  border-color: var(--orange);
  /* 調べている最中だと分かるように、印だけ回す */
  border-right-color: transparent;
  animation: spin .8s linear infinite;
}

.step--done { color: var(--ink); }

.step--done .step__mark {
  border-color: var(--green);
  background: var(--green);
}

.step--done .step__mark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid var(--white);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 結果：総合パネル（濃紺） ---------- */

/* 結果へスクロールしたとき、上の帯が「診断が完了しました！」を隠さないようにする */
#result { scroll-margin-top: 58px; }

.panel {
  background: var(--navy);
  border-radius: 22px;
  color: var(--white);
  padding: 22px 18px;
  margin: 20px 0 18px;
  box-shadow: 0 18px 40px -26px rgba(22, 35, 60, .9);
}

.panel__grid { display: grid; gap: 18px; }

.panel__col--score { position: relative; text-align: center; padding-bottom: 8px; }

.panel__kicker {
  margin: 0;
  font-size: .82rem;
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: .04em;
}

.panel__lead { margin: 2px 0 0; font-size: .82rem; color: var(--navy-text); }

.bigscore {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin: 2px 0 6px;
}

.bigscore__value {
  font-size: 4.4rem;
  font-weight: 900;
  line-height: 1.05;
  color: var(--yellow);
  font-feature-settings: "tnum";
}

.bigscore__unit { font-size: 1.5rem; font-weight: 900; color: var(--yellow); }
.bigscore__max { font-size: .9rem; font-weight: 700; color: var(--navy-text); margin-left: 4px; }

.rankbadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px 5px 6px;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
}

.rankbadge[hidden] { display: none; }
.rankbadge--in { animation: badgePop .42s cubic-bezier(.2, 1.5, .4, 1) both; }

@keyframes badgePop {
  from { opacity: 0; transform: scale(.6) translateY(6px); }
  to { opacity: 1; transform: none; }
}

.rankbadge__letter {
  width: 1.9em;
  height: 1.9em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1;
}

.rankbadge[data-tone="high"] .rankbadge__letter { background: var(--green); }
.rankbadge[data-tone="mid"] .rankbadge__letter { background: var(--yellow); color: var(--ink); }

.rankbadge__word { font-size: .8rem; font-weight: 900; letter-spacing: .08em; }

.panel__rank { margin: 10px 0 0; font-size: 1rem; font-weight: 800; }
.panel__url {
  margin: 4px 0 0;
  font-size: .76rem;
  color: var(--navy-text);
  word-break: break-all;
}

.panel__chick {
  width: 96px;
  height: auto;
  display: block;
  margin: 10px auto 0;
  opacity: 0;
}

/* 顔だけの絵は全身より小さく見えるので、少し大きく出す */
.panel__chick[data-kind="face"] { width: 84px; }

.panel__chick--in { animation: chickIn .45s cubic-bezier(.2, 1.4, .4, 1) .1s both; }

@keyframes chickIn {
  from { opacity: 0; transform: translateY(10px) scale(.7); }
  to { opacity: 1; transform: none; }
}

.panel__col--health,
.panel__col--radar {
  background: var(--navy-soft);
  border: 1px solid var(--navy-line);
  border-radius: 16px;
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
}

.panel__col--health .health,
.panel__col--radar .radar { flex: 1 1 auto; }

.panel__title {
  margin: 0 0 12px;
  font-size: .92rem;
  font-weight: 800;
  text-align: center;
  color: var(--white);
}

.panel__note { margin: 10px 0 0; font-size: .72rem; color: var(--navy-text); text-align: center; }
.panel__note[hidden] { display: none; }

/* 健康状態の総評バッジ */

.verdict {
  display: block;
  text-align: center;
  font-weight: 900;
  font-size: .95rem;
  padding: 7px 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  background: var(--yellow);
  color: var(--ink);
}

.verdict[data-tone="good"] { background: var(--green); color: var(--white); }
.verdict[data-tone="bad"] { background: var(--orange); color: var(--white); }
.verdict[data-tone="unknown"] { background: #6d7a91; color: var(--white); }

/* 行を等間隔に散らして、右のレーダーと高さが揃ったときに下が間延びしないようにする */
.health { margin: 0; display: grid; gap: 9px; align-content: space-between; min-height: 190px; }

.health__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--navy-line);
}

.health__row:last-child { border-bottom: none; padding-bottom: 0; }

.health__label { margin: 0; font-size: .82rem; color: var(--navy-text); }

.health__value { margin: 0; font-size: .98rem; font-weight: 900; text-align: right; }
.health__value[data-tone="good"] { color: #6ee7a0; }
.health__value[data-tone="warn"] { color: var(--yellow); }
.health__value[data-tone="bad"] { color: #ff9f6b; }
.health__value[data-tone="unknown"] { color: #9aa7bd; font-size: .84rem; font-weight: 700; }

.health__bar {
  grid-column: 1 / -1;
  height: 7px;
  background: rgba(255, 255, 255, .14);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.health__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  transition: width .9s ease .3s;
}

/* レーダーチャート */

.radar { width: 100%; max-width: 360px; margin: 0 auto; display: flex; align-items: center; }
.radar svg { width: 100%; height: auto; display: block; }

.radar__grid { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1; }
.radar__axis { stroke: rgba(255, 255, 255, .16); stroke-width: 1; }

.radar__shape {
  fill: rgba(250, 183, 24, .38);
  stroke: var(--yellow);
  stroke-width: 2.5;
  stroke-linejoin: round;
  /* 中心から開くように出す */
  transform-origin: center;
  animation: radarIn .8s cubic-bezier(.2, .8, .3, 1) both;
}

@keyframes radarIn {
  from { transform: scale(.1); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.radar__dot { fill: var(--yellow); }
.radar__label { fill: var(--white); font-size: 9.5px; font-weight: 700; }
.radar__score { fill: var(--yellow); font-size: 10.5px; font-weight: 900; }
.radar__score--unknown { fill: #9aa7bd; font-size: 8.5px; font-weight: 700; }

/* ---------- 結果：読みもの ---------- */

.card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  margin: 16px 0;
}

.card__title {
  margin: 0 0 14px;
  font-size: 1.06rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card__title::before {
  content: "";
  width: 6px;
  height: 1.05em;
  background: var(--orange);
  border-radius: 3px;
}

/* 幅を広げたぶん、地の文だけは1行が長くなりすぎないよう抑える */
.summaryCard__text { margin: 0; font-size: .95rem; max-width: var(--max-read); }

/* 5軸カード */

.metrics { display: grid; gap: 12px; margin: 16px 0 6px; }

.metric {
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 15px 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.metric__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.metric__label { font-weight: 900; font-size: .95rem; }

.metric__score { font-weight: 900; font-size: 1.6rem; font-feature-settings: "tnum"; white-space: nowrap; color: var(--orange); }
.metric__max { font-size: .74rem; font-weight: 700; color: var(--ink-soft); }

.metric--good .metric__score { color: var(--green); }

.metric__bar {
  height: 8px;
  background: var(--cream-deep);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: 8px 0 10px;
}

.metric__fill { height: 100%; width: 0; background: var(--orange); border-radius: inherit; transition: width .8s ease; }
.metric--good .metric__fill { background: var(--green); }

.metric__risk {
  margin: 0;
  font-size: .85rem;
  line-height: 1.75;
  color: var(--ink-soft);
  padding-left: 1.2em;
  position: relative;
}

.metric__risk::before {
  content: "!";
  position: absolute;
  left: 0;
  top: .28em;
  width: 1em;
  height: 1em;
  line-height: 1em;
  text-align: center;
  font-size: .72rem;
  font-weight: 900;
  color: var(--white);
  background: var(--danger);
  border-radius: 50%;
}

.metric--good .metric__risk::before { content: "✓"; background: var(--green); }

/* 判定できなかった項目。点数を出さず、確認できなかったことをそのまま伝える */
.metric__score--unknown { font-size: .8rem; font-weight: 700; color: #7a7f87; letter-spacing: .01em; }
.metric--unknown { opacity: .94; border-color: var(--line); box-shadow: none; }
.metric--unknown .metric__bar { background: repeating-linear-gradient(135deg, #eceef1 0 6px, #f5f6f8 6px 12px); }
.metric--unknown .metric__risk::before { content: "？"; background: #9aa0a8; }

.source { margin: 0 0 8px; font-size: .74rem; color: var(--ink-soft); }

/* 診断の結論 */

.conclusion { border-left: 6px solid var(--orange); }
.conclusion__headline { margin: 0; font-size: 1.06rem; font-weight: 900; line-height: 1.7; }
.conclusion__cadence { margin: .55rem 0 0; font-size: .95rem; line-height: 1.7; color: var(--ink-soft); }

/* 良い点 */

.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }

.checklist li { padding-left: 1.7em; position: relative; font-size: .93rem; }

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--white);
  background: var(--yellow);
  width: 1.25em;
  height: 1.25em;
  line-height: 1.25em;
  text-align: center;
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 900;
  top: .32em;
}

/* 処方箋 */

.rx { display: grid; gap: 0; }

.improvements { display: grid; gap: 10px; }

.improvement {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 13px 15px;
  background: #fffdf7;
}

.improvement__rank {
  flex: 0 0 auto;
  width: 1.9em;
  height: 1.9em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
  font-size: .85rem;
}

.improvement--top .improvement__rank { background: var(--orange); }

.improvement__body { flex: 1 1 auto; min-width: 0; }
.improvement__title { font-weight: 800; font-size: .95rem; }

.tag {
  display: inline-block;
  margin-top: 4px;
  font-size: .72rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--cream-deep);
  color: var(--ink);
}

.tag--posting { background: var(--orange); color: var(--white); }

.locked {
  border-style: dashed;
  background: repeating-linear-gradient(-45deg, #fffdf7, #fffdf7 8px, #fff8e6 8px, #fff8e6 16px);
  color: var(--ink-soft);
}

.locked__text { font-weight: 700; font-size: .9rem; }

/* CTA */

.cta {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  text-align: center;
}

.cta__chick { width: 72px; height: auto; display: block; margin: 0 auto; }
.cta__title { margin: 8px 0 6px; font-size: 1.2rem; font-weight: 900; line-height: 1.5; }
.cta__lead { margin: 0 0 18px; font-size: .9rem; color: #f3e7d6; text-align: left; }
.cta__buttons { display: grid; gap: 10px; }
.cta__note { margin: 14px 0 0; font-size: .74rem; color: #c9b8a4; }

/* レポート受け取りフォーム。LINEを使わない方の受け皿 */

.leadform {
  margin: 18px 0 0;
  padding: 16px 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  text-align: left;
}

.leadform__lead { margin: 0 0 12px; font-size: .84rem; color: #f3e7d6; }

.leadform__body { display: grid; gap: 6px; }
/* display を指定した要素は hidden 属性だけでは消えない。明示して打ち消す */
.leadform__body[hidden] { display: none; }

.leadform__label { font-size: .78rem; font-weight: 700; color: #f3e7d6; margin-top: 4px; }

.leadform input[type="text"],
.leadform input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 10px;
}

.leadform input:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(250, 183, 24, .3);
}

/* 人には見せない。機械だけが埋めていく */
.leadform__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.button--report { margin-top: 10px; width: 100%; }

.leadform__note { margin: 10px 0 0; font-size: .72rem; line-height: 1.7; color: #c9b8a4; }

.leadform__error {
  margin: 10px 0 0;
  font-size: .8rem;
  font-weight: 700;
  color: #ffb4a2;
}

.leadform__error[hidden] { display: none; }

.leadform__done[hidden] { display: none; }
.leadform__doneTitle { margin: 0 0 6px; font-size: 1rem; font-weight: 900; color: var(--yellow); }
.leadform__doneText { margin: 0 0 14px; font-size: .84rem; line-height: 1.8; color: #f3e7d6; }
.leadform__done .button { width: 100%; }

/* 診断番号。お問い合わせを今回の診断と結び付けるための控え */

.caseno {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px dashed rgba(255, 255, 255, .3);
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
}

.caseno[hidden] { display: none; }

.caseno__label { margin: 0 0 6px; font-size: .7rem; letter-spacing: .08em; color: #c9b8a4; }

.caseno__row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.caseno__value {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--white);
}

.caseno__copy {
  border: 1px solid rgba(255, 255, 255, .34);
  background: none;
  color: var(--white);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: .75rem;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s ease;
}

.caseno__copy:hover { background: rgba(255, 255, 255, .14); }
.caseno__copy--done { border-color: #06c755; color: #7ee2a8; }

.caseno__note { margin: 8px 0 0; font-size: .72rem; color: #c9b8a4; line-height: 1.6; }

/* ヤットクのご案内 */

.promo {
  display: grid;
  grid-template-columns: 68px 1fr;
  align-items: center;
  gap: 12px;
  background: var(--cream-deep);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0 0;
  box-shadow: var(--shadow);
}

.promo__chick { width: 68px; height: auto; }
.promo__body { min-width: 0; }
.promo__title { margin: 0; font-size: .98rem; font-weight: 900; line-height: 1.5; }
.promo__text { margin: 2px 0 0; font-size: .82rem; color: var(--ink-soft); }

.promo__button {
  grid-column: 1 / -1;
  justify-self: stretch;
  text-align: center;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  font-size: .88rem;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 3px 0 var(--orange-dark);
}

.promo__button:hover { background: var(--orange-dark); }

.retry {
  display: block;
  margin: 26px auto 0;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: .9rem;
  text-decoration: underline;
  cursor: pointer;
}

.notice {
  margin: 26px 0 0;
  font-size: .74rem;
  line-height: 1.9;
  color: var(--ink-soft);
  max-width: var(--max-read);
}

.error {
  border-color: var(--danger);
  background: #fff4f0;
  color: var(--danger);
  font-weight: 700;
}

/* ---------- 診断結果を読んでいる間の追従バー（2026-08-18 追加） ----------
 *
 * LPの追従バーと同じ3つ（お申し込み／無料相談／LINEで相談）を、結果画面にも置く。
 * LPは背景画像のボタンだが、こちらは診断ツールの配色（オレンジ／白／LINE緑）で作る。
 * 画像を持ち込むと、濃紺の結果パネルの上で色が浮くため。
 *
 * ・下からせり上がる。出入りは transform だけで動かす（描き直しを起こさない）
 * ・iPhoneの下端のバーに重ならないよう safe-area ぶんを内側に足す
 * ・本文の最後がバーに隠れたままにならないよう、出ている間だけ .shell に下余白を足す
 */

.fixedCta {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  width: min(100%, 620px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 253, 247, .94);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -6px 24px -16px rgba(42, 26, 12, .7);
  transform: translateX(-50%) translateY(100%);
  opacity: 0;
  transition: transform .35s ease-out, opacity .35s ease-out;
}

.fixedCta.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* hidden 属性が付いているあいだは場所も取らない（入力画面・読み込み中） */
.fixedCta[hidden] { display: none; }

.fixedCta__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  padding: 8px 4px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  text-align: center;
  font-family: inherit;
  transition: transform .08s ease, box-shadow .08s ease;
}

.fixedCta__item:active { transform: translateY(3px); }

.fixedCta__intro {
  font-size: .62rem;
  font-weight: 700;
  line-height: 1.3;
  opacity: .85;
  /* 3つの幅が揃うように、はみ出す文字は出さない */
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.fixedCta__label {
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.fixedCta__item--apply {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 3px 0 var(--orange-dark);
}
.fixedCta__item--apply:hover { background: var(--orange-dark); }
.fixedCta__item--apply:active { box-shadow: 0 0 0 var(--orange-dark); }

.fixedCta__item--booking {
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 rgba(42, 26, 12, .25);
}
.fixedCta__item--booking:hover { background: #fff9ec; }
.fixedCta__item--booking:active { box-shadow: 0 0 0 rgba(42, 26, 12, .25); }

.fixedCta__item--line {
  color: var(--white);
  background: #06c755;
  box-shadow: 0 3px 0 #04a445;
}
.fixedCta__item--line:hover { background: #04a445; }
.fixedCta__item--line:active { box-shadow: 0 0 0 #04a445; }

/* バーが出ているあいだの逃げ余白。バーの実高さをJSから渡す */
.shell.has-fixedCta { padding-bottom: calc(var(--fixedCta-h, 78px) + 24px); }

@media (min-width: 700px) {
  .fixedCta { gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .fixedCta__intro { font-size: .68rem; }
  .fixedCta__label { font-size: .95rem; }
  .fixedCta__item { padding: 10px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .fixedCta { transition: none; }
}

/* 結果カードの順次表示 */

.reveal { animation: cardIn .5s cubic-bezier(.2, .8, .3, 1) both; animation-delay: var(--reveal-delay, 0ms); }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 画面が広いとき ---------- */

@media (min-width: 700px) {
  .shell { padding-top: 34px; }

  .hero {
    grid-template-columns: 1fr 280px;
    align-items: center;
    gap: 24px;
  }

  .hero__art {
    display: block;
    text-align: center;
  }

  .hero__chick { width: 100%; max-width: 230px; height: auto; animation: float 3.4s ease-in-out infinite; }
  .hero__name { width: 170px; height: auto; display: block; margin: 6px auto 0; }

  .form__row { flex-direction: row; }
  .form input[type="text"] { flex: 1 1 auto; }
  .form .button { flex: 0 0 auto; }

  .panel { padding: 26px 24px; }
  .panel__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .panel__col--score { grid-column: 1 / -1; }

  .metrics { grid-template-columns: 1fr 1fr; }

  /* 中身の量が違うので高さは揃えない。揃えると短いほうの下が間延びする */
  .rx { grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .rx .card { margin: 0; }

  .cta__buttons { grid-template-columns: 1fr 1fr; }

  .promo { grid-template-columns: 78px 1fr auto; }
  .promo__chick { width: 78px; }
  .promo__button { grid-column: auto; justify-self: end; }
}

@media (min-width: 960px) {
  .panel__grid { grid-template-columns: 1fr 1fr 1fr; }
  .panel__col--score { grid-column: auto; text-align: left; }
  .bigscore { justify-content: flex-start; }
  .panel__chick { margin: 12px 0 0; width: 108px; }
  .panel__chick[data-kind="face"] { width: 94px; }
  .panel__title { text-align: left; }
  .verdict { text-align: center; }

  .metrics { grid-template-columns: repeat(5, 1fr); }
  .metric { padding: 14px 13px; }
  .metric__head { display: block; }
  .metric__score { font-size: 1.4rem; display: block; margin-top: 2px; }
  .metric__risk { font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
