@charset "UTF-8";


/**********************************************/
/**********ABOUTトップ*************************/
/**********************************************/

.about_top_inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* --- 写真コラージュ --- */
.about_photos {
  position: relative;
  padding-bottom: 160px;
  isolation: isolate;
}

.about_photo_main {
  position: relative;
  isolation: isolate;
}

.about_photo_main::before {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 12px;
  width: 82%;
  height: 100%;
  background-color: rgba(45, 93, 57, 0.12);
  z-index: -1;
}

.about_photo_main img {
  width: 82%;
  height: auto;
  display: block;
  position: relative;
}

.about_photo_sub {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 58%;
  box-shadow: 6px 6px 24px rgba(0, 0, 0, 0.12);
  isolation: isolate;
}

.about_photo_sub::before {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 12px;
  width: 100%;
  height: 100%;
  background-color: rgba(45, 93, 57, 0.12);
  z-index: -1;
}

.about_photo_sub img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
}

/* --- テキスト --- */
.about_lead {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.75;
  color: var(--Green-d);
  margin-bottom: 28px;
  letter-spacing: 0.1em;
}

.about_body p {
  margin-bottom: 1em;
}

.about_body p:last-child {
  margin-bottom: 0;
}


/**********************************************/
/**********教室の雰囲気（スライダー）**********/
/**********************************************/

.about_atm {
  background-color: var(--Beige);
}

.about_atm > .inner {
  max-width: 800px;
}

.about_atm .section_head {
  text-align: center;
}

.about_atm .section_head::after {
  margin-left: auto;
  margin-right: auto;
}

.atm_slider {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* メイン画像 */
.atm_main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--Lightgray);
}

.atm_slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.atm_slide.is-active {
  opacity: 1;
}

.atm_slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.atm_caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 20px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 500;
  text-align: right;
}

/* ナビ（< 1/6 >） */
.atm_nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.atm_prev,
.atm_next {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--Yellow);
  background: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.atm_prev:hover ,
.atm_next:hover {
  opacity: 0.6;
}

.atm_counter {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  min-width: 48px;
  text-align: center;
}

/* サムネイル */
.atm_thumbs {
  display: flex;
  gap: 8px;
}

.atm_thumb {
  flex: 1;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.atm_thumb.is-active {
  border-color: var(--Yellow);
}

.atm_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/**********************************************/
/**********Philosophy**************************/
/**********************************************/

.about_phi {
  background:
    repeating-linear-gradient(45deg, rgba(198, 167, 94, 0.04) 0px, rgba(198, 167, 94, 0.04) 1px, transparent 1px, transparent 14px),
    linear-gradient(to right, var(--Green-d), var(--Green-l));
}

.phi_cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.phi_card {
  display: flex;
  flex-direction: column;
  padding: 36px 24px 32px;
  background-color: var(--White);
}

.phi_num {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--Yellow);
  margin-bottom: 16px;
  line-height: 1.2;
}

.phi_icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.phi_icon img {
  width: 100%;
  height: auto;
  display: block;
}

.phi_title {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--Green-d);
  line-height: 1.4;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.phi_desc {
  font-size: 0.875rem;
}


/**********************************************/
/**********先生紹介****************************/
/**********************************************/

.about_teacher {
  background-color: var(--Beige);
}

.teacher_list {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.teacher_item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: start;
}

.teacher_item--reverse {
  grid-template-columns: 1fr 300px;
}

.teacher_item--reverse .teacher_photo {
  grid-column: 2;
  grid-row: 1;
}

.teacher_item--reverse .teacher_info {
  grid-column: 1;
  grid-row: 1;
}

.teacher_photo {
  position: relative;
  isolation: isolate;
}

.teacher_photo::before {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  background-color: rgba(45, 93, 57, 0.12);
  z-index: -1;
}

.teacher_item--reverse .teacher_photo::before {
  right: auto;
  left: -12px;
}

.teacher_photo img {
  width: 100%;
  height: auto;
  display: block;
}

.teacher_photo_empty {
  aspect-ratio: 3 / 4;
  background-color: var(--Lightgray);
}

/* 名前・SNS行 */
.teacher_name_wrap {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.teacher_name_en {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--Yellow);
  margin-bottom: 4px;
}

.teacher_name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--Green-d);
}

.teacher_sns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-top: 12px;
}

.teacher_sns a {
  display: block;
  line-height: 0;
}

.teacher_sns a:hover {
  opacity: 0.7;
}

/* teacher_info縦flex（teacher_linkの右寄せ用） */
.teacher_info {
  display: flex;
  flex-direction: column;
}

/* 本文 */
.teacher_bio p:last-child {
  margin-bottom: 0;
}

.teacher_media {
  font-size: 0.75rem;
  margin-top: 12px;
}

.teacher_media span {
  font-weight: 600;
}

.teacher_link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--Green-d);
  text-decoration: underline;
  margin-top: 20px;
  align-self: flex-end;
}

.teacher_link:hover {
  opacity: 0.7;
}

/**********************************************/
/**********レスポンシブ************************/
/**********************************************/

@media screen and (max-width: 768px) {

  .about_top_inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about_photos {
    padding-bottom: 60px;
    padding-right: 36px;
  }

  .phi_cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .phi_card {
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 14px;
    padding: 20px;
  }

  .phi_num {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .phi_icon {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 0;
    width: 48px;
    height: 48px;
    align-self: center;
  }

  .phi_title {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    margin-bottom: 0;
    font-size: 1rem;
  }

  .phi_desc {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 12px;
  }

  .teacher_item,
  .teacher_item--reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .teacher_item--reverse .teacher_photo,
  .teacher_item--reverse .teacher_info {
    grid-column: auto;
    grid-row: auto;
  }

  .teacher_photo {
    width: 200px;
    margin: 0 auto;
  }

}
