@charset "utf-8";

/*Bese style*/
html {
    font-size: 100%;
}

/*デベロッパーで確認するとbodyの上部に余白ができた。
そこでbodyにmargin0を指定したが変化がなかった。
下記の２つのコードで改善した。原因は不明。*/
* {
    margin: 0px;
    padding: 0px;
}

body {
    font-family: 'Noto Sans JP', "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", sans-serif;
    background-color: #fff;
    line-height: 1.5;
    color: #333;
}

/*左に空間を作る*/
.left {
    margin-left: 15px;
}

img {
    max-width: 100%;
}

/*リンクのアンダーラインの削除*/
a {
    text-decoration: none;
}

/*header*/
#home-top {
    background-image: url(../../assets/images/happy-kids-sp5.jpg);
    background-size: cover;
    height: 80vh;
    background-position: center top;
}

#health-top {
    background-image: url(../../assets/images/healthy-sp.jpg);
    background-size: cover;
    height: 80vh;
    background-position: center top;
}

#study1-top,
#study2-top {
    background-image: url(../../assets/images/study-sp.jpg);
    background-size: cover;
    height: 70vh;
    background-position: center top;
}

/*下記２つでiconを左寄せで横並びに配置*/
.main-nav {
    display: flex;
    justify-content: flex-start;
}

/*下記２つでicon周りの余白とulの点を消す*/
.main-nav li {
    margin: 5px;
    padding: 2px;
    list-style: none;
}

.main-nav li a p {
    font-size: 14px;
    text-align: center;
}

/*h1をheaderに入れるとキーワード検索される*/
h1 {
    font-size: 16px;
    margin-left: 10px;
}

/*この組み合わせだとborderと文字の間に隙間ができて良い*/
h2 {
    line-height: 1rem;
    text-align: center;
}

p,
.caption {
    text-align: center;
    font-size: 16px;
    color: #333
}

.page-title {
    text-align: center;
    font-size: 23px;
    margin: 25px 0 16px;
}

/*ニュースリスト*/
.news-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin: 40px 0 0;
}

.news-update {
    border: #333 2px solid;
    width: 346px;
    height: 130px;
    overflow: scroll;
    background-color: #f5f5f5;
    margin: 0 auto;
}

.news-update li {
    border-bottom: 1px solid #333;
    vertical-align: baseline;
    background-color: #f5f5f5;
    padding: 0 0 0 3px;
}

.new {
    background-color: red;
    font-size: 12px;
    display: block;
    margin: 3px;
    color: #fff;
    text-align: center;
    width: 60px;
    padding: 1px;
    float: left;
}

.news-update p {
    clear: left;
}

/*プロフィール*/
#detail {
    max-width: 1920px;
    margin: 20px auto 0px;
    padding: 0 4%;
}

#detail .content {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    /* 縦並びにする */
}

#detail .content .title {
    font-size: 23px;
    font-weight: bold;
}

#detail .content {
    margin-bottom: 20px;
}

#detail .content dl {
    display: flex;
    /* dt、ddを横並びにする */
    flex-wrap: wrap;
    /* dtとddが100%になったら、横並びを折り返す */
    padding: 16px 0;
    margin-bottom: 25px;
    border-top: solid 1px #dedede;
    border-bottom: solid 1px #dedede;
}

#detail .content dt {
    width: 25%;
}

#detail .content dd {
    width: 75%;
}

/*目次*/
#detail2 .content2 {
    display: flex;
    align-items: center;
    flex-direction: column;
    /* 縦並びにする */
}

#detail2 .content2 dl {
    text-align: center;
    display: flex;
    /* dt、ddを横並びにする */
    flex-wrap: wrap;
    /* dtとddが100%になったら、横並びを折り返す */
    border-top: solid 1px #dedede;
    border-bottom: solid 1px #dedede;
}

#detail2 .content2 dt {
    text-align: right;
    width: 30%;
}

#detail2 .content2 dd {
    width: 70%;
}

.blog {
    font-size: 16px;
    margin-top: 25px;
}

/*footer*/
footer {
    background-color: #92cb97;
    padding: 26px 0;
}

footer p {
    color: #fff;
    font-size: 0.875rem;
    text-align: center;
}

/*health・教材*/
.menu-content p {
    text-align: center;
    margin-bottom: 20px;
}

.wrapper {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 4%;
}

.sample {
    text-align: center;
}

.grid {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 6%;
    margin-bottom: 50px;
}

.section {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    max-width: 100%;
}
/*１枚目の画像が最初に表示されるように*/
.first-image {
    scroll-margin-top: 0;
}

.section-item {
    scroll-snap-align: start;
}

.menu-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
}

.study-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin: 23px 0 0 0;
}

.item {
    text-align: center;
}

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

.studyitem {
    text-align: center;
    border: #0bd solid 3px;
}

.studyitem p {
    font-size: 20px;
    text-align: center;
}

.button {
    font-size: 16px;
    background: #0bd;
    color: #fff;
    border-radius: 5px;
    padding: 3px 32px;
}

/* tb-481px-hi
画像の下が切れて表示された。下ではなく上が切れるように設定*/
@media (min-width: 481px) {

    #home-top {
        background-image: url(../../assets/images/happy-kids-tab.jpg);
        background-position: center bottom;
        background-size: cover;
        height: 530px;
    }

    #health-top {
        background-image: url(../../assets/images/healthy-pc.jpg);
        background-position: center bottom;
        background-size: cover;
        height: 300px;
    }

    #study1-top,
    #study2-top {
        background-image: url(../../assets/images/study-tab.jpg);
        background-position: center bottom;
        background-size: cover;
        height: 300px;
    }

    .main-nav li {
        margin: 5px;
        padding: 2px;
        font-size: 22px;
    }

    .logo {
        width: 87px;
        height: 86px;
    }

    .main-nav li a p {
        font-size: 23px;
        text-align: center;
    }

    h1 {
        font-size: 20px;
        text-align: left;
        margin: 20px;
    }

    p {
        text-align: left;
        font-size: 16px;
    }

    h1 p {
        margin-left: 100px;
        font-size: 20px;
    }

    h2 {
        font-size: 35px;
    }

    .page-title {
        font-size: 35px;
        color: #333
    }

    .study-title {
        font-size: 16px;
        font-weight: bold;
        margin: 0 0 0 120px;
    }

    /*ニュースリスト*/
    .news-update {
        width: 667px;
        height: 260px;
    }

    .news-update p {
        margin-left: 14px;
    }

    .displayno {
        display: none !important;
    }

    #detail .content dt {
        width: 25%;
    }

    #detail .content dd {
        width: 75%;
    }
}

/* pc-1280px-hi*/
@media (min-width: 1280px) {

    #home-top {
        background-image: url(../../assets/images/happy-kids.jpg);
        height: 100vh;
    }

    #health-top {
        background-image: url(../../assets/images/healthy-pc.jpg);
        height: 50vh;
    }

    #study1-top,
    #study2-top {
        background-image: url(../../assets/images/study-tab.jpg);
        height: 50vh;
    }

    .main-nav li {
        margin: 5px;
        padding: 2px;
        font-size: 25px;
    }

    .logo {
        width: 107px;
        height: 106px;
    }

    .main-nav li a p {
        font-size: 23px;
        text-align: center;
    }

    h1 {
        font-size: 40px;
        text-align: left;
        margin: 20px;
    }

    p {
        text-align: left;
        font-size: 16px;
    }

    h1 p {
        margin-left: 200px;
        font-size: 40px;
    }

    h2 {
        font-size: 35px;
    }

    .page-title {
        font-size: 35px;
        color: #333
    }

    .study-title {
        font-size: 24px;
        font-weight: bold;
        margin: 0 0 0 180px;
    }

    /*ニュースリスト*/
    .news-update {
        width: 740px;
        height: 260px;
    }

    .news-update p {
        margin-left: 14px;
    }

    .displayno {
        display: none;
    }

    #detail {
        max-width: 1920px;
    }

    #detail .content dt {
        width: 13%;
    }

    #detail .content dd {
        width: 75%;
    }

    .line {
        margin-left: 15px;
    }
}