/* ================= Theme Vars ================= */
:root {
  --c-main: #0098FF;
  --c-accent: #FFEA00;
  --c-primary-weak: #ebf2ff;
  --c-bg1: #DCF3FF;
  --c-bg2: #FCFCFC;
  --c-text: #000;
  --c-text-gray: #657176;
  --color-muted: #6b7280;
  --radius: 14px;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  --container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--c-text);
  font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.1em;
  line-height: 1.8;
  background-color: #fff;
}

.pc-none {
  display:none;
}

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

hr {
  background: var(--c-text-eng);
}

h1 {
  font-size: min(28px,2.1vw);
  font-weight:400;
  letter-spacing:0.1em;
  line-height: 2.8;
}

h2 {
  font-size: min(48px,3.3vw);
  letter-spacing:0.1em;
  font-weight: 700;
}

h3 {
  font-size: min(24px,1.6vw);
  letter-spacing:0.1em;
  font-weight:700;
}

h4 {
  font-size: min(20px,1.4vw);
  letter-spacing:0.1em;
  font-weight:700;
}

h5,
h6 {
  font-size: min(16px,1.1vw);
  letter-spacing:0.1em;
  font-weight:500;
}

a {
  font-size: min(16px,1.1vw);
  color: var(--c-text);
  text-decoration: none;
  letter-spacing: 0.1em;
}

a:hover {
  color: var(--c-main);
  transition: 0,3s;
}

p {
  font-size: min(16px,1.1vw);
  letter-spacing: 0.1em;
}

li {
  list-style-type: none;
}

.c-button {
  width: 240px;
  height: 50px;
  background-color: var(--c-accent);
  font-size: min(16px,1.1vw);
  color: var(--c-main);
  border: none;
  border-radius: 30px;
  padding: 10px 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.c-button:hover {
  opacity: 0.7;
  transition: 0.3s;
}

.section-c-button { 
  display: block;
  margin-top: 50px!important;
  margin: 0 auto;
}

@media screen and (max-width:767px) {
  .pc-none {
    display:block;
  }

  h1 {
    font-size: min(40px,10vw);
    letter-spacing:0.05em;
    font-weight:700;
  }

  h2 {
    font-size: min(20px,5.3vw);
  }

  h3,
  h4 {
    font-size: min(18px, 4.5vw);
  }

  h5,
  h6 {
    font-size: min(16px,1.1vw);
    letter-spacing: 0.1em;
    font-weight: 500;
  }

  a,
  p,
  div {
  font-size: min(12px,3.2vw);
  line-height: 2;
  }
}

/* ================= Utilities ================= */
.container {
  width: 95%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: 100px 0;
}

.section:nth-of-type(odd) {
  background-color: #FCFCFC;
}

.section:nth-of-type(even) {
  background-color: #DCF3FF;
}

.section__head {
  display: flex;
  justify-content: center;
  align-items: baseline;
  margin-bottom: 50px;
}

.section:nth-of-type(odd) .section__title {
  color: #DDDDDD;
}

.section:nth-of-type(even) .section__title {
  color: #9FCAE0;
}

.section__title {
  font-size: min(100px, 6.9vw);
  font-weight: 700;
  text-align: center;
}

.section__subtitle {
  margin-left: 12px;
  color: var(--color-muted);
  font-size: 14px;
}

.section__more {
  color: var(--color-primary);
  text-decoration: none;
}

@media screen and (max-width: 1024px) and (min-width: 769px) {
  .c-button {
    width: 200px;
    height: 40px;
  }
}

@media screen and (max-width: 768px) {
  .c-button {
    width: 200px;
    height: 40px;
    font-size: min(12px,3.2vw);
  }
}

@media screen and (max-width: 768px) {
  .container {
    width: 80vw;
    margin: 0 auto;
  }

  .section {
    padding: 50px 0;
  }

  .section__title {
    font-size: min(26px, 6.9vw);
    margin-bottom: 50px;
  }
}

/* animation */
:root{
  --reveal-duration:  1s;                 /* 速くしたいほど小さく */
  --reveal-ease: cubic-bezier(.2,.7,.2,1);
  --wipe-softness: 0px;
  --reveal-tx: 0px;
  --reveal-ty: 12px;
}
/* reveal--fadeup（下から上） */
.reveal--fadeup {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--reveal-duration) var(--reveal-ease),
              transform var(--reveal-duration) var(--reveal-ease);
  will-change: opacity, transform;
}
.reveal.is-inview.reveal--fadeup {
  opacity: 1;
  transform: none;
}

/* reveal--fadein（右から左） */
.reveal--fadein {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity var(--reveal-duration) var(--reveal-ease),
              transform var(--reveal-duration) var(--reveal-ease);
  will-change: opacity, transform;
}
.reveal.is-inview.reveal--fadein {
  opacity: 1;
  transform: none;
}

/* prefers-reduced-motion対応（すべてまとめて） */
@media (prefers-reduced-motion: reduce) {
  .reveal--fadeup,
  .reveal--fadein,
  .reveal.is-inview.reveal--fadeup,
  .reveal.is-inview.reveal--fadein {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
/* reveal--alpha */
.reveal--alpha{
  /* テキストにも効くように inline-block 推奨 */
  display:inline-block;
  will-change: -webkit-mask-size, mask-size;
  /* マスク画像：右端だけ透明へフェード */
  -webkit-mask-image: linear-gradient(90deg,
      #000 0,
      #000 calc(100% - var(--wipe-softness)),
      transparent 100%);
          mask-image: linear-gradient(90deg,
      #000 0,
      #000 calc(100% - var(--wipe-softness)),
      transparent 100%);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;

  /* 初期：幅0% = 全面マスク（非表示） */
  -webkit-mask-size: 0% 100%;
          mask-size: 0% 100%;
  transition:
    -webkit-mask-size var(--reveal-duration) var(--reveal-ease),
            mask-size var(--reveal-duration) var(--reveal-ease);
}
/* 表示トリガー後：幅100%まで広げる＝左から順に不透明へ */
.reveal.is-inview.reveal--alpha{
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
}
/* フォールバック（古いブラウザ）：通常の左→右フェード風に */
@supports not ((mask-image: linear-gradient(to right, #000, transparent)) or
              (-webkit-mask-image: linear-gradient(to right, #000, transparent))){
  .reveal--alpha{
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity var(--reveal-duration) var(--reveal-ease),
                transform var(--reveal-duration) var(--reveal-ease);
  }
  .reveal.is-inview.reveal--alpha{
    opacity: 1; transform: none;
  }
}
/* =========================
  wipe-up（下から上）
========================= */
.reveal--up {
  display: inline-block;
  will-change: mask-size, -webkit-mask-size;
  -webkit-mask-image: linear-gradient(180deg,
      #000 0,
      #000 calc(100% - var(--wipe-softness)),
      transparent 100%);
          mask-image: linear-gradient(180deg,
      #000 0,
      #000 calc(100% - var(--wipe-softness)),
      transparent 100%);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: 100% 0%;
          mask-size: 100% 0%;
  transition:
    -webkit-mask-size var(--reveal-duration) var(--reveal-ease),
            mask-size var(--reveal-duration) var(--reveal-ease);
}

.reveal.is-inview.reveal--up {
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
}
/* =========================
  wipe-right（右から左）
========================= */
.reveal--right {
  display: inline-block;
  will-change: -webkit-mask-size, mask-size;
  -webkit-mask-image: linear-gradient(270deg, /* ← 右から左へ */
    #000 0,
    #000 calc(100% - var(--wipe-softness)),
    transparent 100%);
  mask-image: linear-gradient(270deg,
    #000 0,
    #000 calc(100% - var(--wipe-softness)),
    transparent 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 0% 100%;
  mask-size: 0% 100%;

  transition:
    -webkit-mask-size var(--reveal-duration) var(--reveal-ease),
            mask-size var(--reveal-duration) var(--reveal-ease);
}
.reveal--right.is-inview {
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
/* フォールバック（古いブラウザ） */
@supports not ((mask-image: linear-gradient(to left, #000, transparent)) or
              (-webkit-mask-image: linear-gradient(to left, #000, transparent))) {
  .reveal--up {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--reveal-duration) var(--reveal-ease),
                transform var(--reveal-duration) var(--reveal-ease);
  }
  .reveal.is-inview.reveal--up {
    opacity: 1;
    transform: none;
  }
  .reveal--right {
    opacity: 0;
    transform: translateX(8px);
    transition: opacity var(--reveal-duration) var(--reveal-ease),
                transform var(--reveal-duration) var(--reveal-ease);
  }
  .reveal.is-inview.reveal--right {
    opacity: 1;
    transform: none;
  }
}


/* ================= Header ================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  border-bottom: 1px solid #edf0f5;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.site-header__logo {
  width: 120px;
  height: auto;
}

/* --- ハンバーガーボタン --- */
.header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 200;
}

.header__toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  margin: 2.5px auto;
  background-color: #111827;
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* --- メニュー展開時に × 変形 --- */
.header__toggle[aria-expanded="true"] .header__toggle-line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.header__toggle[aria-expanded="true"] .header__toggle-line:nth-child(2) {
  opacity: 0;
}
.header__toggle[aria-expanded="true"] .header__toggle-line:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

/* ================= Global Nav ================= */
.gnav {
  display: block;
}

.gnav__list {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gnav__link {
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
}

.gnav__link:hover {
  background-color: var(--c-primary-weak);
  transition: 0.3s;
}

@media screen and (max-width: 768px) {
  .header {
    position: sticky;
    top: 0;
    z-index: 200;
    width: 100%;
    background: #fff;
  }

  .header__inner {
    width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .header__toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 300;
  }

  .header__toggle-line {
    width: 24px;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
  }

  /* ===== ナビ（共通） ===== */
  .gnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #e6dccf;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),
      opacity 0.3s ease,
      visibility 0s linear 0.45s; /* 非表示にするタイミングを遅らせる */
    z-index: 250;
  }

  /* ===== 開いた時 ===== */
  .gnav.gnav--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition:
      transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),
      opacity 0.3s ease,
      visibility 0s; /* 即座にvisibleに */
  }

  .gnav__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 80px 0 40px;
  }

  .gnav__item:first-child .gnav__link {
    border-top: 1px solid #ccc;
  }

  .gnav__link {
    display: block;
    width: 100vw;
    text-align: center;
    border-bottom: 1px solid #ccc;
  }

  .c-button {
    margin-top: 30px;
  }

  body.nav-open {
    overflow: hidden;
  }
}

/* ================= Hero ================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 760px;
  overflow: hidden;
}

.hero__slides {
  position: absolute;
  right: 0;
  width: 75%;
  max-width: 1080px;
  height: 100%;
  display: block;
  overflow: hidden;
  border-radius: 20px;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.9);
}

/* --- テキスト --- */
.hero__content {
  position: absolute;
  top: 50%;
  left: 5%;
  color: #657176;
  z-index: 10;
}

.hero__title {
  display: inline;
  background-color: #fff;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 10px 20px;
  line-height: 2.4;
}

.hero__title span {
  color: var(--c-main);
}


@media screen and (max-width: 768px) {
  .hero {
    height: 70vh;
    max-height: 500px;
  }

  .hero__img {
    height: 100%;
  }

  .hero__content {
    position: absolute;
    top: 60%;
    left: 0%;
    width: 100%;
  }

  .hero__title {
    line-height: 3;
  }
}

/* ================= Success Records ================= */
#success {
  text-align: center;
}

.success__outer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0; /* gapは不要 */
}

.success__wrapper {
  overflow: hidden; /* スライダー部分だけ隠す */
  width: 100%;
  max-width: 1080px;
  margin:  0;
}

.success__list {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease-in-out;
}

.success-card {
  flex: 0 0 33%;
  min-width: 33%;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 20px;
  transition: transform 0.25s ease;
}

.success-card___img {
  width: 160px;
  height: 160px;
  margin: 0 auto;
}

.success-card__title {
  text-align: center;
  margin: 40px auto 0px;
}

.success-card__text {
  font-size: min(14px,1vw);
  text-align: left;
  margin: 10px auto 20px;
}

/* --- ナビゲーションボタン --- */
.success__nav {
  flex-shrink: 0;
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: var(--c-accent);
  color: var(--c-main);
  border: none;
  font-size: 40px;
  font-weight: 100;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 5;
}

.success__nav:hover {
  opacity: 0.7;
}

.success__nav--prev {
  margin-right: 20px;
}

.success__nav--next {
  margin-left: 20px;
}

@media screen and (max-width: 1024px) and (min-width: 769px) {
  .success__nav {
    width: 60px;
    height: 60px;
    font-size: 16px;
  }
}

@media screen and (max-width: 768px) {
  .success__outer {
    width: 95%;
    margin: 0 auto
  }
  .success__wrapper {
    max-width: 300px;
    gap: 20px;
  }

  .success-card {
    flex: 0 0 100%;
    min-width: 100%;
  }

  .success-card___img {
    width: 80px;
    height: 80px;
    margin: 0 auto;
  }

  .success-card__title {
    margin: 20px auto 0px;
  }

  .success-card__text {
    font-size: min(10px,2.6vw);
  }

  .success__nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* ================= About ================= */
.about__content {
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
  text-align: center;
}

.about__lead {
  font-size: min(40px,2.7vw);
  text-align: center;
}

.features {
  display: flex;
  flex-direction: row;
  gap: 50px;
  justify-content: center;
  width: 100%;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}

.features__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  width: 25%;
  height: auto;
  aspect-ratio: 1/1;
  border: 1px solid #D9D9D9;
  border-radius: 50%;

}

.features__item span {
  width: 100px;
  font-weight: 700;
  background-color: var(--c-accent);
  color: var(--c-main);
  margin: 0 auto;
}

.features__ttl {
  color: var(--c-main);
  display: block;
  font-weight: 700;
}

.features__desc {
  font-weight: 700;
}

@media screen and (max-width: 768px) {
  .about__lead {
    font-size: min(20px,5.3vw);
  }

  .about__content {
    gap: 30px;
  }

  .features {
    flex-direction: column;
    gap: 30px;
  }

  .features__item {
    width: 50%;
    min-width: 300px;
    margin: 0 auto;
  }
}

/* ================= Courses ================= */
.courses__list {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 50px;
}

.course-card1 {
  display: flex;
  align-items: center;
  width: 33%;
  background-color: var(--c-main);
  border-radius: 20px;
}
.course-card1__body {
  color: #fff;
  padding: 40px;
  height: 60%;
}

.course-card1__heading {
  margin-bottom: 20px;
}

.course-card {
  position: relative;
  width: 45%;
  height: auto;
  aspect-ratio: 4 / 3;
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
}

.course-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-card__body {
  position: absolute;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width:100%;
  height: 100px;
  background-color: rgba(255,255,255,0.9);
}

.course-card__title {
  color: var(--c-main);
  margin: 0 0 10px 0;
}

.course-card__text {
  margin: 0 0 10px 0;
  color: #374151;
}

.course-card__price {
  margin: 0;
  font-weight: 700;
  color: var(--color-primary);
}

@media screen and (max-width: 768px) {
  .courses__list {
    gap: 30px;
  }

  .course-card1 {
    width: 100%;
    max-width: 400px;
    min-height: 200px;
    margin: 0 auto;
  }

  .course-card1__body {
    height: auto;
    padding: 20px;
  }

  .course-card {
    width: 100%;
    height: auto;
    max-width: 400px;
    margin: 0 auto;
  }

  .course-card__img {
    aspect-ratio: 4/3;
  }

  .course-card__body {
    height: 80px;
  }

  .course-card__title {
    margin: 0;
  }

  .course-card__text {
    font-size: min(10px,2.6vw);
  }
}

/* ================= Locations ================= */
.locations__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.location-card {
  background-color: #fff;
  overflow: hidden;
}

.location-card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.location-card__body {
  position: relative;
  padding: 20px;
}

.location-card__flex {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.location-card__title {
  color: var(--c-main);
}

.location-card__phone {
  font-weight: 700;
}

.location-card__phone span {
  font-size: 150%;
}

.location-card__text {
  margin: 0 0 10px 0;
  color: #374151;
  font-size: 14px;
}

.location-card__link {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: var(--c-accent);
  color: var(--c-main);
  border-radius: 5px;
  padding: 10px 15px;
}

@media screen and (max-width: 768px) {
  .locations__list {
    grid-template-columns: repeat(1, 1fr);
  }

  .location-card {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ================= Contact ================= */
.contact__flex {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.form__row {
  margin-bottom: 50px;
}

.form__label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.required {
  color: #D72638;
  font-size: 70%;
  margin-left: 10px;
}

.form__input {
  width: 100%;
  height: 50px;
  padding: 10px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.form__textarea {
  width: 100%;
  height: 200px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.contact__note {
  margin-top: 0;
  color: #374151;
}

.contact__tel {
  margin-top: 8px;
  margin-bottom: 18px;
  font-weight: 800;
}

.contact__student {
  display: inline-block;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
}

@media screen and (max-width: 768px) {
  .form__input {
    height: 40px;
    padding: 10px;
  }

  .form__row {
    margin-bottom: 30px;
  }
}

/* ===== 固定ボタン（右下） ===== */
.fixed-buttons {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 500;
}

.fixed-buttons__btn {
  display: inline-block;
  padding: 12px 40px;
  border-radius: 9999px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ボタン色（個別） */
.fixed-buttons__btn--request {
  background-color: var(--c-main);
  color: #fff;
}

.fixed-buttons__btn--request:hover {
  color: #fff;
}

.fixed-buttons__btn--trial {
  background-color: var(--c-accent);
  color:  var(--c-main);
}

.fixed-buttons__btn:hover {
  transform: translateY(-3px);
}

/* スマホ対応（横並びに） */
@media screen and (max-width: 768px) {
  .fixed-buttons {
    right: 0;
    left: 0;
    bottom: 0;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    backdrop-filter: blur(8px);
  }

  .fixed-buttons__btn {
    flex: 1;
    padding: 10px 0;
  }
}

/* ================= Footer ================= */
.footer {
  padding: 30px auto;
  background-color: #000;
  color: #cbd5e1;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 30px;
}

.footer-nav li a {
  color: #fff;
}

.footer-nav li a:hover {
  opacity: 0.5;
  transition: 0.3s;
}

.footer__to-top {
  color: #cbd5e1;
  text-decoration: none;
}

@media screen and (max-width: 768px) {
  .footer {
    padding-bottom: 70px;
  }
  .footer__inner {
    gap: 30px;
  }
  .footer-nav {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}