/* ===========================
   ReFLiA Official Site CSS
   =========================== */

:root {
    /* カラーパレット */
    --primary: #7eb8d4;        /* ReFLiAブルー */
    --primary-dark: #5a9ab8;
    --primary-light: #b8dced;
    --accent: #f0a0b8;         /* ピンクアクセント */
    --accent-light: #f9d0de;
    --text-dark: #1a1a2e;
    --text-mid: #4a4a6a;
    --text-light: #8888aa;
    --bg-white: #ffffff;
    --bg-light: #f8f9fc;
    --bg-section: #f3f6fb;
    --border: #e4e8f0;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.14);
    --gradient-primary: linear-gradient(135deg, #7eb8d4 0%, #a8d4e8 50%, #f0a0b8 100%);
    --gradient-hero: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
    --idol-pink: #f0a0b8;
    --idol-blue: #7eb8d4;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   リセット & ベース
   =========================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Montserrat', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: transparent;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* メインコンテンツエリアをフッター押し下げ用に伸縮させる */
main {
    flex: 1 0 auto;
}

/* マーブル背景Canvas */
#marbleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===========================
   アニメーション
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.fade-in {
    animation: fadeInUp 0.7s ease forwards;
}

/* ===========================
   コンテナ
   =========================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================
   セクション共通
   =========================== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-line {
    width: 48px;
    height: 2px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: var(--radius-full);
}

.section-button {
    text-align: center;
    margin-top: 48px;
}

/* ===========================
   ボタン
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: var(--radius-full);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(126, 184, 212, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(126, 184, 212, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

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

.btn-outline-white {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ===========================
   ヘッダー / ナビゲーション
   =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.transparent {
    background: transparent;
}

.header.scrolled {
    /* backgroundは意図的に削除：スクロール後のヘッダー背景色なし */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    max-width: 1200px;
    margin: 0 auto;
    transition: var(--transition);
}

.header.scrolled .nav-container {
    padding: 14px 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    height: 24px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.header.scrolled .nav-logo-img {
    filter: brightness(0);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-menu a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding-bottom: 4px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: white;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.header.scrolled .nav-menu a {
    color: var(--text-mid);
}

.header.scrolled .nav-menu a::after {
    background: var(--primary);
}

.nav-sns {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-sns .sns-icon {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    transition: var(--transition);
}

.nav-sns .sns-icon:hover {
    color: white;
    transform: translateY(-2px);
}

.header.scrolled .nav-sns .sns-icon {
    color: var(--text-mid);
}

.header.scrolled .nav-sns .sns-icon:hover {
    color: var(--primary);
}

/* X (Twitter) SVGアイコン調整 */
.sns-icon--x svg,
.mobile-menu-sns .sns-icon--x svg,
.footer-sns .sns-icon--x svg {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    display: inline-block;
}

/* ===========================
   グリッドドット式ハンバーガーボタン（SP用）
   =========================== */
.hamburger-grid {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 9600; /* mobile-menu-overlay(9500)より上で常に操作可能 */
    position: fixed;
    top: 7px;
    right: 16px;
}

.hamburger-grid__dots {
    display: grid;
    grid-template-columns: repeat(3, 6px);
    grid-template-rows: repeat(3, 6px);
    gap: 4px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-grid__dot {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* scrolled状態のドット色：JSで.is-scrolledクラスを仑8管理（headerの外に移動したため） */
.hamburger-grid.is-scrolled .hamburger-grid__dot {
    background: var(--text-dark);
}

/* scrolled状態でis-active（×マーク）のときも暗い色を維持 */
.hamburger-grid.is-scrolled.is-active .hamburger-grid__dot {
    background: #ffffff;
}

/* アクティブ時：ドットが×に変形 */
.hamburger-grid.is-active .hamburger-grid__dot:nth-child(1) { transform: translate(10px, 10px) rotate(45deg) scaleX(2.2); border-radius: 2px; }
.hamburger-grid.is-active .hamburger-grid__dot:nth-child(2) { opacity: 0; transform: scale(0); }
.hamburger-grid.is-active .hamburger-grid__dot:nth-child(3) { transform: translate(-10px, 10px) rotate(-45deg) scaleX(2.2); border-radius: 2px; }
.hamburger-grid.is-active .hamburger-grid__dot:nth-child(4) { opacity: 0; transform: scale(0); }
.hamburger-grid.is-active .hamburger-grid__dot:nth-child(5) { transform: scale(1.4); opacity: 0; }
.hamburger-grid.is-active .hamburger-grid__dot:nth-child(6) { opacity: 0; transform: scale(0); }
.hamburger-grid.is-active .hamburger-grid__dot:nth-child(7) { transform: translate(10px, -10px) rotate(-45deg) scaleX(2.2); border-radius: 2px; }
.hamburger-grid.is-active .hamburger-grid__dot:nth-child(8) { opacity: 0; transform: scale(0); }
.hamburger-grid.is-active .hamburger-grid__dot:nth-child(9) { transform: translate(-10px, -10px) rotate(45deg) scaleX(2.2); border-radius: 2px; }

/* ===========================
   モバイルメニューオーバーレイ
   =========================== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(14, 22, 42, 0.97);
    z-index: 9500; /* fortune-popup(9000)、header(1000)より上 */
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 28px 32px 40px;
}

.mobile-menu-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 0 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 8px;
}

.mobile-menu-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.mobile-menu-logo-img {
    width: clamp(180px, 60vw, 280px);
    height: auto;
    object-fit: contain;
    opacity: 0.95;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
}

.mobile-menu-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: white;
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close span {
    position: absolute;
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-close span:first-child { transform: rotate(45deg); }
.mobile-menu-close span:last-child  { transform: rotate(-45deg); }

.mobile-menu-close:hover span { background: white; }

/* モバイルナビリスト */
.mobile-nav {
    flex: 1;
}

.mobile-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-nav__item.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav__link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
}

.mobile-nav__link:hover {
    color: var(--primary-light);
    padding-left: 8px;
}

.mobile-nav__num {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.05em;
    min-width: 24px;
}

.mobile-nav__text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

/* モバイルメニュー下部SNS */
.mobile-menu-sns {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.mobile-menu-sns a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    transition: var(--transition);
}

.mobile-menu-sns a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.mobile-menu-copy {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.05em;
}

/* 旧 .nav-toggle は非表示 */
.nav-toggle {
    display: none !important;
}

/* ===========================
   KV（キービジュアル）
   =========================== */
.kv {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.kv-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.kv-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kv-fallback {
    position: absolute;
    inset: 0;
}

.kv-fallback-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.kv-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 20, 40, 0.25) 0%,
        rgba(10, 20, 40, 0.15) 40%,
        rgba(10, 20, 40, 0.55) 100%
    );
    z-index: 2;
}

/* ドットオーバーレイ */
.kv-dots-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 3px 3px;
    pointer-events: none;
}

/* 写真モード用 */
.kv-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.kv-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.kv-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    animation: fadeInUp 1.2s ease forwards;
}

.kv-title {
    margin-bottom: 12px;
}

.kv-title-main {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.kv-logo-img {
    width: clamp(280px, 55vw, 600px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.35));
    animation: loader-logo-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
    margin-bottom: 60px;
}

.kv-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    opacity: 0.85;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.kv-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.kv-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.5);
    animation: scrollLine 2s ease-in-out infinite;
}

/* ===========================
   ニュースセクション
   =========================== */
.news {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.news-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-button {
    padding: 7px 22px;
    border: 1.5px solid var(--border);
    background: white;
    color: var(--text-mid);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    transition: var(--transition);
}

.category-button.active,
.category-button:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
    background: rgba(255,255,255,0.5);
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 0;
    transition: opacity 0.18s ease;
}

/* タブ切り替えアニメーション */
.news-list--switching {
    opacity: 0;
    pointer-events: none;
}

.news-list--fadein {
    animation: newsListFadeIn 0.35s ease forwards;
}

@keyframes newsListFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.news-item {
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.news-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.news-item-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 16px;
    cursor: pointer;
    transition: var(--transition);
}

.news-item-inner:hover {
    background: var(--bg-light);
    padding-left: 24px;
}

.news-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    white-space: nowrap;
    min-width: 90px;
}

.news-category {
    display: inline-block;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.news-category.info {
    background: #e8f5e9;
    color: #2e7d32;
}

.news-category.live {
    background: #fce4ec;
    color: #c62828;
}

.news-category.goods {
    background: #fff8e1;
    color: #f57f17;
}

.news-category.media {
    background: #e3f2fd;
    color: #1565c0;
}

.news-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.5;
    flex: 1;
}

/* ===========================
   メンバーセクション
   =========================== */
.members {
    background: rgba(243, 246, 251, 0.50);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.member-card {
    background: rgba(255, 255, 255, 0.78);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.member-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.member-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.member-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--bg-light);
}

.member-image-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    z-index: 3;
    background: var(--gradient-primary);
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.member-card:hover .member-photo {
    transform: scale(1.05);
}

.member-sns-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    padding-bottom: 20px;
    opacity: 0;
    transition: var(--transition);
}

.member-card:hover .member-sns-overlay {
    opacity: 1;
}

.member-sns-overlay a {
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
}

.member-sns-overlay a:hover {
    color: var(--accent-light);
    transform: translateY(-3px);
}

.member-info {
    padding: 18px 20px;
    text-align: center;
}

.member-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.member-name-romaji {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.member-birthday {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.member-birthday i {
    color: var(--accent);
    font-size: 0.75rem;
}

/* ===========================
   メディアセクション
   =========================== */
.media {
    /* 背景なし */
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 0;
}

.media-item--link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.media-item {
    background: rgba(255, 255, 255, 0.78);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.media-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.media-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.media-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.media-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
}

.media-thumb-placeholder.youtube {
    background: linear-gradient(135deg, #7eb8d4 0%, #a8d4e8 100%);
}

.media-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.media-thumb-placeholder i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.media-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    transition: var(--transition);
    padding-left: 3px;
}

.media-item:hover .media-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.media-info {
    padding: 16px 18px;
}

.media-type {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
}

.media-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.4;
}

.media-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ===========================
   グッズセクション
   =========================== */
.goods {
    /* 背景なし */
}

.goods-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.goods-item {
    background: rgba(255, 255, 255, 0.78);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.goods-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.goods-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.goods-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.goods-item:nth-child(1) .goods-image {
    background: linear-gradient(135deg, #7eb8d4 0%, #b8dced 100%);
}

.goods-item:nth-child(2) .goods-image {
    background: linear-gradient(135deg, #f0a0b8 0%, #f9d0de 100%);
}

.goods-item:nth-child(3) .goods-image {
    background: linear-gradient(135deg, #a0c4d8 0%, #c8e8f4 100%);
}

.goods-item:nth-child(4) .goods-image {
    background: linear-gradient(135deg, #e8b4c8 0%, #f4d0e0 100%);
}

.goods-placeholder {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.goods-placeholder i {
    font-size: 1.6rem;
    color: white;
}

.goods-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.goods-info {
    padding: 14px 16px;
}

.goods-category-tag {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-light);
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-bottom: 6px;
}

.goods-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.4;
}

.goods-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
}

/* ===========================
   フッター
   =========================== */
.footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.7);
    margin-top: auto;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 56px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: white;
    margin-bottom: 8px;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 8px;
}

.footer-logo-img {
    /* 1.8rem × 1.2 line-height ≒ 約34px に合わせる */
    height: 28px;
    width: auto;
    object-fit: contain;
}

.footer-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-nav a:hover {
    color: white;
}

.footer-sns {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-left: auto;
}

.footer-sns a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-sns a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ===========================
   スクロールトップボタン
   =========================== */
.scroll-top {
    position: fixed;
    bottom: 78px;
    right: 36px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(126, 184, 212, 0.4);
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    z-index: 9100; /* fortune-popup(9000)より上に配置してクリック可能にする */
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===========================
   レスポンシブ
   =========================== */
@media (max-width: 950px) {
    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.7rem;
    }

    /* ナビゲーション */
    .nav-container {
        padding: 16px 20px;
    }

    /* デスクトップナビはSP非表示 */
    .nav-menu {
        display: none;
    }

    .hamburger-grid {
        display: flex;
        z-index: 9600; /* グローバル設定と統一 */
    }

    .nav-sns {
        display: none;
    }

    /* KV */
    .kv-title-main {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    /* メンバー */
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* メディア */
    .media-grid {
        grid-template-columns: 1fr;
    }

    /* グッズ */
    .goods-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* フッター */
    .footer-top {
        flex-direction: column;
        gap: 32px;
        padding: 40px 0 32px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 16px;
    }

    /* ニュース */
    .news-item-inner {
        flex-wrap: wrap;
        gap: 8px;
    }

    .news-date {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .goods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .kv-buttons {
        flex-direction: column;
        align-items: center;
    }

    .scroll-top {
        bottom: 78px;
        right: 36px;
    }
}

/* ===========================
   ヘッダー初期状態（透明）
   =========================== */
.header {
    background: transparent;
}

/* ===========================
   追加スタイル改善
   =========================== */

/* ニュースアイテムの矢印（常時表示） */
.news-item-inner::after {
    content: '→';
    font-size: 0.85rem;
    color: var(--primary);
    opacity: 1;
    transform: translateX(0);
    transition: var(--transition);
    margin-left: auto;
    flex-shrink: 0;
}

.news-item-inner:hover::after {
    opacity: 1;
    transform: translateX(4px);
}

/* メンバーカードのカラーアクセント */
.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    opacity: 1;
    transition: var(--transition);
    z-index: 1;
    border-radius: 12px 12px 0 0;
}

.member-card {
    position: relative;
}

.member-card:hover::before {
    opacity: 1;
    height: 6px;
}

/* KVのグラデーションオーバーレイ改善 */
.kv-overlay {
    background: linear-gradient(
        180deg,
        rgba(10, 20, 40, 0.2) 0%,
        rgba(10, 20, 40, 0.1) 30%,
        rgba(10, 20, 40, 0.5) 100%
    );
}

/* セクション見出しのアクセント */
.section-title {
    position: relative;
    display: inline-block;
}

/* メディアサムネイルのグラデーション差別化 */
.media-item:nth-child(1) .media-thumb-placeholder {
    background: linear-gradient(135deg, #7eb8d4 0%, #a8d4e8 100%);
}

.media-item:nth-child(2) .media-thumb-placeholder {
    background: linear-gradient(135deg, #f0a0b8 0%, #f9d0de 100%);
}

.media-item:nth-child(3) .media-thumb-placeholder {
    background: linear-gradient(135deg, #a0c4d8 0%, #e8b4c8 100%);
}

/* フッターのグラデーション区切り線 */
.footer-top {
    position: relative;
}

.footer-top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

/* ページ全体のローディング */
body {
    animation: fadeIn 0.5s ease;
}

/* ===========================
   SCHEDULE（カレンダー）セクション
   =========================== */
.schedule {
    padding: 80px 0;
}

.calendar-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.calendar-wrap iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.70);
    display: block;
}

/* カレンダー未設定時のプレースホルダー */
.calendar-placeholder {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 2px dashed rgba(100, 180, 220, 0.40);
    border-radius: var(--radius-md);
    padding: 60px 40px;
    text-align: center;
}

.calendar-placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.calendar-placeholder i {
    font-size: 3rem;
    color: rgba(100, 180, 220, 0.55);
}

.calendar-placeholder p {
    color: var(--text-mid);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.7;
}

.calendar-hint {
    font-size: 0.82rem !important;
    color: var(--text-light) !important;
    background: rgba(100, 180, 220, 0.08);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(100, 180, 220, 0.20);
}

.calendar-hint code {
    font-family: 'Courier New', monospace;
    font-size: 0.80rem;
    background: rgba(100, 180, 220, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    color: #3a7a9a;
}

/* ナビゲーションにSCHEDULEを追加した場合のスタイル */
.nav-menu li a[href="#schedule"],
.nav-menu li a[href*="schedule"] {
    /* 既存スタイルを継承 */
}

/* ===========================
   ローディングアニメーション
   =========================== */
body.is-loading {
    overflow: hidden;
}

#page-loader {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ---- ローダー背景バブル ---- */
.loader-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.loader-bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: bubble-float 4s ease-in-out infinite;
}

.lb1 { width: 60px; height: 60px; background: rgba(100, 200, 240, 0.25); left: 8%;  top: 70%; animation-delay: 0s;    animation-duration: 5s; }
.lb2 { width: 40px; height: 40px; background: rgba(244, 160, 160, 0.22); left: 18%; top: 80%; animation-delay: 0.6s;  animation-duration: 4.5s; }
.lb3 { width: 80px; height: 80px; background: rgba(160, 220, 180, 0.20); left: 75%; top: 75%; animation-delay: 1.2s;  animation-duration: 6s; }
.lb4 { width: 30px; height: 30px; background: rgba(255, 200, 100, 0.28); left: 85%; top: 60%; animation-delay: 0.3s;  animation-duration: 4s; }
.lb5 { width: 50px; height: 50px; background: rgba(180, 140, 220, 0.22); left: 60%; top: 82%; animation-delay: 1.8s;  animation-duration: 5.5s; }
.lb6 { width: 25px; height: 25px; background: rgba(100, 200, 240, 0.30); left: 40%; top: 78%; animation-delay: 0.9s;  animation-duration: 3.8s; }
.lb7 { width: 45px; height: 45px; background: rgba(255, 160, 200, 0.20); left: 5%;  top: 40%; animation-delay: 2.1s;  animation-duration: 5s; }
.lb8 { width: 35px; height: 35px; background: rgba(140, 220, 200, 0.25); left: 90%; top: 30%; animation-delay: 1.5s;  animation-duration: 4.2s; }

@keyframes bubble-float {
    0%   { opacity: 0;    transform: translateY(0)    scale(0.6); }
    20%  { opacity: 1; }
    80%  { opacity: 0.7; }
    100% { opacity: 0;    transform: translateY(-180px) scale(1.1); }
}

/* ---- ローダー中央コンテンツ ---- */
.loader-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* ---- ロゴ上のドット装飾 ---- */
.loader-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
    animation: loader-fade-in 0.5s 0.1s ease both;
}

.loader-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: dot-bounce 1.2s ease-in-out infinite;
}

.ld1 { background: #f4a0a0; animation-delay: 0s; }
.ld2 { background: #c8c8c8; animation-delay: 0.1s; }
.ld3 { background: #a0c8f0; animation-delay: 0.2s; }
.ld4 { background: #f0c060; animation-delay: 0.3s; }
.ld5 { background: #a0d8b0; animation-delay: 0.4s; }
.ld6 { background: #c8a0e0; animation-delay: 0.5s; }

@keyframes dot-bounce {
    0%, 100% { transform: translateY(0);    opacity: 0.6; }
    50%       { transform: translateY(-8px); opacity: 1; }
}

.loader-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3rem, 9vw, 5.5rem);
    font-weight: 700;
    letter-spacing: 0.22em;
    background: linear-gradient(135deg, #3a7aaa 0%, #64c8f0 50%, #a0dcff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: loader-logo-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
    filter: drop-shadow(0 2px 8px rgba(100, 200, 240, 0.35));
}

@keyframes loader-logo-in {
    from { opacity: 0; transform: translateY(24px) scale(0.92); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.loader-logo-line {
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #f4a0a0, #64c8f0, #c8a0e0, #a0d8b0);
    border-radius: 3px;
    animation: loader-line-expand 1s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes loader-line-expand {
    from { width: 0; opacity: 0; }
    to   { width: 140px; opacity: 1; }
}

.loader-progress {
    width: 220px;
    height: 5px;
    background: rgba(100, 200, 240, 0.15);
    border-radius: 10px;
    overflow: hidden;
    animation: loader-fade-in 0.5s 0.5s ease both;
    box-shadow: 0 0 8px rgba(100, 200, 240, 0.15);
}

@keyframes loader-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.loader-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #f4a0a0, #64c8f0, #c8a0e0);
    border-radius: 10px;
    transition: width 0.15s ease;
    box-shadow: 0 0 6px rgba(100, 200, 240, 0.5);
}

.loader-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.35em;
    color: #8ab0c8;
    animation: loader-fade-in 0.5s 0.7s ease both;
}

.loader-ellipsis span {
    display: inline-block;
    animation: ellipsis-blink 1.2s ease-in-out infinite;
}
.loader-ellipsis span:nth-child(1) { animation-delay: 0s; }
.loader-ellipsis span:nth-child(2) { animation-delay: 0.2s; }
.loader-ellipsis span:nth-child(3) { animation-delay: 0.4s; }

@keyframes ellipsis-blink {
    0%, 100% { opacity: 0.2; }
    50%       { opacity: 1; }
}

/* ===========================
   今日のReFLiA 占いポップアップ
   =========================== */
.fortune-popup {
    position: fixed;
    bottom: 134px;
    right: 24px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none; /* コンテナ自体はクリックを通過させる */
}

/* トリガーボタン */
.fortune-popup__trigger {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #64c8f0, #a0dcff);
    box-shadow: 0 4px 20px rgba(100, 200, 240, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    user-select: none;
    gap: 2px;
    pointer-events: auto; /* トリガーはクリック可能 */
}

.fortune-popup__trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(100, 200, 240, 0.65);
}

.fortune-popup__trigger.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

.fortune-popup__trigger-icon {
    font-size: 1.2rem;
    color: #fff;
    line-height: 1;
    animation: fortune-star-spin 4s linear infinite;
}

@keyframes fortune-star-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.fortune-popup__trigger-text {
    font-size: 0.55rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
    text-align: center;
    line-height: 1.3;
}

/* カード本体 */
.fortune-popup__card {
    width: 300px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1.5px solid rgba(100, 200, 240, 0.3);
    box-shadow: 0 8px 40px rgba(100, 200, 240, 0.25), 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transform: translateY(20px) scale(0.92);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
    transform-origin: bottom right;
}

.fortune-popup__card.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* カードヘッダー */
.fortune-popup__header {
    background: linear-gradient(135deg, var(--member-color-start, #a8d8ea), var(--member-color-end, #ffffff));
    padding: 12px 16px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    position: relative;
    border-radius: 16px 16px 0 0;
}

.fortune-popup__label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #2a5a7a;
}

.fortune-popup__date {
    font-size: 0.7rem;
    color: #5a8aaa;
    letter-spacing: 0.05em;
    flex: 1; /* 日付を中央左寄りに */
    text-align: right;
    padding-right: 4px;
}

/* 閉じるボタン */
.fortune-popup__close {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(100,200,240,0.3);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s, box-shadow 0.2s;
}
.fortune-popup__close:hover {
    background: rgba(255,255,255,1);
    box-shadow: 0 2px 12px rgba(100,200,240,0.3);
}

.fortune-popup__close span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: #5a8aaa;
    border-radius: 2px;
    transition: transform 0.2s;
}

.fortune-popup__close span:first-child {
    transform: translateY(3.25px) rotate(45deg);
}

.fortune-popup__close span:last-child {
    transform: translateY(-3.25px) rotate(-45deg);
}

/* カードボディ */
.fortune-popup__body {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
}

.fortune-popup__img-wrap {
    flex-shrink: 0;
    width: 80px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--member-color, #a8d8ea), #e8f4f8);
}

.fortune-popup__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.fortune-popup__img-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #5a8aaa;
    font-weight: 700;
}

.fortune-popup__info {
    flex: 1;
    min-width: 0;
}

.fortune-popup__member-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2a5a7a;
    margin: 0 0 2px;
}

.fortune-popup__member-romaji {
    font-size: 0.65rem;
    color: #8ab0c8;
    letter-spacing: 0.08em;
    margin: 0 0 8px;
    font-family: 'Montserrat', sans-serif;
}

.fortune-popup__energy {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.fortune-popup__energy-label,
.fortune-popup__lucky-label {
    font-size: 0.62rem;
    color: #8ab0c8;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.fortune-popup__stars {
    font-size: 0.75rem;
    color: #f0b429;
    letter-spacing: 0.05em;
}

.fortune-popup__lucky {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.fortune-popup__lucky-value {
    font-size: 0.78rem;
    font-weight: 600;
    color: #2a5a7a;
    background: linear-gradient(135deg, var(--member-color, #a8d8ea), rgba(255,255,255,0.5));
    padding: 2px 10px;
    border-radius: 20px;
}

.fortune-popup__advice {
    font-size: 0.72rem;
    color: #4a7a9a;
    line-height: 1.6;
    margin: 0;
}

/* カードフッター */
.fortune-popup__footer {
    padding: 10px 16px 14px;
    border-top: 1px solid rgba(100, 200, 240, 0.15);
    text-align: right;
}

.fortune-popup__link {
    font-size: 0.72rem;
    color: #64c8f0;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.fortune-popup__link:hover {
    color: #2a5a7a;
}

/* SP対応 */
@media (max-width: 480px) {
    .fortune-popup {
        bottom: 134px;
        right: 16px;
    }
    .fortune-popup__card {
        width: 270px;
    }
    .fortune-popup__trigger {
        width: 58px;
        height: 58px;
    }
    .scroll-top {
        bottom: 78px;
        right: 23px;
    }
}

/* ===========================
   TOPページ ギャラリープレビュー
   =========================== */
.gallery-preview {
    padding: 80px 0;
    position: relative;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.gallery-preview__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}

@media (max-width: 640px) {
    .gallery-preview__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

.gallery-preview__item {
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: rgba(200, 230, 245, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-preview__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(100, 200, 240, 0.3);
}

.gallery-preview__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-preview__item:hover img {
    transform: scale(1.06);
}

.gallery-preview__placeholder {
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    background: rgba(200, 230, 245, 0.25);
    border: 1.5px dashed rgba(100, 200, 240, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(100, 200, 240, 0.4);
    font-size: 1.8rem;
}

/* ===========================
   メンバーカード リンク対応
   =========================== */
.member-card--link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.member-card--link:hover .member-image-wrap img {
    transform: scale(1.05);
}

.member-overlay-hint {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: white;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* =============================================
   メンバー別カラー（::before グラデーション）
   ============================================= */
.member-color-nakamura.member-card::before,
.member-color-nakamura.member-card-detail::before,
.member-color-nakamura .member-image-wrap::before {
  background: linear-gradient(135deg, #f0f0f2 0%, #d8dce4 40%, #eaeef4 100%);
}
.member-color-takaoka.member-card::before,
.member-color-takaoka.member-card-detail::before,
.member-color-takaoka .member-image-wrap::before {
  background: linear-gradient(135deg, #f4a0a0 0%, #ffd0d0 100%);
}
.member-color-miyoshi.member-card::before,
.member-color-miyoshi.member-card-detail::before,
.member-color-miyoshi .member-image-wrap::before {
  background: linear-gradient(135deg, #a8d8a8 0%, #d0f0d0 100%);
}
.member-color-minami.member-card::before,
.member-color-minami.member-card-detail::before,
.member-color-minami .member-image-wrap::before {
  background: linear-gradient(135deg, #a0d4f4 0%, #c8eaff 100%);
}
.member-color-yuki.member-card::before,
.member-color-yuki.member-card-detail::before,
.member-color-yuki .member-image-wrap::before {
  background: linear-gradient(135deg, #f4e8a0 0%, #fff5c0 100%);
}
.member-color-otani.member-card::before,
.member-color-otani.member-card-detail::before,
.member-color-otani .member-image-wrap::before {
  background: linear-gradient(135deg, #c8a8e8 0%, #e8d0ff 100%);
}

/* ===========================
   バナーカルーセル（KV〜NEWSの間）
   =========================== */
.banner-carousel {
    padding: 28px 0 20px;
    background: transparent;
    overflow: hidden;
    position: relative;
}

.banner-carousel__track-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    position: relative;
    max-width: 860px; /* PCて4枚表示のため幅を拡大 */
    margin: 0 auto;
    padding: 0 8px;
}

.banner-carousel__track {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    position: relative;
    width: 100%;
    height: 120px;
    overflow: visible;
}

/* バナーアイテム共通 */
.banner-item {
    position: absolute;
    display: block;
    width: 200px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    transition:
        transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.5s ease,
        filter 0.5s ease,
        z-index 0s;
    cursor: pointer;
    user-select: none;
}

/* アクティブ（中央・大きく・フルカラー） */
.banner-item.is-active {
    transform: translateX(0) scale(1);
    opacity: 1;
    filter: none;
    z-index: 10;
}

/* 隣（左右1つ隣・やや小さく・彩度低め） */
.banner-item.is-prev {
    transform: translateX(-220px) scale(0.82);
    opacity: 0.72;
    filter: saturate(0.45) brightness(0.9);
    z-index: 5;
    pointer-events: none;
}

.banner-item.is-next {
    transform: translateX(220px) scale(0.82);
    opacity: 0.72;
    filter: saturate(0.45) brightness(0.9);
    z-index: 5;
    pointer-events: none;
}

/* 遠い（2つ以上離れた）スマホは非表示、PCはJSで左右に振り分けて表示 */
.banner-item.is-far {
    transform: translateX(0) scale(0.65);
    opacity: 0;
    filter: saturate(0.2) brightness(0.8);
    z-index: 1;
    pointer-events: none;
}

/* PCのみ is-far を表示 */
@media (min-width: 641px) {
    .banner-item.is-far {
        opacity: 0.45;
    }
}

/* バナー画像 */
.banner-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

/* 画像なし時のプレースホルダー */
.banner-item__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1.5px dashed rgba(126, 184, 212, 0.5);
}

.banner-item__placeholder span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--primary-dark);
    text-transform: uppercase;
    opacity: 0.7;
}

/* 左右矢印ボタン */
.banner-carousel__arrow {
    position: relative;
    z-index: 20;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(126, 184, 212, 0.5);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--primary-dark);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.banner-carousel__arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(126, 184, 212, 0.4);
}

.banner-carousel__arrow--prev {
    margin-right: 16px;
}

.banner-carousel__arrow--next {
    margin-left: 16px;
}

/* ドットインジケーター */
.banner-carousel__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
}

.banner-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(126, 184, 212, 0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    outline: none;
}

.banner-dot.is-active {
    background: var(--primary);
    transform: scale(1.4);
}

/* レスポンシブ */
@media (max-width: 640px) {
    .banner-carousel__track {
        height: 90px;
    }

    .banner-item {
        width: 160px;
        height: 80px;
    }

    .banner-item.is-prev {
        transform: translateX(-175px) scale(0.80);
    }

    .banner-item.is-next {
        transform: translateX(175px) scale(0.80);
    }

    /* スマホは is-far を非表示（上の PC用設定を上書き） */
    .banner-item.is-far {
        opacity: 0 !important;
    }
}
