/* ポップ化（2026-10-12）。journey.css の「書斎」の上に、明るい暖色1色と大きめの角丸、
   お野菜さんの吹き出しを足す。構造の深緑はそのまま残し、暖色は達成・祝福・
   お野菜さんの吹き出しにだけ使う。スマホで position: fixed を使わない（CLAUDE.md） */
:root { --pop: #f6b73c; --pop-deep: #e39a12; --pop-soft: #fff4d6; --pop-ink: #6e4300; --r-lg: 18px; --r-md: 12px; }

/* ── 角丸を大きく ── */
.sharoshi-app .home-card, .home-journey, .sharoshi-app .text-group, .sharoshi-app .flash-deck-btn,
.sharoshi-app .flash-card, .ox-picker, .ox-stage, .sharoshi-app .novel-card { border-radius: var(--r-lg); }
.sharoshi-app .plan-hero { border-radius: 22px; }
.sharoshi-app .plan-hero-bubble { border-radius: 16px; }
.sharoshi-app .home-today-item, .sharoshi-app .text-card, .sharoshi-app .exam-card,
.sharoshi-app .law-card, .journey-person, .sharoshi-app .topbar-btn { border-radius: var(--r-md); }
.sharoshi-app .plan-hero-stat { border-radius: 999px; }
.sharoshi-app .plan-hero-btn, .sharoshi-app .plan-hero-btn.is-todo, .sharoshi-app .celebrate-close,
.sharoshi-app .home-cta, .sharoshi-app .exam-action-btn { border-radius: 999px; }

/* ── 暖色は「達成・祝福」に ── */
.sharoshi-app .home-today-progress.is-done { background: var(--pop); border-color: var(--pop-deep); color: var(--pop-ink); }
.sharoshi-app .home-today-bar i { background: linear-gradient(90deg, #4f9a73, var(--pop)); }
.journey-week li.is-active > span:first-child { background: var(--pop); border-color: var(--pop-deep); color: var(--pop-ink); font-weight: 800; }
.journey-landmark.is-earned { background: var(--pop-soft); border-color: var(--pop); color: var(--pop-ink); border-radius: var(--r-md); }
.sharoshi-app .home-today-item.is-done { background: #fff8e4; border-color: #f2d79a; }
.sharoshi-app .home-today-item.is-done .home-today-ask::before { content: '★ '; color: var(--pop-deep); }
.sharoshi-app .plan-hero-btn.is-todo { background: var(--pop); border-color: var(--pop-deep); color: var(--pop-ink); font-weight: 800; }

/* ── ホーム：お野菜さんの一言＋今日の一歩 ── */
.veg-hello {
  position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr) 84px; align-items: end; gap: 6px 14px;
  padding: 18px 18px 16px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, #fff6dc 0%, #fff1c9 45%, #ffe6a6 100%);
  border: 2px solid #f4d68c; box-shadow: 0 10px 24px #e3a01a1f;
}
.veg-hello::after { /* 水玉の遊び */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(#fff 2px, transparent 2.5px); background-size: 22px 22px;
}
.veg-hello > * { position: relative; z-index: 1; }
.veg-hello-veg { width: 96px; height: 96px; object-fit: contain; align-self: center; animation: pop-bob 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
.veg-hello-hero { width: 84px; height: 84px; object-fit: contain; align-self: end; }
.veg-hello-talk { min-width: 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.veg-hello-bubble {
  position: relative; margin: 0; padding: 12px 16px; background: #fff; border-radius: 18px;
  font-size: 15px; line-height: 1.8; color: #3a3226; box-shadow: 0 3px 0 #e8c46a55;
}
.veg-hello-bubble::before { content: ''; position: absolute; left: -9px; top: 22px; border: 9px solid transparent; border-left: 0; border-right-color: #fff; }
.veg-hello-name { display: block; font-size: 11px; font-weight: 800; letter-spacing: .05em; color: #a06400; }
.veg-hello[data-veg="broccoli"] .veg-hello-name { color: #3f7a1f; }
.veg-hello[data-veg="carrot"] .veg-hello-name { color: #b4560f; }
.veg-hello[data-veg="radish"] .veg-hello-name { color: #4b5e46; }
.veg-hello[data-veg="eggplant"] .veg-hello-name { color: #6a3fa0; }
.veg-hello[data-veg="corncob"] .veg-hello-name { color: #a06400; }
.veg-hello[data-veg="sweetpotato"] .veg-hello-name { color: #8a3b3b; }
.veg-hello-step {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 48px;
  padding: 8px 18px 8px 8px; border: 0; border-radius: 999px; cursor: pointer;
  background: #235040; color: #fff; font: inherit; font-size: 14px; font-weight: 700; text-align: left;
  box-shadow: 0 4px 0 #143328; transition: transform .08s ease, box-shadow .08s ease;
}
.veg-hello-step:active { transform: translateY(3px); box-shadow: 0 1px 0 #143328; }
.veg-hello-step-k { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--pop); color: var(--pop-ink); font-size: 11px; font-weight: 800; }
.veg-hello-step-v { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.5; }
.veg-hello-more { border: 0; background: none; padding: 0; color: #7a5a1a; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
@keyframes pop-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }

/* ナビゲーターの数字は畳んだ1行に */
.sharoshi-app .plan-hero-fold > summary {
  display: inline-block; cursor: pointer; list-style: none; padding: 4px 12px; border-radius: 999px;
  background: #ffffff1a; border: 1px solid #ffffff38; color: #e3e9df; font-size: 11px;
}
.sharoshi-app .plan-hero-fold > summary::-webkit-details-marker { display: none; }
.sharoshi-app .plan-hero-fold > summary::after { content: ' ＋'; opacity: .8; }
.sharoshi-app .plan-hero-fold[open] > summary::after { content: ' −'; }
.sharoshi-app .plan-hero-fold[open] > .plan-hero-stats { margin-top: 8px; }

/* 900px以上のホームは grid-row を明示している（journey.css）。一言カードを1段目に足して1段ずつ下げる */
@media (min-width: 900px) {
  .veg-hello { grid-column: 1 / -1; grid-row: 1; }
  .sharoshi-app .plan-hero { grid-row: 2; }
  .home-journey { grid-row: 3; }
  .sharoshi-app .home-today { grid-row: 4 / span 2; }
  .sharoshi-app .home-prof { grid-row: 4; }
  .sharoshi-app .home-recent { grid-row: 5; }
  .sharoshi-app .home-plan { grid-row: 6; }
  .journey-atlas { grid-row: 7; }
  .sharoshi-app .home-coverage { grid-row: 8; }
  .sharoshi-app .home-analysis { grid-row: 9; }
}
@media (max-width: 560px) {
  .veg-hello { grid-template-columns: 64px minmax(0, 1fr); padding: 14px 14px 12px; gap: 8px 10px; }
  .veg-hello-veg { grid-column: 1; grid-row: 1; width: 64px; height: 64px; align-self: start; }
  .veg-hello-talk { grid-column: 2; grid-row: 1 / span 2; }
  .veg-hello-hero { grid-column: 1; grid-row: 2; width: 58px; height: 58px; align-self: end; }
  .veg-hello-bubble { font-size: 14px; padding: 10px 13px; }
  .veg-hello-bubble::before { top: 16px; }
  .veg-hello-step { width: 100%; font-size: 13px; }
}

/* ── お野菜さんの一言（一問一答・相談・読み込み失敗で共通） ── */
.pop-say { display: flex; align-items: flex-end; gap: 8px; margin: 0 0 10px; }
.pop-say-veg { flex: none; width: 46px; height: 46px; object-fit: contain; animation: pop-in .35s ease-out both; }
.pop-say-hero { flex: none; width: 46px; height: 46px; object-fit: contain; margin-left: auto; border-radius: 50%; background: #f3f7ff; border: 2px solid #c9d8f2; }
.pop-say-bubble {
  margin: 0; min-width: 0; padding: 8px 13px; border-radius: 16px 16px 16px 4px;
  background: var(--pop-soft); border: 1.5px solid #f2d670; color: #3a3226; font-size: 14px; line-height: 1.75;
}
.pop-say-name { display: block; font-size: 10px; font-weight: 800; color: #9a6b00; letter-spacing: .04em; }
.pop-say--broccoli .pop-say-bubble { background: #f2fae9; border-color: #b5dc96; } .pop-say--broccoli .pop-say-name { color: #3f7a1f; }
.pop-say--carrot .pop-say-bubble { background: #fff3e8; border-color: #f0bf8f; } .pop-say--carrot .pop-say-name { color: #b4560f; }
.pop-say--radish .pop-say-bubble { background: #f6f8f4; border-color: #cfd8ca; } .pop-say--radish .pop-say-name { color: #4b5e46; }
.pop-say--eggplant .pop-say-bubble { background: #f6f0fd; border-color: #d2bdf0; } .pop-say--eggplant .pop-say-name { color: #6a3fa0; }
.pop-say--corncob .pop-say-bubble { background: #fff8e1; border-color: #f0c650; } .pop-say--corncob .pop-say-name { color: #a06400; }
.pop-say--sweetpotato .pop-say-bubble { background: #fbf1f1; border-color: #e2bcbc; } .pop-say--sweetpotato .pop-say-name { color: #8a3b3b; }
@keyframes pop-in { from { transform: scale(.6) translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.pop-oops { padding: 16px; }
.pop-oops .pop-say { margin: 0; }
/* 暗い一問一答・相談のステージの上でも吹き出しは明るく（ここが画面の中の「笑える場所」） */
.ox-reveal .pop-say, .novel-pop .pop-say { margin-bottom: 12px; }
.sharoshi-app .novel-card.novel-pop { background: transparent; border: 0; box-shadow: none; padding: 0 2px; }
.ox-picker .pop-say { margin: 4px 0 14px; }

/* 正解時は採点結果を隠さない小さな行進。ノルマ完走時は祝福カードの中で全員が踊る。 */
.pop-parade-float {
  position: fixed; left: 50%; bottom: 20px; z-index: 290;
  width: min(390px, calc(100vw - 24px)); pointer-events: none;
  transform: translateX(-50%);
  animation: pop-parade-arrive .35s cubic-bezier(.18, 1.5, .4, 1), pop-parade-leave .3s ease-in 2.6s forwards;
}
.pop-parade {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 10px 12px 9px; text-align: center;
  border: 2px solid #e9a919; border-radius: 22px;
  background: radial-gradient(circle at 50% 0, #fffefa 0, #fff2bf 52%, #ffd46a 100%);
  box-shadow: 0 8px 0 #be761c, 0 18px 42px #3b241b52;
  color: #5a3100;
}
.pop-parade::before {
  content: ''; position: absolute; inset: -30%; z-index: -1; opacity: .7;
  background-image: radial-gradient(#e9684c 2px, transparent 3px), radial-gradient(#5bb7ae 2px, transparent 3px), radial-gradient(#e1a72b 3px, transparent 4px);
  background-position: 0 0, 12px 25px, 30px 9px;
  background-size: 46px 44px, 58px 60px, 67px 56px;
  animation: pop-confetti 2.5s linear infinite;
}
.pop-parade-title { display: block; font-size: 19px; font-weight: 900; line-height: 1.3; text-shadow: 0 1px #fff; }
.pop-parade-spark { position: absolute; top: 10px; left: 12px; color: #c67213; font-size: 13px; animation: pop-twinkle .7s ease-in-out infinite alternate; }
.pop-parade-spark--end { left: auto; right: 12px; animation-delay: .3s; }
.pop-parade-line { display: flex; justify-content: center; align-items: end; gap: 5px; margin-top: 3px; animation: pop-march-in .55s ease-out; }
.pop-parade-marcher { display: inline-flex; align-items: end; animation: pop-march-hop .52s ease-in-out calc(var(--march) * .11s) 4 alternate; }
.pop-parade-marcher img { display: block; width: 49px; height: 53px; object-fit: contain; filter: drop-shadow(0 3px 1px #7b4f2970); }
.pop-parade--daily { margin: 9px 0 12px; padding: 14px 8px 10px; }
.pop-parade--daily .pop-parade-title { font-size: 21px; }
.pop-parade--daily .pop-parade-marcher img { width: 54px; height: 62px; }
.sharoshi-app .celebrate-card { box-sizing: border-box; width: min(420px, calc(100vw - 24px)); max-width: none; }
.sharoshi-app .celebrate-card > img { max-height: 124px; }
@keyframes pop-parade-arrive { from { opacity: 0; transform: translate(-50%, 35px) scale(.86); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes pop-parade-leave { to { opacity: 0; transform: translate(-50%, 20px) scale(.95); } }
@keyframes pop-march-in { from { transform: translateX(-80px); } to { transform: translateX(0); } }
@keyframes pop-march-hop { from { transform: translateY(0) rotate(-5deg); } to { transform: translateY(-12px) rotate(6deg); } }
@keyframes pop-confetti { from { transform: translateY(-25px); } to { transform: translateY(45px); } }
@keyframes pop-twinkle { from { opacity: .35; transform: scale(.8); } to { opacity: 1; transform: scale(1.18); } }
@media (max-width: 820px), (hover: none) and (pointer: coarse) {
  .pop-parade-float { position: absolute; bottom: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .pop-parade-float, .pop-parade::before, .pop-parade-line, .pop-parade-marcher, .pop-parade-spark { animation: none; }
}
@media (max-width: 560px) {
  .pop-parade-title { font-size: 17px; }
  .pop-parade-marcher img { width: 42px; height: 48px; }
  .pop-parade--daily .pop-parade-marcher img { width: 44px; height: 52px; }
  .pop-parade--daily .pop-parade-title { font-size: 18px; }
  .sharoshi-app .celebrate-card > img { max-height: 92px; }
}

/* ── 語り口調の過去問解説（renderMarkdown の「@話し手:」行）。章テキストの吹き出しと同じ見た目 ── */
:is(.exp-body, .ox-note) .talk { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; }
:is(.exp-body, .ox-note) .talk-face {
  flex: none; width: 48px; height: 48px; object-fit: contain; background: #fff;
  border: 2px solid #f0e2bd; border-radius: 50%; padding: 3px; box-sizing: border-box;
}
:is(.exp-body, .ox-note) .talk-bubble {
  min-width: 0; padding: 9px 13px; background: #fff; border: 1.5px solid #e6e1d3;
  border-radius: 4px 18px 18px 18px; line-height: 1.85; box-shadow: 0 2px 0 #0000000a;
  color: #263238;
}
:is(.exp-body, .ox-note) .talk-bubble p { margin: 0; }
:is(.exp-body, .ox-note) .talk-bubble strong { color: #1f4b3d; }
:is(.exp-body, .ox-note) .talk-name { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: #7a7466; }
:is(.exp-body, .ox-note) .talk--hero { flex-direction: row-reverse; }
:is(.exp-body, .ox-note) .talk--hero .talk-face { border-color: #c9d8f2; background: #f3f7ff; }
:is(.exp-body, .ox-note) .talk--hero .talk-bubble { background: #eef4ff; border-color: #c9d8f2; border-radius: 18px 4px 18px 18px; }
:is(.exp-body, .ox-note) .talk--hero .talk-name { color: #2c56a8; text-align: right; }
:is(.exp-body, .ox-note) .talk--broccoli .talk-face { border-color: #9fd07a; } :is(.exp-body, .ox-note) .talk--broccoli .talk-bubble { background: #f2fae9; border-color: #b5dc96; } :is(.exp-body, .ox-note) .talk--broccoli .talk-name { color: #3f7a1f; }
:is(.exp-body, .ox-note) .talk--carrot .talk-face { border-color: #f2a65e; } :is(.exp-body, .ox-note) .talk--carrot .talk-bubble { background: #fff3e8; border-color: #f0bf8f; } :is(.exp-body, .ox-note) .talk--carrot .talk-name { color: #b4560f; }
:is(.exp-body, .ox-note) .talk--radish .talk-face { border-color: #c9d3c4; } :is(.exp-body, .ox-note) .talk--radish .talk-bubble { background: #f6f8f4; border-color: #cfd8ca; } :is(.exp-body, .ox-note) .talk--radish .talk-name { color: #4b5e46; }
:is(.exp-body, .ox-note) .talk--eggplant .talk-face { border-color: #b99be0; } :is(.exp-body, .ox-note) .talk--eggplant .talk-bubble { background: #f6f0fd; border-color: #d2bdf0; } :is(.exp-body, .ox-note) .talk--eggplant .talk-name { color: #6a3fa0; }
:is(.exp-body, .ox-note) .talk--corncob .talk-face { border-color: #f3c34a; } :is(.exp-body, .ox-note) .talk--corncob .talk-bubble { background: #fff8e1; border-color: #f0c650; } :is(.exp-body, .ox-note) .talk--corncob .talk-name { color: #a06400; }
:is(.exp-body, .ox-note) .talk--sweetpotato .talk-face { border-color: #c99393; } :is(.exp-body, .ox-note) .talk--sweetpotato .talk-bubble { background: #fbf1f1; border-color: #e2bcbc; } :is(.exp-body, .ox-note) .talk--sweetpotato .talk-name { color: #8a3b3b; }
:is(.exp-body, .ox-note) .talk.is-aha .talk-bubble { background: var(--pop-soft); border: 2px solid var(--pop); }
:is(.exp-body, .ox-note) .talk.is-aha .talk-bubble::before { content: '💡 なるほど'; display: block; margin-bottom: 2px; font-size: 11px; font-weight: 800; color: var(--pop-ink); }
@media (max-width: 560px) { :is(.exp-body, .ox-note) .talk-face { width: 40px; height: 40px; } }

/* 解説の中に、肢の本文と設問の問いかけを引いて出す（往復しなくて済むように） */
.exp-body .exp-stem { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: #f6f3ea; color: #4a4536; font-size: 14px; line-height: 1.7; }
.exp-body .exp-stem-k { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; background: #4a4536; color: #fff; font-size: 11px; font-weight: 800; vertical-align: 1px; }
.exp-body .exp-choice { margin: 6px 0 12px; padding: 10px 12px; border-left: 4px solid #c9c2ad; border-radius: 0 10px 10px 0; background: #faf8f2; color: #3d3a30; font-size: 14px; line-height: 1.75; }
.exp-body .exp-choice p { margin: 4px 0 0; }
.exp-body .exp-choice-k { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 6px; background: #3d3a30; color: #fff; font-size: 12px; font-weight: 800; }
.exp-body .exp-choice-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #e8e3d4; color: #5a5442; font-size: 11px; font-weight: 700; }
.exp-body .exp-choice-tag.is-correct { background: #dff3e4; color: #1f7a3a; }

/* ── ホームの「集中表示」（既定）：一言＋今日の一歩と、今日の学習メニューだけ ──
   日報・計画・実力・足跡・マップ・分析は「日報・学習計画・記録を見る」で開く */
.home-wrap.is-focus > :not(.veg-hello):not(.home-today):not(.home-more) { display: none; }
.home-wrap.is-focus .home-today .home-guide,
.home-wrap.is-focus .home-today .home-focus,
.home-wrap.is-focus .home-today .home-today-meta { display: none; }
.home-more {
  justify-self: center; margin: 4px auto 0; padding: 10px 18px;
  border: 1px solid #d9d2bf; border-radius: 999px; background: #fffdf7;
  color: #4a4536; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.home-more:hover { background: #fff6dc; }
@media (min-width: 900px) {
  .home-wrap.is-focus { grid-template-columns: minmax(0, 1fr); max-width: 860px; margin-inline: auto; }
  .home-wrap.is-focus .home-today { grid-column: 1; grid-row: 2; }
  .home-wrap.is-focus .home-more { grid-column: 1; grid-row: 3; }
  .home-wrap:not(.is-focus) .home-more { grid-column: 1 / -1; grid-row: 10; }
}
