/* ═══════════════════════════════════════════════════════════════════
   めい 公式サイト — 深い海の青 × 空色（イメージキャラ：青髪のめい）
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* 地の色（深い海の青） */
  --sea-0: #061640;
  --sea-1: #0a2159;
  --sea-2: #0e2b6e;
  --sea-3: #143583;
  --sea-4: #1b4299;

  /* 面（カード）と線 */
  --surface:   linear-gradient(180deg, rgba(31, 72, 160, 0.46), rgba(18, 46, 112, 0.46));
  --surface-2: rgba(10, 33, 89, 0.62);
  --line:      rgba(140, 196, 255, 0.18);
  --line-2:    rgba(140, 196, 255, 0.34);

  /* 空色（アクセント） */
  --sky:        #5ab8ff;
  --sky-bright: #aee0ff;
  --sky-deep:   #2f7df0;
  --glow:       rgba(90, 184, 255, 0.16);

  /* 文字 */
  --text:       #f2f7ff;
  --text-dim:   #bccdec;
  --text-faint: #86a0cb;

  /* 状態の色 */
  --gold:       #ffd166;
  --gold-soft:  rgba(255, 209, 102, 0.14);
  --coral:      #ff7f8e;
  --coral-soft: rgba(255, 127, 142, 0.14);
  --mint:       #62e3b7;
  --mint-soft:  rgba(98, 227, 183, 0.14);
  --discord:   #5865f2;

  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 18px 40px -24px rgba(0, 8, 30, 0.9);

  --round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", sans-serif;

  /* 艇番の色（公式の枠色） */
  --boat1: #f7f8fb; --boat1-ink: #16213d;
  --boat2: #1c2233; --boat2-ink: #f7f8fb;
  --boat3: #e04a55; --boat3-ink: #ffffff;
  --boat4: #2f6fe8; --boat4-ink: #ffffff;
  --boat5: #f6d449; --boat5-ink: #1f2430;
  --boat6: #3fc27a; --boat6-ink: #0d1a14;

  /* 波の模様（data: URI なので CSP の img-src 'self' data: で読める） */
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C150 8 300 72 450 40 S750 8 900 40 S1050 72 1200 40 V80 H0 Z' fill='%235ab8ff' fill-opacity='.10'/%3E%3Cpath d='M0 54 C170 30 330 78 500 54 S830 30 1000 54 S1120 70 1200 58 V80 H0 Z' fill='%235ab8ff' fill-opacity='.10'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--sea-1); scroll-behavior: smooth; }
[hidden] { display: none !important; }

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background: var(--sea-1);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}

/* 背景は固定の層に描く（iOS は background-attachment: fixed が効かないため） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 480px at 88% -140px, rgba(90, 184, 255, 0.26), transparent 70%),
    radial-gradient(760px 520px at -12% 18%, rgba(56, 118, 255, 0.20), transparent 70%),
    radial-gradient(900px 600px at 50% 120%, rgba(40, 170, 255, 0.16), transparent 70%),
    linear-gradient(180deg, #0d2d74 0%, #0a2159 42%, #071a4a 100%);
}

a { color: inherit; text-decoration: none; }
p { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
strong { font-weight: 700; color: var(--text); }
img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

.ico { width: 18px; height: 18px; flex: none; }

/* ── 共通の飾り ───────────────────────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--round);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--sky);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--sky));
}
.eyebrow--discord { color: #aeb5ff; }
.eyebrow--discord::before { background: linear-gradient(90deg, transparent, #aeb5ff); }

/* ── イメージキャラ ───────────────────────────────────────────── */

/* 丸いアイコン（顔だけを切り出した mei-face.webp） */
.avatar {
  position: relative;
  display: inline-block;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #e6f4ff, #9fd0ff 62%, #5c9ff5);
  box-shadow: 0 0 0 2px rgba(174, 224, 255, 0.8), 0 8px 18px -8px rgba(0, 8, 30, 0.8);
}
.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar--brand { width: 42px; height: 42px; }
.avatar--small { width: 36px; height: 36px; }
.avatar--large { width: 64px; height: 64px; }

/* ふきだし */
.bubble {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 12px 18px;
  border-radius: 18px;
  background: #ffffff;
  color: #173069;
  font-family: var(--round);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 26px -14px rgba(0, 8, 30, 0.9);
}

/* キャラが話しかける 1 行（顔＋ふきだし） */
.talk {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.talk__bubble {
  position: relative;
  flex: 1;
  margin: 0;
  padding: 11px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: #173069;
  font-family: var(--round);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  box-shadow: 0 10px 24px -14px rgba(0, 8, 30, 0.9);
}
.talk__bubble::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  width: 14px;
  height: 14px;
  background: inherit;
  border-radius: 3px;
  transform: translateY(-50%) rotate(45deg);
}
.talk__bubble b { color: var(--sky-deep); }
.talk--center { justify-content: center; }
.talk--center .talk__bubble { flex: 0 1 auto; }

/* ── ボタン ───────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  font-family: var(--round);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-align: center;
  transition: transform .15s, filter .2s, background .2s, border-color .2s, opacity .2s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn .ico { width: 19px; height: 19px; }

.btn--primary, .gate__button {
  background: linear-gradient(180deg, #7cc9ff 0%, #3d92f5 52%, #2a6fe0 100%);
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(10, 40, 110, 0.35);
  box-shadow: 0 12px 26px -12px rgba(61, 146, 245, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn--primary:hover:not(:disabled), .gate__button:hover { filter: brightness(1.07); }

.btn--discord {
  background: linear-gradient(180deg, #8891ff 0%, #5865f2 55%, #4752c4 100%);
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(20, 24, 90, 0.35);
  box-shadow: 0 12px 26px -12px rgba(88, 101, 242, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn--discord:hover { filter: brightness(1.07); }

.btn--x {
  background: #0f1419;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.9);
}
.btn--x:hover { background: #22282e; }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  color: var(--sky-bright);
}
.btn--ghost:hover { border-color: var(--sky); background: var(--glow); }

.btn--big { width: 100%; min-height: 58px; font-size: 17px; letter-spacing: 0.1em; }
.btn--small { min-height: 38px; padding: 7px 16px; font-size: 13px; }

.btn--danger { background: transparent; border: 1px solid rgba(255, 127, 142, 0.6); color: #ffc0c8; }
.btn--danger:hover:not(:disabled) { background: var(--coral-soft); border-color: var(--coral); }
.btn--danger-solid { background: linear-gradient(180deg, #ff8f9c, #e0515f); color: #fff; }
.btn--danger-solid:hover { filter: brightness(1.06); }

/* ── SNS のマーク ─────────────────────────────────────────────── */

.sns-ico {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.16), 0 8px 18px -10px rgba(0, 8, 30, 0.9);
  transition: transform .2s;
}
.sns-ico svg { display: block; width: 48%; height: 48%; overflow: visible; }
.sns-ico--discord { background: var(--discord); }
.sns-ico--discord svg { width: 56%; height: 56%; }
.sns-ico--x       { background: #0f1419; }
.sns-ico--note    { background: #ffffff; color: #1a1a1a; }
.sns-ico--old     { background: rgba(255, 255, 255, 0.12); }
.sns-ico--old .ico { width: 60%; height: 60%; }
.sns-ico--big { width: 56px; height: 56px; }
.sns-ico--inline { width: 24px; height: 24px; box-shadow: none; }
.sns-ico--pill { width: 24px; height: 24px; background: transparent; box-shadow: none; }
.sns-ico--pill svg { width: 82%; height: 82%; }

/* ── 画面の上のお知らせバー ───────────────────────────────────── */

.announce {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  padding-top: calc(9px + env(safe-area-inset-top));
  background: linear-gradient(90deg, #2a6fe0, #4aa6ff 50%, #2a6fe0);
  color: #ffffff;
  font-family: var(--round);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-align: center;
}
a.announce:hover { filter: brightness(1.07); }
.announce__ico { width: 16px; height: 16px; }
.announce__arrow { width: 15px; height: 15px; }

/* ── ヘッダー ─────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(8, 28, 76, 0.84);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
  padding: 12px 18px 8px;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__text { min-width: 0; }
.brand__name {
  display: block;
  font-family: var(--round);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.25;
  white-space: nowrap;
}
.brand__sub {
  display: block;
  font-family: var(--round);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--sky);
  white-space: nowrap;
}

.topbar__actions { display: flex; align-items: center; gap: 12px; flex: none; }

.discord-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 5px 14px 5px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7c86ff, #5865f2);
  color: #ffffff;
  font-family: var(--round);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  box-shadow: 0 8px 18px -10px rgba(88, 101, 242, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: filter .2s;
}
.discord-pill:hover { filter: brightness(1.08); }

.tabs {
  display: flex;
  gap: 6px;
  max-width: 820px;
  margin: 0 auto;
  padding: 2px 12px 10px;
}
.tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 4px;
  border-radius: 999px;
  text-align: center;
  font-family: var(--round);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.tab:hover { color: var(--text-dim); background: rgba(255, 255, 255, 0.04); }
.tab.is-active {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(90, 184, 255, 0.34), rgba(47, 125, 240, 0.34));
  box-shadow: inset 0 0 0 1px rgba(174, 224, 255, 0.4);
}

/* ── レイアウト ───────────────────────────────────────────────── */

.view {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 18px 56px;
  min-height: 62vh;
}

.section { margin-bottom: 52px; scroll-margin-top: 130px; }
.section__eyebrow { margin-bottom: 2px; }

.section__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--round);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.06em;
}
.section__title::before {
  content: "";
  width: 6px;
  height: 20px;
  flex: none;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--sky-bright), var(--sky-deep));
}
.section__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-2), transparent);
}
.section__count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  margin-left: -4px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--glow);
  color: var(--sky-bright);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.section__lead { margin: 0 0 16px; font-size: 14px; color: var(--text-dim); }

.more-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  margin-top: 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--round);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sky-bright);
  transition: border-color .2s, background .2s;
}
.more-link:hover { border-color: var(--sky); background: var(--glow); }
.more-link .ico { width: 16px; height: 16px; }

.panel, .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  font-size: 15px;
}
.panel__title { margin: 0 0 14px; font-family: var(--round); font-size: 18px; font-weight: 700; letter-spacing: 0.06em; }
.panel__note { margin: 14px 0 0; font-size: 14px; color: var(--text-dim); }

.fine { font-size: 12.5px; color: var(--text-faint); margin-top: 14px; }

.notice {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-dim);
}
.notice--warn { border-color: rgba(255, 209, 102, 0.42); background: linear-gradient(180deg, rgba(90, 74, 24, 0.42), rgba(34, 40, 70, 0.5)); color: #fbe8bd; }
.notice--warn strong { color: var(--gold); }

.alert {
  border: 1px solid rgba(255, 127, 142, 0.45);
  background: var(--coral-soft);
  border-radius: var(--radius);
  padding: 20px;
  color: #ffd4da;
}
.alert strong { display: block; font-family: var(--round); font-size: 17px; margin-bottom: 6px; color: #ffe4e8; }
.alert p { font-size: 14px; margin-bottom: 16px; }

.loading, .empty {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 50px 20px;
  color: var(--text-dim);
  font-size: 15px;
  text-align: center;
}
/* 画像の下の端はまっすぐ切れているので、下をぼかして浮かせる */
.empty__mascot {
  width: 170px;
  height: auto;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 62%, transparent 96%);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(140, 196, 255, 0.25);
  border-top-color: var(--sky);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.spinner--inline { width: 13px; height: 13px; border-width: 2px; display: inline-block; vertical-align: -2px; margin-right: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }

.back-link { display: inline-flex; gap: 6px; font-family: var(--round); font-size: 13.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 16px; }
.back-link:hover { color: var(--sky-bright); }

/* ── トップの大きな場所（めい） ───────────────────────────────── */

/*
 * スマホ：めいがカードの上から顔を出す形。画像の下の端（まっすぐ切れている）はカードの裏に隠す。
 * 画像の左上は透明なので、ふきだしはそこに重ねる。
 */
.hero { position: relative; margin: 0 0 50px; }

.hero__visual {
  position: relative;
  z-index: 0;
  max-width: 440px;
  margin: 0 auto -72px;
}
.hero__mascot {
  display: block;
  width: 350px;
  max-width: 90%;
  height: auto;
  margin-left: auto;
  filter: drop-shadow(0 18px 28px rgba(0, 8, 30, 0.55));
  animation: float 6s ease-in-out infinite;
}
.hero__bubble {
  position: absolute;
  left: 0;
  top: 10px;
  max-width: 180px;
  padding: 11px 15px;
  font-size: 14px;
  text-align: left;
  animation: pop .5s .2s ease both;
}
/* しっぽは右下（めいの顔の方）へ向ける */
.hero__bubble::before {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 14px;
  width: 16px;
  height: 16px;
  background: inherit;
  border-radius: 3px;
  transform: rotate(45deg);
}

.hero__card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 34px 22px 26px;
  border: 1px solid var(--line-2);
  border-radius: 28px;
  background:
    radial-gradient(420px 200px at 50% 0%, rgba(90, 184, 255, 0.24), transparent 70%),
    linear-gradient(180deg, rgba(24, 62, 148, 0.95), rgba(10, 33, 89, 0.96));
  box-shadow: var(--shadow), 0 30px 60px -30px rgba(0, 8, 30, 0.9);
  text-align: center;
}
.hero__card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: var(--wave) bottom / 100% 100% no-repeat;
  pointer-events: none;
}
.hero__card > * { position: relative; z-index: 1; }

.hero__heading { margin: 0; font-size: inherit; font-weight: inherit; }
.hero__heading .hero__eyebrow { letter-spacing: 0.22em; }
.hero__name {
  display: block;
  margin: 8px 0 0;
  padding-left: 0.18em; /* 字の間の空きのぶん、中央に寄せ直す */
  font-family: var(--round);
  font-size: 56px;
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1.1;
  background: linear-gradient(180deg, #ffffff 35%, #aee0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 18px rgba(90, 184, 255, 0.4));
}
.hero__catch {
  margin: 12px 0 10px;
  font-family: var(--round);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.6;
}
.hero__lead { max-width: 30em; margin: 0 auto 22px; font-size: 14.5px; color: var(--text-dim); }
.hero__actions { display: grid; gap: 10px; }
.hero__sns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.hero__sns a:hover .sns-ico { transform: translateY(-2px); }

/* パソコン：めいを右に大きく。画像の下の端は、枠の下のふちで切って隠す */
@media (min-width: 780px) {
  .hero {
    display: flex;
    align-items: stretch;
    min-height: 430px;
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: 30px;
    background:
      radial-gradient(600px 340px at 80% 18%, rgba(90, 184, 255, 0.32), transparent 70%),
      linear-gradient(160deg, #1d4aa8, #0f2c74 72%);
    box-shadow: var(--shadow), 0 30px 60px -30px rgba(0, 8, 30, 0.9);
  }
  .hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: 90px;
    background: var(--wave) bottom / 100% 100% no-repeat;
    pointer-events: none;
  }
  .hero__card {
    order: 1;
    flex: 1 1 56%;
    z-index: 3;
    align-self: center;
    overflow: visible;
    padding: 46px 0 60px 44px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    text-align: left;
  }
  .hero__card::after { display: none; }
  .hero__name { padding-left: 0; font-size: 68px; }
  .hero__catch { font-size: 25px; }
  .hero__lead { margin-left: 0; }
  .hero__actions { display: flex; flex-wrap: wrap; }
  .hero__actions .btn--big { width: auto; padding: 12px 26px; font-size: 16px; }
  .hero__sns { justify-content: flex-start; }
  .hero__visual { order: 2; flex: 0 0 44%; align-self: flex-end; max-width: none; margin: 0; }
  .hero__mascot { width: 118%; max-width: none; margin: 0 0 -18% -14%; }
  .hero__bubble { left: -6%; top: 36px; }
}

/* ── ページの見出し（一覧のページ） ───────────────────────────── */

.page-head {
  position: relative;
  overflow: hidden;
  margin: 4px 0 30px;
  padding: 24px 112px 26px 22px;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  background:
    radial-gradient(480px 220px at 100% 0%, rgba(90, 184, 255, 0.28), transparent 70%),
    linear-gradient(160deg, #1d4aa8, #0f2c74 70%);
  box-shadow: var(--shadow), 0 26px 50px -30px rgba(0, 8, 30, 0.95);
}
.page-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  background: var(--wave) bottom / 100% 100% no-repeat;
  pointer-events: none;
}
/* 右にめいの顔 */
.page-head::before {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: url("mei-face.webp") center / cover, radial-gradient(circle at 50% 30%, #e6f4ff, #9fd0ff 62%, #5c9ff5);
  box-shadow: 0 0 0 3px rgba(174, 224, 255, 0.85), 0 12px 24px -10px rgba(0, 8, 30, 0.8);
  transform: translateY(-50%);
}
.page-head > * { position: relative; z-index: 1; }
.page-head__title { margin: 4px 0 6px; font-family: var(--round); font-size: 28px; font-weight: 900; letter-spacing: 0.08em; line-height: 1.35; }
.page-head__lead { margin: 0; font-size: 14px; color: var(--text-dim); }

/* ── 予想記事：いちおし（大きなカード） ───────────────────────── */

.feature {
  display: block;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 22px 20px;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  background:
    radial-gradient(480px 220px at 100% 0%, rgba(90, 184, 255, 0.28), transparent 70%),
    linear-gradient(160deg, #1d4aa8, #0f2c74 70%);
  box-shadow: var(--shadow), 0 26px 50px -30px rgba(0, 8, 30, 0.95);
  transition: transform .2s, border-color .2s;
}
.feature:hover { transform: translateY(-2px); border-color: rgba(174, 224, 255, 0.6); }
.feature::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: var(--wave) bottom / 100% 100% no-repeat;
  opacity: .9;
  pointer-events: none;
}
.feature > * { position: relative; z-index: 1; }

.feature__label { margin-bottom: 12px; }

.feature__image,
.note-card__image,
.note-row__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.91 / 1;
  background: var(--sea-0);
}
.feature__image > img,
.note-card__image > img,
.note-row__thumb > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature__image {
  margin-bottom: 16px;
  border: 1px solid rgba(174, 224, 255, 0.25);
  border-radius: 16px;
  box-shadow: 0 16px 30px -18px rgba(0, 8, 30, 0.9);
}

.feature__title {
  margin: 0 0 8px;
  font-family: var(--round);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.55;
}
.feature__summary {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 14px;
  font-size: 14.5px;
  color: #dce7fb;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
.feature__time {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.feature__time .ico { width: 16px; height: 16px; color: var(--sky); margin-right: -4px; }
.feature__time b { font-family: var(--round); font-size: 18px; font-weight: 900; color: var(--text); }

.feature__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  margin-top: 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #dcefff);
  color: #173a8a;
  font-family: var(--round);
  font-size: 16.5px;
  font-weight: 900;
  letter-spacing: 0.1em;
  box-shadow: 0 12px 26px -12px rgba(0, 8, 30, 0.9), inset 0 -2px 0 rgba(47, 125, 240, 0.2);
  transition: transform .2s;
}
.feature__cta .ico { width: 18px; height: 18px; }
.feature:hover .feature__cta { transform: translateY(-1px); }

/* 残り時間 */
.countdown {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid rgba(255, 127, 142, 0.55);
  border-radius: 999px;
  background: var(--coral-soft);
  color: #ffc6cd;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
  white-space: nowrap;
}
.countdown--small { padding: 1px 10px; font-size: 12px; }
.countdown.is-closed { border-color: var(--line-2); background: transparent; color: var(--text-faint); }

/* 小さな札 */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--text-dim);
  white-space: nowrap;
}
.pill .ico { width: 13px; height: 13px; }
.pill--gold { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); font-weight: 700; }
.pill--price { border-color: rgba(174, 224, 255, 0.6); background: rgba(90, 184, 255, 0.2); color: #ffffff; font-weight: 700; }
.pill--race { color: var(--sky-bright); }
.pill--hit { border-color: rgba(255, 209, 102, 0.7); background: var(--gold-soft); color: var(--gold); font-weight: 700; }
.pill--miss { color: var(--text-faint); }

/* ── 予想記事：一覧のカード ───────────────────────────────────── */

.note-grid { display: grid; gap: 12px; }
@media (min-width: 620px) { .note-grid { grid-template-columns: 1fr 1fr; } }

.note-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s;
}
.note-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.note-card__image { border-bottom: 1px solid var(--line); }
.note-card__body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.note-card__title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 14px;
  font-family: var(--round);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.6;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.note-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.note-card__sale { font-size: 12.5px; font-weight: 700; color: var(--mint); letter-spacing: 0.06em; }
.note-card__go {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--glow);
  font-family: var(--round);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sky-bright);
  white-space: nowrap;
}

/* 画像が無い記事の飾り（めいの顔） */
.thumb-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  background:
    radial-gradient(circle at 50% 38%, rgba(90, 184, 255, 0.4), transparent 62%),
    linear-gradient(160deg, #1b4299, #0a2159);
}
.thumb-empty__face {
  display: block;
  width: 26%;
  max-width: 84px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #e6f4ff, #9fd0ff 62%, #5c9ff5);
  box-shadow: 0 0 0 2px rgba(174, 224, 255, 0.8);
}
.thumb-empty__face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb-empty__text { font-family: var(--round); font-size: 11px; font-weight: 700; letter-spacing: 0.3em; color: var(--sky-bright); }
.note-row__thumb .thumb-empty__text { display: none; }
.note-row__thumb .thumb-empty__face { width: 36%; }

/* ── 予想記事：これまでの予想（1 行） ─────────────────────────── */

.note-rows { display: grid; gap: 10px; }

.note-row {
  display: grid;
  grid-template-columns: 116px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .2s, transform .2s;
}
.note-row:hover { border-color: var(--line-2); transform: translateY(-1px); }
.note-row__thumb { border-radius: 10px; }
.note-row__body { min-width: 0; }
.note-row__meta { font-size: 12px; color: var(--text-faint); letter-spacing: 0.04em; }
.note-row__title {
  display: -webkit-box;
  overflow: hidden;
  margin: 2px 0 6px;
  font-family: var(--round);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.note-row__result { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.note-row__combo { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); }
.note-row__combo .boat { width: 22px; height: 22px; font-size: 12px; }
.note-row__payout { font-family: var(--round); font-size: 15px; font-weight: 900; color: var(--gold); }
.note-row__go { padding-right: 4px; font-size: 22px; color: var(--text-faint); }
.note-row--hit {
  border-color: rgba(255, 209, 102, 0.5);
  background: linear-gradient(170deg, rgba(120, 96, 30, 0.34), rgba(24, 48, 110, 0.5));
}
.note-row--miss { opacity: 0.8; }

/* ── 艇番・組み合わせ ─────────────────────────────────────────── */

.boat {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-family: var(--round);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  flex: none;
  /* 青い地でも 4 号艇（青）・2 号艇（黒）が見分けられるよう、白いふちを付ける */
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.16), 0 2px 8px -3px rgba(0, 8, 30, 0.7);
}
.boat--1 { background: var(--boat1); color: var(--boat1-ink); }
.boat--2 { background: var(--boat2); color: var(--boat2-ink); }
.boat--3 { background: var(--boat3); color: var(--boat3-ink); }
.boat--4 { background: var(--boat4); color: var(--boat4-ink); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 2px 8px -3px rgba(0, 8, 30, 0.7); }
.boat--5 { background: var(--boat5); color: var(--boat5-ink); }
.boat--6 { background: var(--boat6); color: var(--boat6-ink); }

.combo { display: inline-flex; align-items: center; gap: 5px; }
.combo__sep { font-size: 12px; color: var(--sky); }
.combo-text { font-family: var(--round); font-weight: 700; letter-spacing: 0.06em; }

/* ── 的中実績 ─────────────────────────────────────────────────── */

.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 660px) { .kpis { grid-template-columns: repeat(4, 1fr); } }

.kpi {
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.kpi__label { font-size: 12px; letter-spacing: 0.04em; line-height: 1.5; color: var(--text-faint); }
.kpi__value { font-family: var(--round); font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.3; }
.kpi__value small { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--text-dim); margin-left: 3px; }
.kpi__value--yen { font-size: 26px; }
.kpi--hit { border-color: rgba(255, 209, 102, 0.55); background: linear-gradient(170deg, rgba(120, 96, 30, 0.45), rgba(24, 48, 110, 0.5)); }
.kpi--hit .kpi__value { color: var(--gold); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  font-family: var(--round);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.chip:hover { border-color: var(--line-2); color: var(--text); }
.chip.is-active { border-color: var(--sky); background: var(--glow); color: #ffffff; }
.chip__count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  margin-left: 8px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  color: var(--text-dim);
}
.chip--hit { border-color: rgba(255, 209, 102, 0.6); color: #ffe3a3; }
.chip.is-active .chip__count { background: rgba(90, 184, 255, 0.3); color: #ffffff; }
.record-filter { margin-bottom: 16px; }

.records { display: grid; gap: 12px; }
@media (min-width: 700px) { .records--top { grid-template-columns: 1fr 1fr; } }

.record {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

/* はずれは控えめに */
.record--miss { opacity: 0.78; }
.record--miss .record__place { color: var(--text-dim); }

/* 当たり：金のふちと「的中」の印で、ひと目でわかるように */
.record--hit {
  border: 1px solid transparent;
  background:
    linear-gradient(170deg, #2a4a9a, #183a86 55%, #12306f) padding-box,
    linear-gradient(135deg, #ffe7a8, #e8b24a 40%, #ffe7a8 70%, #c98f2c) border-box;
  box-shadow: 0 0 0 1px rgba(255, 209, 102, 0.14), 0 22px 44px -26px rgba(255, 209, 102, 0.55);
}
.record--hit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px 160px at 100% 0%, rgba(255, 231, 168, 0.18), transparent 70%);
  pointer-events: none;
}
.record > * { position: relative; }

.record__stamp {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 2px solid #ff5a67;
  border-radius: 50%;
  color: #ff6b77;
  font-family: var(--round);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.06em;
  transform: rotate(-12deg);
  box-shadow: inset 0 0 0 3px rgba(255, 90, 103, 0.2);
  background: rgba(255, 255, 255, 0.92);
}

.record__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.record--hit .record__head { padding-right: 70px; }
.record__place { margin: 0; font-family: var(--round); font-size: 17px; font-weight: 700; letter-spacing: 0.03em; line-height: 1.55; }
.record__place a:hover { text-decoration: underline; text-underline-offset: 3px; }
.record__date { font-size: 12px; color: var(--text-faint); letter-spacing: 0.04em; }
.record__headline { margin: 10px 0 0; font-size: 14px; color: var(--text-dim); }

.record__win {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 231, 168, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(6, 22, 64, 0.4);
}
.record__win-combo { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.record__type { font-family: var(--round); font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; color: var(--gold); }
.record__win-payout { text-align: right; margin-left: auto; }
.record__win-label { display: block; font-size: 11.5px; letter-spacing: 0.1em; color: var(--gold); }
.record__win-amount {
  display: block;
  font-family: var(--round);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.15;
  background: linear-gradient(180deg, #fff6d6, #ffc94d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.record__roi { margin-top: 10px; font-size: 13px; color: var(--text-dim); }
.record__roi b { font-family: var(--round); font-size: 17px; color: var(--gold); }
.record__link {
  display: inline-flex;
  margin-top: 12px;
  font-family: var(--round);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--sky-bright);
}
.record__link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── お知らせ ─────────────────────────────────────────────────── */

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.news-list li + li { border-top: 1px solid var(--line); }

.news-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  padding: 14px 18px;
  transition: background .2s;
}
.news-item:hover { background: rgba(255, 255, 255, 0.04); }
.news-item__top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.news-item__date {
  font-family: var(--round);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--sky-bright);
}
.news-item__pin { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; color: var(--gold); }
.news-item__pin .ico { width: 13px; height: 13px; }
.news-item__title { grid-column: 1; font-size: 15px; font-weight: 600; line-height: 1.6; }
.news-item__arrow { grid-column: 2; grid-row: 1 / span 2; font-size: 22px; color: var(--text-faint); }

.news-cat {
  display: inline-block;
  padding: 1px 10px;
  border: 1px solid rgba(90, 184, 255, 0.45);
  border-radius: 999px;
  background: rgba(90, 184, 255, 0.12);
  color: var(--sky-bright);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.7;
  white-space: nowrap;
}
.news-cat--note      { border-color: rgba(98, 227, 183, 0.5); background: var(--mint-soft); color: #b7f4dd; }
.news-cat--hit       { border-color: rgba(255, 209, 102, 0.6); background: var(--gold-soft); color: var(--gold); }
.news-cat--campaign  { border-color: rgba(255, 127, 142, 0.55); background: var(--coral-soft); color: #ffc6cd; }
.news-cat--important { border-color: #ff7f8e; background: rgba(255, 90, 103, 0.38); color: #ffffff; }

@media (min-width: 620px) {
  .news-item { grid-template-columns: auto 1fr auto; gap: 16px; }
  .news-item__top { flex-wrap: nowrap; }
  .news-item__title { grid-column: 2; }
  .news-item__arrow { grid-column: 3; grid-row: 1; }
}

/* お知らせの 1 件のページ */
.article {
  margin-bottom: 30px;
  padding: 26px 22px;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background:
    radial-gradient(420px 180px at 0% 0%, rgba(90, 184, 255, 0.2), transparent 70%),
    linear-gradient(170deg, rgba(31, 72, 160, 0.66), rgba(10, 33, 89, 0.66) 75%);
  box-shadow: var(--shadow);
}
.article__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--round);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--sky-bright);
}
.article__title { margin: 10px 0 18px; font-family: var(--round); font-size: 24px; font-weight: 900; letter-spacing: 0.04em; line-height: 1.55; }
.article__body { font-size: 15.5px; line-height: 2; color: #dce7fb; overflow-wrap: anywhere; }
.article__body p { margin-bottom: 1.1em; }
.article__body a { color: var(--sky-bright); text-decoration: underline; text-underline-offset: 3px; }
.article__button { margin-top: 20px; }

/* ── プロフィール ─────────────────────────────────────────────── */

.profile {
  position: relative;
  overflow: hidden;
  padding: 24px 22px;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(90, 184, 255, 0.22), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow);
}
.profile__head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.avatar--profile { width: 84px; height: 84px; box-shadow: 0 0 0 3px rgba(174, 224, 255, 0.85), 0 12px 24px -10px rgba(0, 8, 30, 0.8); }
.profile__name { font-family: var(--round); font-size: 26px; font-weight: 900; letter-spacing: 0.14em; line-height: 1.3; }
.profile__title { font-family: var(--round); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--sky); }
.profile__bio { font-size: 15px; color: #dce7fb; }
.profile__bio p { margin-bottom: 0.9em; }
.profile__items { display: grid; gap: 8px; margin: 18px 0 0; }
@media (min-width: 620px) { .profile__items { grid-template-columns: 1fr 1fr; } }
.profile__item { padding: 10px 14px; border: 1px solid rgba(174, 224, 255, 0.12); border-radius: var(--radius-sm); background: rgba(6, 22, 64, 0.42); }
.profile__item dt { font-size: 11.5px; letter-spacing: 0.08em; color: var(--text-faint); }
.profile__item dd { margin: 0; font-family: var(--round); font-size: 15px; font-weight: 700; }

/* ── Discord・X・note ───────────────────────────────────────── */

/* Discord サーバーへのおさそい（Discord の青紫） */
.discord-cta {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 24px 22px;
  border: 1px solid rgba(136, 145, 255, 0.6);
  border-radius: 24px;
  background:
    radial-gradient(440px 220px at 0% 0%, rgba(88, 101, 242, 0.42), transparent 70%),
    linear-gradient(170deg, rgba(60, 62, 160, 0.7), rgba(12, 32, 92, 0.78) 70%);
  box-shadow: var(--shadow), 0 26px 50px -30px rgba(20, 20, 80, 0.95);
}
.discord-cta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  background: var(--wave) bottom / 100% 100% no-repeat;
  opacity: .7;
  pointer-events: none;
}
.discord-cta > * { position: relative; z-index: 1; }
.discord-cta__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.discord-cta__title { margin: 0; font-family: var(--round); font-size: 21px; font-weight: 900; letter-spacing: 0.04em; line-height: 1.45; }
.discord-cta__server { font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; color: #c3c8ff; }
.discord-cta__text { margin-bottom: 18px; font-size: 14.5px; color: #e2e6ff; }
.discord-cta__text p { margin-bottom: 0.6em; }
@media (min-width: 700px) { .discord-cta .btn--big { width: auto; padding: 12px 34px; } }

.sns-grid { display: grid; gap: 10px; }
@media (min-width: 620px) { .sns-grid { grid-template-columns: 1fr 1fr; } }

.sns-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .2s, transform .2s;
}
.sns-card:hover { border-color: var(--line-2); transform: translateY(-1px); }
.sns-card__body { display: grid; min-width: 0; }
.sns-card__name { font-family: var(--round); font-size: 16px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.5; }
.sns-card__handle { overflow: hidden; font-size: 13px; color: var(--sky-bright); text-overflow: ellipsis; white-space: nowrap; }
.sns-card__text { font-size: 12.5px; line-height: 1.6; color: var(--text-dim); }
.sns-card__go { font-size: 22px; color: var(--text-faint); }

/* ── 販売中の予想が無いとき ───────────────────────────────────── */

.waiting { display: grid; justify-items: center; gap: 16px; padding: 4px 0 6px; text-align: center; }
.waiting__mascot {
  width: 210px;
  height: auto;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 95%);
  mask-image: linear-gradient(180deg, #000 60%, transparent 95%);
}
.waiting__bubble { max-width: 340px; margin-top: -26px; font-size: 14px; }
/* しっぽは上（めいの方）へ */
.waiting__bubble::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -7px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  background: inherit;
  border-radius: 3px;
  transform: rotate(45deg);
}

/* ── ページ送り ───────────────────────────────────────────────── */

.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; }
.pager__btn {
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--round);
  font-size: 14px;
  font-weight: 700;
  color: var(--sky-bright);
  transition: border-color .2s, background .2s;
}
.pager__btn:hover { border-color: var(--sky); background: var(--glow); }
.pager__now { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text-faint); }

/* ── 見つからないページ・ログイン画面 ─────────────────────────── */

.lost, .gate {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}
/* めいがカードの上から顔を出す形 */
.lost__hero, .gate__hero {
  position: relative;
  z-index: 0;
  width: 100%;
  margin: 0 auto -62px;
}
.lost__mascot, .gate__mascot {
  display: block;
  width: 300px;
  max-width: 88%;
  height: auto;
  margin-left: auto;
  filter: drop-shadow(0 16px 24px rgba(0, 8, 30, 0.55));
}
.lost__bubble, .gate__bubble {
  position: absolute;
  left: 0;
  top: 8px;
  max-width: 190px;
  padding: 10px 14px;
  font-size: 13.5px;
  text-align: left;
  animation: pop .5s .2s ease both;
}
.lost__bubble::before, .gate__bubble::before {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 14px;
  width: 16px;
  height: 16px;
  background: inherit;
  border-radius: 3px;
  transform: rotate(45deg);
}
.lost__card, .gate__card {
  position: relative;
  z-index: 1;
  padding: 30px 24px 24px;
  border: 1px solid var(--line-2);
  border-radius: 26px;
  background:
    radial-gradient(420px 200px at 50% 0%, rgba(90, 184, 255, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(24, 62, 148, 0.94), rgba(10, 33, 89, 0.96));
  box-shadow: var(--shadow), 0 30px 60px -30px rgba(0, 8, 30, 0.9);
}
.lost__title { margin: 0 0 6px; font-family: var(--round); font-size: 22px; font-weight: 900; letter-spacing: 0.06em; }
.lost__lead { margin: 0 0 20px; font-size: 14px; color: var(--text-dim); }

.gate-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px 20px 40px;
}
.gate-body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: 180px;
  background: var(--wave) bottom / 100% 100% no-repeat;
  pointer-events: none;
}
.gate__title { margin: 0; font-family: var(--round); font-size: 28px; font-weight: 900; letter-spacing: 0.12em; }
.gate__sub { margin: 4px 0 18px; font-family: var(--round); font-size: 10.5px; font-weight: 700; letter-spacing: 0.36em; color: var(--sky); }
.gate__lead { margin: 0 0 22px; color: var(--text-dim); font-size: 14px; }
.gate__form { display: grid; gap: 10px; text-align: left; }
.gate__label { font-family: var(--round); font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em; color: var(--sky-bright); }
.gate__input {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: rgba(6, 22, 64, 0.72);
  color: var(--text);
  font-size: 18px;
  letter-spacing: 0.14em;
  transition: border-color .2s, box-shadow .2s;
}
.gate__input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px var(--glow); }
.gate__error {
  padding: 11px 14px;
  margin: 0 0 16px;
  border: 1px solid rgba(255, 127, 142, 0.45);
  border-radius: var(--radius-sm);
  background: var(--coral-soft);
  color: #ffd2d8;
  font-size: 14px;
  text-align: left;
}
.gate__button {
  width: 100%;
  min-height: 54px;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  font-family: var(--round);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.24em;
  cursor: pointer;
}
.gate__note { margin-top: 20px; font-size: 12.5px; color: var(--text-faint); }

/* ── 確認の画面 ───────────────────────────────────────────────── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 12, 36, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade .18s ease;
}
.modal__box {
  width: 100%;
  max-width: 400px;
  padding: 24px 22px 20px;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: linear-gradient(175deg, #1c4296, #0d2a6c);
  box-shadow: 0 30px 60px -20px rgba(0, 8, 30, 0.9);
  animation: rise .22s ease;
}
.modal__title { margin: 0 0 10px; font-family: var(--round); font-size: 19px; font-weight: 900; letter-spacing: 0.04em; }
.modal__message { margin: 0 0 22px; font-size: 14.5px; color: var(--text-dim); }
.modal__message b { color: var(--text); }
.modal__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.modal__actions .btn { flex: 1; min-width: 120px; padding: 12px 14px; letter-spacing: 0.04em; white-space: nowrap; }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.96); } }
@keyframes float { 50% { transform: translateY(-5px); } }

/* ── フッター ─────────────────────────────────────────────────── */

.footer {
  position: relative;
  padding: 64px 18px calc(36px + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--text-faint);
  font-size: 12px;
  background: linear-gradient(180deg, transparent, rgba(4, 14, 42, 0.55) 60%);
}
.footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 56px;
  background: var(--wave) bottom / 100% 100% no-repeat;
}
.footer__brand { font-family: var(--round); font-size: 22px; font-weight: 900; letter-spacing: 0.24em; color: var(--sky-bright); line-height: 1.3; }
.footer__sub { margin: 2px 0 18px; font-family: var(--round); font-size: 10px; font-weight: 700; letter-spacing: 0.3em; color: var(--sky); }
.footer__sns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 20px; }
.footer__sns .sns-ico { width: 40px; height: 40px; }
.footer__sns a:hover .sns-ico { transform: translateY(-2px); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 18px; font-family: var(--round); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-dim); }
.footer__links a:hover { color: var(--sky-bright); }
.footer__note { max-width: 620px; margin: 0 auto; line-height: 1.9; }
.footer__note p { margin: 0 0 4px; }
.footer__copy { margin: 16px 0 0; font-size: 11px; letter-spacing: 0.08em; }

/* ── カード全体を押せるリンク（中の note へのボタンは、上に重ねた別のリンク） ── */

.stretched { color: inherit; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.stretched:focus-visible { outline: none; }
.stretched:focus-visible::after { outline: 2px solid var(--sky); outline-offset: -2px; border-radius: inherit; }
a.above-stretched { position: relative; z-index: 4; }
.feature > .feature__title { position: static; }
.feature:has(.feature__cta:hover) { transform: none; }

/* ── めいの競艇予想の特徴 ─────────────────────────────────────── */

.points { display: grid; gap: 10px; }
@media (min-width: 700px) { .points { grid-template-columns: repeat(3, 1fr); } }
.point {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
@media (min-width: 700px) {
  .point { grid-template-columns: 1fr; }
  .points--list { grid-template-columns: 1fr; }
  .points--list .point { grid-template-columns: 38px 1fr; }
}
.point__no {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #7cc9ff, #2f7df0);
  color: #ffffff;
  font-family: var(--round);
  font-size: 17px;
  font-weight: 900;
}
.point__title { margin: 0 0 4px; font-family: var(--round); font-size: 16.5px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.5; }
.point p { margin: 0; font-size: 14px; color: var(--text-dim); }

/* ── よくある質問 ─────────────────────────────────────────────── */

.faq { display: grid; gap: 10px; }
.faq__item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.faq__item[open] { border-color: var(--line-2); }
.faq__q {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 44px 14px 16px;
  position: relative;
  font-family: var(--round);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.02em;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--sky-bright);
  border-bottom: 2px solid var(--sky-bright);
  transform: rotate(45deg);
  transition: transform .2s;
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(180deg, #7cc9ff, #2f7df0);
  color: #ffffff;
  font-family: var(--round);
  font-size: 15px;
  font-weight: 900;
}
.faq__mark--a { background: linear-gradient(180deg, #ffe7a8, #e8b24a); color: #4a3200; }
.faq__a { display: flex; gap: 12px; padding: 0 16px 16px; font-size: 14.5px; color: #dce7fb; }
.faq__a p { margin-bottom: 0.6em; }
.faq__a a { color: var(--sky-bright); text-decoration: underline; text-underline-offset: 3px; }

/* ── 予想記事のページ ─────────────────────────────────────────── */

.article__tags { margin-top: -6px; margin-bottom: 14px; }
.article__image { margin-bottom: 16px; }
.article__time { margin: 16px 0 0; }
.article__note { margin: 10px 0 0; font-size: 12.5px; color: var(--text-faint); text-align: center; }
.pill--sale { border-color: rgba(98, 227, 183, 0.6); background: var(--mint-soft); color: #b7f4dd; font-weight: 700; }

/* ── 競艇予想のやり方ガイド ───────────────────────────────────── */

.toc { margin: 0 0 30px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.toc__title { margin: 0 0 8px; font-family: var(--round); font-size: 14px; font-weight: 700; letter-spacing: 0.12em; color: var(--sky-bright); }
.toc ol { margin: 0; padding-left: 1.4em; font-size: 14.5px; line-height: 2; }
.toc a:hover { color: var(--sky-bright); text-decoration: underline; text-underline-offset: 3px; }

.prose { font-size: 15px; line-height: 1.95; color: #dce7fb; }
.prose p { margin-bottom: 1em; }
.prose strong { color: #ffffff; }

.bet-table-wrap { overflow-x: auto; margin: 4px 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.bet-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bet-table th, .bet-table td { padding: 11px 14px; text-align: left; vertical-align: top; }
.bet-table thead th { font-family: var(--round); font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--sky-bright); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.bet-table tbody tr + tr td { border-top: 1px solid var(--line); }
.bet-table td:first-child { font-family: var(--round); font-weight: 700; white-space: nowrap; }
.bet-table td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 700; }

.terms { margin: 0; }
.terms dt { margin-top: 16px; font-family: var(--round); font-size: 16px; font-weight: 700; letter-spacing: 0.04em; color: var(--sky-bright); }
.terms dt:first-child { margin-top: 0; }
.terms dd { margin: 2px 0 0; font-size: 14.5px; color: var(--text-dim); }

.panel--warn { border-color: rgba(255, 209, 102, 0.36); background: linear-gradient(180deg, rgba(80, 70, 30, 0.35), rgba(30, 40, 80, 0.45)); }
.panel--warn ul { margin: 0; padding-left: 1.2em; font-size: 14.5px; line-height: 1.9; color: #fbe8bd; }

.cta-row { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 620px) { .cta-row { grid-template-columns: 1fr 1fr; } }

.footer__about { max-width: 620px; margin: 0 auto 14px; font-size: 12px; line-height: 1.9; color: var(--text-faint); }

/* ── スマホ：全体をひとまわり小さくして、最初の画面で中身まで見えるようにする ── */

@media (max-width: 600px) {
  /* ヘッダー */
  .topbar__inner { padding: 8px 14px 6px; }
  .brand { gap: 10px; }
  .avatar--brand { width: 36px; height: 36px; }
  .brand__name { font-size: 18px; }
  .brand__sub { font-size: 8.5px; letter-spacing: 0.26em; }
  .tabs { gap: 4px; padding: 0 10px 8px; }
  .tab { min-height: 34px; font-size: 13px; letter-spacing: 0.03em; }
  .discord-pill { min-height: 32px; padding: 4px 12px 4px 7px; font-size: 12px; }

  .view { padding: 14px 14px 44px; }
  .section { margin-bottom: 40px; scroll-margin-top: 100px; }
  .section__title { gap: 10px; margin-bottom: 12px; font-size: 18px; }
  .section__title::before { width: 5px; height: 18px; }
  .more-link { min-height: 44px; margin-top: 12px; font-size: 13px; }
  .btn--big { min-height: 48px; font-size: 15px; letter-spacing: 0.08em; }

  /* トップの大きな場所（めいは小さめに。カードの上から顔を出す形はそのまま） */
  .hero { margin-bottom: 32px; }
  .hero__visual { max-width: 330px; margin-bottom: -40px; }
  .hero__mascot { width: 210px; max-width: 62%; }
  .hero__bubble { top: 2px; max-width: 140px; padding: 7px 11px; border-radius: 13px; font-size: 12px; }
  .hero__bubble::before { right: -5px; bottom: 11px; width: 11px; height: 11px; }
  .hero__card { padding: 20px 16px 16px; border-radius: 22px; }
  .hero__card::after { height: 50px; }
  .hero__name { margin-top: 2px; font-size: 36px; }
  .hero__catch { margin: 4px 0 6px; font-size: 15.5px; line-height: 1.55; }
  .hero__lead { margin-bottom: 14px; font-size: 12.5px; line-height: 1.7; }
  .hero__actions { gap: 8px; }
  .hero__sns { gap: 8px; margin-top: 12px; }
  .hero__sns .sns-ico { width: 34px; height: 34px; }

  /* めいのセリフ */
  .talk { gap: 10px; margin-bottom: 12px; }
  .talk .avatar { width: 38px; height: 38px; }
  .talk__bubble { padding: 8px 12px; font-size: 12.5px; }

  /* 一覧のページの見出し */
  .page-head { margin: 0 0 22px; padding: 16px 80px 18px 16px; border-radius: 20px; }
  .page-head::before { right: 14px; width: 52px; height: 52px; }
  .page-head__title { font-size: 21px; }
  .page-head__lead { font-size: 12.5px; }

  /* 予想記事 */
  .feature { padding: 14px 14px 16px; border-radius: 20px; }
  .feature__label { margin-bottom: 10px; }
  .feature__image { margin-bottom: 12px; border-radius: 12px; }
  .feature__title { font-size: 17px; line-height: 1.5; }
  .feature__summary { margin-bottom: 10px; font-size: 13px; -webkit-line-clamp: 3; }
  .feature__time { font-size: 12.5px; }
  .feature__time b { font-size: 15px; }
  .feature__cta { min-height: 46px; margin-top: 14px; font-size: 14.5px; }
  .pill { padding: 1px 10px; font-size: 11.5px; }
  .countdown { padding: 2px 10px; font-size: 12px; }
  /* 販売中のカードは、画像を左に小さく置いた横長の形に */
  .note-card { flex-direction: row; align-items: stretch; }
  .note-card__image { flex: 0 0 108px; aspect-ratio: auto; min-height: 96px; border-bottom: 0; border-right: 1px solid var(--line); }
  .note-card .thumb-empty__text { display: none; }
  .note-card .thumb-empty__face { width: 54%; }
  .note-card__body { min-width: 0; padding: 12px 12px 12px 14px; }
  .note-card .tags { margin-bottom: 6px; }
  .note-card__title { margin-bottom: 10px; font-size: 14.5px; -webkit-line-clamp: 2; }
  .note-row { grid-template-columns: 88px 1fr; gap: 12px; padding: 10px; }
  .note-row__go { display: none; }
  .note-row__title { font-size: 14px; }

  /* 的中実績 */
  .kpis { gap: 8px; }
  .kpi { padding: 11px 12px 9px; border-radius: 14px; }
  .kpi__label { font-size: 11px; }
  .kpi__value { font-size: 23px; }
  .kpi__value--yen { font-size: 20px; }
  .record { padding: 14px 14px 12px; }
  .record__place { font-size: 15px; }
  .record__stamp { top: 12px; right: 12px; width: 48px; height: 48px; font-size: 14px; }
  .record--hit .record__head { padding-right: 54px; }
  .record__win { gap: 10px 14px; padding: 12px; }
  .record__win-amount { font-size: 24px; }
  .boat { width: 28px; height: 28px; font-size: 14px; }

  /* お知らせ */
  .news-item { padding: 12px 14px; }
  .news-item__title { font-size: 14px; }
  .article { padding: 18px 16px; border-radius: 20px; }
  .article__title { margin-bottom: 14px; font-size: 19px; }
  .article__body { font-size: 14.5px; line-height: 1.9; }

  /* プロフィール・SNS */
  .profile { padding: 18px 16px; border-radius: 20px; }
  .profile__head { gap: 12px; margin-bottom: 12px; }
  .avatar--profile { width: 60px; height: 60px; }
  .profile__name { font-size: 21px; }
  .profile__bio { font-size: 13.5px; }
  .profile__item dd { font-size: 14px; }
  .discord-cta { padding: 18px 16px; border-radius: 20px; }
  .discord-cta__head { gap: 12px; margin-bottom: 10px; }
  .sns-ico--big { width: 44px; height: 44px; }
  .discord-cta__title { font-size: 17px; }
  .discord-cta__text { margin-bottom: 14px; font-size: 13px; }
  .sns-card { gap: 12px; padding: 12px 14px; }
  .sns-card .sns-ico { width: 38px; height: 38px; }
  .sns-card__name { font-size: 14.5px; }

  /* 見つからないページ・ログイン */
  .lost__bubble, .gate__bubble { max-width: 160px; font-size: 12.5px; }

  .footer { padding-top: 52px; }
  .point { padding: 14px; }
  .point__title { font-size: 15px; }
  .point p { font-size: 13px; }
  .faq__q { padding: 12px 40px 12px 14px; font-size: 14px; }
  .faq__mark { width: 26px; height: 26px; font-size: 13px; }
  .faq__a { padding: 0 14px 14px; font-size: 13.5px; }
  .prose { font-size: 14px; }
  .bet-table { font-size: 13px; }
  .bet-table th, .bet-table td { padding: 9px 10px; }
  .toc { padding: 14px 16px; }
  .toc ol { font-size: 13.5px; }
  .footer__sns .sns-ico { width: 36px; height: 36px; }
}

@media (max-width: 380px) {
  .brand__sub { display: none; }
  .discord-pill span { display: none; }
  .discord-pill { padding: 4px 7px; }
  .tab { font-size: 12.5px; letter-spacing: 0; }
  .hero__name { font-size: 32px; }
  .eyebrow { letter-spacing: 0.16em; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
