/* html, body {
  overflow-x: hidden;
} */

/* =========================================
   Layout Helpers
========================================= */

/* 可変カラム（Grid/Flexで中身に引っ張られない） */
.flex-fluid,
.grid-fluid {
  min-width: 0;
}

/* 縮ませたくない要素 */
.flex-fixed {
  flex-shrink: 0;
}

/* カードの基本 */
.ui-card {
  box-sizing: border-box;
  width: 100%;
}

/* タイトル省略 */
.ui-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* layout */
.flex-fluid { min-width:0; }
.flex-fixed { flex-shrink:0; }

/* card */
.ui-card { box-sizing:border-box; width:100%; }

/* text */
.ui-truncate {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* section */
.section-inner {
  width:100%;
  margin-inline:auto;
}

.ui-hover-card {
  transition: all .2s ease;
}

.ui-hover-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

/**** End helper ****/

body {
  font-family:
    "Noto Sans JP",
    system-ui,
    -apple-system,
    sans-serif;
}

.container-full {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 0;
  padding-left: 0;
}

/* Swiper tweaks: Hero */
.js-hero-swiper .swiper-pagination {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: auto !important;
  padding: 8px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
}

.js-hero-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  opacity: 1;
  background: rgba(0, 0, 0, 0.18);
  margin: 0 6px !important;
}

.js-hero-swiper .swiper-pagination-bullet-active {
  background: #ba1b21;
}

.js-hero-swiper .swiper-button-prev,
.js-hero-swiper .swiper-button-next {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: #fff;
}

.js-hero-swiper .swiper-button-prev:hover,
.js-hero-swiper .swiper-button-next:hover {
  background: rgba(255, 255, 255, 0.28);
}

.js-hero-swiper .swiper-button-prev::after,
.js-hero-swiper .swiper-button-next::after {
  font-size: 16px;
  font-weight: 700;
}

/* Hero pagination outside (below the slider) */
.hero-pagination-outside {
  position: absolute;
  left: 50% !important;
  right: 50% !important;
  bottom: -10px !important; /* ← 外側に出す距離（調整点） */
  transform: translateX(-50%);
  width: auto;
  padding: 4px 10px;
  z-index: 5;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-pagination-outside {
    bottom: -36px !important; /* ← 外側に出す距離（調整点） */
  }
}

.hero-pagination-outside .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  margin: 0 5px !important;
  opacity: 1;
  background: rgba(0, 0, 0, 0.9);
}

.hero-pagination-outside .swiper-pagination-bullet-active {
  background: rgba(186, 27, 33, 0.9);
}

/* Hamburger icon (CSS-guarded) */
.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.hamburger__line {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 9999px;
}

/* Drawer menu list reset */
.mobile-menu,
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Top level */
.mobile-menu > li {
  margin: 0 0 4px;
}

.mobile-menu > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 12px 14px;
  border-radius: 12px;

  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;

  color: #2a2a2a;
  background: rgba(0, 0, 0, 0.04);
  text-decoration: none;
}

.mobile-menu > li > a:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* Current page highlight */
.mobile-menu .current-menu-item > a,
.mobile-menu .current-menu-ancestor > a {
  background: rgba(186, 27, 33, 0.1);
  color: #ba1b21;
}

/* Sub menu (children) */
.mobile-menu .sub-menu {
  margin-top: 6px;
  margin-left: 12px;
  padding-left: 10px;
  border-left: 2px solid rgba(0, 0, 0, 0.1);
  display: grid;
  gap: 6px;
}

.mobile-menu .sub-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;

  font-weight: 600;
  font-size: 13px;
  line-height: 1.5;

  color: #343538;
  background: transparent;
  text-decoration: none;
}

.mobile-menu .sub-menu a:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Add subtle arrow for items that have children */
.mobile-menu .menu-item-has-children > a::after {
  content: "›";
  opacity: 0.45;
  font-weight: 900;
}

.js-hero-swiper .swiper-slide {
  backface-visibility: hidden;
}

/* =========================================
   Section Style
   ========================================= */
.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* =========================================
   Top Features: SP layout via FLEX (robust)
   ========================================= */
#top-features .features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
#top-features .features-center {
  flex: 0 0 100%;
  order: 1;
}
#top-features .features-left {
  flex: 0 0 calc(50% - 12px);
  order: 2;
  position: relative;
}
#top-features .features-right {
  flex: 0 0 calc(50% - 12px);
  order: 3;
  position: relative;
}

/* ----- SP: image collage (absolute inside each block) ----- */
/* 左ブロックの“キャンバス”高さを確保 */
#top-features .features-left {
  min-height: 260px; /* 調整点 */
}

/* 右ブロックも高さ確保 */
#top-features .features-right {
  min-height: 260px; /* 調整点 */
}

/* 左：画像2枚をabsolute */
#top-features .features-img1,
#top-features .features-img2 {
  position: absolute;
  height: auto;
}

/* img1（左上の小さい方） */
#top-features .features-img1 {
  width: 100px;
  left: 0;
  top: 10px;
}

/* img2（左下の横長） */
#top-features .features-img2 {
  width: 180px;
  left: 60px;
  top: 120px;
}

/* 右：img3 */
#top-features .features-img3 {
  position: absolute;
  width: 130px; /* 調整点 */
  left: 20px; /* 調整点 */
  top: 30px; /* 調整点 */
  height: auto;
}

/* dot背景もブロック内でabsolute */
#top-features .dotbg-1 {
  position: absolute;
  width: 100px;
  left: 30px;
  top: 50px;
  z-index: -1;
}

#top-features .dotbg-2 {
  position: absolute;
  width: 105px;
  right: 0;
  top: 0;
  z-index: -1;
}

#top-features img.features-img1,
#top-features img.features-img2,
#top-features img.features-img3 {
  max-width: none; /* これ重要：テーマの img{max-width:100%} に邪魔されない */
}

/* =========================================
   PC: 3 columns (grid or flex)
   ========================================= */
@media (min-width: 768px) {
  #top-features .features-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 40px !important;
    align-items: center !important;
  }

  #top-features .features-left {
    grid-column: 1 / 2 !important;
    order: initial !important;
    top: 0;
  }
  #top-features .features-center {
    grid-column: 2 / 3 !important;
    order: initial !important;
  }
  #top-features .features-right {
    grid-column: 3 / 4 !important;
    order: initial !important;
    top: 0;
  }

  #top-features .features-grid {
    display: grid !important;
    grid-template-columns: 25% 50% 25% !important; /* ←ここ幅調整 */
    gap: 40px !important;
    align-items: center !important;
  }

  #top-features .features-left {
    grid-column: 1 / 2 !important;
  }
  #top-features .features-center {
    grid-column: 2 / 3 !important;
  }
  #top-features .features-right {
    grid-column: 3 / 4 !important;
  }
}

@media (min-width: 768px) {
  /* 左ブロックのキャンバス高さ（必要なら） */
  #top-features .features-left {
    min-height: 360px; /* まず固定。後でclampにしてもOK */
  }

  /* 左上 img1 */
  #top-features .features-img1 {
    width: clamp(120px, 10vw, 160px);
    left: clamp(-20px, -1vw, 0px);
    top: 0px;
  }
  /* 左下 img2 */
  #top-features .features-img2 {
    width: clamp(180px, 22vw, 240px);
    left: clamp(40px, 4vw, 110px);
    top: clamp(160px, 10vw, 200px);
  }
  #top-features .dotbg-1 {
    width: clamp(120px, 12vw, 180px);
    left: clamp(10px, 2vw, 40px);
    top: clamp(60px, 6vw, 90px);
  }
}

@media (min-width: 768px) {
  #top-features .features-right {
    min-height: 360px;
  }
  #top-features .features-img3 {
    width: clamp(120px, 18vw, 200px);
    left: calc(clamp(0px, 1.5vw, 20px) * -1);
    top: clamp(40px, 6vw, 70px);
  }
  #top-features .dotbg-2 {
    width: clamp(100px, 11vw, 140px);
    right: clamp(0px, 2vw, 10px);
    top: 0px;
  }
}

.js-hero-swiper,
.js-hero-swiper .swiper-wrapper,
.js-hero-swiper .swiper-slide {
  height: 100%;
}

.footer-sns {
  margin-top: 28px;
}

.footer-sns-label {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #222;
}

.footer-sns-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-sns-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  text-decoration: none;
}

.footer-sns-icons .fa-instagram {
  color: #e4405f;
}

.footer-sns-icons .fa-youtube {
  color: #ff0000;
}

/* =========================
   Footer menu (Figma style)
   ========================= */

.footer-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 768px) {
  .footer-menu-list {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }
}

.footer-menu-item {
  margin: 0;
  padding: 0;
}

.footer-menu-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #222;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.footer-menu-link:hover {
  opacity: 0.8;
}

.footer-menu-arrow {
  color: #c94146;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  display: inline-block;
  transform: translateY(-1px);
}

.footer-menu-text {
  display: inline-block;
}

/* =========================================
   Breadcrumb
   ========================================= */
.breadcrumb {
  padding: 14px 0 0;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #666;
  font-size: 13px;
  line-height: 1.6;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb-item:not(:last-child)::after {
  content: "/";
  color: #aaa;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #ba1b21;
  text-decoration: underline;
}

.breadcrumb span[aria-current="page"] {
  color: #222;
}

@media (max-width: 768px) {
  .breadcrumb {
    display: none;
  }
}

/* =========================================
   Page Intro
   ========================================= */
.page-intro {
  padding: 20px 0 0;
  background: linear-gradient(180deg, #f7f8fb 0%, #ffffff 100%);
}

.page-intro-header {
  max-width: 90%;
}

.page-intro-title {
  margin: 0;
  color: #222;
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-align: center;
}

.page-intro-title::after {
  content: "";
  display: block;
  width: 108px;
  height: 4px;
  margin: 16px auto;
  border-radius: 9999px;
  background: #ba1b21;
}

.page-intro-lead {
  margin: 20px 0 0;
  max-width: 760px;
  color: #555;
  font-size: 15px;
  line-height: 2;
}

@media (min-width: 768px) {
  .page-intro-lead {
    font-size: 16px;
  }
}

/* =========================================
   Page Content
   ========================================= */
.page-content {
  min-height: 320px;
  padding: 0 12px 40px;
}

@media (min-width: 768px) {
  .page-content {
    min-height: 400px;
  }
}
.entry-content {
  color: #343538;
  font-size: 15px;
  line-height: 2;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2.2em;
  margin-bottom: 0.8em;
  color: #222;
  font-weight: 700;
  line-height: 1.4;
}

.entry-content h2 {
  font-size: clamp(24px, 2.4vw, 32px);
}

.entry-content h3 {
  font-size: clamp(20px, 1.8vw, 24px);
}

.entry-content h4 {
  font-size: 18px;
}

.entry-content p {
  margin: 0 0 1.4em;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.4em 1.4em;
}

.entry-content li {
  margin-bottom: 0.45em;
}

.entry-content a {
  color: #ba1b21;
  text-decoration: underline;
}

.entry-content a:hover {
  opacity: 0.8;
}

.entry-content img {
  height: auto;
  border-radius: 16px;
}

@media (max-width: 767px) {
  .entry-content {
    font-size: 14px;
    line-height: 1.9;
  }

  .entry-content h2 {
    font-size: 24px;
  }

  .entry-content h3 {
    font-size: 20px;
  }

  .entry-content h4 {
    font-size: 17px;
  }
}

.front-section__inner.container {
  width: 100%;
}

/* =========================================
   Front Page / COURSE
========================================= */
.front-course {
  background: #f9f3f2;
  padding: 78px 0 88px;
}

.front-course__header {
  text-align: center;
}

/* .front-course__title-en {
  margin: 0;
  color: #ba1b21;
  font-size: clamp(2rem, 3vw, 2.625rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.03em;
}

.front-course__title-ja {
  margin-top: 6px;
  color: #ba1b21;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
} */

.front-course__grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.front-course-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  background: #fff;
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
}

.front-course-card__head {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
}

.front-course-card__title-group {
  position: relative;
  flex: 1 1 40%;
  min-width: 0;
  padding: 18px 10px 10px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.front-course-card__title-group::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 8px;
  border-radius: 9999px;
  background: currentColor;
}

.front-course-card__title {
  margin: 0;
  color: currentColor;
  font-size: clamp(1.15rem, 4.8vw, 1.5rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.front-course-card__title-en {
  margin: 0 0 4px;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.12em;
  color: #9a9a9a;
  text-transform: uppercase;
}

.front-course-card__image-wrap {
  width: 60%;
  max-width: none;
  flex: 0 0 60%;
  aspect-ratio: 170 / 128;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .front-course-card__title-group {
    flex-basis: 40%;
    padding: 20px 10px 18px 14px;
  }

  .front-course-card__title {
    font-size: clamp(1.25rem, 1.8vw, 1.75rem);
    line-height: 1.28;
  }

  .front-course-card__image-wrap {
    flex-basis: 60%;
    max-width: 190px;
    aspect-ratio: 190 / 132;
  }
}

.front-course-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.front-course-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 16px 18px 18px;
}

.front-course-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.front-course-card__item {
  display: flex;
  align-items: center;
  gap: 9px 0;
}

.front-course-card__item + .front-course-card__item {
  margin-top: 10px;
}

.front-course-card__dot {
  position: relative;
  top: 0.56em;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 9999px;
  background: currentColor;
}

.front-course-card__icon {
  font-size: 14px;
  line-height: 1.4;
  color: currentColor;
}

.front-course-card__text {
  color: #343538;
  font-size: 0.875rem;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.front-course-card__footer {
  margin-top: auto;
  padding-top: 16px;
  text-align: center;
}

.front-course-card__button {
  display: inline-flex;
  min-width: 154px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 7px 18px;
  text-decoration: none;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.2;
  transition: opacity 0.2s ease;
}

.front-course-card__button:hover {
  opacity: 0.88;
}

.front-course-card__button-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}

.front-course-card__button-label::after {
  content: "";
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 0.12em;
}

/* =========================================
   Front Page / Voice
========================================= */
.js-voice-swiper .swiper-wrapper {
  transition-timing-function: linear;
}

.card-in-swiper {
  padding: 1rem;
}

/* -------------------------
   Course color variations
------------------------- */
.front-course-card--elem {
  color: #e97c1d; /* grade.es.base */
}

.front-course-card--elem .front-course-card__button {
  background: #e97c1d;
}

.front-course-card--junior {
  color: #509865; /* grade.ms.base */
}

.front-course-card--junior .front-course-card__button {
  background: #509865;
}

.front-course-card--high {
  color: #3b479e; /* grade.hs.base */
}

.front-course-card--high .front-course-card__button {
  background: #3b479e;
}

/* -------------------------
   Tablet / PC
------------------------- */
@media (min-width: 1024px) {
  .front-course {
    padding: 84px 0 94px;
  }

  .front-course__title-ja {
    margin-top: 8px;
    font-size: 0.8125rem;
  }

  .front-course__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 42px;
  }

  .front-course-card {
    min-height: 292px;
  }

  .front-course-card__title-group {
    padding: 20px 14px 18px 14px;
  }

  .front-course-card__title-en {
    margin-bottom: 6px;
    font-size: 0.6875rem;
  }

  .front-course-card__title {
    font-size: 1.625rem;
    line-height: 1.3;
  }

  .front-course-card__image-wrap {
    max-width: 176px;
    flex-basis: 43%;
    aspect-ratio: 176 / 132;
  }

  .front-course-card__body {
    padding: 18px 20px 20px;
  }

  .front-course-card__item + .front-course-card__item {
    margin-top: 12px;
  }

  .front-course-card__dot {
    top: 0.6em;
  }

  .front-course-card__text {
    font-size: 0.9375rem;
    line-height: 1.82;
  }

  .front-course-card__footer {
    padding-top: 18px;
  }

  .front-course-card__button {
    min-width: 160px;
    min-height: 36px;
    font-size: 0.75rem;
  }
}
