/*
Theme Name: Yowane Fansite Improved
Author: Site Owner
Description: 弱音紗譜ファンサイトの整理・保守性改善版。不要コードと危険なHost依存を除去。
Version: 1.13.15
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: yowane-fansite-improved
*/

:root {
    /* フォント実体は子テーマ側で差し替え可能 */
    --font-body: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", Meiryo, "Yu Gothic UI", "Yu Gothic", "Hiragino Kaku Gothic ProN", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-rounded: var(--font-body);
    --font-outfit: "Outfit", "Segoe UI", Arial, sans-serif;
    /* ==========================================================================
       カラーパレット設定 (Color Palette Settings) - Yowane Shafu Ver. (Light Blue)
       ========================================================================== */
    --bg-color: #f0faff;
    /* 背景色: 非常に淡い水色 */
    --primary-color: #4fc3f7;
    /* メインカラー: スカイブルー */
    --primary-dark: #039be5;
    /* メインカラー(濃) */
    --accent-color: #ff9e80;
    /* アクセントカラー: ソフトオレンジ */
--text-color: #546e7a;
    /* テキスト色: ブルーグレー */
    --card-bg: #ffffff;
    /* カード背景色: 白 */
    --shadow-color: rgba(84, 110, 122, 0.1);
    /* 落ち着いたグレー系の影 */
--glass-bg: #f8fdff;
    /* 真っ白を避ける */
}

/* ==========================================================================
   基本設定 (Global Reset & Typography)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    background-image: radial-gradient(#bae6fd 2px, transparent 2px);
    background-size: 30px 30px;
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
}

/* スクリーン・グレイン (エモいノイズ - インラインSVGで独立) */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
}

/* スクロールバー */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 6px;
    border: 3px solid var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

section {
    padding: 2.5rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* ==========================================================================
   右側フローティングナビゲーション (Right Floating Navigation)
   ========================================================================== */
.side-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-logo {
    margin-bottom: 1.5rem;
    position: relative;
}

.nav-logo .logo-icon {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    border: 2px solid rgba(79, 195, 247, 0.28);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.10);
    color: var(--primary-dark);
    font-size: 2rem;
    line-height: 1;
    overflow: hidden;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-item {
    position: relative;
}

.nav-item::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    margin-right: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-item::after {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--primary-color);
    opacity: 0;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.nav-item:hover::before,
.nav-item:hover::after {
    opacity: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    font-size: 1.4rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 2px solid rgba(79, 195, 247, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-link:hover {
    transform: translateY(-2px);
    background: #eaf8fe;
    color: var(--primary-dark);
    border-color: var(--primary-color);
    box-shadow: 0 6px 14px rgba(3, 155, 229, .18);
}

.nav-link.active,
.nav-link.is-active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 13px rgba(3, 155, 229, .22);
}

.nav-social {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(79, 195, 247, 0.3);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid rgba(79, 195, 247, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.social-icon::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    margin-right: 0.8rem;
    transition: all 0.3s ease;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.15) rotate(-5deg);
    border-color: transparent;
    box-shadow:
        0 6px 18px rgba(79, 195, 247, 0.4),
        0 0 0 2px white,
        0 0 0 4px var(--primary-color);
    animation: socialWiggle 0.5s ease-in-out;
}

@keyframes socialWiggle {

    0%,
    100% {
        transform: scale(1.15) rotate(-5deg);
    }

    25% {
        transform: scale(1.15) rotate(-10deg);
    }

    75% {
        transform: scale(1.15) rotate(0deg);
    }
}

/* ハートエフェクト */
.social-icon::after {
    content: "💕";
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
}

.social-icon:hover::after {
    transform: translateX(-50%) translateY(-5px) scale(1);
    opacity: 1;
}

/* コンテンツエリアの調整 */
body {
    padding-left: 0;
}

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    transition: all 0.3s ease;
}

@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

/* PCサイズのみ、右側のナビゲーション(side-nav)の幅を考慮して全体を少し左にずらし、視覚的な中央を保つ */
@media (min-width: 769px) {
    .container {
        padding-right: 90px;
    }
}

/* モバイル対応 - 下部固定ナビゲーション（かわいいデザイン） */
@media (max-width: 768px) {
    /* スマホは主要6項目だけを下部ドックにまとめる */
    .side-nav {
        position: fixed;
        left: 50%;
        right: auto;
        bottom: calc(env(safe-area-inset-bottom) + 8px);
        top: auto;
        width: min(calc(100vw - 40px), 360px);
        max-width: none;
        min-height: 62px;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(79, 195, 247, 0.45);
        border-radius: 22px;
        box-shadow: 0 8px 22px rgba(60, 100, 120, 0.14);
        z-index: 9999;
        box-sizing: border-box;
        overflow: visible;
        transition: transform 0.28s ease;
    }

    .side-nav.hidden {
        transform: translate(-50%, calc(100% + 24px));
    }

    /* PC用の装飾・SNSはスマホでは詰め込まない */
    .side-nav::before,
    .side-nav::after,
    .side-nav .nav-social {
        display: none;
    }

    /* 右メニュー上部のロゴは、ボタン列に混ぜずドック中央上へ独立配置 */
    .side-nav .nav-logo {
        position: absolute;
        left: 16px;
        top: -21px;
        margin: 0;
        transform: none;
        z-index: 2;
        pointer-events: none;
    }

    .side-nav .nav-logo .logo-icon {
        width: 42px;
        height: 42px;
        font-size: 1.35rem;
        border-width: 2px;
        background: #fff;
        box-shadow: 0 5px 14px rgba(60, 100, 120, 0.16);
    }

    .side-nav .nav-menu {
        width: 100%;
        margin: 0;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(
            var(--side-nav-item-count, 5),
            minmax(0, 1fr)
        );
        align-items: center;
        gap: 10px;
        list-style: none;
    }

    .side-nav .nav-item {
        min-width: 0;
    }

    /* 6個を横一列に詰め込まず、スマホでは最新配信を本文側に任せる */
    .side-nav .nav-item[data-nav-key="stream"] {
        display: none;
    }

    .side-nav .nav-item::before,
    .side-nav .nav-item::after {
        display: none;
    }

    .side-nav .nav-link {
        width: 100%;
        height: 46px;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        border-radius: 14px;
        background: transparent;
        color: var(--text-color);
        box-shadow: none;
        font-size: 1.05rem;
        overflow: hidden;
        transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
    }

    .side-nav .nav-link:hover {
        transform: none;
        animation: none;
        background: rgba(79, 195, 247, 0.10);
        color: var(--primary-dark);
        border: 0;
        box-shadow: none;
    }

    .side-nav .nav-link:active {
        transform: scale(0.92);
    }

    .side-nav .nav-link::after {
        content: none;
    }

    .side-nav .nav-link.active {
        background: var(--primary-color);
        color: #fff;
        border: 0;
        box-shadow: none;
        animation: none;
    }

    .side-nav .nav-link .ui-icon {
        width: 1.15rem;
        height: 1.15rem;
        max-width: 1.15rem;
        max-height: 1.15rem;
        animation: none;
        transform: none;
    }

    body {
        padding-left: 0;
        padding-bottom: calc(92px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 380px) {
    .side-nav {
        width: calc(100vw - 32px);
        padding-left: 10px;
        padding-right: 10px;
    }

    .side-nav .nav-menu {
        gap: 7px;
    }

    .side-nav .nav-logo {
        left: 14px;
        top: -19px;
    }

    .side-nav .nav-logo .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
}

/* ========================================================================== 
   Birthday and debut anniversary effect (1.13.9)
   ========================================================================== */
.anniversary-event-birthday {
    --anniversary-main: color-mix(in srgb, var(--accent-color) 64%, #fff);
    --anniversary-sub: color-mix(in srgb, var(--primary-color) 72%, #fff);
    --anniversary-line: color-mix(in srgb, var(--accent-color) 72%, var(--primary-color));
    --anniversary-glow: rgba(255, 158, 128, .5);
    --anniversary-pink: #ff9fba;
    --anniversary-yellow: #ffd76a;
    --anniversary-blue: #52c7f5;
}

.anniversary-event-debut {
    --anniversary-main: color-mix(in srgb, var(--primary-color) 76%, #fff);
    --anniversary-sub: color-mix(in srgb, var(--primary-dark) 56%, #fff);
    --anniversary-line: color-mix(in srgb, var(--primary-color) 66%, var(--primary-dark));
    --anniversary-glow: rgba(79, 195, 247, .48);
    --anniversary-pink: #ffabc2;
    --anniversary-yellow: #ffe086;
    --anniversary-blue: #42bff2;
}

.has-anniversary-celebration .main-title {
    position: relative;
}

.has-anniversary-celebration .hero-content::before {
    position: absolute;
    top: calc(100% + 1.15rem);
    left: 50%;
    z-index: 1;
    padding: .32rem .8rem .28rem;
    border: 2px solid var(--anniversary-line, var(--primary-color));
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 3px 3px 0 var(--anniversary-sub, var(--accent-color));
    color: var(--primary-dark);
    font-size: clamp(.68rem, 1.25vw, .82rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: .12em;
    white-space: nowrap;
    transform: translateX(-50%) rotate(-1deg);
}

.anniversary-event-birthday .hero-content::before {
    content: "HAPPY BIRTHDAY";
}

.anniversary-event-debut .hero-content::before {
    content: "DEBUT ANNIVERSARY";
}

.has-anniversary-celebration .main-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -.45rem;
    width: clamp(56px, 24%, 150px);
    height: 3px;
    border-radius: 999px;
    background: var(--anniversary-line, var(--primary-color));
    box-shadow: 11px 5px 0 -1px var(--anniversary-sub, var(--accent-color));
    opacity: .68;
    transform: translateX(-50%) rotate(-1deg);
}

.anniversary-effects-running .main-title {
    animation:
        titleFloat 3s ease-in-out infinite,
        anniversaryTitleGlow 1.7s ease-out 1 both;
}

.anniversary-effects-running .hero-content::before {
    animation: anniversaryLabelPop .72s cubic-bezier(.2, .9, .25, 1.2) both;
}

.anniversary-confetti {
    position: fixed;
    inset: 0;
    z-index: 100;
    overflow: hidden;
    pointer-events: none;
}

.anniversary-confetti-piece {
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 13px;
    border-radius: 2px;
    opacity: 0;
    background: var(--anniversary-main, var(--primary-color));
    transform-origin: center;
    will-change: transform, opacity;
}

.anniversary-confetti.is-finished {
    display: none;
}

.anniversary-confetti-piece:nth-child(5n + 2) {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--anniversary-sub, var(--accent-color));
}

.anniversary-confetti-piece:nth-child(5n + 3) {
    width: 9px;
    height: 12px;
    border-radius: 4px 1px;
    background: var(--anniversary-pink, #ffabc2);
}

.anniversary-confetti-piece:nth-child(5n + 4) {
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: var(--anniversary-yellow, #ffe086);
}

.anniversary-confetti-piece:nth-child(5n) {
    width: 7px;
    height: 14px;
    border: 1px solid rgba(3, 155, 229, .25);
    background: #fff;
    box-shadow: 0 0 5px rgba(255, 255, 255, .7);
}

.anniversary-confetti-piece:nth-child(7n) {
    background: var(--anniversary-blue, #42bff2);
}

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

.anniversary-sparkles i {
    --sparkle-size: 12px;
    --sparkle-delay: 0s;
    position: absolute;
    top: var(--sparkle-top, 35%);
    left: var(--sparkle-left, 50%);
    width: var(--sparkle-size);
    height: var(--sparkle-size);
    opacity: 0;
    background: var(--sparkle-color, #fff);
    clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
    filter: drop-shadow(0 0 5px var(--anniversary-glow));
    transform: translate(-50%, -50%) scale(0) rotate(-12deg);
}

.anniversary-confetti.is-running .anniversary-sparkles i {
    animation: anniversarySparklePop .62s ease-out var(--sparkle-delay) both;
}

.anniversary-sparkles i:nth-child(1) { --sparkle-left: 39%; --sparkle-top: 24%; --sparkle-size: 15px; }
.anniversary-sparkles i:nth-child(2) { --sparkle-left: 61%; --sparkle-top: 29%; --sparkle-delay: .07s; --sparkle-color: var(--anniversary-yellow); }
.anniversary-sparkles i:nth-child(3) { --sparkle-left: 33%; --sparkle-top: 43%; --sparkle-delay: .13s; --sparkle-size: 9px; --sparkle-color: var(--anniversary-pink); }
.anniversary-sparkles i:nth-child(4) { --sparkle-left: 67%; --sparkle-top: 45%; --sparkle-delay: .18s; --sparkle-size: 10px; }
.anniversary-sparkles i:nth-child(5) { --sparkle-left: 45%; --sparkle-top: 18%; --sparkle-delay: .21s; --sparkle-size: 8px; --sparkle-color: var(--anniversary-blue); }
.anniversary-sparkles i:nth-child(6) { --sparkle-left: 55%; --sparkle-top: 20%; --sparkle-delay: .04s; --sparkle-size: 11px; --sparkle-color: var(--anniversary-pink); }
.anniversary-sparkles i:nth-child(7) { --sparkle-left: 25%; --sparkle-top: 34%; --sparkle-delay: .24s; --sparkle-size: 8px; --sparkle-color: var(--anniversary-yellow); }
.anniversary-sparkles i:nth-child(8) { --sparkle-left: 75%; --sparkle-top: 35%; --sparkle-delay: .1s; --sparkle-size: 9px; }
.anniversary-sparkles i:nth-child(9) { --sparkle-left: 18%; --sparkle-top: 51%; --sparkle-delay: .15s; --sparkle-size: 7px; --sparkle-color: var(--anniversary-blue); }
.anniversary-sparkles i:nth-child(10) { --sparkle-left: 82%; --sparkle-top: 52%; --sparkle-delay: .25s; --sparkle-size: 8px; --sparkle-color: var(--anniversary-yellow); }
.anniversary-sparkles i:nth-child(11) { --sparkle-left: 42%; --sparkle-top: 55%; --sparkle-delay: .2s; --sparkle-size: 7px; }
.anniversary-sparkles i:nth-child(12) { --sparkle-left: 58%; --sparkle-top: 57%; --sparkle-delay: .12s; --sparkle-size: 7px; --sparkle-color: var(--anniversary-pink); }

@keyframes anniversarySparklePop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0) rotate(-12deg);
    }
    42% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.18) rotate(8deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.2) rotate(24deg);
    }
}

@keyframes anniversaryLabelPop {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(8px) rotate(-1deg) scale(.92);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) rotate(-1deg) scale(1);
    }
}

@keyframes anniversaryTitleGlow {
    0%, 100% {
        filter: drop-shadow(0 4px 10px rgba(79, 195, 247, .5));
    }
    20% {
        filter:
            brightness(1.13)
            drop-shadow(0 4px 10px rgba(79, 195, 247, .5))
            drop-shadow(0 0 9px var(--anniversary-glow))
            drop-shadow(0 0 18px var(--anniversary-glow));
    }
    52% {
        filter:
            brightness(1.05)
            drop-shadow(0 4px 10px rgba(79, 195, 247, .5))
            drop-shadow(0 0 7px var(--anniversary-glow));
    }
}

@media (max-width: 600px) {
    .anniversary-confetti-piece:nth-child(n + 19),
    .anniversary-sparkles i:nth-child(n + 9) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .anniversary-confetti {
        display: none !important;
    }

    .anniversary-effects-running .main-title {
        animation: none !important;
    }

    .anniversary-effects-running .hero-content::before {
        animation: none !important;
    }
}

/* PROFILEから固定ページへ続く、手触りのある小さな案内ボタン。 */
.profile-detail-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.profile-detail-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    width: min(100%, 360px);
    min-height: 50px;
    max-width: 100%;
    padding: .72rem 1rem .72rem 1.25rem;
    border: 2px solid var(--primary-dark);
    border-radius: 17px 20px 18px 15px;
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 4px 4px 0 rgba(3, 155, 229, .28);
    font-family: var(--font-rounded);
    font-size: clamp(.92rem, calc(.86rem + .22vw), 1.02rem);
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
    text-decoration: none;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background-color .18s ease;
}

.profile-detail-label {
    min-width: 0;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.profile-detail-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border: 1px solid rgba(3, 155, 229, .24);
    border-radius: 48% 52% 45% 55%;
    background: #e7f7ff;
    transform: rotate(-4deg);
}

.profile-detail-icon .ui-icon {
    width: 1rem;
    height: 1rem;
    stroke-width: 2.4;
    /* The arrow artwork spans x=4..15 inside a 24-unit viewBox.
       Shift that artwork to the visual center of the round badge. */
    transform: translateX(10.4%);
}

.profile-detail-link:hover {
    background: #f7fcff;
    color: var(--primary-dark);
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(3, 155, 229, .32);
}

.profile-detail-link:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 4px;
}

@media (max-width: 575px) {
    .profile-detail-link {
        width: min(100%, 320px);
        min-height: 48px;
        padding: .68rem .8rem .68rem 1rem;
        border-radius: 15px 18px 16px 14px;
        font-size: clamp(.86rem, 3.8vw, .96rem);
    }

    .profile-detail-icon {
        width: 1.7rem;
        height: 1.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-detail-link {
        transition: none;
    }
}

/* ==========================================================================
   Hero media modes 1.11
   画像と動画で構図設定を分け、動画停止時は代替画像を維持する。
   ========================================================================== */

.hero[data-hero-mode="image"] .hero-picture img {
    object-fit: cover;
}

.hero[data-hero-mode="image"].hero-image-fit-contain .hero-picture img {
    object-fit: contain;
}

.hero[data-hero-mode="image"].hero-image-fit-contain
    .hero-video-container::before {
    background: var(--hero-image-background) center / cover no-repeat;
    filter: blur(28px);
    opacity: .2;
}

.hero-video-poster {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    overflow: hidden;
    background: #fff;
    opacity: 1;
    transition: opacity .45s ease;
}

.hero-video-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center var(--hero-video-position-y, center);
}

.hero-video-container.video-playing .hero-video-poster {
    opacity: 0;
    pointer-events: none;
}

.hero-video-container.poster-only iframe,
.hero-video-container.poster-only video {
    display: none !important;
}

.hero-video-container.poster-only .hero-video-poster,
.hero-video-container.video-error .hero-video-poster {
    opacity: 1;
}

.hero-video-container iframe {
    top: var(--hero-video-offset-y, 50%);
    transform:
        translate(-50%, -50%)
        scale(var(--hero-video-scale, 1.35));
}

.hero-video-container video#hero-local-video {
    object-position: center var(--hero-video-position-y, center);
    transform: scale(var(--hero-local-video-scale, 1));
}

@media (prefers-reduced-motion: reduce) {
    .hero[data-hero-mode="video"] iframe,
    .hero[data-hero-mode="video"] video {
        display: none !important;
    }

    .hero[data-hero-mode="video"] .hero-video-poster {
        opacity: 1 !important;
    }
}

/* ========================================================================== 
   WordPress NEWS archive, article navigation and image hero
   ========================================================================== */

.hero-picture {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    overflow: hidden;
}

.hero-picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position:
        var(--hero-image-position-x, center)
        var(--hero-image-position-y, top);
}

@media (min-width: 769px) {
    .hero[data-hero-mode="image"] {
        height: min(92svh, 56.25vw);
        min-height: 520px;
        max-height: 760px;
    }
}

.hero-video-container.hero-image-mode::before {
    opacity: 0;
}

.news-archive-action {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.news-archive-button,
.news-archive-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    gap: .45rem;
    padding: .72rem 1.25rem;
    border: 2px solid var(--primary-color);
    border-radius: 999px;
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 3px 3px 0 var(--primary-dark);
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.news-archive-button:hover,
.news-archive-home-link:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--primary-dark);
    background: #f5fbff;
}

.news-archive-button .ui-icon,
.news-archive-home-link .ui-icon {
    width: 1.05rem;
    height: 1.05rem;
}

.news-archive-header {
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
    padding: clamp(.5rem, 2vw, 1rem) 0 clamp(1.25rem, 3vw, 2rem);
    border-bottom: 1px solid rgba(3, 155, 229, .2);
    text-align: center;
}

.news-archive-eyebrow {
    margin-bottom: .35rem;
    color: var(--primary-color);
    font-family: var(--font-outfit);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.news-archive-header .wp-entry-title {
    margin-bottom: .65rem;
    font-size: clamp(2.15rem, 5vw, 3.5rem);
    letter-spacing: .035em;
}

.news-archive-header .news-archive-home-link {
    min-height: 44px;
    padding: .45rem .75rem;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: .88rem;
}

.news-archive-header .news-archive-home-link:hover {
    transform: none;
    background: rgba(255, 255, 255, .65);
    box-shadow: none;
}

.news-archive-description {
    margin: 0 auto 1.2rem;
    color: #607d8b;
    font-weight: 700;
    line-height: 1.75;
}

.wp-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.wp-summary-card {
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(3, 155, 229, .22);
    border-left: 4px solid var(--primary-color);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 28px rgba(55, 100, 125, .09);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.wp-summary-card + .wp-summary-card {
    margin-top: 1rem;
}

.wp-summary-grid .wp-summary-card + .wp-summary-card {
    margin-top: 0;
}

.wp-summary-card:hover {
    transform: translateY(-2px);
    border-color: rgba(3, 155, 229, .45);
    box-shadow: 0 14px 32px rgba(39, 112, 148, .14);
}

.wp-summary-card.is-pinned {
    border-left-color: var(--pinned-color);
    background: var(--card-bg);
}

.wp-summary-link {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
}

.wp-summary-card.has-summary-thumbnail .wp-summary-link {
    display: grid;
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
}

.wp-summary-thumbnail {
    overflow: hidden;
    min-height: 190px;
    background: #eaf8ff;
    border-right: 1px solid #d9f2ff;
}

.wp-summary-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform .35s ease;
}

.wp-summary-card:hover .wp-summary-thumbnail img {
    transform: scale(1.025);
}

.wp-summary-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(1.15rem, 2.8vw, 1.75rem);
}

.wp-summary-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem .65rem;
    margin-bottom: .75rem;
    color: #78909c;
    font-size: .8rem;
    font-weight: 800;
}

.wp-summary-card .wp-entry-title {
    margin-bottom: .7rem;
    font-size: clamp(1.15rem, 1.02rem + .35vw, 1.4rem);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.wp-summary-excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 1rem;
    color: #607d8b;
    font-size: .94rem;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.wp-summary-excerpt > * {
    margin: 0;
}

.wp-summary-more {
    display: inline-flex;
    align-items: center;
    align-self: flex-end;
    gap: .3rem;
    margin-top: auto;
    color: var(--primary-dark);
    font-size: .86rem;
    font-weight: 800;
}

.wp-summary-more .ui-icon {
    width: 1rem;
    height: 1rem;
}

.article-navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
    gap: 1rem;
    margin-top: clamp(1.75rem, 4vw, 3rem);
}

.article-nav-slot a,
.article-nav-back {
    display: flex;
    min-height: 88px;
    border: 3px solid var(--primary-color);
    border-radius: 22px;
    background: #fff;
    color: var(--text-color);
    box-shadow: 4px 4px 0 var(--primary-dark);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.article-nav-slot a {
    flex-direction: column;
    justify-content: center;
    gap: .35rem;
    padding: .9rem 1rem;
}

.article-nav-older a {
    text-align: right;
}

.article-nav-back {
    align-items: center;
    justify-content: center;
    padding: .85rem 1rem;
    color: var(--primary-dark);
    font-weight: 900;
    white-space: nowrap;
}

.article-nav-slot a:hover,
.article-nav-back:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--primary-dark);
    background: #f7fcff;
}

.article-nav-direction {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--primary-dark);
    font-size: .8rem;
    font-weight: 900;
}

.article-nav-older .article-nav-direction {
    justify-content: flex-end;
}

.article-nav-direction .ui-icon {
    width: 1rem;
    height: 1rem;
}

.article-nav-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

@media (max-width: 768px) {
    .news-archive-header {
        padding-top: 0;
    }

    .wp-summary-card {
        border-left-width: 3px;
        border-radius: 16px;
    }

    .wp-summary-card.has-summary-thumbnail .wp-summary-link {
        display: flex;
    }

    .wp-summary-thumbnail {
        min-height: 0;
        aspect-ratio: 16 / 9;
        border-right: 0;
        border-bottom: 1px solid #d9f2ff;
    }

    .article-navigation {
        display: flex;
        flex-direction: column;
    }

    .article-nav-slot:empty {
        display: none;
    }

    .article-nav-slot a,
    .article-nav-back {
        min-height: 56px;
    }

    .article-nav-back {
        order: 2;
    }

    .article-nav-newer {
        order: 1;
    }

    .article-nav-older {
        order: 3;
    }
}

@media (max-width: 380px) {
    .news-archive-button,
    .news-archive-home-link {
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .side-nav {
        right: 20px;
        gap: 0.9rem;
    }

    .nav-logo .logo-icon {
        width: 55px;
        height: 55px;
        font-size: 2rem;
    }

    .nav-link {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .social-icon {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }
}

/* ==========================================================================
   ヒーローセクション (Hero Section - Video Background)
   ========================================================================== */
.hero {
    position: relative;
    height: 75vh;
    /* Use 75% of viewport height */
    min-height: 500px;
    /* Fallback for short but wide screens */
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    overflow: hidden;
    z-index: 10;
    /* Set stacking order */
}

/* 動画コンテナ: 中央配置 */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    background: #ffffff;
    transition: background 0.5s ease;
}

/* 動画読み込み前のブラー背景（サムネイル） */
.hero-video-container::before {
    content: "";
    position: absolute;
    /* ブラーの端が切れないように少し広げる */
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--hero-thumbnail) center/cover no-repeat;
    filter: blur(20px);
    z-index: 1;
    transition: opacity 1.5s ease;
    opacity: 1;
    transform: scale(1.1);
}

/* 動画再生開始後にブラー背景を消すクラス */
.hero-video-container.video-playing::before {
    opacity: 0;
    pointer-events: none;
}

/* 動画エラー時または再生不可時のフォールバック背景 */
.hero-video-container.video-error {
    background-color: #ffffff;
    background-image: var(--hero-thumbnail);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* エラー時はiframeを完全に非表示にする（ブラウザのエラー画面を見せないため） */
.hero-video-container.video-error iframe {
    display: none !important;
}

/* iFrame: アスペクト比を維持しつつカバーするように拡大 */
.hero-video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    z-index: 2;
    /* ブラー背景(z-index:1)より上に表示 */
    height: 56.25vw;
    /* 16:9 Aspect Ratio */
    min-height: 75vh;
    /* Match hero height */
    min-width: 177.77vh;
    /* 400px * 16/9 based calc fallback */
    transform: translate(-50%, -50%) scale(1.35);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    /* YouTubeの標準再生ボタンや読み込みUIを再生開始前に見せない */
    transition: opacity 0.5s ease;
}

/* 動画が再生されたら表示 */
.hero-video-container iframe.loaded {
    opacity: 1;
    visibility: visible;
}

/* loadedクラスが外れたら即座に透明にする */
.hero-video-container iframe:not(.loaded) {
    transition: none;
    opacity: 0;
    visibility: hidden;
}

/* モバイル調整: 高さが足りない場合の補正 */
@media (min-aspect-ratio: 16/9) {
    .hero-video-container iframe {
        height: 56.25vw;
        min-height: 100%;
    }
}

@media (max-aspect-ratio: 16/9) {
    .hero-video-container iframe {
        width: 177.78vh;
        min-width: 100%;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            var(--bg-color) 0%,
            transparent 15%,
            transparent 85%,
            var(--bg-color) 100%);
    z-index: 3;
    /* iframe(z=2)より上に表示 */
    pointer-events: none;
    /* 動画のクリックを邪魔しないように */
}

.hero-content {
    position: relative;
    z-index: 4;
    /* 最前面 */
    animation: popIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.main-title {
    font-size: clamp(2.2rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;

    /* 文字色のグラデーション化 */
    background: linear-gradient(to bottom, #fff 0%, #b3e5fc 50%, #4fc3f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    /* 標準プロパティを追加 */
    -webkit-text-fill-color: transparent;

    /* テキストの縁取りと立体感 (複数レイヤーのシャドウ) */
    filter: drop-shadow(0 4px 10px rgba(79, 195, 247, 0.5));
    text-shadow:
        3px 3px 0px rgba(3, 169, 244, 0.4),
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff;

    line-height: 1.1;
    animation: titleFloat 3s ease-in-out infinite;
}

@keyframes titleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-cta {
    margin-top: 1rem;
    display: flex;
    gap: 0.8rem;
    justify-content: center;
}

.btn-primary-cta,
.btn-secondary-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.4rem;
    border-radius: 28px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid #fff;
    box-shadow: 6px 6px 0px var(--primary-dark);
    color: #fff;
}

.btn-primary-cta {
    background: var(--primary-color);
}

.btn-secondary-cta {
    background: var(--accent-color);
}

.btn-primary-cta:hover,
.btn-secondary-cta:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--primary-dark);
}

@media (max-width: 768px) {
    .hero-cta {
        flex-wrap: wrap;
    }

    .btn-primary-cta,
    .btn-secondary-cta {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   プロフィールセクション (Profile Section)
   ========================================================================== */
.profile {
    padding: 0;
    border-radius: 60px;
    background: var(--glass-bg);
    border: 4px solid var(--primary-color);
    box-shadow: 8px 8px 0px var(--primary-dark);
    /* くっきりした影 */
    overflow: visible;
    margin: 6rem auto 3rem;
    /* 横幅いっぱいに使う */
    width: 100%;
    max-width: 900px;
    /* 安定の横幅 */
    position: relative;
    text-align: center;
}

/* けも耳装飾 - センター基準で固定 */
.profile::before,
.profile::after {
    content: "";
    position: absolute;
    top: -28px;
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border: 4px solid var(--primary-color);
    border-radius: 30px 30px 0 0;
    z-index: -1;
}

.profile::before {
    left: 40px;
    transform: rotate(-15deg);
}

.profile::after {
    right: 40px;
    transform: rotate(15deg);
}

/* モバイル対応：プロフィール */
@media (max-width: 768px) {
    .profile {
        margin: 4rem auto 2rem;
        width: calc(100% - 20px);
        /* 左右に10pxずつの余白を確保 */
        border-radius: 40px;
        border-width: 3px;
        box-shadow: 6px 6px 0px var(--primary-dark);
    }

    .profile::before,
    .profile::after {
        width: 60px;
        height: 60px;
        top: -22px;
        border-width: 3px;
    }

    .profile::before {
        left: 20px;
    }

    .profile::after {
        right: 20px;
    }
}

.profile-inner {
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    background-image: radial-gradient(var(--primary-color) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    background-color: #fff;
    /* 背景を白にしてコントラストを出す */
    position: relative;
    border-radius: 54px;
    /* 親より少し小さくして内枠を作る */
    margin: 6px;
}

@media (max-width: 768px) {
    .profile-inner {
        padding: 3rem 1.2rem 2rem;
        border-radius: 36px;
        gap: 1.5rem;
        width: 100%;
        overflow: hidden;
        /* 中身のはみ出しを防止 */
    }
}

/* プロフィール内の角の装飾 */
.profile-inner::before {
    content: var(--profile-corner-top, "");
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.5rem;
    opacity: 0.2;
}

.profile-inner::after {
    content: var(--profile-corner-bottom, "");
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 1.5rem;
    opacity: 0.2;
}

.profile-name {
    font-size: clamp(1.6rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.name-kana {
    display: block;
    font-size: 1rem;
    color: var(--secondary-color);
    letter-spacing: 0.1em;
    margin-bottom: 0.2rem;
    font-weight: 700;
    -webkit-text-fill-color: var(--secondary-color);
    /* グラデーション打ち消し */
    background: none;
}

.profile-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
}

.profile-badge-row {
    display: flex;
    justify-content: center;
    width: 100%;
}

.debut-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    max-width: 100%;
    padding: .15rem .1rem;
    color: var(--text-color);
}

.debut-text {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-width: 0;
}

.debut-label {
    color: var(--primary-dark);
    padding-right: .65rem;
    border-right: 2px solid rgba(3, 155, 229, .28);
    font-family: var(--font-outfit);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .16em;
    line-height: 1;
}

.debut-date {
    color: var(--text-color);
    font-size: clamp(.92rem, calc(.82rem + .3vw), 1.05rem);
    font-weight: 800;
    letter-spacing: .035em;
    line-height: 1.25;
}

.debut-icon:empty {
    display: none;
}

@media (max-width: 768px) {
    .profile-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .debut-badge {
        gap: .5rem;
    }

    .debut-text {
        gap: .5rem;
    }

    .debut-label {
        padding-right: .5rem;
    }
}

.stats-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.stat-bubble {
    background: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    border: 3px solid var(--primary-color);
    box-shadow: 4px 4px 0px var(--primary-dark);
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 120px;
}

@media (max-width: 576px) {
    .stat-bubble {
        min-width: calc(50% - 12px);
        padding: 8px 12px;
        font-size: 0.85rem;
        gap: 5px;
    }
}

.stat-label {
    margin-bottom: 0;
    font-size: 0.8rem;
}

.stat-value {
    font-size: 1.1rem;
}

.profile-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2.5rem;
}

.social-link {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 4px solid #fff;
    box-shadow: 6px 6px 0px var(--primary-dark);
}

@media (max-width: 768px) {
    .profile-socials {
        flex-wrap: wrap;
        gap: 10px;
        padding: 0 10px;
    }

    .social-link {
        padding: 10px 20px;
        font-size: 0.9rem;
        flex: 1 1 calc(50% - 10px);
        min-width: 140px;
        justify-content: center;
    }
}

.social-link:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--primary-dark);
}

.stat-label {
    color: var(--primary-dark);
    margin-bottom: 5px;
    opacity: 0.8;
}

.stat-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-color);
    word-break: break-all;
}

.first-stream-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* First Stream Card */
.first-stream-card {
    display: flex;
    margin: 1.5rem auto 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--accent-color);
    border-radius: 30px;
    overflow: visible;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(255, 158, 128, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 380px;
    position: relative;
    min-height: 90px;
}

.first-stream-card::after {
    /* キラキラアイコン装飾 */
    content: var(--first-stream-corner, "");
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5rem;
    transform: rotate(15deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0) rotate(15deg);
    }

    50% {
        transform: translateY(-5px) rotate(15deg);
    }
}

.first-stream-card {
    background: #fff;
    border: 4px solid var(--accent-color);
    border-radius: 40px;
    box-shadow: 0 8px 0px var(--accent-color);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.first-stream-card:hover {
    transform: translateY(3px);
    box-shadow: 0 2px 0px var(--accent-color);
}

.first-stream-thumb {
    width: 130px;
    /* 少し横幅を広げる */
    position: relative;
    flex-shrink: 0;
    border-right: 3px solid var(--accent-color);
    background: #000;
    border-radius: 21px 0 0 21px;
    /* 24px - 3px border = 21px fits perfectly */
    overflow: hidden;
}

.first-stream-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.first-stream-card:hover .first-stream-thumb img {
    transform: scale(1.1);
}

.first-stream-text {
    padding: 0.8rem 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.fs-badge {
    font-size: 0.7rem;
    color: #fff;
    background: var(--accent-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    align-self: flex-start;
}

@media (max-width: 768px) {
    .fs-badge {
        font-size: 0.6rem;
        padding: 1px 8px;
    }
}

.fs-title {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 800;
    line-height: 1.3;
}

/* ==========================================================================
   動画セクション (Videos Section)
   ========================================================================== */
.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-shadow: 3px 3px 0 #fff, 5px 5px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
}

#featured,
#latest {
    position: relative;
    z-index: 1;
    /* Set stacking order */
}

.video-grid {
    display: grid;
    gap: 1.5rem;
}

.video-grid-featured {
    --featured-columns: 2;
    --featured-gap: clamp(1rem, 2vw, 1.5rem);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--featured-gap);
    max-width: 980px;
    margin-inline: auto;
}

.video-grid-featured > .video-grid-item {
    flex: 0 1 calc((100% + var(--featured-gap)) / var(--featured-columns) - var(--featured-gap));
    display: flex;
    height: auto;
}

.video-grid-featured-has-lead > .video-grid-item:first-child,
.video-grid-featured > .wp-empty-message {
    flex-basis: 100%;
}

.video-grid-featured .video-card {
    width: 100%;
}

@media (min-width: 992px) {
    .video-grid-featured-dense {
        --featured-columns: 3;
        max-width: 1120px;
    }
}

.video-grid-latest {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.video-grid-item,
.video-grid-item .video-card {
    min-width: 0;
    height: 100%;
}

@media (max-width: 991px) {
    .video-grid-latest {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .video-grid-latest {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .video-grid-latest {
        grid-template-columns: 1fr;
    }

    .video-grid-featured {
        --featured-columns: 1;
    }
}

.video-card {
    background: #fff;
    border-radius: 40px !important;
    border: 4px solid var(--primary-color);
    /* 水色の縁取り */
    box-shadow: 6px 6px 0px var(--primary-dark);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

@media (max-width: 768px) {
    .video-card {
        border-radius: 30px !important;
        border-width: 3px;
        box-shadow: 4px 4px 0px var(--primary-dark);
    }
}

/* Featured Card Style (Fixed Videos) */
.featured-card {
    border: 4px solid var(--primary-color);
    background: #fff;
}

/* Badge for Featured/PV/Live */
.video-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-dark);
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.75rem;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
    letter-spacing: 0.5px;
}

.video-card:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 15px 35px var(--shadow-color);
    z-index: 10;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.video-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.play-icon.small {
    width: 36px;
    height: 36px;
    border: 2px solid #fff;
}

.play-icon::after {
    content: "";
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 18px solid var(--primary-color);
    margin-left: 5px;
    transition: border-left-color 0.3s;
}

.play-icon.small::after {
    border-left-width: 10px;
    border-top-width: 6px;
    border-bottom-width: 6px;
    margin-left: 3px;
}

.video-card:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.2);
    background: var(--accent-color);
}

.video-card:hover .play-icon::after {
    border-left-color: #fff;
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 800;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    font-size: 0.85rem;
    font-weight: 700;
    color: #90a4ae;
    background: #eceff1;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
}

/* ==========================================================================
   フッター (Footer)
   ========================================================================== */
/* ==========================================================================
   ローディング画面 (Loading Screen)
   ========================================================================== */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s;
}

#loader-wrapper.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: floating 2s ease-in-out infinite;
    display: inline-block;
}

.loader-content p {
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 0.1em;
    font-size: 1.2rem;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

footer {
    background: #fff;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 2rem;
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: #fff;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.copyright {
    color: #90a4ae;
    font-weight: 700;
}

@media (max-width: 768px) {
    .footer-links {
        flex-wrap: wrap;
        gap: 0.8rem;
        justify-content: center;
    }
}

/* ==========================================================================
   アニメーション (Animations)
   ========================================================================== */
@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    80% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

.reveal {
    --reveal-x: 0px;
    --reveal-y: 34px;
    --reveal-scale: 1;
    opacity: 0;
    transform:
        translate3d(var(--reveal-x), var(--reveal-y), 0)
        scale(var(--reveal-scale));
    transition:
        opacity 0.85s ease,
        transform 0.95s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}

.reveal-left {
    --reveal-x: -42px;
    --reveal-y: 0px;
}

.reveal-right {
    --reveal-x: 42px;
    --reveal-y: 0px;
}

.reveal-scale {
    --reveal-y: 16px;
    --reveal-scale: 0.965;
}

.reveal.active {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

/* ==========================================================================
   クリックエフェクト (Paw Click Effect)
   ========================================================================== */
.click-paw {
    position: fixed;
    pointer-events: none;
    font-size: 2.2rem;
    z-index: 99999;
    user-select: none;
    animation: pawAnim 0.8s ease-out forwards;
}

@keyframes pawAnim {
    0% {
        transform: translate(-50%, -50%) scale(0.5) rotate(-15deg);
        opacity: 0;
    }

    20% {
        transform: translate(-50%, -50%) scale(1.2) rotate(10deg);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5) translateY(-40px);
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .main-title {
        font-size: 2.5rem;
    }

    .hero {
        height: 450px;
    }

    .hero-video-container iframe {
        /* Mobile Specific Zoom */
        transform: translate(-50%, -50%) scale(1.8);
    }
}

/* ==========================================================================
   レスポンシブ調整 (Responsive Adjustments) - 大きい幅から順に
   ========================================================================== */

/* タブレット・中画面 (PC以下〜1200px) */
@media (max-width: 1200px) {
    .main-title {
        font-size: 3.5rem;
    }

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

}

/* スマホ・タブレット (1024px以下) */
@media (max-width: 1024px) {
    .profile {
        padding: 2rem 1rem;
        margin: 2rem 0.5rem 0;
        border-radius: 20px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    /* 初配信カード */
    .first-stream-card {
        max-width: 100%;
    }

    .first-stream-thumb {
        flex-shrink: 1;
        width: 30%;
    }

    .stat-label {
        font-size: 0.65rem;
        white-space: nowrap;
    }

    /* Hide scrollbar on mobile */
    ::-webkit-scrollbar {
        display: none;
    }

    /* News Section モバイル調整 */
    .news {
        padding: 2rem 1rem;
    }

    .news .section-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    /* ニュース項目のレイアウト調整（モバイルも共通のFlexレイアウトを使用） */
    .news-item {
        padding: 1rem;
    }

    .news-item-meta {
        margin-bottom: 0;
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    .news-tag {
        padding: 0.15rem 0.5rem;
        font-size: 0.7rem;
    }

    .new-badge {
        padding: 1px 5px;
        font-size: 0.65rem;
    }

    /* スマホ・タブレットのみ横スクロール対応 (Cross-browser compatible) */
    .news-item-title {
        flex: 1;
        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        /* iOS Safari用スムーズスクロール */
        scrollbar-width: none;
        /* Firefox用非表示 */
        min-width: 0;
        font-size: 0.95rem;
    }

    /* 矢印自体のスタイル */
    .news-arrow {
        font-size: 1.5rem;
    }

}

/* ==========================================================================
   超小型端末向け調整 (Ultra Small Devices - e.g., Rakuten Mini)
   ========================================================================== */
@media (max-width: 360px) {
    section {
        padding: 4rem 1.25rem;
        /* Slightly more side room */
    }

    /* Hero adjustments */
    .main-title {
        font-size: 2.2rem;
        letter-spacing: 0.1em;
    }

    /* Profile adjustments */
    .profile {
        padding: 1.5rem 0.75rem;
        margin: 2rem 0.25rem 0;
        border-radius: 16px;
    }

    .profile-name {
        font-size: 7vw;
    }

    /* Section Title adjustments */
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }

    .video-info {
        padding: 1rem;
    }

    .video-title {
        font-size: 1rem;
    }

    /* First Stream Card adjustments (Keep Horizontal) */
    .first-stream-card {
        flex-direction: row;
        /* 横並びを維持 */
        width: 100%;
        max-width: 320px;
        /* 344px等の幅に対して余裕を持たせる */
    }

    .first-stream-thumb {
        width: 80px;
        /* サムネイルを小さくしてスペース確保 */
        border-right: 2px solid var(--accent-color);
        border-bottom: none;
    }

    .first-stream-thumb img {
        border-radius: 21px 0 0 21px;
        /* 極小画面でも指定 */
    }

    .first-stream-text {
        padding: 0.5rem 0.8rem;
        text-align: left;
    }

    .fs-title {
        font-size: 0.85rem;
        /* 文字を小さくして収める */
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .social-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }

    /* Footer adjustments */
    footer {
        padding: 3rem 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

}

/* ==========================================================================
   大型・高解像度モニター向け調整 (Large Screens - 2K/4K)
   ========================================================================== */
@media (min-width: 1600px) {
    section {
        max-width: 1400px;
        padding: 8rem 2rem;
    }

    .main-title {
        font-size: 6rem;
    }

    .profile {
        padding: 5rem;
        gap: 6rem;
    }

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

@media (min-width: 2500px) {
    html {
        font-size: 20px;
        /* Increase base font size for 4K */
    }

    section {
        max-width: 1800px;
    }

    .main-title {
        font-size: 8rem;
    }

    .hero {
        height: 85vh;
        /* More immersive hero on big screens */
    }

    .video-title {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   フローティング装飾 (Floating Ornaments) 
   ========================================================================== */
.ornament {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    font-size: 3.5rem;
    opacity: 0.12;
    /* さらに控えめに */
    user-select: none;
    filter: blur(1.5px);
    transition: transform 0.5s ease-out;
    /* よりゆったり動かします */
}

@keyframes ornamentFloat {

    0%,
    100% {
        margin-top: 0;
        margin-left: 0;
    }

    50% {
        margin-top: -5px;
        margin-left: 3px;
    }

    /* 動きを最小限に */
}

/* 個別位置と「超低速」スピード設定 */
.orn-1 {
    --scroll-speed: 0.035;

    top: 15%;
    left: 3%;
    --base-rotate: -15deg;
    --speed: 8;
}

.orn-2 {
    --scroll-speed: -0.025;

    top: 40%;
    right: 5%;
    --base-rotate: 15deg;
    --speed: 12;
}

.orn-3 {
    --scroll-speed: 0.02;

    bottom: 20%;
    left: 7%;
    --base-rotate: 10deg;
    --speed: 10;
}

.orn-4 {
    --scroll-speed: -0.04;

    top: 70%;
    right: 10%;
    --base-rotate: -20deg;
    --speed: 15;
}

.orn-5 {
    --scroll-speed: 0.03;

    top: 8%;
    left: 25%;
    --base-rotate: 15deg;
    --speed: 6;
}

.orn-1,
.orn-2,
.orn-3,
.orn-4,
.orn-5 {
    transform: translate3d(var(--mx, 0), calc(var(--my, 0) + var(--scroll-y, 0px)), 0) rotate(calc(var(--base-rotate) + var(--mr, 0deg)));
    animation: ornamentFloat 8s infinite ease-in-out;
}

.news.reveal {
    transition-delay: 0s;
    transition-duration: 0.6s;
}

/* NewsとFeaturedの間隔調整 (少し緩和) */
.news {
    padding-bottom: 2rem;
    position: relative;
    z-index: 10;
    /* 重なり順を上げてはみ出し制御を安定させる */
}

#featured {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

#latest {
    padding-top: 2rem;
}

/* ==========================================================================
   Stream Status Section (LIVE / LATEST ARCHIVE)
   ========================================================================== */
/* Stream Section inherits default <section> styles */

.stream-card-container {
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    border: 3px solid var(--primary-color);
    border-radius: 30px;
    box-shadow: 6px 6px 0px var(--primary-dark);
    overflow: hidden;
    transition: all 0.3s ease;
}

.stream-card-container:hover {
    transform: translateY(-4px);
    box-shadow: 8px 8px 0px var(--primary-dark);
}

.stream-badge-container {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.badge-text {
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: var(--font-outfit);
}

.badge-text.archive {
    color: var(--text-color);
}

.stream-main-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    padding: 2rem;
    align-items: center;
}

.stream-preview {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stream-preview:hover {
    transform: scale(1.02);
}

.preview-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    overflow: hidden;
    background: #000;
}

.preview-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.stream-preview:hover .preview-thumb img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stream-preview:hover .play-overlay {
    opacity: 1;
}

.play-btn-circle {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.stream-preview:hover .play-btn-circle {
    transform: scale(1.1);
    background: var(--accent-color);
}

.stream-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stream-display-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.4;
    margin: 0;
    font-family: var(--font-body);
}

.stream-actions {
    display: flex;
    gap: 1rem;
}

.btn-watch-yt {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #ff0000;
    color: #fff;
    font-weight: 700;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 #cc0000;
}

.btn-watch-yt:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #cc0000;
    color: #fff;
}

.btn-watch-yt:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #cc0000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stream-main-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .stream-display-title {
        font-size: 1.2rem;
    }

    .badge-text {
        font-size: 1.1rem;
    }

    .play-btn-circle {
        width: 60px;
        height: 60px;
    }

}

@media (max-width: 480px) {
    .stream-section {
        padding: 2rem 1rem;
    }

    .stream-card-container {
        border-radius: 20px;
    }

    .stream-badge-container {
        padding: 0.8rem;
    }

    .badge-text {
        font-size: 1rem;
    }

    .stream-display-title {
        font-size: 1.1rem;
    }

    .btn-watch-yt {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    footer {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    }
}

/* NEWS Section - Card-based List */
.news-list-container {
    /* Remove background and borders from the container */
    background: none;
    border: none;
    box-shadow: none;
}

.news-item {
    background: #fff;
    border: 3px solid var(--primary-color);
    border-radius: 25px;
    box-shadow: 4px 4px 0px var(--primary-dark);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    /* PCでは中央揃え */
    gap: 0.5rem 0.8rem;
    /* 間隔を狭めて「すぐ横」感を出す */
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    width: 100%;
}

@media (max-width: 768px) {
    .news-list-container {
        padding: 0 4px;
        width: 100%;
        max-width: 100vw;
        /* 画面外へのはみ出しを確実に防止 */
        overflow: hidden;
    }

    .news-item {
        width: 100%;
        padding: 0.8rem 1.2rem;
        /* 余白を増やして見やすく */
        gap: 0.5rem;
        border-radius: 12px;
        margin-left: 0;
        margin-right: 0;
        overflow: hidden;
        flex-direction: column;
        align-items: flex-start;
    }

    .news-item-meta {
        gap: 0.4rem;
        flex-shrink: 0;
        margin-bottom: 0.2rem;
        font-size: 0.85rem;
    }

    .news-date {
        font-size: 0.7rem;
        /* 文字を少し下げて幅を節約 */
        letter-spacing: -0.03em;
        opacity: 0.7;
    }

    .news-tag {
        font-size: 0.65rem;
        padding: 1px 5px;
        white-space: nowrap;
    }

    .news-item-title {
        font-size: 0.98rem;
        flex: 1;
        min-width: 0;
        white-space: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        position: relative;
        display: block !important;
        touch-action: pan-x;
        overscroll-behavior-x: contain;
        text-shadow: none;
        /* テキストシャドウを無効化 */
        filter: none;
        /* フィルター効果を無効化 */
        background: none;
        /* 背景を無効化（グラデーション対策）*/
        -webkit-background-clip: unset;
        /* テキストクリップがある場合に対応 */
        background-clip: unset;
        -webkit-text-fill-color: unset;
        /* テキストフィルカラーがある場合に対応 */
        color: var(--text-color);
        /* テキストフィルカラーを解除した場合に色を確保 */
    }

    .news-item-title::-webkit-scrollbar {
        display: none;
    }

    .news-item-title {
        scrollbar-width: none;
    }

    .news-item-title::before,
    .news-item-title::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 18px;
        pointer-events: none;
    }

    .news-item-title::before {
        left: 0;
        background: none;
    }

    .news-item-title::after {
        right: 0;
        background: none;
    }

    .new-badge {
        font-size: 0.6rem;
        padding: 1px 3px;
        margin-left: -2px;
    }

    .news-item-arrow {
        opacity: 0.5;
        font-size: 1.2rem;
        align-self: flex-end;
        margin-top: 0.2rem;
    }

}

.news-item.has-link {
    cursor: pointer;
}

.news-item.has-link:hover {
    transform: translateX(10px);
    background: var(--bg-color);
}

.news-item-meta {
    display: inline-flex;
    /* 普通のFlexだと幅を取りすぎることがあるためinline-flexに */
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.75rem;
    flex: 0 0 auto;
}

.news-date {
    font-weight: 700;
    color: var(--date-text-color, var(--primary-dark));
}

.news-tag {
    padding: 0.2rem 0.6rem;
    background: var(--accent-color);
    color: #fff;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-block;
}

.new-badge {
    background: var(--primary-dark);
    color: #fff;
    font-family: var(--font-rounded);
    font-weight: 800;
    letter-spacing: .03em;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    display: inline-block;
    transform: rotate(-2deg);
    transform-origin: center;
}

.pinned-badge {
    display: inline-flex;
    align-items: center;
    padding: .18rem .55rem;
    border: 1px solid var(--pinned-color);
    border-radius: 999px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.25;
}

.news-item.is-pinned {
    border-color: var(--pinned-color);
    background: var(--card-bg);
}

.news-item-title {
    font-weight: 700;
    line-height: 1.5;
    flex: 0 1 auto;
    /* 広がらないようにして、タイトルのすぐ横に矢印が来るようにする */
    margin-right: 0;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    /* 画面幅に応じて文字サイズを柔軟に調整 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-wrap: balance;
    line-break: strict;
    word-break: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.news-arrow {
    font-weight: bold;
    color: var(--primary-dark);
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.news-item.has-link:hover .news-arrow {
    transform: translateX(5px);
}

/* ==========================================================================
   Video Modal (動画モーダル)
   ========================================================================== */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    display: flex;
    opacity: 1;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    box-sizing: border-box;
    padding: 8px;
    background: #000;
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid var(--primary-color);
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-modal-close:hover {
    background: var(--accent-color);
    transform: rotate(90deg) scale(1.1);
}

.video-modal-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 0;
    overflow: visible;
}

.video-modal-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Video card cursor */
.video-card[data-video-id] {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card[data-video-id]:hover {
    transform: translateY(-5px);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
        padding: 4px;
        border-radius: 15px;
    }

    .video-modal-close {
        top: -45px;
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
}

/*
 * YouTube埋め込みの表示領域は装飾で切り取らない。
 * 390px以下では16:9比率よりも公式の最低表示高200pxを優先する。
 */
@media (max-width: 390px) {
    .video-modal-player {
        height: 200px;
        min-height: 200px;
        padding-bottom: 0;
    }
}

/* カードのホバー時微調整 (輝きは削除) */
.video-card:hover,
.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    /* 影を柔らかく */
}

/* 背景の動く光の玉 (Animated Blobs) */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
    animation: blobMove 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-color);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
    animation-duration: 25s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #b3e5fc;
    top: 40%;
    left: 60%;
    animation-delay: -10s;
    animation-duration: 30s;
}

@keyframes blobMove {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20px, 30px) scale(1.1);
    }

    /* 動きを小さく */
    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* セクションタイトルの強化 */
.section-title {
    position: relative;
    padding-bottom: 20px;
    display: block;
    margin: 0 auto 1.5rem;
    width: fit-content;
    text-align: center;
}

/* タイトルをさらにかわいく */
.section-title {
    font-family: var(--font-body);
    font-weight: 800;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 58px;
    height: 4px;
    transform: translateX(-50%);
    background: var(--primary-dark);
    border-radius: 999px;
}

.nav-link:focus-visible,
.social-icon:focus-visible,
.video-card:focus-visible,
.footer-links .menu a:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--accent-color);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================================
   WordPress integration additions
   ========================================================================== */
.screen-reader-text {
    position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
.nav-mobile-label {
    display: none;
}
.skip-link:focus {
    position:fixed!important;top:8px;left:8px;width:auto;height:auto;padding:10px 14px;margin:0;clip:auto;z-index:99999;background:#fff;color:#222;border:2px solid var(--primary-color);border-radius:8px;
}
.wp-content-wrap {
    width: min(1000px, calc(100% - 48px));
    margin: 110px auto 80px;
    position: relative;
    z-index: 2;
}
.wp-entry-card {
    background: var(--card-bg);
    border: 4px solid var(--primary-color);
    border-radius: 38px;
    box-shadow: 8px 8px 0 var(--primary-dark);
    padding: clamp(24px, 5vw, 52px);
}
.wp-entry-card + .wp-entry-card { margin-top: 36px; }
.wp-entry-title { color: var(--primary-dark); font-weight: 900; margin-bottom: 10px; }
.wp-entry-meta { color: #78909c; margin-bottom: 28px; font-weight: 700; }
.wp-entry-content { line-height: 1.9; }
.wp-entry-content > * + * { margin-top: 1.25em; }
.wp-entry-content img { border-radius: 22px; }
.wp-entry-content a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.wp-pagination { margin-top: 32px; display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
.wp-pagination .page-numbers { display:inline-flex; min-width:42px; height:42px; align-items:center; justify-content:center; padding:0 12px; border:3px solid var(--primary-color); border-radius:999px; background:#fff; font-weight:800; }
.wp-pagination .current { background:var(--primary-color); color:#fff; }
.hero-video-container.hero-static #player { display:none; }
.hero-video-container.hero-static::before { filter:none; transform:none; opacity:1; }
.hero-video-container.hero-static.video-playing::before { opacity:1; }

@media (max-width: 768px) {
    .wp-content-wrap { width:min(100% - 28px, 1000px); margin-top:80px; }
}

.footer-links .menu { display:flex; flex-wrap:wrap; justify-content:center; gap:1rem; margin:0; padding:0; list-style:none; }
.footer-links .menu li { margin:0; }
.footer-links .menu a { display:inline-block; background:var(--footer-button-bg-color); color:var(--footer-button-text-color); padding:.65rem 1.2rem; border-radius:30px; font-weight:800; text-decoration:none; box-shadow:4px 4px 0 var(--footer-button-shadow-color); transition:all .2s ease; }
.footer-links .menu a:hover { transform:translate(2px,2px); box-shadow:2px 2px 0 var(--footer-button-shadow-color); }

/* ==========================================================================
   WordPress footer menus
   ========================================================================== */
.footer-sub-links {
    margin: -0.5rem 0 1.5rem;
}

.footer-sub-links .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-sub-links a {
    color: #78909c;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.footer-sub-links a:hover,
.footer-sub-links a:focus-visible {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-links .menu,
    .footer-links .menu > li > a {
        flex: 1 1 calc(50% - 0.5rem);
    }
}

/* ==========================================================================
   Optional WordPress header menu
   ========================================================================== */
.site-topbar {
    position: absolute;
    top: 18px;
    left: 50%;
    z-index: 60;
    width: min(1120px, calc(100% - 48px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 18px;
    border: 3px solid rgba(79, 195, 247, .8);
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 4px 4px 0 var(--primary-dark);
    backdrop-filter: blur(8px);
}

.admin-bar .site-topbar {
    top: 50px;
}

.site-topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-weight: 900;
    color: var(--primary-dark);
}

.site-topbar-brand img {
    display: block;
    width: auto;
    max-height: 36px;
}

.site-topbar-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-header-menu .menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header-menu a {
    font-weight: 800;
    color: var(--text-color);
    text-decoration: none;
}

.site-header-menu a:hover,
.site-header-menu a:focus-visible {
    color: var(--primary-dark);
}

.site-header-menu a:focus-visible,
.site-topbar-brand:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .site-topbar {
        top: 10px;
        width: calc(100% - 28px);
        padding: 8px 14px;
    }

    .admin-bar .site-topbar {
        top: 56px;
    }

    .site-header-menu {
        display: none;
    }
}

/* ==========================================================================
   Shared content summary card
   ========================================================================== */
.wp-summary-link {
    color: inherit;
    text-decoration: none;
}

.wp-summary-link:hover .wp-entry-title,
.wp-summary-link:focus-visible .wp-entry-title {
    color: var(--accent-color);
}

.wp-empty-message {
    text-align: center;
    color: #78909c;
    font-weight: 700;
}

.news-item-main {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.news-item-main .news-item-title {
    min-width: 0;
    max-width: 100%;
}

.news-item-main .news-item-arrow {
    flex-shrink: 0;
    margin-left: auto;
}

.news-document-icon {
    margin-left: .5rem;
    font-size: .85em;
    color: var(--primary-color);
}

/* ==========================================================================
   Scroll motion
   ========================================================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000;
    width: 100%;
    height: 4px;
    pointer-events: none;
    background: transparent;
}

.scroll-progress-bar {
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--accent-color)
    );
    box-shadow: 0 1px 7px rgba(3, 155, 229, .35);
    will-change: transform;
}

.nav-link {
    transition:
        transform .2s ease,
        background-color .2s ease,
        color .2s ease,
        box-shadow .2s ease;
}

.nav-link.is-active {
    color: #fff;
    background: var(--primary-dark);
    transform: scale(1.08);
    box-shadow:
        0 0 0 4px #fff,
        0 0 0 7px var(--primary-color);
}

.profile.active .stat-bubble {
    animation: statBubbleIn .55s both;
}

.profile.active .stat-bubble:nth-child(1) { animation-delay: .10s; }
.profile.active .stat-bubble:nth-child(2) { animation-delay: .17s; }
.profile.active .stat-bubble:nth-child(3) { animation-delay: .24s; }
.profile.active .stat-bubble:nth-child(4) { animation-delay: .31s; }
.profile.active .stat-bubble:nth-child(5) { animation-delay: .38s; }

@keyframes statBubbleIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-content {
    transform:
        translate3d(0, var(--hero-scroll-y, 0px), 0);
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-progress {
        display: none;
    }

    .profile.active .stat-bubble {
        animation: none !important;
    }

    .hero-content,
    .ornament {
        transform: none !important;
    }
}

.admin-bar .scroll-progress {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .scroll-progress {
        top: 46px;
    }
}

/* ==========================================================================
   Compact refinement
   元の雰囲気を残しながら全体を1段階コンパクトにする
   ========================================================================== */

section {
    padding: 2rem 1.5rem;
    max-width: 1000px;
}

.hero {
    height: 68vh;
    min-height: 440px;
}

.main-title {
    font-size: clamp(2rem, 6.6vw, 5rem);
    letter-spacing: 0.11em;
}

.hero-cta {
    margin-top: .75rem;
    gap: .65rem;
}

.btn-primary-cta,
.btn-secondary-cta {
    padding: .68rem 1.15rem;
    border-width: 3px;
    border-radius: 24px;
    box-shadow: 4px 4px 0 var(--primary-dark);
}

.profile {
    border-radius: 44px;
    box-shadow: 6px 6px 0 var(--primary-dark);
}

.profile-inner {
    padding: 2.6rem 2.25rem;
    gap: 1.35rem;
    border-radius: 38px;
}

.profile-name {
    margin-bottom: .8rem;
    font-size: clamp(1.55rem, 4.2vw, 2.6rem);
}

.profile-description {
    font-size: 1.05rem;
    line-height: 1.7;
}

.profile-socials {
    margin-bottom: 1.5rem;
}

.social-link {
    padding: 9px 20px;
    border-width: 3px;
    border-radius: 24px;
    box-shadow: 4px 4px 0 var(--primary-dark);
}

.stats-list {
    gap: 10px;
}

.stat-bubble {
    min-width: 108px;
    padding: 8px 14px;
    border-width: 2px;
    border-radius: 16px;
    box-shadow: 3px 3px 0 var(--primary-dark);
}

.first-stream-card {
    max-width: 350px;
    min-height: 78px;
    margin-top: 1rem;
    border-width: 3px;
    border-radius: 28px;
    box-shadow: 0 5px 0 var(--accent-color);
}

.first-stream-thumb {
    width: 112px;
}

.section-title {
    margin-bottom: 1.1rem;
    font-size: 2.75rem;
    text-shadow: 2px 2px 0 #fff, 3px 3px 0 rgba(0, 0, 0, .08);
}

.news-item {
    border-width: 2px;
}

.video-grid {
    gap: 1.15rem;
}

.video-card {
    border-width: 3px;
    border-radius: 26px !important;
    box-shadow: 4px 4px 0 var(--primary-dark);
}

.video-info {
    padding: 1.05rem;
}

.stream-card-container {
    border-width: 2px;
    border-radius: 24px;
    box-shadow: 4px 4px 0 var(--primary-dark);
}

.stream-badge-container {
    padding: .68rem 1rem;
    background: linear-gradient(
        135deg,
        var(--archive-badge-start, var(--primary-color)) 0%,
        var(--archive-badge-end, var(--accent-color)) 100%
    );
}

.badge-text {
    font-size: 1.05rem;
    letter-spacing: .12em;
}

.badge-text.archive {
    color: var(--archive-badge-text, var(--text-color));
}

.stream-main-content {
    gap: 1.4rem;
    padding: 1.4rem;
}

.stream-preview {
    border-radius: 16px;
}

footer {
    padding: 2.25rem 1.5rem;
}

@media (max-width: 768px) {
    section {
        padding: 1.7rem 1rem;
    }

    .hero {
        height: 60vh;
        min-height: 390px;
    }

    .profile-inner {
        padding: 2.1rem 1.1rem 1.6rem;
        gap: 1.15rem;
        border-radius: 28px;
    }

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

    .video-card {
        border-radius: 22px !important;
    }

    .stream-main-content {
        padding: 1rem;
        gap: 1rem;
    }
}

/* ==========================================================================
   Current layout refinements
   ========================================================================== */

/* 右側ナビから移動した時に見出しが画面上端へ貼り付かないようにする。 */
#top,
#profile,
#news,
#stream-status,
#featured,
#latest {
    scroll-margin-top: 90px;
}

#top {
    scroll-margin-top: 0;
}

/* 最新動画はPCで4列。文字サイズだけ画面幅に合わせて滑らかに調整する。 */
.video-grid-latest {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.video-info {
    padding: 1.15rem 1.2rem 1.25rem;
    background: #fff;
    border-top: 2px solid #e1f5fe;
}

.video-title,
.video-grid-featured .video-title {
    margin-bottom: .65rem;
    color: #37474f;
    font-size: clamp(1.06rem, .98rem + .35vw, 1.25rem);
    font-weight: 800;
    line-height: 1.55;
    letter-spacing: .01em;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    margin-top: .15rem;
}

/* フッターSNSは専用設定にURLがある場合だけPHP側で出力する。 */
.footer-link-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 680px);
    margin: 1.25rem auto;
}

.footer-link-group {
    min-width: 0;
    padding: .25rem clamp(.8rem, 3vw, 2rem);
    text-align: center;
}

.footer-link-group + .footer-link-group {
    border-left: 1px solid rgba(79, 195, 247, .28);
}

.footer-link-group:only-child {
    grid-column: 1 / -1;
}

.footer-social-label,
.footer-admin-label {
    margin-bottom: .65rem;
    color: #78909c;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.yowane-footer-official-links,
.footer-admin-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .7rem;
}

.footer-social-link {
    display: inline-block;
    padding: .55rem 1rem;
    border-radius: 999px;
    background: var(--footer-button-bg-color);
    color: var(--footer-button-text-color);
    font-weight: 800;
    box-shadow: 3px 3px 0 var(--footer-button-shadow-color);
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 var(--footer-button-shadow-color);
}

.footer-admin-name {
    margin-bottom: .65rem;
    font-weight: 800;
}

@media (max-width: 520px) {
    .footer-link-groups {
        width: 100%;
    }

    .footer-link-group {
        padding-inline: .55rem;
    }

    .footer-social-label,
    .footer-admin-label {
        font-size: .68rem;
        letter-spacing: .08em;
    }

    .yowane-footer-official-links,
    .footer-admin-links {
        gap: .45rem;
    }

    .footer-social-link {
        padding: .48rem .72rem;
        font-size: .8rem;
    }
}

/* PCでは横幅を少し広く使う。右側フローティングナビの余白は残す。 */
@media (min-width: 992px) {
    section {
        width: calc(100% - 160px);
        max-width: 1220px;
    }
}

@media (min-width: 1600px) {
    section {
        max-width: 1280px;
    }
}

@media (max-width: 991px) {
    .video-grid-latest {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    #profile,
    #news,
    #stream-status,
    #featured,
    #latest {
        scroll-margin-top: 24px;
    }
}

@media (max-width: 575px) {
    .video-grid-latest {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Footer bottom layout
   ========================================================================== */

/*
 * 内容が少ないページではフッターを画面下まで押し下げる。
 * position: fixed は使わないので、長いページでは通常どおり本文の後に続く。
 */
body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

main#main {
    flex: 1 0 auto;
}

footer {
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
}

/* ==========================================================================
   Loading screen cleanup
   ========================================================================== */

#loader-wrapper .loader-content::before,
#loader-wrapper .loader-content::after,
#loader-wrapper .loader-icon::before,
#loader-wrapper .loader-icon::after {
    content: none !important;
    display: none !important;
}

/* ==========================================================================
   Local inline SVG icons
   ========================================================================== */

.ui-icon {
    width: 1em;
    height: 1em;
    max-width: 1em;
    max-height: 1em;
    display: inline-block;
    flex: 0 0 auto;
    vertical-align: -0.125em;
    overflow: visible;
}

.nav-link .ui-icon {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.nav-link:hover .ui-icon {
    transform: scale(1.05);
}

.nav-link.active .ui-icon,
.nav-link.is-active .ui-icon {
    animation: none;
}

.play-btn-circle .ui-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-left: 5px;
}

.stream-preview:hover .play-btn-circle .ui-icon {
    color: #fff;
}

.btn-watch-yt .ui-icon {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .nav-link .ui-icon,
    .social-icon .ui-icon {
        width: 1rem;
        height: 1rem;
        max-width: 1rem;
        max-height: 1rem;
    }

    .play-btn-circle .ui-icon {
        font-size: 2rem;
    }
}

/* ==========================================================================
   Local hero video
   ========================================================================== */

.hero-video-container video#hero-local-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease;
}

.hero-video-container video#hero-local-video.loaded {
    opacity: 1;
    visibility: visible;
}

.hero-video-container.video-error video#hero-local-video {
    display: none !important;
}

/* ==========================================================================
   Hero title appearance settings
   ========================================================================== */

.hero {
    box-sizing: border-box;
}

.hero.hero-title-position-top {
    justify-content: flex-start;
    padding-top: clamp(5rem, 11vh, 8rem);
}

.hero.hero-title-position-middle {
    justify-content: center;
}

.hero.hero-title-position-bottom {
    justify-content: flex-end;
    padding-bottom: clamp(4rem, 9vh, 7rem);
}

.main-title.hero-title-font-rounded {
    font-family: var(--font-rounded);
}

.main-title.hero-title-font-gothic {
    font-family:
        "Yu Gothic UI",
        "Yu Gothic",
        "Hiragino Kaku Gothic ProN",
        Meiryo,
        sans-serif;
}

.main-title.hero-title-font-mincho {
    font-family:
        "Yu Mincho",
        "Hiragino Mincho ProN",
        "Hiragino Mincho Pro",
        serif;
}

.main-title.hero-title-font-outfit {
    font-family: var(--font-outfit);
}

@media (max-width: 767px) {
    .hero.hero-title-position-top {
        padding-top: clamp(4rem, 9vh, 6rem);
    }

    .hero.hero-title-position-bottom {
        padding-bottom: clamp(3rem, 7vh, 5rem);
    }
}

/* セクション間のリズムを統一 */
#news,
#stream-status,
#featured,
#latest {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
}

/* 英字の長い LATEST VIDEOS だけ一段小さくし、横への圧迫感を抑える */
#latest .section-title {
    font-size: clamp(2.15rem, 3.3vw, 2.75rem);
    letter-spacing: .025em;
    margin-bottom: 1.35rem;
}

/* FEATURED は主役感を残す */
#featured .section-title {
    font-size: clamp(2.35rem, 3.6vw, 2.9rem);
}

/* 4列時のLATESTカードは本文を少し締めて、サムネとの比率を整える */
.video-grid-latest .video-info {
    padding: .95rem 1rem 1.05rem;
}

.video-grid-latest .video-title {
    font-size: clamp(.96rem, .9rem + .18vw, 1.08rem);
    line-height: 1.5;
    margin-bottom: .5rem;
}

/* 最終段まで同じ密度で見えるようカードの情報部を安定させる */
.video-grid-latest .video-card {
    height: 100%;
}

@media (max-width: 991px) {
    #news,
    #stream-status,
    #featured,
    #latest {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    #latest .section-title {
        font-size: 2.15rem;
    }
}

@media (max-width: 768px) {
    #news,
    #stream-status,
    #featured,
    #latest {
        padding-top: 1.8rem;
        padding-bottom: 1.8rem;
    }

    #featured .section-title,
    #latest .section-title {
        margin-bottom: 1.15rem;
    }

    #latest .section-title {
        font-size: 1.85rem;
        letter-spacing: .015em;
    }

    .video-grid-latest .video-info {
        padding: 1rem 1.05rem 1.1rem;
    }

    .video-grid-latest .video-title {
        font-size: 1rem;
    }
}

@media (max-width: 380px) {
    #latest .section-title {
        font-size: 1.7rem;
    }
}
/* PROFILE: fan information is treated as a compact information panel */
.stats-list {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.stat-bubble {
    min-width: 0;
    padding: 14px 12px;
    border-width: 2px;
    border-radius: 18px;
    box-shadow: 3px 3px 0 var(--primary-dark);
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    text-align: center;
}

.stat-label {
    margin: 0;
    font-size: .68rem;
    line-height: 1.2;
    letter-spacing: .06em;
    color: var(--primary-dark);
    opacity: .72;
}

.stat-value {
    font-size: .98rem;
    line-height: 1.35;
    word-break: break-word;
}

/* NEWS / FEATURED / LATEST: shared visual rhythm */
.news-list-container,
.video-grid-featured,
.video-grid-latest {
    width: 100%;
}

.video-card {
    border-radius: 28px !important;
    border-width: 3px;
    box-shadow: 5px 5px 0 var(--primary-dark);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 7px 9px 0 rgba(2, 119, 189, .18);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.035);
}

.video-info {
    min-height: 112px;
}

.video-title {
    line-height: 1.48;
}

/* Long English heading needs slightly less visual weight */
#latest .section-title {
    font-size: clamp(2rem, 3vw, 2.55rem);
    letter-spacing: .02em;
}

#featured .section-title {
    font-size: clamp(2.3rem, 3.4vw, 2.8rem);
}

@media (max-width: 991px) {
    .stats-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 650px;
    }
}

@media (max-width: 768px) {
    .video-card {
        border-radius: 24px !important;
        border-width: 2px;
        box-shadow: 4px 4px 0 var(--primary-dark);
    }

    .video-card:hover {
        transform: none;
        box-shadow: 4px 4px 0 var(--primary-dark);
    }

    #latest .section-title {
        font-size: 1.78rem;
        white-space: nowrap;
    }

    #featured .section-title {
        font-size: 2.05rem;
    }

}

@media (max-width: 576px) {
    .stats-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 0 4px;
    }

    .stat-bubble {
        min-width: 0;
        padding: 12px 9px;
    }

    .stat-label {
        font-size: .64rem;
    }

    .stat-value {
        font-size: .9rem;
    }

    .video-info {
        min-height: 0;
    }

    #latest .section-title {
        font-size: 1.62rem;
        letter-spacing: .01em;
    }

}

@media (max-width: 360px) {
    #latest .section-title {
        font-size: 1.48rem;
    }
}
/* LATEST VIDEOSの終了後に巨大な空白を作らない */
#latest {
    padding-bottom: 1.25rem;
    margin-bottom: 0;
}

#latest .video-grid {
    margin-bottom: 0;
}

#main {
    padding-bottom: 0;
}

/* フッター自体を「ページの締め」にする */
footer {
    margin-top: 2.25rem;
    padding-top: 2.6rem;
    padding-bottom: 2.25rem;
}

footer::before {
    top: -24px;
    height: 25px;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.footer-links,
.footer-link-groups,
.footer-sub-links {
    margin-bottom: 1.25rem;
}

.copyright {
    margin-top: 1.25rem;
    font-size: .82rem;
    opacity: .82;
}

/* PC右ナビ：機能はそのまま、主張だけ一段抑える */
@media (min-width: 769px) {
    .side-nav {
        right: 18px;
    }

    .side-nav .nav-menu {
        gap: 10px;
    }

    .side-nav .nav-link {
        width: 48px;
        height: 48px;
        font-size: 1rem;
        box-shadow: 0 4px 12px rgba(60, 100, 120, .10);
    }

    .side-nav .nav-logo .logo-icon {
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
        box-shadow: 0 4px 13px rgba(60, 100, 120, .11);
    }

    .side-nav .nav-social {
        margin-top: 8px;
    }

    .side-nav .nav-social a {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 768px) {
    #latest {
        padding-bottom: 1rem;
    }

    footer {
        margin-top: 1.75rem;
        padding-top: 2.25rem;
        padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    }

    footer::before {
        top: -18px;
        height: 19px;
    }
}
/* スマホの読みやすさ・押しやすさ・復帰性 */
/* 動画再生または代替表示の準備後にLoadingを閉じる。
   JSに問題があった場合もCSSだけで6秒後に解除する。 */
#loader-wrapper {
    pointer-events: auto;
    transition: opacity .42s ease, visibility .42s ease;
    animation: yowane-loader-failsafe .01s linear 6s forwards;
}

/* 通常再生ではサムネイルを短時間で消し、動画との切替を見せない。 */
.hero-video-container.video-playing::before {
    transition-duration: .22s;
}

/* 動画を再生できなかった場合だけ、鮮明な代替画像として残す。 */
.hero-video-container.video-error::before {
    filter: brightness(.94) saturate(.96);
    transform: scale(1.03);
}

#loader-wrapper.loaded {
    pointer-events: none;
}

@keyframes yowane-loader-failsafe {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

.section-intro {
    max-width: 720px;
    margin: -0.55rem auto 1.5rem;
    color: #78909c;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.7;
    text-align: center;
}

.video-grid-featured .featured-card .video-info {
    background: linear-gradient(180deg, #fff 0%, #f7fcff 100%);
}

.video-grid-featured .featured-card .video-badge {
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(2, 119, 189, .22);
    font-family: var(--font-rounded);
    letter-spacing: .04em;
    transform: rotate(1.5deg);
    transform-origin: left center;
}

/* PROFILEのラベルと値を画面幅に合わせて連続的に拡縮する。 */
.stats-list .stat-label {
    font-size: clamp(.6rem, calc(.48rem + .65vw), .76rem);
}

.stats-list .stat-value {
    font-size: clamp(.84rem, calc(.67rem + 1vw), 1.05rem);
    line-height: 1.35;
    word-break: normal;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.stats-list .stat-bubble {
    container-type: inline-size;
}

/* カードや列数は変えず、文字だけを各カードの実幅に追従させる。 */
@supports (font-size: 1cqi) {
    .stats-list .stat-label {
        font-size: clamp(.6rem, 11cqi, .82rem);
    }

    .stats-list .stat-value {
        font-size: clamp(.82rem, 17cqi, 1.2rem);
    }

    .stats-list .stat-bubble[data-stat="birthday"] .stat-value {
        font-size: clamp(.95rem, 19cqi, 1.3rem);
    }

    .stats-list .stat-bubble[data-stat="general-tag"] .stat-value {
        font-size: clamp(.76rem, 14cqi, 1.02rem);
    }
}

@media (hover: none) {
    .video-card[data-video-id]:active {
        transform: scale(.985);
        box-shadow: 2px 2px 0 var(--primary-dark);
    }
}

@media (max-width: 768px) {
    .hero {
        height: min(64svh, 560px);
        min-height: 420px;
        max-height: 560px;
    }

    .hero-video-container::before,
    .hero-video-container.video-error {
        background-position: center 38%;
    }

    .hero-content {
        width: min(92vw, 560px);
        padding-inline: 10px;
    }

    .main-title {
        max-width: 100%;
        margin-inline: auto;
        font-size: clamp(2rem, 9.4vw, 3.25rem);
        line-height: 1.15;
        letter-spacing: .055em;
        text-wrap: balance;
        overflow-wrap: anywhere;
    }

    .hero-cta {
        width: min(100%, 440px);
        margin: 1rem auto 0;
        padding-inline: .4rem;
        gap: .65rem;
    }

    .btn-primary-cta,
    .btn-secondary-cta {
        min-height: 46px;
        padding: .7rem 1rem;
        justify-content: center;
        font-size: .9rem;
        line-height: 1.2;
        touch-action: manipulation;
    }

    .side-nav {
        min-height: 62px;
        width: min(calc(100vw - 32px), 360px);
        padding: 6px 7px;
        border-radius: 18px;
    }

    .side-nav .nav-menu {
        gap: 3px;
    }

    .side-nav .nav-logo {
        display: none;
    }

    .side-nav .nav-link {
        height: 48px;
        flex-direction: column;
        gap: 3px;
        border-radius: 12px;
        line-height: 1;
        touch-action: manipulation;
    }

    .side-nav .nav-link.is-active {
        transform: none;
        background: var(--primary-color);
        box-shadow: none;
    }

    .side-nav .nav-link .ui-icon {
        width: 1.08rem;
        height: 1.08rem;
        max-width: 1.08rem;
        max-height: 1.08rem;
    }

    .side-nav .nav-link .nav-mobile-label {
        display: block;
        color: inherit;
        font-size: .62rem;
        font-weight: 800;
        letter-spacing: .02em;
        white-space: nowrap;
    }

    body {
        padding-bottom: 0;
    }

    /* 固定下部メニュー用の余白はフッター内へ置き、ページ末尾に背景の隙間を作らない */
    footer {
        padding-bottom: calc(104px + env(safe-area-inset-bottom));
    }

    .section-intro {
        margin-top: -.45rem;
        margin-bottom: 1.2rem;
        padding-inline: .7rem;
        font-size: .88rem;
    }
}

@media (max-width: 380px) {
    .side-nav {
        width: calc(100vw - 24px);
        padding-inline: 6px;
    }

    .side-nav .nav-link .nav-mobile-label {
        font-size: .58rem;
    }

    .main-title {
        font-size: clamp(1.9rem, 9vw, 2.8rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    #loader-wrapper {
        display: none;
    }
}

/* ========================================================================== 
   Fan-site presentation polish
   ========================================================================== */

.hero-cta {
    position: relative;
    z-index: 20;
    width: min(100%, 420px);
    max-width: calc(100% - 2rem);
    margin: 1.4rem auto 0;
    padding: 0;
    gap: .8rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hero-cta .btn-primary-cta,
.hero-cta .btn-secondary-cta {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    white-space: nowrap;
}

.hero + main#main {
    background-image: linear-gradient(
        180deg,
        var(--bg-color) 0,
        color-mix(in srgb, var(--bg-color) 92%, transparent) 24px,
        color-mix(in srgb, var(--bg-color) 68%, transparent) 78px,
        transparent 150px
    );
    background-repeat: no-repeat;
    background-size: 100% 160px;
}

.profile {
    margin-top: 4.5rem;
}

#news,
#stream-status,
#featured,
#latest {
    margin-top: clamp(.75rem, 2vw, 1.5rem);
}

.section-title {
    margin-bottom: 1.15rem;
    line-height: 1.05;
}

.section-intro {
    margin-top: -.15rem;
    margin-bottom: 1.7rem;
    color: #607d8b;
}

.video-grid-featured {
    gap: var(--featured-gap);
}

.video-grid-featured .video-grid-item {
    width: 100%;
}

.video-grid-featured .featured-card {
    border-color: rgba(79, 195, 247, .9);
    box-shadow: 5px 5px 0 rgba(3, 155, 229, .88);
}

.video-editorial-label {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-bottom: .65rem;
    padding: .28rem .7rem;
    border-radius: 999px;
    background: #e7f7ff;
    color: var(--primary-dark);
    border: 1px solid rgba(3, 155, 229, .22);
    font-family: var(--font-rounded);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .07em;
    line-height: 1.2;
    transform: rotate(-1.5deg);
    transform-origin: left center;
}

.featured-card-lead .video-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.featured-card-lead .video-title {
    font-size: clamp(1.2rem, 1.02rem + .55vw, 1.55rem);
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

@media (min-width: 768px) {
    .featured-card-lead {
        display: grid;
        grid-template-columns: minmax(0, 1.55fr) minmax(230px, .65fr);
    }

    .featured-card-lead .video-thumbnail {
        height: 100%;
        min-height: 270px;
        aspect-ratio: auto;
        border-right: 2px solid #e1f5fe;
    }

    .featured-card-lead .video-info {
        min-height: 100%;
        padding: clamp(1.4rem, 2.8vw, 2.3rem);
        border-top: 0;
    }
}

.news-item {
    padding: 1rem 1.2rem;
    border-width: 2px;
    border-radius: 20px;
    box-shadow: 4px 4px 0 rgba(3, 155, 229, .82);
}

.news-item.has-link:hover {
    transform: translateY(-2px);
    background: #f8fdff;
}

.news-item-main {
    min-width: 0;
}

.news-document-icon {
    display: inline-flex;
    margin-left: .3rem;
    color: var(--primary-dark);
    vertical-align: -.12em;
}

.news-document-icon .ui-icon {
    width: .95em;
    height: .95em;
}

.footer-site-note {
    max-width: 680px;
    margin: 1.25rem auto 0;
    color: #78909c;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.7;
}

footer {
    border-top: 1px solid rgba(79, 195, 247, .2);
}

@media (max-width: 768px) {
    .hero + main#main {
        background-image: linear-gradient(
            180deg,
            var(--bg-color) 0,
            color-mix(in srgb, var(--bg-color) 90%, transparent) 20px,
            color-mix(in srgb, var(--bg-color) 64%, transparent) 64px,
            transparent 124px
        );
        background-size: 100% 132px;
    }

    .hero-cta {
        width: min(calc(100% - 1.5rem), 420px);
        margin-top: 1.1rem;
        padding: 0 .35rem;
        border-radius: 0;
    }

    .hero-cta .btn-primary-cta,
    .hero-cta .btn-secondary-cta {
        flex: 1 1 0;
        min-width: 0;
        padding-inline: .55rem;
        gap: .35rem;
        font-size: clamp(.78rem, 3.3vw, .88rem);
        white-space: nowrap;
    }

    .profile {
        margin-top: 3.25rem;
    }

    #news .section-title {
        color: var(--primary-dark);
        font-size: clamp(2.45rem, 10.5vw, 2.9rem);
        letter-spacing: .025em;
        text-shadow: 1px 1px 0 #fff, 2px 2px 0 rgba(0, 0, 0, .08);
    }

    .news-item {
        padding: .9rem 1rem;
        border-radius: 16px;
    }

    .news-item-title {
        display: block !important;
        overflow: visible !important;
        white-space: normal !important;
        color: #37474f;
        font-size: clamp(1.02rem, 4.2vw, 1.12rem);
        font-weight: 800;
        line-height: 1.6;
        touch-action: auto;
    }

    .news-item-title::before,
    .news-item-title::after {
        content: none;
    }

    .news-item-main {
        width: 100%;
        align-items: center;
        gap: .55rem;
    }

    .news-item-main .news-item-arrow {
        display: none;
    }

    .footer-site-note {
        padding-inline: .5rem;
    }
}

@media (max-width: 575px) {
    .video-grid-featured {
        --featured-gap: 1.1rem;
    }

    .featured-card-lead .video-title {
        font-size: 1.08rem;
    }

    .video-editorial-label {
        margin-bottom: .5rem;
        font-size: .66rem;
    }
}

@media (max-width: 380px) {
    .hero-cta {
        gap: .4rem;
    }

    .hero-cta .btn-primary-cta,
    .hero-cta .btn-secondary-cta {
        font-size: .78rem;
    }
}
