/* いばらいおん公式サイト
   配色：いばらいおん本人の色から取った「手描きのクレヨン」配色。スマホ縦画面が基準。
   役割  地＝生成りの紙 #FBF6E9 ／ 文字＝たてがみの焦げ茶 #392117 ／ メイン＝たてがみの茶 #8A3A1A
         アクセント（面だけ）＝体の黄 #F5E663 ／ 小さなあしらい（面だけ）＝よだれ（霞ヶ浦）の水色 #9FD0DD
   面積  地7：茶2：黄1。強い色は増やさず、紙の質感と手描きの線で味を出す */
:root {
  --bg: #fbf6e9;
  --paper: #fffdf7;
  --ink: #392117;
  --sub: #736156;
  --line: #ded6c9;
  --main: #8a3a1a;       /* たてがみの茶：見出しの線・ボタン・フッター */
  --main-deep: #5e2611;
  --yellow: #f5e663;     /* 体の黄：面とマーカーだけ（文字には使わない） */
  --yellow-soft: #fbf3b4;
  --blue: #9fd0dd;       /* よだれ＝霞ヶ浦の水色：小さなあしらいだけ */
  /* 入口4つ：明るさと鮮やかさをそろえ、色相だけ変えた4色（文字は大きい見出しのみ） */
  --know: #9c522e; --know-tint: #fbe3d6;
  --play: #447838; --play-tint: #e0f0d9;
  --buy:  #007598; --buy-tint:  #d5eef8;
  --use:  #9b4b66; --use-tint:  #fbe1e9;
  --radius: 20px;
  --round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --hand: "Klee One", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  /* 紙のざらつき（不透明度は5%前後） */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .22 0 0 0 0 .13 0 0 0 0 .09 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* 手描きの波線（見出しの下線・帯のふち） */
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='10' viewBox='0 0 60 10'%3E%3Cpath d='M1 6c6-5 9 3 15-1s9-4 14 0 9 4 15-1 9-2 14 1' fill='none' stroke='%238a3a1a' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg) var(--grain);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  overflow-x: clip;
}
a { color: var(--main); text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { max-width: 100%; height: auto; }
b, strong { font-weight: 700; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 10; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(251, 246, 233, .94);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--ink);
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--round); font-weight: 900; font-size: 1.15rem;
  color: var(--ink); text-decoration: none;
}
.logo small { font-size: .7rem; font-weight: 700; color: var(--sub); margin-left: 2px; }
.logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--yellow); color: var(--ink); font-size: 1rem;
  border: 2px solid var(--ink); box-shadow: inset 0 -3px 0 rgba(138, 58, 26, .18);
}
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--paper);
  font-family: var(--round); font-weight: 700; font-size: .85rem;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
}
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -5px; }
.menu-bars::after { top: 5px; }
.menu[open] .menu-bars { background: transparent; }
.menu[open] .menu-bars::before { top: 0; transform: rotate(45deg); }
.menu[open] .menu-bars::after { top: 0; transform: rotate(-45deg); }
.menu nav {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: min(300px, calc(100vw - 32px));
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 0 4px 0 var(--ink); padding: 6px;
}
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li a {
  display: block; padding: 12px 14px; border-radius: 12px;
  color: var(--ink); text-decoration: none; font-weight: 700;
}
.menu li a:hover, .menu li a[aria-current="page"] { background: var(--yellow-soft); }

/* ---------- 本文 ---------- */
.main { max-width: 640px; margin: 0 auto; padding: 24px 16px 48px; }
.page-title {
  font-family: var(--round); font-weight: 900; font-size: 1.7rem; line-height: 1.35;
  margin: 8px 0 18px;
}
.page-kana {
  display: inline-block; margin-bottom: 6px; padding: 0 12px;
  font-size: .8rem; font-weight: 700; letter-spacing: .2em; line-height: 1.9;
  border-radius: 999px; border: 2px solid currentColor; color: var(--know);
}
.page-title .page-kana { display: table; }
.page-play .page-kana { color: var(--play); }
.page-buy .page-kana { color: var(--buy); }
.page-use .page-kana { color: var(--use); }
.lead { font-size: 1.02rem; }
.note { font-size: .88rem; color: var(--sub); }
.date { font-size: .85rem; color: var(--sub); text-align: right; }
.center { text-align: center; }
.block { margin-top: 36px; }
.block-title {
  font-family: var(--round); font-weight: 900; font-size: 1.3rem; line-height: 1.4;
  display: table; position: relative; margin: 36px 0 14px; padding: 0 2px 10px;
}
.block-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 6px;
  background: var(--squiggle) repeat-x left center / 30px 6px;
}
.sub-title { font-size: 1.05rem; margin: 24px 0 6px; }
.more { text-align: right; margin: 10px 0 0; }

/* マーカー（体の黄を、文字の下半分にだけ引く） */
.hero-lead b, .lead strong { background: linear-gradient(transparent 58%, var(--yellow) 58% 92%, transparent 92%); }

/* ---------- キャラクター画像 ---------- */
.chara { margin: 0 auto 16px; width: min(70%, 280px); aspect-ratio: 1; }
.chara img { width: 100%; height: 100%; object-fit: contain; }
.chara-empty {
  display: grid; place-items: center; text-align: center;
  border: 3px dashed var(--line); border-radius: 50%;
  color: var(--sub); font-size: .85rem; line-height: 1.6;
}

/* ---------- トップ：大きないばらいおん ---------- */
.hero {
  position: relative; text-align: center;
  margin: -24px calc(50% - 50vw) 0; padding: 20px 16px 56px;
  background: var(--yellow-soft) var(--grain);
}
/* 帯の下のふちを、たてがみのような手描きの波に */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 28px;
  background: var(--bg) var(--grain);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 28' preserveAspectRatio='none'%3E%3Cpath d='M0 14c10-9 18 5 30-1s20-11 30-2 19 8 30 0 21-6 30 3V28H0z'/%3E%3C/svg%3E") 0 0 / 240px 28px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 28' preserveAspectRatio='none'%3E%3Cpath d='M0 14c10-9 18 5 30-1s20-11 30-2 19 8 30 0 21-6 30 3V28H0z'/%3E%3C/svg%3E") 0 0 / 240px 28px repeat-x;
}
.hero-stage { position: relative; max-width: 420px; margin: 0 auto; }
.chara-hero {
  width: min(84%, 360px); margin: 0 auto;
  background: radial-gradient(circle at 50% 54%, var(--paper) 0 50%, transparent 51%);
}
.hero-bubble {
  position: absolute; left: 0; top: 10%;
  margin: 0; padding: 8px 12px;
  font-family: var(--hand); font-weight: 600; font-size: .92rem; line-height: 1.45; text-align: left;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 16px 16px 16px 4px;
  transform: rotate(-4deg);
}
.hero-bubble::after {
  content: ""; position: absolute; right: -11px; bottom: 10px; width: 14px; height: 14px;
  background: var(--paper); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}
.hero-name {
  font-family: var(--round); font-weight: 900;
  font-size: clamp(2.4rem, 12vw, 3.4rem); line-height: 1.1; letter-spacing: .04em;
  margin: 4px 0 8px; color: var(--ink);
}
.hero-small {
  display: inline-block; font-size: .85rem; letter-spacing: .25em; color: var(--main);
  margin-bottom: 8px; padding: 0 12px; border-radius: 999px; background: var(--paper);
}
.hero-letters { display: block; }
.hero-letters span { display: inline-block; }
.hero-lead { margin: 0; font-weight: 700; line-height: 1.8; }

/* 動きはここだけ：名前が1文字ずつ、ぴょんと出る */
@media (prefers-reduced-motion: no-preference) {
  .hero-letters span { animation: hop .55s cubic-bezier(.3, 1.6, .5, 1) both; }
  .hero-letters span:nth-child(2) { animation-delay: .07s; }
  .hero-letters span:nth-child(3) { animation-delay: .14s; }
  .hero-letters span:nth-child(4) { animation-delay: .21s; }
  .hero-letters span:nth-child(5) { animation-delay: .28s; }
  .hero-letters span:nth-child(6) { animation-delay: .35s; }
}
@keyframes hop { from { opacity: 0; transform: translateY(.5em) scale(.8); } to { opacity: 1; transform: none; } }

/* ---------- 入口4つ ---------- */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.door {
  --c: var(--know); --t: var(--know-tint);
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 176px; padding: 12px 8px 14px; border-radius: var(--radius);
  background: var(--t); border: 2px solid var(--ink);
  color: var(--ink); text-decoration: none; text-align: center;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.door:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
@media (hover: hover) { .door:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--ink); } }
.door-play { --c: var(--play); --t: var(--play-tint); }
.door-buy { --c: var(--buy); --t: var(--buy-tint); }
.door-use { --c: var(--use); --t: var(--use-tint); }
.door-icon { width: 48px; height: 48px; color: var(--c); }
.door-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.door-icon .fill { fill: currentColor; stroke: none; }
.door-icon:has(img) { width: 100px; height: 100px; }
.door-icon img { width: 100%; height: 100%; object-fit: contain; }
.door-word { font-family: var(--round); font-weight: 900; font-size: 1.7rem; line-height: 1.15; color: var(--c); }
.door-sub { font-size: .76rem; font-weight: 700; line-height: 1.4; }

/* ---------- お知らせ ---------- */
.news { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); }
.news li { display: flex; flex-direction: column; padding: 12px 16px; border-bottom: 1.5px dashed var(--line); }
.news li:last-child { border-bottom: 0; }
.news time { font-size: .8rem; font-weight: 700; color: var(--main); }
.news a { color: var(--ink); }

/* ---------- カード（スタンプ・グッズ・ゲーム共通） ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.card {
  display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: start;
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 14px;
  box-shadow: 0 4px 0 var(--line);
}
.card-img { width: 104px; height: 104px; border-radius: 16px; object-fit: contain; background: var(--yellow-soft); }
.card-img-empty {
  display: grid; place-items: center; border: 2px dashed var(--line);
  color: var(--sub); font-size: .72rem;
}
.card-body { min-width: 0; }
.card-title { font-family: var(--round); font-size: 1.02rem; line-height: 1.5; margin: 2px 0 4px; }
.card-meta { font-size: .8rem; color: var(--sub); margin: 0; line-height: 1.6; }
.card-text { font-size: .88rem; margin: 6px 0 0; }
.card .btn { margin-top: 10px; }
.card-soon { background: transparent; border-style: dashed; box-shadow: none; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; padding: 0 10px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink);
}
.tag-new, .tag-open { background: var(--yellow); }

.seller { background: var(--paper); border: 2px dashed var(--line); padding: 10px 14px; border-radius: 14px; font-size: .9rem; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--paper); border: 2px solid var(--ink); padding: 4px; border-radius: 999px; }
.tabs a {
  text-align: center; padding: 9px 0; border-radius: 999px; text-decoration: none;
  color: var(--sub); font-weight: 700; font-size: .92rem;
}
.tabs a[aria-current="page"] { background: var(--buy-tint); color: var(--ink); }

/* ---------- ボタン（塗るのはメイン1種類だけ。ほかは線） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 20px; border-radius: 999px;
  background: var(--main); color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem;
  border: 2px solid var(--main-deep); box-shadow: 0 3px 0 var(--main-deep);
}
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--main-deep); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.btn-big { min-height: 54px; padding: 12px 28px; font-size: 1rem; }
.btn-disabled { background: var(--line); color: var(--sub); border-color: var(--line); box-shadow: none; cursor: default; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* ---------- プロフィール ---------- */
.anatomy { position: relative; margin: 8px auto 20px; max-width: 360px; aspect-ratio: 1; border-radius: 50%; background: var(--yellow-soft) var(--grain); }
.anatomy img { width: 100%; height: 100%; object-fit: contain; }
.pin {
  position: absolute; padding: 4px 10px; font-size: .78rem; line-height: 1.4; text-align: left;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; white-space: nowrap;
}
.pin b { display: block; font-family: var(--hand); font-size: .9rem; color: var(--main); }
.dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); }
.dot-mane { left: 63%; top: 20%; }
.dot-drool { left: 56%; top: 64%; background: var(--blue); }
.dot::after { content: ""; position: absolute; left: 9px; top: 3px; width: 18px; height: 2px; background: var(--ink); }
.pin-mane { left: calc(63% + 22px); top: calc(20% - 22px); }
.pin-drool { left: calc(56% + 22px); top: calc(64% - 22px); }
.profile { margin: 16px 0; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 4px 16px; }
.profile div { display: grid; grid-template-columns: 6.5em 1fr; gap: 8px; padding: 10px 0; border-bottom: 1.5px dashed var(--line); }
.profile div:last-child { border-bottom: 0; }
.profile dt { font-family: var(--round); font-weight: 700; color: var(--main); font-size: .9rem; }
.profile dd { margin: 0; }

.two-face { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.face { border: 2px solid var(--ink); border-radius: var(--radius); padding: 14px 12px; text-align: center; background: var(--yellow-soft); }
.face-cat { background: var(--paper); border-style: dashed; }
.face-say { margin: 0; font-family: var(--hand); font-weight: 600; font-size: 1.7rem; line-height: 1.3; color: var(--main); }
.face-cat .face-say { color: var(--sub); }
.face-text { margin: 6px 0 0; font-size: .86rem; line-height: 1.6; }

/* 性格・季節・あゆみ（プロフィール） */
.secret-more { margin: 14px 0 0; font-size: .92rem; }
.secret-more b { background: linear-gradient(transparent 58%, var(--yellow) 58% 92%, transparent 92%); }

.traits { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: t; }
.traits li { position: relative; background: var(--paper) var(--grain); border: 2px solid var(--ink); border-radius: var(--radius); padding: 12px 16px 14px 62px; }
.trait-no { position: absolute; left: 14px; top: 12px; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); font-family: var(--hand); font-weight: 600; font-size: 1.15rem; line-height: 32px; text-align: center; }
.trait-title { margin: 0 0 4px; font-family: var(--round); font-weight: 900; font-size: 1.05rem; color: var(--main); }
.traits p { margin: 0; font-size: .9rem; }

.seasons { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 14px; }
.season { --t: var(--yellow-soft); display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; background: var(--t) var(--grain); border: 2px solid var(--ink); border-radius: var(--radius); padding: 12px 14px; box-shadow: 0 4px 0 var(--ink); }
.season-winter { --t: var(--buy-tint); }
.season-work { --t: var(--know-tint); }
.season-newyear { --t: var(--use-tint); }
.season img { width: 100%; height: auto; max-height: 120px; object-fit: contain; }
.season-title { margin: 0 0 4px; font-family: var(--round); font-weight: 900; font-size: 1rem; line-height: 1.5; }
.season-title span { display: inline-block; margin-right: 8px; padding: 0 10px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; font-size: .8rem; line-height: 1.7; }
.season p { margin: 0; font-size: .86rem; line-height: 1.75; }
.season .season-from { margin-top: 6px; font-size: .76rem; color: var(--sub); }

.timeline { list-style: none; margin: 8px 0 14px; padding: 0 0 0 22px; border-left: 3px dotted var(--main); }
.timeline li { position: relative; padding: 0 0 14px 14px; }
.timeline li::before { content: ""; position: absolute; left: -33px; top: .35em; width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); }
.timeline time { display: block; font-family: var(--round); font-weight: 900; font-size: .84rem; color: var(--main); }
.timeline span { font-size: .92rem; }

@media (min-width: 720px) {
  .traits { grid-template-columns: repeat(3, 1fr); }
  .traits li { padding: 58px 16px 16px; text-align: center; }
  .trait-no { left: 50%; top: 12px; transform: translateX(-50%); }
  .seasons { grid-template-columns: 1fr 1fr; }
  .season { grid-template-columns: 1fr; text-align: center; }
  .season img { max-height: 130px; }
}

/* ---------- グッズ（Tシャツ） ---------- */
.tees { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tee-link { display: block; height: 100%; padding: 10px 10px 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 0 4px 0 var(--ink); color: var(--ink); text-decoration: none; text-align: center; transition: transform .12s ease, box-shadow .12s ease; }
.tee-link:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.tee-pic { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; background: var(--buy-tint) var(--grain); }
.tee-pic img { width: 100%; height: 100%; object-fit: contain; }
.tee-pic .tee-print { position: absolute; right: -4px; bottom: -4px; width: 46%; height: auto; border-radius: 50%; border: 2px solid var(--ink); background: #fff; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.tee-name { display: block; margin-top: 8px; font-family: var(--round); font-weight: 900; font-size: 1rem; }
.tee-kind { display: block; font-size: .74rem; color: var(--sub); }
@media (hover: hover) { .tee-link:hover .tee-print { transform: scale(1.18) rotate(-4deg); } }
@media (min-width: 720px) { .tees { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 動き（動きを減らす設定では、すべて止める） ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* トップ：名前が跳ねたあと、ふきだしが「ポン」と出て、いばらいおんはゆっくり呼吸する */
  .chara-hero img { transform-origin: 50% 92%; animation: breathe 4.2s ease-in-out 1s infinite; }
  .hero-bubble { animation: bubble-in .5s cubic-bezier(.3, 1.6, .5, 1) .55s both, bubble-nod 5s ease-in-out 2s infinite; }
  .hero-lead b { background-size: 0% 100%; background-repeat: no-repeat; animation: marker .7s ease-out .9s forwards; }

  /* 入口：触れると絵が少しゆれる */
  .door:hover .door-icon img, .door:focus-visible .door-icon img { animation: wiggle .5s ease-in-out; }

  /* 見出しの波線が、画面に入ったときに左から引かれる */
  .js .block-title::after { clip-path: inset(0 100% 0 0); transition: clip-path .8s cubic-bezier(.6, 0, .3, 1) .1s; }
  .js .block-title.is-in::after { clip-path: inset(0 0 0 0); }

  /* プロフィール：季節カードと性格カードは、シールを貼るように出る */
  .js .season, .js .traits li { opacity: 0; transform: scale(.9) rotate(-3deg); transition: opacity .3s ease, transform .5s cubic-bezier(.3, 1.5, .5, 1); }
  .js .season.is-in, .js .traits li.is-in { opacity: 1; transform: rotate(var(--tilt, 0deg)); }
  .season:nth-child(odd), .traits li:nth-child(odd) { --tilt: -.8deg; }
  .season:nth-child(even), .traits li:nth-child(even) { --tilt: .8deg; }
  .season:hover, .traits li:hover { transform: rotate(0) translateY(-2px) !important; }

  /* たてがみ・よだれの点は、ときどき波紋を出す */
  .dot::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--main); opacity: 0; animation: ripple 2.6s ease-out infinite; }
  .dot-drool::before { border-color: #3c8aa0; animation-delay: 1.3s; }

  /* 「ガオー！」は触れると吠える */
  .face-lion:hover .face-say { animation: roar .45s ease-in-out; }

  /* スタンプの表紙は、触れると少し跳ねる */
  .card:hover .card-img { animation: hopcard .45s cubic-bezier(.3, 1.6, .5, 1); }
}
@keyframes breathe { 0%, 100% { transform: none; } 50% { transform: translateY(-4px) rotate(-1deg) scale(1.01); } }
@keyframes bubble-in { from { opacity: 0; transform: rotate(-4deg) scale(.3); } to { opacity: 1; transform: rotate(-4deg) scale(1); } }
@keyframes bubble-nod { 0%, 88%, 100% { transform: rotate(-4deg); } 92% { transform: rotate(-8deg) scale(1.04); } 96% { transform: rotate(-1deg); } }
@keyframes marker { to { background-size: 100% 100%; } }
@keyframes wiggle { 0%, 100% { transform: none; } 25% { transform: rotate(-7deg); } 60% { transform: rotate(6deg); } }
@keyframes ripple { 0% { opacity: .8; transform: scale(.6); } 70%, 100% { opacity: 0; transform: scale(1.8); } }
@keyframes roar { 0%, 100% { transform: none; } 30% { transform: scale(1.25) rotate(-4deg); } 60% { transform: scale(1.15) rotate(3deg); } }
@keyframes hopcard { 0%, 100% { transform: none; } 40% { transform: translateY(-8px) rotate(-3deg); } }

/* ---------- ガイドライン ---------- */
.judge { display: grid; gap: 12px; margin: 16px 0; }
.judge-item { --c: var(--play); --t: var(--play-tint); background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 0 16px 14px; overflow: hidden; }
.judge-ask { --c: #8f5d10; --t: #f6e9c8; }
.judge-ng { --c: #b23a2e; --t: #fbe1dc; }
.judge-mark { margin: 0 -16px 10px; padding: 6px 16px; background: var(--t); border-bottom: 2px solid var(--ink); font-family: var(--round); font-weight: 900; font-size: 1.2rem; color: var(--c); }
.judge-head { margin: 0 0 4px; font-weight: 700; }
.judge-item ul { margin: 0; padding-left: 1.2em; font-size: .92rem; }
.rules { padding-left: 1.4em; }
.rules li { margin-bottom: 10px; }
.rules li::marker { color: var(--main); font-weight: 700; }
.dots { padding-left: 1.2em; }

/* ---------- 運営者情報 ---------- */
.info { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; font-size: .92rem; }
.info th, .info td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1.5px dashed var(--line); }
.info tr:last-child th, .info tr:last-child td { border-bottom: 0; }
.info th { width: 7.5em; background: var(--yellow-soft); white-space: nowrap; font-family: var(--round); }

/* ---------- 広告枠（AdSense を入れるまでは表示しない） ---------- */
.ad-slot { margin: 28px 0; min-height: 100px; }
.ad-slot:empty { display: none; }

/* ---------- フッター（たてがみの茶） ---------- */
.site-footer {
  position: relative; margin-top: 24px;
  background: var(--main) var(--grain); color: #fbf1e4; text-align: center;
  padding: 40px 16px calc(28px + env(safe-area-inset-bottom));
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 22px; background: var(--main);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 22' preserveAspectRatio='none'%3E%3Cpath d='M0 22V12c8-8 16 4 26-3s18-9 28-1 18 7 30-1 22-4 36 4v11z'/%3E%3C/svg%3E") 0 0 / 240px 22px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 22' preserveAspectRatio='none'%3E%3Cpath d='M0 22V12c8-8 16 4 26-3s18-9 28-1 18 7 30-1 22-4 36 4v11z'/%3E%3C/svg%3E") 0 0 / 240px 22px repeat-x;
}
.site-footer a { color: #fbf1e4; }
.foot-doors { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.foot-doors a {
  font-family: var(--round); font-weight: 900; text-decoration: none;
  border: 2px solid #fbf1e4; border-radius: 999px; padding: 6px 16px; min-width: 72px;
}
.foot-links { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: .85rem; }
.foot-links a { display: inline-block; padding: 6px 0; }
.foot-op { margin: 0; font-size: .9rem; font-weight: 700; }
.foot-copy { margin: 4px 0 0; opacity: .85; }

/* ---------- 広い画面 ---------- */
@media (min-width: 720px) {
  .main { max-width: 780px; padding-top: 32px; }
  .hero { margin-top: -32px; padding-top: 32px; }
  .hero-bubble { left: -8%; font-size: 1rem; }
  .doors { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
  .page-title { font-size: 2.1rem; }
}
@media (max-width: 380px) {
  .hero-bubble { font-size: .8rem; padding: 6px 9px; }
  .pin { font-size: .7rem; }
}

/* ---------- 応援する ---------- */
.support { list-style: none; margin: 16px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.support li { border-bottom: 2px solid var(--ink); }
.support a { display: flex; align-items: baseline; gap: 14px; padding: 14px 6px; color: var(--ink); text-decoration: none; }
.support a:hover, .support a:focus-visible { background: var(--yellow-soft); }
.support b { flex: 0 0 5.2em; font-family: var(--hand); font-weight: 600; font-size: 1.15rem; color: var(--main); }
.support span { flex: 1; font-size: .95rem; }

/* ---------- よくある質問 ---------- */
.qa-list { margin-top: 12px; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; padding: 14px 4px 14px 2em; position: relative; font-family: var(--round); font-weight: 700; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "Q"; position: absolute; left: 4px; color: var(--main); font-weight: 900; }
.qa summary::after { content: "＋"; float: right; margin-left: 10px; color: var(--sub); }
.qa[open] summary::after { content: "－"; }
.qa p { margin: 0 0 16px; padding: 0 4px 0 2em; }

.foot-note { font-size: .78rem; }
