/* ===== 限界ママのごきげん研究所 ゆるかわ手書き風スタイル ===== */
:root {
  --main: #e87a9a;        /* ときめきピンク */
  --main-dark: #d45f80;
  --accent: #f5c16c;      /* やさしい黄色 */
  --marker: #ffe9a8;      /* マーカー黄色 */
  --bg: #fdf6f8;          /* さくらクリーム */
  --card: #ffffff;
  --text: #4a3a40;
  --text-light: #8a767e;
  --line: #f0dae2;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 500;
  /* 水玉模様の背景 */
  background-color: var(--bg);
  background-image: radial-gradient(#f7dde6 12%, transparent 13%),
                    radial-gradient(#f7dde6 12%, transparent 13%);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
  color: var(--text);
  line-height: 1.9;
  font-size: 16px;
}

a { color: var(--main-dark); }

/* ヘッダー */
header {
  background: var(--card);
  border-bottom: 3px dashed var(--main);
  padding: 24px 16px 16px;
  text-align: center;
}
.site-title {
  font-size: 1.55rem;
  font-weight: bold;
  color: var(--main-dark);
  text-decoration: none;
  display: inline-block;
}
.site-title::before { content: "🧪 "; }
.site-title::after { content: " 💕"; }
.site-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 6px;
}
nav {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
nav a {
  text-decoration: none;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 2px dashed var(--line);
  color: var(--text);
}
nav a:hover { background: var(--main); color: #fff; border-color: var(--main); border-style: solid; }

/* レイアウト */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 16px 60px;
}

/* お知らせ（ステマ規制対応） */
.pr-note {
  font-size: 0.75rem;
  color: var(--text-light);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  margin-bottom: 20px;
  text-align: center;
}

/* ヒーロー（ふきだし＋キャラ） */
.hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.hero-avatar {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
}
.hero-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--main);
  background: #fff;
}
.hero-bubble {
  position: relative;
  background: var(--card);
  border: 2px solid var(--text);
  border-radius: 18px 22px 20px 24px / 22px 18px 24px 20px;
  padding: 14px 18px;
  font-size: 0.92rem;
  box-shadow: 3px 3px 0 rgba(232, 122, 154, 0.35);
}
.hero-bubble::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 42px;
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 10px solid var(--text);
}
.hero-bubble::after {
  content: "";
  position: absolute;
  left: -7px;
  top: 44px;
  width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid var(--card);
}
.hero-bubble .hero-name {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--main-dark);
  display: block;
  margin-top: 4px;
}

/* 記事カード（手書き風のゆるい枠） */
.post-card {
  display: block;
  background: var(--card);
  border: 2px solid var(--text);
  border-radius: 18px 26px 16px 24px / 24px 16px 26px 18px;
  padding: 20px 22px;
  margin-bottom: 18px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 4px 4px 0 rgba(232, 122, 154, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}
.post-card:hover {
  transform: translate(-2px, -2px) rotate(-0.3deg);
  box-shadow: 6px 6px 0 rgba(232, 122, 154, 0.4);
}
.post-card .date {
  font-size: 0.78rem;
  color: var(--text-light);
}
.post-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  background: var(--accent);
  color: #6b5526;
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: 8px;
  transform: rotate(-2deg);
}
.post-card h2 {
  font-size: 1.08rem;
  margin: 6px 0 4px;
  color: var(--main-dark);
}
.post-card p {
  font-size: 0.88rem;
  color: var(--text-light);
}

/* 記事ページ */
article {
  background: var(--card);
  border: 2px solid var(--text);
  border-radius: 20px 26px 18px 24px / 24px 18px 26px 20px;
  padding: 28px 24px;
  box-shadow: 4px 4px 0 rgba(232, 122, 154, 0.25);
}
article h1 {
  font-size: 1.4rem;
  color: var(--main-dark);
  line-height: 1.5;
  margin-bottom: 8px;
}
article .meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 24px;
  border-bottom: 2px dashed var(--line);
  padding-bottom: 12px;
}
/* 見出しはマーカー線風 */
article h2 {
  font-size: 1.15rem;
  display: inline-block;
  background: linear-gradient(transparent 60%, var(--marker) 60%);
  padding: 0 6px 2px;
  margin: 36px 0 14px;
}
article h2::before { content: "🔍 "; font-size: 0.95em; }
article h3 {
  font-size: 1.02rem;
  border-bottom: 2px dotted var(--main);
  padding-bottom: 4px;
  margin: 28px 0 12px;
}
article p { margin-bottom: 16px; }
article ul, article ol { margin: 0 0 16px 1.4em; }
article li { margin-bottom: 6px; }

/* ポイントボックス */
.point-box {
  background: #fff7ed;
  border: 2px dashed var(--accent);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.92rem;
}
.point-box::before {
  content: "💡 研究メモ";
  display: block;
  font-weight: bold;
  color: #b07c2a;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

/* 商品紹介ボックス（シール風） */
.item-box {
  background: var(--bg);
  border: 2px solid var(--text);
  border-radius: 16px 20px 14px 22px / 20px 14px 22px 16px;
  padding: 18px 20px;
  margin: 20px 0;
  box-shadow: 3px 3px 0 rgba(245, 193, 108, 0.5);
}
.item-box .item-name {
  font-weight: bold;
  color: var(--main-dark);
  margin-bottom: 6px;
}
.item-box .item-name::before { content: "🏆 "; }
.item-box .item-link {
  display: inline-block;
  background: var(--main);
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: bold;
  padding: 9px 24px;
  border-radius: 999px;
  border: 2px solid var(--text);
  box-shadow: 2px 2px 0 var(--text);
  margin-top: 8px;
  transition: transform 0.1s, box-shadow 0.1s;
}
.item-box .item-link:hover {
  background: var(--main-dark);
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--text);
}

/* フッター */
footer {
  background: var(--card);
  border-top: 3px dashed var(--main);
  text-align: center;
  padding: 24px 16px;
  font-size: 0.8rem;
  color: var(--text-light);
}
footer nav { margin-bottom: 10px; }

@media (max-width: 480px) {
  body { font-size: 15px; }
  article h1 { font-size: 1.22rem; }
  article { padding: 22px 16px; }
  .hero-avatar { width: 76px; height: 76px; }
}
