/* ============================================================
   オリーくんに相談（追補23-01【19】）。olly/olly.js が中身を描く
   色は shared/tokens.css の変数だけを使う：紺 --navy／空色 --sky・--sky-strong／オレンジ --orange（上の文字は --on-accent）
   ボタンは tokens.css の .btn-go（太いオレンジの角丸に「→」）
   ============================================================ */
.olly {
  max-width: 920px; margin: 24px auto 0;
  border-radius: var(--radius-lg);
  background: var(--sky); border: 1px solid var(--sky-line);
  color: var(--navy);
  font-family: var(--font-base);
}

/* 帯 */
.olly__band {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 22px;
}
.olly__face {
  position: relative; flex: 0 0 auto;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--navy); overflow: hidden;
}
.olly__face-alt {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  color: var(--text-invert); font-size: 30px; font-weight: 900; line-height: 1;
}
.olly__face-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  background: var(--bg-white);
}
.olly__face-alt[hidden], .olly__face-img[hidden] { display: none; }
.olly__text { flex: 1 1 auto; min-width: 0; }
.olly__title { margin: 0; font-size: 20px; font-weight: 900; line-height: 1.4; color: var(--navy); }
.olly__lead { margin: 4px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--navy); }
.olly__open { flex: 0 0 auto; }

/* 開いた中身 */
.olly__panel {
  margin: 0 12px 12px; padding: 18px 18px 20px;
  border-radius: var(--radius); background: var(--bg-white);
  color: var(--text-main);
}
.olly__panel[hidden] { display: none; }
.olly__hint { margin: 0 0 12px; font-size: 14px; color: var(--text-body); line-height: 1.7; }

.olly__modes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.olly__mode {
  flex: 1 1 200px; min-height: 48px; padding: 10px 14px;
  border-radius: var(--radius); border: 2px solid var(--navy);
  background: var(--bg-white); color: var(--navy);
  font: 800 15px/1.4 var(--font-base); cursor: pointer;
}
.olly__mode[aria-pressed="true"] { background: var(--navy); color: var(--text-invert); }

/* (a) 悩みのボタン */
.olly__worries {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  list-style: none; margin: 0; padding: 0;
}
.olly__worry {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 100%;
  padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--border-strong); border-left: 6px solid var(--navy);
  background: var(--bg-white); color: var(--text-main);
  font: 700 15px/1.5 var(--font-base); text-align: left; cursor: pointer;
}
.olly__worry:hover { background: var(--sky); }
.olly__worry[aria-pressed="true"] { background: var(--sky-strong); border-color: var(--navy); }
.olly__tag {
  flex: 0 0 auto; padding: 2px 9px; border-radius: var(--radius-pill);
  background: var(--sky); color: var(--navy); font-size: 12px; font-weight: 800;
}
.olly__worry[aria-pressed="true"] .olly__tag { background: var(--bg-white); }
.olly__worry-text { flex: 1 1 auto; }

/* (b) 4つの質問 */
.olly__q-title { margin: 0 0 12px; font-size: 18px; font-weight: 800; line-height: 1.5; color: var(--text-main); }
.olly__q-num {
  display: block; margin-bottom: 4px;
  font-size: 13px; font-weight: 800; color: var(--navy);
}
.olly__options { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.olly__option {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border-radius: var(--radius); border: 1px solid var(--border-strong);
  background: var(--bg-white); color: var(--text-main);
  font: 700 15px/1.5 var(--font-base); text-align: left; cursor: pointer;
}
.olly__option:hover { background: var(--sky); border-color: var(--navy); }
.olly__back {
  margin-top: 14px; min-height: 44px; padding: 8px 4px; border: 0; background: none;
  color: var(--navy); font: 700 14px/1.5 var(--font-base);
  text-decoration: underline; cursor: pointer;
}

/* 答え・進め方ナビ */
.olly__result:not(:empty) { margin-top: 18px; }
.olly__answer {
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--sky); border-left: 6px solid var(--orange);
}
.olly__answer-title { margin: 0; font-size: 18px; font-weight: 900; line-height: 1.5; color: var(--navy); }
.olly__by { margin: 2px 0 10px; font-size: 13px; color: var(--text-body); }
.olly__answer-text { margin: 0 0 8px; font-size: 15.5px; line-height: 1.85; color: var(--text-main); }
.olly__sub { margin: 14px 0 8px; font-size: 14px; font-weight: 800; color: var(--navy); }
.olly__links, .olly__plan { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.olly__plan { counter-reset: olly-step; }
.olly__plan > li { position: relative; padding-left: 40px; counter-increment: olly-step; }
.olly__plan > li::before {
  content: counter(olly-step);
  position: absolute; left: 0; top: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: var(--text-invert);
  font: 800 15px/30px var(--font-num); text-align: center;
}
.olly__link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--bg-white); border: 1px solid var(--border-color);
  color: var(--navy); font-weight: 700; line-height: 1.5;
}
.olly__link:hover { border-color: var(--navy); }
.olly__kind {
  flex: 0 0 auto; padding: 1px 8px; border-radius: var(--radius-pill);
  background: var(--orange); color: var(--on-accent); font-size: 12px; font-weight: 800;
}
.olly__link-label { flex: 1 1 auto; min-width: 0; }
.olly__why { margin: 4px 0 0 2px; font-size: 14px; line-height: 1.7; color: var(--text-body); }
.olly__picked { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.olly__picked li {
  padding: 2px 10px; border-radius: var(--radius-pill);
  background: var(--bg-white); border: 1px solid var(--sky-line);
  font-size: 12.5px; color: var(--navy);
}
.olly__note { margin: 12px 0 0; font-size: 13.5px; line-height: 1.7; color: var(--text-body); }

.olly button:focus-visible, .olly a:focus-visible, .olly [tabindex="-1"]:focus-visible {
  outline: 3px solid var(--navy); outline-offset: 2px;
}
.olly .btn-go:focus-visible { outline-color: var(--navy); }

/* 狭い画面：帯は縦に並べ、悩みのボタンは1列 */
@media (max-width: 600px) {
  .olly { margin-top: 16px; }
  .olly__band { flex-wrap: wrap; gap: 12px 14px; padding: 16px; }
  .olly__face { width: 56px; height: 56px; }
  .olly__face-alt { font-size: 24px; }
  .olly__text { flex-basis: calc(100% - 70px); }
  .olly__title { font-size: 18px; }
  .olly__open { width: 100%; }
  .olly__panel { margin: 0 8px 8px; padding: 14px 12px 16px; }
  .olly__worries { grid-template-columns: 1fr; }
  .olly__answer { padding: 14px 12px; }
}

/* 画像（追補23-02【4】）：帯は全身のポーズ、回答は顔と「編集部」の札 */
.olly__pose { flex: 0 0 auto; width: auto; height: 132px; margin: -10px 0 -14px; }
.olly__speaker { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.olly__speaker-face { width: 48px; height: 48px; border-radius: 50%; background: var(--sky); border: 2px solid var(--sky-line); object-fit: cover; object-position: 50% 20%; }
.olly__speaker-name { padding: 2px 10px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 800; }
@media (max-width: 600px) { .olly__pose { height: 96px; margin: 0; } }

/* ---- 追補23-132 §2：トップの「いまの状況から選ぶ」（.olly--now。悩みの7つが始めから見えていて、答えはすぐ下に出る） ---- */
.px-now { padding: 32px 0 8px; }
.olly--now { max-width: none; margin: 0; }
.olly--now .olly__band { padding: 16px 22px 10px; }
.olly--now .olly__pose { height: 72px; margin: 0; }   /* 顔の絵（olly-face.webp・14KB）。全身の絵（38KB）は、開いた直後にヒーローの絵と重なって読まれ、LCP が遅くなったため（追補23-132 §6 の測り） */
.olly--now .olly__title { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; }
.olly--now .olly__worries { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 12px; }
.olly--now .olly__worry { min-height: 48px; padding: 8px 12px; text-decoration: none; }
.olly__quizin { margin: 8px 12px 12px; }
.olly__quizin .olly__mode { width: 100%; max-width: 320px; }
.olly__default[hidden] { display: none; }
.olly__default-title { margin: 0 0 10px; font-size: 16px; font-weight: 900; line-height: 1.5; color: var(--navy); }
.olly--now .olly__result:not(:empty) { margin-top: 0; }
.olly--now .olly__body:not(:empty) + .olly__result:not(:empty) { margin-top: 18px; }
@media (max-width: 900px) { .olly--now .olly__worries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .px-now { padding: 20px 0 4px; }
  .olly--now { margin-top: 0; }
  .olly--now .olly__band { flex-wrap: nowrap; padding: 12px 12px 8px; }
  .olly--now .olly__pose { height: 56px; margin: 0; }
  .olly--now .olly__text { flex-basis: auto; }
  .olly--now .olly__lead { font-size: 13.5px; line-height: 1.6; }
  .olly--now .olly__worries { gap: 6px; margin: 0 8px; }
  .olly--now .olly__worry { padding: 6px 10px; font-size: 14px; line-height: 1.4; border-left-width: 5px; }
  .olly--now .olly__tag { display: none; }
  .olly__quizin { margin: 6px 8px 8px; }
  .olly__quizin .olly__mode { max-width: none; }
  .olly--now .px-quick__list { gap: 8px; }
  .olly--now .px-quick__list a { min-height: 60px; padding: 8px 14px; }
}
