* {
    padding: 0;
    margin: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    top:0;
    width:100%;
    height:50px;
    background:#8D0087;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0 1rem;
    padding: 0;
}

nav ul li {
    margin-left: 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}
.title{
    max-width:1000px;

    margin:50px auto;
}
.title img {
    top: 50px;
    position:relative;
    padding: 0;
    width: 100%;
    height: auto;
    display: block;
    border:1px solid #CCC;
    margin-bottom:2em;
}


section {
    padding: 1rem;
}

.gakka1s,
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gakka1,
.feature {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
}

.feature {
    text-align: center;
}

.gakka1 h5 {
    text-align: center;
}

.feature a {
    text-decoration: none;
    font-size: 1.5rem;
}

.feature a:hover {
    color: #778ca3;
}


.footer {
    background: #00274d;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

.footer p {
    margin: 0;
}


.smp {
    display: inline;
}

.pc {
    display: none;
}

main a {
    color: #3366cc;
}

main {
    font-family: "Helvetica Neue",
        Arial,
        "Hiragino Kaku Gothic ProN",
        "Hiragino Sans",
        Meiryo,
        sans-serif;
}
h1{
	font-size: calc(0.8vw + 1rem);
    font-weight:normal;
    padding-left:1em;

}
h2 {
    font-weight: 1000;
    font-size: 35px;
    margin: 30px 0 20px;
    text-align: center;
    font-weight: normal;
 }
h2 span{
    background: linear-gradient(transparent 60%, #ffff66 0);
}
h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    border-bottom: 2px solid #555;
    padding-bottom: 0.2em;
    margin-bottom: 1em;
    
}

h3 span{
    font-family: 'Caveat', sans-serif;
    font-size: 1.5em;
    color:#8D0087;
    line-height: 1;
    bottom: -1.6rem;
    left: 0;
}
h4 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    color: #333;
    letter-spacing: 0.05em;
    margin: 0.8em 0;
    background-image: linear-gradient(#84dfef 50%, #3a7c9d 50%);
    background-size: 8px 100%;
    background-repeat: no-repeat;
    padding-left: 18px;
}

h5 {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: normal;
    font-size: 1.2rem;
    color: #333;
    margin: 0.5em 0;
    background: -webkit-linear-gradient(#89cac7 50%, #6ab4ba 50%);
    background: linear-gradient(#89cac7 50%, #6ab4ba 50%);
    color: #fff;
    padding: 0.3em 0.5em;
}



.shikaku {
    position: relative;
    display: inline-block;
    margin: 1.5em 0;
    padding: 7px 10px;
    min-width: 120px;
    max-width: 100%;
    color: #555;
    font-size: 16px;
    background: #F0F0F0;
}

.shikaku:before {
    content: "";
    position: absolute;
    top: -30px;
    left: 50%;
    margin-left: -15px;
    border: 15px solid transparent;
    border-bottom: 15px solid #F0F0F0;
}


.shikaku p {
    margin: 0;
    padding: 0;
}

.shikaku_t {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 800;
}


.sched {
    text-align: left;
    margin-top: 40px;
}

.sched p {
    margin: 0px 6%;
}

.sched table {
    margin: 0 6%;
}

/*table*/
.kamoku {
    text-align: center;
    border-collapse: collapse;
    border-spacing: 0;
    border: solid 2px #778ca3;
}

.kamoku th {
    padding: 10px;
    background: #F0F0F0;
    border: solid 1px #778ca3;
    border-bottom: solid 2px #778ca3;
}

.kamoku td {
    padding: 10px;
    border-left: solid 1px #778ca3;
    text-align: left;

}

.kamoku tr {
    border-top: solid 1px #778ca3;
}

tr.syakai {
    border-top: solid 2px #778ca3;
}

.sentaku,
.hissyu,
.bikou {
    font-size: x-small;
    color: #FFF;
    padding: 2px 5px;
    margin: 2px;
    border-radius: 0px;
    vertical-align: middle;
}

.bikou {
    padding: 5px 5px;
    border-radius: 15px;
}

.hissyu {
    background-color: #03A9F4;
}

.sentaku {
    background-color: #009688;
}

.bikou {
    background-color: #e7706c;
}



.kakomi1 {
    padding: 20px;
    background-color: #f3f2f3;
    border-left: 10px solid #4c9ac0;
}

.kakomi2 {
    position: relative;
    margin: 1em 6%;
    padding: 2%;

    background-color: #F6F2EF;
}


mark {
    background-color: #f0ebb3;
}

.fadein {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s;
}

.is-fadein {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.return {
    text-align: center;
    margin-top: 80px;
    margin-bottom: 20px;
}

.return a {
    padding: 8px;
    border-radius: 10px;
    font-size: 20px;
}

.images img {
    position:relative;
    padding: 0;
    width: 100%;
    height: auto;
    display: block;
    border:1px solid #CCC;
    margin-bottom:2em;
}
.narajo-gallery,
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px; /* 写真同士の間隔 */
    padding: 16px;
    
}



.narajo-photo,
.photo {
    position: relative;
    overflow: hidden;
    border-radius: 8px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    background-color: #f8f8f8; 
 }

 .narajo-photo img,
.photo img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease; 
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像をトリミングして均等に収める */
    object-position: center; /* 画像の中央を表示 */
    display: block;
    aspect-ratio: 4 / 3; 

}
.narajo-photo img{
    aspect-ratio: 1366/2048;
}
.photo img:hover {
    transform: scale(1.05); /* ホバーでズームイン */
}

.caption {
    text-align: center;
    padding: 8px 0;
    font-size: 1rem;
    color: #555;
    background: #fff;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1); /* キャプションに軽い影をつける */
    margin-top: -4px;
}
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 16px;
    
}

.photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo img:hover {
    transform: scale(1.05);
}

.caption {
    text-align: center;
    font-size: 1rem;
    color: #555;
    margin-top: 8px;
}

/* ポップアップのスタイル */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.popup:active {
    display: none;
}

footer {
    font-weight: 100;
    font-size: 15px;
    line-height: 60px;
    text-align: center;
    margin-top: 40px;
}
.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9のアスペクト比 */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}



@media all and (max-width:460px) {

    .smp {
        display: inline;
    }

}


@media all and (min-width:461px) and (max-width:970px) {

    .smp {
        display: inline;
    }

    .pc {
        display: none;
    }



    h3 {
        font-size: 2rem;
    }


    /*  introduction */
    h5 {
        font-size: 23px;
        margin: 0px 6%;
    }

    .sched p {
        font-size: 17px;

    }


}

@media all and (min-width:971px) {
    .pc {
        display: inline;
    }

    .smp {
        display: none;
    }

    h2,
    h3,
    h4 {
        font-size: 2rem;
    }

    h5 {
        font-size: 23px;
    }
 
    .schoollife,
    .sched {
        width: 1080px;
        margin: auto;
        text-align: left;
    }

    .sched p {
        font-size: 17px;
        margin: 5px 6%;
    }

    .sched p.kakomi1 {
        font-size: 17px;
        margin: 10px 6%;
    }

    .video-wrapper {
        padding: 0 auto;
        margin:0;
    }
    .video-wrapper iframe {
        position: absolute;
        width: 100%;
        height: 100%;
    }
}