body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN";
}
header {
    padding: 10px;
    position:absolute;
    top:0;
    left:0;
    width:100%;
    z-index:10;
    

}
.container {
    width:100%;
    margin:0 auto;
    align-items: center;
}
header .container {
    display:flex;
    justify-content :space-between;
}
.header__logo img {
    height: 50px;
}
.header__logo {
    margin-left: 40px;
}
.header__nav {
    margin-right:40px;
}
.header__button {
    margin-left: 30px;
    color:white;
    font-size:25px;
}
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.3),rgba(0,0,0,0.3)), url(images/hero__img.jpg);
    background-size:cover;
    background-position:center ;
    background-repeat: no-repeat;
    height:100vh;
    display:flex;
    justify-content: center;
    align-items: center;
   
}
.hero .container {
    text-align: center;
    color: white;
}
.hero h1 {
    font-family: 'Anton', sans-serif;
    letter-spacing: 2px; 
    text-transform: uppercase; 
    letter-spacing: 0.2em;
    font-size: 70px;
}
.hero h2 {
    font-size: 30px;
}
.about {
    padding-bottom: 80px;
}
.about .container {
    max-width:1100px;
    width:95%;
    text-align: center;
    
}
.about h3 {
    font-family: 'Anton', sans-serif;
    letter-spacing: 2px; 
    text-transform: uppercase; 
    letter-spacing: 0.2em;
    font-size: 50px;
    color:#023e8a;
    margin-bottom: 15px;
}
.about p {
    font-size:16px;
    color:#444;
    line-height:1.8;
    text-align:left;
    margin:0 auto;
    padding:0 20px;
}
.lessons {
    background-color: #002855;
    padding: 80px 0;
   
}
.lessons .container {
    max-width:1200px;
    width:95%;
}
.lessons__explain {
    text-align: center;
    margin-top: 20px;
    
}
h4 {
    color:white;
    font-family: 'Anton', sans-serif;
    letter-spacing: 2px; 
    text-transform: uppercase; 
    letter-spacing: 0.2em;
    font-size: 50px;
    text-align: center;
    

}
.lessons__detail {
    display:flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap:15px;
    align-items: stretch;
}
.lessons__info {
    flex:1;
    min-width:300px;
    position: relative;
   


}
.lessons__img {
    width:100%;
    height:250px;
    overflow:hidden;
}
.lessons__img img {
    width:100%;
    height:100%;
    object-fit: cover;
    object-position: center;
    background: #fff;
   
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.lessons__price {
    background-color:#f3e9df;
    margin-top: 0;
    padding:10px;
}
.what__lesson {
    text-align: center;
}
h5 {
    background-color:#002855;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 100;
    color:white;      
    letter-spacing: 0.1em; 
    line-height: 1.5;
    font-size: 20px;
    display: inline-block;
    padding:10px 10px;
    position:absolute;
    top:190px;
    left:50%;
    transform:translateX(-50%);
    z-index:2;
    white-space:nowrap;
    
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.what__lesson p {
    color:#444;;
    font-weight: 400;
    text-align: left;
    margin-top:50px;
}
.how__much {
    margin-top: 10px;
}
.price {
    color:#444;
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    
}
.japanese__yen {
    color:#444;
    font-size: 25px;
    font-weight: 700;
    text-align: center;
}
.lessons__contents {
    text-align:left;
    color: #444;
}
.teacher .container {
    max-width:1100px;
    width:95%;
    display:flex;
    justify-content:space-between;
    gap:0px;
    padding: 70px;
}
.teacher__image {
    max-width:800px;
    width:100%;
   
}
.teacher__image img {
    width: 100%;
    flex-shrink:0;
    height:auto;
    display:block;
}
.teacher__contents {
    padding-left: 30px;
    
}
h6 {
    font-family: 'Montserrat' , sans-serif;;
    letter-spacing: 2px; 
    text-transform: uppercase; 
    letter-spacing: 0.2em;
    font-size: 45px;
    font-weight: 800;
    color:#444;
    margin-top: 10px;
    margin-bottom: 15px;
}
.teacher__detail p {
    font-size: 16px;
    color: #444;
    line-height: 1.8;      
    text-align: left;      
    margin-bottom: 20px; 
    
}
.first__sentence {
    border-top:2px solid #444;
}
.exhibitions {
    background-color: #002855;
}
.exhibitions .container {
    max-width: 1200px;
    width:95%;
    margin:0 auto;
   
    
    padding-top: 40px;
    padding-bottom: 40px;

}
.exhibitions__images {
    display:flex;
    flex-wrap: wrap;
    gap:15px;
    
}
.exhibitions__img {
    flex:1;
    min-width:0;
}
.exhibitions__img img {
    width:100%;
    height:300px;
    object-fit: cover;
    
}

.move__down img {
    object-position:center bottom;
}
.footer {
    background-color: #fff;

}
footer .container {
    max-width: 1100px;
    width:95%;
}
footer p{
    font-family: 'Montserrat' , sans-serif;;
    letter-spacing: 2px; 
    text-transform: uppercase; 
    letter-spacing: 0.2em;
    font-size: 20px;
    font-weight: 800;
    color:#444;
}
footer .header__button {
    color:#444;
}
.map {
    width:100%;
    margin-top:20px;
    overflow:hidden;
}
.map iframe {
    width:100%;
    height:300px;
}
@media (max-width: 768px) {
    .container, 
    .about .container, 
    .lessons .container, 
    .teacher .container, 
    .exhibitions .container, 
    footer .container {
        width: 90% !important; 
        padding: 40px 5% !important;
        /* display: block; は削除するか、Flexを維持する */
        display: flex !important;
        flex-direction: column !important;
    }

    /* ここが重要！親にflexを宣言し直す */
    .exhibitions__images {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        gap: 15px;
    }

    .exhibitions__img {
        width: 100% !important;
        flex: none !important; /* PCの flex: 1; を解除 */
    }

    .exhibitions__img img {
        width: 100%;
        height: 400px;
        object-fit: cover;
    }

    /* 先生紹介（ここもコンテナのflex-directionが効けば縦になります） */
    .teacher__image {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .teacher__contents {
        padding-left: 0 !important;
        margin-top: 20px;
    }

    /* その他、既存の修正 */
    h5 {
        position: static !important;
        transform: none !important;
        margin: 0 auto 10px !important;
        display: block !important;
        width: fit-content;
    }
}
