@charset "UTF-8";
/* 共通部分
-------------------------------------------------- */
html {
    font-size: 100%;
    height: 100%;
}
body {
    min-height: 100vh;
    /*height: 100%;/*Informationのために追記*/
    /*min-height: 100vh;/*Informationのために追記*/
    display: flex;/*Informationのために追記*/
    flex-direction: column;/*Informationのために追記*/
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", sans-serif;
    line-height: 1.7;
    color:  #432;
}
main{
    flex: 1;
}
a {
    text-decoration: none;
}
img {
    max-width: 100%;
}
.logo {
    height: 120px;
    width: auto;
    max-width: 100%;
}

/* ヘッダー構成 */
.logo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background-color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.jp {
    font-size: 0.4em;
    line-height: 1.2;
    display: block;
}

/* スライダー構成 */
.hero-slider {
    width: 50vh;
    height: 30vh; /* 高さはお好みで調整可能 */
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caption {
  position: absolute;
  bottom: 10%;
  left: 5%;
  font-size: 1.0rem;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 1rem;
  border-radius: 8px;
}

/* レイアウト*/
.wrapper {
    max-width: 1120px;
    margin: auto;
    padding: 0 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
}
.align-center {
    text-align: center;
}
/*見出し*/
.font-english {
    font-family: 'Philosopher', 'Hiragino Kaku Gothic ProN', sans-serif;
    font-weight: normal;
}
.page-title,
.heading-large,
.heading-medium {
    font-size: 1.5rem;
    text-align: center;
    margin-top: 1rem;
    line-height: 1.4;
}
.page-large{
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}
.sub-cover {
    background-size: cover;
    background-position: center bottom;
    /*height: 528px;*/
    margin-top: 2rem;
  
}
/* ハンバーガーメニュー */
.hamburger {
  display: none;
  width: 40px;
  height: 32px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
    flex: 2 1 0%;
    min-width: 0;
    margin-left: auto; /* Added to align hamburger menu to the right */
}
.hamburger span {
    display: block;
    height: 5px;
    width: 100%;
    background: #432;
    border-radius: 3px;
    transition: .4s;
    margin-bottom: 8px;
}
/* 最後のspanの下余白を消す */
.hamburger span:last-child {
    margin-bottom: 0;
}
.village-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 600px; /* お好みで調整 */
  }
/* NEWS　*/
.cover-class {
    margin-top: 1rem;
}
/*MENU*/
.cover-menu{
    background-image: url();
}
.grid {
    display: grid;
    gap: 2rem 0.5rem;
    grid-template-columns: repeat(2,1fr);
    text-align: center;
}
.item img {
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 1s, filter 1s; /* 1秒で戻る */
    box-shadow: 0 4px 16px rgba(0,0,0,0.15); /* 影を追加 */
}

.item img:hover {
    transform: scale(1.2);
    filter: brightness(1.15); /* 少し明るく */
}
.item p {
    font-size: .875rem;
    text-align: center;
}
/* 記事部分*/
.post {
    width: 70%;
}
.post-title {
    font-weight: normal;
    margin-bottom: 1.25rem;
    }
.post-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}
.post-cat {
    display: flex;
    flex-direction: column !important;
    gap: .5rem;
    list-style: none;
    flex: 1 1 0%;
    align-items: flex-start;
    margin: 0 0 0 1.5rem;
}
.post-cat a{
    color: #432;
    background-color: #ffe880ff;
    border-radius: 8px;
    font-size: .875rem;
    padding: .5rem .75rem;
}
.post-cat a:hover {
    background-color: #ffe880ff;
}
.post-date {
    font-size: .875rem;

}
.post-thumbnail{
    border-radius: 16px;
    margin-bottom: 1.5rem;
}
.post p {
    margin-bottom: 1.5rem;
    line-height: 2;
}
/*サイドバー*/
.side-menu {
    list-style: none;
    text-align: center;
    margin-bottom: 4rem;
}
.side-menu li {
    border-bottom: 1px solid #c9c2bc;
}
.side-menu a{
    color: #432;
    display: block;
    padding: 1rem;
}
.side-menu a:hover {
    color: #ffe880ff;
}

/* ヘッダー
-------------------------------------------------- */
.page-header {
    padding-top: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.main-nav {
    display: flex;
    justify-content: flex-end; /* 右寄せ */
    gap: 1.5rem;
    font-size: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav .menu-narrow {
  line-height: 0.5 !important;
}
.page-footer {
    margin-top: 4rem;
    padding: 2rem 0;
    background-color: #f8f8f8;
}
/*conTACT*/
.cover-contact {
    background-image: url();
}
/*店舗情報*/
.location {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.location-info {
    margin-bottom: 2rem;
}
.location-info .info {
    padding: 0;
}
.email {
    max-width: 916px;
    background-color: #faf7f0;
    border-radius: 48px;
    padding: 1.5rem 2.5rem 2.5rem;
    margin: 0 auto 2rem;
}
.email p {
    margin: 1rem 0 2rem;
}
/*SNS*/
.sns {

    flex-direction: column; /* スマホでは縦並び（これが基本） */
    gap: 3rem; /* アイテム間の隙間 */
}

.sns-item {
    flex: 1; /* 横並びになった時に均等に幅を取る */
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sns-item .heading-medium {
    margin-bottom: .5rem;
}
.icon-p {
    aspect-ratio: auto !important;
    width: 300px;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}
.expand-content {
  margin-top: 0.5em;
  background: #faf7f0;
  padding: 0.5em 1em;
  border-radius: 8px;
}
.expand-btn {
  cursor: pointer;
}
/* デスクトップ版　----------------------*/
@media (min-width: 800px) {


  .logo-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  .main-nav {
    flex-direction: row; /* ←ここをrowに */
    gap: 1rem;
    font-size: 0.95rem;
    align-items: center;
    /*margin-right: 2rem; */
  }
  /*見出し*/
    .page-title {
        font-size: 2.5rem;
    }
    .heading-large {
        font-size: 4rem;
        text-align: center;
        padding-right: 1.5rem;
    }
    .post-title {
        font-size: 2rem;
    }
    /*ヘッダー*/
    .page-header {
        display: flex;
        justify-content: space-between;
        padding-top: 0rem;
    }
    .main-nav {
        font-size: 1.5rem;
    }
    /*ヘッドカバー画像*/

    .sub-cover {
        background-size: 600px auto; /* 幅600px、高さは自動 */
        background-repeat: no-repeat;
        background-position: center;
        height: auto; /* 必要に応じて高さも調整 */
    }
    
    /*MENU*/
    .cover-menu{
        background-image: url(../images);
    }
    .grid {
        grid: 3re 2rem;
        grid-template-columns: repeat(3, 1fr);
    }
    .sns {
        display: flex; 

        flex-direction: column; /* 横並びに変更 */
        justify-content: space-around; /* アイテムを均等に配置 */
        align-items: flex-start; /* 上端を揃える */
        gap: 2rem; /* 横の隙間を調整 */
    }
    /*classroom*/
    .cover-class {
        background-image: url(../images/classroom.svg);
    }
    .cover-totsukaclass {
        background-image: url(../images/totsuka.svg);
        background-size: 300px auto; /* 幅300pxで高さは自動 */
        background-repeat: no-repeat;
        background-position: center;
    }
    
    .class-contents {
        display: flex;
        justify-content: space-between;
        /* gap: 2rem; ← これを追加！ */
        align-items: flex-start;
    }
    main.class-contents {
    min-height: 60vh; /* 必要に応じて調整 */
    }
    .post {
        width: 60%;
        order : 2;
    }
    .sidebar {    /* 2カラムの余白調整 */

        width: 22%;
        order : 1;
    }
    .ad {
        order: 1;
    }
    .sidebar .heading-medium {
        line-height: 1;
        margin-bottom: 1rem;
    }
    /*HOME*/
    .cover-home {
    background-size: cover;
    background-position: center right;
    background-position-y: 50%;
    height: auto;
    margin-top: 0rem;
    margin-left: 4rem;
    margin-right: 4rem;
    padding-bottom: 0;
    background-image: url(../images/);
    }
    .about {
        margin: 1rem auto 0;
    }
    .item img{
        margin-bottom: .5rem;
    }
    .item p{
        font-size: 1rem;
    }
    /*フッター*/
        /*CONTACT*/
    .cover-contact {
        background-image: url();
    }
    .location {
        display: flex;
        flex-direction: row;
        gap: .5rem;
    }
    .location-info {
        width: 40%;
        padding: 0;
        /* white-space: nowrap; ←これを削除 */
        box-sizing: border-box;


    }
    .location-info .info th {
        padding-left: 2rem;
    }
    .location-map {
        width: 50%;
        padding: 0;
        box-sizing: border-box;
    }

    }
.main-nav a{
    color: #432;
    }
.main-nav a:hover {
    color: rgb(123, 13, 1);
}
.about{
    max-width: 736px;
    padding: 0 1.5rem;
    margin: 1rem auto 1rem;
}
.about p {
    margin-bottom: 1rem;
}
.cover {
    background-size: cover;
    background-position: center bottom;
    background-position-y: 50%;
    height: auto;
}

.cover-home {
    background-size: cover;
    background-position: center bottom;
    background-position-y: 50%;
    height: auto;
    margin-bottom: 0rem;
    /*background-image: url(../images/boy.svg);*/
} 
.heading-large {
    font-size: 2rem;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-top: 0;
    padding-bottom: 0;
}
/*ボタン*/
.btn {
    display: inline-block;
    font-size: 1.5rem;
    background-color: #0bd;
    color: #fff;
    border-radius: 8px;
    padding: .75rem 1.5rem;
    transition: .5s;
}
.btn:hover{
    scale: 1.2;
}
/* 画像ボタン用のホバーアクション */
.btn-image {
    display: inline-block; /* 拡大・縮小アニメーションを適用するため */
    transition: .5s;       /* 変化にかかる時間を0.5秒に設定 */
}

.btn-image:hover {
    scale: 1.2;            /* マウスを乗せたら1.2倍に拡大 */
}
/* フッター
-------------------------------------------------- */
.page-footer {
    background-image:  url();
    background-size: cover;
    background-position: center;
    margin-top: 4rem;
    padding: 2rem 0;

    clear: both;
}
.info {
    width: 100%;
    max-width: 600px;
    margin: auto;
    /*padding: 0 1.5rem;-----------IPHONEでの余白*/
    border-spacing: 0;
}
.info th,
.info td {
    border-bottom: 1px solid #c9c2bc;
}
.info th {
    text-align: left;
    font-weight: normal;
    padding: 1rem;
}
.info td {
    padding: 1rem ;
}
.copyright {
    background-color: rgb(238, 241, 31);
    text-align: center;
    padding: 2rem 0;
    margin-top: 6rem;
    color: #fff;
}

/*iframe*/
iframe { /* ← スペースを詰める */
    width: 100%;
    vertical-align: bottom; /* 下の隙間を消すおまじない */
}* .infoクラスを持つテーブルのセル内で、長い単語も折り返す */
.info td {
    word-break: break-all;
}
/* style.css の末尾に追加 */

/* 画面幅が380px以下のデバイスでSNS埋め込みがはみ出すのを防ぐ */
@media (max-width: 380px) {
    .post-info {
        flex-direction: column !important;
        gap: 0.5rem;
    }
    .post-date {
        order: 2;
        margin-top: 0.5rem;
    }
    .wrapper {
        flex-direction: column !important;
        
    }
    .post-cat {
        flex-direction: row !important;
        margin: 1rem 0 0 0 !important;
        width: 100%;
        align-items: center !important;
        text-align: center !important;
    justify-content: flex-start;
        gap: 0.5rem;
    }
    .hero-slider {
    width: 100vw;
    max-width: 360px;
    height: 30vh;
    min-height: 180px;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}
  /*
    新しく作った .sns-content をターゲットに指定します。
    Facebookを埋め込む場合も、同じクラスで囲めばこのスタイルが適用されます。
  */
  .sns-content {
    transform: scale(0.85);
    transform-origin: top center;
    margin-top: 1.5rem; /* 見出しとの間隔を調整 */

  }
}

@media (max-width: 800px) {
    .wrapper {
        display: flex;
        flex-direction: column !important;
    }
    .sns {
        display: flex; 
        flex-direction: column !important;
        gap: 2rem;
        align-items: stretch;
    }
  .hamburger {
    display: flex;
    align-self: flex-start;
    margin-bottom: 0.5rem;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 100;
  }
  .nav-menu.active {
    display: block;
  }
  .main-nav {
    flex-direction: column;
    gap: 0;
    padding: 1rem 2rem;
  }
  .main-nav li {
    margin: 1rem 0;
  }
 .page-header {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
  }
 .logo {
    display: block;
    margin: 0 auto;
  }
 .village-img {
    width: 100%;
    max-width: 600px;
    margin-top: 0;
  }
}