/* ココロートフェス 毛束アンケート - 共通スタイル（公式LP https://coco.rohto.com/lp/2026fes/ の配色・書体に合わせる） */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+2:wght@400;500;600;700;800&display=swap');

:root {
  --blue: #1456A6; --red: #D42D26; --green: #45B035; --pink: #E01D60; --yellow: #FFF95F;
  --ink: #333; --mute: #777; --line: #B7B7B7; --paper: #F7F7F7;
  --sky1: #CEF0FF; --sky2: #AFE5FD; --cream: #FFF6CE; --lemon: #FFF0AF;
  --shadow: 3px 5px 0 rgba(0,0,0,.15); --shadow-lg: 10px 10px 0 rgba(7,69,92,.2);
  /* 毛束の色（LPのブース配色から） */
  --c1: #E8597E; --c2: #4680C4; --c3: #66B145; --c4: #EA8025; --c5: #7250B2; --c6: #CCAD29; --c7: #43C6AD; --c8: #9D5A28;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper); color: var(--ink);
  font-family: "M PLUS 2", "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", system-ui, sans-serif;
  font-size: 15px; line-height: 1.7; font-weight: 500; -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
.dots { background-color: var(--lemon); background-image: radial-gradient(rgba(255,255,255,.9) 22%, transparent 24%); background-size: 42px 42px; }
.sky { background: linear-gradient(to bottom, var(--sky1) 0%, var(--sky2) 100%); }
.wrap { width: 100%; max-width: 800px; margin: 0 auto; padding: 0 16px; }

/* 見出し・ラベル */
.eyebrow { display: inline-block; font-weight: 800; color: #fff; background: var(--red); padding: 2px 14px; border-radius: 100vmax; font-size: 13px; letter-spacing: .08em; }
.ttl { font-weight: 800; color: var(--blue); letter-spacing: .04em; line-height: 1.3; margin: 10px 0 0; }
.ttl .mk { background: linear-gradient(transparent 62%, var(--yellow) 62%); }
.sparkle { color: #F3C900; }
.deco-line { height: 2px; background-image: linear-gradient(to right, var(--green) 0 2px, transparent 2px 6px); background-size: 6px 2px; }

/* カード・ボタン */
.card { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 24px 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; color: #fff; background: var(--blue);
       border: 0; border-radius: 10px; min-height: 56px; padding: 0 28px; box-shadow: var(--shadow); cursor: pointer; letter-spacing: .05em; text-decoration: none; }
.btn:hover { opacity: .8; } .btn:active { transform: translate(2px, 3px); box-shadow: 1px 2px 0 rgba(0,0,0,.15); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.red { background: var(--red); } .btn.green { background: var(--green); } .btn.ghost { background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 8px; }
.mute { color: var(--mute); font-size: 13px; }
.err { color: var(--red); font-size: 14px; min-height: 20px; }

/* ===== ダッシュボード（result.html / screen.html 共通） ===== */
.dash { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 860px) { .dash { grid-template-columns: 1.15fr 1fr; align-items: start; } }

.panel { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 20px 22px 18px; position: relative; }
.panel-ttl { display: inline-flex; align-items: center; gap: 10px; color: #fff; background: var(--blue); font-weight: 800; font-size: 18px; letter-spacing: .06em;
             padding: 6px 26px 6px 18px; border-radius: 0 100vmax 100vmax 0; margin: 0 0 14px -22px; box-shadow: 0 4px 0 rgba(89,92,7,.15); }
.panel-ttl.pink { background: var(--pink); } .panel-ttl.green { background: var(--green); }

.products { background: #FFF2E5; border: 2px solid #F5C9A8; border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; }
.products h3 { margin: 0 0 6px; font-size: 15px; color: var(--red); font-weight: 800; }
.products ul { margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.7; }
.products li b { display: inline-block; min-width: 4.2em; color: var(--blue); }
.products li i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-row { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; transition: transform .7s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.rank-row .rank { font-weight: 800; color: var(--blue); font-size: 15px; text-align: center; line-height: 1.1; }
.rank-row .rank b { display: block; font-size: 26px; }
.rank-row.r1 .rank { color: #D4A017; } .rank-row.r2 .rank { color: #8A8F99; } .rank-row.r3 .rank { color: #B06A3B; }
.rank-row .body { min-width: 0; }
.rank-row .lab { display: flex; align-items: baseline; gap: 8px; font-weight: 800; font-size: 17px; min-width: 0; }
.rank-row .lab .name { flex: none; white-space: nowrap; }
.rank-row .lab small { flex: 1; min-width: 0; font-weight: 600; color: var(--mute); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .track { position: relative; height: 30px; background: #F1F1F1; border-radius: 100vmax; overflow: hidden; margin-top: 4px; }
.rank-row .bar { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 100vmax; background: var(--c); transition: width .8s cubic-bezier(.2,.8,.2,1); min-width: 8px; }
.rank-row .num { position: absolute; right: 12px; top: 0; line-height: 30px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.rank-row .num small { font-weight: 600; font-size: 11px; margin-left: 2px; }
.rank-total { text-align: right; margin-top: 10px; font-size: 13px; color: var(--mute); }
.rank-total b { color: var(--blue); font-size: 18px; }

.bubbles { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 520px) { .bubbles { grid-template-columns: 1fr 1fr; } }
.bubble { background: #fff; border-radius: 26px; border: 3px solid var(--c); box-shadow: 5px 6px 0 rgba(0,0,0,.08); padding: 12px 14px 14px; min-height: 150px; }
.bubble h4 { margin: 0 0 8px; text-align: center; font-size: 15px; font-weight: 800; color: #fff; background: var(--c); border-radius: 100vmax; padding: 3px 10px; }
.bubble ul { margin: 0; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.5; }
.bubble li { padding: 5px 2px 5px 18px; border-top: 1px dashed #E3E3E3; position: relative; overflow-wrap: anywhere; }
.bubble li:first-child { border-top: 0; }
.bubble li::before { content: '♥'; position: absolute; left: 2px; color: var(--c); font-size: 11px; top: 7px; }
.bubble li.new { animation: pop .6s ease-out; }
.bubble .none { color: var(--mute); font-size: 13px; text-align: center; padding: 18px 0; }
@keyframes pop { 0% { background: var(--yellow); transform: scale(.98); } 100% { background: transparent; transform: none; } }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fadein { animation: fadein .4s ease-out; }
