@charset "utf-8";

.main {
  overflow-x: hidden;
}

#slideshow {
  position: relative;
  height: calc(100vh - 110px);
  width: 100%;
  z-index: 1;
  /* headerより下にいかないように */
  overflow: hidden;
}

.first-view-text img {
  width: 100%;
  max-width: 450px;
  margin-top: 2%;
}

h1 {
  font-size: 1.7rem;
  font-weight: bold;
  text-shadow:
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 20px #fff,
    0 0 40px rgba(255, 255, 255, 0.5);
  margin-left: 6%;
  margin-top: 1%;
}

h2 {
  font-family: "cormorant-sc", sans-serif;
  font-weight: 700;
  font-style: normal;
  text-align: center;
  font-size: 4.5rem;
  color: #c3b5b1;
  margin-top: 4%;
  margin-bottom: 1%;
}

.beige-line {
  height: 80px;
  width: 100%;
  background-color: #f2ebe9;
}

.lesson-list {
  padding-top: 45px;
  padding-bottom: 45px;
  padding-left: 4%;
  padding-right: 4%;
  display: flex;
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}

.lesson-list li {
  width: 300px;
  margin-left: 4%;
}

.lesson-list li:first-child {
  margin-left: 0;
}

.lesson-list p {
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
  margin-top: 5%;
}

/* モーダルの背景 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

/* モーダルの内容 */
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  text-align: center;
  position: relative;
}

/* 閉じるボタン */
.modal-close {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
}

/* モーダル内画像 */
.modal-image {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

/* 説明文 */
.modal-description {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: left;
}

/* ボタン */
.modal-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #c3b5b1;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  border-style: solid;
  border-width: 1px;
  font-weight: bold;
}

.modal-button:hover {
  background-color: #fff;
  color: #c3b5b1;
  border-style: solid;
  border-width: 1px;
  border-color: #c3b5b1;
  font-weight: bold;
}

.lesson-list li {
  transition: transform 0.3s ease;
  /* スムーズな変化 */
}

.lesson-list li:hover {
  transform: scale(1.05);
  /* 1.05倍に拡大 */
}

/* このクラスがついた li は拡大しない */
.lesson-list li.no-hover:hover {
  transform: none;
}

.news {
  max-width: 1150px;
  height: 520px;
  background-color: #fdf3f7;
  margin: 0 auto;
  position: relative;
  margin-top: 10%;
}

.news-iframe {
  border: none;
  width: 100%;
  max-width: 800px;
  height: 400px;
  display: block;
  /* margin: 0 auto; */
}

#newsdetail {
  display: flex;
  justify-content: space-between;
}

#newstop {
  width: 100%;
}

#newstop ul {
  padding-top: 116px;
  max-width: 800px !important;
  width: 100% !important;
}

#newstop ul li {
  padding: 20px 0px;
  border-top: 1px solid #504946;
  width: 100% !important;
  /* ← これを追加 */
  max-width: 800px !important;
  /* ← 必要に応じて */
}


#newstop ul li:nth-child(3) {
  border-bottom: 1px solid #504946;
  /* borderの太さと色を明示 */
  max-width: 800px !important;
  width: 100% !important;
}

.nenngappi {
  font-size: 16px;
}

.bunnsyou {
  font-size: 18px;
}

.newstitle {
  margin-top: -4%;
  margin-left: 4%;
  white-space: nowrap;
}

.newstitle h1 {
  margin: 0;
}

.newstitle p {
  color: #c3b5b1;
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
  margin-top: -3%;
}

.link-button-area {
  text-align: right;
}

.link-button {
  background-color: #fff;
  display: inline-block;
  min-width: 180px;
  line-height: 46px;
  color: #c3b5b1;
  font-weight: bold;
  text-align: center;
  margin-top: 4%;
  border-style: solid;
  border-width: 2px;
  border-color: #c3b5b1;
  margin-right: 5%;
}

.link-button:hover {
  background-color: #c3b5b1;
  border-style: solid;
  border-width: 2px;
  border-color: #c3b5b1;
  color: #fff;
}

.pink {
  text-align: inherit;
}

.pink-button {
  background-color: #f6c6d3;
  color: #fff;
  margin-top: 3%;
  line-height: 50px;
  min-width: 200px;
  font-size: 1.1rem;
  margin-right: 0;
}

.pink-button:hover {
  background-color: #fff;
  color: #c3b5b1;
}

.contact {
  display: flex;
  justify-content: center;
  max-width: 1100px;
  margin-right: auto;
  margin-left: auto;
  margin-top: 10%;
  margin-bottom: 10%
}

.contact-flex {
  display: flex;
  position: relative;
  align-items: flex-start;
}

.contact-right {
  margin-left: -50px;
}

.contact-right img {
  max-width: 400px;
  width: 100%;
  /* ←これで左の箱にかぶせる！ */
  z-index: 2;
  position: relative;
}

.contact-title p {
  color: #c3b5b1;
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
  margin-top: -2%;
}

.contact-detail {
  text-align: center;
  background-color: #f7f3f2;
  width: 650px;
  height: 440px;
  border-style: solid;
  border-color: #a99c9c;
  border-width: 1px;
  margin-top: 5%;
  position: relative;
}

.contact-detail p {
  margin-top: 8%;
  margin-bottom: 4%;
  font-size: 1.3rem;
  line-height: 1.6;
}

.onlinearea {
  text-align: inherit;
}

.online {
  margin: 0;
}

.onlineshop {
  background-image: url(../images/index/onlineshop.jpg);
  background-size: cover;
  height: 360px;
}

.onlineshop {
  display: flex;
  justify-content: space-around;
  align-items: center;
  /* ←これが縦方向の中央揃え！ */
}

.onlineshop-left {
  text-shadow:
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 20px #fff,
    0 0 40px rgba(255, 255, 255, 0.5);
  margin-left: 6%;
  margin-top: 1%;
}

.online-topic {
  font-size: 2.2rem;
  font-weight: bold;
}

.online-kotira {
  font-size: 1.3rem;
  margin-top: 5%;
}

.online {
  min-width: 280px;
  line-height: 70px;
  font-size: 1.4rem;
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  /* 丸くする */
  background-color: #a0c4d8;
  /* ピンク系カラー */
  color: #fff;
  border: none;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  display: none;
  /* 初期は非表示 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: opacity 0.3s, transform 0.2s;
}

#backToTop:hover {
  background-color: #8c6e63;
  transform: scale(1.1);
}

/* 基本の共通 */
.fadein {
  opacity: 0;
  transition: all 1s ease;
}

.fadein.active {
  opacity: 1;
  transform: translateY(0);
}

/* 下から */
.fadein-bottom {
  transform: translateY(30px);
}

.fadein-bottom.active {
  opacity: 1;
  transform: translateY(0);
}

/* 左から */
.fadein-left {
  transform: translateX(-5px);
}

.fadein-left.active {
  opacity: 1;
  transform: translateX(0);
}

.lesson-list li {
  overflow: hidden;
}


.lesson-list li.fadein-left:nth-child(1) {
  transition-delay: 0s;
}

.lesson-list li.fadein-left:nth-child(2) {
  transition-delay: 0.1s;
}

.lesson-list li.fadein-left:nth-child(3) {
  transition-delay: 0.2s;
}

.lesson-list li.fadein-left:nth-child(4) {
  transition-delay: 0.3s;
}


.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

iframe {
  overflow: hidden;
}



@media(max-width:767px) {
  .first-view-text img {
    max-width: 230px;
  }

  h1 {
    font-size: 1rem;
    margin-left: 10%;
  }

  h2 {
    font-size: 3.5rem;
  }

  .beige-line {
    height: 65px;
  }

  .sumaho-none {
    display: none;
  }

  .lesson-list {
    display: block;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    text-align: center;
  }

  .lesson-list li {
    margin-left: auto;
    margin-right: auto;
    margin-top: 10%;
    margin-bottom: 10%;
    width: 270px;
  }

  .lesson-list li.fadein-left {
    transition-delay: 0s !important;
  }

  .lesson-list li:first-child {
    margin-left: auto;
  }

  .lesson-list p {
    margin-top: 1%;
  }

  .no-hover {
    display: none;
  }

  .news {
    width: 100%;
    height: 520px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    margin-top: 23%;
    text-align: center;
  }

  .news-iframe {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  #newsdetail {
    display: block;
    width: 100%;
  }

  #newstop ul li {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  #newstop ul li:nth-child(3) {
    width: 100%;
  }

  #newstop ul {
    padding-top: 10px;
  }

  .newstitle {
    position: relative;
    top: -40px;
    margin-left: 0;
  }

  .news-button-area {
    text-align: center;
  }

  .news-button {
    margin-right: 0;
    margin-top: 11%;
    min-width: 260px;
    line-height: 60px;
    font-size: 1.1rem;
  }

  .contact {
    display: block;
    width: 100%;
    margin-bottom: 0;
  }

  .contact-flex {
    display: block;
  }

  .contact-title {
    text-align: center;
    margin-bottom: 5%;
  }

  .contact-detail {
    width: 350px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-detail p {
    font-size: 1.1rem;
    margin-top: 10%;
  }

  .contact-right {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
  }

  .contact-right img {
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
    position: relative;
    top: -100px;
    /* ←下から上へ重ねる（数値は調整してね） */
    z-index: 2;
  }

  .contact-detail {
    position: relative;
    z-index: 1;
    margin-top: 0;
    /* ←不要な余白があればここも調整 */
  }

  .pink-button {
    margin-right: 0;
    line-height: 55px;
    min-width: 250px;
  }

  .online {
    min-width: 290px;
  }

  .onlineshop {
    display: block;
    text-align: center;
    background-image: url(../images/index/onlinshop-sp.jpg);
    /* background-size: contain; */
    background-position: center;
    background-repeat: no-repeat;
  }

  .online-topic {
    font-size: 1.6rem;
    margin-top: 5%;
    display: block;
  }

  .onlineshop-left {
    margin-left: 0;
    padding-top: 14%;
  }

  .online-kotira {
    margin-top: 3%;
  }

  .onlinearea {
    margin-top: 8%;
  }

}


@media (min-width: 768px) and (max-width: 1024px) {
  .lesson-list li {
    margin-left: 2%;
  }

  .lesson-list {
    padding-top: 40px;
    padding-bottom: 38px;
    padding-left: 3%;
    padding-right: 3%;
  }

  .beige-line {
    height: 60px;
  }

  h2 {
    font-size: 3.7rem;
  }

  .first-view-text img {
    max-width: 400px;
  }

  .first-view-text p {
    font-size: 1.5rem;
    margin-left: 7%;
  }

  .main {
    padding-top: 70px;
  }

  .news {
    width: 100%;
    height: auto;
    margin-top: 12%;
  }

  .news-iframe {
    width: 100%;
    max-width: 700px;
    margin-top: 100px;
    margin-right: 0;
    height: 320px;
  }

  .newstitle {
    font-size: 1.5rem;
    margin-top: -3%;
    /* 元が-5%なので少し余裕 */
    padding: 0 1rem;
  }


  .newstop {
    width: 100%;
  }

  .newstop ul {
    padding-top: 100px;
  }

  #newstop ul li {
    max-width: 300px;
    width: 100%;
    text-align: left !important;
  }


  #newstop ul li:nth-child(3) {
    max-width: 300px;
    width: 100%;
  }

  .newstitle {
    margin-top: -5%;
  }

  .news-button{
    margin-top: 10px;
    margin-bottom: 50px;
  }

  .contact {
    width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-detail {
    width: 480px;
    height: 400px;
  }

  .contact-right img {
    max-width: 320px;
    margin-top: 10%;
  }

  .contact-detail p {
    margin-top: 10%;
    margin-bottom: 4%;
  }

  .pink-button {
    margin-top: 4%;
  }

  .onlineshop {
    height: 280px;
  }

  .online-topic {
    font-size: 1.6rem;
  }

  .online-kotira {
    font-size: 1.1rem;
  }

  .online {
    min-width: 240px;
    line-height: 60px;
    font-size: 1.2rem;
  }
}