@charset 'UTF-8';
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@300;400;500;700;900&display=swap');

/* reset */
*,
*::after,
*::before {
  box-sizing: border-box
}

ul,
ol {
  list-style-type: none;
}

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

/* variant */
:root {
  /* color */
  --main: #0066cc;
  --main-light: #3388dd;
  --main-dark: #004499;
  --sub: #ffec17;
  --sub-dark: #F59E0B;
  --subaccent: #bad8da;
  --bg: #fafaff;
  --colorless: #fafaff;
  --border: #e2e8f0;
  --bg-paleyellow: #fffbe0;
  --text: #2D3748;
  --text-light: #4A5568;
  --text-muted: #718096;
  --line: #06c755;
  /* space */
  --sp-xs: 8px;
  --sp-s: 16px;
  --sp-m: 24px;
  --sp-l: 36px;
  --sp-xl: 48px;
  /* fontsize */
  --fs-xxs: 10px;
  --fs-xs: 14px;
  --fs-s: 16px;
  --fs-m: 20px;
  --fs-l: 24px;
  --fs-xl: 32px;
  --fs-xxl: 36px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* ダークモード */
    --main: #5599ee;
    /* 明るく調整（視認性UP） */
    --main-light: #77aaff;
    /* さらに明るく */
    --main-dark: #3377cc;
    /* 暗くしすぎない */
    --sub: #ffd700;
    /* 黄色は少し落ち着かせる */
    --sub-dark: #FFA500;
    /* オレンジも調整 */
    --subaccent: #5a8a8c;
    /* 暗めに */
    --bg: #37373d;
    /* ダークグレー */
    --colorless: #fafaff;
    --border: #2a2a35;
    /* 境界線を見えるように */
    --bg-paleyellow: #3a3520;
    /* 黄色の背景は茶色っぽく */
    --text: #e4e4e7;
    /* 明るいグレー */
    --text-light: #a1a1aa;
    /* 中間グレー */
    --text-muted: #71717a;
    /* さらに暗く */
  }
}

.zen-maru-gothic-bold {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  font-style: normal;
}

/*----------------------------------------
 common */
body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

img {
  width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  cursor: pointer;
  color: var(--main);
}

a:hover,
a:active {
  text-decoration: none;
  color: var(--main-light);
}

.wrapper {
  width: 95%;
  max-width: 1204px;
  margin: 0 auto var(--sp-xl);
}

.movein {
  display: inline-block;
  animation: slideIn 1s ease-out forwards;
  transform: translateX(100%);
  opacity: 0;
}

@keyframes slideIn {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }

  60% {
    transform: translateX(-5px);
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.h1 {
  font-size: clamp(8px, 1.5vw, 14px);
  font-weight: 300;
  color: var(--colorless);
  background: var(--main-dark);
  padding: 2px 2px 2px 20px;
}

@media (max-width: 768px) {
  .h1 {
    font-size: clamp(8px, 2.5vw, 14px);
    padding: 2px 2px 2px 20px;
  }
}

.h2 {
  font-size: var(--fs-l);
  color: var(--main);
  margin-bottom: var(--sp-l);
  overflow: visible;
  display: flex;
  align-items: center;
  position: relative;
}

@media (min-width: 1200px) {
  .h2 {
    width: 1200px;
    margin: 0 auto var(--sp-l);
    justify-content: center;
  }
}

.h2::before {
  content: "";
  width: 32px;
  align-self: stretch;
  border-radius: 0 12px 12px 0;
  background-color: var(--main-light);
  display: inline-block;
  margin-right: 16px;
}

.h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 3rem;
  font-weight: 300;
  color: rgba(0, 81, 255, 0.1);
  font-style: italic;
  letter-spacing: 0.1em;
  animation: moveInFromLeft 1s ease-out;
  white-space: nowrap;
  transform: translateX(-100%);
  opacity: 0;
}

.h2.is-animated::after {
  animation: moveInFromLeft 1s ease-out forwards;
}

@keyframes moveInFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (min-width: 1200px) {
  .h2::before {
    position: absolute;
    left: -30%;
    top: 48%;
    width: 65%;
    height: 2px;
    margin-right: 0;
    overflow-x: hidden;
  }
}

.w600txt {
  max-width: 600px;
  margin: 0 auto;
}

/*----------------------------------------
 loading */

#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #98E3F8 0%, #0051FF 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#loading.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
  color: white;
}

/* スピナー（くるくる回る円） */
.spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border: 6px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-content p {
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 0.1em;
}

/*----------------------------------------
 cta */
.cta {
  background: linear-gradient(135deg, #98E3F8 0%, #0051FF 100%);
  padding: 100px 0 var(--sp-s);
  margin-bottom: var(--sp-l);
  position: relative;
  overflow: hidden;
}

.last-cta {
  margin-bottom: 0;
}

.cta-container {
  background-image: url(../img/cta-woman1.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: 100% bottom;
  padding: 3rem 0 5rem;
  color: var(--colorless);
}

.cta-container h2 {
  display: block;
  width: 60%;
  margin-bottom: 2rem;
}

.cta .fast-contact-link {
  width: 60%;
  margin-top: 1rem;
  border-top: 1px dotted var(--colorless);
  padding-top: .5rem;
}

.cta .fast-contact-link a {
  color: inherit;
  display: inline-block;
  padding: 0 5px;
  cursor: pointer;
}

.cta .fast-contact-link a:hover {
  opacity: .8;
}

@media (min-width: 1100px) {
  .cta-container {
    box-sizing: border-box;
    padding-left: 84px;
    background-position: 90% bottom;
  }
}

@media (max-width: 1100px) {
  .cta-container {
    background-size: auto 75%;
  }

  .cta-container-item {
    width: 60%;
  }
}

.ctaBox {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 1100px) {
  .ctaBox {
    gap: 2rem;
  }
}

.ctaBox-item {
  width: 49%;
  max-width: 500px;
  background-color: var(--sub);
  cursor: pointer;
  box-shadow: 0 2px var(--main-dark);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.ctaBox-item::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 30%,
      rgba(255, 255, 255, 0.25) 50%,
      transparent 60%);
  transform: translateX(-100%) translateY(-100%);
  transition: transform 0.6s ease;
}

.ctaBox-item:hover {
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.15),
    0 4px 8px rgba(0, 0, 0, 0.1);
}

.ctaBox-item:hover::after {
  transform: translateX(100%) translateY(100%);
}

.ctaBox-item:active {
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.08);
}

.ctaBox-item a {
  font-size: var(--fs-s);
  color: var(--main);
  display: block;
  padding: var(--sp-s) var(--sp-xs);
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.ctaBox-item p {
  text-align: center;
  font-weight: 750;
  font-size: var(--fs-m);
  letter-spacing: .1rem;
  text-shadow: 0 1px rgba(51, 136, 221, .1);
  margin: 0.5rem 0;
}

.ctaBox-item p::after {
  content: "";
  display: block;
  width: 25%;
  height: 2px;
  margin: 5px auto;
  background-color: var(--colorless);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.ctaBox-item:hover p::after {
  width: 50%;
  height: 1px;
}

.ctaBox-item small {
  display: block;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--main-dark);
  margin-top: 0.5rem;
}

/*----------------------------------------
 header */

.header {
  background-color: var(--bg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 25px 25px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ナビゲーションボックス */
.navBox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* h2（ロゴ） */
.navBox-item h2,
.navBox-item.navBox-item {
  margin: 0;
}

.navBox-item h2 a,
.navBox-item>a {
  color: var(--main-light);
  font-size: var(--fs-l);
  font-weight: bold;
  text-decoration: none;
  display: block;
}

.logoBox {
  padding-left: 1.75em;
  background-image: url(../img/gakuin-logo.png);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}

/* グローバルナビゲーション */
.navBox-gnav {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navBox-gnav-item a {
  color: #333;
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
  transition: color 0.3s;
  position: relative;
  display: inline-block;
}

.navBox-gnav-item a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  /* 文字からの距離、お好みで調整 */
  left: 0;
  width: 0;
  /* 初期状態は幅0 */
  height: 2px;
  /* 線の太さ */
  background-color: #4A90E2;
  transition: width 0.3s ease;
  /* にょって伸びるアニメーション */
}

.navBox-gnav-item a:hover {
  color: #4A90E2;
}

.navBox-gnav-item a:hover::after {
  width: 100%;
}

/* ハンバーガーメニューボタン（初期は非表示） */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: #4A90E2;
  transition: all 0.3s;
}


@media (max-width: 1200px) {
  .navBox {
    position: relative;
  }

  /* ハンバーガーボタン表示 */
  .hamburger {
    display: flex;
  }

  /* ナビゲーションを縦積み・非表示 */
  nav.navBox-item {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }

  /* メニューが開いた状態 */
  nav.navBox-item.is-open {
    max-height: 500px;
  }

  .navBox-gnav {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
  }

  .navBox-gnav-item {
    border-bottom: 1px solid #eee;
  }

  .navBox-gnav-item:last-child {
    border-bottom: none;
  }

  .navBox-gnav-item a {
    display: block;
    padding: 15px 20px;
  }

  .navBox-gnav-item a:hover {
    background-color: #f5f5f5;
  }
}

/* 768px以下でフォントサイズ調整 */
@media (max-width: 768px) {

  .navBox-item h2 a {
    font-size: var(--fs-m);
  }

  .navBox-gnav-item a {
    font-size: var(--fs-xs);
  }
}

/*----------------------------------------
 LINE CTA */
.line-link {
  position: fixed;
  top: 200px;
  right: 0;
  z-index: 999;
}

.line-link a,
.line-link a:link,
.line-link a:visited {
  color: white;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-weight: bold;
  display: inline-block;
  padding: 10px;
  text-decoration: none;
  background-color: var(--line);
  border: 2px solid var(--line);
  border-radius: 5px 0 0 5px;
  transition: all 1ms;
  cursor: pointer;
}

.line-link a:hover,
.line-link a:active {
  color: var(--line);
  background-color: var(--bg);
}

.line-link a:active {
  margin-top: 5px;
}

@media (max-width: 768px) {
  .line-link {
    display: none;
  }
}

/*----------------------------------------
 main-hero */

.main-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 700px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f4f8 0%, #05a7a5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* テキストエリア */
.hero-content {
  width: 280px;
  height: 280px;
  min-height: 280px;
  max-height: 280px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.9);
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  line-height: 1.1;
}

.hero-content h1 {
  transform: rotate(-45deg);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
  color: var(--main);
  font-weight: 500;
  text-align: center;
}

/* 画像エリア */
.sliding-images {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  mask-image: linear-gradient(to right, transparent 0%, black 25%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%);
}

.image-grid {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  gap: 40px;
  height: 100%;
  padding: 40px 0;
}

.image-row {
  display: flex;
  gap: 40px;
  animation: slideLeft 25s linear infinite;
}

.image-row:nth-child(2) {
  margin-left: -160px;
}

.image-item {
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  transform: rotate(45deg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: relative;
}

.image-item img {
  width: 200%;
  height: 200%;
  object-fit: cover;
  transform: rotate(-45deg) scale(0.7);
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -100%;
  margin-top: -100%;
}

@keyframes slideLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* スマホ対応 */
@media (max-width: 768px) {
  .main-hero {
    min-height: 60vh;
    padding: 80px 0 40px;
  }

  .hero-content {
    width: 180px;
    height: 180px;
    min-height: 180px;
    max-height: 180px;
    padding: 20px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .image-item {
    width: 180px;
    height: 180px;
  }

  .image-row {
    gap: 30px;
  }

  .image-grid {
    gap: 30px;
    padding: 20px 0;
  }

  .image-row:nth-child(2) {
    margin-left: -105px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    width: 150px;
    height: 150px;
    min-height: 150px;
    max-height: 150px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .image-item {
    width: 150px;
    height: 150px;
  }

  .image-row {
    gap: 25px;
  }

  .image-grid {
    gap: 25px;
  }

  .image-row:nth-child(2) {
    margin-left: -87px;
  }
}

/*----------------------------------------
 hero */

.hero-main {
  width: 100%;
  height: 60vh;
  background: url('../img/hero-bg.png'), linear-gradient(125deg, rgba(152, 224, 95, 0.3), rgba(13, 227, 172, 0.3));
  background-size: contain;
  background-position: 70% center;
  /* 右寄り中央に配置 */
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  clip-path: ellipse(100% 100% at 50% 0%);
  animation: gradientShift 20s ease infinite;
}

@media (max-width: 480px) {
  .hero-main {
    align-items: flex-start;
  }
}

/* @keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
} */

.hero-main .zen-maru-gothic-bold {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
  font-size: 8rem;
  line-height: 8rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(6, 80, 22, 0.37);
  opacity: 0;
  transform: translateX(50px);
  animation: slideInFade 1.2s ease-out 0.3s forwards;
}

.topmessage {
  max-width: 1200px;
  width: 90%;
  margin: 2rem auto;
}

.topmessage-head {
  color: var(--main);
  margin-bottom: 2rem;
  text-align: center;
}

.w600text {
  max-width: 600px;
  margin: 0 auto;
}

@keyframes slideInFade {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* タブレット以下 */
@media (max-width: 768px) {
  .hero-main {
    background-position: 55% center;
    background-size: cover;
  }

  .hero-main .zen-maru-gothic-bold {
    padding: 0 15px;
  }
}

/* スマートフォン */
@media (max-width: 480px) {
  .hero-main {
    height: 70vh;
    background-position: 50% center;
    background-size: cover;
  }

  .hero-main .zen-maru-gothic-bold {
    font-size: 4rem;
    line-height: 4rem;
    ;
  }
}

.bubbles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
}

.bubbles span {
  position: absolute;
  bottom: -50px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: rise 15s linear infinite;
  left: calc(10% * var(--i));
}

.bubbles span:nth-child(even) {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.15);
  animation-duration: 18s;
  animation-delay: 3s;
}

.bubbles span:nth-child(3n) {
  width: 20px;
  height: 20px;
  animation-duration: 12s;
  animation-delay: 6s;
  background: rgba(255, 255, 255, 0.5);
  animation: rise 10s linear infinite;
}

@keyframes rise {
  0% {
    bottom: -50px;
    opacity: 0;
    transform: translateX(0);
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    bottom: 110%;
    opacity: 0;
    transform: translateX(calc(-50px + 100px * sin(var(--i))));
  }
}

/*----------------------------------------
 news */
#news {
  margin: var(--sp-xl) auto;
  width: 90%;
  max-width: 1200px;
  text-align: center;
}

.newshead {
  color: var(--main);
  font-size: var(--fs-m);
  font-weight: bold;
  margin-bottom: var(--sp-s);
}

.newsdate {
  font-size: var(--fs-xs);
  font-weight: bold;
  text-align: left;
}

.newstxt {
  text-align: left;
  border-bottom: 1px dotted var(--main);
  margin-bottom: var(--sp-m);
}

@media (min-width: 1200px) {
  .newsbox {
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
  }

  .newsdate {
    width: 28%;
    text-align: right;
    padding-top: 2px;
  }

  .newstxt {
    width: 70%;
  }
}

/*----------------------------------------
 course */
#course {
  margin-top: var(--sp-xl);
}

#course .h2::after {
  content: "Course";
}

.course-wrapper {
  border-top: 1px solid var(--main-dark);
  padding: var(--sp-l) 0;
  margin-bottom: var(--sp-l);
}

@media (min-width: 1200px) {
  .course-container {
    display: flex;
    gap: 30px;
  }

  #course-eiken .course-container {
    flex-direction: row-reverse;
  }
}

.course-hero {
  position: relative;
  margin-bottom: var(--sp-s);
}

@media (min-width: 1200px) {
  .course-hero {
    width: 500px;
    height: auto;
  }
}

.course-hero img {
  border-radius: 12px;
  display: block;
  width: 100%;
  height: auto;
}

.course-hero::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: 2px dotted var(--main-light);
  pointer-events: none;
}

.course-hero-catch {
  position: absolute;
  bottom: 15px;
  left: 15px;
  font-weight: bold;
  font-size: var(--fs-l);
  color: var(--colorless);
  letter-spacing: 10px;
  line-height: normal;
  text-shadow: 1px 1px rgba(0, 68, 153, .1);
  z-index: 2;
}

.course-head {
  font-size: var(--fs-l);
  color: var(--main);
  margin-bottom: var(--sp-s);
  padding-left: 4.8rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  line-height: 5rem;
}

.course-head::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  font-size: 5rem;
  font-weight: 300;
  color: var(--main);
  font-style: italic;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transform: translateX(100%);
  opacity: 0;
}

.course-head.is-animated::after {
  animation: moveInFromLeft 1s ease-out forwards;
}

#course-graduate .course-head::after {
  content: "01";
}

#course-eiken .course-head::after {
  content: "02";
}

#course-abroad .course-head::after {
  content: "03";
}

@keyframes moveInFromLeft {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0%);
    opacity: .35;
  }
}

.course-subcatch {
  font-weight: 700;
  color: var(--main);
  margin-bottom: var(--sp-s);
}

.course-txt {
  margin-bottom: var(--sp-s);
}

.course-readmore {
  display: block;
  box-sizing: border-box;
  width: 75%;
  min-width: 10rem;
  margin: 0 auto;
  padding: 16px;
  border-radius: 5px;
  color: var(--colorless);
  background-color: var(--main);
  border: 2px solid var(--main);
  text-align: center;
  font-weight: 700;
  cursor: pointer;
}

.course-readmore:hover,
.course-readmore:active {
  background-color: var(--colorless);
  color: var(--main);
}

/*----------------------------------------
 reason */

#reason {
  background: var(--border);
  padding: 100px 0 var(--sp-l);
}

#reason .h2::after {
  content: "Reason";
}

/* likeBox */
.likeBox {
  margin-bottom: var(--sp-l);
}

.likeBox-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 80 / 51;
  margin: 0 auto;
  background: url(../img/feature-hero-base.png) no-repeat center bottom / cover;
  overflow: hidden;
}

.zen-maru-gothic-regular {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.likeBox-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.likeBox-center {
  text-align: center;
}

.likeBox-image {
  width: 16rem;
  height: 16rem;
  position: absolute;
  bottom: 0;
  left: 0;
  object-fit: cover;
  margin: 0 auto;
}

.likeBox-title {
  margin-top: 2rem;
  font-size: 2.25rem;
  font-weight: bold;
  color: #1f2937;
}

.flowing-text-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.flowing-text {
  position: absolute;
  white-space: nowrap;
  animation: flowRight linear infinite;
  left: 100%;
  transform: translateX(0);
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 900;
  font-style: normal;
}

@keyframes flowRight {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100vw - 100%));
  }
}

@media (max-width: 768px) {
  .likeBox-image {
    width: 12rem;
    height: 12rem;
  }

  .hero-title {
    font-size: 1.5rem;
    padding: 0 1rem;
  }
}

.reason-scrollBox {
  display: flex;
  gap: 10px;
  margin-bottom: var(--sp-xl);
}

.reason-scrollItem {
  width: calc(20% - 10px);
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .reason-scrollItem {
    padding-left: 1rem;
  }

  .reason-scrollItem+.reason-scrollItem {
    border-left: 1px solid var(--sub);
  }

}

@media (max-width: 768px) {
  .reason-scrollBox {
    flex-direction: column;
  }

  .reason-scrollItem {
    width: 100%;
    padding-top: var(--sp-s);
  }

  .reason-scrollItem+.reason-scrollItem {
    border-top: 1px solid var(--sub);
  }
}

.reason-scrollItem-head {
  color: var(--sub-dark);
  font-size: var(--fs-s);
  margin-bottom: var(--sp-s);
}

.reason-scrollItem-head i {
  display: inline-block;
  color: var(--colorless);
  background-color: var(--sub-dark);
  padding: 5px;
  margin-right: .5rem;
  border-radius: 200px;
}

.reason-scrollItem-txt {
  padding: 5px;
}

/*----------------------------------------
 about */

#about {
  padding-top: 100px;
}

#about .h2 {
  font-size: var(--fs-m);
}

#about .h2::after {
  content: "About";
}

.about-cnt-flex {
  display: flex;
  gap: var(--sp-xl);
}

@media (max-width: 768px) {
  .about-cnt-flex {
    flex-direction: column;
  }
}

.about-cnt-txt,
.about-cnt-img {
  width: 100%;
}

@media (min-width: 769px) {
  .about-cnt-img {
    width: 360px;
  }

  .about-cnt-txt {
    width: calc(100% - var(--sp-xl) - 360px);
  }
}

.about-head {
  border-left: 5px solid var(--main-light);
  padding-left: 1rem;
  margin-bottom: var(--sp-s);
  color: var(--main-light);
  font-weight: 700;
}

@media (max-width: 1200px) {
  .about-scrollContainer {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
}

.about-cnt-list {
  display: flex;
  flex-wrap: wrap;
}

.about-cnt-listItem {
  box-sizing: border-box;
  width: 40%;
  padding: var(--sp-s);
  color: var(--text);
  border: 4px solid var(--sub-dark);
}

.about-cnt-listItem.gray {
  width: 30%;
  color: var(--text-mutedt);
  border: none;
}

@media (max-width: 1200px) {
  .about-cnt-listItem {
    width: 100%;
    padding: 0;
    margin-bottom: var(--sp-m);
  }

  .about-cnt-listItem.gray {
    width: 50%;
    margin-bottom: var(--sp-m);
  }
}

.about-cnt-listItem h4 {
  font-weight: bold;
  padding-bottom: var(--sp-xs);
  border-bottom: 1px solid var(--sub);
  margin-bottom: var(--sp-xs);
  text-align: center;
}

.about-cnt-listItem ul {
  padding: var(--sp-xs);
}

.about-scrollBox {
  display: flex;
  gap: 10px;
  flex-wrap: no-wrap;
  width: max-content;
}

.about-scrollItem {
  box-sizing: border-box;
  width: 230px;
  display: flex;
  flex-direction: column;
}

.about-scrollItemHead {
  padding: 10px;
  background: var(--border);
  color: var(--main-light);
  font-weight: 700;
}

.about-scrollItemsubHead {
  padding: 10px;
}

.about-scrollItemsubHead.point {
  color: var(--main-light);
}

.about-scrollItemCnt {
  padding: 0 10px;
  font-size: var(--fs-xs);
}

/*----------------------------------------
 schoolLife */
#schoolLife {
  background: var(--border);
  padding: 100px 0 var(--sp-l);
}

#schoolLife .h2::after {
  content: "SchoolLife";
}

.schoolLife-head {
  border-left: 5px solid var(--main-light);
  padding-left: 1rem;
  margin-bottom: var(--sp-s);
  color: var(--main-light);
  font-weight: 700;
}

@media (max-width: 1200px) {
  .schoolLife-scrollContainer {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
}

.schoolLife-scrollBox {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;
  margin-bottom: var(--sp-l);
}

.schoolLife-scrollItem {
  box-sizing: border-box;
  width: 100%;
  box-sizing: border-box;
  padding: var(--sp-xs);
}

@media (min-width: 769px) {
  .schoolLife-scrollItem {
    width: 15%;
  }
}

.schoolLife-scrollItem:nth-child(even) {
  background: var(--bg);
}

.schoolLife-scrollItem dt {
  padding-bottom: 4px;
  border-bottom: 1px dotted var(--text-light);
  font-weight: 700;
  text-align: left;
}

@media (min-width: 769px) {
  .schoolLife-scrollItem dt {
    text-align: center;
  }
}

.schoolImageBox {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-s);
  justify-content: center;
}

.schoolImage {
  width: 45%;
  max-width: 360px;
  position: relative;
}

.schoolImage figure:after {
  position: absolute;
  top: 10px;
  left: 0;
  content: "";
  display: inline-block;
  padding: 3px 5px;
  border-left: 5px solid var(--sub-dark);
  background-color: var(--bg);
  color: var(--sub-dark);
  font-size: var(--fs-xxs);
  font-weight: 700;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.schoolImage .umeda:after {
  content: "梅田校自習室";
}

.schoolImage .tennoji:after {
  content: "天王寺校自習室";
}

.schoolImage .kyoto:after {
  content: "四条校自習室";
}

.schoolImage .kawanishi:after {
  content: "川西校自習室";
}

.schoolImage .ikebukuro:after {
  content: "池袋校自習室";
}

.schoolLife-flexWrapper {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-m);
}

.schoolLife-flexBox {
  display: flex;
  gap: var(--sp-xl);
  flex-direction: column;
}

.schoolLife-flexImg,
.schoolLife-flexTxt {
  width: 100%;
}

@media (min-width: 769px) {
  .schoolLife-flexBox {
    flex-direction: row;
  }

  .schoolLife-flexImg {
    width: 360px;
  }

  .schoolLife-flexTxt {
    width: calc(100% - var(--sp-xl) - 360px);
  }
}

.schoolLife-flowBox {
  background-repeat: no-repeat;
  background-position: right top;
  background-size: 150px;
  box-sizing: border-box;
  padding: 10px 150px 10px 10px;
  margin-bottom: var(--sp-s);
}

@media (min-width: 769px) {
  .schoolLife-flowBox {
    width: 48%;
  }
}

@media (max-width: 768px) {
  .schoolLife-flowBox:nth-child(even) {
    background-color: var(--bg);
  }
}

.schoolLife-flowBox:nth-child(1) {
  background-image: url(../img/flow-counseling.png);
}

.schoolLife-flowBox:nth-child(2) {
  background-image: url(../img/flow-3-interview.png);
}

.schoolLife-flowBox:nth-child(3) {
  background-image: url(../img/flow-admission.png);
}

.schoolLife-flowBox:nth-child(4) {
  background-image: url(../img/flow-w-session.png);
}

.schoolLife-flowBox:nth-child(5) {
  background-image: url(../img/flow-registation.png);
}

.schoolLife-flowBox:nth-child(6) {
  background-image: url(../img/flow-schooling.png);
}

.schoolLife-flowBox:nth-child(7) {
  background-image: url(../img/flow-career.png);
}

.schoolLife-flowBox:nth-child(8) {
  background-image: url(../img/flow-graduate.png);
}

.schoolLife-flowHead {
  font-weight: 700;
  padding-bottom: 4px;
  border-bottom: 1px dotted var(--text-muted);
  margin-bottom: 4px;
}

/*----------------------------------------
 faq */

#faq {
  padding-top: 100px;
}

#faq .h2::after {
  content: "FaQ";
}

.faq-head {
  border-left: 5px solid var(--main-light);
  padding-left: 1rem;
  margin-bottom: var(--sp-s);
  color: var(--main-light);
  font-weight: 700;
}

/* details全体 */
.faqBox {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  background-color: var(--bg);
  transition: all 0.3s ease;
}

.faqBox[open] {
  background-color: var(--bg-paleyellow);
  /* 開いたら背景色変更 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* summaryのスタイル */
.faq-q {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--text);
  list-style: none;
  /* デフォルトの矢印を消す */
  position: relative;
  padding-right: 30px;
  /* 矢印用のスペース */
  transition: color 0.3s ease;
}

/* デフォルトの三角マーカーを削除（ブラウザ対応） */
.faq-q::-webkit-details-marker {
  display: none;
}

/* ホバー時 */
.faq-q:hover {
  color: var(--main);
}

/* カスタム矢印アイコン */
.faq-q::after {
  content: "▼";
  position: absolute;
  right: 0;
  font-size: 0.8rem;
  color: var(--main);
  transition: transform 0.3s ease;
}

/* 開いた時の矢印 */
.faqBox[open] .faq-q::after {
  transform: rotate(180deg);
}

/* 画像 */
.faq-q img {
  flex-shrink: 0;
  width: 50px;
  height: auto;
  border-radius: 50%;
  /* 丸くする */
  border: 2px solid var(--main-light);
}

/* 回答部分 */
.faq-a {
  margin-top: 20px;
  padding: 20px;
  background-color: var(--bg);
  border-radius: 8px;
  border-left: 4px solid var(--sub);
  border-bottom: 4px solid var(--sub);
  animation: fadeIn 0.3s ease;
  overflow: hidden;
  /* floatの親要素に必要 */
}

.faq-a p {
  margin: 0;
  line-height: 1.8;
}

.faq-a img {
  float: right;
  width: 50px;
  height: 50px;
  margin-left: 15px;
  margin-bottom: 10px;
  border-radius: 50%;
  border: 2px solid var(--sub);
}

.faq-a::after {
  content: "";
  display: table;
  clear: both;
}

/* フェードインアニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*----------------------------------------
 footer */
.footer {
  padding: var(--sp-xl) var(--sp-s);
  background-color: var(--text-light);
  color: var(--colorless);
}

.footer h2,
.footer a {
  color: var(--colorless);
}

.fast-contact-link {
  display: flex;
  gap: 1rem;
  font-size: 2rem;
}

/*----------------------------------------
 course */

.course .hero-main .zen-maru-gothic-bold {
  font-size: 6rem;
}

@media (max-width: 480px) {
  .course .hero-main .zen-maru-gothic-bold {
    font-size: 2.5rem;
  }
}

.basic .hero-main {
  background: url('../img/hero-basic-bg.png'), linear-gradient(125deg, rgba(95, 175, 224, 0.3), rgba(13, 144, 227, 0.3));
  background-size: contain;
  background-position: 70% center;
  background-repeat: no-repeat;
}

.eiken .hero-main {
  background: url('../img/hero-eiken-bg.png'), linear-gradient(125deg, rgba(80, 200, 120, 0.3), rgba(20, 150, 90, 0.3));
  background-size: contain;
  background-position: 70% center;
  background-repeat: no-repeat;
}

.abroad .hero-main {
  background: url('../img/hero-abroad-bg.png'), linear-gradient(125deg, rgba(255, 183, 94, 0.3), rgba(255, 129, 73, 0.3));
  background-size: contain;
  background-position: 70% center;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {

  .basic .hero-main,
  .eiken .hero-main,
  .abroad .hero-main {
    background-position: 55% center;
    background-size: cover;
  }

  .basic .hero-main .zen-maru-gothic-bold,
  .eiken .hero-main .zen-maru-gothic-bold,
  .abroad .hero-main .zen-maru-gothic-bold {
    padding: 25px 15px 0;
  }
}

/* スマートフォン */
@media (max-width: 480px) {

  .basic .hero-main,
  .eiken .hero-main,
  .abroad .hero-main {
    height: 50vh;
    background-position: 50% center;
    background-size: cover;
  }

  .basic .hero-main .zen-maru-gothic-bold,
  .eiken .hero-main .zen-maru-gothic-bold,
  .abroad .hero-main .zen-maru-gothic-bold {
    font-size: 2.5rem;
    line-height: 3rem;
    ;
  }
}

.course .h2-subcatch {
  margin: var(--sp-l) auto;
  text-align: center;
  width: 90%;
  max-width: 600px;
}

.course .course-container {
  justify-content: space-evenly;
}

.course .course-cntBox {
  box-sizing: border-box;
  padding: var(--sp-l);
  width: 100%;
  background: #fff;
  box-shadow: 1px 1px 1px var(--main-dark);
  margin-bottom: var(--sp-m);
}

@media (min-width: 769px) {
  .course .course-cntBox {
    width: 33%;
  }
}

.course-image {
  width: 100%;
  margin-bottom: var(--sp-s);
}

.course-image img {
  width: 100%;
  height: auto;
}

.course-feature-head {
  font-weight: bold;
  color: var(--main);
  margin-bottom: var(--sp-m);
  text-align: center;
  font-size: var(--fs-m);
}

/* ----------------------------------------
コースページ別hero */

.basic #schoolLife {
  background: rgba(95, 175, 224, 0.3);
}

.eiken #schoolLife {
  background: rgba(80, 200, 120, 0.1);
}

.abroad #schoolLife {
  background: rgba(255, 183, 94, 0.1);
}

/* ----------------------------------------
modal */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: block;
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background-color: white;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #999;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  line-height: 1;
}

.modal-close:hover {
  background-color: #f0f0f0;
  color: #333;
}

.modal-title {
  font-size: 1.75rem;
  color: var(--main);
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 700;
}

.modal-description {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

@media (min-width: 600px) {
  .modal-buttons {
    flex-direction: row;
  }
}

.modal-button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 140px;
}

.modal-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-button:hover::before {
  opacity: 1;
}

.modal-button-mail {
  background: linear-gradient(135deg, #4AA8D8 0%, #3388BB 100%);
}

.modal-button-mail:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(74, 168, 216, 0.4);
  color: var(--colorless);
}

.modal-button-download {
  background: linear-gradient(135deg, #0051FF 0%, #003DB8 100%);
}

.modal-button-download:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 81, 255, 0.4);
  color: var(--colorless);
}

.modal-button i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.modal-button span {
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

@media (max-width: 600px) {
  .modal-content {
    padding: 2rem 1.5rem;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .modal-button {
    min-height: 120px;
    padding: 1.5rem 1rem;
  }

  .modal-button i {
    font-size: 2rem;
  }

  .modal-button span {
    font-size: 1rem;
  }
}

.trademark {
  font-size: 8px;
  text-align: center;
}