/* ============================================================
   myupdemy.html専用スタイル - myupdemy.css
   ============================================================ */

body {
    background: #fff;
}

/* ============================================================
   ① TOPセクション
   ============================================================ */
.main-wrapper {
    max-width: 1340px;
    margin: 0 auto;
    background: #fff;
}

.top-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #fff;
    margin-top: 0;
}

.top-image-container {
    width: 100%;
    max-width: 1200px;
    aspect-ratio: auto;
}

.top-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   セクション2 - 動画とテキストエリア
   ============================================================ */
.section-2 {
    background: #fff;
    padding-top: 20px;
    padding-right: 20px;
    padding-left: 20px;
    padding-bottom: 60px;
}

.section-2-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.video-thumbnail {
    cursor: pointer;
    position: relative;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
}

.text-content h2 {
    font-size: 24px;
    line-height: 36px;
    letter-spacing: 0.1em;
    color: #060000;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
    margin-bottom: 20px;
}

.text-content .body-text-1 {
    font-size: 18px;
    line-height: 28px;
    color: #2e363b;
    text-align: left;
    /* [disabled]padding-top: 10px; */
    padding-right: 10px;
    padding-left: 10px;
    padding-bottom: 10px;
}

.body-text-2 {
    font-size: 16px;
    line-height: 1.5em;
    color: #2e363b;
    text-align: left;
    padding: 25px 63.5px;
}

.body-text-3 {
    font-size: 24px;
    line-height: 1.6em;
    color: #2e363b;
    text-align: left;
    padding: 25px 70px 68px 70px;
}

/* ============================================================
   セクション3-5: 円形画像と2カラムテキスト
   ============================================================ */
.section-3,
.section-4,
.section-5 {
    background: #f0f5fb;
    padding: 60px 40px;
    position: relative;
}

.image-text-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
}

/* 円形画像を重ねる調整 */
.section-3 {
    padding-bottom: 0px;
}

.section-4 {
    padding-top: 60px;
    padding-bottom: 40px;
}

.section-4 .circle-image {
    margin-top: -40px;
}

.section-5 {
    padding-top: 40px;
}

.section-5 .circle-image {
    margin-top: -40px;
}

.circle-image {
    width: 100%;
    max-width: 718px;
    /*aspect-ratio: 1/1;
    border-radius: 50%;
    overflow: hidden;
    background: #ff9944;*/
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.circle-image.left {
    order: 1;
}

.circle-image.right {
    order: 2;
}

.text-area {
    padding: 0;
}

.text-area.left {
    order: 2;
}

.text-area.right {
    order: 1;
}

/* テキストエリアを円形画像に合わせて調整 */
.section-4 .text-area {
    margin-top: -80px;
}

.section-5 .text-area {
    margin-top: -80px;
}

.text-area h2 {
    font-size: 23px;
    line-height: 36px;
    letter-spacing: 0.1em;
    color: #060000;
    text-align: center;
    margin-bottom: 20px;
}

/* ============================================================
   セクション6: 大きな画像
   ============================================================ */
.section-6 {
    background: #f0f5fb;
    padding: 60px 50px;
}

.section-6-container {
    max-width: 1240px;
    margin: 0 auto;
}

.section-6-container h3 {
    font-size: 28px;
    line-height: 1.5em;
    color: #060000;
    text-align: center;
    margin-bottom: 30px;
}

.large-image {
    width: 100%;
    height: 700px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    margin-bottom: 30px;
}

.large-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   セクション7 (フッターセクション)
   ============================================================ */
.section-7 {
    background: #1c2749;
    padding: 60px 50px;
}

.section-7-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.section-7 h1 {
    font-size: 32px;
    line-height: 58px;
    letter-spacing: 0.05em;
    color: #fff;
    text-align: center;
}

.footer-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================================================
   動画ポップアップ
   ============================================================ */
.video-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.video-popup.active {
    display: flex;
}

.video-popup-content {
    position: relative;
    width: 1792px;
    height: 1008px;
    max-width: 90vw;
    max-height: 90vh;
}

.video-popup video {
    width: 100%;
    height: 100%;
}

.video-popup-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-popup-close:hover {
    background: #ddd;
}
.main-wrapper .section-2 .section_title {
    background-color: #354B58;
    padding-top: 15px;
    padding-right: 10px;
    padding-left: 30px;
    padding-bottom: 10px;
    color: #FFFFFF;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 18px;
    margin-top: 0px;
}

/* ============================================================
   モバイルレイアウト (650px以下)
   ============================================================ */
@media (max-width: 650px) {
    .main-wrapper {
        width: 100%;
    }

    .top-section {
        padding: 30px 2.5vw;
    }

    .section-2,
    .section-3,
    .section-4,
    .section-5,
    .section-6,
    .section-7 {
    padding-top: 40px;
    padding-right: 2.5vw;
    padding-left: 2.5vw;
    padding-bottom: 40px;
    }

    .section-2-container {
        grid-template-columns: 1fr;
        width: 95vw;
        margin: 0 auto;
        gap: 20px;
    }

    .video-thumbnail,
    .text-content {
        width: 100%;
    }

    .image-text-container {
        grid-template-columns: 1fr;
        width: 95vw;
        margin: 0 auto;
        gap: 20px;
    }

    /* モバイル時は重ねない */
    .section-3,
    .section-4,
    .section-5 {
        padding: 40px 2.5vw;
    }

    .section-4 .circle-image,
    .section-5 .circle-image,
    .section-4 .text-area,
    .section-5 .text-area {
        margin-top: 0;
    }

    .circle-image.left,
    .circle-image.right,
    .text-area.left,
    .text-area.right {
        order: 0;
    }

    /* セクション4のモバイル順序制御 */
    .section-4 .circle-image {
        order: 1;
    }

    .section-4 .text-area {
        order: 2;
    }

    .large-image {
        height: auto;
        aspect-ratio: 1340/926;
    }

    .section-7-container {
        width: 95vw;
    }

    .section-7 h1 {
        font-size: 32px;
    }

    .footer-buttons {
        width: 95vw;
    }

    .text-content h2,
    .text-area h2 {
        font-size: 24px;
        line-height: 36px;
        letter-spacing: 0em;
    }

    .text-content .body-text-1,
    .body-text-2,
    .body-text-3 {
        font-size: 16px;
        line-height: 28px;
        padding: 20px;
    }

    .video-popup-content {
        width: 95vw;
        height: auto;
        aspect-ratio: 1792/1008;
    }

    .video-popup-close {
        top: -35px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}
