@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
    line-height: 2;
    box-sizing: border-box;
    color: #222;
    list-style: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "BIZ UDGothic", sans-serif;
}

/* a {
  text-decoration: none;
} */

/* 共通 */
.sub-ttl {
    font-size: 1.875rem;
    font-weight: 800;
    color: #2255A4;
    /* 修正前：margin-bottom: 50px 0 0; (不正な記述です) */
    margin-bottom: 50px; 
    position: relative;
    display: inline-block;
    text-align: center;
}

.sec-container {
  padding: 100px 30px;
  display: flex;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
}

.sp-only {
  display: none;
}

@media (min-width: 768px) {
    .sub-ttl {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 767px) {
  .sp-only {
    display: block;
  }
}

/* --- 共通のベース設定 --- */
.js-fadein {
  opacity: 0;
  transition: opacity 1.2s ease, transform 1.2s ease;
}

/* --- 方向別の初期状態 --- */

/* 下から（デフォルト） */
.js-fadein:not(.from-left):not(.from-right) {
  transform: translateY(30px);
}

/* 左から */
.js-fadein.from-left {
  transform: translateX(-50px);
}

/* 右から */
.js-fadein.from-right {
  transform: translateX(50px);
}

/* --- 表示状態（共通） --- */
.js-fadein.is-visible {
  opacity: 1;
  transform: translate(0, 0); /* XもYも0に戻す */
}


/* ========================================== */
/* ハンバーガーメニュー */
/* ========================================== */
:root {
    --color-main: #2255A4;
    --color-text: #222222;
}

.hamburger {
    position: fixed;
    right: 20px;
    top: 20px;
    width: 36px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    outline: none;
    display: block;
}

.hamburger__line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-main);
    border-radius: 3px;
    transition: all 0.4s ease;
}

.hamburger__line--1 { top: 0; }
.hamburger__line--2 { top: 50%; transform: translateY(-50%); }
.hamburger__line--3 { bottom: 0; }

.hamburger.active .hamburger__line--1 {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.hamburger.active .hamburger__line--2 {
    opacity: 0;
}
.hamburger.active .hamburger__line--3 {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.sp-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 90vw;
    max-width: 400px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    z-index: 1050;
    transform: translateX(100%);
    transition: 
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.4s;
    visibility: hidden;
    overflow-y: auto;
}

.sp-menu.active {
    transform: translateX(0);
    visibility: visible;
    transition: 
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s;
}

.sp-menu__inner {
    padding: 120px 40px 60px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.sp-menu__nav {
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.sp-menu__nav li {
    margin-bottom: 25px;
}

.sp-menu__nav a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-main);
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: inline-block;
    letter-spacing: 0.05em;
}

.sp-menu__nav a:hover {
    opacity: 0.7;
}

.sp-menu__nav--twoline {
    line-height: 1.4;
    vertical-align: middle;
}

.sp-menu__bottom {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.sp-menu__logo-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2255A4;
    border-radius: 6px;
    box-shadow: 4px 4px 0 rgb(167, 202, 255);
    transition: transform 0.3s ease;
}

.sp-menu__logo-btn:hover {
    transform: translateY(-3px);
}

.sp-menu__logo-btn img {
    height: 35px;
    width: auto;
    vertical-align: bottom;
}


@media screen and (max-width: 767px) {
    .header {
        height: 70px;
    }

    .sp-menu__inner {
        padding: 100px 30px 40px;
    }

    .sp-menu__nav a {
        font-size: 1.125rem;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

@media screen and (min-width: 768px) {
    .hamburger {
      right: 30px;
      top: 30px;
  }

    .sp-menu {
        width: 400px;
    }
}




/* Hero*/
.hero {
  position: relative;
  width: 100%;
  height: 80vh; 
  background-color: #f9f9f9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  position: relative;
  z-index: 100;
  text-align: center;
  pointer-events: none;
}

#hero-container::after {
  content: ''; 
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.4); 
  z-index: 5; 
}

.hero-logo {
    width: 100%;
    opacity: 0;
    transform: scale(0.8);
    animation: logoZoomIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 1.8s;
}

@keyframes logoZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (min-width: 768px) {
    .hero-logo {
        width: 50%;
    }
}

.photo {
  position: absolute;
  width: 180px;
  height: 135px;
  background-size: cover;
  background-position: center;
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  opacity: 0;
  z-index: 1;
  animation: scatterIn 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@media (min-width: 768px) {
  .photo {
    width: 240px; 
    height: 180px;
    border-width: 6px;
  }
}

@media (min-width: 1024px) {
  .photo {
    width: 320px; 
    height: 240px;
    border-width: 6px;
  }
}

/* 登場アニメーション */
@keyframes scatterIn {
  0% {
    opacity: 0;
    /* translate(-50%, -50%) で中心を維持しつつ、JSで指定した開始位置(startX/Y)を加算 */
    transform: translate(calc(-50% + var(--startX)), calc(-50% + var(--startY))) rotate(var(--startRotate)) scale(0.5);
  }
  100% {
    opacity: 1;
    /* 最終的に中心位置でピタッと止まる */
    transform: translate(-50%, -50%) rotate(var(--endRotate)) scale(1);
  }
}

.hero-content {
  position: relative;
  z-index: 100; 
  padding: 40px;
}

/* 色が変わる線 */
/* ラインのコンテナ（位置調整用） */
.scroll-line-container {
  display: flex;
  justify-content: center;
  padding: 40px 0;
  background: linear-gradient(to bottom, #ffffff 0%, #F0F7FF 100%);
}

.reverse {
  background: linear-gradient(to top, #ffffff 0%, #F0F7FF 100%);
}

.neutral {
  background: #fff;
}

.hero-logo {
    width: 100%;
}

@media (min-width: 768px) {
    .hero {
        height: 600px; 
    }

    .hero-logo {
        width: 50%;
    }
}

/* ライン */
.scroll-line {
  width: 3px;
  height: 100px;
  background-color: #2255A4;
  position: relative;
  margin: 0 auto;
  overflow: hidden;
}

.scroll-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #D4AF37;
  transform: translateY(-100%);
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-line.is-active::before {
  transform: translateY(0);
}


/* 25周年を迎えました */
.message-25h_wrap {
    padding-top: 100px;
}

.message-25h_ttl {
    color: #A87E59;
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    line-height: 2.2;
    margin-bottom: 60px;
}

/* 25周年を包む要素 */
.num-emphasize-wrap {
  display: inline-block;
  margin-top: -25px;
  line-height: 1;
}

.num-emphasize {
  display: inline-block;
  color: #d4af37;
  animation: bounce-in 2s ease-in-out infinite;
  font-size: 3rem;
}

@keyframes bounce-in {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.message-25h_bg {
  background: 
    linear-gradient(
      to bottom, 
      #fff 0%,
      transparent 25%,
      transparent 75%,
      #fff 100%
    ),
    url(../images/bg_gold.jpg) center center/cover no-repeat #A87E59;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.message-25h_bg img {
  width: 50px;
  height: auto;
  /* 上下にふわふわ動かすアニメーション（2秒かけて往復） */
  animation: fluffy 2s ease-in-out infinite alternate;
}

.message-25h_bg img {
  /* 前回の設定に追記 */
  cursor: pointer; 
  transition: transform 0.2s ease;
}

/* クリックした時に少し沈む演出 */
.message-25h_bg img:active {
  transform: scale(0.9) translateY(-10px);
}

@keyframes fluffy {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* 代表メッセージ */
.message-ceo {
}

.message-ceo_txt{
  font-size: 0.9rem;
  max-width: 40em;
}

.message-ceo_plof {
  display: flex;
  width: min(40em, 100%);
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
}

.message-ceo_plof-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
}

.message-ceo_plof-name {
  font-weight: 700;
  color: #2255A4;
}

.message-ceo_plof-txt {
  font-size: 0.75rem;
  line-height: 1.5;
}

.message-ceo_plof-img {
  width: 100px;
  height: auto;
}

@media (min-width: 768px) {
  .message-ceo_txt{
    font-size: 1rem;
  }

  .message-ceo_plof {
    gap: 40px;
    margin-top: 40px;
  }

  .message-ceo_plof-name {
    font-size: 1.25rem;
  }

  .message-ceo_plof-txt {
    font-size: 0.9rem;
  }

  .message-ceo_plof-img {
    width: 160px;
  }
}

/* イベント情報 */
.event {
  padding: 100px 15px;
  background-color: #F0F7FF;
}

.event_ttl-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 左右共通の紙吹雪（初期状態） */
.sub-ttl::before,
.sub-ttl::after {
  content: "";
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: 0.8s;
}

.sub-ttl::before {
  background-image: url('../images/confetti_0.png');
  top: -60px;
  left: -90px;
  transform: translateY(20px) scale(0.8);
width: 140px;
height: 140px;
}

.sub-ttl::after {
  background-image: url('../images/confetti_1.png');
  top: -45px;
  right: -90px;
  transform: translateY(20px) scale(0.8);
  width: 100px;
  height: 100px;
}

/* 表示された時（is-visibleがついた時） */
.sub-ttl.is-visible::before,
.sub-ttl.is-visible::after {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 無限浮遊アニメーションの定義（ここが重要です！） */
.sub-ttl.is-visible::before {
  animation: floating-confetti-L 4s ease-in-out infinite alternate 1.3s;
}
.sub-ttl.is-visible::after {
  animation: floating-confetti-R 4s ease-in-out infinite alternate 1.5s;
}

/* ふわふわ動かすための設計図 */
@keyframes floating-confetti-L {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-5px, -10px) rotate(-5deg); }
}
@keyframes floating-confetti-R {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(5px, -10px) rotate(5deg); }
}

@media (min-width: 768px) {
    .sub-ttl::before {
        top: -60px;
        left: -90px;
        width: 160px;
        height: 160px;
    }

    .sub-ttl::after {
        top: -45px;
        right: -90px;
        width: 120px;
        height: 120px;
    }
}

.event_disc {
  font-weight: 600;
  text-align: center; 
  margin-bottom: 80px;
  color: #2255A4;
}

.event_month {
  border-top: 2px solid #2255A4;
  width: min(600px, 100%);
  padding: 30px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.event_month-ttl {
  color: #2255A4;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 5px;
  margin-bottom: 20px;
  position: relative;
    display: inline-block;
    z-index: 1;
}

.event_month-ttl::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 10px;
    width: 0;
    height: 15px;
    background-color: rgba(212, 175, 55, 0.3);
    z-index: -1;
    transition: width 0.8s ease-out;
    transition-delay: 1.2s;
}

.event_month.is-visible .event_month-ttl::after {
    width: 100%;
}

.event_month-lists {
    width: 100%;
}

.event_month-list {
  font-size: 0.875rem;
  display: flex;
  gap: 5px;
  align-items: center;
  margin-bottom: 15px;
  line-height: 1.2;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  position: relative;
  padding: 0 !important; /* aタグに余白を譲る */
}

.event_month-list a {
  display: flex;
  gap: 5px;
  align-items: center;
  line-height: 1.2;
}

.event_month-list a {
    display: flex;
    align-items: center;
    padding: 5px 0;
    color: #222;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
}

.event_month-list a:hover {
    background-color: rgba(34, 85, 164, 0.05) !important;
    text-decoration: none;
    transform: translateX(10px);
}

/* 4月・5月両方のテキスト色を確実に変える */
.event_month-list a:hover,
.event_month-list a:hover span {
    color: #2255A4 !important;
}

.event_month-list a::after {
    content: "\ea6e";
    font-family: 'remixicon';
    position: absolute;
    right: 20px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    font-weight: bold;
}

.event_month-list a:hover::after {
    opacity: 1;
    transform: translateX(0);
    right: 15px;
}

.event_month-list::before {
    left: 10px !important;
    z-index: 1;
    pointer-events: none;
}

.event_month.is-visible .event_month-list {
    opacity: 1;
    transform: translateX(0);
}

.event_month-list span {
  line-height: 1.2;
}

.icon_campaign::before,
.icon_course::before,
.icon_event::before,
.icon_other::before {
  font-size: 10px;
  color: #fff;
  border-radius: 3px;
  display: block;
  width: 75px; 
  flex-shrink: 0; 
  text-align: center;
  line-height: 2;
}

.icon_campaign::before {
  content: "キャンペーン";
  background-color: #E91E8C;
}

.icon_course::before {
  content: "新講座";
  background-color: #0288D1;
  letter-spacing: 2px;
  padding-left: 2px; 
}

.icon_event::before {
  content: "イベント";
  background-color: #26A69A;
  letter-spacing: 2px;
  padding-left: 2px;
}

.icon_other::before {
  content: "その他";
  background-color: #ff8720;
  letter-spacing: 2px;
  padding-left: 2px; 
}

.event_month-limited {
  font-size: 0.75rem;
  color: #999;
}

.event_month-bottom {
  border-top: 2px solid #2255A4;
  width: min(600px, 100%);
  padding: 30px 15px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.event_disc-bottom {
  font-weight: 600;
  text-align: center; 
  color: #2255A4;
}

@media (min-width: 768px) {
    .event_month-ttl {
        font-size: 2rem;
    }

    .event_month-list {
        font-size: 1rem;
        gap: 10px;
        margin-bottom: 18px;
        line-height: 1.5;
    }

    .event_disc-bottom {
        font-size: 1.25rem;
    }

    .event_month-list a {
      padding: 5px 40px 5px 5px;
  }
}

/* ========================================== */
/* カミングスーン */
/* ========================================== */
.voice {
  background: 
    linear-gradient(
      to bottom, 
      #fff 0%,
      transparent 25%,
      transparent 75%,
      #fff 100%
    ),
    url(../images/bg_gold.jpg) center center/cover no-repeat #A87E59;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 60px 0;
  padding: 50px 0;
}

.voice_ttl {
    color: #A87E59;
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    line-height: 2.2;
    margin: 60px 0;
}


/* ========================================== */
/* ブランド紹介 */
/* ========================================== */
.brand {
  background-color: #fff;
  background-image:
    linear-gradient(#F0F7FF 1px, transparent 2px), 
    linear-gradient(90deg, #F0F7FF 1px, transparent 2px);
  background-size: 20px 20px;
  padding: 50px 15px 100px;
}

.brand_disc {
  font-weight: 600;
  text-align: center; 
  margin-bottom: 30px;
}

.brand_lineup {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand_lineup-desc {
  font-weight: 600;
  text-align: center; 
  color: #2255A4;
}

.brand_lineup-img img {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

.brand_lineup a {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.brand_lineup-img {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand_lineup a:hover .brand_lineup-img {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(34, 85, 164, 0.15); 
}

.brand_lineup a:hover .brand_lineup-img img {
    filter: brightness(1.05);
    transition: filter 0.3s ease;
}

.brand-other {
    background: 
        linear-gradient(to bottom, #fff 0%, #fff 90%, transparent 100%),
        url(../images/bg_gold2.jpg) bottom center/100% auto no-repeat #fff;
    padding: 50px 15px 100px;
}

.brand-other .sub-ttl {
    line-height: 1;
}

.sub-ttl_other {
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .brand_lineup {
        max-width: 600px;
    }

    .brand_disc {
        margin-bottom: 50px;
    }

    .brand_lineup {
        gap: 40px;
    }

    .brand-other .sub-ttl {
        line-height: 1.2;
    }
    
    .brand_lineup-desc {
        font-size: 1.375rem;
        margin-bottom: 5px;
    }

    .sub-ttl_other {
        font-size: 1.75rem;
    }

}


/* フッター */
.footer {
    /* 深い紺色のグラデーション */
    background: linear-gradient(to bottom, #3371D1 0%, #1A3A6B 74%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    list-style: none;
    padding: 0;
}

.footer-nav li {
    display: flex;
    align-items: center;
}

.footer-nav li:not(:last-child)::after {
    content: "|";
    margin-left: 15px;
    color: #fff;
    opacity: 0.7;
    font-size: 0.875rem;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    opacity: 0.7;
}

.copyright {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    opacity: 0.9;
    color: #fff;
}

@media screen and (max-width: 767px) {
    .footer-nav {
        gap: 0 10px;
    }
    .footer-nav li:not(:last-child)::after {
        margin-left: 10px;
    }
    .footer-nav a {
        font-size: 0.75rem;
    }
}


.pagetop {
    position: fixed;
    right: 20px;
    bottom: 26px;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    color: #2255A4;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 990;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.pagetop i {
    font-size: 1.8rem;
    color: #2255A4;
    line-height: 1;
}

.pagetop.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pagetop:hover {
    background-color: #2255A4;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.pagetop:hover.pagetop i {
    color: #FFF;
}

/* スマホでの位置微調整 */
@media screen and (max-width: 767px) {
    .pagetop {
        width: 44px;
        height: 44px;
        right: 15px;
        bottom: 20px;
    }
}