/* ===== Reset & Variables ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
a, button, input, textarea, select {
    -webkit-tap-highlight-color: transparent;
}

/* ===== Image Protection ===== */
img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}
a img, button img { pointer-events: none; }
a, button, .slide-item, .disco-slide-item, .news-card, .link-card { pointer-events: auto; }
img.nav-logo-img { pointer-events: none; }

:root {
    /* --- 黒（ベース） --- */
    --bg-deep: #05030e;
    --bg-dark: #0b0720;
    --bg-card: rgba(18, 12, 42, 0.72);
    --bg-card-hover: rgba(32, 22, 70, 0.85);

    /* --- 紫（メインアクセント：髪） --- */
    --accent: #7c4dff;
    --accent-light: #b49cff;
    --accent-deep: #3d1f8f;
    --accent-glow: rgba(124, 77, 255, 0.32);
    --accent-rgb: 124, 77, 255;

    /* --- 青（サブアクセント：瞳・サファイア） --- */
    --accent2: #4a86ff;
    --accent2-light: #86b4ff;
    --accent2-deep: #1e4fd0;
    --accent2-rgb: 74, 134, 255;

    /* --- ゴールド（ブローチの金具） --- */
    --gold: #d4af37;
    --gold-light: #f2dc93;
    --gold-deep: #a8842c;
    --gold-rgb: 212, 175, 55;

    --star-bright: #ece6ff;
    --text: #e8e3f7;
    --text-light: #b3a9cc;
    --text-muted: #7a7093;
    --border: rgba(124, 77, 255, 0.18);
    --border-light: rgba(124, 77, 255, 0.09);
    --border-gold: rgba(212, 175, 55, 0.28);
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(124, 77, 255, 0.18);
    --shadow-gold: 0 0 24px rgba(212, 175, 55, 0.18);
    --radius: 12px;
    --radius-sm: 8px;
    --font-main: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
    --font-en: 'Cormorant Garamond', serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-deep);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.8;
}

/* Parallax Background */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    /* 背景画像が無くても成立する黒→藍→紫のネビュラ */
    background:
        radial-gradient(ellipse 95% 62% at 16% 10%, rgba(132, 88, 255, 0.50) 0%, rgba(140, 96, 255, 0) 60%),
        radial-gradient(ellipse 85% 58% at 86% 24%, rgba(66, 124, 255, 0.44) 0%, rgba(74, 134, 255, 0) 58%),
        radial-gradient(ellipse 80% 55% at 58% 72%, rgba(88, 46, 190, 0.42) 0%, rgba(96, 52, 200, 0) 62%),
        radial-gradient(ellipse 60% 45% at 90% 92%, rgba(46, 92, 210, 0.34) 0%, rgba(46, 92, 210, 0) 65%),
        radial-gradient(ellipse 32% 30% at 10% 82%, rgba(212, 175, 55, 0.16) 0%, rgba(212, 175, 55, 0) 68%),
        linear-gradient(165deg, #06031400 0%, #0f0828 32%, #150c38 56%, #08051a 82%, #05030e 100%);
    background-color: var(--bg-deep);
}

/* Base dark overlay - always covers */
.parallax-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    /* 背景写真を敷いたときも締まるよう、上下を濃くしたヴィネット */
    background:
        radial-gradient(ellipse 125% 95% at 50% 45%, rgba(5, 3, 14, 0) 42%, rgba(5, 3, 14, 0.5) 100%),
        linear-gradient(180deg, rgba(5, 3, 14, 0.34) 0%, rgba(5, 3, 14, 0.10) 42%, rgba(5, 3, 14, 0.46) 100%);
    z-index: 1;
}

/* Drifting lighter patches over the base */
.parallax-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 2;
    background:
        radial-gradient(ellipse 1200px 800px at 30% 40%, rgba(124,77,255,0.10) 0%, rgba(124,77,255,0) 55%, rgba(0,0,0,0.14) 100%),
        radial-gradient(ellipse 1000px 700px at 70% 60%, rgba(74,134,255,0.09) 0%, rgba(74,134,255,0) 55%, rgba(0,0,0,0.14) 100%),
        radial-gradient(ellipse 900px 1000px at 50% 30%, rgba(180,156,255,0.07) 0%, rgba(180,156,255,0) 55%, rgba(0,0,0,0.14) 100%);
    animation: drift 10s ease-in-out infinite alternate;
}

@keyframes drift {
    0% {
        transform: translate(0%, 0%) rotate(0deg);
    }
    33% {
        transform: translate(5%, -3%) rotate(1deg);
    }
    66% {
        transform: translate(-3%, 5%) rotate(-1deg);
    }
    100% {
        transform: translate(3%, 2%) rotate(0.5deg);
    }
}

/* PC: original orientation, fill screen */
.parallax-bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile: rotate 90deg right, cover full viewport */
@media (max-width: 768px) {
    .parallax-bg img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(90deg);
        width: 100vh;
        height: 100vw;
        min-width: 100vh;
        min-height: 100vw;
        object-fit: cover;
    }
}

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

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

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


/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.4s ease;
}

.nav.scrolled {
    background: rgba(5, 3, 14, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 3, 14, 0.97);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: block;
    position: relative;
    height: 70px;
}

/* タイトルロゴ（images/title1.webp / 810x150） */
.nav-logo-img {
    display: block;
    height: 50px;
    width: auto;
    max-width: min(280px, 56vw);
    margin-top: 10px;
    object-fit: contain;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
    filter: brightness(1.12) drop-shadow(0 0 12px rgba(var(--gold-rgb), 0.45));
}

@media (max-width: 768px) {
    .nav-logo-img {
        height: 38px;
        margin-top: 16px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-link {
    padding: 8px 14px;
    font-size: 15.6px;
    font-weight: 400;
    color: var(--text-light);
    font-family: var(--font-en);
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-light);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero Section ===== */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
    padding: 70px 24px 60px;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-visual {
    margin-bottom: 40px;
}

.hero-image-frame {
    width: 280px;
    height: 360px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    position: relative;
}

.hero-image-frame::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 52%, var(--gold) 100%);
    opacity: 0.45;
    z-index: -1;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.1), rgba(74, 134, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--font-en);
    font-size: 14px;
    letter-spacing: 0.2em;
}

.hero-name {
    margin-bottom: 16px;
}

.hero-name-en {
    display: block;
    font-family: var(--font-en);
    font-size: 52px;
    font-weight: 300;
    color: var(--star-bright);
    letter-spacing: 0.1em;
    line-height: 1.2;
}

.hero-name-jp {
    display: block;
    font-size: 16px;
    font-weight: 300;
    color: var(--text-light);
    letter-spacing: 0.3em;
    margin-top: 8px;
}

.hero-tagline {
    font-family: var(--font-en);
    font-size: 15px;
    color: var(--accent-light);
    letter-spacing: 0.2em;
    font-weight: 400;
}

/* ===== Slide Banner ===== */
.slide-wrap {
    width: 100%;
    overflow: hidden;
    margin-top: 40px;
    cursor: grab;
}

.slide-wrap.dragging {
    cursor: grabbing;
}

.slide-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slide-track.no-transition {
    transition: none;
}

.slide-item {
    flex-shrink: 0;
    width: 48%;
    padding: 0 8px;
    display: block;
    cursor: grab;
}

.slide-item[data-href] {
    cursor: grab;
}

.dragging .slide-item {
    cursor: grabbing;
}

.slide-item img,
.slide-item video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    /* 素材の比率がバラバラでも切り取らない（16:9以外は余白が入る） */
    object-fit: contain;
    display: block;
    border-radius: var(--radius-sm);
    background: rgba(10, 6, 28, 0.5);
    pointer-events: none;
}

.slide-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.slide-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.slide-dot:hover {
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.15);
}

.slide-dot.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
}

/* ===== Floating Pet =====
   たまに pet1 か pet2 が画面をふわふわ横切る。同時に2匹は出ない（JS側で1体のみ生成） */
.pet-float {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 900;            /* ナビ(1000)より下、コンテンツより上 */
    pointer-events: none;
    will-change: transform;
}

.pet-float.to-right { animation: pet-cross-r var(--pet-dur, 20s) linear forwards; }
.pet-float.to-left  { animation: pet-cross-l var(--pet-dur, 20s) linear forwards; }

/* --pet-dy 分だけ縦にもずらすので、軌道は直線の斜めになる */
@keyframes pet-cross-r {
    from { transform: translate(-200px, 0); }
    to   { transform: translate(calc(100vw + 200px), var(--pet-dy, 0px)); }
}

@keyframes pet-cross-l {
    from { transform: translate(calc(100vw + 200px), 0); }
    to   { transform: translate(-200px, var(--pet-dy, 0px)); }
}

/* 上下のふわふわ + ゆるい傾き */
.pet-inner {
    display: block;
    animation: pet-bob var(--pet-bob, 3.4s) ease-in-out infinite;
}

@keyframes pet-bob {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50%      { transform: translateY(-11px) rotate(5deg); }
}

.pet-float img {
    display: block;
    height: auto;
    filter: drop-shadow(0 6px 18px rgba(124, 77, 255, 0.35));
}

.pet-float.pet-1 img { width: 56px; }
.pet-float.pet-2 img { width: 93px; }

/* 進行方向を向かせる */
.pet-float.to-left img { transform: scaleX(-1); }

@media (max-width: 768px) {
    .pet-float.pet-1 img { width: 39px; }
    .pet-float.pet-2 img { width: 64px; }
}

/* 動きを減らす設定の環境では出さない */
@media (prefers-reduced-motion: reduce) {
    .pet-float { display: none; }
}

/* ===== Gallery ===== */
.gallery-title {
    max-width: 440px;
    margin: -18px auto 44px;
}

.gallery-title img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.95;
    filter: drop-shadow(0 0 26px rgba(var(--accent-rgb), 0.4));
}

/* 段組みマソナリー。高さの違う絵が自然に噛み合う */
.gallery-masonry {
    columns: 3;
    column-gap: 20px;
}

.gallery-item {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin: 0 0 20px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--gold-rgb), 0.4);
    box-shadow: var(--shadow-glow), 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* 几帳面に揃えず、幅と余白を少しずつずらして雑誌のような不揃いに */
.gallery-item:nth-child(4n + 1) { width: 100%; margin-bottom: 20px; }
.gallery-item:nth-child(4n + 2) { width: 90%;  margin-left: auto;  margin-bottom: 34px; }
.gallery-item:nth-child(4n + 3) { width: 96%;  margin-bottom: 24px; }
.gallery-item:nth-child(4n + 4) { width: 86%;  margin-right: auto; margin-bottom: 30px; }

/* TOPページのプレビュー：ランダム1枚を中央に */
.gallery-preview {
    display: flex;
    justify-content: center;
}

/* 幅は index.php がインラインstyleで指定する（画像の縦横比に応じて算出） */
.gallery-preview .gallery-item {
    max-width: 100% !important;
    margin: 0 !important;
}

.gallery-preview .gallery-item img {
    width: 100%;
    height: auto;
}

@media (max-width: 900px) {
    .gallery-masonry { columns: 2; column-gap: 16px; }
    .gallery-item:nth-child(4n + 2) { width: 94%; }
    .gallery-item:nth-child(4n + 4) { width: 92%; }
}

@media (max-width: 560px) {
    .gallery-title { max-width: 300px; margin-bottom: 36px; }
    .gallery-masonry { columns: 2; column-gap: 12px; }
    .gallery-item { margin-bottom: 12px !important; width: 100% !important; }
}

/* ===== Booth Link ===== */
.booth-link {
    text-align: center;
    margin-top: 20px;
}

.booth-link img {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.booth-link img:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .slide-item {
        width: 85%;
    }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hero-scroll-indicator span {
    font-family: var(--font-en);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.15em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), var(--accent) 55%, transparent);
    animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    50.1% { transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ===== Schedule Section ===== */
.schedule-list {
    max-width: 700px;
    margin: 0 auto;
}

.schedule-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.schedule-item:first-child {
    border-top: 1px solid var(--border-light);
}

.schedule-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.schedule-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.schedule-date {
    font-size: 14px;
    color: var(--accent-light);
    font-family: var(--font-en);
    letter-spacing: 0.05em;
    flex-shrink: 0;
    min-width: 90px;
}

.schedule-info {
    flex: 1;
}

.schedule-title {
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
    transition: color 0.3s ease;
}

a.schedule-title:hover {
    color: var(--accent-light);
}

.schedule-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== Section Common ===== */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
    scroll-margin-top: 70px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-en {
    font-family: var(--font-en);
    font-size: 42px;
    font-weight: 300;
    color: var(--star-bright);
    letter-spacing: 0.1em;
    display: block;
    position: relative;
}

.section-title-en::after {
    content: '';
    display: block;
    width: 56px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
    box-shadow: 0 0 10px rgba(var(--gold-rgb), 0.45);
    margin: 16px auto 0;
}

.works-summary {
    text-align: center;
    color: var(--text-light);
    font-size: 15px;
    line-height: 2;
    margin-top: 20px;
}

.works-summary > div[style*="border-bottom"] {
    border-bottom: none !important;
}

.works-summary-note {
    font-size: 13px;
    opacity: 0.6;
}

.section-more {
    text-align: center;
    margin-top: 40px;
}

.btn-more {
    display: inline-block;
    padding: 10px 32px;
    background: transparent;
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
    font-family: var(--font-en);
    font-size: 13px;
    letter-spacing: 0.1em;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-more:hover {
    border-color: var(--gold);
    color: #fff;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.22), rgba(var(--accent2-rgb), 0.18));
    box-shadow: var(--shadow-glow), var(--shadow-gold);
}

.section-empty {
    text-align: center;
    color: var(--text-muted);
    font-family: var(--font-en);
    font-size: 16px;
    letter-spacing: 0.1em;
    padding: 40px 0;
}

/* ===== News Section ===== */
.news-list {
    max-width: 700px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.news-item.has-thumb {
    align-items: center;
}

.news-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
}

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

.news-item-text {
    display: flex;
    align-items: baseline;
    gap: 24px;
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .news-thumb {
        width: 60px;
        height: 60px;
    }
    .news-item-text {
        flex-direction: column;
        gap: 4px;
    }
}

.news-item:first-child {
    border-top: 1px solid var(--border-light);
}

.news-item:hover {
    padding-left: 8px;
}

.news-item:hover .news-text {
    color: var(--accent-light);
}

.news-date {
    font-size: 14px;
    color: #fff;
    font-family: var(--font-en);
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.news-text {
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
    transition: color 0.3s ease;
}

/* ===== Profile Section ===== */
.profile-content {
    display: flex;
    gap: 60px;
    align-items: stretch;
    max-width: 800px;
    margin: 0 auto;
}

.profile-image {
    flex-shrink: 0;
    width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.profile-info {
    flex: 1;
}

.profile-name-logo {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-name-logo img {
    height: 56px;
    width: auto;
    max-width: min(320px, 70vw);
    object-fit: contain;
}

@media (max-width: 768px) {
    .profile-name-logo img { height: 42px; }
}

.btn-guideline {
    font-size: 14.4px;
    padding: 7px 24px;
}

/* Full-body avatar */
.profile-avatar-full {
    object-fit: contain;
    object-position: center;
}

.profile-text-content {
    margin-top: 8px;
    line-height: 1.9;
    font-size: 14px;
    color: var(--text);
}

.profile-text-content h4 {
    font-size: 16px;
    color: var(--gold);
    margin-top: 28px;
    margin-bottom: 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(var(--gold-rgb), 0.3);
}

.profile-text-content h4:first-child {
    margin-top: 0;
}

.profile-text-content p {
    margin-bottom: 8px;
}

.profile-text-content ul {
    list-style: none;
    margin-bottom: 12px;
}

.profile-text-content ul li {
    padding: 2px 0;
}

.profile-text-content a {
    color: var(--accent2-light);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.profile-text-content a:hover {
    border-bottom-color: var(--accent2-light);
}

/* ===== Profile Intro Section ===== */
.profile-intro-section {
    position: relative;
    overflow: hidden;
}

.profile-intro-bg {
    position: absolute;
    inset: 0;
    background: url('images/reimei.webp') center/auto 100% no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.profile-intro-section .container {
    position: relative;
    z-index: 1;
}

.profile-intro {
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.9;
    font-size: 14px;
    color: var(--text);
}

.profile-intro h4 {
    font-size: 16px;
    color: var(--gold);
    margin-top: 28px;
    margin-bottom: 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(var(--gold-rgb), 0.3);
}

.profile-intro h4:first-child {
    margin-top: 0;
}

.profile-intro p {
    margin-bottom: 8px;
}

.profile-intro ul {
    list-style: none;
    margin-bottom: 12px;
}

.profile-intro ul li {
    padding: 2px 0;
}

.profile-intro ul.profile-details li {
    padding: 2px 0;
}

.profile-intro a {
    color: var(--accent2-light);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.profile-intro a:hover {
    border-bottom-color: var(--accent2-light);
}


/* ===== Discography Slider ===== */
.disco-slide-wrap {
    position: relative;
    overflow: hidden;
    cursor: grab;
}

#discography .container {
    max-width: 100%;
    padding: 0;
}

.disco-slide-wrap.dragging {
    cursor: grabbing;
}

.disco-slide-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.disco-slide-track.no-transition {
    transition: none !important;
}

.disco-slide-item {
    flex: 0 0 280px;
    max-width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 0;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
    user-select: none;
}

.disco-slide-item:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-glow);
}

.disco-slide-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* 素材の比率がバラバラでも切り取らない */
    object-fit: contain;
    background: rgba(10, 6, 28, 0.5);
    display: block;
    pointer-events: none;
}

/* Style が1枚だけのとき（スライダーにしない） */
.style-single {
    /* タブレット幅くらいで頭打ち。PCでもこのサイズのまま */
    max-width: 900px;
    margin: 0 auto;
}

.style-single img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    border: 1px solid var(--border-light);
}

@media (max-width: 768px) {
    /* 端まで見せるので左右の線は出さない */
    .style-single img {
        border-left: 0;
        border-right: 0;
    }
}

/* スマホ: 画面に収めず、左右に動かしながら見せる */
@media (max-width: 768px) {
    .style-single {
        max-width: none;
        /* .container の左右padding(24px)を打ち消して、余白なしで画面端まで使う */
        margin: 0 -24px;
        padding: 0;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(var(--gold-rgb), 0.55) rgba(255, 255, 255, 0.06);
        /* グリップして左右に動かせる */
        cursor: grab;
        user-select: none;
    }

    .style-single.dragging {
        cursor: grabbing;
        scroll-behavior: auto;
    }

    .style-single img {
        width: auto;
        max-width: none;
        min-width: 760px;
    }

    .style-single::-webkit-scrollbar { height: 6px; }
    .style-single::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.06); }
    .style-single::-webkit-scrollbar-thumb {
        background: rgba(var(--gold-rgb), 0.55);
        border-radius: 3px;
    }
}

.disco-cover-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.08), rgba(74, 134, 255, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--font-en);
    font-size: 13px;
    letter-spacing: 0.15em;
}

.disco-info {
    padding: 8px 12px;
    text-align: center;
}

.disco-info h3 {
    font-size: 13px;
    font-weight: 400;
    font-family: var(--font-main);
    color: var(--text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.disco-date {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-en);
}

@media (max-width: 768px) {
    .disco-slide-item {
        flex: 0 0 220px;
        max-width: 220px;
    }
}

/* ===== Sample Section ===== */
.sample-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sample-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 0;
    padding: 0 6px 6px 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.sample-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-glow);
}

.sample-icon {
    font-size: 28px;
    margin-bottom: 12px;
    opacity: 0.7;
}

.sample-card h3 {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 2px;
    text-align: left;
}

.sample-category {
    font-size: 12px;
    color: var(--accent-light);
    font-family: var(--font-en);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.sample-card audio {
    width: calc(100% + 6px);
    margin-left: -6px;
    height: 32px;
    opacity: 0.7;
    border-radius: 0;
}

.sample-subcat {
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
    margin: 24px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-light);
    font-family: var(--font-jp);
}

.sample-subcat:first-child {
    margin-top: 0;
}

.sample-card-yt {
    padding: 6px;
}

.sample-card-yt h3 {
    font-size: 15px;
    text-align: center;
}

.sample-youtube {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin-bottom: 12px;
    overflow: hidden;
}

.sample-youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 1024px) {
    .sample-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .sample-grid { grid-template-columns: 1fr; }
}

/* ===== Work Inquiries Section ===== */
.inquiries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.inquiry-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 36px;
    transition: all 0.3s ease;
}

.inquiry-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-glow);
}

.inquiry-icon {
    font-size: 32px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.inquiry-card h3 {
    font-family: var(--font-en);
    font-size: 22px;
    font-weight: 500;
    color: var(--star-bright);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.inquiry-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.inquiry-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inquiry-list li {
    padding: 6px 14px;
    font-size: 12px;
    color: var(--accent-light);
    border: 1px solid var(--border);
    border-radius: 20px;
}

/* ===== Works Page ===== */
.works-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.works-tab {
    background: none;
    border: none;
    padding: 14px 36px;
    font-family: var(--font-main);
    font-size: 15px;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.works-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background 0.3s;
}

.works-tab:hover {
    color: var(--text);
}

.works-tab.active {
    color: var(--star-bright);
}

.works-tab.active::after {
    background: var(--gold);
}

.works-block {
    display: none;
}

.works-block.active {
    display: block;
}

.works-sample-link {
    text-align: center;
    margin-bottom: 36px;
}

.works-sample-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 36px;
}

.works-body {
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.9;
    font-size: 14px;
    color: var(--text);
}

.works-body h4 {
    font-size: 16px;
    color: var(--gold);
    margin-top: 36px;
    margin-bottom: 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(var(--gold-rgb), 0.3);
}

.works-body h4:first-child {
    margin-top: 0;
}

.works-body h5 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-top: 16px;
    margin-bottom: 8px;
}

.works-body p {
    margin-bottom: 10px;
}

.works-body ul {
    list-style: none;
    margin-bottom: 14px;
}

.works-body ul li {
    padding: 3px 0 3px 16px;
    position: relative;
}

.works-body ul li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.works-body a {
    color: var(--accent2-light);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.works-body a:hover {
    border-bottom-color: var(--accent2-light);
}

.works-body .works-note,
.works-note {
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.6;
}

@media (max-width: 768px) {
    .works-tab {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ===== Works Section ===== */
.works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.work-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.work-card:hover {
    transform: translateY(-4px);
    border-color: var(--border);
    box-shadow: var(--shadow-glow);
}

.work-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.work-image-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.08), rgba(74, 134, 255, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--font-en);
    font-size: 11px;
    letter-spacing: 0.15em;
}

.work-info {
    padding: 14px;
}

.work-info h3 {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.4;
}

.work-role {
    font-size: 12px;
    color: var(--accent-light);
}

.work-year {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-en);
}

/* ===== Contact Section ===== */
.contact-box {
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-size: 15px;
    color: #fff;
    margin-bottom: 32px;
    line-height: 1.8;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cf-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cf-group label {
    font-size: 13px;
    color: #fff;
}

.cf-req {
    color: var(--gold);
}

.cf-group input,
.cf-group select,
.cf-group textarea {
    background: rgba(18, 12, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--text);
    transition: border-color 0.3s;
}

.cf-group input:focus,
.cf-group select:focus,
.cf-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.cf-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a8a0b8' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.cf-group textarea {
    resize: vertical;
}

.cf-actions {
    text-align: center;
    margin-top: 8px;
}

.contact-error {
    background: rgba(220, 60, 60, 0.15);
    border: 1px solid rgba(220, 60, 60, 0.3);
    color: #ff8888;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
}

.contact-done {
    text-align: center;
    padding: 40px 20px;
    color: var(--text);
    line-height: 2;
    font-size: 15px;
}

/* ===== Footer ===== */
.footer {
    padding: 60px 0 30px;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-en);
    font-size: 20px;
    font-weight: 600;
    color: var(--star-bright);
    letter-spacing: 0.05em;
}

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

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-en);
    letter-spacing: 0.05em;
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-en);
    letter-spacing: 0.05em;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .works-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: transparent;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;
        padding-top: 80px;
        padding-right: 32px;
        gap: 4px;
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .nav-menu.active {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu li {
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active li:nth-child(1) { transition-delay: 0.05s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(7) { transition-delay: 0.35s; }
    .nav-menu.active li:nth-child(8) { transition-delay: 0.4s; }

    .nav-link {
        font-size: 22px;
        padding: 12px 0;
    }

    .hero-name-en {
        font-size: 36px;
    }

    .hero-image-frame {
        width: 220px;
        height: 280px;
    }

    .section {
        padding: 70px 0;
    }

    .section-title-en {
        font-size: 32px;
    }

    .profile-content {
        flex-direction: column;
        align-items: center;
        text-align: left;
    }

    .profile-image {
        width: 75vw;
        max-width: 320px;
    }

    .profile-table th,
    .profile-table td {
        text-align: center;
    }

    .profile-sns {
        justify-content: center;
    }

    .inquiries-grid {
        grid-template-columns: 1fr;
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-name-en {
        font-size: 28px;
    }

    .hero-image-frame {
        width: 180px;
        height: 230px;
    }

    .section-title-en {
        font-size: 26px;
    }


    .works-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* ===== News Page ===== */
.page-hero {
    padding: 140px 24px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-title {
    font-family: var(--font-en);
    font-size: 42px;
    font-weight: 300;
    color: var(--star-bright);
    letter-spacing: 0.1em;
}

.page-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
    box-shadow: 0 0 10px rgba(var(--gold-rgb), 0.45);
    margin: 16px auto 0;
}

.news-page-grid {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    position: relative;
    z-index: 1;
}
.news-card-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.news-card {
    display: block;
    text-decoration: none;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.news-card-img {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}
.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.news-card-noimg {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.05);
}
.news-card-date {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 13px;
    font-family: var(--font-en);
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 4px;
}
.news-card-body {
    padding: 12px 14px 16px;
}
.news-card-title {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.news-card:hover .news-card-title {
    color: var(--accent-light);
}
@media (max-width: 768px) {
    .news-card-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .news-card-body {
        padding: 8px 10px 12px;
    }
    .news-card-title {
        font-size: 12px;
    }
    .news-card-date {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* News Detail */
.news-detail {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    position: relative;
    z-index: 1;
}

.news-detail-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.news-detail-date {
    font-size: 14px;
    color: #fff;
    font-family: var(--font-en);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.news-detail-title {
    font-size: 26px;
    font-weight: 500;
    color: var(--star-bright);
    line-height: 1.5;
}

.news-detail-featured {
    margin-bottom: 32px;
    text-align: center;
}

.news-detail-featured img {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: inline-block;
    border-radius: 8px;
}

.news-detail-body {
    font-size: 15px;
    line-height: 2;
    color: var(--text);
}

.news-detail-body p {
    margin-bottom: 20px;
}

.news-detail-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

.news-detail-body a {
    color: var(--accent-light);
    text-decoration: underline;
}

.news-detail-back {
    margin-top: 60px;
    text-align: center;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-en);
    border: 1px solid var(--border-light);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent-light);
}

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

/* ===== Floating SNS ===== */
.floating-sns {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}
.floating-sns-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(18, 12, 42, 0.85);
    border: 1px solid var(--border-gold);
    border-radius: 50%;
    color: var(--gold-light);
    text-decoration: none;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 14px rgba(var(--gold-rgb), 0.12);
    transition: all 0.3s ease;
}
.floating-sns-btn:hover {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.28), rgba(var(--accent2-rgb), 0.22));
    border-color: var(--gold);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.3), 0 0 20px rgba(var(--gold-rgb), 0.28);
}
@media (max-width: 768px) {
    .floating-sns {
        bottom: 16px;
        right: 16px;
    }
    .floating-sns-btn {
        width: 42px;
        height: 42px;
    }
}

/* ===== Links Section ===== */
.links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 32px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.link-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.link-card-name {
    font-family: var(--font-en);
    font-size: 13px;
    color: #fff;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.link-card:hover .link-card-name {
    color: var(--accent-light);
}


@media (max-width: 768px) {
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .links-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Discography Grid Page ===== */
.disco-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.disco-grid-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.disco-grid-item:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.disco-grid-link {
    display: block;
    color: inherit;
}

.disco-grid-cover img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.disco-grid-info {
    padding: 10px 12px;
    text-align: center;
}

.disco-grid-info h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.disco-grid-date {
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-en);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.disco-grid-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .disco-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .disco-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
}

.disco-grid-item[data-disco-modal] {
    cursor: pointer;
}

/* ===== Discography Modal ===== */
.disco-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 2, 9, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 24px;
}

.disco-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.disco-modal {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 0;
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), var(--shadow-glow);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.disco-modal-overlay.active .disco-modal {
    transform: translateY(0);
}

.disco-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(18, 12, 42, 0.8);
    border: 1px solid var(--border);
    color: var(--text-light);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    line-height: 1;
}

.disco-modal-close:hover {
    border-color: var(--accent);
    color: var(--accent-light);
}

.disco-modal-content {
    display: flex;
    gap: 32px;
    padding: 32px;
}

.disco-modal-cover {
    flex-shrink: 0;
    width: 260px;
}

.disco-modal-cover img {
    width: 100%;
    border-radius: 0;
    display: block;
}

.disco-modal-info {
    flex: 1;
    min-width: 0;
}

.disco-modal-info h2 {
    font-size: 22px;
    font-weight: 500;
    color: var(--star-bright);
    margin-bottom: 8px;
    line-height: 1.4;
}

.disco-modal-date {
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-en);
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.disco-modal-theme h4,
.disco-modal-tracklist h4,
.disco-modal-staff h4 {
    font-size: 14px;
    color: var(--gold);
    margin-bottom: 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(var(--gold-rgb), 0.3);
    font-family: var(--font-en);
    letter-spacing: 0.05em;
}

.disco-modal-theme {
    margin-bottom: 20px;
}

.disco-modal-theme p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 2;
}

.disco-modal-tracklist {
    margin-bottom: 20px;
}

.disco-track-block {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.disco-track-block:last-child {
    border-bottom: none;
}

.disco-track-title {
    font-size: 14px;
    color: var(--text);
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.disco-track-num {
    font-family: var(--font-en);
    font-size: 12px;
    color: var(--text-muted);
    min-width: 20px;
}

.disco-track-credit {
    font-size: 12px;
    color: var(--text-muted);
    padding-left: 30px;
    line-height: 1.6;
}

.disco-modal-staff {
    margin-bottom: 20px;
}

.disco-modal-staff p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
}

.disco-modal-link {
    margin-top: 16px;
}

@media (max-width: 640px) {
    .disco-modal-content {
        flex-direction: column;
        padding: 24px;
    }

    .disco-modal-cover {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .disco-modal-info h2 {
        font-size: 18px;
    }
}

/* ===== Works List Page ===== */
.worklist-subcat {
    max-width: 600px;
    margin: 24px auto 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.worklist-subcat:first-child {
    margin-top: 0;
}

.works-list-grid {
    max-width: 600px;
    margin: 0 auto;
}

.works-list-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.works-list-item:last-child {
    border-bottom: none;
}

.works-list-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.works-list-item:hover .works-list-info h3,
.works-list-item:hover .works-list-role,
.works-list-item:hover .works-list-year {
    color: var(--accent);
}

.works-list-info {
    padding: 12px 0;
}

.works-list-info h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.4;
}

.works-list-role {
    font-size: 12px;
    color: #fff;
    margin-bottom: 2px;
}

.works-list-year {
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-en);
}

.works-list-desc {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
    line-height: 1.6;
}

/* ===== Works External Section ===== */
.works-external {
    max-width: 720px;
    margin: 0 auto;
    margin-top: 36px;
    padding-top: 0;
}

.works-external h4 {
    font-size: 16px;
    color: var(--gold);
    margin-bottom: 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(var(--gold-rgb), 0.3);
}

.external-links-list {
    list-style: none;
    margin-bottom: 14px;
}

.external-links-list li {
    padding: 3px 0 3px 16px;
    position: relative;
}

.external-links-list li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.external-links-list a {
    color: var(--accent2-light);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.external-links-list a:hover {
    border-bottom-color: var(--accent2-light);
}

/* ===== Guideline Page ===== */
.guideline-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    position: relative;
    z-index: 1;
}

.guideline-body {
    font-size: 15px;
    line-height: 2;
    color: var(--text);
}

.guideline-body h3 {
    font-size: 18px;
    color: var(--gold);
    margin-top: 36px;
    margin-bottom: 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(var(--gold-rgb), 0.3);
}

.guideline-body h3:first-child {
    margin-top: 0;
}

.guideline-body p {
    margin-bottom: 16px;
}

.guideline-body ul {
    list-style: none;
    margin-bottom: 16px;
}

.guideline-body ul li {
    padding: 3px 0 3px 16px;
    position: relative;
}

.guideline-body ul li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: var(--gold);
}

@media (max-width: 768px) {
    .profile-name-logo {
        justify-content: center;
    }
}

/* 演出やモーダル表示中にページをスクロールさせない（JSが付け外しする） */
html.scroll-lock, body.scroll-lock { overflow: hidden; }

/* ===== Hero Single Visual（TOP1枚表示） ===== */
.hero-single {
    width: 100%;
    max-width: 1320px;
    margin: 20px auto 0;
    padding: 0 8px;
}

.hero-single-link {
    display: block;
}

.hero-single img,
.hero-single video {
    width: 100%;
    height: auto;
    display: block;
    /* 立ち絵は完全透過。下地・角丸・影は付けず、サイトの背景に直接立たせる */
    background: none;
    border-radius: 0;
    box-shadow: none;
}

/* ===== Stream（斜めの帯 + YouTube / Twitch 埋め込み） ===== */
/* 帯の傾きは --band-slope（横幅に対する落差）で決まる。
   トップの立ち絵の下端に重なるよう、マイナスマージンで持ち上げている。   */
.stream-band {
    --band-slope: 5vw;
    /* 立ち絵にどれだけ食い込ませるか。
       立ち絵の高さは幅に比例する（max-width 1320px で頭打ち）ので、
       食い込み量も同じ比率で効くように min() で頭打ちにしている。
       これで狭い画面でも帯と立ち絵の間に隙間ができない。                   */
    --band-lift: min(17vw, 224px);
    position: relative;
    margin-top: calc(var(--band-lift) * -1);
    padding: calc(var(--band-slope) + 56px) 0 calc(var(--band-slope) + 64px);
    z-index: 2;
}

/* 帯の地。外枠(bg)と内側(::after)の2枚重ねで、斬った断面に光る縁を出す */
.stream-band-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(var(--gold-rgb), 0.55), rgba(var(--accent-rgb), 0.85) 45%, rgba(var(--accent2-rgb), 0.7));
    clip-path: polygon(0 var(--band-slope), 100% 0, 100% calc(100% - var(--band-slope)), 0 100%);
    pointer-events: none;
}

.stream-band-bg::after {
    content: '';
    position: absolute;
    inset: 2px 0;
    background:
        radial-gradient(ellipse 70% 120% at 22% 8%, rgba(var(--accent-rgb), 0.42), rgba(var(--accent-rgb), 0) 62%),
        radial-gradient(ellipse 60% 110% at 82% 92%, rgba(var(--accent2-rgb), 0.34), rgba(var(--accent2-rgb), 0) 60%),
        linear-gradient(168deg, #0d0726 0%, #150c38 42%, #0a0620 100%);
    clip-path: polygon(0 var(--band-slope), 100% 0, 100% calc(100% - var(--band-slope)), 0 100%);
}

.stream-band-inner {
    position: relative;
    z-index: 1;
}

.stream-band .section-title {
    margin-bottom: 26px;
}

.stream-caption {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    letter-spacing: 0.06em;
    margin: -10px 0 24px;
}

/* 配信中 / アーカイブ の表示 */
.stream-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: -12px 0 22px;
    color: var(--text-light);
    font-size: 13px;
    letter-spacing: 0.1em;
}

.stream-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-gold);
    background: rgba(var(--gold-rgb), 0.12);
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.stream-badge-live {
    border-color: rgba(255, 86, 110, 0.6);
    background: rgba(255, 60, 90, 0.16);
    color: #ff9bab;
    animation: streamLivePulse 1.8s ease-in-out infinite;
}

@keyframes streamLivePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 60, 90, 0.45); }
    50%      { box-shadow: 0 0 14px 2px rgba(255, 60, 90, 0.45); }
}

/* 動画枠。角を斜めに落として帯と同じ「斬られた」形にする */
.stream-frame {
    position: relative;
    width: 100%;
    max-width: 940px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: #000;
    padding: 2px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.62), 0 0 70px rgba(var(--accent-rgb), 0.22);
}

/* 枠の縁（1枚下に敷いて光らせる） */
.stream-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(var(--gold-rgb), 0.9), rgba(var(--accent-rgb), 0.9) 50%, rgba(var(--accent2-rgb), 0.9));
    z-index: 0;
}

/* 動画の切り替えサムネ */
/* 横1列。本数が増えても高さは変わらず、はみ出したら横スクロールする */
.stream-list {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: center;
    justify-content: safe center;   /* はみ出したときに先頭が切れないように */
    max-width: 940px;
    margin: 18px auto 0;
    padding-bottom: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    /* バーは Style と同じ見た目 */
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--gold-rgb), 0.55) rgba(255, 255, 255, 0.06);
    cursor: grab;
    user-select: none;
}

.stream-list.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.stream-list::-webkit-scrollbar { height: 6px; }
.stream-list::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.06); }
.stream-list::-webkit-scrollbar-thumb {
    background: rgba(var(--gold-rgb), 0.55);
    border-radius: 3px;
}

.stream-thumb {
    position: relative;
    flex: 0 0 auto;
    width: 168px;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(10, 6, 28, 0.6);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.stream-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.72;
    transition: opacity 0.25s ease;
}

.stream-thumb:hover {
    transform: translateY(-3px);
    border-color: var(--border-gold);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5), 0 0 24px rgba(var(--accent-rgb), 0.28);
}

.stream-thumb:hover img { opacity: 0.95; }

.stream-thumb.is-active {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px rgba(var(--gold-rgb), 0.5), 0 0 26px rgba(var(--gold-rgb), 0.32);
}

.stream-thumb.is-active img { opacity: 1; }

/* サムネが取れないサービス（Twitchチャンネル）用のタイル */
.stream-thumb-alt {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.5), rgba(var(--accent2-rgb), 0.35));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.stream-thumb-live {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 40, 72, 0.92);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.stream-thumb-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 8px 5px;
    background: linear-gradient(180deg, rgba(5, 3, 14, 0), rgba(5, 3, 14, 0.86));
    color: var(--text);
    font-size: 11px;
    line-height: 1.4;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stream-frame iframe {
    position: absolute;
    inset: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    border: 0;
    display: block;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-single { margin-top: 10px; padding: 0; }
    .stream-caption { font-size: 13px; margin-bottom: 18px; }
    .stream-list { gap: 8px; margin-top: 12px; }
    .stream-thumb { width: 140px; }
    .stream-band {
        --band-slope: 7vw;
        padding: calc(var(--band-slope) + 34px) 0 calc(var(--band-slope) + 40px);
    }
}

/* ===== Starfield（またたく星＋流れ星） ===== */
.stars-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* またたく点。opacity だけを動かすので数を出しても軽い */
.star {
    position: absolute;
    border-radius: 50%;
    background: var(--star-bright);
    opacity: 0;
    will-change: opacity;
    /* backwards: 開始待ちの間も 0% の明るさで灯しておく（真っ暗にしない） */
    animation: starTwinkle var(--tw-dur, 4s) ease-in-out var(--tw-delay, 0s) infinite backwards;
}

/* 大きめの星だけ淡く光らせる */
.star.star-bright {
    box-shadow: 0 0 6px rgba(236, 230, 255, 0.9), 0 0 14px rgba(var(--accent-rgb), 0.45);
}

.star.star-gold {
    background: var(--gold-light);
    box-shadow: 0 0 6px rgba(var(--gold-rgb), 0.8);
}

@keyframes starTwinkle {
    0%, 100% { opacity: var(--tw-min, 0.12); }
    50%      { opacity: var(--tw-max, 0.9); }
}

/* 流れ星。JSがランダムに1つずつ生やして、終わったら捨てる */
.shooting-star {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.75), 0 0 22px 6px rgba(var(--accent-rgb), 0.45);
    opacity: 0;
    will-change: transform, opacity;
    animation: shootingStar var(--sh-dur, 1s) cubic-bezier(0.24, 0.5, 0.35, 1) forwards;
}

/* 尾。頭の後方（進行方向の逆）へ伸ばす */
.shooting-star::after {
    content: '';
    position: absolute;
    right: 50%;
    top: 50%;
    width: var(--sh-tail, 180px);
    height: 2px;
    margin-top: -1px;
    border-radius: 2px;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(var(--accent2-rgb), 0.35) 35%,
        rgba(255, 255, 255, 0.85) 100%);
}

@keyframes shootingStar {
    0%   { opacity: 0; transform: rotate(var(--sh-angle, 20deg)) translateX(0); }
    10%  { opacity: 1; }
    70%  { opacity: 1; }
    100% { opacity: 0; transform: rotate(var(--sh-angle, 20deg)) translateX(var(--sh-dist, 60vmax)); }
}

/* 動きを減らす設定では、またたきと流れ星を止めて静かな星空にする */
@media (prefers-reduced-motion: reduce) {
    .star { animation: none; opacity: 0.45; }
    .shooting-star { display: none; }
}

/* ===== Card Intro（ヘッダーロゴから来たときの演出） =====
   真っ黒 → カードが下から回転しながら競り上がる → キラキラが弾ける
   → 白飛び → サイトのトップが現れる                                          */
.card-intro {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000;
    overflow: hidden;
    pointer-events: auto;
    /* JSが動かなくてもCSSだけで必ず終了させる */
    animation: cardIntroEnd 0.5s ease 1.75s forwards;
}

@keyframes cardIntroEnd {
    to { opacity: 0; visibility: hidden; }
}

/* カードの後光 */
.card-intro-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 80vmin;
    height: 80vmin;
    margin: -40vmin 0 0 -40vmin;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(var(--gold-rgb), 0.42) 0%, rgba(var(--gold-rgb), 0) 62%),
        radial-gradient(circle, rgba(var(--accent-rgb), 0.5) 0%, rgba(var(--accent-rgb), 0) 70%);
    opacity: 0;
    will-change: opacity, transform;
    animation: cardGlow 1.5s ease-out 0.15s forwards;
}

@keyframes cardGlow {
    0%   { opacity: 0;    transform: scale(0.25); }
    55%  { opacity: 0.85; transform: scale(1); }
    100% { opacity: 0.35; transform: scale(1.25); }
}

/* カード本体 */
.card-intro-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(38vh, 78vw);
    transform-style: preserve-3d;
    perspective: 1200px;
    will-change: transform, opacity;
    animation: cardRise 1.25s cubic-bezier(0.16, 0.84, 0.24, 1) 0.1s both;
}

.card-intro-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow:
        0 0 0 2px rgba(var(--gold-rgb), 0.55),
        0 26px 70px rgba(0, 0, 0, 0.75),
        0 0 70px rgba(var(--accent-rgb), 0.45);
    /* 回転は途中にキーフレームを置かず、ひと続きの減速で回しきる（途中で止まって見えないように） */
    animation: cardSpin 1.32s cubic-bezier(0.22, 0.66, 0.3, 1) 0.1s both;
}

/* 競り上がり（位置と大きさ） */
@keyframes cardRise {
    0%   { opacity: 0; transform: translate(-50%, 30vh) scale(0.35); }
    12%  { opacity: 1; }
    76%  { transform: translate(-50%, -51.5%) scale(1.05); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* 回転（カードゲームの登場演出）。0%→100% の一筆書きで、溜めを作らない */
@keyframes cardSpin {
    0%   { transform: rotateY(0deg) rotateZ(-26deg); }
    100% { transform: rotateY(1080deg) rotateZ(0deg); }
}

/* キラキラ（JSが位置と方向を決めて生やす） */
.card-intro-sparks {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
}

.spark {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--sp-size, 6px);
    height: var(--sp-size, 6px);
    margin: calc(var(--sp-size, 6px) / -2) 0 0 calc(var(--sp-size, 6px) / -2);
    border-radius: 50%;
    background: var(--sp-color, #fff);
    box-shadow: 0 0 8px 2px rgba(var(--gold-rgb), 0.6);
    opacity: 0;
    will-change: transform, opacity;
    animation: sparkFly var(--sp-dur, 1s) ease-out var(--sp-delay, 0s) forwards;
}

@keyframes sparkFly {
    0%   { opacity: 0; transform: rotate(var(--sp-angle, 0deg)) translateX(var(--sp-from, 40px)) scale(0.2); }
    18%  { opacity: 1; }
    100% { opacity: 0; transform: rotate(var(--sp-angle, 0deg)) translateX(var(--sp-to, 300px)) scale(1); }
}

/* 白飛び */
.card-intro-flash {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #ffffff 55%, rgba(255, 255, 255, 0.9) 100%);
    opacity: 0;
    animation: cardFlash 0.75s ease-in 1.12s forwards;
}

@keyframes cardFlash {
    0%   { opacity: 0; }
    38%  { opacity: 1; }
    100% { opacity: 0.9; }
}

/* 動きを減らす設定の環境では出さない */
@media (prefers-reduced-motion: reduce) {
    .card-intro { display: none; }
}

/* ===== Guideline（Profile直下に移設） ===== */
.guideline-inline {
    max-width: 860px;
    margin: 64px auto 0;
    padding: 34px 36px 38px;
    background: rgba(18, 12, 42, 0.55);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(6px);
    scroll-margin-top: 90px;
}

.guideline-inline-title {
    font-family: var(--font-en, 'Cormorant Garamond', serif);
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-align: center;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.guideline-inline-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 1px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.guideline-inline .guideline-body {
    margin-top: 24px;
}

@media (max-width: 768px) {
    .guideline-inline {
        margin-top: 44px;
        padding: 24px 18px 28px;
    }
    .guideline-inline-title { font-size: 22px; }
}

/* ===== Twitchサブスクライブ特典モーダル ===== */
/* 動画サムネの下の「Twitch入会特典」ボタン */
.stream-perk-action {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.perk-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

/* display:flex が hidden 属性（UA の display:none）に勝ってしまうので明示的に打ち消す */
.perk-modal[hidden] {
    display: none;
}

.perk-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 2, 10, 0.82);
    backdrop-filter: blur(6px);
    animation: perkFade 0.25s ease both;
}

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

.perk-modal-box {
    position: relative;
    width: 100%;
    max-width: 880px;
    max-height: 86vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 34px 32px 30px;
    background: linear-gradient(168deg, rgba(21, 12, 56, 0.97), rgba(10, 6, 32, 0.97));
    border: 1px solid var(--border-gold);
    /* 四隅とも同じ丸み */
    border-radius: var(--radius);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.7), 0 0 70px rgba(var(--accent-rgb), 0.25);
    animation: perkPop 0.32s cubic-bezier(0.2, 0.9, 0.3, 1) both;
    /* Firefox: 溝は背景と同色、つまみは枠と同系の紫 */
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--accent-rgb), 0.85) transparent;
}

/* Chrome / Safari / Edge: 溝は透明（＝モーダル背景のまま）、
   つまみは枠と同じ金→紫→青のグラデーション。
   つまみは透明ボーダーで内側に寄せて、四隅の丸みを邪魔しないようにする。 */
.perk-modal-box::-webkit-scrollbar {
    width: 10px;
}

.perk-modal-box::-webkit-scrollbar-track {
    background: transparent;
    margin: 10px 0;
}

.perk-modal-box::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
    background-color: rgba(var(--accent-rgb), 0.85);
    background-image: linear-gradient(180deg,
        rgba(var(--gold-rgb), 0.95),
        rgba(var(--accent-rgb), 0.95) 50%,
        rgba(var(--accent2-rgb), 0.95));
}

.perk-modal-box::-webkit-scrollbar-thumb:hover {
    background-image: linear-gradient(180deg,
        var(--gold-light),
        var(--accent-light) 50%,
        var(--accent2-light));
}

.perk-modal-box::-webkit-scrollbar-button,
.perk-modal-box::-webkit-scrollbar-corner {
    display: none;
    background: transparent;
}

@keyframes perkPop {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.perk-modal-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: center;
    color: var(--gold-light);
    margin-bottom: 6px;
}

.perk-modal-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 1px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.perk-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 36px;
    height: 36px;
    line-height: 1;
    font-size: 26px;
    background: none;
    border: 0;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.perk-modal-close:hover {
    color: #fff;
    transform: scale(1.15);
}

/* 元画像の縦横比がバラバラなので、同じ枠に contain で収めて並びを揃える */
.perk-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 26px;
}

.perk-item {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    padding: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.perk-item:hover {
    border-color: var(--border-gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 26px rgba(var(--accent-rgb), 0.22);
}

/* 元画像が 228x132 〜 1487x1164 とバラバラなので、
   同じ枠いっぱいに contain で合わせて見た目の大きさを揃える（切り取り・歪みなし） */
.perk-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}

.perk-modal-actions {
    margin-top: 26px;
    text-align: center;
}

@media (max-width: 768px) {
    .perk-modal-box { padding: 28px 16px 24px; max-height: 88vh; }
    .perk-modal-title { font-size: 17px; }
    .perk-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ===== Custom Cursor（.ani から変換したアニメーションカーソル） ===== */
.cursor-pet {
    position: fixed;
    left: 0;
    top: 0;
    width: 48px;                 /* 元データ32pxのドット絵を1.5倍で表示 */
    height: auto;
    z-index: 1300;               /* モーダル(1200)より上 */
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    will-change: transform;
    image-rendering: pixelated;  /* ドット絵をぼかさない */
    user-select: none;
}

.cursor-pet.is-visible {
    opacity: 1;
}

/* クリック中は少しへこませる */
.cursor-pet.is-down {
    filter: brightness(1.15);
}

/* 画像が読み込めたときだけ本物のカーソルを隠す（JSが付け外しする） */
html.custom-cursor,
html.custom-cursor * {
    cursor: none !important;
}

/* 指で操作する端末とモーションを減らす設定では出さない */
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
    .cursor-pet { display: none; }
}
