@charset "UTF-8";

/* 共通スタイル */
html {
  font-size: 62.5%;
}
body {
  font-size: 1.6rem;
  font-family: "游明朝", "Yu Mincho", YuMincho, "Hiragino Mincho Pro", serif !important; /* TODO：文字色 */
  color: #2c3034;
  background-color: #ffffff;
  line-height: 1.8;
  letter-spacing: 0.05em;
  overflow-wrap: break-word;
}
a {
  cursor: pointer;
}
a:hover {
  opacity: 0.7;
}
img {
  line-height: 1;
}
dt {
  font-weight: normal;
}

.text-h2 {
  font-size: 2.4rem;
}
@media screen and (max-width: 768px) {
  .text-h2 {
    font-size: 2rem;
  }
}

.container {
  display: flex;
  flex-direction: column;
  gap: 80px;
}
@media screen and (max-width: 768px) {
  .container {
    gap: 40px;
  }
}

/* レスポンシブ */
.pc {
  display: block;
}
.sp {
  display: none;
}
@media screen and (max-width: 768px) {
  .pc {
    display: none;
  }
  .sp {
    display: block;
  }
}

/* Google Mapを囲う要素 */
.map {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 75%; /* 比率を4:3に固定 */
}
.map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* wrapper */
.wrapper {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 80px;
}
@media screen and (max-width: 768px) {
  .wrapper {
    padding: 40px 32px;
  }
}

/* header */
.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: row-reverse;
  margin-bottom: 100px;
}
.header h1 {
  font-size: 5.2rem;
  writing-mode: vertical-rl; /* 縦書きモード */
  letter-spacing: 32px;
}
.header nav {
  display: flex;
  gap: 16px;
  flex-direction: row-reverse;
}
.header nav a {
  writing-mode: vertical-rl; /* 縦書きモード */
  letter-spacing: 2px; /* 文字間を調整 */
  text-orientation: upright;
}
.header-link {
  display: flex;
  gap: 20px;
}
.header-link img {
  width: 40px;
}

@media screen and (max-width: 768px) {
  .header {
    flex-direction: row;
  }
  .header h1 {
    font-size: 4rem;
    letter-spacing: 36px;
  }
  .header nav {
    display: none;
  }
  .header-link img {
    width: 32px;
  }
}

/* ハンバーガーメニュー */
.navigation {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}
.navigation-bg {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
}
.navigation-menu {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: #fff;
  padding: 100px 32px;
}
.navigation-close {
  position: absolute;
  right: 32px;
  top: 40px;
  width: 32px;
}
.navigation ul {
  display: flex;
  flex-direction: column;
}
.navigation ul li {
  text-align: center;
  border-bottom: solid 1px #ccc;
}
.navigation ul li:first-child {
  border-top: solid 1px #ccc;
}
.navigation ul li a {
  padding: 16px 0;
  display: block;
}

/* top */
.top {
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.top-news {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.top-news ul {
  display: flex;
  flex-direction: column;
}
.top-news ul li:first-child {
  border-top: solid 1px #ccc;
  padding-top: 8px;
}
.top-news ul li {
  border-bottom: solid 1px #ccc;
  padding: 8px 0;
}
.top-news ul li a {
  display: flex;
  gap: 24px;
}
@media screen and (max-width: 768px) {
  .top-news ul {
    font-size: 1.4rem;
  }
  .top-news ul li a {
    gap: 16px;
  }
}
.top-menu ul a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
/* 2カラムのPC/SP出し分け */
@media screen and (min-width: 681px) {
  .top-menu ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 40px;
  }
}
@media screen and (max-width: 680px) {
  .top-menu ul {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
}

/* about */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  row-gap: 40px;
}
.about-text {
  display: flex;
  gap: 20px;
  flex-direction: column;
  justify-content: center;
}
.about-image{
  height: 100%;
}
@media screen and (max-width: 768px) {
  .about-section {
    display: flex;
    gap: 20px;
    flex-direction: column;
  }
  .about-section:nth-child(2n+1) {
    flex-direction: column-reverse;
  }
}

/* lesson */
/* TODO: 細かいところ */
.lesson-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.lesson h3 {
  font-size: 2rem;
  line-height: 1;
}
.lesson-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  row-gap: 40px;
  place-items: center;
  border-top: solid 1px #ccc;
  border-bottom: solid 1px #ccc;
  padding: 20px 0;
}
.lesson-text{
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.lesson-text dl {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
.lesson-text dl dt {
  width: 30%;
}
.lesson-text dl dd {
  width: 70%;
}
.lesson-section ul {
  padding-left: 1em;
  list-style: disc;
}
@media screen and (max-width: 768px) {
  .lesson-section {
    display: flex;
    gap: 20px;
    flex-direction: column;
  }
  .lesson-block {
    display: block;
  }
  .lesson-text dl {
    padding-left: 0;
  }
}
.lesson-box {
  padding: 40px 20px;
  border: solid 1px #ccc;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  gap: 32px;
}
.lesson-box > div {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  gap: 40px;
}
.lesson-box table {
  position: relative;
  text-align: left;
}
.lesson-box th {
  font-weight: normal;
  padding-right: 2em;
}
.lesson-box table::before,
.lesson-box table::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: #ccc;
  position: absolute;
}
.lesson-box table::before {
  top: -20px;
}
.lesson-box table::after {
  bottom: -20px;
}
@media screen and (max-width: 768px) {
  .lesson-box {
    padding: 20px;
    gap: 20px;
    font-size: 1.4rem;
  }
  .lesson-box > div {
    gap: 32px;
  }
  .lesson-box table::before {
    top: -16px;
  }
  .lesson-box table::after {
    bottom: -16px;
  }
}

/* faq */
.faq-header {
  background-color: #fff;
  padding: 12px 45px 12px 20px;
  transition: 0.3s ease;
  cursor: pointer;
  position: relative;
  border-bottom: solid 1px #ccc;
}
.faq-header::before,
.faq-header::after {
  position: absolute;
  content: "";
  top: 1px;
  right: 20px;
  bottom: 0;
  width: 12px;
  height: 1px;
  margin: auto;
  background: #151e2f;
}
.faq-header::after {
  transform: rotate(-90deg);
  transition: transform 0.3s;
}
.faq-header.active::after {
  transform: rotate(0deg);
}
.faq-content {
  display: none;
  background-color: #fff;
  padding: 12px 20px;
  border-bottom: solid 1px #ccc;
}
.faq-content a {
  text-decoration: underline;
}
.faq-header > div,
.faq-content > div {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.faq-header > div::before {
  content: "Q";
  left: 0;
  font-size: 1.6rem;
}
.faq-content > div::before {
  content: "A";
  left: 0;
  font-size: 1.6rem;
}

/* gallery */
.gallery ul a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
/* 2カラムのPC/SP出し分け */
@media screen and (min-width: 681px) {
  .gallery ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 64px;
    row-gap: 80px;
  }
}
@media screen and (max-width: 680px) {
  .gallery ul {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
}

/* slick */
.slider {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.slider ul li{
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.slider img {
  max-width: 100%;
  max-height: 100%; /* ビューポートの高さを超えないように */
  object-fit: contain;
  width: auto;
  height: auto;

}
.dots-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.dots-wrap li {
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
}
.dots-wrap li:hover,
.dots-wrap li.slick-active {
  background: #000;
}
.dots-wrap li button {
  display: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  padding: 0;
  border: none;
  background-color: transparent;
}

/* news */
.news ul {
  display: flex;
  flex-direction: column;
}
.news ul li:first-child {
  border-top: solid 1px #ccc;
  padding-top: 24px;
}
.news ul li {
  display: flex;
  gap: 32px;
  border-bottom: solid 1px #ccc;
  padding: 24px 0;
}
@media screen and (max-width: 768px) {
  .news ul li:first-child {
    padding-top: 16px;
  }
  .news ul li {
    gap: 4px;
    padding: 16px 0;
    flex-direction: column;
  }
}

/* article */
.article section{
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.article .article-section{
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.article section a{
  text-decoration: underline;
}
.article section dl dt{
  font-weight: bold;
}
.article section dl dd + dt {
  margin-top: 12px;
}