/*
 * Kiku（効く）— スタイル（世界水準リデザイン）
 * モバイル縦持ち最適化。信頼感のティール＋温かみのゴールド。
 * 依存なし・SVG/CSSのみでビジュアルとアニメーションを構成。
 */
:root {
  --bg: #eef3f1;
  --bg-2: #f6f9f8;
  --card: #ffffff;
  --ink: #17211f;
  --ink-soft: #5b6b67;
  --line: #e5eae8;
  --teal: #2f8f83;
  --teal-d: #1f6b62;
  --teal-2: #3fb39f;
  --gold: #d29a52;
  --navy: #16232c;
  --good: #2f9e57;
  --warn: #c2492f;
  --radius: 18px;
  --shadow: 0 8px 26px rgba(20, 44, 40, 0.08);
  --shadow-lg: 0 18px 44px rgba(20, 44, 40, 0.16);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --grad: linear-gradient(135deg, var(--teal-2), var(--teal-d));
  --maxw: 680px;
  /* テーマ切替用（ライトの既定値） */
  --sub: #eef2f1;
  --seg: #e7edeb;
  --tint: #f2faf8;
  --mixbg: #fff;
  --warnbg: #fff7ed;
  --warnline: #f0dcc0;
  --topbar-bg: rgba(255, 255, 255, 0.72);
  --topbar-line: rgba(229, 234, 232, 0.8);
  --bgrad1: #e6f2ef;
  --bgrad2: #eaf1ef;
}

/* ── ダークモード（html[data-theme=dark] で切替・localStorage永続） ── */
html[data-theme="dark"] {
  --bg: #101817;
  --bg-2: #141d1c;
  --card: #1a2422;
  --ink: #e8efed;
  --ink-soft: #9db0ab;
  --line: #2b3735;
  --teal: #3fb39f;
  --teal-d: #57c7b3;
  --gold: #d9a75f;
  --good: #55c184;
  --shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.5);
  --sub: #243130;
  --seg: #1e2927;
  --tint: #1c2725;
  --mixbg: #1a2422;
  --warnbg: #2a2119;
  --warnline: #4a3a26;
  --topbar-bg: rgba(16, 24, 23, 0.72);
  --topbar-line: rgba(43, 55, 53, 0.8);
  --bgrad1: #15211f;
  --bgrad2: #131d1b;
}
html[data-theme="dark"] .sclear:hover { background: var(--seg); color: var(--ink); }
html[data-theme="dark"] .factor > b { color: var(--ink); }
html[data-theme="dark"] .trybtn { background: var(--grad); }
html[data-theme="dark"] .tagchip.on { background: #0f3d36; border-color: #2a6a5f; color: #cdeee7; }
html[data-theme="dark"] .segbtn.on { background: #2c3b39; color: var(--teal-d); }
html[data-theme="dark"] .medal { background: var(--sub); }
html[data-theme="dark"] .ev-study { background: #17352a; color: #6fd39b; }
html[data-theme="dark"] .ev-expert { background: #1d2742; color: #93a9ef; }
html[data-theme="dark"] .ev-anecdotal { background: #35291a; color: #dfa863; }
html[data-theme="dark"] .ev-none { background: #242b2d; color: #93a1a5; }
html[data-theme="dark"] .rv-expert { background: #17352a; color: #6fd39b; }
html[data-theme="dark"] .rv-unreviewed { background: #242b2d; color: #93a1a5; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1200px 600px at 100% -10%, var(--bgrad1) 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 10%, var(--bgrad2) 0%, transparent 55%),
    var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
::selection { background: color-mix(in srgb, var(--teal) 30%, var(--mixbg)); }

/* ── Topbar ── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 11px 16px;
  background: var(--topbar-bg);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--topbar-line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; }
.brand-mark {
  flex: none;
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad);
  color: #fff; font-weight: 800; font-size: 1.3rem;
  box-shadow: 0 6px 16px rgba(31, 107, 98, 0.35);
  transition: transform .25s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text b { font-size: 1.14rem; letter-spacing: 1px; line-height: 1.2; }
.brand-text small { color: var(--ink-soft); font-size: 0.7rem; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang {
  flex: none; border: 1px solid var(--line); background: var(--card); color: var(--ink-soft);
  padding: 7px 13px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; cursor: pointer;
  transition: all .2s var(--ease);
}
.lang:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-1px); }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  padding: 34px 16px 58px;
  background: linear-gradient(150deg, #135e55 0%, #24857a 45%, #2f8f83 65%, #2c7f86 100%);
}
.hero-inner { position: relative; z-index: 3; max-width: var(--maxw); margin: 0 auto; }
.hero-badge { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 2px;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.3); color: #fff;
  padding: 6px 15px; border-radius: 999px; margin-bottom: 16px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.hero-title { font-size: clamp(1.55rem, 6.4vw, 2.3rem); font-weight: 800; line-height: 1.32;
  letter-spacing: .3px; text-shadow: 0 6px 22px rgba(0, 0, 0, .18); margin-bottom: 10px; }
.hero-sub { font-size: 0.92rem; opacity: .94; max-width: 30em; margin: 0 auto 24px; line-height: 1.75; }
.hero-stats { display: flex; justify-content: center; gap: 10px; }
.hstat { flex: 0 1 116px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 15px; padding: 12px 8px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hstat b { display: block; font-size: 1.75rem; font-weight: 800; line-height: 1; letter-spacing: .5px; }
.hstat small { font-size: 0.64rem; opacity: .88; letter-spacing: .5px; }
.hero-member { display: inline-block; margin-top: 16px; font-size: 0.78rem; font-weight: 700; color: #fff;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px;
  padding: 7px 16px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: all .2s var(--ease); }
.hero-member:hover { background: rgba(255, 255, 255, 0.24); transform: translateY(-1px); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 62px; display: block; z-index: 2; }
.hero-wave path { fill: var(--bg); }
.hero-grid { position: absolute; inset: 0; z-index: 1; opacity: .16;
  background-image: linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(circle at 50% 28%, #000, transparent 72%);
  mask-image: radial-gradient(circle at 50% 28%, #000, transparent 72%); }
.hero-blobs { position: absolute; inset: 0; z-index: 1; }
.hero-blobs span { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .5; }
.hero-blobs span:nth-child(1) { width: 220px; height: 220px; background: #5fe0cb; top: -50px; left: -30px; animation: drift1 15s ease-in-out infinite; }
.hero-blobs span:nth-child(2) { width: 180px; height: 180px; background: #8a95ec; top: 0; right: -30px; animation: drift2 18s ease-in-out infinite; }
.hero-blobs span:nth-child(3) { width: 160px; height: 160px; background: #f2cd8a; bottom: -20px; left: 42%; animation: drift3 20s ease-in-out infinite; }

@keyframes heroUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes drift1 { 50% { transform: translate(42px, 32px) scale(1.15); } }
@keyframes drift2 { 50% { transform: translate(-34px, 26px) scale(1.12); } }
@keyframes drift3 { 50% { transform: translate(22px, -30px) scale(1.2); } }

/* ── Layout ── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 16px 16px 72px; }
.wrap.has-hero { margin-top: -26px; position: relative; z-index: 4; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Search ── */
.searchbar { position: relative; display: flex; align-items: center; margin: 6px 0 14px; }
.searchbar .si { position: absolute; left: 16px; font-size: 0.95rem; opacity: .6; pointer-events: none; }
.searchbar input {
  width: 100%; font: inherit; font-size: 0.95rem;
  padding: 14px 42px 14px 42px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink); outline: none; transition: border-color .18s, box-shadow .18s;
}
.has-hero .searchbar input { box-shadow: 0 12px 30px rgba(20, 44, 40, .14); border-color: transparent; }
.searchbar input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 20%, var(--mixbg)); }
.searchbar input::-webkit-search-cancel-button { display: none; }
.sclear {
  position: absolute; right: 9px; width: 28px; height: 28px; border: none; background: var(--sub);
  color: var(--ink-soft); border-radius: 50%; font-size: 1.05rem; line-height: 1; cursor: pointer; transition: all .15s;
}
.sclear:hover { background: #e0e6e4; color: var(--ink); }

/* ── Tag chips ── */
.taglabel { font-size: 0.72rem; color: var(--ink-soft); font-weight: 700; margin: 6px 2px 6px; letter-spacing: .5px; }
.tagrow { padding-bottom: 6px; }
.tagchip { font-size: 0.8rem; }
.tagchip i { font-style: normal; opacity: .55; font-size: 0.72rem; margin-left: 2px; }
.tagchip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.tagchip.on i { opacity: .8; }
.dtags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.dtags .tagchip { background: var(--card); border: 1px solid var(--line); color: var(--teal-d); }
.dtags .tagchip:hover { border-color: var(--teal); }

.scorelink { color: var(--teal-d); font-size: 0.74rem; font-weight: 700; border-bottom: 1px solid transparent; transition: border-color .15s; }
.scorelink:hover { border-bottom-color: var(--teal-d); }
.listhead b { margin-left: auto; color: var(--teal-d); font-size: 0.78rem; font-weight: 700; }

/* score explanation page */
.formula { background: var(--tint); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px;
  font-weight: 700; color: var(--teal-d); font-size: 0.9rem; line-height: 1.7; }
.factor { padding: 13px 0; border-bottom: 1px dashed var(--line); }
.factor:last-child { border-bottom: none; }
.factor > b { display: block; font-size: 0.98rem; color: var(--navy); margin-bottom: 4px; }
.factor .w { color: #fff; background: var(--grad); font-size: 0.72rem; margin-left: 6px; padding: 2px 9px; border-radius: 999px; }
.factor p { font-size: 0.85rem; color: var(--ink-soft); }
.wtab { width: 100%; border-collapse: collapse; margin-top: 8px; }
.wtab td { border: 1px solid var(--line); padding: 6px 10px; font-size: 0.8rem; }
.wtab td:last-child { text-align: right; font-weight: 700; color: var(--teal-d); width: 72px; }

/* ── Quality (trust) segmented control ── */
.seg { display: flex; gap: 4px; background: var(--seg); border-radius: 13px; padding: 4px; margin-bottom: 4px; }
.segbtn {
  flex: 1; border: none; background: transparent; color: var(--ink-soft);
  padding: 10px 6px; border-radius: 10px; font: inherit; font-size: 0.8rem; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: all .2s var(--ease);
}
.segbtn:hover { color: var(--ink); }
.segbtn.on { background: var(--card); color: var(--teal-d); box-shadow: 0 2px 8px rgba(31, 42, 40, .14); transform: translateY(-1px); }

/* ── Genre chips ── */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--card);
  padding: 9px 15px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  color: var(--ink-soft); transition: all .2s var(--ease); white-space: nowrap;
}
.chip:hover { border-color: var(--c, var(--teal)); color: var(--ink); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(20, 44, 40, .08); }
.chip.on { background: var(--c, var(--teal)); border-color: var(--c, var(--teal)); color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--c, var(--teal)) 40%, transparent); }

.listhead { display: flex; align-items: center; gap: 8px; margin: 12px 2px 12px; color: var(--ink-soft); font-size: 0.8rem; }
.listhead::before { content: "▼"; color: var(--teal); font-size: 0.7rem; }

/* ── Ranking list ── */
.list { display: flex; flex-direction: column; gap: 12px; }
.card a { display: flex; gap: 13px; align-items: stretch;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px; box-shadow: var(--shadow); transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.card a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--teal) 30%, var(--line)); }
.medal {
  flex: none; width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center; font-weight: 800; font-size: 1rem;
  background: var(--sub); color: var(--ink-soft);
}
.medal.m1 { background: linear-gradient(135deg, #ffe08a, #d4a017); color: #5a3d00; box-shadow: 0 4px 12px rgba(212, 160, 23, .4); }
.medal.m2 { background: linear-gradient(135deg, #eef1f3, #b8c0c4); color: #444; }
.medal.m3 { background: linear-gradient(135deg, #efc79b, #c8813a); color: #5a3000; }
.card-body { flex: 1; min-width: 0; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-body h3 { font-size: 1.04rem; line-height: 1.42; margin: 7px 0 9px; letter-spacing: .2px; }
.gtag { font-size: 0.72rem; font-weight: 700; color: var(--c, var(--teal));
  background: color-mix(in srgb, var(--c, var(--teal)) 13%, var(--mixbg)); padding: 3px 10px; border-radius: 999px; }
.score { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.score b { font-size: 1.4rem; color: var(--teal-d); font-weight: 800; }
.score i { font-size: 0.6rem; color: var(--ink-soft); font-style: normal; }

.metrics { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.felt { font-size: 0.76rem; font-weight: 700; color: var(--good); }
.felt i { font-style: normal; font-weight: 400; color: var(--ink-soft); font-size: 0.68rem; }
.pill { font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; border: 1px solid transparent; }
.ev-study { background: #e7f3ec; color: #1d7a44; }
.ev-expert { background: #e9eefb; color: #2f4db0; }
.ev-anecdotal { background: #fdf1e3; color: #a96a1e; }
.ev-none { background: #f0f1f2; color: #7a868a; }
.rv-expert { background: #e7f3ec; color: #1d7a44; }
.rv-unreviewed { background: #f0f1f2; color: #7a868a; }

/* entrance animations — gated so the default (no-animation) state is always visible */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner { animation: heroUp .9s var(--ease) both; }
  .wrap { animation: fadeIn .45s var(--ease) both; }
  .list .card { animation: cardIn .5s var(--ease) both; }
  .list .card:nth-child(1) { animation-delay: .03s } .list .card:nth-child(2) { animation-delay: .06s }
  .list .card:nth-child(3) { animation-delay: .09s } .list .card:nth-child(4) { animation-delay: .12s }
  .list .card:nth-child(5) { animation-delay: .15s } .list .card:nth-child(6) { animation-delay: .18s }
  .list .card:nth-child(7) { animation-delay: .21s } .list .card:nth-child(8) { animation-delay: .24s }
  .list .card:nth-child(9) { animation-delay: .27s } .list .card:nth-child(n+10) { animation-delay: .3s }
}
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.empty { color: var(--ink-soft); text-align: center; padding: 40px 0; }

.disclaimer { margin-top: 22px; font-size: 0.72rem; color: var(--ink-soft);
  background: var(--card)7ed; border: 1px solid #f0dcc0; border-radius: 12px; padding: 11px 13px; }

/* ── Detail ── */
.detail .back { display: inline-block; color: var(--teal-d); font-weight: 700; font-size: 0.85rem; margin-bottom: 12px; transition: transform .15s; }
.detail .back:hover { transform: translateX(-3px); }
.detail h1 { font-size: 1.55rem; line-height: 1.35; margin: 8px 0 10px; letter-spacing: .2px; }
.detail .lead { color: var(--ink-soft); margin-bottom: 18px; }

.scorebox { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 18px; }
.bigscore { flex: none; position: relative; width: 92px; height: 92px; display: grid; place-items: center; }
.ring { position: absolute; inset: 0; width: 92px; height: 92px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: color-mix(in srgb, var(--teal) 16%, var(--mixbg)); stroke-width: 7; }
.ring-fg { fill: none; stroke: var(--teal); stroke-width: 7; stroke-linecap: round;
  transition: stroke-dashoffset 1.2s var(--ease); }
.bs-num { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.bs-num b { font-size: 1.9rem; font-weight: 800; color: var(--teal-d); }
.bs-num i { font-size: 0.55rem; font-style: normal; color: var(--ink-soft); margin-top: 2px; }
.bs-num em { font-style: normal; font-size: 0.62rem; color: var(--teal-d); opacity: .85; }
a.bigscore:hover .ring-fg { stroke: var(--teal-2); }
.breakdown { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.bd { display: flex; flex-direction: column; gap: 3px; }
.bd > span { font-size: 0.72rem; color: var(--ink-soft); font-weight: 700; }
.bd > b { font-size: 0.95rem; color: var(--good); }
.bd small { font-size: 0.68rem; color: var(--ink-soft); }
.bd .pill { align-self: flex-start; }

.block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 17px; box-shadow: var(--shadow); margin-bottom: 14px; }
.block h2 { font-size: 0.95rem; margin-bottom: 12px; color: var(--navy); }
.block h2 small { color: var(--ink-soft); font-weight: 400; }
.steps { display: flex; flex-direction: column; gap: 11px; }
.steps li { display: flex; gap: 11px; align-items: flex-start; }
.steps .num { flex: none; width: 25px; height: 25px; border-radius: 50%; background: var(--grad);
  color: #fff; font-size: 0.78rem; font-weight: 700; display: grid; place-items: center; margin-top: 2px;
  box-shadow: 0 3px 8px rgba(31, 107, 98, .3); }
.caution { background: var(--card)7ed; border-color: #f0dcc0; }
.caution h2 { color: var(--warn); }
.source { display: inline-block; color: var(--teal-d); font-weight: 700; word-break: break-all; }
.origin { margin-top: 8px; font-size: 0.8rem; color: var(--ink-soft); }

/* 動画で見る */
.embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  margin-bottom: 14px; background: #000; box-shadow: var(--shadow); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-vertical { aspect-ratio: 9 / 16; max-width: 325px; margin-left: auto; margin-right: auto; }
.videobtns { display: flex; gap: 10px; flex-wrap: wrap; }
.vbtn { flex: 1; min-width: 140px; text-align: center; padding: 12px 14px; border-radius: 12px;
  font-weight: 800; font-size: 0.9rem; color: #fff; transition: transform .15s, box-shadow .15s; }
.vbtn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.vbtn.yt { background: #e0282e; }
.vbtn.tt { background: #111; }
.videonote { display: block; margin-top: 10px; font-size: 0.72rem; color: var(--ink-soft); }

/* contributor + tip */
.contributor { display: flex; flex-direction: column; gap: 14px; }
.who { display: flex; gap: 12px; align-items: center; }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; box-shadow: var(--shadow); }
.who b { font-size: 0.92rem; } .who small { display: block; color: var(--ink-soft); font-size: 0.78rem; }
.exp { color: var(--good); }
.tipbox { background: linear-gradient(135deg, #f4faf9, #eef7f5); border: 1px dashed var(--teal); border-radius: 14px; padding: 14px; }
.tipbox > p { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 10px; }
.tipbtns { display: flex; gap: 8px; }
.tipbtn { flex: 1; border: 1px solid var(--teal); background: var(--card); color: var(--teal-d);
  padding: 11px; border-radius: 11px; font-weight: 800; font-size: 0.95rem; cursor: pointer; transition: all .18s var(--ease); }
.tipbtn:hover { background: var(--teal); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(47, 143, 131, .3); }
.tipped { margin-top: 10px; color: var(--good); font-weight: 700; font-size: 0.85rem; }
.demo { display: block; margin-top: 8px; color: var(--ink-soft); font-size: 0.68rem; }

.wholink { text-decoration: none; transition: opacity .15s; }
.wholink:hover { opacity: .75; }
.profilelink { color: var(--teal-d) !important; font-weight: 700; margin-top: 2px; }

/* related + mini cards */
.related h2 { margin-bottom: 12px; }
.minilist { display: flex; flex-direction: column; gap: 10px; }
.mini { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line);
  border-radius: 13px; padding: 11px 13px; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.mini:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.related .mini { margin-bottom: 10px; }
.related .mini:last-child { margin-bottom: 0; }
.mini-score { flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 1.05rem; box-shadow: 0 4px 10px rgba(31, 107, 98, .3); }
.mini-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mini-title { font-weight: 700; font-size: 0.92rem; line-height: 1.35; color: var(--ink); }
.mini-metrics { font-size: 0.72rem; color: var(--ink-soft); }

/* contributor profile */
.profile { display: flex; gap: 15px; align-items: center; }
.avatar.big { width: 66px; height: 66px; font-size: 1.6rem; }
.profile-info { min-width: 0; }
.profile-info h1 { font-size: 1.4rem; margin: 0 0 4px; }
.exp-badge { font-size: 0.7rem; font-weight: 700; color: var(--good); background: #e7f3ec;
  padding: 3px 8px; border-radius: 999px; vertical-align: middle; }
.profile-bio { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 6px; }
.profile-stats { display: flex; gap: 12px; margin-bottom: 14px; }
.pstat { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px; text-align: center; box-shadow: var(--shadow); }
.pstat b { display: block; font-size: 1.5rem; color: var(--teal-d); font-weight: 800; }
.pstat small { font-size: 0.7rem; color: var(--ink-soft); }

/* member (monthly code) */
.memberform { display: flex; gap: 10px; flex-wrap: wrap; }
.memberform input { flex: 1 1 160px; font: inherit; font-size: 1rem; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: 12px; outline: none; letter-spacing: 1px;
  background: var(--card); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.memberform input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 18%, var(--mixbg)); }
.memberform .trybtn { flex: 0 0 auto; width: auto; padding: 13px 22px; }
.membermsg { margin-top: 12px; font-size: 0.86rem; font-weight: 700; min-height: 1.2em; }
.membermsg.ok { color: var(--good); }
.membermsg.ng { color: var(--warn); }

/* try + feedback */
.tryblock { text-align: center; }
.trybtn { width: 100%; border: none; background: var(--navy); color: #fff;
  padding: 15px; border-radius: 13px; font-weight: 800; font-size: 1rem; cursor: pointer; transition: all .18s var(--ease); }
.trybtn:hover { background: #22323d; transform: translateY(-2px); box-shadow: var(--shadow); }
.trybtn.done { background: #e7f3ec; color: var(--good); cursor: default; transform: none; box-shadow: none; }
.fb { margin-top: 14px; }
.fb > p { font-size: 0.9rem; margin-bottom: 10px; }
.fb button { border: 1px solid var(--line); background: var(--card); padding: 11px 17px; border-radius: 999px;
  font-weight: 700; cursor: pointer; margin: 0 4px; transition: all .18s var(--ease); }
.fb-yes:hover { border-color: var(--good); color: var(--good); transform: translateY(-2px); }
.fb-no:hover { border-color: var(--warn); color: var(--warn); transform: translateY(-2px); }
.fb-done { margin-top: 14px; color: var(--good); font-weight: 700; font-size: 0.88rem; }

/* ── Wider screens ── */
@media (min-width: 560px) {
  .detail h1 { font-size: 1.85rem; }
  .tipbtn { font-size: 1.05rem; }
  .hero { padding: 46px 16px 64px; }
  .hstat b { font-size: 2rem; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-blobs span { animation: none; }
}

/* ══════════════════════════════════════════════
   ブラッシュアップ追加分（2026-07）
   今日の知恵 / ☆保存 / 並び替え / シェア
   ══════════════════════════════════════════════ */

/* ── 今日の知恵（日替わりピックアップ） ── */
.daily {
  display: flex; flex-direction: column; gap: 7px;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #fdf8ef, #fbf2e2);
  border: 1px solid #ecd9b8;
  border-radius: var(--radius);
  padding: 15px 17px 14px;
  margin-bottom: 16px;
  box-shadow: 0 8px 22px rgba(180, 132, 52, 0.10);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.daily::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--gold), #b97f37);
}
.daily:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(180, 132, 52, 0.18); }
.daily-label {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 1.5px;
  color: #a1712c;
}
.daily-title { font-size: 1.04rem; font-weight: 800; line-height: 1.45; color: var(--ink); }
.daily-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 0.76rem; color: var(--ink-soft);
}
.daily-meta b { color: var(--teal-d); }

/* ── カードの☆保存ボタン ── */
.starbtn {
  flex: none; border: none; background: transparent; cursor: pointer;
  font-size: 1.15rem; line-height: 1; padding: 4px 6px; margin-left: auto;
  color: #b9c4c1; border-radius: 8px;
  transition: transform .15s var(--ease), color .15s var(--ease), background .15s var(--ease);
}
.starbtn:hover { color: var(--gold); background: #faf3e6; transform: scale(1.15); }
.starbtn.on { color: var(--gold); }
.card-top .score { margin-left: 0; }

/* ── 所要時間ピル ── */
.pill.mins { background: #eef3f6; color: #4a6a78; border-color: #dbe6ec; }

/* ── 保存済みトグル（リスト見出し内） ── */
.savedbtn {
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft);
  padding: 4px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  cursor: pointer; transition: all .18s var(--ease); white-space: nowrap;
}
.savedbtn i { font-style: normal; opacity: .75; }
.savedbtn:hover { border-color: var(--gold); color: #a1712c; }
.savedbtn.on { background: linear-gradient(135deg, var(--gold), #c08a3e); border-color: transparent; color: #fff;
  box-shadow: 0 4px 12px rgba(180, 132, 52, 0.3); }

/* ── 詳細ページの保存・シェア ── */
.actions { display: flex; gap: 8px; margin: 2px 0 14px; }
.actbtn {
  flex: 1; border: 1px solid var(--line); background: var(--card); color: var(--ink-soft);
  padding: 10px 12px; border-radius: 12px; font-size: 0.85rem; font-weight: 700;
  cursor: pointer; transition: all .18s var(--ease);
}
.actbtn:hover { border-color: var(--teal); color: var(--teal-d); transform: translateY(-1px); box-shadow: var(--shadow); }
.actbtn.on { background: linear-gradient(135deg, #faf3e6, #f6ead2); border-color: #ecd9b8; color: #a1712c; }

/* ── ヘッダー右側ボタン群（マイ記録・テーマ切替・言語） ── */
.hbtns { display: flex; align-items: center; gap: 7px; flex: none; }
.iconbtn {
  flex: none; width: 36px; height: 36px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink-soft); border-radius: 999px; font-size: 1rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: all .2s var(--ease); text-decoration: none;
}
.iconbtn:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-1px); }

/* ── 絞り込みパネル（折りたたみ） ── */
.filterbar { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; }
.filterbtn {
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft);
  padding: 9px 15px; border-radius: 999px; font: inherit; font-size: 0.8rem; font-weight: 700;
  cursor: pointer; transition: all .2s var(--ease); display: inline-flex; align-items: center; gap: 6px;
}
.filterbtn:hover { border-color: var(--teal); color: var(--teal); }
.filterbtn.open { background: var(--teal); border-color: var(--teal); color: #fff; }
.filterbtn .fcount {
  font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--gold); color: #fff; font-size: 0.68rem; display: inline-grid; place-items: center;
}
.filterpanel { overflow: hidden; }
.filterpanel[hidden] { display: none; }
.randbtn {
  margin-left: auto; border: 1px solid var(--line); background: var(--card); color: var(--teal-d);
  padding: 9px 15px; border-radius: 999px; font: inherit; font-size: 0.8rem; font-weight: 700;
  cursor: pointer; transition: all .2s var(--ease); white-space: nowrap;
}
.randbtn:hover { border-color: var(--teal); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(20, 44, 40, .12); }

/* ── トップへ戻る ── */
.topfab {
  position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 44px; height: 44px; border: none; border-radius: 999px; cursor: pointer;
  background: var(--grad); color: #fff; font-size: 1.15rem; box-shadow: 0 10px 24px rgba(31, 107, 98, .4);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.topfab.show { opacity: 1; pointer-events: auto; transform: none; }

/* ── マイ記録ページ ── */
.mystats { display: flex; gap: 10px; margin: 14px 0 20px; }
.mystats .pstat { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 8px; text-align: center; box-shadow: var(--shadow); }
.mystats .pstat b { display: block; font-size: 1.45rem; font-weight: 800; color: var(--teal-d); line-height: 1.2; }
.mystats .pstat small { font-size: 0.68rem; color: var(--ink-soft); }
.minilist { display: flex; flex-direction: column; gap: 10px; }
.mefb { font-size: 0.72rem; font-weight: 700; margin-left: 6px; }
.mefb.yes { color: var(--good); }
.mefb.no { color: var(--ink-soft); }
