:root {
    --font-logo: 'M PLUS 1p', sans-serif;
    --font-body: 'M PLUS 1p', sans-serif;
    --sidebar-width: 260px;
    --logo-size: min(16rem, 18vh);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-weight: 700;
    color: #111;
    background-color: #fff;
    overflow-x: hidden;
    line-height: 1.8;
    letter-spacing: 0.05em;
    width: 100%;
}

.layout-wrapper {
    display: block; 
    width: 100%;
    position: relative;
}

/* ==========================================================================
   ▼ ポップアップ (モーダル)
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal.show {
    display: block; opacity: 1;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    width: 90%; max-width: 900px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-radius: 8px;
    animation: slideUp 0.4s ease;
}
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute; top: 15px; right: 25px;
    font-size: 40px; font-weight: 900; color: #aaa;
    cursor: pointer; z-index: 10; line-height: 1;
}
.close-btn:hover { color: #000; }

.modal-body { display: flex; flex-wrap: wrap; }

.modal-img-box {
    flex: 1 1 400px; padding: 40px;
    display: flex; align-items: center; justify-content: center;
    background: #f9f9f9; border-radius: 8px 0 0 8px;
}
.modal-img-box img { width: 100%; max-width: 400px; height: auto; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }

.modal-info-box { flex: 1 1 400px; padding: 50px 40px; }

.modal-title { font-size: 1.5rem; font-weight: 900; margin-bottom: 10px; line-height: 1.3; }
.modal-artist { font-size: 0.9rem; color: #555; margin-bottom: 5px; font-weight: 700; }
.modal-label { font-size: 0.85rem; color: #555; margin-bottom: 15px; font-weight: 700; }

/* クレジット詳細 */
.modal-credits { 
    font-size: 0.85rem; color: #444; margin-bottom: 30px; 
    line-height: 1.6; white-space: pre-wrap; font-weight: 700; 
}
.modal-credits a.credit-link {
    color: #444; text-decoration: underline; transition: 0.3s;
}
.modal-credits a.credit-link:hover { color: #000; }

/* 日付などを太字にするクラス */
.text-bold {
    font-weight: 900;
}

.modal-tracklist h4 { font-size: 1rem; margin-bottom: 15px; border-bottom: 2px solid #eee; padding-bottom: 5px; font-weight: 900; }
.modal-tracklist ul { list-style: none; padding-left: 0; margin-bottom: 40px; font-size: 0.9rem; line-height: 1.8; font-weight: 700; }

.modal-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.modal-icon { display: block; transition: all 0.3s ease; filter: grayscale(100%); opacity: 0.5; }
.modal-icon:hover { filter: grayscale(0%); opacity: 1; transform: translateY(-2px); }
.modal-icon img { display: block; height: 32px; width: auto; }

@media (max-width: 768px) {
    .modal-content { margin: 0; width: 100%; height: 100%; border-radius: 0; max-width: none; }
    .modal-img-box { padding: 40px 20px; border-radius: 0; flex: none; width: 100%; }
    .modal-info-box { padding: 30px 20px 80px; flex: none; width: 100%; }
}


/* ==========================================================================
   ▼ メインスクロールエリア
   ========================================================================== */
.main-scroll-area { width: 100%; position: relative; z-index: auto; }

.hero-section { position: relative; width: 100%; height: 100dvh; overflow: hidden; }
.layer { position: absolute; top: 0; left: 0; width: calc(100% - var(--sidebar-width)); height: 100%; }
/* 中心より少し上（35%）を基準に表示 */
.layer img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }

.layer-bg { z-index: 1; }
.layer-member { z-index: 20; pointer-events: none; }

.content-body {
    background-color: #fff; 
    padding: 10px calc(var(--sidebar-width) + 40px) 80px 8%;
    min-height: 100dvh; position: relative; z-index: 15;
}

/* スマホ用ロゴ・ナビ (PCでは非表示) */
.mobile-inline-logo { display: none; }
.mobile-nav-sticky { display: none; }

/* プロフィールエリア (PC/スマホ共通) */
.profile-area {
    display: block;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 10px;
}
.profile-text {
    font-size: 0.9rem; margin-bottom: 15px; line-height: 2; font-weight: 700;
}
.profile-links {
    display: flex; justify-content: center; gap: 10px; font-weight: 900;
}
/* PCでは非表示 */
.mobile-contact { display: none; }


.content-section { margin-bottom: 100px; }

.section-head { margin-bottom: 40px; border-bottom: 2px solid #ddd; padding-bottom: 10px; display: flex; align-items: baseline; justify-content: space-between; }
.section-head h2 { font-size: 1.8rem; font-weight: 900; letter-spacing: 0.1em; }
.release-head { justify-content: flex-start; gap: 20px; align-items: center; }

.streaming-links { display: flex; gap: 15px; align-items: center; margin-left: 10px; padding-top: 4px; }
.service-icon { display: block; transition: all 0.3s ease; filter: grayscale(100%); opacity: 0.3; }
.service-icon:hover { filter: grayscale(0%); opacity: 1; transform: translateY(-2px); }
.service-icon img { display: block; height: 24px; width: auto; }

.text-body { font-size: 1rem; font-weight: 700; line-height: 2.4; margin-bottom: 40px; text-align: justify; }

/* アンダーライン削除 */
.text-link { color: #111; text-decoration: none; border-bottom: none; transition: 0.3s; font-size: 0.9rem; font-weight: 900; }
.text-link:hover { color: #555; }
.sep { margin: 0 10px; color: #ccc; }

/* --- 楽曲グリッド --- */
.apple-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 40px 25px; }
.apple-item { display: block; color: inherit; cursor: pointer; } 
.apple-item:hover { opacity: 0.8; }
.artwork-box { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 6px; border: 1px solid rgba(0,0,0,0.1); box-shadow: 0 4px 12px rgba(0,0,0,0.08); margin-bottom: 12px; }
.artwork-box img { width: 100%; height: 100%; object-fit: cover; }
.info-box { padding-left: 2px; }
.release-title { font-size: 0.95rem; font-weight: 900; line-height: 1.4; margin-bottom: 4px; color: #111; }
.release-artist { font-size: 0.85rem; color: #666; line-height: 1.2; font-weight: 700; }

/* --- 動画 (Video) --- */
/* PC・スマホ共通で少し小さく（最大幅560px、幅90%） */
.video-grid { 
    display: grid; grid-template-columns: 1fr; gap: 30px; 
    max-width: 560px; width: 90%; margin: 0 auto; 
}
.video-item {
    position: relative; width: 100%; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 4px; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.video-item iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* --- ライブ情報 --- */
.live-list { display: flex; flex-direction: column; gap: 50px; }
.live-item { border-bottom: 1px solid #eee; padding-bottom: 40px; display: flex; gap: 40px; align-items: flex-start; }
.live-flyer { flex: 0 0 160px; width: 160px; }
.live-flyer img { width: 100%; height: auto; display: block; border-radius: 4px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.live-flyer a { display: block; transition: opacity 0.3s; }
.live-flyer a:hover { opacity: 0.8; }
.live-content { flex: 1; }
.live-title { font-size: 1.2rem; font-weight: 900; margin-bottom: 10px; letter-spacing: 0.05em; line-height: 1.4; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.live-title a { color: #111; text-decoration: none; transition: color 0.3s, border-bottom 0.3s; border-bottom: 1px solid transparent; }
.live-title a:hover { color: #555; border-bottom-color: #555; }
.live-info { margin-bottom: 25px; font-size: 0.95rem; font-weight: 700; }
.info-row { display: flex; margin-bottom: 8px; }
.info-row .label { width: 60px; color: #888; font-size: 0.85rem; flex-shrink: 0; font-weight: 900; }
.info-row .value { color: #111; }

.past-badge {
    background: #555; color: #fff; font-size: 0.75rem; padding: 3px 8px; border-radius: 2px; vertical-align: middle; font-weight: 700;
}

/* ローディングスピナー */
.loading-spinner {
    margin: 40px auto; width: 40px; height: 40px; border: 4px solid #eee; border-top: 4px solid #333; border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.page-btn {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border: 2px solid #ddd; background: #fff; color: #111; font-family: var(--font-body); font-weight: 900;
    font-size: 0.9rem; cursor: pointer; transition: 0.3s;
}
.page-btn:hover { background: #f5f5f5; border-color: #111; }
.page-btn.active { background: #111; color: #fff; border-color: #111; pointer-events: none; }

/* --- 物販 (Store) --- */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px; margin-top: 40px; }
a.store-item { display: block; text-decoration: none; color: inherit; transition: 0.3s; }
a.store-item:hover { opacity: 0.8; }
.store-img-box {
    width: 100%; aspect-ratio: 1/1; background: #f9f9f9; margin-bottom: 20px; border-radius: 4px; 
    overflow: hidden; border: 1px solid rgba(0,0,0,0.05); position: relative; 
}
.store-img-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sold-out-badge {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.3s;
}
.sold-out-badge span { color: #fff; font-size: 1.5rem; font-weight: 900; letter-spacing: 0.1em; border: 3px solid #fff; padding: 10px 20px; }
a.store-item.is-soldout .sold-out-badge { opacity: 1; visibility: visible; }
.store-info-box { padding-left: 2px; }
.store-name { font-size: 1.1rem; font-weight: 900; margin-bottom: 8px; color: #111; line-height: 1.4; }
.store-price { font-size: 1rem; color: #111; margin-bottom: 6px; font-weight: 700; }
.store-size { font-size: 0.9rem; color: #666; margin-bottom: 15px; font-weight: 700; }


/* ==========================================================================
   ▼ 右側：固定サイドバー (PC用)
   ========================================================================== */
.fixed-sidebar {
    width: var(--sidebar-width); min-width: 200px; height: 100dvh;
    position: fixed; top: 0; right: 0; background-color: #fff;
    z-index: 50; border-left: 2px solid #f5f5f5;
    display: flex; flex-direction: column; justify-content: space-between; align-items: center; 
    padding: 40px 0; overflow-y: auto; 
}
.sidebar-inner { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; align-items: center; }
.sidebar-brand { width: 100%; display: flex; justify-content: center; padding: 0 20px; }
.sidebar-brand img { display: block; width: auto; max-width: 100%; max-height: 40px; object-fit: contain; }
.horizontal-vertical-menu { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; }
.horizontal-vertical-menu ul { list-style: none; display: flex; flex-direction: row; justify-content: center; align-items: stretch; gap: 0; padding: 0; margin: 0; }
.horizontal-vertical-menu li { padding: 0 0.6rem; border-right: 2px solid #ddd; display: flex; align-items: center; }
.horizontal-vertical-menu li:first-child { border-left: 2px solid #ddd; }
.horizontal-vertical-menu a {
    text-decoration: none; color: #111; display: block; writing-mode: vertical-rl; text-orientation: upright;
    font-size: 1rem; letter-spacing: 0.2em; transition: color 0.3s; padding: 10px 0; font-weight: 900;
}
.horizontal-vertical-menu a:hover { color: #0066cc; }
.sidebar-contact { writing-mode: horizontal-tb; font-size: 0.7rem; color: #888; letter-spacing: 0.05em; white-space: nowrap; font-weight: 700; }


/* ==========================================================================
   ▼ スマホ対応 (レスポンシブ)
   ========================================================================== */
@media (max-width: 768px) {
    .layout-wrapper { display: flex; flex-direction: column; }
    .main-scroll-area { width: 100%; }
    .content-body { padding: 0 8% 80px 8%; }
    .hero-section { height: 80dvh; } 
    .layer { width: 100%; }
    .member-names-area { display: none; }
    
    .live-item { flex-direction: column; gap: 20px; }
    .live-flyer { flex: none; width: 100%; max-width: 200px; margin: 0 auto; }
    
    .fixed-sidebar { display: none; }

    /* スマホ用ロゴ (大きく・間隔狭く) */
    .mobile-inline-logo {
        display: flex; justify-content: center; align-items: center; 
        padding: 30px 0 30px; 
        width: 100%;
    }
    .mobile-inline-logo img {
        display: block; width: 90%; max-width: 360px; height: auto; 
    }

    /* スマホ用ナビ (余白ゼロ) */
    .mobile-nav-sticky {
        display: block; position: sticky; top: 0; z-index: 100;
        background: rgba(255, 255, 255, 0.98); border-bottom: 2px solid #eee;
        padding: 0; margin: 0 -8% 0 -8%; width: calc(100% + 16%);
    }
    .mobile-nav-sticky ul { display: flex; justify-content: center; list-style: none; padding: 0; margin: 0; }
    .mobile-nav-sticky li { flex: 1; text-align: center; }
    .mobile-nav-sticky a { 
        display: block; padding: 18px 0; 
        font-size: 0.95rem; color: #111; text-decoration: none; letter-spacing: 0.1em; font-weight: 900; 
    }

    /* プロフィールエリア (スマホ用設定) */
    .profile-area {
        margin-bottom: 40px; /* スマホでは余白広め → 狭める */
    }
    /* スマホでメールアドレス表示 */
    .mobile-contact { 
        display: block; 
        margin-top: 15px; 
        font-size: 0.8rem; 
        color: #888; 
        letter-spacing: 0.05em; 
        font-weight: 700;
    }

    .apple-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 15px; }
}