/* ========================================
 * イベント詳細ページ（下層ページ）用CSS
 * ======================================== */

/* Hero View */
.event-detail-page .event-hero-view {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.event-detail-page .hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.event-detail-page .hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.event-detail-page .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.event-detail-page .hero-title {
    color: #fff;
    font-size: 48px;
    font-weight: bold;
    font-family: ads-ayumin, sans-serif;
    white-space: nowrap;
}

/* Tabs Container */
.event-detail-page .event-schedule-section {
    padding: 0;
    background-color: #f0ead6;
    margin: 70px 30px;
    position: relative;
    z-index: 2;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.event-detail-page .tab {
    width: 50%;
    max-width: 1200px;
    padding: 20px 0;
    text-align: center;
    background-color: #f0ead6;
    color: #888;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-sizing: border-box;
    border-bottom: 4px solid #888;
}

.event-detail-page .tab.active {
    background-color: var(--tab-active-kaso);
    color: #000;
    border-bottom: 4px solid black;
}

.event-detail-page .tab-date {
    padding-left: 10px;
}

.event-detail-page .tab-content {
    display: none;
    padding: 40px 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;  
}

.tab-content.active {
    display: block;
  }

.event-detail-page .tab-content.tab-content1 {
    background: var(--gradient-tabnaka-kaso);
}
  
.event-detail-page .tab-content.tab-content2 {
    padding: 0px 0px;
}
  
.session-block {
    background-color: var(--bg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap; /* レスポンシブ対応 */
    /* align-items: flex-start; */
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.session-block:last-child {
    margin-bottom: 0;
}

.session-info {
    flex: 1;
    min-width: 250px; /* 最小幅 */
    padding-left: 100px;
    box-sizing: border-box;
    text-align: left;
}

.session-time {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
    background-color: #000;
    padding: 5px 15px;
    border-radius: 30px;
    display: inline-block;
}

.session-lesson-name {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.session-description {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    line-height: 1.5;
    margin-bottom: 25px;
}

.reserve-button {
    display: inline-flex;
    align-items: center;
    background-color: #fff;
    color: #333;
    border: 3px solid #ff9900;
    padding: 7px 60px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    font-size: 20px;
}

.reserve-button:hover {
    background-color: #ffc107;
    color: #000;
}

.reserve-button .arrow {
    margin-left: 8px;
    font-weight: normal; /* 矢印は通常の太さに */
    font-size: 18px;
}

.reserve-button.disabled {
    pointer-events: none;
    background-color: #ccc;
    color: #666;
    cursor: default;
}
.no-reserve-text {
    color: #d9534f;
    font-weight: bold;
    margin-top: 10px;
}
  

/* Instructor Photos */
.instructor-photos {
    flex: 2; /* インストラクター写真の幅 */
    display: flex;
    flex-wrap: wrap; /* 複数のインストラクターを折り返す */
    gap: 70px; /* 写真間のスペース */
    justify-content: center; /* 右寄せ */
    align-items: center;
    box-sizing: border-box;
}

.instructor-item {
    text-align: center;
    /* width: calc(50% - 5px); 2列表示 */
}

.instructor-image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
  

/* 新しいインストラクター画像ラッパーのスタイル */
.instructor-image-wrapper {
    position: relative;
    width: 300px; /* 写真のサイズ */
    height: 300px;
    margin-bottom: 5px; /* 下の名前との隙間 */
}

.instructor-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* 画像の下の余白をなくす */
}

/* artist-name-overlayのスタイル */
.artist-name-overlay {
    position: absolute;
    bottom: 20px;
    left: -25px;
    background-color: #000;
    color: #fff;
    padding: 5px 10px;
    text-align: center;
    box-sizing: border-box;
}

.artist-name-overlay .japanese-name {
    display: block;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.artist-name-overlay .english-name {
    display: block;
    font-family: duos-brush, sans-serif; /* front-page.cssに合わせて調整 */
    font-size: 12px;
    line-height: 1.2;
}


/* インストラクター表示ロジック */
.instructor-photos .single-instructor {
    width: 100%; /* 1人の場合 */
    display: flex;
    flex-direction: column;
    align-items: center; /* 中央寄せ */
}

.instructor-photos .single-instructor .instructor-image-wrapper {
    margin: 0 auto 5px auto; /* 1人の場合は中央に */
}

.instructor-photos .single-instructor-on-second-row {
    width: 100%; /* 3人目の場合 */
    display: flex;
    flex-direction: column;
    align-items: center; /* 中央寄せ */
}
.instructor-photos .single-instructor-on-second-row .instructor-image-wrapper {
    margin: 0 auto 5px auto; /* 3人目の場合も中央に */
}

/* 元の名前表示は不要になるため、スタイルを削除またはコメントアウト */
/* .instructor-name-jp, .instructor-name-en はもはや不要 */
.instructor-item .instructor-name-jp,
.instructor-item .instructor-name-en {
    display: none;
}


/* ========================================
 * Media Queries (レスポンシブ対応)
 * ======================================== */
@media (max-width: 1024px) {
    .session-info {
        padding-left: 50px;
    }
}

@media (max-width: 834px) {

    .instructor-photos {
        flex: 1; /* 比率を2から1に変更して、session-infoと1対1にする */
    }

    .session-info {
        padding-right: 40px;
        padding-left: 10px;
    }

    .reserve-button {
        font-size: 17px;
        /* display: block;
        margin-left: auto;
        margin-right: auto;
        width: fit-content; */
    }
}

@media (max-width: 820px) {
    .session-info {
        padding-left: 10px;
    }

    .reserve-button {
        font-size: 17px;
    }
}


@media (max-width: 768px) {
    .event-detail-page .hero-title {
        font-size: 36px;
    }

    .event-detail-page .tab {
        font-size: 18px;
        padding: 10px 0;
    }

    .event-detail-page .tab-date {
        font-size: 12px;
    }

    .session-block {
        flex-direction: column; /* 縦並びに変更 */
        align-items: flex-start;
    }

    .session-info {
        width: 100%;
        padding-right: 0;
        margin-bottom: 20px;
        text-align: center; /* 中央寄せ */
        padding-left: 0;
    }

    .reserve-button {
        display: block;
        margin: 0 auto;
        width: fit-content;
    }

    .instructor-photos {
        width: 100%;
        justify-content: center; /* 中央寄せ */
    }

    .instructor-item {
        width: calc(33.33% - 7px); /* 3列表示 */
    }

    .instructor-photos .single-instructor,
    .instructor-photos .single-instructor-on-second-row {
        width: 100%; /* 1人の場合は中央に */
    }

    .instructor-item .instructor-image-wrapper { /* レスポンシブで画像サイズ調整 */
        width: 230px;
        height: 230px;
    }

    .artist-name-overlay .japanese-name {
        font-size: 12px;
    }

    .artist-name-overlay .english-name {
        font-size: 10px;
    }
}

@media (max-width: 480px) {

    .event-detail-page .event-schedule-section{
        margin: 70px 15px;
    }
    
    .event-detail-page .hero-title {
        font-size: 28px;
    }

    .event-detail-page .tab {
        font-size: 16px;
    }

    .event-detail-page .tab-date {
        font-size: 10px;
    }

    .session-block {
        padding: 20px 10px;
    }    

    .instructor-photos {
        flex-direction: column; /* 縦並びに変更して1列表示 */
        gap: 15px; /* 縦方向のギャップを調整 */
    }

    .instructor-item {
        width: 100%; /* 1列表示 */
    }

    .session-lesson-name {
        font-size: 17px;
    }
    
    .session-description {
        font-size: 16px;
    }
    
    .session-description2 {
        font-size: 15px;
    }
    

    .instructor-item .instructor-image-wrapper {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    /* single-instructor と single-instructor-on-second-row の幅も100%に */
    .instructor-photos .single-instructor,
    .instructor-photos .single-instructor-on-second-row {
        width: 100%;
    }
    /* 常に中央寄せ */
    .instructor-photos .single-instructor .instructor-image-wrapper,
    .instructor-photos .single-instructor-on-second-row .instructor-image-wrapper {
        margin: 0 auto;
    }


    .artist-name-overlay {
        left: 50%; /* 中央寄せ */
        transform: translateX(-50%); /* 中央寄せ */
        bottom: 0;
        width: auto; /* コンテンツに合わせて幅を調整 */
        white-space: nowrap; /* 名前が改行されないように */
        padding: 1px 4px;
    }

    /* .artist-name-overlay .japanese-name {
        font-size: 10px;
    }

    .artist-name-overlay .english-name {
        font-size: 10px;
    } */
}


@media (max-width: 375px) {
    .event-detail-page .hero-title {
        font-size: 25px;
    }
}

@media (max-width: 320px) {

    .event-detail-page .event-schedule-section{
        margin: 70px 10px;
    }

    .session-block {
        padding: 20px 5px;
    }

    .event-detail-page .hero-title {
        font-size: 22px;
    }

    .reserve-button {
        padding: 7px 40px;
    }

}



/* ========================================
 * DAY2 エリア分け用スタイル
 * ======================================== */

/* 各エリアのコンテナ */
.session-area-group {
    margin-bottom: 50px;
    text-align: center; /* エリアタイトルを中央寄せ */
    background: var(--gradient-tabnaka-kaso);
    padding: 50px 20px;
}

.event-detail-page .tabs-container {
    display: flex;
    justify-content: center;
}
    
.session-area-group:last-child {
    margin-bottom: 0;
    /* border-top: 50px solid #fff; */
}

/* エリア名（「屋外ステージエリア」など）のスタイル */
.timetable-area {
  background-color: #fff;
  border: 3px solid #f08d00;
  padding: 8px 20px;
  border-radius: 5px;
  color: #333;
  font-size: 28px;
  font-weight: bold;
  display: inline-block; /* 幅をコンテンツに合わせる */
  margin: 0 auto 30px auto; /* 上下のマージン */
}



/* DAY2タブがアクティブな時の背景色 */
/* #content-day2 {
    background: var(--gradient-tabnaka-kaso);
} */

@media (max-width: 480px) {
    .timetable-area {
        font-size: 20px;
    }
}