/* reset & variables */
:root {
    --bg-color-main: #050505;
    --bg-color-sec: #111111;
    --text-main: #eaeaea;
    --text-muted: #888888;
    --accent-red: #c02020;
    --accent-silver: #c0c0c0;
    --font-heading: 'Cinzel', serif;
    --font-base: 'Noto Sans JP', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

a {
    color: inherit;
    text-decoration: none;
}

li {
    list-style: none;
}

/* =========================================
   オープニング・ローダー
   ========================================= */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.2s ease-in-out, visibility 1.2s;
}

.loader.loaded {
    opacity: 0;
    visibility: hidden;
}

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

.loader-logo {
    font-family: var(--font-heading);
    font-size: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.loader-logo span {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.loader-logo .terry {
    animation-delay: 0.2s;
    color: var(--text-main);
}

.loader-logo .amp {
    animation-delay: 0.6s;
    color: var(--accent-red);
    font-size: 2rem;
}

.loader-logo .bluejeans {
    animation-delay: 1.0s;
    color: var(--text-main);
}

.loader-subtitle {
    margin-top: 1rem;
    font-family: var(--font-heading);
    letter-spacing: 0.2em;
    color: var(--accent-silver);
    opacity: 0;
    animation: fadeIn 1s forwards 1.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* =========================================
   ナビゲーション
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    z-index: 1000;
    transition: background-color 0.3s, padding 0.3s;
}

.navbar.scrolled {
    background-color: rgba(5, 5, 5, 0.95);
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin: -5px 0;
    transition: transform 0.3s;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.nav-brand:hover .navbar-logo {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 700;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-red);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--accent-red);
}

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

/* RESERVE ナビボタン */
.nav-reserve {
    background: var(--accent-red) !important;
    color: #fff !important;
    padding: 0.35rem 1rem !important;
    border-radius: 3px;
    letter-spacing: 2px;
}

.nav-reserve:hover {
    background: #a93226 !important;
    color: #fff !important;
}

.nav-reserve::after {
    display: none !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: 0.3s;
}

/* =========================================
   ヒーローセクション
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #000;
    overflow: hidden;
}

/* ヒーロー写真（動画の前に表示） */
.hero-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

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

.hero-photo.fade-out {
    opacity: 0;
}

/* 背景動画 */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) scale(0.50);
    object-fit: cover;
    object-position: center center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 四方のぼかし＋暗くして文字を読みやすくする */
    background:
        radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.85) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1rem;
    max-width: 800px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    /* 金属的なグラデーションテキスト */
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(192, 32, 32, 0.3);
}

.hero-lead {
    font-size: 1.2rem;
    color: var(--accent-silver);
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--accent-red);
    color: #fff;
    box-shadow: 0 0 20px rgba(192, 32, 32, 0.4);
}

.btn-primary:hover {
    background-color: #a01010;
    box-shadow: 0 0 30px rgba(192, 32, 32, 0.6);
}

.btn-secondary {
    border: 1px solid var(--accent-silver);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-outline {
    border: 1px solid var(--text-main);
    color: var(--text-main);
    padding: 0.8rem 1.5rem;
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--bg-color-main);
}

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

.scroll-text {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-red);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

/* =========================================
   汎用セクション
   ========================================= */
.section {
    padding: 8rem 0;
}

.dark-section {
    background-color: var(--bg-color-sec);
}

.black-section {
    background-color: var(--bg-color-main);
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-red);
}

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

.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* アニメーション用クラス */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   ニュースセクション
   ========================================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.news-card {
    background-color: rgba(255, 255, 255, 0.02);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(192, 32, 32, 0.3);
}

.news-date {
    font-family: var(--font-heading);
    color: var(--accent-red);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.news-head {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.news-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.news-link {
    display: inline-block;
    margin-top: 1.2rem;
    color: var(--accent-red);
    font-size: 0.85rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, color 0.3s;
}

.news-link:hover {
    border-bottom-color: var(--accent-red);
    color: #ff4444;
}

/* =========================================
   プロフィールセクション
   ========================================= */
.profile-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
    color: var(--accent-silver);
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

/* 寺内タケシさんを大きく見せるなどの工夫（ここでは均等配置の基本） */
.members-grid .member-card:first-child {
    grid-column: 1 / -1;
    margin-bottom: 2rem;
}

.members-grid .member-card:first-child .member-img-placeholder {
    width: 250px;
    height: 250px;
}

.members-grid .member-card:first-child .member-name {
    font-size: 1.8rem;
}

.member-img-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.member-img-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #222, #050505);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* 追加: 実画像のスタイル */
.member-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.members-grid .member-card:first-child .member-img {
    width: 250px;
    height: 250px;
}

.member-card:hover .member-img-placeholder,
.member-card:hover .member-img {
    border-color: var(--accent-red);
    box-shadow: 0 0 20px rgba(192, 32, 32, 0.2);
}

.member-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.member-part {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--accent-red);
    letter-spacing: 1px;
}

/* =========================================
   メンバー詳細モーダル（ポップアップ）
   ========================================= */
.member-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.member-modal.active {
    display: flex;
}

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

.modal-content {
    position: relative;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 620px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 3rem 2.5rem;
    z-index: 10000;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(192, 32, 32, 0.15);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.modal-close:hover {
    color: var(--accent-red);
}

.modal-img-wrap {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-img-wrap img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid var(--accent-red);
    box-shadow: 0 0 30px rgba(192, 32, 32, 0.3);
}

.modal-name {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
    color: var(--text-main);
}

.modal-part {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--accent-red);
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.modal-bio {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 2;
    white-space: pre-line;
}

/* スクロールバーのスタイル */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 2rem 1.5rem;
        max-height: 90vh;
    }

    .modal-img-wrap img {
        width: 120px;
        height: 120px;
    }
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

.delay-6 {
    transition-delay: 0.6s;
}


/* =========================================
   スケジュールセクション
   ========================================= */
.schedule-list {
    max-width: 800px;
    margin: 0 auto;
}

.schedule-item {
    display: flex;
    align-items: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s;
}

.schedule-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--accent-red);
}

.schedule-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #000;
    border-radius: 4px;
    margin-right: 2rem;
    flex-shrink: 0;
}

.schedule-date .month {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--accent-red);
}

.schedule-date .day {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: bold;
}

.schedule-venue {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.schedule-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* MOREボタン */
/* チケット予約ボタン（スケジュール欄） */
.btn-ticket {
    display: inline-block;
    background: var(--accent-red);
    color: #fff;
    padding: 0.45rem 1.2rem;
    font-size: 0.78rem;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    border-radius: 3px;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
    margin-bottom: 0.6rem;
    margin-right: 0.5rem;
}

.btn-ticket:hover {
    background: #a93226;
    transform: translateY(-1px);
    color: #fff;
}

.btn-more {
    background: none;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.btn-more:hover {
    background-color: var(--accent-red);
    color: #fff;
}

/* スケジュール詳細エリア (初期状態は非表示) */
.schedule-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, margin-top 0.4s ease-out, opacity 0.4s ease-out;
    opacity: 0;
    display: flex;
    gap: 2rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.schedule-details.open {
    max-height: 500px;
    /* 十分な高さを確保 */
    margin-top: 1rem;
    padding-top: 1.5rem;
    opacity: 1;
}

.detail-flyer {
    flex: 0 0 150px;
}

.flyer-placeholder {
    width: 100%;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
}

.flyer-img {
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: zoom-in;
}

.flyer-img:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 25px rgba(192, 32, 32, 0.4);
}

/* =========================================
   フライヤー ライトボックス
   ========================================= */
.flyer-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.flyer-lightbox.active {
    display: flex;
}

.flyer-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(6px);
    cursor: zoom-out;
}

.flyer-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    animation: lightboxFadeIn 0.25s ease-out;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}

.flyer-lightbox-content img {
    display: block;
    max-width: 90vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.flyer-lightbox-close {
    position: absolute;
    top: -44px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
    padding: 4px 10px;
}

.flyer-lightbox-close:hover {
    opacity: 1;
    transform: scale(1.15);
}

.detail-text {
    flex: 1;
}

.detail-text h4 {
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--accent-red);
    padding-left: 0.5rem;
}

.detail-text p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
    .schedule-details.open {
        flex-direction: column;
        gap: 1.5rem;
        max-height: 800px;
    }

    .detail-flyer {
        flex: auto;
        width: 100%;
        max-width: 200px;
    }
}

/* =========================================
   フッター
   ========================================= */
.footer {
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-info p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-links {
    max-width: 400px;
}

.footer-links p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

/* =========================================
   レスポンシブ (スマホ・タブレット対応)
   ========================================= */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* スマホではハンバーガーメニューにする想定 */
    }

    .hamburger {
        display: flex;
    }

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

    .hero-lead {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section {
        padding: 5rem 0;
    }

    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .schedule-date {
        margin-bottom: 1rem;
        width: 60px;
        height: 60px;
    }

    .schedule-date .day {
        font-size: 1.3rem;
    }

    .footer-content {
        flex-direction: column;
    }
}