/* =========================================================
   天砕児（Tensai-Zi）公式HP スタイルシート
   Pastel Pop & Sticker Aesthetic / Full Responsive
========================================================= */

:root {
  --navy: #1E2538;
  --navy-soft: #3B445E;
  --white: #FFFFFF;
  --bg-base: #FCF9FF;
  --bg-tinted: #F5F2FF;

  /* びびっと（パステルピンク） */
  --vivid-main: #FF85B3;
  --vivid-light: #FFD4E5;
  --vivid-soft: #FFF0F6;
  --vivid-deep: #E8568E;

  /* 青空はんも（パステルスカイブルー） */
  --hanmo-main: #64C2FF;
  --hanmo-light: #CBEBFF;
  --hanmo-soft: #EFF9FF;
  --hanmo-deep: #2B9AE6;

  /* ユニットグラデーション */
  --grad-unit: linear-gradient(125deg, #FF9EC0 0%, #FFB7D2 24%, #E3C9FF 50%, #A6DCFF 76%, #7ECBFF 100%);
  --grad-board: linear-gradient(125deg, #FF99BD 0%, #FFB3CE 25%, #DEC7FF 50%, #9FD9FF 75%, #78C8FF 100%);

  --shadow-sticker: 0 10px 26px rgba(30, 37, 56, 0.10);
  --shadow-hover: 0 16px 34px rgba(30, 37, 56, 0.16);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;

  --font-main: 'M PLUS Rounded 1c', 'Zen Maru Gothic', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--navy);
  background-color: var(--bg-base);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   シングルパス・ページ遷移ワイプ演出
========================================================= */
.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}

/* テーマクラス（.theme-hanmo / .theme-vivid）の背景がワイプ本体に効くと
   遷移後も全面がグラデーションで覆われたままになるため、本体は常に透明にする */
.page-wipe.theme-hanmo,
.page-wipe.theme-vivid,
.page-wipe.theme-minecraft {
  background: transparent;
}

.wipe-layer {
  position: absolute;
  inset: 0;
  visibility: hidden;
  transform: translateX(-105%);
  will-change: transform;
}

.wipe-back {
  background: rgba(255, 255, 255, 0.85);
}

.wipe-front {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.26) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.26) 1.5px, transparent 1.5px),
    var(--grad-unit);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-wipe.theme-hanmo .wipe-front {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.28) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.28) 1.5px, transparent 1.5px),
    linear-gradient(135deg, #64C2FF 0%, #A9E0FF 100%);
}

.page-wipe.theme-vivid .wipe-front {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.28) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.28) 1.5px, transparent 1.5px),
    linear-gradient(135deg, #FF85B3 0%, #FFC0D8 100%);
}

.page-wipe.theme-minecraft .wipe-front {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.28) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.28) 1.5px, transparent 1.5px),
    linear-gradient(135deg, #5DA24A 0%, #A8D68D 100%);
}

/* フェーズ1: 左から中央へ覆う */
.page-wipe.phase-cover .wipe-back {
  visibility: visible;
  transition: transform 0.32s cubic-bezier(0.76, 0, 0.24, 1);
  transform: translateX(0%);
}
.page-wipe.phase-cover .wipe-front {
  visibility: visible;
  transition: transform 0.36s cubic-bezier(0.76, 0, 0.24, 1) 0.04s;
  transform: translateX(0%);
}

/* フェーズ2: 中央から右へ抜ける */
.page-wipe.phase-reveal .wipe-front {
  visibility: visible;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateX(105%);
}
.page-wipe.phase-reveal .wipe-back {
  visibility: visible;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.04s;
  transform: translateX(105%);
}

/* フェーズ3: 非表示のまま左待機位置へ瞬間リセット */
.page-wipe.phase-reset .wipe-back,
.page-wipe.phase-reset .wipe-front {
  visibility: hidden;
  transition: none !important;
  transform: translateX(-105%);
}

.wipe-badge {
  background: var(--white);
  border: 4px solid var(--navy);
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 28px rgba(30, 37, 56, 0.2);
}

.wipe-badge img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.wipe-badge span {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--navy);
}

/* =========================================================
   トースト通知
========================================================= */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 120%);
  background: var(--navy);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 3px solid var(--white);
  box-shadow: 0 10px 25px rgba(30, 37, 56, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.92rem;
  z-index: 9500;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* =========================================================
   ヘッダー＆ナビゲーション
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(30, 37, 56, 0.06);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-logo-btn {
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header-logo-btn:hover {
  transform: scale(1.05) rotate(-1.5deg);
}

.header-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-pill {
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--navy);
  background: var(--white);
  border: 2.5px solid #E8E4F3;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-pill:hover {
  transform: translateY(-2px);
  border-color: var(--navy);
}

.nav-pill.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 6px 14px rgba(30, 37, 56, 0.18);
}

.nav-pill.nav-hanmo.active {
  background: var(--hanmo-main);
  border-color: var(--hanmo-deep);
  color: var(--white);
}

.nav-pill.nav-vivid.active {
  background: var(--vivid-main);
  border-color: var(--vivid-deep);
  color: var(--white);
}

.nav-pill.nav-mc.active {
  background: #5da24a;
  border-color: #478a37;
  color: var(--white);
}

.nav-pill.nav-store {
  background: linear-gradient(135deg, #FFF3B0 0%, #FFE082 100%);
  border-color: #F4C44E;
  color: var(--navy);
}

.ext-icon {
  width: 14px;
  height: 14px;
}

/* ハンバーガーボタン */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--white);
  border: 2.5px solid var(--navy);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2.8px;
  background: var(--navy);
  border-radius: 4px;
  transition: transform 0.25s ease;
}

/* ドロワーメニュー */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.mobile-drawer.open {
  pointer-events: auto;
  opacity: 1;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 37, 56, 0.42);
  backdrop-filter: blur(4px);
}

.drawer-panel {
  position: absolute;
  top: 14px;
  right: 14px;
  width: min(320px, calc(100vw - 28px));
  background: var(--white);
  border: 4px solid var(--navy);
  border-radius: 28px;
  padding: 20px;
  box-shadow: 0 20px 44px rgba(30, 37, 56, 0.24);
  transform: translateY(-16px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-drawer.open .drawer-panel {
  transform: translateY(0) scale(1);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 2px dashed #E6E1F5;
}

.drawer-logo {
  height: 36px;
}

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F4F1FA;
  font-weight: 900;
  color: var(--navy);
  font-size: 1rem;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-btn {
  width: 100%;
  padding: 13px 16px;
  border-radius: 16px;
  background: #F9F7FF;
  border: 2.5px solid #EAE5F8;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--navy);
  text-align: left;
}

.drawer-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.drawer-store {
  background: #FFF9DB;
  border-color: #F6CF65;
}

.drawer-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-unit { background: linear-gradient(135deg, #FF85B3, #64C2FF); }
.dot-hanmo { background: var(--hanmo-main); }
.dot-vivid { background: var(--vivid-main); }
.dot-store { background: #F5B82E; }

/* =========================================================
   ページ表示切り替え
========================================================= */
.page-view {
  display: none;
}

.page-view.active {
  display: block;
}

/* =========================================================
   ヒーローセクション（滑らかなパステルグラデーション＆方眼ボード）
========================================================= */
.hero-stage {
  position: relative;
  padding: clamp(24px, 4vw, 44px) 18px clamp(36px, 5vw, 56px);
  background: var(--grad-unit);
  overflow: hidden;
}

.hero-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.5rem;
  animation: twinkle 3.2s ease-in-out infinite;
}

.s1 { top: 8%; left: 6%; animation-delay: 0s; }
.s2 { top: 14%; right: 8%; font-size: 1.8rem; animation-delay: 0.8s; }
.s3 { bottom: 12%; left: 10%; animation-delay: 1.4s; }
.s4 { bottom: 10%; right: 12%; animation-delay: 2.1s; }
.s5 { top: 50%; left: 3%; font-size: 1.2rem; animation-delay: 1.1s; }
.s6 { top: 50%; right: 3%; font-size: 1.2rem; animation-delay: 1.7s; }

@keyframes twinkle {
  0%, 100% { transform: scale(0.85) rotate(0deg); opacity: 0.6; }
  50% { transform: scale(1.2) rotate(15deg); opacity: 1; }
}

.hero-board {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  border: 6px solid var(--white);
  box-shadow: 0 18px 42px rgba(30, 37, 56, 0.14);
  padding: clamp(28px, 4.5vw, 48px) clamp(18px, 3.5vw, 40px);
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.34) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.34) 1.5px, transparent 1.5px),
    var(--grad-board);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  overflow: hidden;
}

/* 光沢シマー演出 */
.hero-board::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: rotate(22deg);
  animation: boardShimmer 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes boardShimmer {
  0%, 65% { left: -60%; }
  100% { left: 140%; }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 1.25fr) 1fr;
  align-items: center;
  gap: clamp(16px, 2.5vw, 28px);
}

/* キャラクターユニット（上吹き出し → 中央アイコン → 下名前ピル） */
.hero-char-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-char-unit:hover {
  transform: translateY(-6px);
}

.hero-char-unit:hover .avatar-ring {
  transform: scale(1.05);
}

/* 吹き出し（下向きしっぽでアイコンを指す） */
.speech-bubble {
  position: relative;
  background: var(--white);
  border: 3.5px solid var(--navy);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-weight: 900;
  font-size: clamp(0.82rem, 1.3vw, 0.96rem);
  color: var(--navy);
  box-shadow: 0 6px 14px rgba(30, 37, 56, 0.12);
  white-space: nowrap;
}

.speech-bubble::before {
  content: "";
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 11px 9px 0 9px;
  border-style: solid;
  border-color: var(--navy) transparent transparent transparent;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px 6px 0 6px;
  border-style: solid;
  border-color: var(--white) transparent transparent transparent;
}

.bubble-vivid {
  border-color: var(--vivid-deep);
  color: var(--vivid-deep);
}
.bubble-vivid::before { border-top-color: var(--vivid-deep); }

.bubble-hanmo {
  border-color: var(--hanmo-deep);
  color: var(--hanmo-deep);
}
.bubble-hanmo::before { border-top-color: var(--hanmo-deep); }

/* 円形アイコンリング */
.avatar-ring {
  position: relative;
  width: clamp(144px, 18vw, 196px);
  height: clamp(144px, 18vw, 196px);
  border-radius: 50%;
  background: var(--white);
  padding: 6px;
  box-shadow: 0 12px 26px rgba(30, 37, 56, 0.16);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.ring-vivid {
  border: 4px solid var(--vivid-main);
}

.ring-hanmo {
  border: 4px solid var(--hanmo-main);
}

.mini-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(30, 37, 56, 0.15);
}

.badge-vivid { color: var(--vivid-deep); border-color: var(--vivid-deep); }
.badge-hanmo { color: #F5B82E; border-color: var(--hanmo-deep); }

/* 名前ピル（アイコンの下） */
.name-pill {
  background: var(--white);
  border: 3px solid var(--navy);
  border-radius: var(--radius-pill);
  padding: 6px 22px;
  font-weight: 900;
  font-size: 1rem;
  box-shadow: 0 5px 12px rgba(30, 37, 56, 0.1);
}

.pill-vivid {
  color: var(--vivid-deep);
  border-color: var(--vivid-deep);
}

.pill-hanmo {
  color: var(--hanmo-deep);
  border-color: var(--hanmo-deep);
}

/* 中央ロゴ＆CTA */
.hero-center-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.hero-logo-sticker {
  width: 100%;
  max-width: 360px;
  animation: floatLogo 3.8s ease-in-out infinite;
  filter: drop-shadow(0 12px 22px rgba(30, 37, 56, 0.18));
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: var(--white);
  border: 3.5px solid var(--white);
  border-radius: var(--radius-pill);
  padding: 13px 28px;
  font-weight: 900;
  font-size: clamp(0.92rem, 1.4vw, 1.04rem);
  box-shadow: 0 10px 22px rgba(30, 37, 56, 0.22);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.hero-cta-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 28px rgba(30, 37, 56, 0.28);
}

.arrow-down {
  display: inline-block;
  animation: bounceArrow 1.6s infinite;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* =========================================================
   共通コンテンツセクション＆ステッカーカード
========================================================= */
.content-section {
  padding: clamp(48px, 7vw, 80px) 0;
  scroll-margin-top: 84px;
}

.content-section.mc-first {
  padding-top: clamp(52px, 7.5vw, 88px);
}

.section-tinted {
  background: var(--bg-tinted);
  border-top: 3px dashed #E4DEFA;
  border-bottom: 3px dashed #E4DEFA;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(28px, 4.5vw, 44px);
}

.section-tag {
  display: inline-block;
  background: var(--grad-unit);
  color: var(--white);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
  text-shadow: 0 1px 4px rgba(30, 37, 56, 0.22);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 900;
  color: var(--navy);
}

.sticker-card {
  background: var(--white);
  border: 4px solid var(--navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sticker);
}

/* =========================================================
   ABOUT セクション
========================================================= */
.about-card {
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
  margin-bottom: 36px;
}

.about-visual {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.unit-icon-wrap {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 4px solid var(--navy);
  padding: 4px;
  background: var(--white);
  box-shadow: 0 8px 18px rgba(30, 37, 56, 0.12);
}

.unit-icon-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.about-logo-img {
  width: 170px;
  height: auto;
}

.about-lead {
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  font-weight: 800;
  line-height: 1.85;
  margin-bottom: 12px;
}

.highlight-text {
  background: linear-gradient(transparent 55%, #FFE2EE 55%);
  color: var(--vivid-deep);
  font-weight: 900;
  padding: 0 4px;
}

.highlight-text.hl-hanmo {
  background: linear-gradient(transparent 55%, #D9EFFF 55%);
  color: var(--hanmo-deep);
}

.about-sub {
  color: var(--navy-soft);
  font-weight: 700;
  font-size: 0.96rem;
}

/* メンバー紹介カード（2カラム） */
.member-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.member-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sticker);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.member-card:hover {
  transform: translateY(-5px);
}

.card-hanmo {
  border: 4px solid var(--hanmo-main);
  background: linear-gradient(180deg, var(--hanmo-soft) 0%, var(--white) 48%);
}

.card-vivid {
  border: 4px solid var(--vivid-main);
  background: linear-gradient(180deg, var(--vivid-soft) 0%, var(--white) 48%);
}

.member-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.small-bubble {
  font-size: 0.84rem;
  padding: 6px 15px;
}

.med-ring {
  width: 136px;
  height: 136px;
}

.member-name {
  font-size: 1.38rem;
  font-weight: 900;
}

.name-hanmo { color: var(--hanmo-deep); }
.name-vivid { color: var(--vivid-deep); }

.member-desc {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--navy-soft);
  margin-bottom: 18px;
  flex-grow: 1;
}

.member-sns-mini {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.sns-chip {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
  border: 2px solid var(--navy);
  background: var(--white);
  transition: transform 0.2s ease;
}

.sns-chip:hover {
  transform: translateY(-2px);
}

.chip-yt {
  color: #E62117;
  border-color: #E62117;
}

.chip-x {
  color: var(--navy);
}

.member-detail-btn {
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  font-weight: 900;
  font-size: 0.96rem;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.member-detail-btn:hover {
  transform: scale(1.02);
  filter: brightness(1.05);
}

.btn-hanmo {
  background: linear-gradient(135deg, #4FB6FF, #2B9AE6);
  box-shadow: 0 6px 16px rgba(43, 154, 230, 0.3);
}

.btn-vivid {
  background: linear-gradient(135deg, #FF7EB0, #E8568E);
  box-shadow: 0 6px 16px rgba(232, 86, 142, 0.3);
}

/* =========================================================
   OFFICIAL STORE セクション
========================================================= */
.store-banner {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 40px);
}

.store-bg-deco {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(125deg, rgba(255, 240, 248, 0.92), rgba(238, 248, 255, 0.92)),
    url("../images/bg_crystal.jpg");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.store-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
}

.store-visual {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.store-logo {
  width: 200px;
}

.store-pill-tag {
  background: #FF5A5F;
  color: var(--white);
  font-weight: 900;
  font-size: 0.78rem;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
}

.store-info h3 {
  font-size: clamp(1.16rem, 2.2vw, 1.45rem);
  font-weight: 900;
  margin-bottom: 10px;
}

.store-info p {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-soft);
  margin-bottom: 20px;
}

.store-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #FF6B70, #FC4D50);
  color: var(--white);
  border: 3px solid var(--navy);
  border-radius: var(--radius-pill);
  padding: 13px 28px;
  font-weight: 900;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(252, 77, 80, 0.28);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.store-cta-btn:hover {
  transform: translateY(-3px) scale(1.03);
}

/* =========================================================
   OFFICIAL SNS セクション
========================================================= */
.sns-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sns-group-card {
  background: var(--white);
  border: 4px solid var(--navy);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-sticker);
}

.group-hanmo { border-color: var(--hanmo-main); }
.group-vivid { border-color: var(--vivid-main); }

.sns-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.sns-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2.5px solid var(--navy);
  flex-shrink: 0;
}

.sns-role {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--navy-soft);
}

.role-hanmo { color: var(--hanmo-deep); }
.role-vivid { color: var(--vivid-deep); }

.sns-group-header h3 {
  font-size: 1.12rem;
  font-weight: 900;
}

.sns-links-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.88rem;
  border: 2.5px solid var(--navy);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(30, 37, 56, 0.14);
}

.btn-youtube {
  background: #FFF3F3;
  border-color: #E62117;
  color: #C81911;
}

.btn-x {
  background: #F4F6FA;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-tiktok {
  background: #F6F6F8;
  border-color: #161823;
  color: #161823;
}

.social-icon {
  font-weight: 900;
  margin-right: 8px;
}

.social-label {
  flex-grow: 1;
}

/* =========================================================
   PRESENT & CONTACT セクション
========================================================= */
.contact-card {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(24px, 4.5vw, 42px);
  text-align: center;
}

.contact-lead-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-weight: 900;
  font-size: clamp(0.95rem, 1.8vw, 1.12rem);
  padding: 10px 26px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.address-box {
  background: linear-gradient(135deg, #FFF7FB 0%, #F4FAFF 100%);
  border: 3px dashed #B9B2DF;
  border-radius: var(--radius-md);
  padding: 22px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.address-text {
  white-space: pre-line;
  font-weight: 800;
  font-size: clamp(0.96rem, 1.7vw, 1.08rem);
  line-height: 1.9;
  color: var(--navy);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 2.5px solid var(--navy);
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  font-weight: 900;
  font-size: 0.88rem;
  color: var(--navy);
  box-shadow: 0 4px 10px rgba(30, 37, 56, 0.08);
  transition: all 0.22s ease;
}

.copy-btn:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.contact-link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 3px solid var(--navy);
  text-align: left;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.contact-link-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(30, 37, 56, 0.14);
}

.btn-guideline {
  background: var(--vivid-soft);
  border-color: var(--vivid-deep);
}

.btn-inquiry {
  background: var(--hanmo-soft);
  border-color: var(--hanmo-deep);
}

.c-btn-icon {
  font-size: 1.7rem;
  flex-shrink: 0;
}

.c-btn-body {
  display: flex;
  flex-direction: column;
}

.c-btn-body strong {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--navy);
}

.c-btn-body small {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy-soft);
}

.contact-note {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy-soft);
  background: #F6F4FC;
  padding: 10px 16px;
  border-radius: 12px;
}

/* =========================================================
   個別メンバー紹介ページ（青空はんも / びびっと）
========================================================= */
.profile-hero {
  padding: clamp(28px, 4.5vw, 48px) 18px;
}

.theme-hanmo {
  background: linear-gradient(135deg, #64C2FF 0%, #B3E5FF 100%);
}

.theme-vivid {
  background: linear-gradient(135deg, #FF85B3 0%, #FFC4DC 100%);
}

.theme-minecraft {
  background: linear-gradient(135deg, #7FBF5A 0%, #B9E29A 100%);
}

.profile-board {
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  border: 6px solid var(--white);
  padding: clamp(32px, 5vw, 52px) 20px;
  box-shadow: 0 18px 40px rgba(30, 37, 56, 0.14);
  background-size: 28px 28px, 28px 28px, 100% 100%;
}

.board-hanmo {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.36) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.36) 1.5px, transparent 1.5px),
    linear-gradient(135deg, #74C9FF 0%, #BCE8FF 100%);
}

.board-vivid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.36) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.36) 1.5px, transparent 1.5px),
    linear-gradient(135deg, #FF92BC 0%, #FFD0E3 100%);
}

.profile-char-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.large-ring {
  width: clamp(176px, 24vw, 224px);
  height: clamp(176px, 24vw, 224px);
}

.profile-title-pill {
  background: var(--white);
  border: 4px solid var(--navy);
  border-radius: var(--radius-pill);
  padding: 8px 34px;
  font-size: clamp(1.35rem, 2.8vw, 1.8rem);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(30, 37, 56, 0.12);
}

.profile-detail-card {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(24px, 4.5vw, 42px);
}

/* 立ち絵＋プロフィールの2カラムレイアウト */
.profile-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: clamp(20px, 3.5vw, 36px);
  align-items: start;
}

.profile-art {
  border: 3px solid #E8E4F3;
  border-radius: var(--radius-lg);
  padding: 14px;
  position: sticky;
  top: 92px;
  box-shadow: 0 8px 20px rgba(30, 37, 56, 0.08);
}

.card-border-hanmo .profile-art { border-color: var(--hanmo-light); background: var(--hanmo-soft); }
.card-border-vivid .profile-art { border-color: var(--vivid-light); background: var(--vivid-soft); }

.profile-art img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* 立ち絵下のイラストレータークレジット */
.art-credit {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--navy);
}

.art-credit-link {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
}

@media (max-width: 820px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-art { position: static; width: 100%; max-width: 320px; margin: 0 auto; }
}

.card-border-hanmo { border-color: var(--hanmo-deep); }
.card-border-vivid { border-color: var(--vivid-deep); }

.profile-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.spec-item {
  background: #F9F8FF;
  border: 2px solid #E5E0F7;
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--navy-soft);
}

.spec-val {
  font-size: 1.05rem;
  font-weight: 900;
}

.color-hanmo { color: var(--hanmo-deep); }
.color-vivid { color: var(--vivid-deep); }

.profile-message {
  margin-bottom: 28px;
}

.profile-message h2,
.profile-sns-area h3 {
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.profile-message p {
  font-weight: 700;
  color: var(--navy-soft);
  line-height: 1.9;
}

.profile-sns-area {
  margin-bottom: 32px;
}

.profile-sns-btns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.page-switch-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 22px;
  border-top: 2px dashed #E4DEFA;
}

.switch-btn {
  flex: 1 1 220px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 900;
  font-size: 0.96rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 3px solid var(--navy);
  transition: transform 0.25s ease;
}

.switch-btn:hover {
  transform: translateY(-2px);
}

.btn-to-vivid {
  background: var(--vivid-main);
  color: var(--white);
  border-color: var(--vivid-deep);
}

.btn-to-hanmo {
  background: var(--hanmo-main);
  color: var(--white);
  border-color: var(--hanmo-deep);
}

.btn-to-top {
  background: var(--white);
  color: var(--navy);
}

/* =========================================================
   おすすめショート動画（横流れマーキー）
========================================================= */
.section-sub {
  margin-top: 10px;
  font-weight: 700;
  color: var(--navy-soft);
  font-size: 0.95rem;
}

.shorts-marquee {
  overflow: hidden;
  padding: 8px 0 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.shorts-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: shortsScroll var(--shorts-duration, 26s) linear infinite;
}

.shorts-marquee:hover .shorts-track {
  animation-play-state: paused;
}

@keyframes shortsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.short-card {
  flex: 0 0 auto;
  width: 188px;
  background: var(--white);
  border: 3px solid #E8E4F3;
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 8px 18px rgba(30, 37, 56, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.short-card:hover {
  transform: translateY(-4px);
  border-color: var(--navy);
}

.short-thumb {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #10131c;
}

.short-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.short-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 9px;
  font-weight: 800;
  font-size: 0.84rem;
  line-height: 1.5;
  min-height: 2.6em;
}

.shorts-more {
  text-align: center;
  margin-top: 14px;
}

.shorts-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: 3px solid var(--navy);
  background: var(--white);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(30, 37, 56, 0.12);
  transition: transform 0.25s ease;
}

.shorts-more-btn:hover {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .shorts-track { animation: none; }
  .shorts-marquee { overflow-x: auto; }
}

/* =========================================================
   スクロールトップボタン＆フッター
========================================================= */
.scroll-top-btn {
  position: fixed;
  right: 20px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: 3px solid var(--white);
  font-weight: 900;
  font-size: 1.15rem;
  box-shadow: 0 8px 20px rgba(30, 37, 56, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 900;
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 40px 20px 32px;
  text-align: center;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 52px;
}

.footer-logo-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-logo-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

/* ===== マイクラサーバー ===== */
.tag-mc {
  background: linear-gradient(120deg, #6ab04c, #478a37);
}

.dot-mc {
  background: #5da24a;
}

.mc-teaser-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 26px;
  align-items: center;
  padding: 28px;
}

.mc-teaser-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 3px solid var(--navy);
  background: #eaf4e4;
}

.mc-map-frame.mc-teaser-frame {
  height: 330px;
}

.mc-teaser-text {
  font-weight: 700;
  line-height: 1.8;
  margin-bottom: 18px;
}

.mc-teaser-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mc-detail-btn {
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--white);
  background: linear-gradient(120deg, #6ab04c, #478a37);
  border: 3px solid #33691e;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.mc-detail-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.mc-apply-btn {
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 900;
  font-size: 0.95rem;
  color: #7a828f;
  background: #d4d8de;
  border: 3px solid #aeb4be;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: not-allowed;
}

.mc-apply-btn.large {
  font-size: 1.02rem;
  padding: 14px 30px;
}

a.mc-apply-btn {
  color: #ffffff;
  background: #5865f2;
  border-color: #4752c4;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 0 #3b45a3;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

a.mc-apply-btn:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #3b45a3;
}

.board-minecraft {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.30) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.30) 1.5px, transparent 1.5px),
    linear-gradient(165deg, #a8d68d 0%, #5da24a 60%, #478a37 100%);
}

.pill-minecraft {
  color: #33691e;
  border-color: #33691e;
}

@media (max-width: 768px) {
  .pill-minecraft {
    font-size: 1.12rem;
    padding: 8px 20px;
    white-space: nowrap;
  }
}

.bubble-minecraft {
  border-color: #33691e;
  color: #33691e;
}

.mc-detail-card {
  padding: clamp(24px, 4vw, 44px);
}

.mc-map-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 3px solid var(--navy);
  background: #eaf4e4;
}

.mc-map-figure figcaption {
  text-align: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 10px;
}

.mc-map-figure figcaption a {
  color: var(--hanmo-deep);
  font-weight: 900;
}

.mc-map-frame {
  width: 100%;
  height: min(72vh, 640px);
  display: block;
  border: 3px solid var(--navy);
  border-radius: var(--radius-md);
  background: #eaf4e4;
}

.mc-spec-grid {
  margin-top: 26px;
}

.mc-recruit {
  margin-top: 32px;
}

.mc-recruit h2 {
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.mc-recruit p {
  font-weight: 600;
  line-height: 1.8;
}

.mc-apply {
  margin-top: 30px;
  text-align: center;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 26px 20px;
}

.mc-apply h3 {
  font-weight: 900;
  margin-bottom: 8px;
}

.mc-apply p {
  font-weight: 600;
  margin-bottom: 16px;
}

.mc-apply .mc-apply-note {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 700;
  margin: 12px 0 0;
}

.mc-block {
  margin-top: 32px;
}

.mc-block h3 {
  font-weight: 900;
  font-size: 1.02rem;
  margin-bottom: 12px;
}

.mc-mod-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 22px;
  list-style: none;
}

.mc-mod-list li {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}

.mc-mod-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 5px;
  color: #478a37;
  font-size: 0.65rem;
}

.mc-note {
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.7;
}

.mc-steps {
  padding-left: 22px;
  font-weight: 600;
  line-height: 1.9;
}

.mc-rules {
  list-style: none;
}

.mc-rules li {
  font-weight: 600;
  line-height: 1.7;
  padding-left: 18px;
  position: relative;
  margin-bottom: 4px;
}

.mc-rules li::before {
  content: "・";
  position: absolute;
  left: 2px;
  font-weight: 900;
  color: #478a37;
}

@media (max-width: 768px) {
  .mc-teaser-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .mc-mod-list {
    grid-template-columns: 1fr;
  }
}

.footer-nav,
.footer-sns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-weight: 800;
  font-size: 0.92rem;
}

.footer-nav button,
.footer-nav a,
.footer-sns a {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}

.footer-nav button:hover,
.footer-nav a:hover,
.footer-sns a:hover {
  color: #9AD9FF;
}

.copyright {
  margin-top: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.04em;
}

/* =========================================================
   スクロールリビール
========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  /* 最終保険：JS側の表示処理がどんな理由で動かなくても、数秒後には必ず表示する */
  animation: revealSafety 0.7s ease 1.5s forwards;
}

@keyframes revealSafety {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   レスポンシブ対応（タブレット・スマートフォン）
========================================================= */
@media (max-width: 920px) {
  .sns-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* ヒーローをスマホ・タブレットで見やすく再配置（上：ロゴ＆CTA / 下：びびっと＆青空はんも横並び） */
  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }

  /* 星の装飾：スマホではボードに重ならないよう、上下の余白帯に散らす */
  .sparkle { font-size: 0.95rem; }
  .s1 { top: 5px; left: 10%; }
  .s2 { top: 5px; left: 36%; right: auto; font-size: 0.75rem; }
  .s3 { bottom: 8px; left: 22%; }
  .s4 { bottom: 8px; right: 22%; }
  .s5 { top: 5px; left: 63%; font-size: 0.75rem; }
  .s6 { top: 5px; right: 6%; left: auto; font-size: 0.95rem; }

  .hero-center-unit {
    grid-column: 1 / -1;
    order: -1;
    margin-bottom: 6px;
  }

  .hero-logo-sticker {
    max-width: 280px;
  }

  .speech-bubble {
    font-size: 0.76rem;
    padding: 6px 12px;
  }

  .avatar-ring {
    width: 124px;
    height: 124px;
  }

  .about-card,
  .store-inner {
    flex-direction: column;
    text-align: center;
  }

  .pc-only {
    display: none;
  }

  .member-cards-grid,
  .contact-actions,
  .profile-spec-grid,
  .profile-sns-btns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .hero-board {
    padding: 22px 12px;
    border-width: 4px;
  }

  .speech-bubble {
    font-size: 0.7rem;
    padding: 5px 10px;
  }

  .avatar-ring {
    width: 108px;
    height: 108px;
  }

  .name-pill {
    font-size: 0.88rem;
    padding: 5px 16px;
  }
}

/* =========================================================
   個別ページ分割版：リンク化したナビ要素の見た目調整
========================================================= */
a.nav-pill,
a.drawer-btn,
a.switch-btn,
a.member-detail-btn,
a.mc-detail-btn,
a.header-logo-btn,
a.footer-logo-btn,
a.hero-char-unit {
  text-decoration: none;
}

a.header-logo-btn,
a.footer-logo-btn {
  display: inline-block;
  cursor: pointer;
}

/* 到着側：前ページから遷移してきた直後は、覆った状態から開始する */
.page-wipe.phase-arrive .wipe-back,
.page-wipe.phase-arrive .wipe-front {
  visibility: visible;
  transition: none !important;
  transform: translateX(0%);
}
