:root {
  --color-gray-base: #5c6266;
  --color-celeste: #81D8D0;
  --color-celeste-light: #E0F5F3;
  --color-deep-green-blue: #144955;
  --color-accent-warm: #E68A69;
  --color-bg-light: #F7FAFA;
  --color-bg-white: #ffffff;
  --color-text-main: #333C40;
  --font-body: 'Noto Sans JP', sans-serif;
  --font-en: 'Outfit', sans-serif;
  --line-height-base: 1.8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  line-height: var(--line-height-base);
  font-size: clamp(16px, 1.2vw, 18px);
  overflow-x: hidden;
  letter-spacing: 0.05em;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

.section {
  padding-top: 10vw;
  padding-bottom: 10vw;
  position: relative;
  z-index: 2;
}

.container-dynamic {
  width: 100%;
  padding-left: 7vw;
  padding-right: 7vw;
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
}

.container-dynamic.reverse {
  padding-left: 7vw;
  padding-right: 7vw;
}

/* セクションタイトル */
.sec-title {
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--color-deep-green-blue);
  margin-bottom: 4rem;
  font-weight: 800;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  letter-spacing: 0.1em;
  text-align: center;
}

.sec-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--color-accent-warm);
  margin-top: 25px;
  border-radius: 2px;
}

/* ボタン */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.6rem 0.6rem 2.5rem;
  background-color: var(--color-deep-green-blue);
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 8px 20px rgba(20, 73, 85, 0.15);
  border: 2px solid var(--color-deep-green-blue);
  cursor: pointer;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--color-celeste);
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: -1;
}

.btn::after {
  content: "➔";
  margin-left: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: #fff;
  color: var(--color-deep-green-blue);
  border-radius: 50%;
  font-family: var(--font-en);
  font-size: 1.2rem;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn:hover {
  color: var(--color-deep-green-blue);
  border-color: var(--color-celeste);
  box-shadow: 0 15px 25px rgba(129, 216, 208, 0.3);
  transform: translateY(-4px);
}

.btn:hover::before {
  width: 100%;
}

.btn:hover::after {
  background-color: var(--color-deep-green-blue);
  color: #fff;
  transform: translateX(3px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-deep-green-blue);
  border: 2px solid var(--color-deep-green-blue);
  box-shadow: none;
  padding: 0.4rem 0.4rem 0.4rem 1.5rem !important;
}

.btn-outline::after {
  width: 32px;
  height: 32px;
  font-size: 1rem;
  margin-left: 10px;
  background-color: var(--color-deep-green-blue);
  color: #fff;
}

.btn-outline:hover {
  border-color: var(--color-deep-green-blue);
  color: #fff;
}

.btn-outline:hover::before {
  background-color: var(--color-deep-green-blue);
}

.btn-outline:hover::after {
  background-color: #fff;
  color: var(--color-deep-green-blue);
}

/* ヘッダー */
header.global-header {
  position: fixed;
  top: 20px;
  left: 2vw;
  right: 2vw;
  width: auto;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 10px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.header-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header-logo {
  display: block;
  width: 50px;
  flex-shrink: 0;
}

.header-logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-logo-text .catch {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-celeste);
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin-bottom: 2px;
}

.header-logo-text .name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-deep-green-blue);
  font-family: var(--font-en);
  line-height: 1.1;
}

.global-nav ul {
  display: flex;
  gap: 2vw;
  align-items: center;
}

.global-nav a {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-gray-base);
  transition: color 0.3s;
}

.global-nav a:hover {
  color: var(--color-celeste);
}

.lang-switcher {
  margin-left: 2vw;
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 2vw;
  border-left: 1px solid rgba(0,0,0,0.1);
}

.lang-switcher a {
  color: var(--color-gray-base);
  transition: color 0.3s;
}

.lang-switcher a.active {
  color: var(--color-deep-green-blue);
  border-bottom: 2px solid var(--color-celeste);
}

.lang-switcher a:hover {
  color: var(--color-celeste);
}

/* ヒーローセクション */
.page-hero {
  position: relative;
  height: 56vh;
  min-height: 500px;
  background:
    linear-gradient(
      135deg,
      rgba(20, 73, 85, 0.8),
      rgba(129, 216, 208, 0.7)
    ),
    url('../images/DSC00996.jpg')
    center / cover fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  border-radius: 0 0 40px 40px;
  margin-bottom: 0;
  padding-top: 80px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.page-hero h1 {
  font-family: var(--font-en);
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
  line-height: 1.1;
}

.page-hero p {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-top: 15px;
  opacity: 0.9;
}

/* 料金カードグリッド */
.fees-wrapper {
  background-color: #ffffff;
  background-image:
    radial-gradient(
      circle at 0% 0%,
      rgba(129, 216, 208, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(20, 73, 85, 0.03) 0%,
      transparent 50%
    );
  border-radius: 40px;
  padding: 6vw 5vw;
  box-shadow: 0 20px 60px rgba(20, 73, 85, 0.06);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.5);
  margin-top: -50px;
  z-index: 10;
}

.fees-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 5px;
  background:
    linear-gradient(
      90deg,
      var(--color-celeste),
      var(--color-deep-green-blue)
    );
  border-radius: 0 0 10px 10px;
}

.fees-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 850px;
  margin: 0 auto;
}

.fee-card {
  background: #fff;
  border-radius: 24px;
  padding: 45px 50px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.03),
    inset 0 2px 0 rgba(255, 255, 255, 1);
  border: 1px solid rgba(20, 73, 85, 0.06);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.2, 1, 0.3, 1),
    box-shadow 0.4s;
}

.fee-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 25px 50px rgba(20, 73, 85, 0.08),
    inset 0 2px 0 rgba(255, 255, 255, 1);
}

/* コース見出し */
.fee-course-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom:
    2px dashed
    rgba(20, 73, 85, 0.1);
}

.fee-course-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fee-course-icon svg {
  width: 32px;
  height: 32px;
}

.fee-course-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-deep-green-blue);
  margin: 0;
  padding: 0;
}

/* バリアント */
.variant-admin {
  border-top:
    6px solid
    var(--color-deep-green-blue);
  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #f0f4f5 100%
    );
}

.variant-group {
  border-top:
    6px solid
    var(--color-celeste);
  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #f0fafa 100%
    );
}

.variant-group .fee-course-icon {
  background:
    rgba(129, 216, 208, 0.2);
  color:
    var(--color-deep-green-blue);
}

.variant-special {
  border-top:
    6px solid
    var(--color-gray-base);
  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #f5f6f7 100%
    );
}

.variant-special .fee-course-icon {
  background:
    rgba(92, 98, 102, 0.15);
  color:
    var(--color-gray-base);
}

.variant-private {
  border-top:
    6px solid
    var(--color-accent-warm);
  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #fff5f2 100%
    );
}

.variant-private .fee-course-icon {
  background:
    rgba(230, 138, 105, 0.15);
  color:
    var(--color-accent-warm);
}

.variant-semi {
  border-top: 6px solid #8e9eab;
  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #f4f6f8 100%
    );
}

.variant-semi .fee-course-icon {
  background:
    rgba(142, 158, 171, 0.2);
  color: #5c6c77;
}

.variant-short {
  border-top: 6px solid #e6b905;
  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #fffaf0 100%
    );
}

.variant-short .fee-course-icon {
  background:
    rgba(230, 185, 5, 0.15);
  color: #cca400;
}

.fee-info-row {
  margin-bottom: 35px;
}

.fee-info-row:last-child {
  margin-bottom: 0;
}

.fee-info-label {
  font-size: 1.1rem;
  font-weight: 800;
  color:
    var(--color-deep-green-blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  padding: 8px 20px 8px 12px;
  background-color:
    var(--color-celeste-light);
  border-radius: 6px;
  border-left:
    4px solid
    var(--color-celeste);
}

.fee-info-label svg {
  display: none;
}

.fee-info-label::before {
  content: "¥";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #fff;
  background:
    var(--color-deep-green-blue);
  border-radius: 50%;
  font-family: var(--font-en);
  font-size: 0.8rem;
}

.fee-category-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 0 4px;
  padding: 0 4px 18px;
  border-bottom:
    2px solid
    rgba(20, 73, 85, 0.12);
}

.fee-category-heading:first-child {
  margin-top: 0;
}

.fee-category-heading h2 {
  color:
    var(--color-deep-green-blue);
  font-size:
    clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.3;
}

.fee-gallery-link {
  color:
    var(--color-deep-green-blue);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.fee-info-value {
  font-size: 1.2rem;
  color:
    var(--color-text-main);
  font-weight: 600;
  line-height: 1.6;
  padding-left: 16px;
}

.fee-payment-type {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  color:
    var(--color-deep-green-blue);
  background-color:
    rgba(20, 73, 85, 0.05);
  padding: 6px 14px;
  border-radius: 6px;
  margin-left: 16px;
  margin-top: 15px;
  margin-bottom: 8px;
  border:
    1px solid
    rgba(20, 73, 85, 0.1);
  letter-spacing: 0.05em;
}

.fee-table {
  width: calc(100% - 16px);
  border-collapse: collapse;
  margin-top: 10px;
  margin-left: 16px;
}

.fee-table th,
.fee-table td {
  padding: 12px 15px;
  border-bottom:
    1px solid
    rgba(0,0,0,0.05);
  text-align: left;
}

.fee-table th {
  font-weight: 500;
  color:
    var(--color-gray-base);
  font-size: 1.05rem;
  width: 45%;
  padding-left: 0;
}

.fee-table td {
  font-weight: 800;
  color:
    var(--color-deep-green-blue);
  font-size: 1.35rem;
}

.fee-table tr:last-child th,
.fee-table tr:last-child td {
  border-bottom: none;
}

.fee-note {
  font-size: 0.95rem;
  color:
    var(--color-gray-base);
  font-weight: 500;
  margin-top: 15px;
  padding-left: 16px;
  line-height: 1.5;
}

/* 入学までの流れ */
.flow-section {
  background-color:
    var(--color-bg-light);
  border-radius: 40px 40px 0 0;
  margin-top: -40px;
  padding-top: 8vw;
  position: relative;
  z-index: 9;
}

.step-container {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 20px;
}

.step-item {
  display: flex;
  gap: 40px;
  margin-bottom: 50px;
  position: relative;
}

.step-item:last-child {
  margin-bottom: 0;
}

.step-item::after {
  content: '';
  position: absolute;
  left: 34px;
  top: 80px;
  bottom: -60px;
  width: 2px;
  background:
    rgba(129, 216, 208, 0.4);
}

.step-item:last-child::after {
  display: none;
}

.step-marker {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  background: #fff;
  border:
    4px solid
    var(--color-celeste);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow:
    0 10px 20px
    rgba(129, 216, 208, 0.2);
  position: relative;
  z-index: 2;
}

.step-marker span:first-child {
  font-family:
    var(--font-en);
  font-size: 0.7rem;
  font-weight: 800;
  color:
    var(--color-gray-base);
  line-height: 1;
}

.step-marker span:last-child {
  font-family:
    var(--font-en);
  font-size: 1.6rem;
  font-weight: 800;
  color:
    var(--color-deep-green-blue);
  line-height: 1.1;
}

.step-content {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow:
    0 15px 40px
    rgba(20, 73, 85, 0.04);
  border:
    1px solid
    rgba(20, 73, 85, 0.05);
  flex-grow: 1;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.step-item:hover .step-content {
  transform: translateX(5px);
  box-shadow:
    0 20px 50px
    rgba(20, 73, 85, 0.08);
}

.step-content h4 {
  font-size: 1.55rem;
  font-weight: 800;
  color:
    var(--color-deep-green-blue);
  margin-bottom: 15px;
}

.step-content p {
  font-size: 1.15rem;
  line-height: 1.9;
  color:
    var(--color-text-main);
  font-weight: 500;
}

/* フッター */
footer {
  background: #0F172A;
  color: #fff;
  padding: 80px 4vw 40px;
  overflow: hidden;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-right {
  display: flex;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 25px;
  text-decoration: none;
  margin-bottom: 40px;
}

.footer-logo {
  display: block;
  width: 90px;
  flex-shrink: 0;
}

.footer-logo-text .catch {
  font-size: 0.95rem;
  font-weight: 700;
  color:
    var(--color-celeste);
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin-bottom: 5px;
}

.footer-logo-text .name {
  font-size: 1.6rem;
  font-weight: 800;
  font-family:
    var(--font-en);
  line-height: 1.2;
  color: #fff;
}

.footer-nav {
  display: grid;
  grid-template-columns:
    repeat(3, auto);
  gap: 60px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-nav a {
  font-weight: 500;
  opacity: 0.8;
  transition:
    opacity 0.3s;
  font-size: 1.05rem;
}

.footer-nav a:hover {
  opacity: 1;
  color:
    var(--color-celeste);
}

/* 追従CTA */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.circle-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background:
    linear-gradient(
      135deg,
      #FF9E7D 0%,
      var(--color-accent-warm) 100%
    );
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 12px 25px rgba(230, 138, 105, 0.5),
    inset 0 4px 8px rgba(255, 255, 255, 0.5),
    inset 0 -4px 8px rgba(0, 0, 0, 0.15);
  transition:
    all 0.4s
    cubic-bezier(
      0.25,
      1,
      0.5,
      1
    );
}

.circle-btn:hover {
  background:
    linear-gradient(
      135deg,
      #1A5A69 0%,
      var(--color-deep-green-blue) 100%
    );
  box-shadow:
    0 15px 35px rgba(20, 73, 85, 0.4),
    inset 0 4px 8px rgba(255, 255, 255, 0.3),
    inset 0 -4px 8px rgba(0, 0, 0, 0.2);
  transform:
    translateY(-5px);
}

.circle-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation:
    rotateText 12s linear infinite;
}

.circle-text svg {
  width: 100%;
  height: 100%;
}

.circle-text text {
  fill: #fff;
  font-size: 13px;
  font-weight: 700;
}

.circle-icon {
  font-size: 1.8rem;
  transition:
    transform 0.4s
    cubic-bezier(
      0.25,
      1,
      0.5,
      1
    );
  position: relative;
  z-index: 2;
  filter:
    drop-shadow(
      0 3px 5px
      rgba(0,0,0,0.25)
    );
}

.circle-btn:hover .circle-icon {
  transform:
    scale(1.15)
    rotate(-15deg);
}

@keyframes rotateText {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s cubic-bezier(0.25, 1, 0.5, 1),
    transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.i18n-elem {
  transition: opacity 0.3s ease;
}

/* Tablet */
@media (max-width: 992px) {

  header.global-header {
    top: 10px;
    left: 10px;
    right: 10px;
    padding: 10px 20px;
    border-radius: 30px;
  }

  .header-logo-wrap {
    gap: 8px;
  }

  .header-logo {
    width: 40px;
  }

  .header-logo-text .catch {
    font-size: 0.6rem;
  }

  .header-logo-text .name {
    font-size: 0.85rem;
  }

  .global-nav {
    display: none;
  }

  .section {
    padding-top: 15vw;
    padding-bottom: 15vw;
  }

  .container-dynamic,
  .container-dynamic.reverse {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .btn {
    padding: 0.5rem 0.5rem 0.5rem 1.8rem;
    font-size: 0.95rem;
  }

  .btn::after {
    width: 38px;
    height: 38px;
    margin-left: 15px;
    font-size: 1.1rem;
  }

  .fees-wrapper {
    padding: 40px 20px;
    border-radius: 25px;
  }

  .fees-grid {
    gap: 25px;
  }

  .fee-card {
    padding: 35px 25px;
  }

  .fee-course-header {
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
  }

  .fee-course-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
  }

  .fee-course-icon svg {
    width: 24px;
    height: 24px;
  }

  .fee-course-name {
    font-size: 1.5rem;
  }

  .step-item {
    flex-direction: column;
    gap: 20px;
  }

  .step-item::after {
    left: 35px;
    top: 80px;
    bottom: -30px;
  }

  .step-content {
    padding: 30px 25px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 50px;
  }

  .footer-left {
    align-items: center;
  }

  .footer-logo-wrap {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    margin-bottom: 30px;
  }

  .footer-logo-text {
    text-align: center;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    justify-content: center;
    text-align: center;
    gap: 40px;
  }

  .floating-cta {
    bottom: 20px;
    right: 20px;
  }

  .circle-btn {
    width: 90px;
    height: 90px;
  }

  .circle-text text {
    font-size: 10.5px;
  }

  .circle-icon {
    font-size: 1.5rem;
  }
}

/* Mobile */
@media (max-width: 600px) {

  *,
  *::before,
  *::after {
    min-width: 0;
  }

  html {
    font-size: 15px;
    overflow-x: hidden;
  }

  body {
    overflow-x: clip;
    overflow-wrap: anywhere;
  }

  header.global-header {
    top: 6px;
    left: 6px;
    right: 6px;
    padding: 8px 12px;
    border-radius: 24px;
    gap: 8px;
  }

  .header-logo-wrap {
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .header-logo {
    width: 32px;
  }

  .header-logo-text {
    min-width: 0;
  }

  .header-logo-text .catch {
    display: none;
  }

  .header-logo-text .name {
    display: block;
    max-width: 145px;
    font-size: 0.72rem;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  header.global-header > div:last-child {
    flex: 0 0 auto;
  }

  .lang-switcher {
    margin-left: 6px;
    padding-left: 8px;
    gap: 8px;
    font-size: 0.85rem;
  }

  .page-hero {
    height: auto;
    min-height: 360px;
    padding: 110px 16px 70px;
    border-radius: 0 0 24px 24px;
    background-attachment: scroll;
  }

  .page-hero h1 {
    max-width: 100%;
    font-size:
      clamp(2rem, 11vw, 3rem);
    line-height: 1.08;
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
  }

  .page-hero p {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    line-height: 1.5;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .container-dynamic,
  .container-dynamic.reverse {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sec-title {
    display: block;
    max-width: 100%;
    margin-bottom: 40px;
    font-size:
      clamp(1.55rem, 8vw, 2rem);
    line-height: 1.35;
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
  }

  .btn {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    justify-content: space-between;
    padding: 8px 8px 8px 18px;
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .btn::after {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    margin-left: 10px;
  }

  .btn-outline {
    padding:
      8px 8px 8px 16px !important;
  }

  footer {
    padding: 60px 16px 28px;
  }

  .footer-container {
    width: 100%;
    padding-bottom: 42px;
    gap: 36px;
  }

  .footer-left,
  .footer-right {
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .footer-logo {
    width: 72px;
  }

  .footer-logo-text .name {
    font-size: 1.15rem;
    overflow-wrap: anywhere;
  }

  .footer-nav {
    width: 100%;
    gap: 26px;
  }

  .floating-cta {
    right: 12px;
    bottom: 12px;
  }

  .circle-btn {
    width: 76px;
    height: 76px;
  }

  .circle-text text {
    font-size: 9.5px;
  }

  .circle-icon {
    font-size: 1.25rem;
  }
}

@media (max-width: 600px) {

  .fees-wrapper {
    padding: 30px 12px;
    border-radius: 20px;
  }

  .fee-card {
    padding: 28px 14px;
    border-radius: 18px;
  }

  .fee-course-header {
    align-items: flex-start;
    gap: 12px;
  }

  .fee-course-name {
    font-size: 1.28rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .fee-info-label {
    max-width: 100%;
    padding: 7px 12px;
    font-size: 1rem;
  }

  .fee-info-value,
  .fee-note {
    padding-left: 0;
  }

  .fee-payment-type {
    margin-left: 0;
    max-width: 100%;
  }

  .fee-table {
    width: 100%;
    margin-left: 0;
    table-layout: fixed;
  }

  .fee-table th,
  .fee-table td {
    padding: 10px 4px;
    overflow-wrap: anywhere;
  }

  .fee-table th {
    width: 53%;
    font-size: 0.9rem;
  }

  .fee-table td {
    font-size: 1.05rem;
    text-align: right;
  }

  .flow-section {
    background-attachment: scroll;
    border-radius:
      0 0 24px 24px;
  }

  .step-item {
    gap: 14px;
  }

  .step-marker {
    width: 60px;
    height: 60px;
  }

  .step-item::after {
    left: 29px;
    top: 68px;
  }

  .step-content {
    width: 100%;
    padding: 26px 18px;
    text-align: left;
  }

  .step-content h4 {
    line-height: 1.4;
  }
}

/* 左右幅の統一 */
html,
body {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.container-dynamic,
.container-dynamic.reverse {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left:
    clamp(16px, 7vw, 112px);
  padding-right:
    clamp(16px, 7vw, 112px);
}

@media (max-width: 992px) {

  .container-dynamic,
  .container-dynamic.reverse {
    padding-left: 5vw;
    padding-right: 5vw;
  }
}

@media (max-width: 600px) {

  .container-dynamic,
  .container-dynamic.reverse {
    padding-left: 16px;
    padding-right: 16px;
  }

  .fee-category-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

/* 受講までの流れ：PCの横幅を使う5ステップレイアウト */
.flow-section {
  overflow: hidden;
  border-top:
    8px solid
    var(--color-accent-warm);
  border-radius: 0;
  background: #f3f8f8;
}

.step-container {
  position: relative;
  display: grid;
  grid-template-columns:
    repeat(5, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 24px;
}

.step-container::before {
  content: "";
  position: absolute;
  top: 53px;
  left: 4%;
  right: 4%;
  height: 3px;
  background:
    linear-gradient(
      90deg,
      var(--color-celeste) 0%,
      var(--color-accent-warm) 100%
    );
}

.step-item {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  margin: 0;
}

.step-item::after {
  display: none;
}

.step-marker {
  width: 60px;
  height: 60px;
  margin-left: 18px;
  border: 3px solid #fff;
  background:
    var(--color-deep-green-blue);
  box-shadow:
    0 8px 18px
    rgba(20, 73, 85, 0.2);
}

.step-item:nth-child(even)
.step-marker {
  background:
    var(--color-accent-warm);
}

.step-marker span:first-child,
.step-marker span:last-child {
  color: #fff;
}

.step-marker span:last-child {
  font-size: 1.45rem;
}

.step-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 310px;
  padding: 28px 24px 30px;
  border: 0;
  border-top:
    4px solid
    var(--color-celeste);
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 12px 28px
    rgba(20, 73, 85, 0.07);
  text-align: left;
}

.step-item:nth-child(even)
.step-content {
  border-top-color:
    var(--color-accent-warm);
}

.step-item:hover .step-content {
  transform:
    translateY(-5px);
  box-shadow:
    0 20px 38px
    rgba(20, 73, 85, 0.12);
}

.step-content h4 {
  min-height: 3.2em;
  margin-bottom: 16px;
  font-size: 1.25rem;
  line-height: 1.45;
}

.step-content p {
  font-size: 0.98rem;
  line-height: 1.85;
}

.flow-action {
  margin-top: 56px;
  text-align: center;
}

@media (max-width: 1300px) {

  .step-container {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .step-container::before {
    display: none;
  }

  .step-marker {
    margin-left: 0;
  }

  .step-content {
    min-height: 0;
  }

  .step-content h4 {
    min-height: 0;
  }

  .step-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width:
      calc(50% - 9px);
    justify-self: center;
  }
}

@media (max-width: 700px) {

  .flow-section {
    border-top-width: 6px;
  }

  .step-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .step-item:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
  }

  .step-item {
    gap: 12px;
  }

  .step-marker {
    width: 56px;
    height: 56px;
  }

  .step-content {
    padding: 24px 20px 26px;
  }

  .step-content p {
    font-size: 0.95rem;
  }

  .flow-action {
    margin-top: 40px;
  }
}

/* =========================================================
   2026 Revision: Fees Clean Layout (No Photos)
========================================================= */
.fee-card-photo,
.fee-course-icon,
.fee-course-thumb {
  display: none !important;
}

.fee-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
}

.fee-card:not(.variant-admin) {
  display: grid !important;
  grid-template-columns: 280px 1fr !important;
  gap: 32px !important;
  align-items: start !important;
}

.fee-card:not(.variant-admin) .fee-course-header {
  border-right: 1px solid var(--ui-line) !important;
  padding-right: 28px !important;
}

@media (max-width: 900px) {
  .fee-card:not(.variant-admin) {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .fee-card:not(.variant-admin) .fee-course-header {
    border-right: none !important;
    border-bottom: 1px solid var(--ui-line) !important;
    padding-right: 0 !important;
    padding-bottom: 16px !important;
  }
}

/* =========================================================
   Clean Backgrounds for Fees Page
========================================================= */

/* Fees Main Section */
.fees-page-section {
  background-color: var(--color-bg-base);
}

.fees-wrapper {
  background: #FFFFFF;
  border-radius: 16px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(20, 73, 85, 0.08);
  box-shadow: 0 8px 24px rgba(20, 73, 85, 0.05);
}

.fee-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(20, 73, 85, 0.08) !important;
  border-radius: 12px !important;
  padding: 24px !important;
  box-shadow: 0 6px 20px rgba(20, 73, 85, 0.04) !important;
}

.fee-card.variant-admin {
  background: #FAF8F5 !important;
  border-top: 4px solid var(--color-accent-warm) !important;
}

/* Enrollment Flow Section */
.flow-section {
  background-color: var(--color-bg-warm) !important;
}

.step-item .step-content {
  background: #FFFFFF !important;
  border: 1px solid rgba(20, 73, 85, 0.08) !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 20px rgba(20, 73, 85, 0.04) !important;
}

/* =========================================================
   2026 Revision: Tuition tables
   カードの装飾を抑え、コース名と料金を比較しやすい表形式にする。
========================================================= */
.fees-page-section .fees-grid {
  gap: clamp(22px, 3vw, 32px) !important;
}

.fees-page-section .fee-category-heading {
  align-items: center;
  margin: 0;
  padding: 18px clamp(18px, 3vw, 28px);
  border: 1px solid rgba(20, 73, 85, 0.14);
  border-left: 4px solid var(--color-accent-warm);
  border-radius: 10px;
  background: #fcf7f2;
}

.fees-page-section .fee-category-heading:first-child {
  margin-top: 0;
}

.fees-page-section .fee-category-heading h2 {
  margin: 0;
  color: var(--color-deep-green-blue);
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
}

.fees-page-section .fee-gallery-overview {
  display: flex;
  justify-content: center;
  margin: 28px 0 40px;
}

.fees-page-section .fee-gallery-link:focus-visible {
  outline: 3px solid rgba(230, 138, 105, 0.65);
  outline-offset: 4px;
  border-radius: 999px;
}

.fees-page-section .fees-grid > .fee-card {
  display: grid !important;
  grid-template-columns: minmax(220px, 30%) minmax(0, 1fr) !important;
  gap: 0 !important;
  align-items: stretch !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(20, 73, 85, 0.18) !important;
  border-top-width: 1px !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 5px 16px rgba(20, 73, 85, 0.035) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.fees-page-section .fees-grid > .fee-card:hover {
  transform: none !important;
  border-color: rgba(20, 73, 85, 0.28) !important;
  box-shadow: 0 8px 20px rgba(20, 73, 85, 0.06) !important;
}

.fees-page-section .fee-card:not(.variant-admin) .fee-course-header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center;
  min-width: 0;
  min-height: 100%;
  margin: 0 !important;
  padding: clamp(24px, 3vw, 34px) !important;
  border: 0 !important;
  border-right: 1px solid rgba(20, 73, 85, 0.14) !important;
  background: #fcf7f2;
}

.fees-page-section .fee-card .fee-course-name {
  margin: 0;
  color: var(--color-deep-green-blue);
  font-size: clamp(1.25rem, 2vw, 1.65rem) !important;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.fees-page-section .fee-course-subline {
  display: inline-block;
  font-size: 0.9em;
}

@media (min-width: 1280px) {
  .fees-page-section .fee-card.variant-semi .fee-course-name {
    font-size: clamp(1.05rem, 1.2vw, 1.2rem) !important;
    letter-spacing: -0.025em;
    white-space: nowrap;
    overflow-wrap: normal;
  }
}

.fees-page-section .fee-card .fee-info-row {
  min-width: 0;
  margin: 0 !important;
  background: #fff;
}

.fees-page-section .fee-card .fee-info-label {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 12px clamp(20px, 3vw, 32px);
  border: 0;
  border-bottom: 1px solid rgba(20, 73, 85, 0.12);
  border-radius: 0 !important;
  background: #f5f9f8;
  color: var(--color-deep-green-blue);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.fees-page-section .fee-card .fee-info-label::before {
  width: 20px;
  height: 20px;
  background: var(--color-accent-warm);
  font-size: 0.72rem;
}

.fees-page-section .fee-card .fee-info-value {
  width: 100%;
  min-width: 0;
  padding: clamp(22px, 3vw, 34px) !important;
}

.fees-page-section .fee-card .fee-payment-type {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 18px 0 9px !important;
  padding: 4px 0 4px 11px;
  border: 0;
  border-left: 3px solid var(--color-accent-warm);
  border-radius: 0 !important;
  background: transparent;
  line-height: 1.55;
}

.fees-page-section .fee-card .fee-payment-type:first-child {
  margin-top: 0 !important;
}

.fees-page-section .fee-card .fee-table {
  width: 100% !important;
  margin: 0 0 16px !important;
  border: 1px solid rgba(20, 73, 85, 0.14);
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: #fff;
}

.fees-page-section .fee-card .fee-table th,
.fees-page-section .fee-card .fee-table td {
  padding: 12px clamp(12px, 2vw, 20px);
  border-bottom: 1px solid rgba(20, 73, 85, 0.11);
  vertical-align: middle;
}

.fees-page-section .fee-card .fee-table th {
  width: 55%;
  background: #fbf8f4;
  color: #4c5b5f;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.5;
}

.fees-page-section .fee-card .fee-table td {
  width: 45%;
  border-left: 1px solid rgba(20, 73, 85, 0.11);
  color: var(--color-deep-green-blue);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 800;
  line-height: 1.4;
  text-align: right;
  white-space: nowrap;
}

.fees-page-section .fee-card .fee-table tr:last-child th,
.fees-page-section .fee-card .fee-table tr:last-child td {
  border-bottom: 0;
}

.fees-page-section .fee-card .fee-note {
  margin-top: 14px;
  padding-left: 0 !important;
  color: #58666a;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* 入学金も授業料と同じ罫線・行面で見せる。 */
.fees-page-section .fees-grid > .fee-card.variant-admin {
  display: block !important;
  width: min(100%, 760px);
  justify-self: center;
  margin-inline: auto;
  padding: clamp(22px, 3vw, 32px) !important;
  border-top: 1px solid rgba(20, 73, 85, 0.18) !important;
  background: #fff !important;
}

.fees-page-section .fee-card.variant-admin > .fee-info-value {
  padding: 0 !important;
}

.fees-page-section .fee-card.variant-admin .fee-table {
  margin-bottom: 18px !important;
}

/* 2週間集中コースはプライベートレッスン内のサブ項目として見せる。 */
.fees-page-section .fee-card.variant-private + .fee-card.variant-short {
  align-self: stretch;
  margin-top: -12px !important;
  margin-left: clamp(18px, 4vw, 52px) !important;
  border-left: 4px solid rgba(230, 138, 105, 0.58) !important;
}

.fees-page-section
  .fee-card.variant-private
  + .fee-card.variant-short
  .fee-course-header {
  background: #fffaf6;
}

@media (max-width: 900px) {
  .fees-page-section .fees-grid > .fee-card:not(.variant-admin) {
    display: block !important;
  }

  .fees-page-section .fee-card:not(.variant-admin) .fee-course-header {
    min-height: 0;
    padding: 19px 20px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(20, 73, 85, 0.14) !important;
  }

  .fees-page-section .fee-card .fee-info-value {
    padding: 22px 20px !important;
  }

  .fees-page-section .fee-card.variant-private + .fee-card.variant-short {
    margin-top: -10px !important;
    margin-left: 16px !important;
  }
}

/* 受講までの流れ：各ステップの写真 */
.flow-section .step-image {
  width: 100%;
  height: 132px;
  margin: 0 0 20px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-pale-celeste);
}

.flow-section .step-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 1300px) {
  .flow-section .step-image {
    height: 170px;
  }
}

@media (max-width: 700px) {
  .flow-section .step-image {
    height: 180px;
    margin-bottom: 18px;
  }
}

@media (max-width: 600px) {
  .fees-page-section .fees-wrapper {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .fees-page-section .fee-category-heading {
    align-items: flex-start;
    gap: 6px;
    padding: 16px;
  }

  .fees-page-section .fees-grid > .fee-card,
  .fees-page-section .fees-grid > .fee-card.variant-admin {
    border-radius: 8px !important;
  }

  .fees-page-section .fee-card .fee-info-label {
    padding: 10px 16px;
  }

  .fees-page-section .fee-card .fee-info-value,
  .fees-page-section .fees-grid > .fee-card.variant-admin {
    padding: 18px 16px !important;
  }

  .fees-page-section .fee-card .fee-table th,
  .fees-page-section .fee-card .fee-table td {
    padding: 10px;
  }

  .fees-page-section .fee-card .fee-table th {
    width: 56%;
    font-size: 0.88rem;
  }

  .fees-page-section .fee-card .fee-table td {
    width: 44%;
    font-size: 1rem;
  }

  .fees-page-section .fee-card.variant-private + .fee-card.variant-short {
    margin-left: 9px !important;
  }
}

/* =========================================================
   2026 Revision: At-a-glance course comparison
========================================================= */
.fee-comparison {
  margin: 0 0 clamp(58px, 7vw, 88px);
  padding: clamp(22px, 3.5vw, 42px);
  border: 1px solid rgba(20, 73, 85, 0.12);
  border-radius: 18px;
  background: rgba(248, 251, 250, 0.96);
}

.fee-comparison-heading {
  margin-bottom: clamp(24px, 3vw, 36px);
  text-align: center;
}

.fee-comparison-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--color-accent-warm);
  font-family: var(--font-en);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.fee-comparison-heading h3 {
  margin: 0;
  color: var(--color-deep-green-blue);
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  line-height: 1.4;
}

.fee-comparison-heading p {
  margin: 8px 0 0;
  color: #58666a;
  font-size: 0.96rem;
  line-height: 1.7;
}

.fee-comparison-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(20, 73, 85, 0.14);
  border-radius: 14px;
  background: rgba(20, 73, 85, 0.14);
}

.fee-compare-column {
  --compare-accent: #4aa9ad;
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: #fff;
}

.fee-compare-column--private {
  --compare-accent: #e68a69;
}

.fee-compare-column--semi {
  --compare-accent: #d5a34c;
}

.fee-compare-column--special {
  --compare-accent: #8f83c6;
}

.fee-compare-header {
  min-height: 154px;
  padding: 22px 18px 18px;
  border-top: 5px solid var(--compare-accent);
  background: #fcfaf7;
  text-align: center;
}

.fee-compare-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--compare-accent);
  color: #fff;
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 800;
}

.fee-compare-header h4 {
  margin: 0;
  color: var(--color-deep-green-blue);
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  line-height: 1.45;
}

.fee-compare-header p {
  margin: 7px 0 0;
  color: #667377;
  font-size: 0.82rem;
  line-height: 1.55;
}

.fee-compare-list {
  display: contents;
  margin: 0;
}

.fee-compare-row {
  min-height: 100px;
  padding: 15px 17px;
  border-top: 1px solid rgba(20, 73, 85, 0.1);
}

.fee-compare-row--price {
  min-height: 124px;
  background: rgba(248, 245, 240, 0.58);
}

.fee-compare-row dt {
  margin-bottom: 7px;
  color: #738084;
  font-size: 0.75rem;
  font-weight: 700;
}

.fee-compare-row dd {
  margin: 0;
  color: #3f5054;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.6;
}

.fee-compare-row dd strong {
  display: block;
  color: var(--color-deep-green-blue);
  font-size: clamp(1.08rem, 1.65vw, 1.38rem);
  font-weight: 800;
  line-height: 1.4;
}

.fee-compare-row dd small {
  display: block;
  margin-top: 4px;
  color: #667377;
  font-size: 0.78rem;
  font-weight: 600;
}

.fee-compare-subplan {
  margin: 12px 14px 0;
  padding: 12px 13px;
  border-left: 3px solid var(--compare-accent);
  background: #fff7f1;
  color: #59676b;
  font-size: 0.76rem;
}

.fee-compare-subplan span,
.fee-compare-subplan strong,
.fee-compare-subplan small {
  display: block;
}

.fee-compare-subplan span {
  margin-bottom: 3px;
  font-weight: 800;
}

.fee-compare-subplan strong {
  color: var(--color-deep-green-blue);
  font-size: 1rem;
}

.fee-compare-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: auto;
  border-top: 1px solid rgba(20, 73, 85, 0.1);
  color: var(--color-deep-green-blue);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.fee-compare-link::after {
  content: "↓";
  margin-left: 7px;
  color: var(--compare-accent);
}

.fee-compare-link:hover {
  background: rgba(129, 216, 208, 0.09);
}

.fee-compare-link:focus-visible {
  outline: 3px solid rgba(230, 138, 105, 0.6);
  outline-offset: -4px;
}

.fee-comparison-note {
  margin: 16px 0 0;
  color: #667377;
  font-size: 0.8rem;
  line-height: 1.65;
}

#group-fees,
#private-fees,
#semi-private-fees,
#special-fees,
#special-group-fees {
  scroll-margin-top: 130px;
}

@media (max-width: 1050px) {
  .fee-comparison-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .fee-comparison {
    padding: 18px 14px;
    border-radius: 14px;
  }

  .fee-comparison-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .fee-compare-column {
    overflow: hidden;
    border: 1px solid rgba(20, 73, 85, 0.14);
    border-radius: 12px;
  }

  .fee-compare-header {
    min-height: 0;
    padding: 18px 16px;
  }

  .fee-compare-row,
  .fee-compare-row--price {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    min-height: 0;
    gap: 12px;
    padding: 13px 15px;
  }

  .fee-compare-row dt {
    margin: 2px 0 0;
  }

  .fee-compare-subplan {
    margin-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fees-page-section .fees-grid > .fee-card {
    transition: none !important;
  }
}

/* =========================================================
   2026 Revision: Restore lesson photography in fee details
========================================================= */
.fees-page-section .fee-card .fee-card-photo {
  display: block !important;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 8px;
  background: #e9f1f0;
}

.fees-page-section .fee-card .fee-card-photo img {
  display: block !important;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
}

.fees-page-section .fee-card .fee-photo-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100%;
  height: 100%;
}

.fees-page-section .fee-card .fee-card-photo-mosaic {
  position: relative;
}

.fees-page-section .fee-card .fee-photo-grid img:first-child {
  grid-row: auto !important;
}

@media (min-width: 1280px) {
  .fees-page-section .fees-grid > .fee-card:not(.variant-admin) {
    grid-template-columns:
      minmax(210px, 26%)
      minmax(360px, 1fr)
      minmax(230px, 30%) !important;
  }

  .fees-page-section .fee-card:not(.variant-admin) .fee-course-header {
    grid-column: 1;
  }

  .fees-page-section .fee-card:not(.variant-admin) .fee-info-row {
    grid-column: 2;
  }

  .fees-page-section .fee-card:not(.variant-admin) .fee-card-photo {
    grid-column: 3;
    grid-row: 1;
    align-self: stretch;
    min-height: 290px;
  }

  .fees-page-section .fee-card.variant-private .fee-card-photo-mosaic {
    align-self: start;
    height: 690px !important;
    min-height: 690px !important;
  }
}

@media (min-width: 901px) and (max-width: 1279px) {
  .fees-page-section .fee-card:not(.variant-admin) .fee-card-photo {
    grid-column: 2;
    height: 230px;
  }

  .fees-page-section .fee-card.variant-private .fee-card-photo-mosaic {
    height: 480px !important;
    min-height: 480px !important;
  }
}

@media (max-width: 900px) {
  .fees-page-section .fee-card .fee-card-photo {
    width: calc(100% - 40px);
    height: 220px;
    margin: 0 20px 20px !important;
  }

  .fees-page-section .fee-card.variant-private .fee-card-photo-mosaic {
    height: 420px !important;
    min-height: 420px !important;
  }
}

@media (max-width: 600px) {
  .fees-page-section .fee-card .fee-card-photo {
    width: calc(100% - 32px);
    height: 190px;
    margin: 0 16px 16px !important;
  }

  .fees-page-section .fee-card.variant-private .fee-card-photo-mosaic {
    height: 360px !important;
    min-height: 360px !important;
  }
}

/* =========================================================
   2026 Revision: Three-photo rails and compact special class
========================================================= */
@media (min-width: 1280px) {
  /* 授業料の帯と重ならないよう、写真は帯の下から始める。 */
  .fees-page-section
    .fee-card:not(.variant-admin, .variant-special)
    .fee-card-photo-mosaic {
    align-self: stretch !important;
    height: auto !important;
    min-height: 0 !important;
    margin-top: 54px !important;
  }

  /* 写真のない特別クラスは、内容に合わせた2列に戻す。 */
  .fees-page-section .fees-grid > .fee-card.variant-special {
    grid-template-columns: minmax(240px, 30%) minmax(0, 1fr) !important;
    min-height: 0 !important;
  }

  .fees-page-section .fee-card.variant-special .fee-course-header {
    grid-column: 1;
    min-height: 0 !important;
  }

  .fees-page-section .fee-card.variant-special .fee-info-row {
    grid-column: 2;
    min-height: 0 !important;
  }
}

.fees-page-section .fee-card.variant-special .fee-info-value p {
  margin: 0;
}

@media (min-width: 901px) and (max-width: 1279px) {
  .fees-page-section .fee-card .fee-card-photo-mosaic {
    height: 360px !important;
    min-height: 360px !important;
  }

  .fees-page-section .fee-card.variant-private .fee-card-photo-mosaic {
    height: 480px !important;
    min-height: 480px !important;
  }
}

@media (max-width: 900px) {
  .fees-page-section .fee-card .fee-card-photo {
    margin-bottom: 0 !important;
  }

  .fees-page-section .fee-card .fee-card-photo-mosaic {
    height: 360px !important;
    min-height: 360px !important;
  }

  .fees-page-section .fee-card.variant-private .fee-card-photo-mosaic {
    height: 420px !important;
    min-height: 420px !important;
  }
}

@media (max-width: 600px) {
  .fees-page-section .fee-card .fee-card-photo-mosaic {
    height: 300px !important;
    min-height: 300px !important;
  }

  .fees-page-section .fee-card.variant-private .fee-card-photo-mosaic {
    height: 360px !important;
    min-height: 360px !important;
  }
}

/* =========================================================
   2026 Revision: Uniform compact fee photo heights
========================================================= */
@media (min-width: 1280px) {
  .fees-page-section
    .fee-card:not(.variant-admin, .variant-special)
    .fee-card-photo-mosaic {
    align-self: start !important;
    height: 340px !important;
    min-height: 340px !important;
  }
}

@media (min-width: 901px) and (max-width: 1279px) {
  .fees-page-section .fee-card .fee-card-photo-mosaic,
  .fees-page-section .fee-card.variant-private .fee-card-photo-mosaic {
    height: 310px !important;
    min-height: 310px !important;
  }
}

@media (max-width: 900px) {
  .fees-page-section .fee-card .fee-card-photo-mosaic,
  .fees-page-section .fee-card.variant-private .fee-card-photo-mosaic {
    height: 260px !important;
    min-height: 260px !important;
  }
}

/* 受講までの流れ：読みやすい幅と内容量に合わせたカード高 */
.flow-section .container-dynamic {
  max-width: 1900px;
  padding-right: clamp(24px, 3vw, 56px);
  padding-left: clamp(24px, 3vw, 56px);
}

.flow-section .step-container {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 1800px;
  align-items: start;
}

.flow-section .step-container::before {
  display: block;
}

.flow-section .step-item {
  align-self: start;
}

.flow-section .step-content {
  flex: none;
  min-height: 0;
}

.flow-section .step-content h4 {
  min-height: 0;
}

.flow-section .step-image {
  height: clamp(132px, 9vw, 170px);
}

@media (max-width: 900px) {
  .flow-section .step-container {
    grid-template-columns: 1fr;
  }

  .flow-section .step-container::before {
    display: none;
  }

  .flow-section .step-image {
    height: 180px;
  }
}

@media (min-width: 901px) {
  .flow-section .step-item:last-child:nth-child(odd) {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
  }
}

/* 料金表：コースごとの指定写真数 */
.fees-page-section .fee-card .fee-photo-grid--two {
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
}

.fees-page-section .fee-card .fee-photo-grid--three {
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
}



/* =========================================================
   2026 Revision: 写真の比率とスペースの最適化
   元写真はすべて 3:2。極端な切り抜きをやめ、カード内の
   空きスペースを写真で使い切る。
========================================================= */

/* --- 料金カードの写真モザイク：広い画面（右カラム縦積み） --- */
@media (min-width: 1280px) {
  .fees-page-section .fee-card .fee-card-photo-mosaic,
  .fees-page-section .fee-card.variant-private .fee-card-photo-mosaic,
  .fees-page-section
    .fee-card:not(.variant-admin, .variant-special)
    .fee-card-photo-mosaic {
    align-self: stretch !important;
    height: auto !important;
    min-height: 300px !important;
    margin: 0 !important;
  }

  .fees-page-section .fee-card .fee-photo-grid {
    position: absolute !important;
    inset: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 6px !important;
  }
}

/* --- 料金カードの写真モザイク：中〜狭い画面（横帯） --- */
@media (max-width: 1279px) {
  .fees-page-section .fee-card .fee-card-photo-mosaic,
  .fees-page-section .fee-card.variant-private .fee-card-photo-mosaic {
    position: relative !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .fees-page-section .fee-card .fee-photo-grid {
    position: static !important;
    height: auto !important;
    gap: 8px !important;
    grid-template-rows: auto !important;
  }

  .fees-page-section .fee-card .fee-photo-grid--two,
  .fees-page-section .fee-card .fee-photo-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: auto !important;
  }

  /* 3枚のときは1枚目を全幅にしてモザイクにする */
  .fees-page-section .fee-card .fee-photo-grid--three img:first-child {
    grid-column: 1 / -1 !important;
  }

  .fees-page-section .fee-card .fee-photo-grid img {
    aspect-ratio: 3 / 2 !important;
    height: auto !important;
    min-height: 0 !important;
  }
}

@media (max-width: 560px) {
  .fees-page-section .fee-card .fee-photo-grid--two,
  .fees-page-section .fee-card .fee-photo-grid--three {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .fees-page-section .fee-card .fee-photo-grid--three img:first-child {
    grid-column: auto !important;
  }
}

/* --- 受講までの流れ：カード幅を確保し、高さを揃えて余白を詰める --- */
.flow-section .container-dynamic {
  max-width: 1900px;
}

/* 1700px以上：5枚を1列に並べ、タイムラインの線を活かす */
.flow-section .step-container {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 1900px;
  gap: clamp(14px, 1.4vw, 22px);
  align-items: stretch;
}

.flow-section .step-item {
  align-self: stretch;
}

.flow-section .step-content {
  flex: 1 1 auto;
  min-height: 0;
  padding: 22px 20px 24px;
}

/* 写真は元画像と同じ 3:2 のまま、カード幅いっぱいに表示する */
.flow-section .step-image {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  margin-bottom: 16px;
}

/*
  1199px以下：3列（最終行の2枚は中央寄せ）。
  6分割グリッドに2つ分ずつ置くことで、全カードの幅を揃えたまま
  最終行に半端な空きセルが残らないようにする。
*/
@media (max-width: 1199px) {
  .flow-section .container-dynamic,
  .flow-section .step-container {
    max-width: 1500px;
  }

  .flow-section .step-container {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    row-gap: clamp(22px, 2.4vw, 34px);
  }

  .flow-section .step-item {
    grid-column: span 2 !important;
    width: auto !important;
    justify-self: stretch !important;
  }

  .flow-section .step-item:nth-child(4) {
    grid-column: 2 / span 2 !important;
  }

  .flow-section .step-item:nth-child(5) {
    grid-column: 4 / span 2 !important;
  }

  .flow-section .step-container::before {
    display: none;
  }

  .flow-section .step-marker {
    margin-left: 0;
  }
}

/* =========================================================
   PPT revision: hierarchy, one-line names and compact imagery
========================================================= */
@media (min-width: 1280px) {
  .fees-page-section .fees-grid > .fee-card:not(.variant-admin) {
    grid-template-columns:
      minmax(250px, 29%)
      minmax(360px, 1fr)
      minmax(210px, 25%) !important;
  }

  .fees-page-section .fee-card .fee-course-name,
  .fees-page-section .fee-card.variant-semi .fee-course-name {
    font-size: clamp(1.08rem, 1.35vw, 1.35rem) !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
    overflow-wrap: normal;
  }

}

.fees-page-section .fee-card .fee-info-label {
  font-size: 0.96rem;
}

.fees-page-section .fee-card .fee-payment-type {
  font-size: 0.96rem;
}

.fees-page-section .fee-card .fee-table th {
  font-size: 0.98rem;
}

/* 1023px以下：2列（最終行の1枚は中央寄せ） */
@media (max-width: 1023px) {
  .flow-section .step-container {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .flow-section .step-item,
  .flow-section .step-item:nth-child(4) {
    grid-column: span 2 !important;
    width: auto !important;
    justify-self: stretch !important;
  }

  .flow-section .step-item:nth-child(5) {
    grid-column: 2 / span 2 !important;
  }
}

/* 700px以下：1列 */
@media (max-width: 700px) {
  .flow-section .step-container {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow-section .step-item,
  .flow-section .step-item:nth-child(4),
  .flow-section .step-item:nth-child(5) {
    grid-column: auto !important;
    width: 100% !important;
  }

  .flow-section .step-image {
    height: auto;
    aspect-ratio: 3 / 2;
  }
}

/* 特別グループクラスの「授業料についてはお問い合わせください。」は1行で表示（2026-09） */
.fee-tuition-inquiry {
  white-space: nowrap;
}

@media (max-width: 680px) {
  .fee-tuition-inquiry {
    font-size: min(1.1rem, 3.9vw);
  }
}

/* スマホの「レッスン開始」案内だけを2行に収める。PC・他言語は変更しない。 */
.flow-start-mobile-break {
  display: none;
}

@media (max-width: 600px) {
  html:lang(ja) .flow-section .step-content:has(> .flow-start-description) {
    container-type: inline-size;
  }

  html:lang(ja) .flow-section .step-content > .flow-start-description {
    font-size: min(0.95rem, 3.95cqi);
    letter-spacing: -0.02em;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: normal;
    text-wrap: balance;
  }

  html:lang(ja) .flow-start-description wbr {
    display: none;
  }

  html:lang(ja) .flow-start-mobile-break {
    display: inline;
  }
}

/* 金額は分断せず、税込表示は大きな料金区分ごとに右上へ1つだけ置く。 */
.fees-page-section .fee-amount {
  white-space: nowrap;
}

.fees-page-section .fee-tax-note {
  color: var(--color-gray-base);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: right;
  white-space: nowrap;
}

/* レッスンの注記は「授業料」帯の右端に揃える。 */
.fees-page-section .fee-info-label > .fee-tax-note {
  flex: 0 0 auto;
  margin: 0 0 0 auto;
  padding: 0;
}

.fees-page-section .variant-admin .fee-info-value > .fee-tax-note,
.fees-page-section .fee-comparison > .fee-tax-note {
  display: block;
  margin: 0 0 10px;
  padding: 0;
}

@media (max-width: 600px) {
  /* 特徴の説明にはカード全幅を使い、末尾だけの折り返しを避ける。 */
  html:lang(ja) .fee-compare-row:last-child {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  html:lang(ja) .fee-compare-column--private .fee-compare-row:last-child {
    container-type: inline-size;
  }

  html:lang(ja) .fee-compare-column--private .fee-compare-row:last-child dd {
    font-size: min(0.88rem, 5.7cqi);
    letter-spacing: 0;
    white-space: nowrap;
  }
}
