/* 買いだネーター 見た目
   方針: 黒基調で落ち着いたまま、「お店のショーウィンドウ」で買い物のワクワクを出す。
   派手にしすぎない＝色は金・オレンジを主に、ミントとピンクは差し色だけ。動きはゆっくり・小さく。 */
:root {
  --bg: #0c0c0f;
  --panel: #17171c;
  --panel2: #202027;
  --panel3: #2a2a33;
  --ink: #fbf7ee;
  --ink2: #b5afa3;
  --ink3: #7d786f;
  --gold: #ffc94d;
  --gold2: #ff8a2b;   /* コーギーのオレンジ */
  --shu: #ff8a2b;
  --mint: #5ee6c0;
  --pink: #ff6fa5;
  --ok: #5ee6c0;
  --line: rgba(255, 255, 255, .09);
  --line2: rgba(255, 201, 77, .32);
  --radius: 18px;
  --shadow: 0 10px 28px rgba(0, 0, 0, .38);
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100dvh;
  font-family: "Zen Maru Gothic", system-ui, -apple-system, "Hiragino Maru Gothic ProN", sans-serif;
  color: var(--ink); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 420px at 50% -160px, rgba(255, 138, 43, .20), transparent 70%),
    radial-gradient(520px 320px at 105% 18%, rgba(108, 75, 216, .16), transparent 70%),
    radial-gradient(480px 300px at -10% 55%, rgba(94, 230, 192, .07), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='%23ffffff' fill-opacity='.035'%3E%3Cg transform='translate(44 56) rotate(-18)'%3E%3Cellipse cx='0' cy='8' rx='9' ry='7'/%3E%3Ccircle cx='-9' cy='-4' r='3.6'/%3E%3Ccircle cx='-3' cy='-9' r='3.6'/%3E%3Ccircle cx='4' cy='-9' r='3.6'/%3E%3Ccircle cx='10' cy='-4' r='3.6'/%3E%3C/g%3E%3Cg transform='translate(176 166) rotate(22)'%3E%3Cellipse cx='0' cy='8' rx='9' ry='7'/%3E%3Ccircle cx='-9' cy='-4' r='3.6'/%3E%3Ccircle cx='-3' cy='-9' r='3.6'/%3E%3Ccircle cx='4' cy='-9' r='3.6'/%3E%3Ccircle cx='10' cy='-4' r='3.6'/%3E%3C/g%3E%3C/g%3E%3Cg fill='%23ffc94d' fill-opacity='.16'%3E%3Cpath d='M186 44l3 9 9 3-9 3-3 9-3-9-9-3 9-3z'/%3E%3Cpath d='M66 186l2 6 6 2-6 2-2 6-2-6-6-2 6-2z'/%3E%3C/g%3E%3C/svg%3E"),
    var(--bg);
  background-attachment: fixed;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- ヘッダー ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; justify-content: center;
  padding: 10px 16px; background: rgba(12, 12, 15, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { background: none; border: 0; display: flex; align-items: center; gap: 8px; padding: 4px 10px; }
.logo-mark { color: var(--gold2); font-size: 18px; }
.logo-text { font-weight: 900; font-size: 21px; letter-spacing: .06em; background: linear-gradient(90deg, var(--gold), var(--gold2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

main { max-width: 760px; margin: 0 auto; padding: 14px 16px 40px; }
.foot { max-width: 760px; margin: 0 auto; padding: 8px 16px 32px; color: var(--ink3); font-size: 11px; line-height: 1.7; text-align: center; }
.foot p { margin: 0; }

/* ---------- 見出し ---------- */
.section-title { font-weight: 900; font-size: 15px; color: var(--ink); margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--gold2); transform: rotate(45deg); flex: none; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-title small { font-weight: 500; font-size: 11px; color: var(--ink3); }
.page-title { font-weight: 900; margin: 0 0 6px; font-size: 24px; display: flex; align-items: center; gap: 10px; }
.page-lead { margin: 0 0 18px; color: var(--ink2); font-size: 13px; }
.back { background: none; border: 0; color: var(--ink2); padding: 6px 0; margin-bottom: 8px; font-size: 14px; }
.back:hover { color: var(--ink); }

/* ---------- トップ ---------- */
.hero { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; margin: 4px 0 18px; }
.hero::before { /* 魔人の後ろのスポットライト */
  content: ""; position: absolute; left: -30px; top: 50%; width: 220px; height: 220px; transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(255, 201, 77, .22), transparent); pointer-events: none;
}
.hero h1 { font-weight: 900; margin: 0 0 8px; font-size: clamp(23px, 5.8vw, 34px); line-height: 1.38; letter-spacing: .01em; }
.hero h1 em { font-style: normal; color: var(--gold); position: relative; white-space: nowrap; }
.hero h1 em::after { /* 手描きの下線 */
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 7 C50 2 120 2 198 5' stroke='%23ff8a2b' stroke-width='3.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  opacity: .9;
}
.hero p { margin: 0; color: var(--ink2); font-size: 14px; line-height: 1.75; }
.trust { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.trust span { font-size: 11.5px; font-weight: 700; color: var(--ink); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); padding: 4px 10px; border-radius: 99px; }
.trust b { color: var(--gold); }

/* 「1から商品を探す」 */
.mood-cta {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: center;
  width: 100%; margin: 0 0 22px; padding: 16px 16px 16px 18px; text-align: left; color: var(--ink);
  border: 1px solid var(--line2); border-radius: 20px; overflow: hidden;
  background:
    radial-gradient(130% 160% at 0% 0%, rgba(255, 138, 43, .24), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(108, 75, 216, .22), transparent 60%),
    var(--panel);
  box-shadow: 0 10px 28px rgba(255, 138, 43, .12); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.mood-cta::after { /* ゆっくり通る光 */
  content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .07) 50%, transparent 60%);
  transform: translateX(-100%); animation: sheen 6s ease-in-out infinite; pointer-events: none;
}
@keyframes sheen { 0%, 70% { transform: translateX(-100%) } 100% { transform: translateX(100%) } }
.mood-cta:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 14px 34px rgba(255, 138, 43, .22); }
.mood-cta .mc-orb { font-size: 38px; filter: drop-shadow(0 0 12px rgba(255, 201, 77, .55)); animation: orb 3.2s ease-in-out infinite; }
@keyframes orb { 50% { transform: translateY(-3px) rotate(-5deg); } }
.mood-cta .mc-txt b { display: block; font-size: 18px; font-weight: 900; color: var(--gold); }
.mood-cta .mc-txt small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.6; color: var(--ink2); }
.mood-cta .mc-go {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; font-weight: 900;
  color: #1b1000; background: linear-gradient(180deg, var(--gold), var(--gold2)); box-shadow: 0 3px 0 #c25f12;
}

/* 売れ筋の棚（ゆっくり流れる） */
.shelf { margin: 0 -16px 24px; }
.shelf .section-title { margin: 0 16px 10px; }
.shelf-view { overflow: hidden; padding: 4px 0 8px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.shelf-track { display: flex; gap: 10px; width: max-content; padding-left: 16px; animation: drift 120s linear infinite; }
.shelf-view:hover .shelf-track, .shelf-view:focus-within .shelf-track { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }
.tile {
  width: 112px; flex: none; padding: 0; border: 0; background: none; text-align: left; color: var(--ink);
  transition: transform .2s;
}
.tile:hover { transform: translateY(-3px); }
.tile .ph { position: relative; width: 112px; height: 112px; border-radius: 16px; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow); }
.tile .ph img { max-width: 84%; max-height: 84%; object-fit: contain; }
.tile .tag { /* 値札 */
  position: absolute; right: 6px; bottom: 6px; font-size: 10.5px; font-weight: 900; color: #1b1000;
  background: var(--gold); padding: 2px 7px 2px 9px; border-radius: 4px 99px 99px 4px;
}
.tile .nm { display: block; margin-top: 7px; font-size: 12.5px; font-weight: 700; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 大カテゴリのカード（Canva の写真） */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.grid.cats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .grid.cats { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.cat-card {
  position: relative; aspect-ratio: 547 / 330; border-radius: 16px; overflow: hidden; padding: 0;
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel2), var(--panel));
  display: flex; align-items: flex-end; text-align: left; box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10, 10, 14, .85)); }
.cat-card .cat-ic { position: absolute; top: 12px; left: 12px; font-size: 28px; }
.cat-card img + .cat-ic { display: none; }
.cat-card .cat-nm { position: relative; z-index: 1; padding: 12px; font-weight: 800; font-size: 15px; line-height: 1.35; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.cat-card .cat-nm small { display: block; font-weight: 500; font-size: 11px; color: var(--gold); margin-top: 2px; }
.cat-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 14px 28px rgba(0, 0, 0, .45), 0 0 0 1px var(--gold); }
.cat-card:hover img { transform: scale(1.05); }
.cat-card[disabled] { opacity: .45; cursor: default; transform: none; }
/* 絵に名前が描いてあるカード: 文字の名前は隠し（読み上げには残す）、種類の数だけ左上に */
.cat-card.has-img { border-color: rgba(255, 201, 77, .28); }
.cat-card.has-img::after { display: none; }
.cat-card.has-img .cat-nm { position: absolute; top: 8px; left: 8px; padding: 0; }
.cat-card.has-img .nmtxt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cat-card.has-img .cat-nm small { margin: 0; background: rgba(12, 12, 15, .78); color: var(--gold); padding: 3px 8px; border-radius: 99px; font-size: 11px; text-shadow: none; }

/* 小カテゴリ: 売れ筋 1 位の写真つき */
.grid.subs { grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .grid.subs { grid-template-columns: repeat(3, 1fr); } }
.card-btn {
  position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center;
  padding: 10px 12px 10px 10px; min-height: 76px; text-align: left;
  background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 16px;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.card-btn:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: var(--shadow); }
.card-btn:active { transform: translateY(0); }
.card-btn .ph { width: 56px; height: 56px; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.card-btn .ph img { max-width: 86%; max-height: 86%; object-fit: contain; }
.card-btn .nm { font-weight: 800; font-size: 14.5px; line-height: 1.35; }
.card-btn .sub { display: block; color: var(--ink3); font-size: 11px; font-weight: 500; margin-top: 3px; }
.card-btn .sub { white-space: nowrap; }
.card-btn .sub.pr { color: var(--gold); font-weight: 700; margin-top: 1px; }
@media (max-width: 420px) { .card-btn { grid-template-columns: 48px 1fr; gap: 9px; padding: 9px 10px 9px 9px; } .card-btn .ph { width: 48px; height: 48px; } .card-btn .nm { font-size: 14px; } }
.card-btn[disabled] { opacity: .4; cursor: default; transform: none; border-color: var(--line); box-shadow: none; }

/* 50 音さくいん */
.kana { margin-top: 30px; }
.kana-nav { position: sticky; top: 54px; z-index: 5; display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 0 0 14px; padding: 6px; border-radius: 14px; background: rgba(23, 23, 28, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); }
.kana-nav button, .kana-nav span { display: grid; place-items: center; height: 32px; border-radius: 9px; font-weight: 900; font-size: 14px; }
.kana-nav button { border: 0; background: rgba(255, 255, 255, .06); color: var(--ink); transition: background .15s, color .15s; }
.kana-nav button:hover { background: var(--gold2); color: #1b1000; }
.kana-nav span { color: var(--ink3); opacity: .45; }
.kana-g { scroll-margin-top: 110px; margin-bottom: 14px; }
.kana-g h3 { display: inline-grid; place-items: center; width: 30px; height: 30px; margin: 0 0 8px; border-radius: 50%; background: var(--gold); color: #1b1000; font-size: 15px; font-weight: 900; }
.kana-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
@media (min-width: 560px) { .kana-list { grid-template-columns: repeat(3, 1fr); } }
.mini { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 10px 5px 5px; text-align: left; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); transition: border-color .15s, background .15s; }
.mini:hover { border-color: var(--gold); background: var(--panel2); }
.mini .ph { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #fff; overflow: hidden; font-size: 18px; }
.mini .ph img { max-width: 86%; max-height: 86%; object-fit: contain; }
.mini .nm { font-size: 13px; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 質問 ---------- */
.progress { display: flex; align-items: center; gap: 10px; margin: 6px 0 16px; color: var(--ink2); font-size: 12px; font-weight: 700; }
.bar { flex: 1; height: 8px; background: rgba(255, 255, 255, .08); border-radius: 99px; position: relative; }
.bar > i { position: relative; display: block; height: 100%; min-width: 8px; background: linear-gradient(90deg, var(--gold), var(--gold2)); border-radius: 99px; transition: width .45s cubic-bezier(.3, 1.4, .5, 1); }
.progress .bar > i::after { /* 買い物袋が進む */
  content: "🛍"; position: absolute; right: -9px; top: 50%; transform: translateY(-55%); font-size: 15px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5));
}
.dots { display: flex; gap: 4px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .16); transition: transform .2s, background .2s; }
.dots i.on { background: var(--gold2); transform: scale(1.15); }

.stage { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: end; margin-top: 4px; }
.bubble {
  position: relative; background: var(--ink); color: #1f1a17; border-radius: 22px;
  border: 2px solid var(--gold2); box-shadow: 4px 5px 0 rgba(255, 138, 43, .9), 0 12px 28px rgba(0, 0, 0, .35);
  padding: 16px 20px; font-weight: 900; font-size: clamp(18px, 4.6vw, 22px); line-height: 1.5;
  margin-bottom: 38px; min-height: 92px; animation: pop .28s ease-out;
}
.bubble::after { content: ""; position: absolute; left: -11px; bottom: 26px; border: 11px solid transparent; border-right-color: var(--gold2); border-left: 0; }
.bubble .qno { display: block; width: fit-content; font-size: 11px; font-weight: 900; color: #fff; background: var(--gold2); letter-spacing: .06em; margin-bottom: 6px; padding: 2px 9px; border-radius: 99px; }
@keyframes pop { from { transform: scale(.96); opacity: 0 } to { transform: scale(1); opacity: 1 } }

.answers { display: grid; gap: 10px; }
.ans {
  width: 100%; text-align: left; padding: 14px 20px 14px 14px; border-radius: 99px;
  background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line);
  font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 12px;
  animation: rise .3s ease-out both; transition: transform .12s, border-color .12s, background .12s, box-shadow .12s;
}
.ans:nth-child(2) { animation-delay: .04s } .ans:nth-child(3) { animation-delay: .08s } .ans:nth-child(4) { animation-delay: .12s }
.ans:nth-child(5) { animation-delay: .16s } .ans:nth-child(6) { animation-delay: .2s } .ans:nth-child(7) { animation-delay: .24s }
@keyframes rise { from { transform: translateY(6px); opacity: 0 } to { transform: none; opacity: 1 } }
.ans:hover { transform: translateX(4px); border-color: var(--gold2); background: linear-gradient(180deg, var(--panel3), var(--panel2)); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.ans:active { transform: scale(.98); }
.ans .k { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 900; flex: none; color: #1b1000; background: var(--gold2); }
.ans:nth-child(4n+2) .k { background: var(--mint); }
.ans:nth-child(4n+3) .k { background: var(--pink); }
.ans:nth-child(4n+4) .k { background: var(--gold); }
.ans.skip { background: transparent; border-style: dashed; color: var(--ink2); font-weight: 500; font-size: 14px; padding: 12px 18px; }
.under { display: flex; justify-content: space-between; margin-top: 14px; }
.link { background: none; border: 0; color: var(--ink2); font-size: 13px; padding: 6px 2px; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--ink); }
.link[disabled] { opacity: .35; cursor: default; }

/* ---------- 結果 ---------- */
.reveal { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; margin-bottom: 20px; }
.reveal h2 { font-weight: 900; margin: 0 0 4px; font-size: clamp(21px, 5.2vw, 27px); color: var(--gold); }
.reveal p { margin: 0; color: var(--ink2); font-size: 13px; line-height: 1.65; }

.results { display: grid; gap: 14px; }
.prod {
  position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 14px;
  background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); animation: pop .35s ease-out both;
}
.prod.first { border-color: var(--gold2); box-shadow: 0 0 0 1px var(--gold2), 0 14px 32px rgba(255, 138, 43, .18); }
.prod.first::before {
  content: "いちおし！"; position: absolute; top: -12px; left: 10px; transform: rotate(-4deg);
  background: var(--pink); color: #fff; font-weight: 900; font-size: 12px; padding: 3px 11px; border-radius: 99px; box-shadow: 2px 2px 0 rgba(0, 0, 0, .3);
}
.thumb { position: relative; width: 112px; height: 112px; background: #fff; border-radius: 14px; display: grid; place-items: center; overflow: hidden; }
.thumb img { max-width: 90%; max-height: 90%; object-fit: contain; }
.rankno { position: absolute; top: 5px; left: 5px; background: var(--gold2); color: #1b1000; font-weight: 900; font-size: 12px; border-radius: 8px; padding: 1px 7px; }
.prod h3 { margin: 0 0 8px; font-size: 13.5px; font-weight: 700; line-height: 1.5; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.match { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.match b { font-size: 24px; font-weight: 900; color: var(--gold); line-height: 1; min-width: 60px; }
.match b small { font-size: 12px; }
.match .bar { height: 6px; }
.match .bar > i { background: linear-gradient(90deg, var(--mint), var(--gold), var(--gold2)); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-weight: 900; font-size: 19px; letter-spacing: .01em; }
.price small { font-weight: 500; color: var(--ink3); font-size: 11px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 12px; }
.chip { font-size: 11px; padding: 3px 9px; border-radius: 99px; background: rgba(94, 230, 192, .1); color: var(--mint); border: 1px solid rgba(94, 230, 192, .3); }
.buy {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 900; font-size: 14px;
  background: linear-gradient(180deg, var(--gold), var(--gold2)); color: #1b1000; padding: 10px 18px; border-radius: 99px; border: 0;
  box-shadow: 0 4px 0 #c25f12; transition: transform .1s, box-shadow .1s, filter .1s;
}
.buy:hover { filter: brightness(1.07); }
.buy:active { transform: translateY(3px); box-shadow: 0 1px 0 #c25f12; }

.actions { display: grid; gap: 10px; margin-top: 22px; }
.primary {
  border: 0; border-radius: 99px; padding: 16px; font-weight: 900; font-size: 17px; color: #1b1000;
  background: linear-gradient(180deg, #ffa24f, var(--gold2)); box-shadow: 0 6px 0 #c25f12, 0 12px 26px rgba(255, 138, 43, .3);
  transition: transform .1s, box-shadow .1s;
}
.primary:hover { filter: brightness(1.06); }
.primary:active { transform: translateY(4px); box-shadow: 0 2px 0 #c25f12; }
.secondary { border: 1px solid var(--line); background: transparent; border-radius: 99px; padding: 13px; color: var(--ink2); font-weight: 700; }
.secondary:hover { color: var(--ink); border-color: var(--ink2); }

/* 「1から探す」の結果（小カテゴリのカード） */
.prod.mood .mood-cat { margin: 0 0 2px; font-size: 11.5px; color: var(--ink2); }
.prod.mood .mood-nm { font-size: 19px; font-weight: 900; -webkit-line-clamp: 1; margin-bottom: 4px; }
.prod.mood .mood-ic { font-size: 44px; }
.prod.mood .price { font-size: 16px; }
.prod.mood .price small { flex-basis: 100%; }
.prod.mood button.buy { width: 100%; justify-content: center; font-size: 14px; line-height: 1.35; text-align: center; }

.thinking { text-align: center; padding: 40px 0; color: var(--ink2); }

/* 結果が出た時の紙吹雪 */
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; animation: fall 1.8s ease-in forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); opacity: .9; } }

/* ---------- 予備のマスコット（SVG） ---------- */
.mascot { width: 150px; height: auto; display: block; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45)); }
.mascot .m-body { animation: float 3.6s ease-in-out infinite; transform-origin: 50% 100%; }
.mascot .eye-happy { display: none; }
.mascot.happy .eye { display: none; }
.mascot.happy .eye-happy { display: inline; }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }

/* ---------- 魔人（コーギー）: 体＋目と口の重ね ---------- */
.genie { position: relative; width: 150px; flex: none; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .45)); }
.genie .g-in { position: relative; aspect-ratio: var(--ar); animation: float 3.6s ease-in-out infinite; }
.genie .g-body { position: absolute; inset: 0; width: 100%; height: 100%; }
.genie .g-part { position: absolute; display: none; pointer-events: none; }
.genie.bust { overflow: hidden; aspect-ratio: 725 / 800; }   /* 胸から上だけ */
.genie.bust .g-in { animation: none; }
.genie .e-open, .genie .m-smile { display: block; }
.genie .e-open { animation: blinkOpen 4.2s infinite; }
.genie .e-shut { display: block; opacity: 0; animation: blinkShut 4.2s infinite; }
@keyframes blinkOpen { 0%, 93%, 100% { opacity: 1 } 95%, 98% { opacity: 0 } }
@keyframes blinkShut { 0%, 93%, 100% { opacity: 0 } 95%, 98% { opacity: 1 } }
.genie.talk .m-open { display: block; opacity: 0; animation: talkA .9s steps(1) 2; }
.genie.talk .m-smile { animation: talkB .9s steps(1) 2; }
@keyframes talkA { 0% { opacity: 1 } 25% { opacity: 0 } 50% { opacity: 1 } 75% { opacity: 0 } }
@keyframes talkB { 0% { opacity: 0 } 25% { opacity: 1 } 50% { opacity: 0 } 75% { opacity: 1 } }
.genie.think .g-part { display: none; animation: none; opacity: 1; }
.genie.think .eL-open, .genie.think .eR-shut, .genie.think .m-w { display: block; }
.genie.think .g-in { animation: tilt 1.2s ease-in-out infinite; transform-origin: 45% 40%; }
@keyframes tilt { 0%, 100% { transform: rotate(0) } 50% { transform: rotate(-5deg) } }
.genie.happy .g-part { display: none; animation: none; opacity: 1; }
.genie.happy .e-shut, .genie.happy .m-open { display: block; }
.genie.happy .g-in { animation: hop .6s ease-out 2; }
@keyframes hop { 0%, 100% { transform: translateY(0) } 40% { transform: translateY(-10px) } }
.hero .genie { width: 130px; }
.stage .genie { width: 130px; }
.reveal .genie { width: 110px; }
.thinking .genie, .thinking .mascot { margin: 0 auto 10px; }

/* ---------- スマホ ---------- */
@media (max-width: 420px) {
  .hero .genie, .hero .mascot { width: 108px; }
  .hero::before { width: 170px; height: 170px; left: -24px; }
  .stage { grid-template-columns: 96px 1fr; }
  .stage .genie, .stage .mascot { width: 96px; }
  .bubble { padding: 14px 16px; margin-bottom: 26px; }
  .reveal { grid-template-columns: 92px 1fr; }
  .reveal .genie, .reveal .mascot { width: 92px; }
  .prod { grid-template-columns: 92px 1fr; gap: 12px; padding: 12px; }
  .thumb { width: 92px; height: 92px; }
  .mood-cta { grid-template-columns: auto 1fr; }
  .mood-cta .mc-go { display: none; }
  .tile, .tile .ph { width: 100px; }
  .tile .ph { height: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .shelf-view { overflow-x: auto; }
}

/* ---------- 規約に合わせた形（商品の写真は Amazon の商品ページへ） ---------- */
.tile { display: flex; flex-direction: column; }
.tile .ph { text-decoration: none; }
.tile .tag { background: rgba(12,12,15,.78); color: var(--gold); font-weight: 700; }
.tile button.nm { margin-top: 7px; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; font-size: 12px; font-weight: 700; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile button.nm:hover { color: var(--gold); }
.card-btn .ph.ic, .mini .ph { background: linear-gradient(160deg, #2c2c35, #1b1b21); border: 1px solid rgba(255,201,77,.25); font-size: 26px; }
.mini .ph { font-size: 18px; }
.thumb.ic { background: radial-gradient(circle at 40% 35%, #34343f, #1b1b21); border: 1px solid rgba(255,201,77,.3); }
.thumb.ic .mood-ic { font-size: 52px; }
a.thumb { text-decoration: none; }
.prod h3 a { color: inherit; text-decoration: none; }
.prod h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.price small.at { color: var(--ink3); font-size: 10.5px; margin-left: 0; }
.price-note { margin: -8px 0 14px; font-size: 11px; color: var(--ink3); line-height: 1.6; }
.tile button.nm { white-space: normal; }
.tile button.nm b { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile button.nm small { display: block; font-size: 10.5px; font-weight: 500; color: var(--gold); margin-top: 1px; }

/* ---------- 本物のアドレスに合わせて a にしたボタン ---------- */
a.cat-card, a.card-btn, a.mini, a.mood-cta, .tile a.nm, a.back { text-decoration: none; color: var(--ink); }
.tile a.nm { display: block; margin-top: 7px; }
.tile a.nm:hover b { color: var(--gold); }
a.back { display: inline-block; color: var(--ink2); }
/* シェア */
.share { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 1px dashed var(--line2); border-radius: 16px; }
.share > span { width: 100%; text-align: center; font-size: 12px; font-weight: 700; color: var(--ink2); }
.share .sh { border: 0; border-radius: 99px; padding: 9px 16px; font-weight: 900; font-size: 14px; color: #fff; }
.share .x { background: #000; border: 1px solid #444; }
.share .line { background: #06c755; }
.share .copy { background: var(--panel3); }
.share .more { background: var(--panel3); }
/* 検索のための説明（最初に開いたページだけ・画面の下） */
.seo { max-width: 760px; margin: 0 auto; padding: 8px 16px 24px; color: var(--ink2); font-size: 13px; line-height: 1.8; }
.seo h1 { font-size: 18px; color: var(--ink); margin: 18px 0 6px; }
.seo h2 { font-size: 15px; color: var(--ink); margin: 18px 0 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.seo ul, .seo ol { padding-left: 1.3em; margin: 6px 0; }
.seo a { color: var(--gold); }
.seo .rel { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.seo .rel a { display: inline-block; padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink); font-size: 12.5px; }
.seo small { color: var(--ink3); }

/* 2 品を比べる */
.buyrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cmp { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink2); cursor: pointer; }
.cmp input { width: 18px; height: 18px; accent-color: var(--gold2); }
.cmp-bar { position: sticky; bottom: 12px; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 10px 12px 10px 16px; border-radius: 99px; background: rgba(32,32,39,.95); border: 1px solid var(--line2); box-shadow: var(--shadow); font-size: 13px; font-weight: 700; }
.cmp-bar button { border: 0; border-radius: 99px; padding: 9px 16px; font-weight: 900; color: #1b1000; background: linear-gradient(180deg, var(--gold), var(--gold2)); }
.cmp-bar button:disabled { opacity: .45; }
.cmp-dlg { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; }
.cmp-box { position: relative; width: min(640px, 100%); max-height: 88dvh; overflow: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: 20px; padding: 18px 14px 16px; }
.cmp-box h2 { margin: 0 0 10px; font-size: 17px; font-weight: 900; color: var(--gold); }
.cmp-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; color: var(--ink2); font-size: 24px; }
.cmp-box table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.cmp-box th, .cmp-box td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: center; }
.cmp-box th { text-align: left; font-weight: 700; width: 34%; }
.cmp-box th small { display: block; color: var(--ink3); font-weight: 500; font-size: 10.5px; margin-top: 2px; }
.cmp-box tbody td { font-size: 16px; font-weight: 900; }
.cmp-box .big { color: var(--gold); font-size: 20px; }
.cthumb { display: grid; place-items: center; height: 86px; background: #fff; border-radius: 10px; margin-bottom: 6px; }
.cthumb img { max-width: 88%; max-height: 80px; object-fit: contain; }
.cname { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 11.5px; font-weight: 700; color: var(--ink); text-decoration: none; text-align: left; }
.cmp-buy { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.cmp-buy .buy { justify-content: center; font-size: 12.5px; padding: 10px 8px; }
a.secondary.home-link { display: block; text-align: center; text-decoration: none; }
.cmp-bar[hidden] { display: none; }

/* 安心の印（販売元・メーカー） */
.badges { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 0; }
.badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px; color: var(--gold); background: rgba(255,201,77,.1); border: 1px solid rgba(255,201,77,.35); }
.cmp-box td.sm { font-size: 11.5px; font-weight: 700; color: var(--gold); line-height: 1.5; }

/* 最新商品 毎日更新中（点がゆっくり光る） */
.trust .live { color: var(--mint); border-color: rgba(94,230,192,.4); background: rgba(94,230,192,.08); display: inline-flex; align-items: center; gap: 6px; }
.trust .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(94,230,192,.6); animation: live 2s ease-out infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(94,230,192,0); } 100% { box-shadow: 0 0 0 0 rgba(94,230,192,0); } }

/* β版の札（ロゴの横） */
.logo .beta { align-self: flex-start; margin-top: 2px; font-size: 10px; font-weight: 900; letter-spacing: .04em; color: #1b1000; background: var(--mint); padding: 2px 7px; border-radius: 99px; transform: rotate(4deg); }
