/*
Theme Name: Nagatake Piano
Theme URI: https://nagatake-piano.com
Author: Ayaworks
Description: ながたけピアノ教室 公式サイト用オリジナルテーマ
Version: 3.9
Text Domain: nagatake-piano
*/

/* ==========================================================
   ながたけピアノ教室 - メインビジュアル
   「音楽が、お花のように咲く教室」
   ========================================================== */

:root {
  --color-lavender: #C9B8E8;      /* メイン:淡いラベンダー */
  --color-lavender-pale: #ECE6F7; /* コース紹介など背景用の、さらに薄いラベンダー */
  --color-lavender-deep: #B3A0D6; /* 見出しアクセント用のソフトなラベンダー */
  --color-pink-beige: #E9C9B8;    /* サブ:ピンクベージュ */
  --color-pink-accent: #E8879E;   /* キャッチコピー強調文字用の、馴染みの良いピンク */
  --color-cream: #FAF5EC;         /* 背景:生成り */
  --color-green: #BFD3B2;         /* アクセント:淡いグリーン */
  --color-text: #4E4358;          /* 本文用のやわらかいダーク */
  --color-copy: #4E4358;          /* キャッチコピー等の見出し文字色(黒の主張が強いためソフトなダークに変更) */

  --font-main: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-accent: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-script: "Alex Brush", cursive;

  /* 完成イメージのキャンバス比率(1200 x 630) */
  --hero-ratio: 1200 / 630;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-text);
  background-color: var(--color-cream);
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================================================
   ドット装飾(参考サイトで見つけた、ドットが点々と瞬く演出)
   実物はアニメーションGIFだったが、opacityのアニメーションだけで再現している。
   ========================================================== */

.dot-cluster {
  position: absolute;
  width: clamp(220px, 34vw, 460px);
  height: clamp(50px, 7vw, 90px);
  pointer-events: none;
  z-index: 0;
}

.dot-cluster-dot {
  position: absolute;
  /* border-radius・背景色はPHP側(functions.php)で1つずつ個別に指定
     (手描き風のいびつな丸、複数色を混ぜる、濃さもバラバラにするため) */
  filter: blur(0.6px);
  animation-name: dotClusterTwinkle;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes dotClusterTwinkle {
  0%, 100% {
    opacity: calc(var(--dot-opacity-peak, 0.7) * 0.25);
    transform: scale(0.75) rotate(var(--dot-rotate, 0deg));
  }
  50% {
    opacity: var(--dot-opacity-peak, 0.7);
    transform: scale(1) rotate(var(--dot-rotate, 0deg));
  }
}

.dot-cluster--top-left {
  top: 44px;
  left: 0;
}

.dot-cluster--top-right {
  top: 44px;
  right: 0;
}

.dot-cluster--bottom-left {
  bottom: 44px;
  left: 0;
}

.dot-cluster--bottom-right {
  bottom: 44px;
  right: 0;
}

@media (prefers-reduced-motion: reduce) {
  .dot-cluster-dot {
    animation: none;
    opacity: 0.6;
  }
}

/* ==========================================================
   ヘッダー
   ========================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: var(--color-cream);
  box-shadow: 0 2px 10px rgba(78, 67, 88, 0.08);
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px clamp(20px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: block;
  flex: 0 0 auto;
}

.site-logo img {
  height: clamp(48px, 6vw, 64px);
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
}

.site-nav-list {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav-list a {
  color: var(--color-text);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-nav-list a:hover {
  color: var(--color-lavender-deep);
}

.site-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-lavender), var(--color-lavender-deep));
  color: #FFFFFF;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(147, 122, 199, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(147, 122, 199, 0.4);
}

/* ---------- スマホ用ハンバーガーボタン ---------- */

.site-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex: 0 0 auto;
}

.site-nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.site-nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    background-color: var(--color-cream);
    padding: 24px clamp(20px, 5vw, 64px) 32px;
    box-shadow: 0 12px 24px rgba(78, 67, 88, 0.12);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .site-nav-cta {
    justify-content: center;
  }

  .site-nav-toggle {
    display: flex;
  }
}

/* ==========================================================
   Hero セクション全体
   完成イメージ(1200x630)をそのままの座標比率でレイヤー重ねし、
   コンテナごとスケールさせることで、デスクトップ〜タブレットは
   デザイン通りの配置を維持する。
   ========================================================== */

.hero {
  background-color: var(--color-cream);
}

.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: var(--hero-ratio);
  overflow: hidden;
  background-color: var(--color-cream);
}

/* ---------- 背景写真 ---------- */

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  animation: heroBgZoom 18s ease-in-out infinite alternate;
}

/* 背景をゆっくり拡大し続けるKen Burns風の演出。
   デスクトップ2枚・スマホのクロスフェード2枚すべてに同じタイミングで掛けることで、
   スマホの切り替わり時にも拡大率がずれて見えないようにしている。 */
@keyframes heroBgZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    animation: none;
  }
}

.hero-bg--mobile {
  display: none;
}

/* ---------- グロー(お花まわりの水彩の滲み) ---------- */

.hero-glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 0;
}

/* ---------- 中央の白いもや ---------- */

.hero-haze {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 黒背景+白いもや素材。screen合成で黒を透明扱いにし、白い部分だけ光らせる */
  mix-blend-mode: screen;
  z-index: 1;
  pointer-events: none;
}

/* ---------- 五線譜(下部に流れるように配置) ----------
   <img src>で読み込むとSVG内のCSSアニメーションが動かないため、
   front-page.phpでSVGをHTMLに直接埋め込んでいる。 */

.hero-staff {
  position: absolute;
  left: 0;
  bottom: 6%;
  width: 100%;
  z-index: 1;
  opacity: 0.85;
  pointer-events: none;
}

.hero-staff svg {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .hero-staff {
    bottom: 3%;
    opacity: 0.7;
  }
}

/* 五線譜:線が左から右へ「描かれる」演出。幕(.hero-reveal-curtain)が開き切った後に始まる */
.hero-staff .staff-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: heroStaffDrawLine 1.8s ease-out forwards;
}

.hero-staff .staff-line-1 { animation-delay: 3.3s; }
.hero-staff .staff-line-2 { animation-delay: 3.5s; }
.hero-staff .staff-line-3 { animation-delay: 3.7s; }
.hero-staff .staff-line-4 { animation-delay: 3.9s; }
.hero-staff .staff-line-5 { animation-delay: 4.1s; }

@keyframes heroStaffDrawLine {
  to { stroke-dashoffset: 0; }
}

.hero-staff .note-stem,
.hero-staff .note-head {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  animation: heroStaffDrawNote 0.6s ease-out forwards;
}

.hero-staff .note-1 { animation-delay: 4.8s; }
.hero-staff .note-2 { animation-delay: 5.0s; }
.hero-staff .note-3 { animation-delay: 5.2s; }
.hero-staff .note-4 { animation-delay: 5.4s; }

@keyframes heroStaffDrawNote {
  0% { stroke-dashoffset: 1; opacity: 0; }
  30% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-staff .staff-line,
  .hero-staff .note-stem,
  .hero-staff .note-head {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* ---------- お花 ---------- */

.hero-flower {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 0;
}

.hero-flower-mobile {
  display: none;
}

/* ---------- 音符(散らし) ---------- */

.hero-note {
  position: absolute;
  width: 4.5%;
  z-index: 3;
  pointer-events: none;
}

/* 音符は中央から左右対称に配置(note-1/2/3はnote-7/4/5をそれぞれ左右反転した位置) */
/* 音符は左側(note-1/2/3)の配置を基準にし、右側(note-7/4/5)をサイズそのまま左右反転して揃える */
.hero-note--1 { left: 41%;   top: 5.5%;  width: 4.2%; transform: rotate(8deg); }
.hero-note--2 { left: 30%;   top: 11.5%; width: 5.3%; transform: rotate(-6deg); }
.hero-note--3 { left: 33.5%; top: 19.5%; width: 4.3%; transform: rotate(4deg); }
.hero-note--7 { left: 54.25%; top: 5.5%;  width: 5.3%; transform: rotate(-8deg); }
.hero-note--4 { left: 65.2%;  top: 11.5%; width: 4.3%; transform: rotate(6deg); }
.hero-note--5 { left: 61.95%; top: 19.5%; width: 4.8%; transform: rotate(-4deg); }

/* ---------- 背景幕(タイトルのタイピング演出中は背景一式を隠す) ---------- */
/* 背景側の要素(合成モードのhero-hazeなど)には一切触れず、
   上から生成り色の幕を重ねて隠し、それをフェードアウトさせるだけの方式。
   これにより写真の透過部分の合成(mix-blend-mode)が壊れない。 */

.hero-reveal-curtain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-cream);
  z-index: 4;
  pointer-events: none;
  animation: fadeOut 1s ease-out forwards;
  animation-delay: 2.2s;
}

/* ---------- テキスト ---------- */

.hero-text {
  position: absolute;
  left: 51%;
  top: 0;
  width: 32%;
  height: 100%;
  transform: translateX(-50%) translateY(clamp(-32px, -4vw, -16px));
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(6px, 0.9vw, 10px);
}

.hero-text-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 0.9vw, 10px);
}

.hero-title {
  margin: 0;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: clamp(18px, 2.3vw, 28px);
  line-height: 1.5;
  color: var(--color-copy);
}

.hero-subcopy {
  margin: 0;
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(13px, 1.5vw, 18px);
  line-height: 1.7;
  color: var(--color-copy);
}

.hero-divider {
  width: clamp(80px, 12vw, 150px);
  height: auto;
  opacity: 0.8;
}

.hero-comment {
  margin: 0;
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(13px, 1.5vw, 18px);
  line-height: 1.7;
  color: var(--color-copy);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: clamp(4px, 1vw, 10px);
  padding: clamp(10px, 1.6vw, 16px) clamp(24px, 3.2vw, 40px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-lavender), var(--color-lavender-deep));
  color: #FFFFFF;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: clamp(13px, 1.3vw, 16px);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(147, 122, 199, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(147, 122, 199, 0.45);
}

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

/* タブレット:配置比率はそのまま、コンテナごと縮小 */
@media (max-width: 1024px) {
  .hero-text {
    width: 36%;
  }
}

/* スマートフォン:家とピアノの写真を自動でフェード切り替えしながら、
   その上にテキストとCTAボタンを重ねて表示する構成。 */
@media (max-width: 640px) {
  .hero-visual {
    aspect-ratio: 3 / 4;
    overflow: hidden;
  }

  .hero-bg--desktop {
    display: none;
  }

  .hero-haze {
    opacity: 0.6;
  }

  .hero-bg--mobile {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-bg-slide {
    opacity: 0;
    transition: opacity 1.2s ease;
  }

  .hero-bg-slide.is-active {
    opacity: 1;
  }

  .hero-text {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
  }

  .hero-cta {
    margin-left: auto;
    margin-right: auto;
  }

  /* デスクトップ用のフルキャンバス版は非表示、トリミング版に切り替え */
  .hero-flower {
    display: none;
  }

  .hero-flower-mobile {
    display: block;
    position: absolute;
    bottom: 0;
    width: 42%;
    height: auto;
    z-index: 2;
    pointer-events: none;
  }

  .hero-flower-mobile--left {
    left: 0;
    bottom: -4px;
  }

  .hero-flower-mobile--right {
    right: 0;
    bottom: -4px;
  }

  /* 音符は数を絞ってテキスト周りだけに */
  .hero-note--2,
  .hero-note--3,
  .hero-note--4,
  .hero-note--5 {
    display: none;
  }

  .hero-note--1 { left: 8%;    top: 10%; width: 9%; }
  .hero-note--7 { left: 82.5%; top: 10%; width: 10%; }
}

/* ==========================================================
   動きのある演出(読み込みフェードイン + ふわふわアニメーション)
   ========================================================== */

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatNote {
  0%, 100% {
    transform: translate(0, 0) rotate(var(--note-rotate, 0deg));
  }
  25% {
    transform: translate(3px, -8px) rotate(calc(var(--note-rotate, 0deg) + 3deg));
  }
  50% {
    transform: translate(0, -14px) rotate(calc(var(--note-rotate, 0deg) + 6deg));
  }
  75% {
    transform: translate(-3px, -8px) rotate(calc(var(--note-rotate, 0deg) + 3deg));
  }
}

/* タイトルの「音楽って、」タイピング→「楽しい！」ズームインの順番送り */
@keyframes typeReveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes zoomPop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-title-typing {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  animation: typeReveal 0.8s steps(5, end) forwards;
  animation-delay: 0.3s;
}

.hero-title-pop {
  display: inline-block;
  opacity: 0;
  font-size: 1.35em;
  font-weight: 700;
  color: var(--color-pink-accent);
  animation: zoomPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 1.6s;
}

.hero-text-content > * {
  opacity: 0;
  animation: fadeInUp 1.6s ease-out forwards;
}

.hero-text > .hero-cta {
  opacity: 0;
  animation: fadeInUp 1.6s ease-out forwards;
  animation-delay: 3.1s;
}

/* タイトルは上記の専用アニメーション(タイピング+ズーム)を使うため、共通のフェードアップからは除外 */
.hero-title {
  opacity: 1;
  animation: none;
}

/* サブコピー以降は、タイトルのタイピング演出(〜2.1s)が終わってから
   背景幕(.hero-reveal-curtain)と合わせて出現させる */
.hero-text-content > *:nth-child(1) { animation-delay: 0.2s; }
.hero-text-content > *:nth-child(2) { animation-delay: 2.2s; }
.hero-text-content > *:nth-child(3) { animation-delay: 2.5s; }
.hero-text-content > *:nth-child(4) { animation-delay: 2.8s; }

.hero-flower {
  animation: fadeInUp 1s ease-out 0.2s forwards;
  opacity: 0;
}

.hero-note {
  animation: fadeInUp 0.8s ease-out forwards, floatNote 5s ease-in-out infinite;
  opacity: 0;
}

.hero-note--1 { --note-rotate: 8deg;  animation-delay: 0.3s, 1s; }
.hero-note--2 { --note-rotate: -6deg; animation-delay: 0.4s, 1.2s; }
.hero-note--3 { --note-rotate: 4deg; animation-delay: 0.5s, 1.4s; }
.hero-note--7 { --note-rotate: -8deg;  animation-delay: 0.4s, 1.1s; }
.hero-note--4 { --note-rotate: 6deg; animation-delay: 0.5s, 1.3s; }
.hero-note--5 { --note-rotate: -4deg; animation-delay: 0.6s, 1.5s; }

@media (prefers-reduced-motion: reduce) {
  .hero-reveal-curtain {
    animation: none;
    opacity: 0;
  }

  .hero-text-content > *,
  .hero-text > .hero-cta,
  .hero-flower,
  .hero-note,
  .hero-title-typing,
  .hero-title-pop {
    animation: none;
    opacity: 1;
    clip-path: none;
    transform: none;
  }
}

/* ==========================================================
   教室について
   ========================================================== */

.about {
  position: relative;
  background-color: var(--color-cream);
  padding: 0 0 clamp(56px, 9vw, 120px);
}

.about-band {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 clamp(40px, 6vw, 64px);
  opacity: 0.85;
  /* 画像の一番上に、鍵盤の縁取り用に描かれた黒い線が入っているため、
     ヒーローとの境目に見えてしまわないようごくわずかに上端を切り取る */
  clip-path: inset(2% 0 0 0);
}

/* 教室について/講師紹介はCSS Gridで組んでいる。
   .about-text-head(見出し)と.about-text-body(本文)を別要素に分けているのは、
   スマホで「見出し→写真→文言」の順に並べ替えるため。
   (以前はdisplay:contentsで1つの.about-textを分割していたが、
   iOS Safariでコンテンツごと消えてしまう不具合があったため、この構成に変更) */
.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "head photo" "body photo";
  align-items: center;
  column-gap: clamp(32px, 6vw, 88px);
  row-gap: 8px;
}

.teacher .about-inner {
  grid-template-areas: "photo head" "photo body";
}

.about-text-head {
  grid-area: head;
}

.about-text-body {
  grid-area: body;
}

.about-heading {
  margin: 0;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 32px);
  color: var(--color-copy);
}

/* 見出し周りに添える、控えめなローマ字の飾り文字。
   .about-text-head内では親(.about-inner.is-visible)のフェードアップに乗せ、
   .courses-inner/.news-inner内では単体でスクロール検知してフェードさせる。 */
.section-eyebrow {
  display: block;
  margin: 0 0 2px;
  font-family: var(--font-script);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  color: var(--color-lavender-deep);
}

.about-text-head > .section-eyebrow {
  transform: translateY(20px) rotate(-6deg);
}

.about-inner.is-visible .about-text-head > .section-eyebrow {
  opacity: 0.55;
  transform: translateY(0) rotate(-6deg);
}

.courses-inner .section-eyebrow,
.news-inner .section-eyebrow,
.faq-inner .section-eyebrow {
  opacity: 0;
  transform: translateY(14px) rotate(-6deg);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.courses-inner .section-eyebrow.is-visible,
.news-inner .section-eyebrow.is-visible,
.faq-inner .section-eyebrow.is-visible {
  opacity: 0.55;
  transform: translateY(0) rotate(-6deg);
}

@media (prefers-reduced-motion: reduce) {
  .courses-inner .section-eyebrow,
  .news-inner .section-eyebrow,
  .faq-inner .section-eyebrow {
    opacity: 0.55;
    transform: rotate(-6deg);
    transition: none;
  }
}

.about-heading-divider {
  width: 70px;
  height: auto;
  margin: 10px 0 24px;
  opacity: 0.8;
}

.about-body {
  margin: 0 0 32px;
  font-family: var(--font-main);
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 2;
  color: var(--color-text);
}

.about-body-break-mobile {
  display: none;
}

@media (max-width: 640px) {
  .about-body-break-mobile {
    display: inline;
  }
}

/* 教室について:箇条書きのポイントカード */
.about-points {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(147, 122, 199, 0.08);
  text-align: left;
}

.about-point-number {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-lavender), var(--color-lavender-deep));
  color: #FFFFFF;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 14px;
}

.about-point-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-point-title {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--color-copy);
}

.about-point-body {
  font-family: var(--font-main);
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text);
}

.about-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: 1.5px solid var(--color-lavender-deep);
  border-radius: 999px;
  color: var(--color-text);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.about-cta:hover {
  background-color: var(--color-lavender);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.about-cta-arrow {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.about-cta:hover .about-cta-arrow {
  transform: translateX(4px);
}

/* スクロールで表示されたらフェードイン(JSでintersecting時に.about-innerへis-visibleを付与) */
.about-text-head > *,
.about-text-body > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.about-inner.is-visible .about-text-head > *,
.about-inner.is-visible .about-text-body > * {
  opacity: 1;
  transform: translateY(0);
}

.about-text-head > *:nth-child(1) { transition-delay: 0s; }
.about-text-head > *:nth-child(2) { transition-delay: 0.1s; }
.about-text-head > *:nth-child(3) { transition-delay: 0.2s; }
.about-text-body > *:nth-child(1) { transition-delay: 0.3s; }
.about-text-body > *:nth-child(2) { transition-delay: 0.4s; }

/* 見出しはフェードアップではなく、タイピング風にクリップを広げて表示する。
   ※クリップされる要素自体をスクロール検知(IntersectionObserver)の対象にすると、
   要素が完全に隠れている間は交差判定されずアニメーションが発火しないため、
   検知対象(.about-inner)は隠さず、内側のspan(.type-in)側だけをクリップする。 */
.about-heading {
  opacity: 1;
  transform: none;
}

.about-text-head .type-in {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s steps(6, end);
}

.about-inner.is-visible .about-text-head .type-in {
  clip-path: inset(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
  .about-text-head > *,
  .about-text-body > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .about-text-head .type-in {
    clip-path: none;
  }
}

.about-photo {
  grid-area: photo;
  position: relative;
  aspect-ratio: 1 / 1;
}

.about-photo-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92%;
  height: 92%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 4px 10px rgba(78, 67, 88, 0.22),
    0 20px 40px rgba(78, 67, 88, 0.2);
}

.about-photo-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (max-width: 900px) {
  .about-inner,
  .teacher .about-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "photo"
      "body";
    text-align: center;
    padding-left: clamp(20px, 8vw, 64px);
    padding-right: clamp(20px, 8vw, 64px);
    /* 見出し・区切り線を寄せたいので、行全体のgapは詰めて、
       グループ間の余白は写真・文言側のmargin-topで個別に確保する */
    row-gap: 4px;
  }

  .about-photo {
    width: min(320px, 80%);
    margin: 20px auto 0;
  }

  .about-text-body {
    margin-top: 20px;
  }

  .about-heading-divider {
    margin-left: auto;
    margin-right: auto;
  }

  .about-cta {
    margin: 0 auto;
  }
}

/* ==========================================================
   講師紹介
   「教室について」と同じ見た目(.about-*クラス)を流用し、
   HTML側で写真とテキストの順序を入れ替えて左右対称にしている
   ========================================================== */

.teacher {
  position: relative;
  background-color: var(--color-cream);
  padding: clamp(56px, 9vw, 120px) 0;
}

/* 講師の写真だけ、少し引き気味・顔まわりが見えるよう上寄りにトリミング */
.teacher .about-photo-image {
  width: 84%;
  height: 84%;
  object-position: center 15%;
}

/* ==========================================================
   コース紹介
   ========================================================== */

.courses {
  position: relative;
  background-color: var(--color-lavender-pale);
  background-image: url("assets/courses-bg-2.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: clamp(72px, 10vw, 140px) clamp(20px, 5vw, 64px) clamp(88px, 12vw, 150px);
}

/* 上下の波形(スキャロップ)の区切り。前後のセクションと同じ生成り色を波状に重ねる。
   同じ形の繰り返しではなく、1本の不規則な波パスをセクション幅いっぱいに伸ばして表示する */
.courses::before,
.courses::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 36px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

.courses::before {
  top: 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201200%2036'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0,18%20C200,4%20400,32%20600,18%20C800,4%201000,32%201200,18%20L1200,0%20L0,0%20Z'%20fill='%23FAF5EC'/%3E%3C/svg%3E");
}

.courses::after {
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201200%2036'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0,18%20C200,32%20400,4%20600,18%20C800,32%201000,4%201200,18%20L1200,36%20L0,36%20Z'%20fill='%23FAF5EC'/%3E%3C/svg%3E");
}

.courses-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.courses-heading {
  margin: 0;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 32px);
  color: var(--color-copy);
}

.courses-heading .type-in {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s steps(5, end);
}

.courses-heading.is-visible .type-in {
  clip-path: inset(0 0 0 0);
}

.courses-heading-divider {
  width: 70px;
  height: auto;
  margin: 10px auto clamp(32px, 5vw, 56px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.1s, transform 0.7s ease 0.1s;
}

.courses-heading-divider.is-visible {
  opacity: 0.8;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .courses-heading .type-in {
    clip-path: none;
    transition: none;
  }

  .courses-heading-divider {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .courses-heading-divider {
    opacity: 0.8;
  }
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

.course-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: clamp(24px, 3vw, 32px) clamp(16px, 2vw, 20px);
  background-color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(147, 122, 199, 0.1);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.course-card.is-visible {
  opacity: 1;
  transform: scale(1);
}

.course-card:nth-child(1) { transition-delay: 0s; }
.course-card:nth-child(2) { transition-delay: 0.15s; }
.course-card:nth-child(3) { transition-delay: 0.3s; }
.course-card:nth-child(4) { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  .course-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.course-card-icon {
  width: clamp(80px, 9vw, 110px);
  height: clamp(80px, 9vw, 110px);
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}

.course-card-title {
  min-width: 0;
  max-width: 100%;
  margin: 0 0 12px;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 17px;
  color: var(--color-lavender-deep);
}

.course-card-meta {
  min-width: 0;
  max-width: 100%;
  margin: 0 0 20px;
  font-family: var(--font-main);
  font-size: 13px;
  line-height: 1.9;
  color: var(--color-text);
}

.course-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin-top: auto;
  padding: 10px 24px;
  border: 1.5px solid var(--color-lavender-deep);
  border-radius: 999px;
  color: var(--color-text);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.course-card-cta:hover {
  background-color: var(--color-lavender);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.course-card-cta-arrow {
  font-size: 16px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.course-card-cta:hover .course-card-cta-arrow {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .courses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .course-card {
    padding: 20px 12px;
  }

  .course-card-cta {
    padding: 10px 16px;
    font-size: 12px;
  }
}

/* ==========================================================
   お知らせ・ブログ
   ========================================================== */

.news {
  position: relative;
  background-color: #FDEBF1;
  background-image: url("assets/よくある質問_背景.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: clamp(56px, 9vw, 120px) clamp(20px, 5vw, 64px);
}

/* 上下の波形(スキャロップ)の区切り。コース紹介と同じ手法で、
   前後(講師紹介・よくある質問)の生成り色を波状に重ねて滑らかに繋げる */
.news::before,
.news::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 36px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

.news::before {
  top: 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201200%2036'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0,18%20C200,4%20400,32%20600,18%20C800,4%201000,32%201200,18%20L1200,0%20L0,0%20Z'%20fill='%23FAF5EC'/%3E%3C/svg%3E");
}

.news::after {
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201200%2036'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0,18%20C200,32%20400,4%20600,18%20C800,32%201000,4%201200,18%20L1200,36%20L0,36%20Z'%20fill='%23FAF5EC'/%3E%3C/svg%3E");
}

.news-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.news-heading {
  margin: 0;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 32px);
  color: var(--color-copy);
}

.news-heading .type-in {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s steps(8, end);
}

.news-heading.is-visible .type-in {
  clip-path: inset(0 0 0 0);
}

.news-heading-divider {
  width: 70px;
  height: auto;
  margin: 10px auto clamp(32px, 5vw, 56px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.1s, transform 0.7s ease 0.1s;
}

.news-heading-divider.is-visible {
  opacity: 0.8;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .news-heading .type-in {
    clip-path: none;
    transition: none;
  }

  .news-heading-divider {
    opacity: 0.8;
    transform: none;
    transition: none;
  }
}

.news-list {
  list-style: none;
  margin: 0 0 clamp(32px, 4vw, 48px);
  padding: 0;
  text-align: left;
}

.news-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
  padding: clamp(16px, 2.5vw, 22px) 4px;
  border-bottom: 1px solid rgba(179, 160, 214, 0.25);
}

.news-item:first-child {
  border-top: 1px solid rgba(179, 160, 214, 0.25);
}

.news-date {
  flex: 0 0 auto;
  width: 100px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-lavender-deep);
}

.news-text {
  flex: 1 1 260px;
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text);
}

@media (max-width: 480px) {
  .news-item {
    flex-direction: column;
    gap: 4px;
  }

  .news-date {
    width: auto;
  }
}

/* ==========================================================
   よくある質問(FAQ)
   ========================================================== */

.faq {
  position: relative;
  background-color: var(--color-cream);
  padding: clamp(56px, 9vw, 120px) clamp(20px, 5vw, 64px);
}

.faq-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.faq-heading {
  margin: 0;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 32px);
  color: var(--color-copy);
}

.faq-heading .type-in {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s steps(8, end);
}

.faq-heading.is-visible .type-in {
  clip-path: inset(0 0 0 0);
}

.faq-heading-divider {
  width: 70px;
  height: auto;
  margin: 10px auto clamp(32px, 5vw, 56px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.1s, transform 0.7s ease 0.1s;
}

.faq-heading-divider.is-visible {
  opacity: 0.8;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .faq-heading .type-in {
    clip-path: none;
    transition: none;
  }

  .faq-heading-divider {
    opacity: 0.8;
    transform: none;
    transition: none;
  }
}

.faq-list {
  list-style: none;
  margin: 0 0 clamp(28px, 4vw, 40px);
  padding: 0;
  text-align: left;
}

.faq-item {
  background-color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  margin-bottom: 12px;
  padding: 0 clamp(18px, 3vw, 26px);
}

.faq-item-question {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(16px, 2.4vw, 20px) 0;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
}

.faq-item-question::-webkit-details-marker {
  display: none;
}

.faq-item-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--color-lavender);
  color: #FFFFFF;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 14px;
}

.faq-item-icon {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--color-lavender-deep);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-item-icon {
  transform: rotate(45deg);
}

.faq-item-answer {
  margin: 0;
  padding: 0 0 clamp(18px, 2.6vw, 24px) 42px;
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text);
}

/* 段落や箇条書きが複数になる回答向け(.faq-item-answerをdivとして使う場合) */
.faq-item-answer p,
.faq-item-answer ul {
  margin: 0 0 14px;
}

.faq-item-answer p:last-child,
.faq-item-answer ul:last-child {
  margin-bottom: 0;
}

.faq-item-answer ul {
  padding-left: 20px;
}

.faq-item-answer li {
  margin-bottom: 4px;
}

.faq-item-answer strong {
  font-weight: 700;
  color: var(--color-lavender-deep);
}

/* ==========================================================
   最終CTA(体験レッスンへの呼びかけ)
   背景・波形の区切りはコース紹介セクションと同じ見た目にしている
   ========================================================== */

.final-cta {
  position: relative;
  overflow: hidden;
  background-color: var(--color-lavender-pale);
  background-image: url("assets/courses-bg-2.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 64px);
}

.final-cta::before,
.final-cta::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 36px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

.final-cta::before {
  top: 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201200%2036'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0,18%20C200,4%20400,32%20600,18%20C800,4%201000,32%201200,18%20L1200,0%20L0,0%20Z'%20fill='%23FAF5EC'/%3E%3C/svg%3E");
}

.final-cta::after {
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201200%2036'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0,18%20C200,32%20400,4%20600,18%20C800,32%201000,4%201200,18%20L1200,36%20L0,36%20Z'%20fill='%23FAF5EC'/%3E%3C/svg%3E");
}

.final-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.final-cta-heading {
  margin: 0;
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(18px, 4.4vw, 32px);
  line-height: 1.6;
  color: #FFFFFF;
  overflow-wrap: break-word;
}

.final-cta-note {
  margin: clamp(12px, 2vw, 18px) 0 clamp(28px, 4vw, 40px);
  font-family: var(--font-main);
  font-size: clamp(14px, 1.5vw, 17px);
  color: #FFFFFF;
}

.final-cta .hero-cta {
  margin: 0 auto;
}

/* 右下の鍵盤・音符の装飾 */
.final-cta-decor {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(160px, 22vw, 280px);
  height: clamp(56px, 8vw, 90px);
  pointer-events: none;
  z-index: 0;
}

.final-cta-keys {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-image: url("assets/piano-band.png");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: auto 100%;
  border-top-left-radius: 18px;
  opacity: 0.9;
}

.final-cta-decor-note {
  position: absolute;
  width: clamp(28px, 3.6vw, 40px);
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(78, 67, 88, 0.15));
}

.final-cta-decor-note--1 {
  right: clamp(60px, 9vw, 120px);
  bottom: clamp(64px, 9vw, 104px);
  transform: rotate(-8deg);
}

.final-cta-decor-note--2 {
  right: clamp(10px, 2vw, 30px);
  bottom: clamp(86px, 11vw, 130px);
  transform: rotate(6deg);
}

@media (max-width: 640px) {
  .final-cta-decor {
    width: 130px;
    height: 48px;
  }

  .final-cta-decor-note {
    width: 24px;
  }
}

/* ==========================================================
   フッター
   ========================================================== */

.site-footer {
  position: relative;
  background-color: var(--color-cream);
  padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 64px) clamp(24px, 3vw, 32px);
}

.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.site-footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 40px;
}

.site-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.site-footer-logo {
  height: clamp(40px, 5vw, 52px);
  width: auto;
  display: block;
}

.site-footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px clamp(16px, 2.2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer-nav a {
  color: var(--color-text);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-footer-nav a:hover {
  color: var(--color-lavender-deep);
}

.site-footer-divider {
  margin: clamp(24px, 4vw, 36px) 0 clamp(20px, 3vw, 28px);
  height: 1px;
  background-color: rgba(78, 67, 88, 0.12);
}

.site-footer-bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.site-footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 6px clamp(16px, 2.2vw, 28px);
  margin: 0;
}

.site-footer-info p {
  margin: 0;
  font-family: var(--font-main);
  font-size: 13px;
  color: var(--color-text);
  white-space: nowrap;
}

.site-footer-sns {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer-sns-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #FFFFFF;
  background-color: var(--color-lavender-deep);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-footer-sns-link:hover {
  background-color: var(--color-lavender-pale);
  color: var(--color-lavender-deep);
  transform: translateY(-2px);
}

/* LINEはブランドアイコン(緑の角丸)をそのまま使うため、丸いバッジ背景は付けない */
.site-footer-sns-link--line {
  background-color: transparent;
}

.site-footer-sns-link--line:hover {
  background-color: transparent;
}

.site-footer-sns-link--line img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-footer-legal {
  margin: clamp(24px, 3vw, 32px) 0 0;
  font-family: var(--font-main);
  font-size: 12px;
  text-align: center;
}

.site-footer-legal a {
  color: var(--color-text);
  opacity: 0.7;
  text-decoration: underline;
}

.site-footer-legal a:hover {
  opacity: 1;
}

.site-footer-copyright {
  margin: 8px 0 0;
  font-family: var(--font-main);
  font-size: 11px;
  text-align: center;
  color: var(--color-text);
  opacity: 0.6;
}

.site-footer-copyright-break-mobile {
  display: none;
}

@media (max-width: 640px) {
  .site-footer-copyright-break-mobile {
    display: inline;
  }
}

.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-lavender), var(--color-pink-accent));
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(147, 122, 199, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(147, 122, 199, 0.45);
}

@media (max-width: 900px) {
  .site-footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer-brand {
    align-items: center;
  }

  .site-footer-nav ul {
    justify-content: center;
  }

  .site-footer-bottom-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer-info {
    justify-content: center;
  }
}

/* ==========================================================
   お問い合わせページ
   ========================================================== */

.contact-section {
  position: relative;
  background-color: var(--color-cream);
  padding: clamp(56px, 9vw, 120px) clamp(20px, 5vw, 64px) clamp(80px, 12vw, 140px);
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner .about-heading {
  margin: 0;
}

.contact-inner .about-heading-divider {
  margin: 10px auto 24px;
}

.contact-intro {
  margin: 0 0 clamp(32px, 5vw, 48px);
  font-family: var(--font-main);
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.9;
  color: var(--color-text);
}

.contact-lesson-info {
  margin: 0 0 clamp(40px, 6vw, 56px);
  padding: clamp(24px, 3vw, 32px);
  background-color: var(--color-lavender-pale);
  border-radius: 20px;
}

.contact-lesson-info-title {
  margin: 0 0 10px;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--color-copy);
}

.contact-lesson-info-body {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.8;
  color: var(--color-text);
}

.contact-success {
  padding: clamp(28px, 4vw, 40px) clamp(20px, 3vw, 32px);
  background-color: var(--color-lavender-pale);
  border-radius: 20px;
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text);
}

.contact-errors {
  margin: 0 0 24px;
  padding: 16px 24px;
  background-color: #FBEAEA;
  border: 1px solid #E5B4B4;
  border-radius: 12px;
  text-align: left;
}

.contact-errors ul {
  margin: 0;
  padding-left: 1.2em;
}

.contact-errors li {
  font-family: var(--font-main);
  font-size: 14px;
  color: #9B4444;
  line-height: 1.8;
}

.contact-form {
  text-align: left;
}

.contact-form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text);
}

.form-required {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background-color: var(--color-pink-accent);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.form-group-checkbox {
  margin-bottom: 28px;
}

.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
}

.form-checkbox {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--color-lavender-deep);
  cursor: pointer;
}

.form-checkbox-label a {
  color: var(--color-lavender-deep);
  text-decoration: underline;
}

.form-input {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(179, 160, 214, 0.4);
  border-radius: 12px;
  background-color: #FFFFFF;
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-lavender-deep);
  box-shadow: 0 0 0 3px rgba(179, 160, 214, 0.25);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%3E%3Cpath%20d='M5%208l5%205%205-5'%20fill='none'%20stroke='%234E4358'%20stroke-width='1.6'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form-submit {
  display: flex;
  width: fit-content;
  margin: 8px auto 0;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--color-lavender), var(--color-lavender-deep));
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(147, 122, 199, 0.35);
}

.contact-form-submit:hover {
  background: linear-gradient(135deg, var(--color-lavender), var(--color-lavender-deep));
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* ==========================================================
   詳細ページ共通:スクロールでフェードアップ表示
   (お問い合わせ/教室について/コース紹介/講師紹介の各詳細ページで使用。
   JS側は script.js の scrollFadeEls が .reveal-up も監視し、.is-visible を付与する)
   ========================================================== */

.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* 写真用:ふわっと拡大しながら現れる(教室について・講師紹介の写真で使用) */
.reveal-zoom {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal-zoom.is-visible {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-zoom {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================
   詳細ページ共通:文字が続いて読みづらい箇所の強調(太字・マーカー)
   ========================================================== */

.school-detail-block-body strong,
.school-detail-list strong,
.course-detail-body strong,
.course-detail-note strong,
.course-detail-point-body strong,
.course-detail-meta strong,
.contact-intro strong,
.contact-lesson-info-body strong {
  font-weight: 700;
  color: var(--color-lavender-deep);
}

/* ピンクベージュの背景(.school-detail-notice)の上ではラベンダーだと沈んで見づらいため、
   本文と同じ色のまま太字だけにする */
.school-detail-notice strong {
  font-weight: 700;
  color: inherit;
}

.marker {
  background: linear-gradient(to top, var(--color-lavender-pale) 48%, transparent 48%);
  padding: 0 2px;
}

.marker--pink {
  background: linear-gradient(to top, rgba(233, 201, 184, 0.55) 48%, transparent 48%);
}

/* ==========================================================
   教室について(詳細ページ)
   ========================================================== */

.school-detail-section {
  position: relative;
  background-color: var(--color-cream);
  padding: clamp(56px, 9vw, 120px) clamp(20px, 5vw, 64px) clamp(80px, 12vw, 140px);
}

.school-detail-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.school-detail-inner .about-heading {
  margin: 0;
}

.school-detail-inner .about-heading-divider {
  margin: 10px auto 32px;
}

.school-detail-photo-wrap {
  position: relative;
  width: min(280px, 65%);
  aspect-ratio: 1 / 1;
  margin: 0 auto clamp(40px, 6vw, 56px);
}

.school-detail-photo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92%;
  height: 92%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 4px 10px rgba(78, 67, 88, 0.22),
    0 20px 40px rgba(78, 67, 88, 0.2);
}

.school-detail-photo-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.school-detail-block {
  margin: 0 0 clamp(36px, 5vw, 48px);
  text-align: left;
}

.school-detail-block-title {
  margin: 0 0 14px;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--color-copy);
  border-left: 4px solid var(--color-lavender-deep);
  padding-left: 12px;
}

.school-detail-block-body {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.9;
  color: var(--color-text);
}

.school-detail-schedule {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(179, 160, 214, 0.25);
}

.school-detail-schedule li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(179, 160, 214, 0.25);
}

.school-detail-schedule-day {
  flex: 0 0 auto;
  min-width: 140px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-lavender-deep);
}

.school-detail-schedule-time {
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--color-text);
}

.school-detail-subtitle {
  margin: 24px 0 12px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text);
}

.school-detail-list {
  margin: 0 0 24px;
  padding-left: 1.4em;
}

.school-detail-list li {
  font-family: var(--font-main);
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.9;
  color: var(--color-text);
}

.school-detail-notice {
  padding: clamp(20px, 3vw, 28px);
  background-color: var(--color-pink-beige);
  border-radius: 16px;
}

.school-detail-notice p {
  margin: 0;
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text);
}

.school-detail-notice-icon {
  margin-right: 4px;
}

.school-detail-cta {
  margin: 0 auto;
}

/* ==========================================================
   コース紹介(詳細ページ)
   ========================================================== */

.courses-detail-section {
  position: relative;
  background-color: var(--color-cream);
  padding: clamp(56px, 9vw, 120px) clamp(20px, 5vw, 64px) clamp(80px, 12vw, 140px);
}

.courses-detail-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.courses-detail-inner .about-heading {
  margin: 0;
}

.courses-detail-inner .about-heading-divider {
  margin: 10px auto 24px;
}

.courses-detail-intro {
  margin: 0 0 clamp(28px, 4vw, 36px);
  font-family: var(--font-main);
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.9;
  color: var(--color-text);
}

.courses-detail-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 clamp(48px, 6vw, 64px);
}

.courses-detail-nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  background-color: var(--color-lavender-pale);
  color: var(--color-lavender-deep);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.courses-detail-nav a:hover {
  background-color: var(--color-lavender-deep);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.course-detail-block {
  margin: 0 0 clamp(56px, 7vw, 72px);
  padding: clamp(28px, 4vw, 40px);
  background-color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  text-align: left;
  scroll-margin-top: 100px;
}

.course-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
}

.course-detail-icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.course-detail-title {
  margin: 0;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: clamp(19px, 2.2vw, 24px);
  color: var(--color-lavender-deep);
}

.course-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.course-detail-meta li {
  padding: 6px 16px;
  border-radius: 999px;
  background-color: var(--color-cream);
  font-family: var(--font-main);
  font-size: 13px;
  color: var(--color-text);
}

.course-detail-price-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(179, 160, 214, 0.25);
}

.course-detail-price-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(179, 160, 214, 0.25);
}

.course-detail-price-label {
  flex: 0 0 auto;
  min-width: 60px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-lavender-deep);
}

.course-detail-price-value {
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--color-text);
}

.course-detail-note {
  margin: 0 0 20px;
  font-family: var(--font-main);
  font-size: 13px;
  color: var(--color-text);
  opacity: 0.8;
}

.course-detail-body {
  margin: 0 0 20px;
  font-family: var(--font-main);
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.9;
  color: var(--color-text);
}

.course-detail-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.course-detail-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background-color: var(--color-cream);
  border-radius: 16px;
}

.course-detail-point-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-lavender), var(--color-lavender-deep));
  color: #FFFFFF;
  font-size: 15px;
}

.course-detail-point-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.course-detail-point-title {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--color-copy);
}

.course-detail-point-body {
  font-family: var(--font-main);
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text);
}

/* ==========================================================
   講師紹介(詳細ページ)
   ========================================================== */

.teacher-detail-photo-wrap {
  position: relative;
  width: min(260px, 60%);
  aspect-ratio: 1 / 1;
  margin: 0 auto clamp(16px, 2vw, 20px);
}

.teacher-detail-photo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92%;
  height: 92%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 4px 10px rgba(78, 67, 88, 0.22),
    0 20px 40px rgba(78, 67, 88, 0.2);
}

.teacher-detail-photo-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.teacher-detail-name {
  margin: 0 0 clamp(40px, 6vw, 56px);
  text-align: center;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--color-copy);
}
