/* FOOTER FIX: コンテンツの量に関わらずフッターを最下部に固定する構造 */
html, body {
    /* 左右の余白を完全にゼロに */
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    
    /* 横スクロールを完全に禁止 */
    overflow-x: hidden !important; 
    /* ボックスサイズの計算方法を統一し、幅の計算ミスを防ぐ */
    box-sizing: border-box; 
}

html {
    min-height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    
}

.container {
    /* ページのメインコンテンツ部分が残りのスペースを全て占有する */
    flex: 1 0 auto;
    /* 既存のmax-width, margin: auto はそのまま維持 */
    max-width: 1200px; 
    margin: auto;
    overflow: hidden;
    padding: 2rem 0;
}

footer {
    /* フッターが縮まないように固定し、背景を画面幅いっぱいに広げる */
    flex-shrink: 0; 
    width: 100%; /* これが端まで伸びることを保証する */
    background-color: #1b1b1b; /* 背景色の再指定 */
}
/* ベースとなる共通スタイル */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    font-weight: bold;
}
.page-wrapper {
    width: 100%; 
    padding: 2rem 0;
}

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

.section {
    background: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%; /* 親要素の90%の幅を占める */
    max-width: 1000px; /* 最大幅を1000pxに設定 */
    margin-left: auto; /* 中央寄せ */
    margin-right: auto; /* 中央寄せ */
}

.main-visual {
    width: 100%;
    text-align: center;
}

.band-photo {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.main-logo {
    max-width: 80%;
    height: auto;
}

/* ヘッダー・ナビゲーション */
header {
    background: #1b1b1b;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 1rem; /* 左右のpaddingを減らす */
}

.header-logo {
    height: 50px;
    width: auto;
    vertical-align: middle;
}

header h1 {
    margin: 0;
    padding: 0;
}

.header-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.header-nav a {
    color: #fff;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.header-nav a:hover {
    color: #ddd;
}

.social-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-links img {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.social-links a:hover img {
    transform: scale(1.2);
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #fff;
}

/* ライブ・お知らせリスト */
.notice-list, .live-item-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.notice-item, .live-item {
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.notice-date, .live-date {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0;
}

.notice-item h3, .live-item h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.album-release {
    text-align: center;
    margin-bottom: 3rem;
}

.album-art {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

/* メンバーページレイアウト */
.member-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.member {
    background: #fff;
    padding: 1.5rem;
    margin: 1rem;
    flex: 0 0 450px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.member-order {
    text-align: center;
    font-size: 1.1rem;
    margin: 20px 0;
    color: #333;
}

/* ライブページ専用スタイル */
.live-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.live-venue {
    font-size: 1.1rem;
    color: #777;
    margin-top: 0;
    margin-bottom: 1rem;
}

.ticket-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.ticket-link:hover {
    background-color: #555;
}

.past-live {
    opacity: 0.7;
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 3rem 0;
}

/* ページネーション */
.pagination {
    text-align: center;
    margin-top: 2rem;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background-color: #333;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.pagination a:hover {
    background-color: #555;
}

.pagination .current-page {
    background-color: #555;
    cursor: default;

}

/* フッター */
footer {
    background-color: #1b1b1b;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
    width: 100%;
}

/* お問い合わせページ */
.forms-container {
    width: 100%;
    max-width: 640px;
    margin: 2rem auto;
}

.forms-container iframe {
    width: 100%;
    min-height: 500px;
}

.contact-email {
    text-align: center;
    font-size: 1.1rem;
    margin-top: 3rem;
    line-height: 1.8;
}

.contact-email a {
    color: #007bff;
    text-decoration: underline;
}

/* ショップページ */
.button-container-shop {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 3rem;
}

/* ディスコグラフィーページ */
.discography-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}

.discography-link {
    width: 250px;
    transition: transform 0.3s;
}

.discography-link:hover {
    transform: translateY(-5px);
}

.discography-link img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.discography-link h3 {
    margin-top: 10px;
    font-size: 1.2rem;
}

.album-details {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 2rem;
}

.album-art-large {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ビデオページ */
.video-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.video-item {
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 0 0 calc(50% - 1.5rem);
    max-width: 500px;
    text-align: center;
}

.video-item h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-top: 1.5rem;
}

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

/* ---ここからスマホ・タブレット用 (レスポンシブデザイン) --- */
@media (max-width: 768px) {
    .container {
        /* 幅を95%にし、端の余白を確保 */
        width: 95%; 
        /* 左右のpaddingをなくすことで、はみ出しを防ぐ */
        padding-left: 0;
        padding-right: 0;
    }

    .member-list {
        flex-direction: column;
        gap: 10px;
    }

    .member {
        flex: 1 1 100%;
        margin: 0.5rem 0;
    }

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

    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        position: relative;
    }

    .header-nav {
        display: none;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    .header-nav.active {
        display: block;
    }

    .header-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .header-nav a {
        display: block;
        padding: 0.8rem 0;
        border-bottom: 1px solid #555;
    }

    .social-links {
        position: static;
        margin-top: 1rem;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .album-details {
        flex-direction: column;
    }

    .discography-link {
        width: 150px;
    }

    .header-right-group {
        display: none;
    }
}

/* FOOTER FIX: プロフィールページでフッターを強制的に画面幅いっぱいに広げる */
footer {
    /* ページのどこかの要素が 'overflow: hidden'などで幅を制限しているのを強制解除 */
    width: 100% !important; 
    max-width: none !important; 
    margin: 0 !important;
    padding: 1.5rem 0; /* padding はそのまま維持 */
    background-color: #1b1b1b !important;
    /* その他のスタイルも必要に応じて !important をつける */
}

/* フッター内のテキストコンテナも確実に中央寄せにする */
footer .container {
    /* 既存のmax-width: 1200px; はそのまま利用 */
    margin-left: auto !important;
    margin-right: auto !important;
    /* フッター内コンテナの左右paddingを調整して画面端からの距離を調整 */
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* 2. 画像のサイズを元に戻す */
.band-photo {
    /* アー写が親要素の幅を超えないようにする */
    max-width: 100%; 
    height: auto;
}

/* 3. プロフィールページのアー写を制限（特にデカくなった部分） */
.profile-image-section img {
    max-width: 80%;
    height: auto;
}

/* style.css 内にこの定義があることを確認 */
.button-container {
    text-align: center;
    margin-top: 1rem; /* ボタンの上に適切な余白を確保 */
}

/* ライブ一覧のレイアウト修正（縦長解消と横並び） */
.live-item-content {
    display: flex;
    justify-content: space-between; /* 情報を左、ボタンを右に寄せる */
    align-items: center; /* 要素を中央揃えにする */
    gap: 20px;
    width: 100%;
}

.live-info {
    text-align: left;
    /* 情報部分が広がるように設定 */
    flex-grow: 1; 
}

.live-actions {
    /* ボタン部分は幅を取らないように固定 */
    flex-shrink: 0;
}

/* スマホ対応の調整 */
@media (max-width: 768px) {
    .live-item-content {
        flex-direction: column; /* スマホでは縦並びに戻す */
        align-items: flex-start;
    }
    .live-actions {
        width: 100%;
        margin-top: 10px;
    }
    .live-actions .button {
        width: 100%; /* スマホでボタンを横幅いっぱいに広げる */
    }
}

.band-photo {
    /* PCでは幅の90%に制限 */
    max-width: 90%; 
    height: auto;
    /* アー写が中央に表示されるように設定（すでにある場合は不要） */
    margin-left: auto;
    margin-right: auto;
    display: block; 
}

/* 巨大になりすぎないよう、絶対的な最大サイズを設定 */
.main-visual {
    max-width: 1000px; /* 画像の最大幅を1000pxに制限 */
    margin: 3rem auto; /* 中央寄せと上下の余白 */
}

/* トップページ - リリースリンクのスタイル */
.release-link {
    display: inline-block; /* リンクをブロック化して、画像全体をクリック可能にする */
    text-align: center;
    transition: transform 0.3s;
}

.release-link:hover {
    transform: translateY(-5px); /* マウスオーバーで少し上に浮き上がる */
}

/* 既存の .album-release スタイルを調整 */
.album-release {
    text-align: center;
    margin-bottom: 3rem;
}