/* サークル Only BANANA のトップ。ロゴバッジのピンク×黄色のポップさ。作品のカードの中だけ 002 の夜のネオン */

:root {
  --bg: #ffe6ef;
  --dot: #ffd3e3;
  --ink: #3a0f26;
  --muted: #7a4a62;
  --magenta: #7b0a3e;
  --pink: #ff5fa2;
  --yellow: #ffd23a;
  --white: #ffffff;
  --night: #0a0820;
  --cyan: #45e6ff;
  --gutter: 16px;
  --font: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 22%, transparent 24%);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 日本語の改行（.claude/skills/ja-game-text）：本文は禁則を厳しく。見出し・ボタンは文節で折る */
p,
li {
  line-break: strict;
  overflow-wrap: anywhere;
}
h1,
h2,
h3,
.btn,
.tag {
  word-break: auto-phrase;
  text-wrap: balance;
  font-feature-settings: "palt";
  line-break: strict;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.35;
}
/* 改行してよい所だけで折る（span の中では折らない）。どのブラウザでも効く */
.ib {
  display: inline-block;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ===== ボタン ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 10px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.btn-x {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 4px 0 var(--magenta);
}
.btn-x:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--magenta);
}
.x-icon {
  flex: none;
}

/* ===== 年齢確認（作品のティザーと同じ見た目） ===== */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px var(--gutter);
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255, 79, 184, 0.22), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(69, 230, 255, 0.16), transparent 60%),
    var(--night);
  color: #f5f2ff;
  overflow-y: auto;
}
html.age-ok .age-gate {
  display: none;
}
html:not(.age-ok) body {
  overflow: hidden;
}
.age-box {
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.age-logo {
  width: min(56vw, 240px);
  margin: 0 auto 12px;
  filter: drop-shadow(0 0 18px rgba(255, 79, 184, 0.45));
}
.age-lead {
  margin: 0;
  color: #bdb6dd;
}
.age-title {
  margin: 6px 0 0;
  font-size: 22px;
  font-weight: 800;
}
.age-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.btn-gate-yes {
  color: #fff;
  background: linear-gradient(135deg, #ff3fa8, #ff7ac4);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 0 22px rgba(255, 79, 184, 0.55);
}
.btn-gate-no {
  color: #f5f2ff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
}
.age-denied {
  margin: 16px 0 0;
  color: #ff86d0;
  font-weight: 700;
}

/* ===== ヘッダーと紹介 ===== */
.top {
  text-align: center;
}
.top-header {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border-bottom: 4px solid var(--magenta);
}
.top-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.top-badge {
  width: clamp(120px, 30vw, 180px);
  margin: calc(clamp(120px, 30vw, 180px) / -2) auto 0;
  position: relative;
  filter: drop-shadow(0 4px 0 rgba(123, 10, 62, 0.35));
}
.top-name {
  margin-top: 8px;
  color: var(--magenta);
  font-size: clamp(30px, 8vw, 44px);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.top-kana {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.top-lead {
  display: inline-block;
  margin: 14px 0 0;
  padding: 4px 18px;
  border-radius: 18px;
  background: var(--yellow);
  color: var(--magenta);
  font-size: clamp(17px, 4.6vw, 20px);
  font-weight: 800;
  line-height: 1.5;
  box-shadow: 0 3px 0 var(--magenta);
}
.top-text {
  max-width: 32em;
  margin: 16px auto 0;
  text-align: left;
}

/* ===== 作品 ===== */
.works {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px var(--gutter) 8px;
}
.section-title {
  color: var(--magenta);
  font-size: 26px;
  font-weight: 800;
  text-align: center;
}
.section-title .en {
  display: block;
  color: var(--pink);
  font-size: 15px;
  letter-spacing: 0.3em;
}
.work {
  display: block;
  margin-top: 16px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--night);
  color: #f5f2ff;
  text-decoration: none;
  border: 3px solid var(--magenta);
  box-shadow: 0 6px 0 var(--magenta), 0 0 0 0 rgba(255, 79, 184, 0);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.work:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 0 var(--magenta), 0 0 28px rgba(255, 79, 184, 0.45);
}
.work:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}
.work-pic {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  background: #150f36;
}
.work-body {
  padding: 16px 18px 20px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 79, 184, 0.18), transparent 70%);
}
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0;
}
.tag {
  display: inline-block;
  padding: 0 12px;
  border: 1.5px solid var(--cyan);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.8;
}
.tag-now {
  border-color: #ffe14d;
  color: #ffe14d;
}
.work-title {
  margin-top: 10px;
  font-size: clamp(24px, 6.4vw, 30px);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 79, 184, 0.9), 0 0 20px rgba(255, 79, 184, 0.5);
}
.work-sub {
  margin: 4px 0 0;
  font-weight: 700;
  color: #ff9ed6;
}
.work-text {
  margin: 10px 0 0;
  color: #d8d2f2;
}
.work-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--cyan);
  font-weight: 800;
}

/* ===== X ===== */
.follow {
  padding: 32px var(--gutter) 40px;
  text-align: center;
}
.follow-text {
  margin: 0 0 12px;
  font-weight: 700;
}

/* ===== フッター ===== */
.footer {
  padding: 24px var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: var(--magenta);
  color: #ffe6ef;
  font-size: 15px;
  text-align: center;
}
.footer-notes {
  margin: 0 auto 10px;
  padding: 0;
  list-style: none;
}
.r18 {
  display: inline-block;
  margin-right: 6px;
  padding: 0 8px;
  border-radius: 4px;
  background: #e8264f;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
}
.footer-copy {
  margin: 0;
  font-size: 14px;
}

/* スマホではヘッダーの中ほどを大きめに見せる（3:1 のままだとちびキャラが小さい） */
@media (max-width: 639px) {
  .top-header {
    aspect-ratio: 2 / 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .btn:hover,
  .work:hover {
    transform: none;
  }
}
