/*全体の定義*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;300;400;500;700;900&display=swap');

html {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    box-sizing: border-box;

    background-color: #000;
    font-family: 'Noto Sans JP', sans-serif;
    
    background-image: url('haikei.png');
    background-position: center top;
    background-repeat: repeat-y;
    background-size: 1450px; 
}

.container {
    margin: 0 auto;
    color: #fff;

    padding-top: 100px; 
    padding-left: 80px;
    padding-right: 80px;
    padding-bottom: 50px;
}

hr {
    border: none;
    height: 1px;
    background-color: white; /* 色を少し控えめにしました（whiteでもOK） */
    width: 100%;             /* 幅は親要素の100% */
}

h2 {
    font-size: 50px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-top: 0;
    margin-bottom: 0;
}

h3 {
    font-size: 50px;
    font-weight: 200;
    letter-spacing: -1px;
    margin-top: 0;
    margin-bottom: 0;
}

p {
    line-height: 1.4;
    font-weight: 300;
    font-size: 20px;
    color: rgb(255,255,255,0.64);
}

/*上から順番にclassの定義*/

.site-logo {
    max-width: 300px; 
    margin-bottom: 70px;
}

.logo2{
    margin-top: -20px;
}

.os{
    margin-top: 150px;
    margin-bottom: 50px;
}

.selection-item {
    display: flex;
    align-items: flex-end;
    margin-top: 50px;
    gap: 50px; 
    padding-left: 50px;
}

.margin{
    margin-top: 20px;
}

.selection-item h3 {
    font-size: 40px;
    font-weight: 300;
    margin-bottom: 0;
}

.selection-item p {
    font-size: 24px;
    color: rgb(255,255,255,0.64);
    margin: 0;
    font-weight: 100;
    margin-bottom: 5px;
}

.pc-br {
    display: block;
}

.mobile-br {
    display: none;
}

h3.small{
    margin-top: 60px;
}

p.small{
    margin-top: 60px;
}

.partner-logo {
    max-width: 120px; 
    margin-right:-30px;
}

.intro{
    margin-top: 200px;
    margin-bottom: 100px;
}

.mozi{
    padding-left: 50px;
}

.mozi p{
    font-size: 24px;
}

.mozi p2{
    font-size: 18px;
    font-weight: 300;
    color: rgb(255,255,255,0.64);
}

.mozi p3{
    font-size: 20px;
    font-weight: 300;
    color: rgb(255,255,255,0.64);
}

.ts{
    margin-top: 100px;
    margin-bottom: 60px;
}

.up{
    margin-top: 16px;
}

h3.midiam{
    margin-top: 52px;
}

p.midiam{
    margin-top: 52px;
}

.fo{
    margin-top: 70px;
    margin-bottom: 25px;
}

.program-block {
    margin-bottom: 40px;
    padding-left: 50px;
    line-height: 1.8;
}

.pt{
    margin-top: 30px;
    margin-bottom: 30px;
}

.middle{
    font-size: 30px;
    font-weight: 300;
    vertical-align: middle;
}

.large{
    font-size: 50px;
    font-weight: 400;
    vertical-align: middle;
}

.smalltx{
    font-size: 20px;
    font-weight: 100;
    vertical-align: middle;
}

a.smalltx {
    color: #aaa; 
    text-decoration: underline; 
}
a.smalltx:hover {
    color: #fff; 
    text-decoration: none; 
}

.ss{
    font-size: 25px;
    font-weight: 100;
    margin-left: 100px;
    margin-top: -20px;
    margin-bottom: -30px;
}

.sc{
    margin-top: 130px;
    margin-bottom: 30px;
}

.contact{
    margin-bottom: 20px;
}

.tokyonode{
    max-width: 400px;
}

.koen{
    max-width: 500px;

}

footer {
    margin-top: 100px;
    font-size: 20px;
    color: #aaa;
    text-align: center;
}

/* =======================================
   スマートフォン向けのスタイル（個別指定版）
   ======================================= */
@media (max-width: 768px) {

    /* 1. 全体の余白を小さくする */
    .container {
        padding-top: 50px; 
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 30px;
    }
    

    /* 2. 文字サイズを個別に小さくする */
    h2 {
        font-size: 28px;
    }
    h3 {
        font-size: 26px;
    }
    .logo2{
        margin-top: -10px;
    }
    p {
        font-size: 15px;
    }
    .mozi p {
        font-size: 18px;
    }
    .mozi p2 {
        font-size: 14px;
    }
    .mozi p3 {
        font-size: 14px;
    }
    .middle {
        font-size: 16px;
    }
    .large {
        font-size: 24px;
    }
    .smalltx {
        font-size: 14px;
    }
    .ss {
        font-size: 14px;
    }
    .mobile-br {
        display: block;
    }

    .pc-br {
        display: none;
    }

    /* 3. ロゴのサイズを調整 */
    .site-logo {
        max-width: 200px;
        margin-bottom: 40px;
    }
    .selection-item h4,
    .selection-item p,
    h3.small,
    p.small,
    h3.midiam,
    p.midiam {
        margin: 0;
    }

    /* 5. 横並びのレイアウトを縦積みに変更 */
    .selection-item {
        display: flex;
        flex-wrap: wrap;       /* 1. 縦積み(column)の代わりに「折り返し(wrap)」を許可 */
        align-items: flex-end; /* 垂直方向は下揃えを維持 */
        gap: 15px; 
        padding-left: 0; 
    }

    .selection-item h4 {
        font-size: 20px;
        margin-bottom: -25px;
        flex-basis: 100%;
    }
    .selection-item h3 {
        margin-top: 15px;
        font-size: 24px;
        flex-basis: 100%;
    }
    .selection-item p {
        font-size: 14px;
        margin-bottom: 5px; /* 下揃えのための微調整 */
    }

    .partner-logo {
        max-width: 80px;
        margin-right: 0; 
    }

    p.tk {
        font-size: 16px;
    }

    .tokyonode{
        max-width: 200px;
    }

    .koen{
        max-width: 200px;
    }

    /* 6. 背景画像のサイズを調整 */
    body {
        background-size: cover; 
    }
    
    /* 7. その他、細かいマージンなどを調整 */
    .os { margin-top: 100px; margin-bottom: 30px; }
    .intro { margin-top: 50px; margin-bottom: 30px; }
    .ts { margin-top: 50px; margin-bottom: 30px; }
    .fo { margin-top: 50px;  }
    .sc { margin-top: 50px; margin-bottom: 20px; }
    .mozi { padding-left: 10px; } 
    .ss { margin-left: 60px; margin-top: -10px; margin-bottom: -30px; }
    .program-block { padding-left: 10px; }
}