/* リカイドラボ — ラボノート×リカイドポップ
   コンセプト: 薄ピンク方眼ノートに黄マーカー見出し・ジャンルステッカー・付箋・猫の吹き出し。
   本文(地の文)=事実・データ / 猫の吹き出し=気持ち、の役割分担で組む。 */
:root {
  --paper: #fff6ec;
  --card: #fffdfb;
  --ink: #3d2e2a;
  --muted: #9a837b;
  --line: #ffe7da;
  --accent: #ff5e7e;
  --accent2: #ff9d5c;
  --grad: linear-gradient(135deg, #ff5e7e, #ff9d5c);
  --grid: rgba(255, 94, 126, 0.065);
  --marker: rgba(255, 214, 110, 0.6);
  --sticky: #fff3c4;
  --blue: #3b82f6;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 26px 26px;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 2.0;
}

/* ---------- ヘッダー ---------- */
.topbar {
  background: var(--card);
  border-bottom: 3px solid var(--ink);
  position: relative;
  padding: 12px 0 10px;
}
.topbar::after {
  content: "";
  display: block;
  position: absolute; left: 0; right: 0; bottom: -8px; height: 5px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 14px, transparent 14px 22px);
  opacity: .55;
  pointer-events: none;
}
.topbar-in { max-width: 620px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 9px; }
.tb-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.logo-cat { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 2px 8px rgba(255, 94, 126, .25); }
.wordmark { font-weight: 900; font-size: 19px; letter-spacing: .05em; }
.wm-do { position: relative; display: inline-block; }
.wm-hearts {
  position: absolute; top: -.36em; right: -.66em; font-size: .52em; letter-spacing: -.22em;
  color: var(--accent); transform: rotate(-14deg); white-space: nowrap;
}
.lab-badge {
  font-size: 11px; font-weight: 900; color: #fff; background: var(--ink);
  padding: 3px 11px; border-radius: 999px; transform: rotate(-2deg); margin-left: 2px;
  text-decoration: none;
}
main { max-width: 620px; margin: 0 auto; padding: 30px 16px 48px; }

/* ---------- 記事 ---------- */
.crumb { font-size: 11.5px; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.crumb a { color: var(--muted); }
.genre-sticker {
  display: inline-block; font-size: 12px; font-weight: 900; color: #fff;
  padding: 3px 13px; border-radius: 999px;
  transform: rotate(-1.5deg); border: 1.5px solid rgba(0, 0, 0, .15);
  box-shadow: 1px 2px 0 rgba(61, 46, 42, .2); margin-bottom: 12px;
}
h1 {
  font-size: 23px; font-weight: 900; line-height: 1.6; margin-bottom: 8px;
  background-image: linear-gradient(transparent 66%, var(--marker) 66% 92%, transparent 92%);
  background-repeat: no-repeat;
}
.meta { font-size: 11.5px; color: var(--muted); font-weight: 700; margin-bottom: 22px; }

.q-card {
  background: var(--card); border: 2.5px solid var(--ink); border-radius: 20px;
  padding: 20px 18px; margin: 4px 0 10px; position: relative;
}
.q-card::before {
  content: "きょうの2択"; position: absolute; top: -12px; left: 16px;
  background: var(--sticky); font-size: 11px; font-weight: 900; padding: 2px 12px;
  border-radius: 4px; transform: rotate(-2deg); box-shadow: 1px 2px 0 rgba(61, 46, 42, .15);
}
.q-text { font-size: 19px; font-weight: 900; text-align: center; margin: 6px 0 14px; }
.opt {
  background: #fffdfb; border: 2.5px solid #ffd9c9; border-radius: 16px;
  padding: 12px 14px; font-size: 15px; font-weight: 700; text-align: center; margin-bottom: 7px;
}
.opt b { color: var(--accent); font-size: 17px; font-weight: 900; margin-left: 8px; }
.opt.win { border-color: var(--accent); background: #fff1f4; }
.vs-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: #ffe3d0; margin-top: 11px; }
.vs-a { background: var(--accent); }
.vs-b { background: var(--blue); border-left: 2px solid #fff; }
.q-n { text-align: right; font-size: 11px; color: var(--muted); margin-top: 5px; }

article p { margin: 16px 0; }
article h2 {
  font-size: 17.5px; font-weight: 900; margin: 30px 0 6px; padding-left: 11px;
  border-left: 5px solid var(--accent); line-height: 1.5;
}

/* 猫の吹き出し（気持ち担当） */
.neko { display: flex; gap: 12px; align-items: center; margin: 18px 0; }
.neko-icon {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--ink); object-fit: cover; background: #fff3dd;
}
.neko-bubble {
  position: relative; background: var(--card); border: 2px solid var(--ink);
  border-radius: 15px; padding: 9px 15px; font-size: 13.5px; font-weight: 700;
  line-height: 1.7; margin-left: 7px; box-shadow: 2px 3px 0 rgba(61, 46, 42, .10);
}
/* しっぽ: 45度回転した正方形の2辺だけ枠線(参考: amix-design 枠線ふきだし) */
.neko-bubble::before {
  content: ""; position: absolute; left: -8px; top: 15px;
  width: 13px; height: 13px;
  background: var(--card);
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  border-bottom-left-radius: 3px;
  transform: rotate(45deg);
}

/* データ付箋 */
.labmemo {
  background: var(--sticky); border-radius: 4px; padding: 12px 16px; margin: 20px 0;
  font-size: 13.5px; font-weight: 700; transform: rotate(-.6deg);
  box-shadow: 2px 3px 0 rgba(61, 46, 42, .12); line-height: 1.8;
}
.labmemo b { color: #b0567e; }

/* CTA */
.cta {
  display: block; text-align: center; background: var(--grad); color: #fff;
  font-weight: 900; font-size: 16px; text-decoration: none;
  border-radius: 999px; padding: 15px 20px; margin: 28px 0 8px;
  box-shadow: 0 8px 20px rgba(255, 94, 126, .35);
}
.cta-sub { text-align: center; font-size: 11.5px; color: var(--muted); }

/* あわせて読む */
.related { background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-top: 30px; }
.related h3 { font-size: 13.5px; font-weight: 900; margin-bottom: 8px; }
.related a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  color: var(--ink); font-size: 13.5px; font-weight: 700; padding: 8px 0;
  border-top: 1px dashed var(--line); text-decoration: none;
}
.related a span { color: var(--accent); font-weight: 900; font-size: 12px; white-space: nowrap; }

/* ---------- 一覧ページ ---------- */
.lab-hero { padding: 14px 0 6px; }
.lab-hero h1 { font-size: 28px; }
.lab-hero .lead { color: var(--muted); font-size: 13.5px; font-weight: 700; margin: 10px 0 4px; }
.lab-grid { display: grid; gap: 14px; margin: 20px 0 8px; }
.lab-card {
  display: block; background: var(--card); border: 2px solid var(--ink); border-radius: 18px;
  padding: 16px 18px; text-decoration: none; color: var(--ink);
  box-shadow: 3px 4px 0 rgba(61, 46, 42, .12);
  transition: transform .12s ease;
}
.lab-card:active { transform: scale(.98); }
.lab-card h2 {
  font-size: 16px; font-weight: 900; line-height: 1.6; margin: 8px 0 6px;
  background-image: linear-gradient(transparent 70%, var(--marker) 70% 94%, transparent 94%);
  background-repeat: no-repeat; width: fit-content;
}
.lab-card-meta { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.genre-sticker.sm { font-size: 11px; padding: 2px 11px; margin-bottom: 0; }

/* ---------- フッター ---------- */
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 10px 16px 40px; }
.foot p { margin: 2px 0; }
.foot-links { opacity: .9; }
.foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

@media (min-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 26px; }
}
