body, html {
    background: url('../img/kodomo/back.png');
}

.back-top {
    background: url('../img/kodomo/back_top@2x.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.header-background {
    background: url('../img/back_blue.png');
    background-size: auto auto;
    width: 100%;
    height: 80px; 
}

.header-box{
    position: absolute;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 270px;
    top: 0;
}


.header-big-background {
    position: relative;
    background: url('../img/back_blue.png');
    width: 100%;
    height: 100%; 
}

.header-big-wave {
    position: relative;
    background: url('../img/wave_blue.png');
    background-size: auto auto;
    width: 300px;
    height: 15px; 
}

.header-logo-kodomo {
    position: absolute;
    top: 50px;
    width: 150px;
    height: 150px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 auto;
}

.header-title-box {
    position: absolute;
    top: 220px;
    width: 100%;
    text-align: center;
    font-weight: 300;
    color: #fff;
}

.button-container {
    max-width: 1024px;
    height: 150px;
    margin: 0 auto;
    margin-top: 20px;
}

.button {
    width: 111px;
    padding: 0 30px; /* ボタン同士の間隔を調整 */
}

.header-btn {
    height: 100%;
    width: auto;
}

.spacer {
    flex-grow: 1; /* 中央の空白部分を最大化 */
}

/*
コンテナ―
*/
.container {
    margin-top: 100px;
}

/*
タブレット用
*/
@media screen and (max-width: 1024px) {

    .header-big-background {
        display: none; 
    }

    .header-big-wave {
        display: none;
    }

    .header-box{
        position: absolute;
        width: 100%;
        height: 80px;
        top: 0;
    }

    .header-logo-kodomo {
        transform: none;
        position: absolute;
        top: 9px !important;
        left: 20px;
        width: 70px;
        height: 70px;
        z-index: 999;
    }

    .header-title-box {
        position: absolute;
        top: 13px;
        width: 100%;
        height: 80px;
        text-align: center;
        font-weight: 300;
        color: #fff;
        font-size: 1.4em;
    }

    .button-container {
        justify-content: center;
        left: 0;
        width: 100%;
        margin-top: 20px;
        height: 100px;
    }

    .button {
        margin: 0px 10px 0px 10px;
        padding: 0;
    }

    .header-btn {
        width: auto;
        height: 149px;
    }

    .spacer {
        flex-grow: 0; /* 中央の空白部分を最大化 */
        display: none;
    }
}

/*
スマホ用
*/
@media screen and (max-width: 768px) {

    .header-title-box {
        width: calc(100% - 40px);
        top: 20px;
        left: 40px;
        font-size: 1.2em;
    }

    .header-title-box > span {
        line-height: 30px;
    }

    .button-container {
        justify-content: space-between; 
        width: 90%;
        margin-top: 20px;
        height: 100px;
    }

    .button {
        margin: 0;
        padding: 0;
        text-align: center;
    }

    .header-btn {
        width: 86px;
        height: 109px;
    }

    .spacer {
        flex-grow: 0; /* 中央の空白部分を最大化 */
        display: none;
        width: 0px;
    }

    .container {
        margin-top: 50px;
    }
}

/*
スマホ用
*/
@media screen and (max-width: 500px) {

    .header-title-box {
        width: calc(100% - 100px);
        top: 20px;
        left: 90px;
        font-size: 1.0em;
    }
}