/* =========================================================
   TOP ページ（2026-11 リデザイン）
   確定版デザイン（PC 1440 / スマホ 390 のボード）の値を写している。
   1024px 以上が PC の組み、1023px 以下はスマホの組み（タブレットは中央 680px 幅）。
   読み込みは index.php の $extraStyles だけ（下層ページには効かない）。
   ========================================================= */

.page-top main {
  --tp-gutter: 40px;
  overflow-x: clip;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 2;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.page-top main h1,
.page-top main h2,
.page-top main h3 { color: inherit; font-weight: 700; }

.tp-pc-only { display: inline; }
.tp-sp-only { display: none; }
.tp-br-sp { display: none; }

/* -------------------------------------------------
   ボタン・リンク・札
------------------------------------------------- */
.tp-pill {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  height: 60px;
  padding: 0 10px 0 30px;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}
.tp-pill:hover { opacity: 0.9; }
.tp-pill--white { background: #fff; color: var(--ink); }
.tp-pill--blue { background: var(--blue); color: #fff; box-shadow: 0 3px 0 var(--cta-blue-edge); }
.tp-pill__arrow {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.tp-pill__arrow svg { width: 14px; height: 14px; }
.tp-pill__arrow--blue { background: var(--blue); color: #fff; }
.tp-pill__arrow--green { background: var(--green); color: #fff; }
.tp-pill__arrow--ink { background: var(--ink); color: #fff; }
.tp-pill__arrow--white { background: #fff; color: var(--blue-ink); }

.tp-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.tp-link:hover { opacity: 0.85; }
.tp-link__arrow {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.tp-link__arrow svg { width: 14px; height: 14px; }
.tp-link__arrow--blue { background: var(--blue); color: #fff; }
.tp-link__arrow--orange { background: var(--orange); color: var(--ink); }
.tp-link__arrow--ink { background: var(--ink); color: #fff; }

.tp-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; line-height: 1.6; }
.tp-meta time {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
/* 札。地は淡色、文字は同じ色相の濃い色（どれも白地で 4.5:1 以上） */
.tp-tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.tp-tag--blue { background: #e3eef8; color: #285f8f; }
.tp-tag--green { background: #e6f2e5; color: #2f7a2d; }
.tp-tag--orange { background: #fdebd3; color: #965000; }
.tp-tag--yellow { background: #fdf2c6; color: #745400; }
.tp-tag--red { background: #fbe4e2; color: #b0322c; }

/* -------------------------------------------------
   ヒーロー（includes/hero.php）
   PC は文字（左上）・ボタン（左下）・写真（右）・操作（写真の下）を重ねる。
------------------------------------------------- */
.hero {
  --hero-left: max(40px, calc((100% - 1120px) / 2));
  position: relative;
  display: block;
  height: 776px;
  min-height: 0; /* style.css に残る旧ヒーローの min-height: 92vh を打ち消す */
  overflow: hidden;
  background: var(--cream);
}
.hero__waves--pc { position: absolute; left: 0; top: 386px; display: block; width: 100%; height: 460px; }
.hero__waves--sp { display: none; }

.hero__copies { position: absolute; left: var(--hero-left); top: 40px; width: 500px; height: 326px; }
/* 文字の入れ替え。下揃えにして、どのスライドでもボタンまでの間隔を同じにする */
.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}
.hero-copy.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.hero-copy__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue-ink);
  white-space: nowrap;
}
.hero-copy__eyebrow img { flex: none; width: 32px; height: auto; }
.hero-copy__title { margin: 16px 0 0; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.hero-line { display: block; }
.hero-line--lg { font-size: 50px; line-height: 1.3; }
.hero-line--sm { font-size: 24px; line-height: 1.45; }
.hero-line--gap { margin-top: 4px; }
.hero-line--gap-lg { margin-top: 8px; }
.hero-line.ls-0 { letter-spacing: 0; }
.hero-line.ls-n3 { letter-spacing: -0.03em; }
.hero-line.ls-n5 { letter-spacing: -0.05em; }
/* 約物の詰め（Zen Kaku Gothic New は palt で詰まらないため手で詰める） */
.kern-open { margin-left: -0.5em; }
.kern-open2 { margin-left: -0.2em; }
.kern-close { letter-spacing: -0.4em; }
.kern-mid { margin: 0 -0.15em; }
.kern-ya { margin: 0 -0.05em; }
.hero-copy__title .num { font-family: var(--font-en); font-weight: 600; }
.hero-copy__desc { margin: 20px 0 0; font-size: 16px; line-height: 1.8; letter-spacing: 0.02em; white-space: nowrap; }
.hero-copy__desc--sp { display: none; }

.hero__media { position: absolute; left: calc(var(--hero-left) + 550px); right: 0; top: 40px; }
.hero__strip { overflow: hidden; border-radius: 36px 0 0 36px; }
.hero__track {
  display: flex;
  gap: 24px;
  width: max-content;
  transition: transform 0.6s cubic-bezier(0.45, 0.05, 0.25, 1);
}
.hero__track.is-jump { transition: none; }
.hero__photo {
  flex: none;
  width: 640px;
  height: 660px;
  overflow: hidden;
  border-radius: 36px;
  background: var(--pale-blue-2);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos-pc); }

/* 操作（棒・前後・一時停止）。PC は写真の下の青い面に置く */
.hero__controls {
  position: absolute;
  z-index: 2;
  left: calc(var(--hero-left) + 550px);
  top: 712px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(640px, calc(100% - var(--hero-left) - 574px));
  height: 30px;
  color: #fff;
}
.hero__bars { display: flex; gap: 5px; }
.hero__bar {
  position: relative;
  width: 28px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
}
.hero__bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.38);
  transition: background 0.3s ease;
}
.hero__bar.is-active::before { background: #fff; }
.hero__buttons { display: flex; gap: 8px; }
.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  transition: background 0.15s ease;
}
.hero__btn:hover { background: rgba(255, 255, 255, 0.16); }
/* 一時停止（2 本線）と再生（三角）。data-paused は top.js が付ける */
.hero__pause-icon { position: relative; display: block; width: 8px; height: 10px; }
.hero__pause-icon::before,
.hero__pause-icon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 2.5px;
  height: 10px;
  border-radius: 1px;
  background: #fff;
}
.hero__pause-icon::before { left: 0; }
.hero__pause-icon::after { right: 0; }
.hero[data-paused] .hero__pause-icon::before {
  left: 1px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #fff;
  border-radius: 0;
  background: none;
}
.hero[data-paused] .hero__pause-icon::after { display: none; }

/* ボタン。FC 募集のスライドだけ緑のボタンに替え、校舎リンクを隠す */
.hero__cta { position: absolute; z-index: 2; left: var(--hero-left); top: 398px; width: 500px; height: 72px; }
.hero-btn {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  height: 68px;
  padding: 0 12px 0 36px;
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.hero-btn--trial { background: var(--yellow); color: var(--ink); box-shadow: 0 4px 0 var(--cta-warm-edge); }
.hero-btn--fc { background: var(--green); color: #fff; box-shadow: 0 4px 0 var(--cta-green-edge); }
.hero-btn__arrow {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
}
.hero-btn--fc .hero-btn__arrow { color: var(--green-ink); }
.hero-school {
  position: absolute;
  left: 293px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.hero-school__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}
.hero-school__arrow svg { width: 13px; height: 13px; }
.hero [data-hero-cta] { transition: opacity 0.3s ease, visibility 0s linear 0s; }
.hero [data-hero-cta="fc"],
.hero.is-fc [data-hero-cta="trial"] {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.hero.is-fc [data-hero-cta="fc"] { opacity: 1; visibility: visible; transition-delay: 0s; }

/* -------------------------------------------------
   新着情報（見出しをヒーローの青い面へ食い込ませる）
------------------------------------------------- */
.tp-news { position: relative; padding: 1px 0 56px; background: var(--blue); color: #fff; }
.tp-news__head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: -32px;
}
.tp-news .tp-pill { box-shadow: 0 3px 0 #2a6a9f; }
.tp-news__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.tp-news__card {
  display: block;
  height: 100%;
  padding: 14px 14px 24px;
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  transition: opacity 0.15s ease;
}
.tp-news__card:hover { opacity: 0.9; }
.tp-news__card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.tp-news__card .tp-meta { margin-top: 16px; padding: 0 6px; }
.tp-news__title {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 10px;
  padding: 0 6px;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 700;
  letter-spacing: 0.04em;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* -------------------------------------------------
   コース（COURSE ROADMAP）
   STEP 1 → STEP 2 → STEP 3（実践／AIエージェント）。STEP 3 はどちらへ進んでもよいので縦に積む。
------------------------------------------------- */
.tp-course { padding: 24px 0 88px; background: var(--green); color: #fff; }
.tp-course__head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.tp-course .tp-title { margin-top: 18px; line-height: 1.6; }
.tp-course__lead { margin: 10px 0 0; font-size: 19px; line-height: 1.8; font-weight: 700; letter-spacing: 0.06em; }
.tp-roadmap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr) 52px minmax(0, 1.85fr);
  margin-top: 48px;
  color: var(--ink);
}
.tp-roadmap__arrow { display: flex; align-items: center; justify-content: center; }
.tp-roadmap__arrow > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--green-ink);
}
.tp-roadmap__arrow svg { width: 14px; height: 14px; }
.tp-roadmap__branch { display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; min-width: 0; }
.tp-card-course {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  transition: opacity 0.15s ease;
}
.tp-card-course:hover { opacity: 0.92; }
.tp-card-course__img { position: relative; display: block; flex: 1 1 0; min-height: 180px; overflow: hidden; }
.tp-card-course__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tp-card-course__body { display: block; padding: 18px 20px 22px; }
.tp-card-course__step {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 22px;
  font-family: var(--font-en);
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--green-ink);
}
.tp-card-course__new {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.tp-card-course__name {
  margin: 6px 0 0;
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  font-feature-settings: 'palt';
  white-space: nowrap;
}
.tp-card-course__grade {
  display: block;
  margin-top: 2px;
  font-size: 14.5px;
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.tp-card-course__desc { display: block; margin-top: 10px; font-size: 15px; line-height: 1.85; letter-spacing: 0.02em; }
/* STEP 3 は写真を左に置いた横長 */
.tp-card-course--branch { display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.tp-card-course--branch .tp-card-course__img { min-height: 0; }
.tp-card-course--branch .tp-card-course__body { align-self: center; padding: 18px 20px 18px 22px; }
.tp-card-course--branch .tp-card-course__step { height: 24px; }
.tp-card-course--branch .tp-card-course__name { margin-top: 4px; letter-spacing: 0; }
.tp-card-course--branch .tp-card-course__desc { margin-top: 8px; line-height: 1.75; }
.tp-card-course--zoom .tp-card-course__img img { object-position: 0% 50%; transform: scale(1.22); transform-origin: 0% 0%; }
.tp-card-course--dark { background: var(--charcoal); color: #fff; }
.tp-card-course--dark .tp-card-course__step { color: var(--yellow); }
.tp-card-course--dark .tp-card-course__grade { color: #e6e8ea; }
.tp-card-course--dark .tp-card-course__img img { object-position: 40% 50%; }
/* ロゴを並べた画像（ベーシックコース）。枠の縦横比が画面幅で大きく変わるので、切り抜かずに収め、
   余白は画像の地と同じ色で埋める（画像の地も --pale-green） */
.tp-card-course--contain .tp-card-course__img { background: var(--pale-green); }
.tp-card-course--contain .tp-card-course__img img { object-fit: contain; }
.tp-course__more { display: flex; justify-content: center; margin: 44px 0 0; }
.tp-course .tp-pill { padding-left: 32px; box-shadow: 0 3px 0 var(--cta-green-edge); }

/* -------------------------------------------------
   作品（WORKS）。クラス名を添えて横に流す
------------------------------------------------- */
.tp-works { padding: 16px 0 24px; }
.tp-works__rail {
  gap: 20px;
  margin-top: 32px;
  padding: 0 40px 6px max(40px, calc((100% - 1120px) / 2));
  scroll-padding-left: max(40px, calc((100% - 1120px) / 2));
}
.tp-work { width: 320px; }
.tp-work a { display: block; }
.tp-work a:hover { opacity: 0.9; }
.tp-work img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.tp-work__class {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green-ink);
}
.tp-work__title { display: block; margin-top: 2px; font-size: 17px; line-height: 1.55; font-weight: 700; letter-spacing: 0.02em; }

/* -------------------------------------------------
   紹介動画（押すまで YouTube を読み込まない。js/top.js）
------------------------------------------------- */
.tp-movie { padding: 72px 0; }
.tp-movie__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.tp-movie__player { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 24px; background: #1d1f20; }
.tp-movie__player > img { width: 100%; height: 100%; object-fit: cover; }
.tp-movie__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tp-movie__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--cta-warm-edge);
  transition: transform 0.15s ease;
}
.tp-movie__play:hover { transform: scale(1.04); }
.tp-movie__play svg { margin-left: 4px; }
.tp-movie__text { min-width: 0; }
.tp-movie__text .tp-en { display: flex; align-items: baseline; gap: 14px; }
.tp-movie__time { font-weight: 500; letter-spacing: 0.06em; color: var(--ink-soft); }
.tp-movie__lead { margin: 10px 0 0; font-size: 15px; line-height: 2; }
.tp-movie__chapters { margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid #e6dfd0; }
.tp-movie__chapters li { border-bottom: 1px solid #e6dfd0; }
.tp-movie__chapters a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  padding: 13px 2px;
  line-height: 1.6;
}
.tp-movie__chapters a:hover .tp-movie__label { color: var(--blue-ink); }
.tp-movie__q { font-family: var(--font-en); font-size: 15px; font-weight: 600; color: var(--blue-ink); }
.tp-movie__label { font-size: 16px; font-weight: 700; transition: color 0.15s ease; }
.tp-movie__at { font-family: var(--font-en); font-size: 13.5px; font-weight: 500; color: var(--ink-soft); }

/* -------------------------------------------------
   Instagram（includes/top-instagram.php。登録した校舎の投稿があるときだけ出る）
   輪とアプリアイコンだけはブランド6色の外（Instagram の配色）。
------------------------------------------------- */
.tp-insta { padding: 32px 0 64px; background: var(--pale-blue); }
.tp-insta__inner { display: flex; align-items: center; gap: 32px; padding-left: max(40px, calc((100% - 1120px) / 2)); }
.tp-insta__head { flex: none; width: 300px; }
.tp-insta__en { display: flex; align-items: center; gap: 10px; color: #285f8f; }
.tp-insta__app {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.tp-insta__more { margin: 24px 0 0; }
.tp-insta__more--sp { display: none; }
.tp-insta__rail-wrap { position: relative; flex: 1; min-width: 0; }
.tp-insta__rail { gap: 20px; padding: 0 40px 6px 0; }
.tp-insta__card { width: 268px; }
.tp-insta__card a { display: block; overflow: hidden; border-radius: 20px; background: #fff; }
.tp-insta__account { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.tp-insta__ring {
  display: block;
  flex: none;
  width: 38px;
  height: 38px;
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(45deg, #fdc468 0%, #f09433 22%, #e6683c 42%, #dc2743 60%, #cc2366 80%, #bc1888 100%);
}
.tp-insta__ring > span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; background: #fff; }
.tp-insta__ring img { width: auto; height: 20px; }
.tp-insta__name { display: block; min-width: 0; }
.tp-insta__name > span:first-child {
  display: block;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tp-insta__area { display: block; font-size: 12px; line-height: 1.4; letter-spacing: 0.02em; color: var(--ink-soft); }
.tp-insta__media { position: relative; display: block; }
.tp-insta__photo { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
/* 動画（リール）の印。写真の上でも読めるよう、薄い影だけ付ける */
.tp-insta__video { position: absolute; top: 10px; right: 10px; display: flex; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45)); }
.tp-insta__actions { display: flex; align-items: center; gap: 14px; padding: 11px 14px 12px; color: var(--ink-strong); }
/* 本文の冒頭。2 行で切り、本文の無い投稿でも 2 行ぶんの高さを取ってカードをそろえる */
.tp-insta__text {
  display: -webkit-box;
  min-height: calc(1.7em * 2);
  margin: -2px 14px 14px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.tp-insta__save { margin-left: auto; }
/* いいね・コメントの数（取り込んだ時点の値） */
.tp-insta__stat { display: inline-flex; align-items: center; gap: 5px; }
.tp-insta__num { font-family: var(--font-en); font-size: 14px; font-weight: 600; line-height: 1; }
/* 前後のボタン。送れない向きのものは隠す（Instagram の投稿の送りと同じ。端に来ると main.js が disabled にする） */
.tp-insta__nav {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: -25px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink-strong);
  transition: opacity 0.15s ease, visibility 0.15s ease;
}
.tp-insta__nav--prev { left: 20px; }
.tp-insta__nav--next { right: 20px; }
.tp-insta__nav:disabled { opacity: 0; visibility: hidden; }

/* -------------------------------------------------
   校舎（都道府県から探す ＋ NEW OPEN!）
------------------------------------------------- */
.tp-school { padding: 24px 0 88px; background: var(--orange); }
.tp-school__panel { border-radius: 32px; background: #fff; }
.tp-school__panel--search { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px 56px; padding: 56px; }
.tp-school .tp-title { line-height: 1.6; }
.tp-school__lead { margin: 14px 0 0; font-size: 15px; line-height: 1.9; }
.tp-school__near { margin-top: 26px; }
.tp-school__h3 { margin: 0; font-size: 20px; line-height: 1.5; letter-spacing: 0.04em; }
.tp-school__regions { margin: 14px 0 0; padding: 0; }
.tp-school__region {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--hair);
}
.tp-school__region:last-child { border-bottom: 1px solid var(--hair); }
.tp-school__region dt { font-size: 15px; line-height: 1.5; font-weight: 700; color: var(--ink-soft); }
.tp-school__region dd { margin: 0; }
.tp-school__region ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tp-school__region a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--pale-blue);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  transition: background 0.15s ease;
}
.tp-school__region a:hover { background: var(--pale-blue-2); }
.tp-school__count { font-size: 13px; font-weight: 700; color: var(--blue-ink); white-space: nowrap; }
.tp-school__all { margin: 18px 0 0; }
.tp-school__panel--new { margin-top: 24px; padding: 44px 56px 48px; }
.tp-school__new-title {
  margin: 0;
  font-family: var(--font-en);
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--orange-ink);
}
.tp-school__new-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 20px; }
.tp-school__new-list a { display: block; }
.tp-school__new-list a:hover { opacity: 0.9; }
.tp-school__new-list img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; }
.tp-school__new-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 16px;
  line-height: 1.6;
}
.tp-school__new-name { font-size: 18px; font-weight: 700; letter-spacing: 0.06em; }
.tp-school__new-opened { font-size: 13px; font-weight: 700; color: var(--orange-ink); }
.tp-school__new-note { grid-column: 1 / -1; font-size: 14px; line-height: 1.8; color: var(--ink-soft); }

/* -------------------------------------------------
   無料体験の流れ
------------------------------------------------- */
.tp-flow { padding: 88px 0 56px; }
.tp-flow__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
/* 写真の中心を結ぶ線 */
.tp-flow__steps::before {
  content: "";
  position: absolute;
  top: 119px;
  left: 17%;
  right: 17%;
  border-top: 2px solid #c3d9ec;
}
.tp-flow__steps li { position: relative; display: flex; flex-direction: column; align-items: center; }
.tp-flow__steps img { width: 240px; height: 240px; object-fit: cover; border: 8px solid var(--cream); border-radius: 50%; }
.tp-flow__label {
  margin: 18px 0 0;
  font-family: var(--font-en);
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--blue-ink);
}
.tp-flow__label--text { font-family: var(--font-ja); font-weight: 700; letter-spacing: 0.06em; }
.tp-flow__title { margin: 12px 0 0; font-size: 21px; line-height: 1.6; letter-spacing: 0.06em; }
.tp-flow__text { margin: 6px 0 0; font-size: 15px; line-height: 1.9; }
.tp-flow__note { margin: 40px 0 0; font-size: 15.5px; line-height: 1.9; text-align: center; }
.tp-flow__note a { font-weight: 700; color: var(--blue-ink); text-decoration: underline; text-underline-offset: 5px; }

/* -------------------------------------------------
   ICTノート（コラム）。左に大きく 1 本、右に 3 本
------------------------------------------------- */
.tp-note { padding: 28px 0 88px; background: var(--yellow); }
.tp-note__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }
.tp-note__lead { margin: 10px 0 0; font-size: 16px; line-height: 2; }
.tp-pill--on-yellow { box-shadow: 0 3px 0 var(--cta-warm-edge); }
.tp-note__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.tp-note__main { display: block; min-width: 0; padding: 20px 20px 36px; border-radius: 28px; background: #fff; }
.tp-note__main:hover { opacity: 0.95; }
.tp-note__main-img { position: relative; display: block; }
.tp-note__main-img img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; }
/* 写真の右下を白く欠いて矢印を置く（欠けの内側の角は放射グラデーションで丸める） */
.tp-note__corner { position: absolute; right: 0; bottom: 0; width: 76px; height: 76px; border-radius: 20px 0 0 0; background: #fff; }
.tp-note__corner::before,
.tp-note__corner::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle at 0 0, transparent 20px, #fff 20.5px);
}
.tp-note__corner::before { right: 0; bottom: 100%; }
.tp-note__corner::after { right: 100%; bottom: 0; }
.tp-note__corner-btn {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
}
.tp-note__corner-btn svg { width: 18px; height: 18px; }
.tp-note__main-body { display: block; padding: 26px 16px 0; }
.tp-note__main-title {
  margin: 12px 0 0;
  font-size: 25px;
  line-height: 1.65;
  letter-spacing: 0.04em;
  font-feature-settings: 'palt';
  word-break: auto-phrase;
}
.tp-note__excerpt { display: block; margin-top: 12px; font-size: 15px; line-height: 2; color: var(--ink-soft); }
.tp-note__list { display: grid; grid-auto-rows: minmax(0, 1fr); gap: 20px; min-width: 0; }
.tp-note__item a {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  height: 100%;
  padding: 16px 28px 16px 16px;
  border-radius: 24px;
  background: #fff;
}
.tp-note__item a:hover { opacity: 0.92; }
.tp-note__thumb { position: relative; display: block; align-self: stretch; min-height: 132px; }
.tp-note__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.tp-note__item-body { display: block; min-width: 0; }
.tp-note__item-title {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 8px;
  font-size: 16.5px;
  line-height: 1.75;
  font-weight: 700;
  letter-spacing: 0.04em;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.tp-note__all-sp { display: none; }

/* -------------------------------------------------
   選ばれる理由。写真の右上を欠いて縦書きの札を置く
------------------------------------------------- */
.tp-reason { padding: 72px 0 48px; }
.tp-reason__head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.tp-reason .tp-title { line-height: 1.6; }
.tp-reason__list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 56px 40px;
  max-width: 1200px;
  margin: 56px auto 0;
  padding: 0 40px;
  overflow: visible;
  scroll-snap-type: none;
}
.tp-reason__item { grid-column: span 2; }
.tp-reason__item--wide { grid-column: span 3; }
.tp-reason__item figure { margin: 0; }
.tp-reason__img { position: relative; }
.tp-reason__img img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 24px; }
.tp-reason__item--wide .tp-reason__img img { aspect-ratio: 16 / 11; }
.tp-reason__label {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  padding: 20px 16px 24px 18px;
  border-radius: 0 0 0 20px;
  background: var(--cream);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
}
.tp-reason__label::before,
.tp-reason__label::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle at 0 100%, transparent 20px, var(--cream) 20.5px);
}
.tp-reason__label::before { top: 0; right: 100%; }
.tp-reason__label::after { top: 100%; right: 0; }
.tp-tcy { text-combine-upright: all; }
.tp-reason figcaption { margin-top: 20px; font-size: 15.5px; line-height: 2; }

/* -------------------------------------------------
   無料体験（最後の CTA）
------------------------------------------------- */
.tp-cta { padding: 32px 0 104px; background: var(--blue); color: #fff; }
.tp-cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "text photo" "actions photo";
  column-gap: 72px;
}
.tp-cta__text { grid-area: text; align-self: end; }
.tp-cta__title { margin: 20px 0 0; font-size: 40px; line-height: 1.65; letter-spacing: 0.06em; font-feature-settings: 'palt'; }
.tp-cta__lead { margin: 14px 0 0; font-size: 19px; line-height: 1.8; font-weight: 700; letter-spacing: 0.06em; }
.tp-cta__photo { grid-area: photo; align-self: center; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; }
.tp-cta__actions { grid-area: actions; align-self: start; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 40px; }
.tp-btn-trial {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  height: 68px;
  padding: 0 12px 0 36px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 0 var(--cta-warm-edge);
}
.tp-btn-trial:hover { opacity: 0.92; }
.tp-btn-trial__arrow {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
}
.tp-cta__school { display: inline-flex; align-items: center; gap: 12px; font-size: 19px; line-height: 1.4; font-weight: 700; letter-spacing: 0.06em; }
.tp-cta__school:hover { opacity: 0.88; }
.tp-cta__school-arrow {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue-ink);
}
.tp-cta__school-arrow svg { width: 14px; height: 14px; }

/* =========================================================
   1024〜1199px（PC の組みのまま、幅の足りない所だけ詰める）
   ========================================================= */
@media (max-width: 1199px) {
  .tp-card-course__name { font-size: 19px; }
  .tp-card-course__desc { font-size: 14px; }
  .tp-card-course__desc br { display: none; }
  .tp-school__region ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =========================================================
   1023px 以下：スマホのボードの組み。
   タブレットは中央 680px の列にして、横に流す列だけ画面幅いっぱいに使う。
   ========================================================= */
@media (max-width: 1023px) {
  .page-top main {
    --tp-gutter: max(40px, calc((100vw - 680px) / 2));
    font-size: 15px;
    line-height: 1.95;
  }
  .tp-pc-only { display: none; }
  .tp-sp-only { display: inline; }
  .tp-br-sp { display: inline; }
  .tp-meta { gap: 8px; font-size: 11.5px; }
  .tp-meta time { font-size: 12px; letter-spacing: 0; }
  .tp-tag { height: 22px; padding: 0 10px; letter-spacing: 0.04em; }
  .tp-link__arrow { width: 32px; height: 32px; }
  .tp-link__arrow svg { width: 13px; height: 13px; }

  /* ヒーロー：文字 → 写真 → 青い帯（操作・ボタン）の順に積む */
  .hero { --hero-photo-w: min(calc(100vw - var(--tp-gutter) - 44px), 560px); height: auto; }
  .hero__waves--pc { display: none; }
  .hero__copies { position: relative; left: auto; top: auto; width: auto; height: 196px; margin: 14px var(--tp-gutter) 0; }
  .hero-copy__eyebrow { gap: 8px; font-size: 12.5px; letter-spacing: 0.02em; }
  .hero-copy__eyebrow img { width: 26px; }
  .hero-copy__title { margin-top: 8px; }
  .hero-line--lg { font-size: min(32px, 8.2vw); line-height: 1.32; }
  .hero-line--sm { font-size: min(16.5px, 4.25vw); line-height: 1.5; }
  .hero-line--gap { margin-top: 1px; }
  .hero-line--gap-lg { margin-top: 4px; }
  .hero-copy__desc { margin-top: 8px; font-size: 14px; line-height: 1.7; white-space: normal; }
  .hero-copy__desc--pc { display: none; }
  .hero-copy__desc--sp { display: block; }
  .hero__media { position: relative; left: auto; right: auto; top: auto; margin-top: 14px; }
  .hero__waves--sp { position: absolute; left: 0; bottom: 0; display: block; width: 100%; height: 210px; }
  .hero__strip { position: relative; z-index: 1; padding: 0 0 12px var(--tp-gutter); border-radius: 0; }
  .hero__track { gap: 12px; }
  .hero__photo { width: var(--hero-photo-w); height: calc(var(--hero-photo-w) * 250 / 326); border-radius: 28px; }
  .hero__photo img { object-position: var(--pos-sp); }
  .hero__band { position: relative; padding: 0 var(--tp-gutter) 8px; background: var(--blue); }
  .hero__controls { position: static; width: var(--hero-photo-w); height: 24px; margin-bottom: 12px; }
  .hero__bars { gap: 3px; }
  .hero__bar { width: 12px; }
  .hero__btn--prev,
  .hero__btn--next { display: none; }
  .hero__btn { width: 24px; height: 24px; border-width: 1px; }
  .hero__pause-icon { transform: scale(0.8); }
  .hero__cta { position: relative; left: auto; top: auto; width: auto; height: auto; }
  .hero-btn {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 64px;
    padding: 0 10px 0 30px;
    font-size: 17px;
  }
  .hero-btn--fc { position: absolute; left: 0; right: 0; top: 0; }
  .hero-btn__arrow { width: 44px; height: 44px; }
  .hero-school {
    position: static;
    display: flex;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    margin-top: 8px; /* ボタン下辺の厚み（4px）のぶんを足す */
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: 0.06em;
    color: #fff;
  }
  .hero-school__arrow { background: #fff; color: var(--blue-ink); }

  /* 新着：横スワイプ */
  .tp-news { padding: 28px 0 36px; }
  .tp-news__head { flex-wrap: nowrap; gap: 12px; margin-top: 0; }
  .tp-news .tp-title { margin-top: 10px; line-height: 1.4; }
  .tp-news .tp-pill {
    gap: 8px;
    height: 44px;
    padding: 0 7px 0 16px;
    font-size: 13.5px;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 0 #2a6a9f;
  }
  .tp-news .tp-pill__arrow { width: 30px; height: 30px; }
  .tp-news .tp-pill__arrow svg { width: 12px; height: 12px; }
  .tp-news__list {
    display: flex;
    gap: 12px;
    margin: 16px calc(-1 * var(--tp-gutter)) 0;
    padding: 0 var(--tp-gutter) 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding: 0 var(--tp-gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .tp-news__list::-webkit-scrollbar { display: none; }
  .tp-news__item { flex: none; width: 250px; scroll-snap-align: start; }
  .tp-news__card { padding: 10px 10px 16px; border-radius: 20px; }
  .tp-news__card img { aspect-ratio: 3 / 2; border-radius: 12px; }
  .tp-news__card .tp-meta { margin-top: 12px; padding: 0 4px; }
  .tp-news__title { margin-top: 6px; padding: 0 4px; font-size: 14px; line-height: 1.6; }

  /* コース：STEP 1・2 は写真を左にした横長、STEP 3 は 2 枚を横に並べる */
  .tp-course { padding: 12px 0 44px; }
  .tp-course .tp-title { margin-top: 14px; font-size: 24px; line-height: 1.6; }
  .tp-course__lead { font-size: 19px; line-height: 1.7; letter-spacing: 0.02em; }
  .tp-roadmap { display: block; margin-top: 24px; }
  .tp-card-course { border-radius: 16px; }
  .tp-card-course--main { flex-direction: row; align-items: stretch; }
  .tp-card-course--main .tp-card-course__img { flex: 0 0 38%; min-height: 0; }
  .tp-card-course__body { flex: 1 1 auto; min-width: 0; padding: 12px 8px 12px 14px; }
  .tp-card-course__step { height: 18px; gap: 8px; font-size: 12px; }
  .tp-card-course__new { height: 18px; padding: 0 7px; font-size: 10.5px; }
  .tp-card-course__name { margin-top: 5px; font-size: 16px; line-height: 1.4; letter-spacing: 0; white-space: normal; }
  .tp-card-course__grade { margin-top: 1px; font-size: 13px; letter-spacing: 0; }
  .tp-card-course__desc { display: none; }
  .tp-roadmap__arrow { height: 34px; }
  .tp-roadmap__arrow > span { width: 26px; height: 26px; transform: rotate(90deg); }
  .tp-roadmap__arrow svg { width: 12px; height: 12px; }
  .tp-roadmap__branch { grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tp-card-course--branch { display: block; }
  .tp-card-course--branch .tp-card-course__img { aspect-ratio: 16 / 10; }
  .tp-card-course--branch .tp-card-course__body { padding: 10px 12px 14px; }
  .tp-card-course--branch .tp-card-course__step { height: 18px; }
  .tp-card-course--branch .tp-card-course__name { margin-top: 5px; }
  .tp-card-course--branch .tp-card-course__grade { margin-top: 2px; font-size: 12.5px; line-height: 1.5; }
  .tp-card-course--zoom .tp-card-course__img img { object-position: 0% 0%; transform: none; }
  .tp-course__more { margin-top: 24px; }
  .tp-course .tp-pill {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 58px;
    padding: 0 9px 0 22px;
    font-size: 14.5px;
    letter-spacing: 0.02em;
  }

  /* 作品 */
  .tp-works { padding: 24px 0 8px; }
  .tp-works__rail { gap: 12px; margin-top: 18px; padding: 0 var(--tp-gutter) 6px; scroll-padding: 0 var(--tp-gutter); }
  .tp-work { width: 240px; }
  .tp-work img { border-radius: 16px; }
  .tp-work__class { font-size: 12px; }
  .tp-work__title { font-size: 14.5px; }

  /* 動画：見出し → 動画 → 目次の順にする */
  .tp-movie { padding: 48px 0 44px; }
  .tp-movie__grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .tp-movie__text { display: contents; }
  .tp-movie__text .tp-en,
  .tp-movie__text .tp-title,
  .tp-movie__lead { order: 1; }
  .tp-movie__text .tp-en { gap: 12px; }
  .tp-movie__lead { margin-top: 6px; font-size: 14.5px; line-height: 1.9; }
  .tp-movie__player { order: 2; margin-top: 18px; border-radius: 20px; }
  .tp-movie__chapters { order: 3; margin-top: 14px; }
  .tp-movie__play { width: 72px; height: 72px; margin: -36px 0 0 -36px; box-shadow: 0 3px 0 var(--cta-warm-edge); }
  .tp-movie__play svg { width: 28px; height: 28px; margin-left: 3px; }
  .tp-movie__chapters a { grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 6px; min-height: 48px; padding: 8px 2px; }
  .tp-movie__q { font-size: 14px; }
  .tp-movie__label { font-size: 14.5px; }
  .tp-movie__at { font-size: 12.5px; }

  /* Instagram */
  .tp-insta { padding: 16px 0 28px; }
  .tp-insta__inner { display: block; padding-left: 0; }
  .tp-insta__head { width: auto; padding: 0 var(--tp-gutter); }
  .tp-insta__en { gap: 9px; }
  .tp-insta__app { width: 26px; height: 26px; border-radius: 7px; }
  .tp-insta__app svg { width: 17px; height: 17px; }
  .tp-insta__more--pc { display: none; }
  .tp-insta__more--sp { display: flex; justify-content: center; margin-top: 12px; }
  .tp-insta__more--sp .tp-link { min-height: 44px; }
  .tp-insta__rail { gap: 12px; margin-top: 18px; padding: 0 var(--tp-gutter) 6px; scroll-padding: 0 var(--tp-gutter); }
  .tp-insta__card { width: 256px; }
  .tp-insta__card a { border-radius: 18px; }
  .tp-insta__account { gap: 9px; padding: 10px 12px; }
  .tp-insta__ring { width: 36px; height: 36px; }
  .tp-insta__ring img { height: 19px; }
  .tp-insta__name > span:first-child { font-size: 13.5px; }
  .tp-insta__area { font-size: 11.5px; }
  .tp-insta__actions { gap: 13px; padding: 9px 12px 10px; }
  .tp-insta__text { margin: -1px 12px 12px; font-size: 12.5px; }
  .tp-insta__nav { display: none; }

  /* 校舎 */
  .tp-school { padding: 10px 0 52px; }
  .tp-school .tp-container { padding: 0 max(16px, calc(var(--tp-gutter) - 4px)); }
  .tp-school__panel { border-radius: 24px; }
  .tp-school__panel--search { display: block; padding: 32px 20px 24px; }
  .tp-school .tp-title { line-height: 1.6; }
  .tp-school__lead { display: none; }
  .tp-school__near { display: flex; justify-content: space-between; width: 100%; height: 60px; margin-top: 20px; padding: 0 9px 0 28px; }
  .tp-school__near .tp-pill__arrow { width: 42px; height: 42px; }
  .tp-school__h3 { margin-top: 28px; font-size: 18px; }
  .tp-school__regions { margin-top: 10px; }
  .tp-school__region { grid-template-columns: 70px minmax(0, 1fr); align-items: start; gap: 8px; padding: 9px 0; }
  .tp-school__region dt { padding-top: 10px; font-size: 12.5px; letter-spacing: 0; }
  .tp-school__region ul { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; }
  .tp-school__region a { padding: 9px 10px; font-size: 14.5px; }
  .tp-school__count { font-size: 12px; }
  .tp-school__all { display: flex; justify-content: center; margin-top: 10px; }
  .tp-school__all .tp-link { min-height: 50px; }
  .tp-school__panel--new { margin-top: 14px; padding: 26px 20px 24px; }
  .tp-school__new-title { font-size: 20px; }
  .tp-school__new-list { grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
  .tp-school__new-list a { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 14px; }
  .tp-school__new-list img { width: 104px; height: 70px; aspect-ratio: auto; border-radius: 12px; }
  .tp-school__new-body { display: block; margin-top: 0; }
  .tp-school__new-name { display: block; font-size: 15.5px; }
  .tp-school__new-opened,
  .tp-school__new-note { display: block; font-size: 12.5px; line-height: 1.6; font-weight: 500; color: var(--ink-soft); }

  /* 体験の流れ：写真を左にして縦に並べる */
  .tp-flow { padding: 52px 0 36px; word-break: auto-phrase; }
  .tp-flow__steps { grid-template-columns: none; gap: 22px; margin-top: 28px; text-align: left; }
  .tp-flow__steps::before { top: 60px; bottom: 60px; left: 59px; right: auto; border-top: 0; border-left: 2px solid #c3d9ec; }
  .tp-flow__steps li { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 18px; }
  .tp-flow__steps img { width: 120px; height: 120px; border-width: 6px; }
  .tp-flow__label { margin-top: 0; font-size: 13px; }
  .tp-flow__title { margin-top: 8px; font-size: 18px; }
  .tp-flow__text { margin-top: 2px; font-size: 13.5px; line-height: 1.8; }
  .tp-flow__text br { display: none; }
  .tp-flow__note { margin-top: 26px; font-size: 14.5px; text-align: left; }
  .tp-flow__note a { text-underline-offset: 4px; }

  /* ICTノート：大きい 1 本と 2 本を 1 枚の白い面にまとめる */
  .tp-note { padding: 14px 0 44px; }
  .tp-note .tp-title { margin-top: 10px; line-height: 1.4; }
  .tp-note__lead { margin-top: 6px; font-size: 14.5px; line-height: 1.8; }
  .tp-note__all-pc { display: none; }
  .tp-note__grid { display: block; margin-top: 16px; padding: 12px 12px 0; border-radius: 24px; background: #fff; }
  .tp-note__main { padding: 0; border-radius: 0; background: none; }
  .tp-note__main-img img { aspect-ratio: 16 / 9; border-radius: 14px; }
  .tp-note__corner { width: 60px; height: 60px; border-radius: 18px 0 0 0; }
  .tp-note__corner::before,
  .tp-note__corner::after { width: 16px; height: 16px; background: radial-gradient(circle at 0 0, transparent 16px, #fff 16.5px); }
  .tp-note__corner-btn { width: 46px; height: 46px; }
  .tp-note__corner-btn svg { width: 15px; height: 15px; }
  .tp-note__main-body { padding: 14px 4px 16px; }
  .tp-note__main-title { margin-top: 8px; font-size: 18px; line-height: 1.6; letter-spacing: 0.03em; }
  .tp-note__excerpt { display: none; }
  .tp-note__list { display: block; }
  .tp-note__item { border-top: 1px solid var(--hair); }
  .tp-note__item--pc { display: none; }
  .tp-note__item a { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 12px 2px; border-radius: 0; background: none; }
  .tp-note__thumb { width: 88px; height: 66px; min-height: 0; }
  .tp-note__thumb img { border-radius: 10px; }
  .tp-note__item-title { margin-top: 3px; font-size: 14px; line-height: 1.6; }
  .tp-note__all-sp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    border-top: 1px solid var(--hair);
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
  }
  .tp-note__all-sp .tp-link__arrow { width: 30px; height: 30px; }
  .tp-note__all-sp .tp-link__arrow svg { width: 12px; height: 12px; }

  /* 選ばれる理由：横スワイプ */
  .tp-reason { padding: 40px 0 32px; }
  .tp-reason__head { align-items: flex-start; text-align: left; }
  .tp-reason .tp-title { font-size: 24px; }
  .tp-reason__list {
    display: flex;
    gap: 16px;
    max-width: none;
    margin-top: 24px;
    padding: 0 var(--tp-gutter) 6px;
    overflow-x: auto;
    scroll-padding: 0 var(--tp-gutter);
    scroll-snap-type: x mandatory;
  }
  .tp-reason__item,
  .tp-reason__item--wide { width: 264px; }
  .tp-reason__img img,
  .tp-reason__item--wide .tp-reason__img img { aspect-ratio: 1 / 1; border-radius: 20px; }
  .tp-reason__label { padding: 18px 14px 22px 16px; border-radius: 0 0 0 18px; font-size: 16px; letter-spacing: 0.14em; }
  .tp-reason__label::before,
  .tp-reason__label::after { width: 18px; height: 18px; background: radial-gradient(circle at 0 100%, transparent 18px, var(--cream) 18.5px); }
  .tp-reason figcaption { margin-top: 14px; font-size: 14px; line-height: 1.9; }

  /* 無料体験：見出し → 写真 → ボタン */
  .tp-cta { padding: 20px 0 56px; }
  .tp-cta__grid { display: block; }
  .tp-cta .tp-en--lg { letter-spacing: 0.24em; }
  .tp-cta__title { margin-top: 16px; font-size: 28px; }
  .tp-cta__lead { margin-top: 8px; font-size: 19px; line-height: 1.7; letter-spacing: 0.02em; }
  .tp-cta__photo { margin-top: 24px; border-radius: 20px; }
  .tp-cta__actions { display: grid; gap: 14px; margin-top: 28px; }
  .tp-btn-trial { display: flex; justify-content: space-between; width: 100%; height: 64px; padding: 0 10px 0 30px; font-size: 17px; }
  .tp-btn-trial__arrow { width: 44px; height: 44px; }
  .tp-cta__school {
    display: flex;
    justify-content: space-between;
    height: 64px;
    padding: 0 10px 0 30px;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 16px;
    box-shadow: 0 4px 0 var(--cta-blue-edge);
  }
  .tp-cta__school-arrow { width: 44px; height: 44px; background: var(--blue); color: #fff; }
  .tp-cta__school-arrow svg { width: 16px; height: 16px; }
}

@media (max-width: 780px) {
  .page-top main { --tp-gutter: 20px; }
}

/* 動きを減らす設定のときは、写真の移動と文字の入れ替えを即時にする */
@media (prefers-reduced-motion: reduce) {
  .hero__track,
  .hero-copy,
  .hero [data-hero-cta] { transition: none; }
}
