/* 共通 */
:root {
  --yellow: #f3c900;
  --yellow-deep: #d4aa00;
  --ink: #22241f;
  --paper: #fffdf4;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: #eeeae0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
button {
  font: inherit;
}
.page-shell {
  width: 100%;
  margin: 0;
  background: var(--paper);
}
/* セクション見出し */
.section-title {
  text-align: center;
}
.section-title p {
    margin: 0 0 5px;
    color: var(--yellow-deep);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1;
}
.section-title h2 {
  margin: 0;
  font-size: clamp(25px, 3.5vw, 38px);
}
/* チラシ画像共通 */
.flyer-section {
  padding: 0;
  background: #fff;
}
.flyer-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0;
}
.flyer-slice {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 32px 16px;
  text-align: center;
  line-height: 0;
}
.flyer-slice img {
  display: block;
  width: 100%;
  height: auto;
}
/* メイン画像 */
.flyer-slice--full {
  padding-top: 0;
  background: #F7CA0B;
}
.flyer-slice--full img {
  max-width: 1120px;
}
/* 教室紹介文 */
.intro-message {
    width: 100%;
    padding: 38px max(20px, calc((100% - 940px) / 2)) 50px;
    background: #fffdf4;
}
.intro-message__inner {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
}
.intro-message__keyvisual {
  display: block;
  width: 260px;
  height: auto;
  margin: 0 auto;
}
.intro-message__copy {
  min-width: 0;
}
.intro-message p {
    margin: 0;
    font-size: clamp(18px, 1.2vw, 20px);
    font-weight: 700;
    line-height: 1.6;
}
.intro-message p span {
  white-space: nowrap;
}
.intro-message p:first-child {
  padding-bottom: 8px;
}
.intro-message p + p {
  margin-top: 10px;
}
/* 対象年齢・料金情報 */
.flyer-slice--info {
  background: #fff6cc;
}
.flyer-slice--info img {
  max-width: 860px;
}
.info-images-sp {
  display: none;
}
/* レッスン動画 */
.movie-block {
  width: 100%;
  margin: 0;
  padding: 40px max(16px, calc((100% - 920px) / 2)) 60px;
  color: #fff;
    background: #cd4b9b;
  text-align: center;
}
.movie-block h2 {
  margin: 0 0 22px;
    font-size: clamp(24px, 3.5vw, 30px);
  line-height: 1.4;
}
.movie-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.movie-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  color: #777;
  background: #fff;
  border: 3px solid rgb(255 255 255 / 45%);
  border-radius: 12px;
}
.movie-frame span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding-left: 4px;
  color: #fff;
  background: #b72bf2;
  border-radius: 50%;
  font-size: 22px;
}
.movie-frame p {
  margin: 10px 0 0;
  font-weight: 800;
  line-height: 1.4;
}
.movie-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
/* レッスン写真 */
.lesson-gallery {
  width: 100%;
  padding: 48px max(16px, calc((100% - 1000px) / 2)) 56px;
  background: #fff;
  text-align: center;
}
.lesson-gallery h2 {
  margin: 0 0 28px;
  font-size: clamp(24px, 3.5vw, 32px);
  line-height: 1.4;
}
.lesson-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.lesson-gallery__grid figure {
  overflow: hidden;
  margin: 0;
  border-radius: 14px;
}
.lesson-gallery__grid img {
  display: block;
  width: 100%;
  height: auto;
}
.lesson-gallery__additional {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 42px;
}
.lesson-gallery__group {
  min-width: 0;
}
.lesson-gallery__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.lesson-gallery__pair figure {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  margin: 0;
  background: #f4f4f4;
  border-radius: 14px;
}
.lesson-gallery__pair img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* 教室・待合室 */
.facility-gallery {
  width: 100%;
  padding: 48px max(16px, calc((100% - 1000px) / 2)) 56px;
  background: #fff6cc;
  text-align: center;
}
.facility-gallery h2 {
  margin: 0 0 28px;
  font-size: clamp(24px, 3.5vw, 32px);
  line-height: 1.4;
}
.facility-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.facility-gallery figure {
  overflow: hidden;
  margin: 0;
  background: #fff;
  border-radius: 14px;
}
.facility-gallery img {
  display: block;
  width: 100%;
  height: auto;
}
.facility-gallery figcaption {
  padding: 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}
/* 無料体験・プレゼント */
.trial-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  padding: 42px max(16px, calc((100% - 1120px) / 2));
  background: #f7cb0c;
}
.trial-section .flyer-slice {
  width: calc(50% - 12px);
  padding: 0;
  background: transparent;
}
.flyer-slice--trial img {
  max-width: 760px;
}
.flyer-slice--gift {
  margin-top: 0;
}
.flyer-slice--gift img {
  max-width: 680px;
}
/* 教室の特長 */
.flyer-slice--features {
  padding-top: 54px;
  background: #fff;
}
.feature-image-pc {
  max-width: 1120px;
}
.features-title-sp {
  display: none;
}
.feature-images-sp {
  display: none;
}
/* コース案内 */
.flyer-slice--courses {
  background: #fff9e5;
}
.flyer-slice--courses .zoom-target {
  max-width: 980px;
}
/* 講師紹介 */
.flyer-slice--teacher {
  background: #fff;
  padding: 40px 16px 0;
}
.flyer-slice--teacher img {
  max-width: 800px;
}
.teacher-movie {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 42px 16px 54px;
  background: #fff;
}
.teacher-movie h2 {
    margin: 0 0 20px;
    font-size: clamp(25px, 3.5vw, 30px);
  line-height: 1.4;
}
.teacher-movie__frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: min(100%, 760px);
  aspect-ratio: 16 / 9;
  color: #777;
  background: #eee9dc;
  border-radius: 16px;
}
.teacher-movie__frame span {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  padding-left: 4px;
  color: #fff;
  background: #ef7e45;
  border-radius: 50%;
  font-size: 26px;
}
.teacher-movie__frame p {
  margin: 12px 0 0;
  font-weight: 800;
}
.teacher-movie__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
/* SP用画像拡大ボタン */
.zoom-target {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: default;
  line-height: 0;
}
.zoom-target img {
  display: block;
  width: 100%;
  height: auto;
}
.zoom-icon {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: none;
  place-items: center;
  width: 50px;
  height: 50px;
  background: rgb(255 255 255 / 92%);
  border: 2px solid #222;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgb(0 0 0 / 30%);
  line-height: 1;
}
.zoom-icon img {
  display: block;
  width: 28px;
  height: 28px;
}
.zoom-target:hover .zoom-icon,
.zoom-target:focus-visible .zoom-icon {
  background: #b72bf2;
  transform: scale(1.08);
}
.zoom-target:focus-visible {
  outline: 4px solid #b72bf2;
  outline-offset: 4px;
}
/* お問い合わせ */
.contact-section {
  padding: clamp(42px, 6vw, 72px) clamp(20px, 6vw, 78px);
  background: #fff8da;
}
.contact-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  width: min(100%, 760px);
  margin: 28px auto 0;
}
.contact-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  padding: 22px 28px;
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 7px 0 rgb(0 0 0 / 13%);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.contact-button:hover,
.contact-button:focus-visible {
  box-shadow: 0 10px 0 rgb(0 0 0 / 13%);
  transform: translateY(-3px);
}
.contact-button:focus-visible {
  outline: 4px solid #222;
  outline-offset: 4px;
}
.contact-button strong {
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.35;
}
.contact-button small {
  padding: 6px 9px;
  background: rgb(255 255 255 / 25%);
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}
.contact-button--mail {
  background: #f08ac2;
}
.contact-button--line {
  background: #42dc45;
}
.contact-button__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.line-qr {
  display: block;
  width: 88px;
  height: 88px;
  padding: 4px;
  background: #fff;
  border-radius: 8px;
}
/* フッター */
.site-footer {
  width: 100%;
  padding: 38px 20px 16px;
  background: #fff;
}
.site-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 30px;
  width: min(100%, 1050px);
  margin: 0 auto;
}
.site-footer__main img {
  display: block;
  width: 100%;
  height: auto;
}
.site-footer__note {
  display: block;
  width: min(100%, 650px);
  height: auto;
  margin: 0px auto 0;
}
/* 画像拡大モーダル */
.zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  padding: 58px 14px 18px;
  color: #fff;
  background: rgb(0 0 0 / 92%);
}
.zoom-modal.is-open {
  display: flex;
  flex-direction: column;
}
.zoom-modal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.zoom-modal__viewport {
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  text-align: center;
}
.zoom-modal__viewport img {
  display: block;
  width: max(100%, 1000px);
  max-width: none;
  height: auto;
  margin: 0 auto;
  background: #fff;
}
.zoom-modal > p {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
}
body.modal-open {
  overflow: hidden;
}
/* ページ上部へ戻るボタン */
.page-top-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  color: #222;
  background: rgb(255 255 255 / 94%);
  border: 2px solid #222;
  border-radius: 50%;
  box-shadow: 0 5px 16px rgb(0 0 0 / 24%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  text-decoration: none;
}
.page-top-button.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.page-top-button img {
  display: block;
  width: 28px;
  height: 28px;
  transform: rotate(-90deg);
}
.page-top-button span {
  margin-top: -3px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.page-top-button:hover,
.page-top-button:focus-visible {
  color: #fff;
  background: #efad20;
  border-color: #222;
  transform: translateY(-3px);
}
.page-top-button:focus-visible {
  outline: 3px solid #b72bf2;
  outline-offset: 3px;
}
/* スマートフォン */
@media (max-width: 767px) {
  .flyer-slice {
    padding: 22px 12px;
  }
  .flyer-slice--info{
        padding: 30px 40px;
  }
  .flyer-slice--full {
    padding: 0 0 4vw;
  }
  .intro-message {
    padding: 26px 18px;
  }
  .intro-message__inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .intro-message__keyvisual {
        width: min(100%, 200px);
  }
  .intro-message p {
    font-size: 15px;
    text-align: justify;
  }
  .intro-message p + p br {
    display: none;
  }
  .flyer-slice--info .info-image-pc {
    display: none;
  }
  .info-images-sp {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }
  .info-images-sp img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
  }
  .flyer-slice--features .feature-image-pc {
    display: none;
  }
  .flyer-slice--features {
    flex-direction: column;
    align-items: center;
  }
  .features-title-sp {
    display: block;
    margin: 0 0 22px;
    font-size: clamp(21px, 6vw, 28px);
    font-weight: 900;
    line-height: 1.5;
  }
  .feature-images-sp {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }
  .feature-images-sp > img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
  }
  .trial-section {
    flex-direction: column;
    gap: 0;
    padding: 26px 0;
  }
  .trial-section .flyer-slice {
    padding-inline: 12px;
    width: 100%;
  }
  .flyer-slice--gift {
    margin-top: 12px;
  }
  .movie-block {
    padding: 28px 12px;
  }
  .movie-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .lesson-gallery {
    padding: 32px 12px 38px;
  }
  .lesson-gallery h2 {
    margin-bottom: 18px;
  }
  .lesson-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .lesson-gallery__additional {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
  }
  .lesson-gallery__pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .lesson-gallery__pair img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .facility-gallery {
    padding: 32px 12px 38px;
  }
  .facility-gallery h2 {
    margin-bottom: 18px;
  }
  .facility-gallery__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .contact-buttons {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .contact-button {
    min-height: 94px;
    padding: 18px 20px;
  }
  .line-qr {
    width: 76px;
    height: 76px;
  }
  .teacher-movie {
    padding: 30px 12px 38px;
  }
  .teacher-movie h2 {
    margin-bottom: 18px;
  }
  .teacher-movie__frame {
    border-radius: 12px;
  }
  .site-footer {
    padding: 28px 12px 14px;
  }
  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .site-footer__note {
    margin-top: 24px;
  }
  .zoom-target {
    cursor: zoom-in;
  }
  .zoom-icon {
    right: 8px;
    bottom: 8px;
    display: grid;
    width: 43px;
    height: 43px;
    font-size: 34px;
  }
  .page-top-button {
    right: 12px;
    bottom: 12px;
    width: 56px;
    height: 56px;
  }
  .page-top-button img {
    width: 24px;
    height: 24px;
  }
}
