body{
    margin:0;
    font-family:sans-serif;
    line-height:1.8;
    color:#333;
}

header{
    background:url('/static/img/forest.jpg') center center/cover;
    height:80vh;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
}


.menu-btn{
    position:fixed;
    top:20px;
    right:20px;
    z-index:1001;

    background:#4caf50;
    color:white;

    border:none;
    border-radius:8px;
    padding:10px 15px;

    font-size:1rem;
    cursor:pointer;
}



#toc{
    position:fixed;
    top:0;
    right:-320px;

    width:300px;
    height:100%;

    box-sizing:border-box; /* ← これを追加 */

    background:white;

    box-shadow:-3px 0 15px rgba(0,0,0,0.2);

    transition:right 0.3s;

    padding-top:70px;
    padding-bottom:20px;

    z-index:1000;

    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain; /* ← これを追加 */
}


/*
#toc{
    position:fixed;
    top:0;
    right:-320px;

    width:300px;
    height:100%;

    background:white;

    box-shadow:-3px 0 15px rgba(0,0,0,0.2);

    transition:right 0.3s;

    padding-top:70px;

    z-index:1000;

    overflow-y:auto;
}
*/

#toc.open{
    right:0;
}

#toc a{
    display:block;
    padding:15px 20px;

    border-bottom:1px solid #eee;

    text-decoration:none;
    color:#333;
}

#toc a:hover{
    background:#f5f5f5;
}




.hero{
    position: relative;   /* ← 追加：lang-switchの基準位置にするため */
    background:rgba(0,0,0,0.45);
    padding:40px;
    border-radius:10px;
}


.lang-switch {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.lang-switch:hover {
    background: #fff;
    color: #000;
}



h1{
    font-size:3rem;
    margin-bottom:10px;
}

h2{
    color:#2e7d32;
    margin-top:0;
}

section{
    max-width:1000px;
    margin:auto;
    padding:50px 20px;
}

.btn{
    display:inline-block;
    background:#4caf50;
    color:white;
    text-decoration:none;
    padding:12px 24px;
    border-radius:5px;
    margin-top:20px;
}

.features{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.card{
    background:#f7f7f7;
    padding:25px;
    border-radius:10px;
}


.flow{
    max-width:500px;
    margin:auto;
}

.step{
    background:#4caf50;
    color:white;

    padding:16px;
    margin-bottom:15px;

    text-align:center;
    font-weight:bold;

    clip-path:polygon(
        0 0,
        100% 0,
        100% 75%,
        50% 100%,
        0 75%
    );
}


.support-cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    margin:30px 0;
}

.support-card{
    background:white;
    padding:20px;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,0.1);
}

.message-box{
    background:#fffef8;
    border-left:8px solid #4caf50;
    padding:30px;
    margin-top:40px;
    border-radius:10px;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

.message-box h3{
    margin-top:0;
    color:#2e7d32;
}

.message-box p{
    line-height:2;
}




.school-years{
    width:100%;
    border-collapse:collapse;
    margin-top:20px;
    background:#fff;
}

.school-years th{
    background:#4caf50;
    color:#fff;
    padding:12px;
    text-align:center;
}

.school-years td{
    border:1px solid #ddd;
    padding:12px;
}

.school-years tr:nth-child(even){
    background:#f8f8f8;
}

.school-years tr:hover{
    background:#e8f5e9;
}

@media(max-width:768px){

    .school-years{
        font-size:0.9rem;
    }

    .school-years th,
    .school-years td{
        padding:8px;
    }

}



.voice-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:20px;
}

.voice-card{
    background:#f8f8f8;
    padding:25px;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,0.08);
}

.voice-text{
    font-style:italic;
    margin-bottom:15px;
}

.voice-name{
    text-align:right;
    color:#666;
    font-size:0.9rem;
}



.support{
    background:#f5f9ff;
}


.accommodation{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(350px,1fr));
    gap:30px;
    margin-top:30px;
}

.accommodation-card{
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 4px 12px rgba(0,0,0,0.12);
    transition:0.3s;
}

.accommodation-card:hover{
    transform:translateY(-5px);
    box-shadow:0 8px 20px rgba(0,0,0,0.15);
}

.accommodation-card img{
    width:100%;
    height:250px;
    object-fit:cover;
}

.accommodation-card h3{
    margin:20px;
}

.accommodation-card p{
    margin:0 20px 20px 20px;
}

.accommodation-card a{
    color:#2e7d32;
    text-decoration:none;
}

.accommodation-card a:hover{
    text-decoration:underline;
}




.faq-item{
    background:#f8f8f8;
    border-left:5px solid #4caf50;
    padding:20px;
    margin:15px 0;
    border-radius:8px;
}

.faq-item h3{
    margin-top:0;
    color:#2e7d32;
}

.faq-item p{
    margin-bottom:0;
}



.slider{
    display:flex;
    overflow-x:auto;
    gap:20px;

    scroll-snap-type:x mandatory;

    padding-bottom:10px;
}

.slide{
    flex:0 0 400px;
    scroll-snap-align:center;
}

.slide img{
    width:100%;
    height:280px;

    object-fit:cover;

    border-radius:15px;

    box-shadow:0 4px 12px rgba(0,0,0,0.15);
}



.gallery-wrapper{
    position:relative;
}

.slider{
    display:flex;
    gap:20px;

    overflow-x:auto;
    scroll-behavior:smooth;

    scrollbar-width:none;
}

.slider::-webkit-scrollbar{
    display:none;
}

.gallery-btn{

    position:absolute;
    top:50%;

    transform:translateY(-50%);

    width:50px;
    height:50px;

    border:none;
    border-radius:50%;

    background:rgba(255,255,255,0.9);

    box-shadow:0 2px 8px rgba(0,0,0,0.2);

    cursor:pointer;

    z-index:10;
}

.gallery-btn.left{
    left:10px;
}

.gallery-btn.right{
    right:10px;
}




.school-card{
    display:flex;
    align-items:center;
    gap:25px;

    background:#f8fbf8;
    border-left:6px solid #4caf50;
    padding:25px;
    border-radius:12px;

    box-shadow:0 3px 10px rgba(0,0,0,0.08);
}

.school-icon{
    font-size:4rem;
    flex-shrink:0;
}

.school-content h3{
    margin-top:0;
    margin-bottom:10px;
    color:#2e7d32;
}

.school-link{
    display:inline-block;
    margin-top:10px;

    color:white;
    background:#4caf50;

    padding:10px 18px;
    border-radius:6px;

    text-decoration:none;
    font-weight:bold;
}

.school-link:hover{
    background:#388e3c;
}



.contact{

    text-align:center;
    background:#f9f9f9;
}

footer{
    text-align:center;
    padding:20px;
    background:#333;
    color:white;
}



.insta-link {
    display: inline-block;
    padding: 3px 5px;
    background: #F06292;
    color: white;
    border-radius: 8px;
    text-decoration: none;
}

.insta-link:hover {
    background: #c1275a;
}



@media(max-width:768px){
    h1{
        font-size:2rem;
    }

    .accommodation{
        grid-template-columns:1fr;
    }
}





/*お問い合わせ*/
.contact-form-inline{
    max-width:500px;
    margin:30px auto 0;

    background:#fff;
    padding:35px;
    border-radius:15px;
    box-shadow:0 4px 12px rgba(0,0,0,0.1);

    display:flex;
    flex-direction:column;
    gap:8px;
    text-align:left;
}

.contact-form-inline label{
    font-weight:bold;
    color:#2e7d32;
    margin-top:15px;
}

.contact-form-inline label:first-of-type{
    margin-top:0;
}

.contact-form-inline input[type="text"],
.contact-form-inline input[type="email"],
.contact-form-inline textarea{
    padding:12px 14px;
    border:1px solid #ddd;
    border-radius:8px;
    font-size:1rem;
    font-family:inherit;
    color:#333;
    resize:vertical;
}

.contact-form-inline input:focus,
.contact-form-inline textarea:focus{
    outline:none;
    border-color:#4caf50;
    box-shadow:0 0 0 3px rgba(76,175,80,0.15);
}

.contact-form-inline .g-recaptcha{
    margin-top:15px;
    align-self:center;
}

.contact-form-inline button{
    margin-top:20px;
    background:#4caf50;
    color:white;
    border:none;
    border-radius:5px;
    padding:12px;
    font-size:1rem;
    font-weight:bold;
    cursor:pointer;
    transition:background 0.2s;
}

.contact-form-inline button:hover{
    background:#3d8b40;
}

#contactResult{
    text-align:center;
    margin-top:15px;
    font-weight:bold;
    color:#2e7d32;
}












}

@media(max-width:768px){
    .sub-hero h1{
        font-size:1.7rem;
    }

    .contact-form form{
        padding:25px;
    }
}
