: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(15px, 1.1vw, 17px);
  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;
}

br.class-time-mobile-break {
  display: none;
}

br.level-desc-mobile-break {
  display: none;
}

@media (max-width: 600px) {
  .class-time-desktop-separator {
    display: none;
  }

  br.class-time-mobile-break {
    display: inline;
  }

  html:lang(ja) .level-desc-mobile-one-line {
    display: block;
    font-size: min(14px, 5.65cqi);
    letter-spacing: -0.02em;
    white-space: nowrap;
  }

  html:lang(ja) .level-desc-mobile-two-lines,
  html:lang(ja) .level-desc-mobile-match-text-1 {
    display: block;
    font-size: clamp(10px, 3.5vw, 13px);
    letter-spacing: -0.02em;
  }

  html:lang(ja) .level-desc-mobile-two-lines {
    white-space: nowrap;
  }

  html:lang(ja) br.level-desc-mobile-break {
    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;
}

.sec-title.left-align {
  align-items: flex-start;
  text-align: left;
}

/* ボタン */
.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/DSC00482.jpg')
    center 58% / 100% auto no-repeat 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, 6rem);
  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;
}

/* コース共通スタイル */
.group-class-wrapper {
  background-color: #ffffff;
  background-image:
    radial-gradient(
      circle at 100% 0%,
      rgba(129, 216, 208, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 0% 100%,
      rgba(20, 73, 85, 0.03) 0%,
      transparent 40%
    );
  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);
}

.group-class-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;
}

/* グループクラス：基本情報 */
.basic-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.basic-info-row {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 40px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(20, 73, 85, 0.05);
  transition:
    transform 0.4s cubic-bezier(0.2, 1, 0.3, 1),
    box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}

.basic-info-row::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background:
    linear-gradient(
      to bottom,
      var(--color-celeste),
      rgba(129,216,208,0)
    );
}

.basic-info-row:hover {
  transform: translateX(5px);
  box-shadow: 0 20px 50px rgba(20, 73, 85, 0.08);
}

.basic-info-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-light);
  border-radius: 20px;
  flex-shrink: 0;
  color: var(--color-deep-green-blue);
  box-shadow: inset 0 2px 5px rgba(255,255,255,1);
}

.group-lesson-photo {
  width: min(100%, 675px);
  height: 450px;
  margin: 0 auto clamp(28px, 4vw, 48px);
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(20, 73, 85, 0.1);
}

.group-lesson-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  filter: brightness(1.06) saturate(1.02);
  transform: scale(1.28);
  transform-origin: 48% 25%;
}

.group-lesson-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 1.6vw, 16px);
  width: min(100%, 675px);
  margin: calc(clamp(28px, 4vw, 48px) * -1 + clamp(10px, 1.6vw, 16px)) auto clamp(28px, 4vw, 48px);
}

.group-lesson-gallery figure {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(20, 73, 85, 0.1);
}

.group-lesson-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.06) saturate(1.02);
}

@media (max-width: 900px) {
  .group-lesson-gallery {
    width: min(100%, 375px);
  }
}

@media (max-width: 600px) {
  .group-lesson-gallery {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .group-lesson-photo {
    width: min(100%, 375px);
    height: 250px;
  }
}

@media (max-width: 600px) {
  .group-lesson-photo {
    width: 100%;
    height: 210px;
  }
}

.basic-info-icon svg {
  width: 34px;
  height: 34px;
}

.basic-info-content {
  flex-grow: 1;
}

.basic-info-content h4 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-deep-green-blue);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

/* レベルカード */
.level-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
  margin-bottom: 60px;
}

.level-card {
  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #f4f8f9 100%
    );
  border-radius: 24px;
  padding: 45px 40px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.04),
    inset 0 2px 0 rgba(255, 255, 255, 1);
  border: 1px solid rgba(20, 73, 85, 0.08);
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    transform 0.5s cubic-bezier(0.2, 1, 0.3, 1),
    box-shadow 0.5s;
  overflow: hidden;
  z-index: 1;
}

/* 大きな数字の透かし */
.level-card::after {
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-size: 10rem;
  font-family: var(--font-en);
  font-weight: 800;
  color: rgba(20, 73, 85, 0.07);
  z-index: -1;
  line-height: 1;
  transition:
    color 0.5s,
    transform 0.5s;
}

.level-card:nth-child(1)::after {
  content: '1';
}

.level-card:nth-child(2)::after {
  content: '2';
}

.level-card:nth-child(3)::after {
  content: '3';
}

.level-card:nth-child(4)::after {
  content: '4';
}

.level-card:nth-child(5)::after {
  content: '5';
}

.level-card:nth-child(6)::after {
  content: '6';
}

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

.level-card:hover::after {
  color: rgba(129, 216, 208, 0.2);
  transform: scale(1.05) rotate(-5deg);
}

.level-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 25px;
}

.level-name {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--color-deep-green-blue);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.level-name::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent-warm);
}

.level-info {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-gray-base);
  display: inline-block;
  padding-left: 22px;
}

.level-desc {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--color-text-main);
  font-weight: 500;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* 上級の長文は文節改行・行長の均等化をせず、一続きの段落として折り返す。 */
html:lang(ja) .level-card--advanced > .level-desc {
  display: block;
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
  text-wrap: wrap;
}

.level-desc .level-kanji {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px dashed rgba(20, 73, 85, 0.15);
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-deep-green-blue);
}

.level-desc .level-kanji::before {
  content: 'A';
  font-family: Georgia, serif;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 26px;
  height: 26px;
  background: var(--color-celeste-light);
  border-radius: 6px;
  color: var(--color-deep-green-blue);
  margin-right: 10px;
  font-size: 0.9rem;
}

.level-more {
  margin-top: 24px;
  border-top: 1px solid rgba(20, 73, 85, 0.12);
  padding-top: 18px;
}

.level-more summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  color: var(--color-deep-green-blue);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 10px 16px;
  border: 1px solid rgba(20, 73, 85, 0.2);
  border-radius: 999px;
  background: #fff;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.level-more summary::-webkit-details-marker {
  display: none;
}

.level-more summary::after {
  content: '+';
  font-size: 1.2rem;
  line-height: 1;
}

.level-more[open] summary::after {
  content: '−';
}

.level-more summary:hover {
  background: var(--color-deep-green-blue);
  color: #fff;
}

.level-more-body {
  padding: 20px 4px 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-main);
}

.level-more-body h4 {
  margin: 18px 0 8px;
  font-size: 1rem;
  color: var(--color-deep-green-blue);
}

.level-more-body ul {
  margin: 0;
  padding-left: 1.35em;
}

.level-more-body li {
  margin-bottom: 5px;
}

.level-kanji-count {
  margin-top: 16px;
  font-weight: 800;
  color: var(--color-deep-green-blue);
}

/* カスタマイズコース */
.custom-course-section {
  background-color: var(--color-bg-white);
  border-radius: 40px 40px 0 0;
  margin-top: -40px;
  padding-top: 8vw;
  position: relative;
  z-index: 10;
}

.course-row {
  display: flex;
  align-items: center;
  gap: 6vw;
  margin-bottom: 8vw;
}

.course-row:nth-child(even) {
  flex-direction: row-reverse;
}

.course-img-wrap {
  flex: 1;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(20, 73, 85, 0.1);
}

.course-img-wrap::after {
  display: none;
}

.course-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  filter: brightness(1.08) saturate(1.02) contrast(0.98);
  transition: transform 0.8s, filter 0.4s ease;
}

.course-row:hover .course-img {
  transform: scale(1.05);
}

.course-content {
  flex: 1;
}

.course-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-deep-green-blue);
  margin-bottom: 25px;
  line-height: 1.3;
}

.course-desc {
  font-size: 1.15rem;
  line-height: 2;
  color: var(--color-text-main);
  font-weight: 500;
  margin-bottom: 40px;
}

/* その他のコース */
.other-courses {
  background:
    linear-gradient(
      135deg,
      var(--color-deep-green-blue) 0%,
      #0b2c33 100%
    );
  color: #fff;
  border-radius: 30px;
  padding: 80px 60px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

.other-courses::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(
      circle,
      rgba(129, 216, 208, 0.1) 0%,
      transparent 60%
    );
}

.other-courses h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.other-courses p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 40px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
  font-weight: 500;
}

/* フッター・CTA系 */
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);
}

.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;
}

@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 {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .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;
  }

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

  .basic-info-list {
    gap: 15px;
  }

  .basic-info-row {
    padding: 30px 25px;
    flex-direction: column;
    gap: 20px;
    border-left: none;
  }

  .basic-info-row::after {
    width: 100%;
    height: 4px;
    background:
      linear-gradient(
        to right,
        var(--color-celeste),
        rgba(129,216,208,0)
      );
  }

  .basic-info-icon {
    width: 55px;
    height: 55px;
  }

  .basic-info-icon svg {
    width: 29px;
    height: 29px;
  }

  .level-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .level-name {
    font-size: 1.5rem;
  }

  .level-card::after {
    font-size: 8rem;
    right: -5px;
    bottom: -10px;
  }

  .course-row,
  .course-row:nth-child(even) {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 15vw;
  }

  .course-img {
    height: 250px;
  }

  .course-title {
    font-size: 1.8rem;
  }

  .course-desc {
    font-size: 1rem;
  }

  .other-courses {
    padding: 50px 30px;
  }

  .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 layout hardening: 360–600px */
@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;
    background-position: center 58%;
    background-size: 100% auto;
    background-repeat: no-repeat;
  }

  .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) {

  .group-class-wrapper {
    padding: 30px 16px;
    border-radius: 20px;
  }

  .basic-info-row {
    padding: 26px 18px;
  }

  .basic-info-content h4 {
    font-size: 1.2rem;
  }

  .basic-info-content p {
    font-size: 0.98rem;
    line-height: 1.8;
  }

  .level-card {
    padding: 28px 18px;
    border-radius: 20px;
  }

  .level-name {
    font-size: 1.35rem;
  }

  .level-info {
    padding-left: 22px;
    font-size: 0.88rem;
  }

  .level-desc {
    font-size: 0.98rem;
    line-height: 1.8;
  }

  .level-more summary {
    width: 100%;
    justify-content: space-between;
  }

  .level-more-body {
    padding-top: 18px;
    font-size: 0.93rem;
  }

  .level-more-body ul {
    padding-left: 1.2em;
  }

  .custom-course-section {
    border-radius: 24px 24px 0 0;
  }

  .course-row,
  .course-row:nth-child(even) {
    gap: 22px;
    margin-bottom: 72px;
  }

  .course-img-wrap,
  .course-content {
    width: 100%;
  }

  .course-img {
    height: 210px;
  }

  .course-title {
    font-size: 1.55rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .course-desc {
    font-size: 0.98rem;
    line-height: 1.85;
  }
}

/* 左右幅の統一：全ページのコンテンツを画面中央に配置 */
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;
  }
}

.level-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 980px;
  margin: 34px auto 55px;
}

.level-path-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 12px 16px;
  color: var(--color-deep-green-blue);
  background: #fff;
  border: 1px solid rgba(20, 73, 85, 0.12);
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(20, 73, 85, 0.05);
}

.level-path-step:nth-child(5) {
  grid-column: 3;
}

.level-path-step:nth-child(6) {
  grid-column: 2;
}

.level-path-step:nth-child(7) {
  grid-column: 1;
}

.level-path-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  color: #fff;
  background: var(--color-deep-green-blue);
  border-radius: 50%;
  font-family: var(--font-en);
  font-size: 0.82rem;
}

.level-path-note {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--color-gray-base);
  font-size: 0.88rem;
  text-align: center;
}

@media (max-width: 760px) {

  .level-path {
    grid-template-columns: 1fr;
  }

  .level-path-step:nth-child(n) {
    grid-column: 1;
  }
}

/* =========================================================
   Level Progress Visual (2026 Revision)
========================================================= */
.level-progress-visual {
  max-width: 860px;
  margin: 30px auto 50px;
  padding: 36px 32px 28px;
  background: #fff;
  border: 1px solid rgba(20, 73, 85, 0.12);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(20, 73, 85, 0.06);
}

.level-progress-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  margin-bottom: 24px;
}

.level-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
}

.level-progress-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--color-deep-green-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(20, 73, 85, 0.15);
  transition: all 0.3s ease;
  position: relative;
}

.level-progress-dot::after {
  content: "▲";
  font-size: 0.75rem;
  color: var(--color-deep-green-blue);
}

.level-progress-step--beginner .level-progress-dot {
  border-color: #4AA9AD;
}
.level-progress-step--beginner .level-progress-dot::after {
  color: #4AA9AD;
}

.level-progress-step--pre-intermediate .level-progress-dot {
  border-color: #144955;
}
.level-progress-step--pre-intermediate .level-progress-dot::after {
  color: #144955;
}

.level-progress-step--intermediate .level-progress-dot {
  border-color: #E68A69;
}
.level-progress-step--intermediate .level-progress-dot::after {
  color: #E68A69;
}

.level-progress-step--advanced .level-progress-dot {
  border-color: #D4A373;
}
.level-progress-step--advanced .level-progress-dot::after {
  color: #D4A373;
}

.level-progress-step span {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-deep-green-blue);
}

.level-progress-line {
  flex: 1;
  height: 4px;
  background: linear-gradient(90deg, #4AA9AD, #144955, #E68A69, #D4A373);
  border-radius: 2px;
  margin-top: -30px;
}

.level-progress-note {
  font-size: 0.95rem;
  color: var(--color-gray-base);
  text-align: center;
  margin: 0;
  font-weight: 500;
}

@media (max-width: 640px) {
  .level-progress-track {
    flex-direction: column;
    gap: 20px;
  }
  .level-progress-line {
    width: 4px;
    height: 24px;
    flex: none;
    margin: 0;
    background: var(--color-deep-green-blue);
  }
  .level-progress-step {
    flex-direction: row;
    width: 100%;
    justify-content: flex-start;
    padding-left: 20px;
  }
}

/* =========================================================
   Differentiated Other Lessons Styling
========================================================= */
.custom-course-section {
  background-color: var(--color-bg-warm);
}

.course-row {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 50px;
  border: 1px solid rgba(20, 73, 85, 0.08);
  box-shadow: 0 12px 30px rgba(20, 73, 85, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(20, 73, 85, 0.1);
}

.course-row--private {
  border-left: 6px solid var(--color-deep-green-blue);
  background: linear-gradient(135deg, #fff 0%, #F5FAFB 100%);
}

.course-row--semi-private {
  border-left: 6px solid var(--color-celeste);
  background: linear-gradient(135deg, #fff 0%, #F0F9F8 100%);
}

.course-row--special {
  border-left: 6px solid var(--color-accent-warm);
  background: linear-gradient(135deg, #fff 0%, #FAF5F2 100%);
}

/* Level cards active / interactive clarity */
.level-card {
  transition: all 0.3s ease !important;
}

.level-card:hover {
  border-color: var(--color-deep-green-blue) !important;
  box-shadow: 0 16px 36px rgba(20, 73, 85, 0.14) !important;
  transform: translateY(-3px) !important;
}

.level-card:has(details[open]) {
  border-color: var(--color-accent-warm) !important;
  background: #FFFDFB !important;
  box-shadow: 0 16px 36px rgba(230, 138, 105, 0.16) !important;
}

/* =========================================================
   Clean Backgrounds for Courses Page
========================================================= */

/* Group Lessons Section */
#group {
  background-color: var(--color-bg-base);
}

.group-class-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);
}

.basic-info-row {
  background: #FAF8F5;
  border-radius: 10px;
  padding: 16px 20px;
  border: 1px solid rgba(20, 73, 85, 0.08);
}

/* Custom & Special Courses Section */
.custom-course-section {
  background-color: var(--color-bg-warm) !important;
}




/* レベル分けカード：横幅を広げる（2026-09） */
@media (min-width: 761px) {
  .group-class-wrapper .level-grid {
    margin-left: calc(-1 * clamp(0px, 3vw, 40px));
    margin-right: calc(-1 * clamp(0px, 3vw, 40px));
    column-gap: clamp(20px, 2vw, 28px) !important;
  }

  .group-class-wrapper .level-card {
    padding: 34px clamp(22px, 2vw, 30px) !important;
    container-type: inline-size;
  }
}

/* 初中級の説明文を1行で表示（カード幅が足りる画面幅のみ） */
@media (min-width: 1360px) {
  .group-class-wrapper .level-card--textbook-5 .level-desc {
    display: block;
    white-space: nowrap;
    font-size: min(1.05rem, 100cqi / 35.6);
  }
}

/* グループ／プライベート／特別レッスンの見出しを同じ書式に揃える（2026-09） */
.group-class-wrapper .course-family-heading--group {
  margin-top: 0;
  text-align: left;
}

/* ヘッダーのメニューから移動したとき、見出しが固定ヘッダーに隠れないように */
#group,
#private,
#special {
  scroll-margin-top: 130px;
}

@media (max-width: 1120px) {
  #group,
  #private,
  #special {
    scroll-margin-top: 100px;
  }
}

/* レベル詳細の「学習・練習内容（例）」：先頭に「・」を付け、折り返した行は文字の位置をそろえる（2026-09） */
.level-more-body ul {
  padding-left: 0;
  list-style: none;
}

.level-more-body li {
  position: relative;
  padding-left: 1.15em;
}

.level-more-body li::before {
  content: "・";
  position: absolute;
  top: 0;
  left: -0.1em;
  color: var(--color-deep-green-blue);
}

/* 指定された学習内容は、日本語のスマホ表示で1項目を1行に収める。 */
@media (max-width: 600px) {
  html:lang(ja) .level-card,
  html:lang(ja) .level-more-body {
    container-type: inline-size;
  }

  html:lang(ja) .level-more-body li.level-one-line {
    font-size: min(13px, 5.3cqi);
    letter-spacing: -0.01em;
    white-space: nowrap;
  }
}

/* 指定されたスマホ本文は、文節ごとの区切りを外して自然に折り返す。 */
@media (max-width: 600px) {
  html:lang(ja) .level-more-body li.level-outcome-jlpt,
  html:lang(ja) .level-more-body li.level-outcome-natural {
    word-break: normal;
    text-wrap: wrap;
  }

  html:lang(ja) .level-outcome-jlpt-label {
    white-space: nowrap;
  }

  html:lang(ja) .level-outcome-jlpt wbr,
  html:lang(ja) .level-outcome-natural wbr {
    display: none;
  }

  html:lang(ja) .course-row--two-week > .course-content {
    container-type: inline-size;
  }

  html:lang(ja) .course-title--intensive {
    font-size: min(1.55rem, 6.65cqi);
    letter-spacing: 0;
    white-space: nowrap;
    text-wrap: nowrap;
  }

  html:lang(ja) .level-more-body:has(> .pre-intermediate-practice) {
    container-type: inline-size;
  }

  html:lang(ja) .level-more-body > .pre-intermediate-practice {
    font-size: min(0.93rem, 5.2cqi);
    letter-spacing: 0;
    word-break: normal;
    text-wrap: wrap;
  }

  html:lang(ja) .level-card--textbook-5 > .level-desc,
  html:lang(ja) .level-card--textbook-6 > .level-desc {
    display: block;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: normal;
    text-wrap: wrap;
  }

  html:lang(ja) .level-card--textbook-5 > .level-desc br,
  html:lang(ja) .level-card--textbook-5 > .level-desc wbr,
  html:lang(ja) .level-card--textbook-6 > .level-desc wbr {
    display: none;
  }

  html:lang(ja) .level-guide-visual {
    container-type: inline-size;
  }

  html:lang(ja) .level-guide-visual .mobile-one-line-caption {
    font-size: min(0.95rem, 4cqi);
    letter-spacing: 0;
    white-space: nowrap;
  }
}
