/* ====================================================
   まひかすのゲーム棚：水色 × ポップ
   色を変えたいときは最初の :root を変更！
==================================================== */
:root {
  --sky: #7bd6fa;
  --sky-dark: #248db9;
  --sky-light: #dff6ff;
  --ink: #31536a;
  --muted: #658395;
  --pink: #ff98b8;
  --yellow: #ffe381;
  --cream: #fffdf6;
  --white: #fff;
  --line: #b2e6f9;
  --shadow: 0 6px 0 #b8e8f7;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: #effbff;
  background-image: radial-gradient(#c6edfb 1.65px, transparent 1.65px);
  background-size: 26px 26px;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
a:focus-visible, button:focus-visible { outline: 3px solid #f399b6; outline-offset: 3px; }
.confetti { position: fixed; pointer-events: none; color: #b4e5f8; font-size: 42px; z-index: -1; }
.confetti-one { top: 24%; left: 3%; }
.confetti-two { top: 61%; right: 4%; color: #ffd4e4; }
.site-header { background: #fff; border-bottom: 4px solid var(--sky); }
.header-inner { max-width: 1120px; min-height: 79px; margin: auto; padding: 12px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.site-logo { display: inline-flex; gap: 11px; align-items: center; font-weight: 900; font-size: 19px; letter-spacing: .02em; color: var(--sky-dark); }
.logo-icon { display: grid; place-items: center; border-radius: 13px; width: 37px; height: 37px; background: var(--sky); color: #fff; transform: rotate(-9deg); border: 2px solid #fff; box-shadow: 2px 3px 0 #bce8f6; }
.site-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav a { border-radius: 99px; padding: 9px 14px; color: var(--sky-dark); font-size: 12px; font-weight: 900; letter-spacing: .05em; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--sky-light); }
main { max-width: 1080px; min-height: 58vh; margin: 0 auto; padding: 29px 22px 76px; }
.hero { position: relative; overflow: hidden; border-radius: 30px; border: 4px solid #fff; background: linear-gradient(125deg, #74d1f9, #b4eaff); padding: 51px 22px 57px; box-shadow: var(--shadow); text-align: center; }
.hero::before, .hero::after { position: absolute; color: #fff; font-size: 29px; }
.hero::before { content: '✦ ✳ ✧'; left: 25px; top: 16px; }
.hero::after { content: '✧ ✳ ✦'; right: 25px; bottom: 13px; }
.hero-icon { font-size: 51px; filter: drop-shadow(2px 3px 0 #8bc8e7); }
.hero h1 { font-weight: 950; color: #fff; text-shadow: 3px 4px 0 #3da8d5; line-height: 1.22; letter-spacing: .04em; font-size: clamp(32px, 6vw, 54px); margin: 14px 0 8px; }
.hero .lead { font-weight: 900; font-size: 16px; margin: 7px 0 2px; }
.hero .sublead { font-size: 13px; margin: 0; }
.star-separator { text-align: center; color: var(--pink); letter-spacing: 13px; font-size: 18px; margin: 27px 0 -20px; }
.section { margin-top: 49px; }
.section-head { margin-bottom: 23px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.section-title { margin: 0; padding-left: 14px; border-left: 9px solid var(--sky); font-size: clamp(20px, 4vw, 25px); font-weight: 900; line-height: 1.35; }
.section-subtitle { color: var(--muted); font-size: 12px; font-weight: 700; }
.category-tabs, .subtabs { display: flex; flex-wrap: wrap; gap: 10px; }
.category-tabs { margin: 0 0 18px; }
.tab { border: 2px solid var(--sky); color: var(--sky-dark); background: #fff; border-radius: 100px; padding: 11px 18px; font-weight: 900; transition: transform .15s ease, background-color .15s; }
.tab:hover { transform: translateY(-2px); }
.tab.is-active { background: var(--sky); color: white; }
.subtab-panel { border-radius: 21px; padding: 17px; margin-bottom: 19px; background: #ddf5ff; border: 2px solid #beeafa; }
.subtab { border-color: var(--pink); color: #b44b75; }
.subtab.is-active { background: var(--pink); color: #fff; }
.empty-notice { padding: 37px 24px; text-align: center; border-radius: 22px; border: 3px dashed #b0e4f7; background: #fff; }
.empty-notice .notice-icon { font-size: 39px; }
.empty-notice h3 { margin: 6px 0; font-size: 18px; }
.empty-notice p { color: var(--muted); margin: 6px 0 0; font-size: 13px; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px; }
.game-card { min-width: 0; border-radius: 22px; overflow: hidden; background: #fff; border: 3px solid var(--line); box-shadow: var(--shadow); transition: transform .18s; }
.game-card:hover { transform: translateY(-4px); }
.game-card .cover-area { border-radius: 0; }
.cover-area { aspect-ratio: 16 / 10; width: 100%; overflow: hidden; background: linear-gradient(135deg, #c3efff, #e8e0ff); }
.cover-area img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-placeholder { height: 100%; display: grid; align-content: center; justify-content: center; justify-items: center; gap: 1px; }
.cover-emoji { font-size: 53px; line-height: 1.2; }
.cover-caption { font-size: 10px; font-weight: 900; color: #639cba; letter-spacing: .14em; }
.card-body { padding: 17px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 99px; background: #ddf5ff; color: var(--sky-dark); font-size: 11px; font-weight: 900; line-height: 1.7; }
.tag.pink { background: #ffe1eb; color: #af4c78; }
.tag.yellow { background: #fff1bb; color: #96711e; }
.game-card h3 { margin: 12px 0 6px; line-height: 1.5; font-size: 17px; font-weight: 900; overflow-wrap: anywhere; }
.game-desc { font-size: 13px; color: var(--muted); line-height: 1.85; min-height: 47px; margin: 0 0 12px; }
.pill-link, .pill-button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; border: 0; border-radius: 99px; padding: 11px 18px; font-weight: 900; font-size: 13px; color: #fff; background: var(--sky-dark); }
.pill-link:hover, .pill-button:hover { filter: brightness(.95); }
.pill-link.pink, .pill-button.pink { background: #f07ea7; }
.card-cta { background: var(--sky); color: #165a7e; }
.card-cta:hover { background: #5ec7ee; }
.post-list { display: grid; gap: 12px; }
.post-card { background: white; border: 2px solid var(--line); padding: 16px 20px; border-radius: 16px; display: block; transition: transform .16s; }
.post-card:hover { transform: translateX(4px); }
.post-date { color: #7395a7; font-size: 12px; font-weight: 800; }
.post-card h3 { margin: 5px 0 0; line-height: 1.6; font-size: 15px; }
.post-footer { padding-top: 15px; }
.text-link { color: var(--sky-dark); font-size: 13px; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.page-eyebrow { color: var(--sky-dark); font-size: 12px; font-weight: 900; letter-spacing: .15em; }
.page-heading { font-size: clamp(26px, 5vw, 35px); margin: 6px 0 22px; line-height: 1.35; }
.detail { max-width: 830px; margin: 0 auto; }
.back-link { display: inline-block; color: var(--sky-dark); font-weight: 900; font-size: 13px; margin: 0 0 18px; }
.detail-panel { padding: 27px; border: 3px solid var(--line); border-radius: 25px; background: #fff; box-shadow: var(--shadow); }
.detail-cover { border-radius: 17px; overflow: hidden; margin-bottom: 22px; }
.detail h1 { font-size: clamp(24px, 5vw, 34px); line-height: 1.45; margin: 14px 0 7px; overflow-wrap: anywhere; }
.detail-intro { color: var(--muted); line-height: 1.95; margin: 0 0 12px; }
.no-play { color: var(--muted); font-size: 13px; font-weight: 800; }
.content-section { border-top: 2px dashed #caebf9; margin-top: 29px; padding-top: 23px; }
.content-section h2 { margin: 0 0 14px; color: var(--sky-dark); font-size: 20px; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 2.05; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; border-radius: 13px; border: 2px solid var(--line); }
.gallery figcaption { margin-top: 7px; font-size: 12px; color: var(--muted); white-space: pre-wrap; }
.character { display: flex; align-items: flex-start; gap: 17px; padding: 15px 0; border-bottom: 1px dashed #ccecf8; }
.character:last-child { border-bottom: 0; }
.character-photo { width: 116px; height: 116px; flex: 0 0 116px; border-radius: 15px; object-fit: cover; background: var(--sky-light); }
.character h3 { font-size: 16px; margin: 0 0 6px; }
.character p { margin: 0; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.85; }
.history-item { display: flex; gap: 17px; padding: 12px 0; border-bottom: 1px dashed #d3edf7; }
.history-date { font-weight: 900; color: var(--sky-dark); min-width: 95px; font-size: 12px; }
.history-item p { margin: 0; font-size: 13px; white-space: pre-wrap; }
.credit-item { display: flex; gap: 18px; padding: 12px 0; border-bottom: 1px dashed #d3edf7; }
.credit-role { min-width: 95px; max-width: 125px; width: 30%; color: var(--muted); font-size: 13px; font-weight: 900; }
.credit-name { min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.link-list { display: flex; flex-wrap: wrap; gap: 12px; }
.gate { max-width: 620px; margin: 28px auto 0; }
.gate .empty-notice { padding: 42px 25px; }
.gate .pill-button { margin-top: 19px; }
.gate-name { font-weight: 900; color: #b44c76; font-size: 17px; }
.site-footer { padding: 27px 18px 34px; background: #beeefe; text-align: center; color: #43809d; font-size: 12px; font-weight: 800; }
.site-footer p { margin: 5px 0; }
.footer-star { color: white; font-size: 20px; letter-spacing: .35em; }
.footer-disclaimer { font-size: 11px; font-weight: 600; }
.loading { text-align: center; padding: 45px; color: var(--muted); }
@media (max-width: 810px) { .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) {
  .header-inner { justify-content: center; gap: 7px; padding: 14px; }
  .site-logo { font-size: 17px; }
  .site-nav { width: 100%; justify-content: center; }
  main { padding: 21px 14px 55px; }
  .hero { padding: 43px 18px; }
  .hero .lead { font-size: 14px; }
  .hero h1 { font-size: 33px; }
  .section { margin-top: 40px; }
  .game-grid { grid-template-columns: 1fr; }
  .tab { padding: 10px 14px; font-size: 12px; }
  .subtab-panel { padding: 12px; }
  .gallery { grid-template-columns: 1fr; }
  .detail-panel { padding: 18px; }
  .character-photo { flex-basis: 84px; width: 84px; height: 84px; }
  .history-item { display: block; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
