/* =========================================
   1. ベースレイアウト設定
   ========================================= */
.room-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    min-height: 80vh; 
    min-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =========================================
   2. セクション見出しのデザイン（修正版）
   ========================================= */
.section-header:first-of-type{
    text-align: center;
    margin-top: 80px;
    margin-bottom: 20px;
    width: 100%;
}
.section-header:nth-of-type(2){
    text-align: center;
    margin-top:60px;
    margin-bottom: 30px;
    width: 100%;
}

/* 見出し全体の枠（縦並びにする） */
.section-title {
    display: flex;
    flex-direction: column; /* 日本語を上、英語を下に積む */
    align-items: center;
    gap: 8px; /* 日本語と英語の間隔 */
    /*border:solid black 3px;*/
    margin-top:0;
}

/* ▼ 日本語タイトル（ここに左右の線をつける） */
.jp-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0055ff;
    
    /* 線と文字を横並びにする */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px; /* 線と文字の間隔 */
}

/* 左右の線を作る設定 */
.jp-title::before,
.jp-title::after {
    content: '';
    height: 3px;
    width: 60px;               /* 線の長さ */
    background: linear-gradient(to right, transparent, #00bfff); /* グラデーション */
    border-radius: 3px;
    flex-shrink: 0;            /* 縮み防止 */
}

/* 右側の線はグラデーションの向きを逆にする */
.jp-title::after {
    background: linear-gradient(to left, transparent, #00bfff);
}

/* ▼ 英語サブタイトル（装飾なし・下部に表示） */
.en-title {
    font-size: 1rem;
    color: #00bfff;
    letter-spacing: 0.1em;
    font-weight: 600;
    line-height: 1;
}

/* =========================================
   3. コンテンツエリア（動画とテキストの配置）
   ========================================= */
.content-section {
    width: 100%;
    margin-bottom: 40px;
}

.split-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.split-item {
    width: calc(50% - 20px); 
    flex: 0 0 calc(50% - 20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.media-area {
    width: 100%;
}

.youtube-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background: #000;
}

.youtube-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.text-area {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    min-height:225px;
}

.text-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #0055ff;
    margin-bottom: 15px;
    border-left: 5px solid #00bfff;
    padding-left: 15px;
}

.text-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

/* =========================================
   4. スマホ対応（レスポンシブ）
   ========================================= */
@media (max-width: 768px) {
    .room-wrapper {
        padding: 15px;
    }

    .section-header {
        margin-top: 3s0px;
        margin-bottom: 10px;
    }

    /* スマホ時の見出し調整 */
    .jp-title {
        font-size: 1.6rem;
        gap: 10px;
    }
    
    .jp-title::before,
    .jp-title::after {
        width: 30px; /* 線を短く */
    }

    .split-container {
        flex-direction: column; 
        gap: 30px; 
        margin-bottom: 40px !important;
    }

    .split-item {
        width: 100%;
        flex: 0 0 100%;
    }
    
    .text-area {
        padding: 10px;
        background: transparent;
    }
}