/* =========================================
   top.css  (Shapes School - Top Page)
========================================= */

@charset "UTF-8";

/* -------------------------------------------
------------- common style-------------------- 
---------------------------------------------- */
h1 {
  font-family: var(--f-text);
  font-weight: normal;
}
@media screen and (min-width: 768px) {
  h1 {
    margin-left: 3vw;
  }
}
@media screen and (min-width: 1024px) {
  h1 {
    margin-left: 2vw;
  }
}
h2 {
  padding-left: clamp(8px, 2vw, 16px);
  margin-bottom: clamp(40px, 10vw, 84px);
  font-size: clamp(48px, 12vw, 72px);
}
h2 span {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
@media screen and (min-width: 1024px) {
  h2 {
    padding-left: 0;
    text-align: center;
    line-height: 1.1;
  }
  h2 span {
    text-decoration-thickness: 4px;
    text-underline-offset: 12px;
  }
}
h3 {
  font-size: 20px;
  line-height: 1.3;
}
/* セクションごとの上下のスペース */
.sections-gap {
  display: grid;
  width: 100%;
  gap: clamp(88px, 23vw, 160px);
}

/* -------------------------------------------
-------------  heroセクション ----------------- 
---------------------------------------------- */
#hero {
  height: 100vw;
  display: grid;
  place-items: center;
  margin-top: var(--header-adjust);
  background-image: url(../top_img/hero.webp);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
#hero > div {
  color: var(--c-bg);
  text-align: center;
}
.hero-title {
  font-size: clamp(36px, 6vw, 64px);
}
.hero-sub {
  font-size: clamp(20px, 3vw, 36px);
}
@media screen and (min-width: 768px) {
  #hero {
    width: 94vw;
    height: calc(48vw + var(--header-h));
  }
}
@media screen and (min-width: 1024px) {
  #hero {
    width: 96vw;
    height: calc(42vw + var(--header-h));
  }
}

/* -------------------------------------------
----------------  hero-text ------------------ 
---------------------------------------------- */
.hero-text {
  height: auto;
  padding-top: 40px;
  display: grid;
  align-content: start;
  gap: 32px;
  font-size: 20px;
  line-height: 32px;
}
.hero-text p:last-of-type {
  position: relative;
  padding-bottom: 176px;
}
.hero-text p:last-of-type::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 224px;
  height: 224px;
  background-image: url(../top_img/ss-logo.png);
  background-repeat: no-repeat;
  background-size: contain;
}
@media screen and (min-width: 1024px) {
  .hero-text {
    font-size: 24px;
    padding-top: 64px;
  }
}

/* -------------------------------------------
----------  訓練紹介セクション --------------- 
---------------------------------------------- */
.course-cards {
  display: grid;
  gap: 24px;
}
.course-cards .card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-bg-2);
  box-shadow: var(--box-shadow);

  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.course-cards .card:hover {
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.18); /* 影を弱める */
  transform: translateY(1px); /* 少し沈む */
}

.course-cards .card .card-pic {
  height: clamp(200px, 16vw, 234px);
  display: grid;
  place-items: center;
}
.card-pic {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  width: auto;
}
.card-pic h3 {
  width: 100%;
  padding: 16px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.7);
}
/*　カード1番目の背景画像の設定　*/
.card-pic-1 {
  background-image: url(../courses/img/course_202604-hero.webp);
}
/*　カード2番目の背景画像の設定　*/
.card-pic-2 {
  background-image: url(../courses/img/course_202605-hero.webp);
}
/*　カード3番目の背景画像の設定　*/
.card-pic-3 {
  background-image: url(../courses/img/course_202507-hero.webp);
}
.card-detail {
  display: grid;
  gap: 1rem;
  padding: 12px 8px 0;
  font-size: 16px;
  background-color: var(--c-bg);
}
.training-period {
  display: inline-block;
  font-family: var(--f-heading);
  color: var(--c-bg);
  background-color: var(--c-accent);
  padding: 4px;
}
.detail-link {
  text-decoration: underline;
  text-align: right;
  margin-bottom: 8px;
}
.course-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .course-cards {
    gap: 36px;
  }
  .card-pic h3 {
    font-size: 28px;
  }
  .card-detail {
    padding: 12px 12px 0;
  }
}
@media screen and (min-width: 1024px) {
  .course-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
  .course-cards > .course-link {
    display: flex;
  }
  .course-cards .card {
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .course-cards .card-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    padding: 12px 8px 8px;
  }
  /* 説明文を揃える（空白が広がりすぎないように） */
  .course-cards .card-detail > p:nth-of-type(2) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
  }
  .course-cards .card-detail .detail-link {
    margin-top: auto;
    margin-bottom: 0;
  }
}

/* -------------------------------------------
----------  講師紹介セクション --------------- 
---------------------------------------------- */
.teacher-cards {
  display: grid;
  gap: 16px;
}
.teacher-card {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--c-bg-2);
  box-shadow: var(--box-shadow);
  padding: 8px;
  background-color: var(--c-bg);

  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.teacher-card:hover {
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.18); /* 影を弱める */
  transform: translateY(1px); /* 少し沈む */
}
.teacher-card div span {
  font-size: 24px;
}
.teacher-card > div:has(> span) {
  margin-left: auto;
  flex: 0 0 auto;
}
.teacher-card > .detail-link {
  display: none;
}
.teacher-pic {
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  width: max(80px, 22vw);
  height: max(80px, 22vw);
  flex: 0 0 auto;
}
.teacher-about {
  width: auto;
}
.teacher-about h3 {
  font-weight: normal;
  margin-bottom: 4px;
}
.teacher-about h3 .h3-teacher {
  font-size: 0.8em;
}
/*　講師１番目の画像設定　*/
.teacher-pic-1 {
  background-image: url(../teachers/img/matsuo.webp);
}
/*　講師２番目の画像設定　*/
.teacher-pic-2 {
  background-image: url(../teachers/img/mori.webp);
}
/*　講師３番目の画像設定　*/
.teacher-pic-3 {
  background-image: url(../teachers/img/ikuta.webp);
}
/*　講師４番目の画像設定　*/
.teacher-pic-4 {
  background-image: url(../teachers/img/kibayashi.webp);
}
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .teacher-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
  }
  .teacher-cards > a {
    display: flex;
    height: 100%;
    min-width: 0;
  }
  .teacher-card {
    width: 100%;
    height: 100%;
    align-items: center;
  }
  .teacher-about {
    flex: 1 1 auto;
    min-width: 0;
  }
  .teacher-pic {
    width: max(80px, 10vw);
    height: max(80px, 10vw);
  }
}
@media screen and (min-width: 1024px) {
  .teacher-cards {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    align-items: stretch;
  }
  .teacher-cards > a {
    display: flex;
  }
  .teacher-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 12px 12px 0 12px;
  }
  .teacher-about {
    width: 100%;
    flex: 1;
  }
  .teacher-card > .detail-link {
    display: block;
    width: 100%;
    text-align: right;
    margin-top: auto;
  }
  .teacher-card > div > span {
    display: none;
  }
  .teacher-pic {
    width: max(160px, 10vw);
    height: max(160px, 10vw);
  }
  .teacher-about h3 {
    text-align: center;
  }
}

/* -------------------------------------------
-------SCHOOL SCENES スライダーセクション-------
---------------------------------------------- */
#school-scenes .slider {
  width: auto;
}
#sceneSlider .splide__slide img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
#sceneSlider .splide__pagination {
  bottom: -36px;
  gap: 4px;
}
#sceneSlider .splide__pagination__page {
  width: 10px;
  height: 10px;
  border-radius: 0;
  background-color: var(--c-text);
  opacity: 1;
  padding: 2px;
}
#sceneSlider .splide__pagination__page.is-active {
  background: var(--c-accent);
  transform: none;
}
.splide__arrow {
  width: 3em;
  height: 3em;
  background-color: rgba(255, 255, 255, 0.9);
}
@media screen and (min-width: 768px) {
  #sceneSlider .splide__pagination {
    gap: 12px;
    bottom: -48px;
  }
  #sceneSlider .splide__pagination__page {
    width: 16px;
    height: 16px;
    padding: 4px;
  }
  .splide__arrow {
    width: 4em;
    height: 4em;
  }
  .splide__arrow--prev {
    left: 10%;
  }
  .splide__arrow--next {
    right: 10%;
  }
}
@media screen and (min-width: 1024px) {
  #sceneSlider .splide__slide img {
    aspect-ratio: 16/9;
  }
  #sceneSlider .splide__pagination {
    bottom: -64px;
  }
}

/* -------------------------------------------
-------------交通アクセスセクション-------------
---------------------------------------------- */
.access-contents {
  display: grid;
  gap: 32px;
}
.google-map {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.google-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.access-info {
  display: grid;
  place-items: center;
}
.access-info ul {
  width: auto;
  max-width: 100%;
  text-align: left;
}
.access-info ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 28px;
}
@media screen and (min-width: 768px) {
  .access-info ul li {
    gap: 12px;
    font-size: 20px;
    line-height: 36px;
  }
  .access-info ul li img {
    width: 32px;
    height: 32px;
  }
}
