/**
 * 上杉周大公式サイト - カスタムスタイル
 * コンセプト: ソウル × ひょうきん
 */

/* ========================================
   Z-Index Scale
   ========================================
   --z-base:        0    背景レイヤー (ambient-blobs)
   --z-content:     1    コンテンツ内の相対順序
   --z-content-2:   2    コンテンツ内のオーバーレイ
   --z-content-3:   3    コンテンツ内の上位
   --z-content-4:   4    コンテンツ内の最上位
   --z-elevated:    5    ライトボックス コンテンツ
   --z-nav:         10   ナビゲーション (lightbox nav, close)
   --z-carousel:    20   カルーセル ナビ
   --z-header:      50   サイトヘッダー (Tailwind z-50)
   --z-overlay:     200  オーバーレイ (goroku)
   --z-modal:       300  モーダル/ライトボックス
   --z-top:         400  最前面 (konami)
   ======================================== */

:root {
    /* カラートークン */
    --color-accent: #B71F22;
    --color-accent-hover: #D42B2E;
    /* 暗背景向けリンク色（accent は本文リンクで視認性不足のため別トークン） */
    --color-link: #E86669;
    --color-link-hover: #FF9497;
    --color-link-visited: #D98A8C;
    --color-primary: #0A0A0A;
    --color-surface: #222222;
    --color-border: #333333;
    --color-text: #F5F5F5;
    --color-text-sub: #999999;
    --color-gold: #C8A84E;

    /* Z-Index Scale */
    --z-base: 0;
    --z-content: 1;
    --z-content-2: 2;
    --z-content-3: 3;
    --z-content-4: 4;
    --z-elevated: 5;
    --z-nav: 10;
    --z-carousel: 20;
    --z-header: 50;
    --z-overlay: 200;
    --z-modal: 300;
    --z-top: 400;

    /* Vinyl Record */
    --vinyl-hole-size: 14%;
    --vinyl-spin-duration: 3s;
}

/* ========================================
   GSAP Animation — FOUC 防止
   ======================================== */

@media (prefers-reduced-motion: no-preference) {
    .gs-reveal,
    .gs-reveal-left,
    .gs-reveal-right,
    .gs-stagger-item,
    .gs-batch-item,
    .gs-reveal-scale {
        visibility: hidden;
    }
}

/* ========================================
   Base
   ======================================== */

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Focus Indicator — キーボードナビゲーション時のみ表示 */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--color-primary);
    background-image:
        linear-gradient(180deg, var(--color-primary) 0%, #1a0a0a 15%, #0d0d0d 30%, #12080a 50%, var(--color-primary) 65%, #0e0a0c 80%, var(--color-primary) 100%);
    background-attachment: fixed;
    color: var(--color-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Main Content — blob の上にコンテンツを配置
   ======================================== */

#main-content {
    position: relative;
    z-index: var(--z-content);
}

/* ========================================
   Ambient Light Blobs (Animated Bokeh)
   ======================================== */

.ambient-blobs {
    position: fixed;
    inset: 0;
    z-index: var(--z-base);
    pointer-events: none;
    overflow: hidden;
}

.ambient-blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 50% 40% 60% 50%;
    filter: blur(80px);
    opacity: 0.6;
    will-change: auto;
}

@media (prefers-reduced-motion: no-preference) {
    .ambient-blob {
        will-change: transform, border-radius;
    }
}

.ambient-blob--1 {
    width: 70vw;
    height: 60vh;
    top: -10%;
    left: -20%;
    background: radial-gradient(ellipse at center, rgba(220, 40, 30, 0.9) 0%, rgba(255, 100, 20, 0.3) 40%, transparent 65%);
    animation: blob1-move 30s ease-in-out infinite, blob1-morph 20s ease-in-out infinite;
}

.ambient-blob--2 {
    width: 60vw;
    height: 70vh;
    top: 30%;
    right: -25%;
    background: radial-gradient(ellipse at center, rgba(255, 80, 0, 0.8) 0%, rgba(255, 40, 40, 0.3) 40%, transparent 65%);
    animation: blob2-move 35s ease-in-out infinite, blob2-morph 24s ease-in-out infinite;
}

.ambient-blob--3 {
    width: 65vw;
    height: 55vh;
    bottom: -5%;
    left: 10%;
    background: radial-gradient(ellipse at center, rgba(100, 20, 180, 0.85) 0%, rgba(60, 30, 160, 0.3) 40%, transparent 65%);
    animation: blob3-move 32s ease-in-out infinite, blob3-morph 22s ease-in-out infinite;
}

/* Blob 1: 大きくうねりながら右下へ流れて戻る */
@keyframes blob1-move {
    0%       { transform: translate(0, 0) scale(1) rotate(0deg); }
    20%      { transform: translate(20vw, 10vh) scale(1.2) rotate(5deg); }
    40%      { transform: translate(10vw, 25vh) scale(0.85) rotate(-3deg); }
    60%      { transform: translate(25vw, 5vh) scale(1.1) rotate(8deg); }
    80%      { transform: translate(-5vw, 15vh) scale(0.95) rotate(-5deg); }
    100%     { transform: translate(0, 0) scale(1) rotate(0deg); }
}

@keyframes blob1-morph {
    0%       { border-radius: 40% 60% 70% 30% / 50% 40% 60% 50%; }
    20%      { border-radius: 70% 30% 50% 50% / 30% 70% 40% 60%; }
    40%      { border-radius: 30% 70% 40% 60% / 60% 30% 70% 40%; }
    60%      { border-radius: 60% 40% 60% 40% / 40% 60% 30% 70%; }
    80%      { border-radius: 50% 50% 30% 70% / 70% 40% 60% 30%; }
    100%     { border-radius: 40% 60% 70% 30% / 50% 40% 60% 50%; }
}

/* Blob 2: 左方向へ大きく流れるうねり */
@keyframes blob2-move {
    0%       { transform: translate(0, 0) scale(1) rotate(0deg); }
    20%      { transform: translate(-15vw, -10vh) scale(1.15) rotate(-6deg); }
    40%      { transform: translate(-25vw, 8vh) scale(0.9) rotate(4deg); }
    60%      { transform: translate(-10vw, -15vh) scale(1.2) rotate(-8deg); }
    80%      { transform: translate(-20vw, 5vh) scale(0.95) rotate(3deg); }
    100%     { transform: translate(0, 0) scale(1) rotate(0deg); }
}

@keyframes blob2-morph {
    0%       { border-radius: 50% 50% 40% 60% / 60% 40% 50% 50%; }
    20%      { border-radius: 30% 70% 60% 40% / 40% 60% 50% 50%; }
    40%      { border-radius: 60% 40% 30% 70% / 50% 30% 70% 50%; }
    60%      { border-radius: 40% 60% 50% 50% / 70% 40% 30% 60%; }
    80%      { border-radius: 70% 30% 40% 60% / 30% 70% 60% 40%; }
    100%     { border-radius: 50% 50% 40% 60% / 60% 40% 50% 50%; }
}

/* Blob 3: 右上方向へうねりながら浮遊 */
@keyframes blob3-move {
    0%       { transform: translate(0, 0) scale(1) rotate(0deg); }
    20%      { transform: translate(15vw, -12vh) scale(1.1) rotate(7deg); }
    40%      { transform: translate(25vw, -5vh) scale(0.9) rotate(-4deg); }
    60%      { transform: translate(8vw, -20vh) scale(1.15) rotate(6deg); }
    80%      { transform: translate(20vw, -8vh) scale(0.85) rotate(-7deg); }
    100%     { transform: translate(0, 0) scale(1) rotate(0deg); }
}

@keyframes blob3-morph {
    0%       { border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%; }
    20%      { border-radius: 40% 60% 30% 70% / 60% 30% 70% 40%; }
    40%      { border-radius: 70% 30% 60% 40% / 30% 60% 40% 70%; }
    60%      { border-radius: 30% 70% 50% 50% / 50% 40% 60% 50%; }
    80%      { border-radius: 50% 50% 40% 60% / 70% 50% 30% 50%; }
    100%     { border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%; }
}

/* モバイルではブロブサイズを調整・blob1とblob3を表示、blob2は非表示 */
@media (max-width: 768px) {
    .ambient-blob--1 { width: 90vw; height: 50vh; }
    .ambient-blob--2 { display: none; }
    .ambient-blob--3 { width: 80vw; height: 45vh; }
}

/* prefers-reduced-motion: アニメーション無効化 */
@media (prefers-reduced-motion: reduce) {
    .ambient-blob {
        animation: none !important;
    }
}

/* ========================================
   Typography — ソウル
   ======================================== */

.section-title {
    font-size: clamp(2.25rem, 10vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}

.disc-br {
    display: block;
}

@media (min-width: 1024px) {
    .disc-br {
        display: none;
    }
}

.hero-subpage-img {
    margin-top: -100px;
    height: calc(100% + 100px);
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    line-height: 0.95;
    letter-spacing: 0.06em;
}

/* Hero Main Text — ソウル × ファンキー */
.hero-main-text {
    visibility: hidden;
    color: #fff;
    text-shadow:
        0 0 20px rgba(183, 31, 34, 0.6),
        0 0 60px rgba(183, 31, 34, 0.3),
        2px 2px 0 rgba(0, 0, 0, 0.8);
    transform: skewX(-2deg);
}

.hero-main-text .hero-char {
    display: inline-block;
    will-change: transform, opacity;
}

/* Hero Sub Text — アンダーライン演出 */
.hero-sub-text {
    background-image: linear-gradient(var(--color-accent), var(--color-accent));
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 0% 2px;
    padding-bottom: 4px;
}

/* ========================================
   Marquee Sign（劇場マーキー看板）— LIVE/EVENT
   ======================================== */

.marquee-sign {
    max-width: 720px;
    margin: 0 auto;
    border: 2px solid rgba(200, 168, 78, 0.5);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow:
        0 0 40px rgba(200, 168, 78, 0.15),
        0 0 80px rgba(200, 168, 78, 0.05),
        inset 0 0 60px rgba(200, 168, 78, 0.03),
        0 20px 60px rgba(0, 0, 0, 0.4);
}

/* --- ネオンヘッダー --- */
.marquee-header {
    padding: 40px 24px 24px;
    text-align: center;
}

.marquee-neon-text {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.5rem, 12vw, 6rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    color: #fff;
    text-shadow:
        0 0 7px rgba(255, 255, 255, 1),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 40px rgba(200, 168, 78, 0.5),
        0 0 80px rgba(200, 168, 78, 0.2);
    line-height: 1;
}

/* --- ライトボックス（イベント情報） --- */
.marquee-lightbox {
    padding: 0 20px;
}

.marquee-event-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 8px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

a.marquee-event-row:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.marquee-event-row:last-child {
    border-bottom: none;
}

.marquee-event-date {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    min-width: 48px;
}

.marquee-event-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
}

.marquee-event-venue {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: none;
}

/* --- フッターナビリンク（モバイル） --- */
@media (max-width: 767px) {
    footer nav h4 {
        font-size: 1.0625rem;
    }

    footer nav ul {
        font-size: 0.9375rem;
    }
}

/* --- フッター --- */
.marquee-footer {
    text-align: center;
    padding: 16px 24px 20px;
}

.marquee-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 0.15em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.marquee-view-all:hover {
    color: #fff;
}

/* ========================================
   Accent Line (セクション間装飾)
   ======================================== */

.accent-line {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.4;
    margin-bottom: 3rem;
}

/* ========================================
   Character Reveal Animation
   ======================================== */

.char-reveal {
    visibility: hidden;
}

.char-reveal span {
    display: inline-block;
}

/* ========================================
   Glitch Effect (Hero)
   ======================================== */

/* position: relative は擬似要素の基準に必要だが、
   hero-bg では absolute のまま維持する */

.glitch::before,
.glitch::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    pointer-events: none;
}

.glitch::before {
    animation: glitch-r 0.3s steps(2) forwards;
    mix-blend-mode: screen;
    opacity: 0.6;
}

.glitch::after {
    animation: glitch-b 0.3s steps(3) forwards;
    mix-blend-mode: screen;
    opacity: 0.6;
}

@keyframes glitch-r {
    0% {
        clip-path: inset(20% 0 60% 0);
        transform: translate(8px, -3px);
        filter: hue-rotate(-30deg) saturate(2);
    }
    50% {
        clip-path: inset(50% 0 10% 0);
        transform: translate(-5px, 2px);
        filter: hue-rotate(-30deg) saturate(2);
    }
    100% {
        clip-path: inset(0 0 80% 0);
        transform: translate(3px, -1px);
        filter: hue-rotate(-30deg) saturate(2);
    }
}

@keyframes glitch-b {
    0% {
        clip-path: inset(60% 0 5% 0);
        transform: translate(-6px, 2px);
        filter: hue-rotate(360deg) saturate(2);
    }
    33% {
        clip-path: inset(10% 0 70% 0);
        transform: translate(4px, -1px);
        filter: hue-rotate(360deg) saturate(2);
    }
    66% {
        clip-path: inset(40% 0 20% 0);
        transform: translate(-3px, 3px);
        filter: hue-rotate(360deg) saturate(2);
    }
    100% {
        clip-path: inset(70% 0 5% 0);
        transform: translate(6px, -2px);
        filter: hue-rotate(360deg) saturate(2);
    }
}

/* 全画面グリッチ（コナミコマンド用） */
.full-glitch {
    animation: full-glitch-anim 0.6s steps(4) forwards;
}

@keyframes full-glitch-anim {
    0%, 100% { filter: none; transform: none; }
    10% { filter: hue-rotate(90deg); transform: translate(3px, -2px); }
    20% { filter: hue-rotate(-90deg) saturate(3); transform: translate(-3px, 1px); }
    30% { filter: hue-rotate(45deg); transform: translate(2px, 3px) skewX(2deg); }
    40% { filter: hue-rotate(360deg) saturate(2); transform: translate(-1px, -3px) skewX(-1deg); }
    50% { filter: hue-rotate(-45deg); transform: translate(4px, 1px); }
    60% { filter: hue-rotate(120deg) saturate(4); transform: translate(-2px, -1px) skewX(1deg); }
    70% { filter: invert(1); transform: translate(1px, 2px); }
    80% { filter: hue-rotate(-120deg); transform: translate(-3px, -2px) skewX(-2deg); }
    90% { filter: hue-rotate(60deg) saturate(3); transform: translate(2px, -1px); }
}

/* ========================================
   Bottom Navigation (Mobile)
   ======================================== */

#bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0;
    right: 0;
    z-index: var(--z-modal) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ========================================
   Header
   ======================================== */

#site-header {
    background-color: var(--color-primary);
    border-bottom: 1px solid transparent;
    transition: transform 0.3s ease, border-bottom-color 0.3s ease;
}

#site-header.header-hidden {
    transform: translateY(-100%);
}

#site-header.header-scrolled {
    border-bottom-color: var(--color-border);
}

/* WP管理バー対応 */
.admin-bar #site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar #site-header {
        top: 46px;
    }
}

/* ========================================
   Card Hover
   ======================================== */

.card-noise {
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.card-noise:hover {
    border-color: rgba(183, 31, 34, 0.5);
}

/* ========================================
   Hero
   ======================================== */

.hero-slide {
    transition: opacity 0.6s ease;
}

#hero-section {
    aspect-ratio: 1 / 1;
}

@media (min-width: 768px) {
    #hero-section {
        aspect-ratio: unset;
        height: 100vh;
    }
}

#hero-gradient-bottom,
.hero-gradient-bottom {
    background: linear-gradient(to top, rgba(10, 10, 10, 0.6) 0%, rgba(10, 10, 10, 0.15) 40%, transparent 70%);
}

#hero-gradient-top,
.hero-gradient-top {
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.6) 0%, rgba(10, 10, 10, 0.15) 40%, transparent 70%);
}

/* ========================================
   上杉語録ポップアップ — ひょうきん
   ======================================== */

.goroku-popup {
    position: fixed;
    z-index: var(--z-overlay);
    pointer-events: none;
    font-family: 'Bebas Neue', 'Noto Sans JP', sans-serif;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.goroku-popup.from-right {
    align-items: flex-end;
}

.goroku-popup .goroku-inner {
    background: var(--color-accent);
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    position: relative;
    box-shadow: 0 4px 20px rgba(183, 31, 34, 0.4);
}

.goroku-popup .goroku-inner::after {
    content: '';
    position: absolute;
    bottom: -6px;
    width: 12px;
    height: 12px;
    background: var(--color-accent);
    transform: rotate(45deg);
}

.goroku-popup.from-left .goroku-inner::after {
    left: 20px;
}

.goroku-popup.from-right .goroku-inner::after {
    right: 20px;
    left: auto;
}

.goroku-popup .goroku-avatar {
    height: 220px;
    width: auto;
    max-width: 260px;
    margin-top: 5px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    object-fit: contain;
}

.goroku-popup .goroku-avatar.goroku-avatar--portrait {
    height: 297px;
    max-width: 350px;
    margin-top: 12px;
}

.goroku-popup.from-left .goroku-avatar {
    margin-left: 4px;
}

.goroku-popup.from-right .goroku-avatar {
    margin-right: 4px;
}

@media (max-width: 640px) {
    .goroku-popup .goroku-avatar {
        height: 147px;
        max-width: 173px;
    }

    .goroku-popup .goroku-avatar.goroku-avatar--portrait {
        height: 198px;
        max-width: 234px;
        margin-top: 10px;
    }
}

/* ========================================
   コナミコマンド結果 — ひょうきん
   ======================================== */

.konami-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-top);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.95);
    pointer-events: all;
    cursor: pointer;
}

.konami-message {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 8vw, 5rem);
    color: var(--color-accent);
    text-align: center;
    letter-spacing: 0.1em;
    line-height: 1.3;
}

.konami-message .sub {
    display: block;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    color: #999;
    letter-spacing: 0.2em;
    margin-top: 16px;
}

/* ========================================
   Like Button
   ======================================== */

.uesugi-like-btn {
    transition: all 0.2s ease;
}

.uesugi-like-btn:active {
    transform: scale(0.95);
}

.uesugi-like-btn.liked svg {
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ========================================
   Digital Card — 15 Ranks
   ======================================== */

.digital-card-section {
    padding: 10px;
}

.digital-card {
    border-radius: 0;
    padding: clamp(16px, 4vw, 32px) clamp(18px, 4.5vw, 36px);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 4px 5px 7px rgba(0, 0, 0, 0.22);
    background-size: cover;
    background-position: center;
    aspect-ratio: 91 / 55;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Text stamped onto card — blend with material texture */
.digital-card > * {
    mix-blend-mode: luminosity;
}
.digital-card__company .text-accent {
    mix-blend-mode: normal;
}

/* Dark text variant for light card backgrounds */
.digital-card--dark-text {
    color: #1A1A1A;
}
.digital-card--dark-text > * {
    mix-blend-mode: multiply;
}
.digital-card--dark-text .digital-card__company .text-accent {
    mix-blend-mode: normal;
}

/* Card typography — fluid sizing based on viewport width */
.digital-card__logo {
    height: clamp(20px, 5vw, 36px);
}
.digital-card__company {
    font-size: clamp(11px, 3vw, 18px);
    white-space: nowrap;
}
.digital-card__title {
    font-size: clamp(11px, 2.8vw, 16px);
}
.digital-card__name {
    font-size: clamp(20px, 6.5vw, 36px);
}
.digital-card__meta {
    font-size: clamp(10px, 2.5vw, 14px);
}

/* ========================================
   Fortune (Omikuji)
   ======================================== */

.fortune-card {
    perspective: 1000px;
}

.fortune-card-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.fortune-card.flipped .fortune-card-inner {
    transform: rotateY(180deg);
}

.fortune-card-front,
.fortune-card-back {
    backface-visibility: hidden;
}

.fortune-card-back {
    transform: rotateY(180deg);
}

/* Fortune: ランク別カラー */
.fortune-rank--daikichi { color: #C8A84E; text-shadow: 0 0 30px rgba(200, 168, 78, 0.6), 0 0 60px rgba(200, 168, 78, 0.2); }
.fortune-rank--kichi    { color: #FF6B6B; text-shadow: 0 0 20px rgba(255, 107, 107, 0.3); }
.fortune-rank--chukichi { color: #4ECDC4; text-shadow: 0 0 20px rgba(78, 205, 196, 0.3); }
.fortune-rank--shokichi { color: #45B7D1; text-shadow: 0 0 20px rgba(69, 183, 209, 0.3); }
.fortune-rank--suekichi { color: #999999; }
.fortune-rank--kyo      { color: #9B59B6; text-shadow: 0 0 20px rgba(155, 89, 182, 0.3); }
.fortune-rank--daikyo   { color: #B71F22; text-shadow: 0 0 30px rgba(183, 31, 34, 0.6), 0 0 60px rgba(183, 31, 34, 0.2); }

/* Fortune: 運勢ランクテキスト */
.fortune-rank-text {
    font-size: clamp(3.5rem, 12vw, 7rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.05em;
}

/* Fortune: 装飾ライン */
.fortune-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.fortune-divider::before,
.fortune-divider::after {
    content: '';
    flex: 1;
    max-width: 8rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.fortune-divider-diamond {
    width: 8px;
    height: 8px;
    background: var(--color-gold);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* Fortune: 上杉語録 */
.fortune-quote {
    font-size: clamp(1.125rem, 3vw, 1.375rem);
    line-height: 1.8;
    color: var(--color-text);
    position: relative;
    padding: 0 1.5rem;
}

.fortune-quote::before,
.fortune-quote::after {
    position: absolute;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: var(--color-gold);
    opacity: 0.4;
    line-height: 1;
}

.fortune-quote::before {
    content: '\201C';
    top: -0.5rem;
    left: -0.25rem;
}

.fortune-quote::after {
    content: '\201D';
    bottom: -1.5rem;
    right: -0.25rem;
}


/* Fortune: ポイントバッジ */
.fortune-points-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
    background: linear-gradient(135deg, #C8A84E, #E8D48B, #C8A84E);
    border-radius: 9999px;
    letter-spacing: 0.05em;
}

/* Fortune: 結果画面の薄い上杉背景（顔を大きく中央に） */
#fortune-result-bg {
    opacity: 0.08;
    width: 200vw;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (min-width: 1024px) {
    #fortune-result-bg {
        width: auto;
        height: 85vh;
    }
}

#fortune-rank-display:focus {
    outline: none;
}

/* Fortune: 初期画面の上杉（顔は必ず画面内、下半身ははみ出しOK） */
#fortune-uesugi {
    top: 15%;
    width: 140vw;
    max-width: 56rem;
}

/* Fortune: おみくじ箱 */
#fortune-box {
    width: 7rem;
}

/* Fortune: 占うボタン */
#fortune-draw-btn {
    display: inline-block;
    white-space: nowrap;
    padding: 1rem 3.5rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: #fff;
    background: linear-gradient(135deg, #B71F22, #D42B2E);
    border: 2px solid rgba(200, 168, 78, 0.5);
    border-radius: 9999px;
    box-shadow: 0 0 20px rgba(183, 31, 34, 0.5), 0 0 60px rgba(183, 31, 34, 0.2);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fortune-btn-pulse 2s ease-in-out infinite;
}

#fortune-draw-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(183, 31, 34, 0.7), 0 0 80px rgba(183, 31, 34, 0.3);
}

@keyframes fortune-btn-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(183, 31, 34, 0.5), 0 0 60px rgba(183, 31, 34, 0.2); }
    50% { box-shadow: 0 0 30px rgba(200, 168, 78, 0.6), 0 0 80px rgba(200, 168, 78, 0.2); }
}

/* Fortune: おみくじ箱+ボタンの位置 */
#fortune-controls {
    bottom: 10%;
}

/* Fortune: 飛翔上杉 */
#fortune-fly {
    z-index: var(--z-modal);
    height: 80vh;
    width: auto;
}

@media (min-width: 768px) {
    #fortune-box {
        width: 9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #fortune-fly,
    #fortune-stars {
        display: none !important;
    }
}

/* ========================================
   Mobile Menu
   ======================================== */

#mobile-menu {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.open {
    opacity: 1;
    visibility: visible;
    z-index: var(--z-modal);
}

#mobile-menu .mobile-menu-backdrop {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#mobile-menu.open .mobile-menu-backdrop {
    opacity: 1;
}

#mobile-menu .mobile-menu-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open .mobile-menu-item {
    opacity: 1;
    transform: translateX(0);
}

#mobile-menu.open .mobile-menu-item:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-menu-item:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-menu-item:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-menu-item:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-menu-item:nth-child(5) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-menu-item:nth-child(6) { transition-delay: 0.3s; }

/* ========================================
   Horizontal Scroll (Goods)
   ======================================== */

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ========================================
   NEWS TV Frame
   ======================================== */

.news-tv-frame {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* TV画像（フレーム）— 最前面 */
.news-tv-img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: var(--z-content-2);
    pointer-events: none;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
    transition: filter 0.3s ease;
}

.group:hover .news-tv-img {
    filter: drop-shadow(0 8px 32px rgba(183, 31, 34, 0.3));
}

/* サムネイル表示エリア（TVスクリーン位置に合わせる） */
.news-tv-screen {
    position: absolute;
    top: 7%;
    left: 1%;
    width: 76%;
    aspect-ratio: 4 / 3;
    z-index: var(--z-content);
    overflow: hidden;
    border-radius: 4px;
    background: var(--color-primary);
}

/* スキャンライン（走査線）エフェクト */
.news-tv-scanlines {
    position: absolute;
    inset: 0;
    z-index: var(--z-content-3);
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
    mix-blend-mode: multiply;
}

/* ブラウン管の発光・反射エフェクト */
.news-tv-glow {
    position: absolute;
    inset: 0;
    z-index: var(--z-content-4);
    pointer-events: none;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.25) 100%);
    transition: opacity 0.3s ease;
}

.group:hover .news-tv-glow {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.15) 100%);
}

/* ========================================
   Pagination
   ======================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--color-surface);
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover {
    background-color: var(--color-border);
}

.pagination .page-numbers.current {
    background-color: var(--color-accent);
    color: #fff;
}

/* ========================================
   Ticket Status Badges — LIVE/EVENT
   ======================================== */

.ticket-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    white-space: nowrap;
}

/* 発売前 */
.ticket-badge--before {
    background-color: rgba(200, 168, 78, 0.15);
    color: var(--color-gold);
    border: 1px solid rgba(200, 168, 78, 0.3);
}

/* 発売中 */
.ticket-badge--onsale {
    background-color: rgba(183, 31, 34, 0.15);
    color: var(--color-accent-hover);
    border: 1px solid rgba(183, 31, 34, 0.3);
    animation: pulse-badge 2s ease-in-out infinite;
}

/* SOLD OUT */
.ticket-badge--soldout {
    background-color: rgba(153, 153, 153, 0.15);
    color: #999999;
    border: 1px solid rgba(153, 153, 153, 0.3);
}

/* 招待制 */
.ticket-badge--invitation {
    background-color: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ========================================
   Event — Year Filter Tabs
   ======================================== */

.event-year-tab {
    display: inline-block;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.1em;
    color: var(--color-text-sub);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.event-year-tab:hover {
    color: #F5F5F5;
    border-color: var(--color-accent);
}

.event-year-tab.active {
    color: #fff;
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

/* ========================================
   Comments — Dark Theme
   ======================================== */

.comments-area {
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

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

.comment-list .children {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.comment-list .comment .comment {
    margin-top: 1rem;
}

.comment-respond .comment-reply-title {
    margin-bottom: 1rem;
}

.comment-respond .comment-reply-title small {
    margin-left: 0.5rem;
}

.comment-respond .comment-reply-title small a {
    color: #999999;
    font-size: 0.75rem;
}

.comment-respond .comment-reply-title small a:hover {
    color: var(--color-accent);
}

.comment-form-comment {
    margin-bottom: 1rem;
}

.comment-submit {
    background-color: var(--color-accent);
    color: #fff;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.comment-submit:hover {
    background-color: var(--color-accent-hover);
}

.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.comment-navigation a {
    color: #999999;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.comment-navigation a:hover {
    color: var(--color-accent);
}

/* ========================================
   WordPress Core
   ======================================== */

.wp-block-image img {
    max-width: 100%;
    height: auto;
}

/* Video embed responsive */
.wp-block-embed,
.wp-block-embed-vimeo,
.wp-block-embed-youtube {
    width: 100%;
}

.wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.wp-block-embed__wrapper iframe,
.wp-block-embed__wrapper object,
.wp-block-embed__wrapper embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* the_content 内の長いURLを折り返す */
.prose {
    overflow-wrap: break-word;
}

/* 本文内リンク（@tailwindcss/typography 未導入のため自前定義） */
.prose a {
    color: var(--color-link);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.prose a:hover {
    color: var(--color-link-hover);
}

.prose a:visited {
    color: var(--color-link-visited);
}

.prose a:visited:hover {
    color: var(--color-link-hover);
}

/* the_content 内の直接 iframe にも対応 */
.prose iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

/* the_content 内の video タグ */
.prose video {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
}

.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
}

/* ========================================
   上杉画伯 — ヒーロー
   ======================================== */

.gahaku-hero {
    height: 100vw;
}

.gahaku-hero-logo-wrap {
    margin-right: 45%;
}

.gahaku-hero-logo {
    width: 180px;
}

@media (min-width: 768px) {
    .gahaku-hero {
        height: 60vh;
    }

    .gahaku-hero-logo-wrap {
        transform: none;
        margin-right: 25%;
    }

    .gahaku-hero-logo {
        width: 400px;
    }
}

@media (min-width: 1024px) {
    .gahaku-hero-logo {
        width: 480px;
    }
}

/* ========================================
   上杉画伯 — 3D カルーセル
   ======================================== */

.gahaku-carousel-section {
    position: relative;
}

/* ビューポート（パースペクティブ空間） */
.gahaku-carousel-viewport {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

/* シーン */
.gahaku-carousel-scene {
    overflow: visible;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* リングコンテナ */
.gahaku-carousel-ring {
    position: relative;
    width: 260px;
    height: 380px;
}

/* 各アイテム */
.gahaku-carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gahaku-carousel-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* --- 額縁 --- */
.gahaku-frame {
    position: relative;
    width: 260px;
    height: 340px;
    flex-shrink: 0;
}

.gahaku-frame-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: var(--z-content);
    pointer-events: none;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6));
}

/* 絵（額縁の内側にフィット — 額縁より上に重ねる） */
.gahaku-artwork {
    position: absolute;
    top: 4.5%;
    left: 4%;
    right: 4%;
    bottom: 4.5%;
    z-index: var(--z-content-3);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gahaku-artwork-img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.gahaku-artwork-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e4dc;
}

/* 非会員ロック */
.gahaku-lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: var(--z-content-3);
}

/* --- メタ情報 --- */
.gahaku-item-meta {
    text-align: center;
    margin-top: 12px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gahaku-carousel-item.is-active .gahaku-item-meta {
    opacity: 1;
}

.gahaku-item-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.gahaku-item-date {
    font-size: 11px;
    color: #999999;
    letter-spacing: 0.05em;
}

.gahaku-item-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 4px;
}

.gahaku-stat {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #999999;
}

/* --- ナビゲーション矢印 --- */
.gahaku-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: var(--z-carousel);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(34, 34, 34, 0.8);
    border: 1px solid #333;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gahaku-nav:hover {
    background: rgba(183, 31, 34, 0.8);
    border-color: var(--color-accent);
    color: #fff;
}

.gahaku-nav--prev {
    left: 0;
}

.gahaku-nav--next {
    right: 0;
}

/* --- インジケーター（ドット） --- */
.gahaku-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.gahaku-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.gahaku-dot.active {
    background: var(--color-accent);
    transform: scale(1.4);
}

.gahaku-dot:hover {
    background: #666;
}

.gahaku-dot.active:hover {
    background: var(--color-accent-hover);
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
    .gahaku-carousel-viewport {
        padding: 0 40px;
    }

    .gahaku-carousel-scene {
        height: 400px;
    }

    .gahaku-carousel-ring {
        width: 200px;
        height: 300px;
    }

    .gahaku-frame {
        width: 200px;
        height: 260px;
    }

    .gahaku-item-title {
        max-width: 200px;
    }

    .gahaku-nav {
        width: 36px;
        height: 36px;
    }

    .gahaku-nav svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .gahaku-carousel-viewport {
        padding: 0 32px;
    }

    .gahaku-carousel-scene {
        height: 360px;
    }

    .gahaku-carousel-ring {
        width: 180px;
        height: 270px;
    }

    .gahaku-frame {
        width: 180px;
        height: 235px;
    }

    .gahaku-item-title {
        max-width: 180px;
        font-size: 12px;
    }

    .gahaku-nav {
        width: 32px;
        height: 32px;
    }
}

/* ========================================
   Gallery Grid (Masonry-like)
   ======================================== */

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

.gallery-grid-item {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    width: 100%;
    display: block;
}

@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

/* ========================================
   Gallery Lightbox
   ======================================== */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gallery-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: var(--z-nav);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 34, 34, 0.6);
    border: 1px solid #333;
    border-radius: 50%;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-lightbox-close:hover {
    background: rgba(183, 31, 34, 0.8);
    border-color: var(--color-accent);
}

.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: var(--z-nav);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 34, 34, 0.6);
    border: 1px solid #333;
    border-radius: 50%;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-lightbox-nav:hover {
    background: rgba(183, 31, 34, 0.8);
    border-color: var(--color-accent);
}

.gallery-lightbox-nav--prev { left: 16px; }
.gallery-lightbox-nav--next { right: 16px; }

.gallery-lightbox-content {
    position: relative;
    z-index: var(--z-elevated);
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.gallery-lightbox-caption {
    margin-top: 12px;
    font-size: 14px;
    color: #999999;
    text-align: center;
    max-width: 600px;
}

.gallery-lightbox-counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-nav);
    font-size: 13px;
    color: #666;
    letter-spacing: 0.1em;
    font-family: 'Bebas Neue', sans-serif;
}

@media (max-width: 768px) {
    .gallery-lightbox-nav {
        width: 36px;
        height: 36px;
    }

    .gallery-lightbox-nav--prev { left: 8px; }
    .gallery-lightbox-nav--next { right: 8px; }

    .gallery-lightbox-close {
        top: 8px;
        right: 8px;
        width: 40px;
        height: 40px;
    }

    .gallery-lightbox-img {
        max-width: 95vw;
        max-height: 75vh;
    }
}

/* ========================================
   Movie Archive
   ======================================== */

.movie-card {
    cursor: pointer;
}

.movie-play-overlay {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.movie-card:hover .movie-play-overlay {
    opacity: 1;
}

/* Movie Player Modal */
.movie-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.movie-modal[hidden] {
    display: none;
}

.movie-modal-backdrop {
    position: absolute;
    inset: 0;
}

.movie-modal-player {
    position: relative;
    background: #000;
}

.movie-modal-player iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    border: 0;
}

/* Loading Skeleton */
.movie-skeleton {
    animation: movie-skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes movie-skeleton-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .movie-play-overlay {
        transition: none;
    }
    .movie-skeleton {
        animation: none;
        opacity: 0.3;
    }
}

/* ========================================
   Mypage — Bento Dashboard
   ======================================== */

/* ノイズ/グリッチ/Ambient 無効化 */
/* Matches: page-mypage, page-mypage-profile, page-mypage-withdraw, page-mypage-member-news, page-login */
[class*="page-template-page-mypage"]::after,
.page-template-page-login::after {
    display: none;
}
[class*="page-template-page-mypage"] .ambient-blobs,
.page-template-page-login .ambient-blobs {
    display: none;
}

/* Container */
.mypage-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Digital card shimmer */
.digital-card-shimmer { cursor: default; }
.digital-card-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    transition: left 0.8s ease;
    pointer-events: none;
    z-index: 5;
}
.digital-card-shimmer:hover::after { left: 150%; }

/* Banners */
.mypage-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 12px;
}
.mypage-banner--success { background: rgba(16, 185, 129, 0.08); color: #6ee7b7; }
.mypage-banner--neutral { background: rgba(255, 255, 255, 0.04); color: var(--color-text-sub); }
.mypage-banner--warning { background: rgba(200, 168, 78, 0.08); color: #C8A84E; }
.mypage-banner--alert   { background: rgba(183, 31, 34, 0.08); color: var(--color-text); }

/* Bento Grid */
.mypage-bento {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

/* Tile base */
.mypage-tile {
    background: #111111;
    border-radius: 16px;
    padding: 24px;
    min-height: 0;
}

/* Tile sizes */
.mypage-tile--rank      { grid-column: span 5; }
.mypage-tile--how       { grid-column: span 2; }
.mypage-tile--activity  { grid-column: span 3; }
.mypage-tile--link      {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
    min-height: 88px;
    text-decoration: none;
    transition: background 0.2s;
}
.mypage-tile--link:hover {
    background: #1a1a1a;
}
.mypage-tile--link:hover i {
    color: var(--color-accent);
    transition: color 0.2s;
}
.mypage-tile--news       { grid-column: span 5; }
.mypage-tile--membership { grid-column: span 5; }

/* FC badge */
.mypage-fc-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.mypage-ring {
    width: clamp(96px, 28vw, 160px);
    height: clamp(96px, 28vw, 160px);
}
.mypage-point-counter {
    font-size: clamp(18px, 5.5vw, 28px);
}

/* Circle progress — animated by GSAP only */
.mypage-ring-progress {
    /* No CSS transition — GSAP handles the animation to avoid conflicts */
}

/* Buttons */
.mypage-btn-primary {
    font-size: 14px;
    font-weight: 700;
    padding: 12px 20px;
    min-height: 44px;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 8px;
    transition: background 0.2s;
}
.mypage-btn-primary:hover { background: var(--color-accent-hover); }

.mypage-btn-outline {
    font-size: 14px;
    padding: 12px 20px;
    min-height: 44px;
    background: transparent;
    color: var(--color-text-sub);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.mypage-btn-outline:hover {
    border-color: var(--color-text-sub);
    color: var(--color-text);
}

/* Mobile: mypage overrides */
@media (max-width: 639px) {
    .mypage-breadcrumb {
        font-size: 11px;
    }
    .mypage-tile--how      { grid-column: span 5; }
    .mypage-tile--activity { grid-column: span 5; }

    .mypage-tile--link {
        grid-column: span 5;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        padding: 14px 16px;
        min-height: 0;
    }
    .mypage-tile--link span {
        margin-top: 0;
    }
}

/* Desktop (>640px): wider container */
@media (min-width: 640px) {
    .mypage-container {
        max-width: 720px;
    }
    .mypage-tile {
        padding: 28px;
    }
    .mypage-bento {
        gap: 12px;
    }
}

/* ========================================
   Mypage — White Theme Override
   高齢ユーザー対応：白背景・黒文字でリーダビリティ優先
   ======================================== */

[class*="page-template-page-mypage"] main {
    background: #FFFFFF;
    color: #1A1A1A;
}

[class*="page-template-page-mypage"] .mypage-tile {
    background: #F5F5F5;
}

[class*="page-template-page-mypage"] .mypage-tile--link:hover {
    background: #EBEBEB;
}

/* Text colors → dark */
[class*="page-template-page-mypage"] main .text-text-default {
    color: #1A1A1A;
}
[class*="page-template-page-mypage"] main .text-text-sub,
[class*="page-template-page-mypage"] main .text-text-sub\/60,
[class*="page-template-page-mypage"] main .text-text-sub\/50 {
    color: #666666;
}
[class*="page-template-page-mypage"] main .text-text-sub\/30 {
    color: #888888;
}
[class*="page-template-page-mypage"] main .text-text-sub\/30:hover {
    color: #444444;
}

/* Ring progress track */
[class*="page-template-page-mypage"] main .text-white\/\[0\.06\] {
    color: rgba(0, 0, 0, 0.08);
}

/* Banners — light variants */
[class*="page-template-page-mypage"] .mypage-banner--success {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
}
[class*="page-template-page-mypage"] .mypage-banner--neutral {
    background: rgba(0, 0, 0, 0.04);
    color: #666666;
}
[class*="page-template-page-mypage"] .mypage-banner--warning {
    background: rgba(200, 168, 78, 0.12);
    color: #92700C;
}
[class*="page-template-page-mypage"] .mypage-banner--alert {
    background: rgba(183, 31, 34, 0.08);
    color: #1A1A1A;
}

/* Outline button */
[class*="page-template-page-mypage"] .mypage-btn-outline {
    color: #666666;
    border-color: rgba(0, 0, 0, 0.12);
}
[class*="page-template-page-mypage"] .mypage-btn-outline:hover {
    border-color: #666666;
    color: #1A1A1A;
}

/* News list border */
[class*="page-template-page-mypage"] .border-white\/\[0\.04\] {
    border-color: rgba(0, 0, 0, 0.06);
}

/* Form inputs — white theme */
[class*="page-template-page-mypage"] .mypage-form-input {
    background: #FFFFFF;
    border-color: #DDDDDD;
    color: #1A1A1A;
}
[class*="page-template-page-mypage"] .mypage-form-input::placeholder {
    color: #999999;
}
[class*="page-template-page-mypage"] .mypage-form-label {
    color: #666666;
}

/* Profile rows */
[class*="page-template-page-mypage"] .mypage-profile-row dt {
    color: #666666;
}
[class*="page-template-page-mypage"] .mypage-profile-row dd {
    color: #1A1A1A;
}

/* Status colors — darker for light bg */
[class*="page-template-page-mypage"] .text-emerald-400 {
    color: #059669;
}
[class*="page-template-page-mypage"] .text-yellow-400 {
    color: #B45309;
}

/* Mypage — Form Elements */
.mypage-form-label {
    display: block;
    font-size: 14px;
    color: var(--color-text-sub);
    margin-bottom: 8px;
}

.mypage-form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--color-primary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.mypage-form-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.mypage-form-input::placeholder {
    color: var(--color-text-sub);
    opacity: 0.5;
}

textarea.mypage-form-input {
    min-height: 100px;
    line-height: 1.6;
}

/* Mypage — Profile Info */
.mypage-profile-dl {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mypage-profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.mypage-profile-row dt {
    color: var(--color-text-sub);
}

.mypage-profile-row dd {
    color: var(--color-text);
    font-weight: 700;
}

/* ========================================
   Legal / Prose Pages
   ======================================== */

.legal-prose h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.legal-prose h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-prose h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-prose p {
    margin-bottom: 1rem;
    line-height: 1.9;
    color: #cccccc;
}

.legal-prose ol {
    list-style: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-prose ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-prose li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
    color: #cccccc;
}

.legal-prose a {
    color: var(--color-link);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.legal-prose a:hover {
    color: var(--color-link-hover);
}

/* 特定商取引法テーブル */
.tokushoho-table {
    width: 100%;
    border-collapse: collapse;
}

.tokushoho-table tr {
    border-bottom: 1px solid var(--color-border);
}

.tokushoho-table tr:first-child {
    border-top: 1px solid var(--color-border);
}

.tokushoho-table th,
.tokushoho-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    vertical-align: top;
    line-height: 1.8;
}

.tokushoho-table th {
    color: #999999;
    font-weight: 600;
    font-size: 0.875rem;
    width: 200px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.tokushoho-table td {
    color: var(--color-text);
    font-size: 0.9375rem;
}

@media (max-width: 640px) {
    .tokushoho-table th,
    .tokushoho-table td {
        display: block;
        width: 100%;
        padding: 0;
    }

    .tokushoho-table th {
        padding-top: 1rem;
        padding-bottom: 0.25rem;
        font-size: 0.8125rem;
    }

    .tokushoho-table td {
        padding-bottom: 1rem;
        font-size: 0.875rem;
    }
}

/* ========================================
   Biography — Photo fade & overlap (mobile)
   ======================================== */

@media (max-width: 1023px) {
    .bio-photo-wrap {
        -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 95%);
        mask-image: linear-gradient(to bottom, #000 50%, transparent 95%);
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .bio-profile-wrap {
        position: relative;
        margin-top: -90%;
        z-index: 2;
    }
}

/* ========================================
   Vinyl Record — DISCOGRAPHY
   ======================================== */

/* --- Pattern 1: Vinyl Disc --- */

.vinyl-disc {
    background: transparent;
    border: none;
    overflow: visible;
}

.vinyl-disc:hover {
    border-color: transparent;
}

.vinyl-disc__image {
    border-radius: 50% !important;
    width: 88%;
    margin: 6% auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    box-shadow:
        0 0 0 3px #1a1a1a,
        0 0 0 5px #333,
        0 8px 32px rgba(0, 0, 0, 0.6);
    transition: transform var(--vinyl-spin-duration) linear;
}

.vinyl-disc__image img {
    border-radius: 50%;
}

/* ホバーで回転 */
@keyframes vinyl-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vinyl-disc:hover .vinyl-disc__image {
    animation: vinyl-spin var(--vinyl-spin-duration) linear infinite;
}

/* ホバーでのスケールを無効化 */
.vinyl-disc .vinyl-disc__image img {
    transition: none;
}

.vinyl-disc:hover .vinyl-disc__image img {
    transform: none;
}

/* 溝ライン */
.vinyl-disc__image::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        repeating-radial-gradient(
            circle at center,
            transparent 0px,
            transparent 3px,
            rgba(0, 0, 0, 0.08) 3px,
            rgba(0, 0, 0, 0.08) 4px,
            transparent 4px,
            transparent 5px
        );
    z-index: 3;
    pointer-events: none;
}

/* ビニールの光沢 */
.vinyl-disc__image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        /* 中心穴 */
        radial-gradient(
            circle at center,
            var(--color-primary) 0%,
            var(--color-primary) calc(var(--vinyl-hole-size) - 1%),
            #444 calc(var(--vinyl-hole-size) - 0.5%),
            #222 var(--vinyl-hole-size),
            transparent calc(var(--vinyl-hole-size) + 0.5%)
        ),
        /* 光沢反射 */
        conic-gradient(
            from 0deg at 50% 50%,
            transparent 0deg,
            rgba(255, 255, 255, 0.06) 30deg,
            transparent 60deg,
            rgba(255, 255, 255, 0.04) 120deg,
            transparent 150deg,
            rgba(255, 255, 255, 0.07) 210deg,
            transparent 240deg,
            rgba(255, 255, 255, 0.03) 300deg,
            transparent 330deg,
            rgba(255, 255, 255, 0.05) 360deg
        );
    z-index: 4;
    pointer-events: none;
}

/* バッジを円盤の外（テキストエリア上部）に移動 */
.vinyl-disc__image .absolute.top-3.left-3 {
    z-index: 5;
}

/* テキストエリア */
.vinyl-disc .p-5 {
    text-align: center;
}

/* --- Pattern 2: Sleeve + Record Slide Out --- */

.vinyl-sleeve {
    overflow: visible !important;
    position: relative;
    z-index: 1;
    background: transparent !important;
    border: none !important;
}

.vinyl-sleeve:hover {
    z-index: 10;
    border-color: transparent !important;
}

.vinyl-sleeve__image {
    position: relative;
    z-index: 2;
    overflow: visible !important;
}

/* スリーブにボックスシャドウ */
.vinyl-sleeve__image img {
    position: relative;
    z-index: 2;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
}

/* レコード盤（スリーブの後ろ） */
.vinyl-sleeve__image::after {
    content: '';
    position: absolute;
    top: 5%;
    right: 0;
    width: 90%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background:
        /* 中心穴 */
        radial-gradient(
            circle at center,
            var(--color-primary) 0%,
            var(--color-primary) 6.5%,
            #444 7%,
            #222 7.5%,
            transparent 8%
        ),
        /* 溝ライン */
        repeating-radial-gradient(
            circle at center,
            transparent 0px,
            transparent 3px,
            rgba(0, 0, 0, 0.08) 3px,
            rgba(0, 0, 0, 0.08) 4px,
            transparent 4px,
            transparent 5px
        ),
        /* 光沢反射 */
        conic-gradient(
            from 160deg at 50% 50%,
            transparent 0deg,
            rgba(255, 255, 255, 0.18) 20deg,
            rgba(255, 255, 255, 0.06) 40deg,
            transparent 60deg,
            rgba(255, 255, 255, 0.04) 100deg,
            transparent 120deg,
            rgba(255, 255, 255, 0.12) 180deg,
            rgba(255, 255, 255, 0.04) 200deg,
            transparent 220deg,
            rgba(255, 255, 255, 0.06) 280deg,
            transparent 310deg,
            rgba(255, 255, 255, 0.10) 340deg,
            transparent 360deg
        ),
        /* ジャケット画像 */
        var(--sleeve-img, #1a1a1a) center / cover no-repeat;
    z-index: 1;
    transform: translateX(5%) rotate(0deg);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow:
        0 0 0 2px #333,
        -4px 0 20px rgba(0, 0, 0, 0.5),
        inset 0 0 60px rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

/* ホバーでスライドアウト + 回転 */
.vinyl-sleeve:hover .vinyl-sleeve__image::after {
    transform: translateX(55%) rotate(395deg);
}

/* スクロールトリガーでスライドアウト + 回転 */
.vinyl-sleeve--active .vinyl-sleeve__image::after {
    transform: translateX(55%) rotate(395deg);
}

/* レスポンシブ */
@media (max-width: 640px) {
    .vinyl-disc__image {
        width: 92%;
        margin: 4% auto;
    }
}

@media (max-width: 767px) {
    /* ジャケット: 左にスライド */
    .vinyl-sleeve__image {
        transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .vinyl-sleeve:hover .vinyl-sleeve__image,
    .vinyl-sleeve--active .vinyl-sleeve__image {
        transform: translateX(-22%);
    }

    /* レコード: 右にスライド + 回転 */
    .vinyl-sleeve__image::after {
        width: 85%;
        top: 7.5%;
    }
    .vinyl-sleeve:hover .vinyl-sleeve__image::after,
    .vinyl-sleeve--active .vinyl-sleeve__image::after {
        transform: translateX(52%) rotate(360deg);
    }
}

/* ========================================
   Banner Shine Effect
   ======================================== */
.banner-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-200%);
    pointer-events: none;
    will-change: transform;
}

.banner-shine:hover::after {
    animation: banner-shine-sweep 0.6s ease-out forwards;
}

@keyframes banner-shine-sweep {
    0% {
        transform: translateX(-200%);
    }
    100% {
        transform: translateX(300%);
    }
}

/* ========================================
   Contact Form 7 — ダーク基調スタイル
   ======================================== */

/* ラベル */
.wpcf7 label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-text-sub);
    letter-spacing: 0.025em;
}

/* 入力フィールド共通 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-primary);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* セレクト */
.wpcf7 select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23999999' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.wpcf7 select option {
    background: var(--color-surface);
    color: var(--color-text);
}

/* プレースホルダー */
.wpcf7 input[type="text"]::placeholder,
.wpcf7 input[type="email"]::placeholder,
.wpcf7 input[type="tel"]::placeholder,
.wpcf7 textarea::placeholder {
    color: var(--color-text-sub);
    opacity: 0.5;
}

/* フォーカス */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px var(--color-accent), 0 0 12px rgba(183, 31, 34, 0.15);
}

/* テキストエリア */
.wpcf7 textarea {
    min-height: 10rem;
    resize: vertical;
}

/* フィールド間隔 */
.wpcf7 p {
    margin-bottom: 1.25rem;
}

/* 送信ボタン */
.wpcf7 input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 2rem;
    background: var(--color-accent);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.wpcf7 input[type="submit"]:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 4px 20px rgba(183, 31, 34, 0.3);
}

.wpcf7 input[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 必須バッジ */
.wpcf7 .required-badge {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.0625rem 0.3125rem;
    border-radius: 0.1875rem;
    margin-left: 0.375rem;
    vertical-align: middle;
    line-height: 1.4;
}

/* バリデーション */
.wpcf7-not-valid {
    border-color: var(--color-accent) !important;
}

.wpcf7-not-valid-tip {
    color: var(--color-accent);
    font-size: 0.75rem;
    margin-top: 0.375rem;
    display: block;
}

/* 送信結果メッセージ */
.wpcf7 .wpcf7-response-output {
    margin: 1.5rem 0 0;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    border: 1px solid var(--color-border);
    text-align: center;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #22c55e;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.05);
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(183, 31, 34, 0.05);
}

/* チェックボックス（プライバシーポリシー同意） */
.wpcf7 .wpcf7-acceptance {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem;
    background: var(--color-primary);
    border: 1px solid var(--color-border);
    border-radius: 0.25rem;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    margin-top: 0.125rem;
}

.wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked {
    background: var(--color-accent);
    border-color: var(--color-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M13.485 3.515a1 1 0 0 1 0 1.414l-6.364 6.364a1 1 0 0 1-1.414 0L3.05 8.636a1 1 0 1 1 1.414-1.414l2.243 2.243 5.657-5.657a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label {
    font-size: 0.8125rem;
    color: var(--color-text-sub);
    line-height: 1.5;
}

.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label a {
    color: var(--color-accent);
    text-decoration: underline;
}

.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label a:hover {
    color: var(--color-accent-hover);
}

/* スピナー */
.wpcf7 .wpcf7-spinner {
    margin: 1rem auto 0;
    display: block;
}

/* ========================================
   Lite Mode: 低スペックデバイス向け軽量表示
   ?lite=1 パラメータで有効化
   ======================================== */

body.lite-mode .ambient-blob {
    animation: none !important;
    will-change: auto;
}

body.lite-mode .glitch::before,
body.lite-mode .glitch::after {
    animation: none !important;
    display: none;
}

body.lite-mode .full-glitch {
    animation: none !important;
}
