/* 全体のリセットと基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif; /* Google Fonts適用 */
    line-height: 1.6;
    color: #f0f0f0; /* メインテキストの色を明るめに */
    background-color: #1a1a1a; /* 全体の背景を暗めの黒に */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

a {
    color: #e00000; /* リンクの基本色を赤に */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff3333; /* ホバー時に明るい赤に */
}

/* ヘッダー */
header {
    background-color: #0d0d0d;
    color: #e00000;
    /* ここを調整 */
    padding: 0 1rem; /* 上下の余白を0.5remに縮小（左右は1remで維持） */
    border-bottom: 2px solid #e00000;
    position: sticky;
    top: 0;
    z-index: 1000;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ヘッダーのロゴ */
header .logo img {
    /* ここを調整 */
    height: 70px; /* ロゴの高さを70pxに設定 */
    vertical-align: middle;
}
/* レスポンシブデザインの調整も忘れずに */
@media (max-width: 768px) {
    header .logo img {
        height: 35px; /* スマホ表示時のロゴ高さも調整（PC版の約半分程度に） */
    }
    /* 必要であれば、スマホ版ヘッダーのpaddingも調整できます */
    /* header {
        padding: 0 10px;
    } */
}
header nav ul {
    list-style: none;
    display: flex; 
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #f0f0f0; /* ナビリンクの色を明るい色に */
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
}

header nav ul li a:hover {
    background-color: #e00000; /* ホバー時に背景を赤に */
    color: #ffffff; /* ホバー時に文字色を白に */
}

/* ヒーローセクション */
.hero-section {
    position: relative; /* 擬似要素の基準とする */
    background-color: #222222;
    color: #ffffff;
    text-align: center;
    padding: 100px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('images/hero-bg.jpg'); /* ヒーローセクションの背景画像パス */
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* 半透明の黒いオーバーレイ */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* 黒い半透明色 (最後の0.4で透明度を調整) */
    z-index: 1;
}

/* 文字を含むコンテナをオーバーレイより上に表示 */
.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h2 {
    font-family: 'Rampart One', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #dae000; /* メイン見出しを赤に */
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.4);
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    background-color: #e00000; /* ボタンの背景を赤に */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
}

.btn:hover {
    background-color: #ff3333; /* ホバー時に明るい赤に */
    transform: translateY(-3px);
}

/* セクション共通スタイル */
.section {
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid #333333; /* セクション間の区切り線 */
}

.section h2 {
    font-family: 'Montserrat', sans-serif; /* Google Fonts適用 */
    font-size: 2.8rem;
    color: #e00000; /* セクション見出しを赤に */
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #e00000;
    margin: 10px auto 0;
}

.section p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #cccccc;
}

.dark-bg {
    background-color: #0d0d0d; /* 暗い背景のセクション */
}

/* 「DuoABについて」タブのスタイル */
.tabs-container {
    margin-top: 50px;
    background-color: #0d0d0d; /* タブコンテナの背景色 */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #333333;
    background-color: #1a1a1a; /* ボタンエリアの背景色 */
}

.tab-button {
    background-color: transparent;
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #cccccc; /* 非アクティブ時の文字色 */
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    flex-grow: 1;
    text-align: center;
}

.tab-button:hover {
    background-color: #222222;
    color: #e00000;
}

.tab-button.active {
    background-color: #e00000;
    color: #ffffff;
    border-bottom: 3px solid #ff3333;
    pointer-events: none;
}

/* 各タブコンテンツの背景画像設定 */
#duoab-history {
    background-image: url('images/duoab.jpg'); /* 確認済みファイル名 */
}

#masashi-profile {
    background-image: url('images/masashi-profile.jpg'); /* 確認済みファイル名 */
}

#olya-profile {
    background-image: url('images/olya-profile.jpg'); /* 確認済みファイル名 */
}

/* 各タブコンテンツに共通の背景設定とオーバーレイ */
.tab-content {
    padding: 30px;
    display: none; /* 初期状態では非表示 */
    color: #f0f0f0;
    text-align: left; /* テキストを左寄せに */
    position: relative; /* オーバーレイの基準 */
    background-size: cover; /* 背景画像をコンテナ全体に表示 */
    background-position: top left; /* 左上に配置 */
    overflow: hidden; /* 画像がはみ出さないように */
    min-height: 400px; /* 画像が見えるように最低高さを設定 */
    /* background-repeat: no-repeat;  必要であれば追加 */
}

/* 背景画像の上に重ねる半透明のオーバーレイ */
.tab-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* 半透明の黒（透過度を調整） */
    z-index: 1;
}

/* テキストコンテンツをオーバーレイより手前に表示 */
.tab-content h3,
.tab-content p {
    position: relative;
    z-index: 2;
    color: #f0f0f0; /* テキスト色を明るく維持 */
}

/* アクティブなタブコンテンツの表示 */
.tab-content.active {
    display: block; /* アクティブなコンテンツのみ表示 */
}

/* レスポンシブデザインの調整 */
@media (max-width: 768px) {
    .tab-buttons {
        flex-direction: column;
    }
    .tab-button {
        padding: 12px 15px;
        font-size: 1rem;
    }
    .tab-content {
        padding: 20px;
        min-height: 300px; /* スマホでの最低高さを調整 */
    }
    .tab-content h3 {
        font-size: 1.8rem;
    }
}

/* パフォーマンスグリッド */
.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* パフォーマンスグリッド内の各項目に共通のスタイル */
.performance-item {
    background-color: #222222; /* 画像が見えない場合や読み込み中用 */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative; /* 背景画像とオーバーレイの基準 */
    overflow: hidden; /* 画像がはみ出さないように */
    min-height: 250px; /* ある程度の高さを確保。テキスト量に合わせて調整 */
    text-align: left; /* テキストを左寄せに維持 */
    color: #ffffff; /* テキストを白く */
    border: 2px solid #e00000;
    background-size: cover; /* 背景画像を要素全体にカバー */
    background-position: center; /* 画像を中央に配置 */
    background-repeat: no-repeat; /* 画像の繰り返しを禁止 */
}

/* 各パフォーマンスアイテムの上に半透明のオーバーレイ */
.performance-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* 半透明の黒（透明度を調整してください） */
    z-index: 1;
}

/* テキストコンテンツをオーバーレイより手前に表示 */
.performance-item h3,
.performance-item p {
    position: relative;
    z-index: 2; /* オーバーレイより上に表示 */
    color: #ffffff; /* テキスト色を白に */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); /* テキストの視認性を高める影 */
}

/* 個別の背景画像設定 */
#item-acrobat {
    background-image: url('images/acrobat-bg.jpg'); /* アクロバット用の画像パス */
}

#item-aerial {
    background-image: url('images/comedy-bg.jpg'); /* コメディ用の画像パス */
}

#item-comedy {
    background-image: url('images/workshop-bg.jpg'); /* ワークショップ用の画像パス */
}

/* レスポンシブデザインの調整 (パフォーマンスアイテム) */
@media (max-width: 768px) {
    .performance-item {
        min-height: 200px; /* スマホでの最低高さを調整 */
        padding: 20px;
        text-align: left; /* スマホでも左寄せを維持 */
    }
    .performance-item h3 {
        font-size: 1.3rem;
    }
    .performance-item p {
        font-size: 0.9rem;
    }
}
/* Swiper (ギャラリー) のスタイル */
.swiper-container {
    width: 100%;
    max-width: 900px;
    height: 500px; /* 高さを指定 */
    margin: 40px auto;
    background-color: #0d0d0d;
    border: 2px solid #e00000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain; /* 画像を縮小して全体を表示 */
}

/* ページネーション（点）のスタイル */
.swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.swiper-pagination-bullet {
    background-color: #cccccc;
    opacity: 0.7;
    margin: 0 5px;
}

.swiper-pagination-bullet-active {
    background-color: #e00000;
}

/* ナビゲーションボタン（矢印）のスタイル */
.swiper-button-next,
.swiper-button-prev {
    color: #e00000 !important;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.swiper-button-next {
    right: 10px;
}

.swiper-button-prev {
    left: 10px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: #ff3333 !important;
    opacity: 1;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 30px !important;
}

/* スマートフォンでの表示調整 (Swiper) */
@media (max-width: 768px) {
    .swiper-container {
        height: 300px;
        margin: 20px auto;
    }
    .swiper-button-next,
    .swiper-button-prev {
        transform: scale(0.7) translateY(-50%);
    }
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 24px !important;
    }
    .swiper-pagination {
        bottom: 5px;
    }
}

/* ビデオセクションのスタイル */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9のアスペクト比 (YouTubeの標準) */
    height: 0;
    overflow: hidden;
}

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

/* SNSリンクのスタイル */
.social-links {
    margin-top: 30px;
    text-align: center;
}

.social-links a {
    display: inline-block;
    margin: 0 15px;
}

.social-links img {
    height: 150px; /* ロゴサイズを適切に調整 */
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.social-links img:hover {
    opacity: 1;
    transform: translateY(-5px);
}

/* フッター */
footer {
    background-color: #0d0d0d;
    color: #aaaaaa;
    text-align: center;
    padding: 20px 0;
    border-top: 2px solid #e00000;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* 全体のレスポンシブ調整 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    header .logo img {
        height: 40px;
    }
    header nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    header nav ul li {
        margin: 5px 10px;
    }
    .hero-section {
        padding: 60px 0;
        min-height: 400px;
    }
    .hero-section h2 {
        font-size: 2.5rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .section {
        padding: 60px 0;
    }
    .section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .section p {
        font-size: 1rem;
    }
    .social-links img {
        height: 30px;
    }
}