﻿

/* ------------------- hero -------------------- */
.t-hero__content {
  position: relative;
  background-image:
    linear-gradient(#FECDE9 1px, transparent 1px),
    linear-gradient(90deg, #FECDE9 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center center;
  overflow: hidden;
}

.t-hero__title {
  margin: 0 auto;
}

.t-hero__text {
  color: var(--c-blue-500);
  line-height: 2.4;
}
@media screen and (min-width: 1250px) and (max-width: 1600px){
  .t-hero__img img{
    height: calc(100vh - 90px);
    object-fit: cover;
  }
}
@media screen and (min-width: 768px) {
  .t-hero__section {
    display: flex;
    flex-direction: row-reverse;
    margin: 0 auto;
    padding-top: 90px;
  }

  .t-hero__title{
    width: 80%;
    padding-top: var(--spc-65);
  }

  .t-hero__text{
    width: 57%;
    margin-left: 10%;
  }

  .t-hero__img {
    width: 50%;
    z-index: 2;
  }

  .t-hero__content {
    flex: 1;
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
  }

  .t-hero__character {
    position: absolute;
    top: 29%;
    right: 3%;
    width: 26%;
  }
}

@media screen and (max-width: 767px) {
  .t-hero__text {
    width: 65%;
    padding: 30px 0 40px;
    margin-left: 6%;
  }
  .t-hero__title{
    width: 70%;
    padding-top: 25px;
  }
  .t-hero__img img{
    aspect-ratio: 375/275;
    object-fit: cover;
  }
  .t-hero__character {
    position: absolute;
    bottom: 11%;
    right: -3%;
    width: 36%;
  }
  .t-hero__section{
    position: relative;
  }
  .t-hero__section::after{
    content: "";
    display: inline-block;
    background: var(--c-orange-500);
    width: 100%;
    height: 28.5px;
    position: absolute;
    bottom: 100%;
    left: 0;
  }
}

/* ------------------- about -------------------- */
.t-about__section {
  max-width: var(--pc-maw-md);
  width: var(--inner-w);
  margin-inline: auto;
  border-radius: 0 0 50px 50px;
  padding-bottom: 40px;
}

.t-about__header {
  background-color: var(--c-green-600);
  color: var(--c-white);
  padding: 40px 0;
  position: relative;
  border-radius: 50px 50px 0 0;
}

.t-about__subtitle {
  width: fit-content;
  font-size: 14px;
  margin: 0 auto;
  border-bottom: 2px dotted;
}

.t-about__title {
  font-size: 30px;
  width: fit-content;
  margin: 20px auto 0;
}

.t-about__title .border {
  position: relative;
  display: inline-block;
  font-weight: 900;
}

.t-about__title .border::after{
  content: '';
  display: inline-block;
  width: 95%;
  height: 1px;
  background-color: var(--c-white);
  position: absolute;
  left: 0;
  bottom: 0;
}

.t-about__character {
  position: absolute;
  left: 4%;
  bottom: -6%;
  width: 13%;
  z-index: 2;
}

.t-about__deco01 {
  position: absolute;
  right: 3%;
  width: 18%;
  min-width: 80px;
}

.t-about__deco02 {
  position: absolute;
  bottom: -3%;
  right: 3%;
  width: 16%;
  min-width: 120px;
  z-index: 2;
}

.t-about__list li {
  display: flex;
  align-items: center;
  padding: 40px 6%;
  position: relative;
  gap: 20px;
}

.t-about__list-point {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 13px;
  color: var(--c-white);
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  letter-spacing: normal;
}

.t-about__list-number {
  font-size: 50px;
  display: block;
}

.t-about__list-text {
  color: var(--c-blue-500);
  font-weight: 700;
}

.t-about__list li:nth-child(1) {
  background-color: var(--c-blue-300);
}

.t-about__list li:nth-child(3) {
  background-color: var(--c-yellow-300);
}

.t-about__list li:nth-child(5) {
  background-color: var(--c-brown-300);
}

.t-about__list li:nth-child(1) .t-about__list-point {
  background-color: var(--c-orange-500);
}

.t-about__list li:nth-child(2) .t-about__list-point {
  background-color: var(--c-green-500);
}

.t-about__list li:nth-child(3) .t-about__list-point {
  background-color: #3259B4;
}

.t-about__list li:nth-child(4) .t-about__list-point {
  background-color: var(--c-yellow-500);
}

.t-about__list li:nth-child(4) .t-about__list-point .t-about__list-number{
  transform: translateX(-2px);
}

.t-about__list li:nth-child(5) .t-about__list-point {
  background-color: var(--c-brown-500);
}

.t-about__list {
  margin-bottom: 40px;
  background-color: var(--c-white);
}

@media screen and (min-width: 1001px) {
  .t-about__deco01 {
    top: 50%;
    transform: translateY(-50%);
  }
}

@media screen and (max-width: 1000px) {
  .t-about__character {
    display: none;
  }

  .t-about__deco01 {
    position: absolute;
    top: 5%;
    right: 5%;
    width: 20%;
  }
}

@media screen and (min-width: 768px) {
  .t-about__section {
    margin-top: var(--spc-100);
  }

  .t-about__title main {
    display: inline-block;
    width: 340px;
  }

  .t-about__list li:nth-child(2n) .t-about__list-point {
    margin-left: 90px;
  }

  .t-about__list-text {
    font-size: var(--fz-28);
    flex: 1;
  }

  .t-about__title img{
    display: inline-block;
    width: 330px;
  }

  .t-about__deco01{
    display: flex;
  }
}

@media screen and (max-width: 767px) {
  .t-about__section {
    margin-top: var(--spc-65);
  }

  .t-about__header {
    padding: 20px 0 40px;
  }

  .t-about__title {
    text-align: center;
    font-size: 18px;
    margin-top: 10px;
  }

  .t-about__title .border {
    margin-bottom: 10px;
  }

  .t-about__title main {
    width: 230px;
  }

  .t-about__list-point {
    position: absolute;
    top: -20px;
    width: 60px;
    height: 60px;
    font-size: 10px;
  }

  .t-about__list li:nth-child(2n-1) .t-about__list-point {
    left: 8%;
  }

  .t-about__list li:nth-child(2n) .t-about__list-point {
    right: 8%;
  }

  .t-about__list-number {
    font-size: 30px;
  }

  .t-about__list-text {
    font-size: 16px;
    width: fit-content;
    margin: 0 auto;
    white-space: nowrap;
  }

  .t-about__list li {
    padding: 50px 10%;
  }

  .t-about__title img{
    width: 230px;
  }
}

@media screen and (min-width: 500px) and (max-width: 767px){
  .t-about__list li:nth-child(2n-1) .t-about__list-point {
    left: 15%;
  }

  .t-about__list li:nth-child(2n) .t-about__list-point {
    right: 15%;
  }
}

/* ------------------- course -------------------- */
.t-course__section {
  background-color: var(--c-blue-300);
  margin-inline: auto;
  overflow: hidden;
}

.t-course__list {
  max-width: var(--pc-maw-md);
  width: var(--inner-w);
}

.t-course__list li a {
  display: flex;
  align-items: center;
  background-color: var(--c-white);
  border-radius: 20px;
}

.t-course__title {
  flex: 1;
  line-height: 1.2;
  color: var(--c-blue-500);
}

.t-course__title .en{
  font-weight: 900;
}

.t-course__title .jp{
  font-weight: 700;
}

@media screen and (hover: hover) {
  .t-course__list li a:hover {
    opacity: 1;
  }

  .t-course__img {
    overflow: hidden;
  }

  .t-course__list li a:hover .t-course__img img {
    transform: scale(1.1);
    opacity: 1;
  }
}

@media screen and (min-width: 768px) {
  .t-course__section {
    margin-top: var(--spc-100);
    padding: var(--spc-100) 0;
      border-radius: 100px 100px 0 0;
  }
  .t-course__section{
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
  }

  .t-course__list {
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .t-course__img {
    width: 120px;
    border-radius: 20px 0 0 20px;
  }

  .t-course__title {
    padding: 0 20px;
  }

  .t-course__title .en {
    font-size: 12px;
    display: block;
  }

  .t-course__title .jp {
    font-size: var(--fz-30);
    display: block;
    margin-top: 12px;
  }
}
@media screen and (min-width: 768px) and (max-width: 1000px){
  .t-course__list{
    gap: 15px !important;
  }
  .t-course__img{
    width: 80px !important;
  }
}
@media screen and (max-width: 767px) {
  .t-course__section {
    max-width: var(--pc-maw-lg);
    margin-top: var(--spc-80);
    padding: var(--spc-80) 0;
      border-radius: 50px 50px 0 0;
  }

  .t-course__list {
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .t-course__img img{
    width: 70px;
    border-radius: 20px 0 0 20px;
  }

  .t-course__title {
    padding: 0 10px;
  }

  .t-course__title .en {
    font-size: 10px;
    display: block;
  }

  .t-course__title .jp {
    font-size: 16px;
    display: block;
    margin-top: 5px;
  }
}


/* ------------------- news -------------------- */
.t-news__section {
  background-color: var(--c-pink-200);
  overflow: hidden;
  margin: 0 auto;
}

.t-news__wrap {
  background-color: var(--c-white);
  border-radius: 20px;
  max-width: 1000px;
  width: var(--inner-w);
  margin: 40px auto 0;
  position: relative;
  padding: 40px 0;
}

.t-news__list {
  max-width: 800px;
  width: var(--inner-w);
  margin: 0 auto;
}

.t-news__list li:not(:last-child){
  border-bottom: 1px dashed var(--c-blue-500);
}

.t-news__list time {
  width: fit-content;
}

.t-news__text {
  flex: 1;
}

.t-news__character {
  width: 160px;
  position: absolute;
  top: 10%;
  right: 30px;
}

.t-news__btn a {
  display: block;
  border-radius: 50px;
  background-color: var(--c-blue-500);
  text-align: center;
  padding: 6px 0;
  width: 150px;
  font-size: 12px;
  margin: 20px auto 0;
  color: var(--c-white);
}
.t-news__btn a span{
  display: block;
  transition: 0.3s;
}

@media screen and (max-width: 1000px) {
  .t-news__character {
    display: none;
  }
}

@media screen and (min-width: 768px) {
  .t-news__section {
    padding-block: var(--spc-100);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    border-radius: 100px 100px 0 0;
  }
  .t-news__list{
    padding-right: 150px;
  }
  .t-news__list li a {
    display: flex;
    gap: 30px;
    font-size: 14px;
    padding: 15px 0;
  }
  .t-news__text{
    overflow: hidden;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    display: -webkit-box;
  }
}
@media (hover: hover){
  .t-news__btn a:hover{
    opacity: 1;
  }
  .t-news__btn a:hover span{
    transform: scale(1.05);
  }
}
@media screen and (max-width: 767px) {
  .t-news__section {
    padding: var(--spc-80) 0;
    border-radius: 50px 50px 0 0;
  }

  .t-news__wrap {
    padding: 20px 0;
  }

  .t-news__list li a {
    font-size: 12px;
    padding: 10px 0;
    display: block;
  }
  .t-news__character{
    display: block;
    width: 85px;
    position: absolute;
    top: -35%;
    right: 10px;    
  }
}

/* ------------------- event -------------------- */
.t-blog__list {
  max-width: var(--pc-maw-md);
  width: var(--inner-w);
  margin: 40px auto;
}

.t-blog__list a {
  display: block;
  color: var(--c-blue-500);
}

.t-blog__list-thumb img {
  border-radius: 20px;
}

.t-blog__list-date {
  font-weight: 400;
  font-size: var(--fz-14);
}

.t-blog__list-title {
  font-weight: 700;
  font-size: var(--fz-20);
}

.t-blog__list-text {
  font-size: var(--fz-16);
  color: #222222;
}

.t-blog__content .t-blog__list-title~p{
  color: var(--txt-c-base);
  font-size: 14px;
  font-weight: 400;
}

@media screen and (min-width: 768px) {
  .t-blog__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .t-event__section {
    margin-top: var(--spc-100);
  }

  .t-blog__list-thumb{
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 767px) {
  .t-blog__list a {
    display: flex;
    gap: 10px;
  }

  .t-blog__list-thumb {
    width: 40%;
  }

  .t-blog__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .t-blog__list-date {
    font-size: 10px;
  }

  .t-blog__list-title {
    font-size: 14px;
  }

  .t-blog__list-text {
    font-size: 12px;
    max-height: 40px;
    overflow: hidden;
  }

  .t-blog__list article+article {
    margin-top: 20px;
  }

  .t-event__section {
    margin-top: var(--spc-80);
  }
}

/* ------------------- blog -------------------- */
@media screen and (min-width: 768px) {
  .t-blog__section {
    margin-top: var(--spc-100);
  }
}

@media screen and (max-width: 767px) {
  .t-blog__section {
    margin-top: var(--spc-80);
  }
}

/* ヘッダー - トップのみ */
@media screen and (max-width: 767px){
  #headerarea{
    position: relative;
    z-index: 10000;
  }
}



/* ============================================
ローディングアニメーション
============================================ */
/* ローディングオーバーレイ */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(2px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--spc-30);
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease-out;
}

.loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* ロゴ */

@media screen and (min-width: 768px){
  .loading-overlay__logo{
  width: 12%;
  margin-inline: auto;
}
}
@media screen and (max-width: 767px){
  .loading-overlay__logo{
  width: 40%;
  margin-inline: auto;
}
}

/* ローディングスピナー */
.loader {
  width: 40px;
  height: 40px;
  border: 3px solid #f0f0f0;
  border-top: 3px solid var(--c-blue-500);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ヒーローセクションの初期状態とアニメーション */
.t-hero__section,
.t-about__section {
  opacity: 0.85;
  transform: scale(1.02);
  transition: filter 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              opacity 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.t-hero__section.animate-in,
.t-about__section.animate-in {
  filter: blur(0);
  opacity: 1;
  transform: scale(1);
}

/* ヘッダー全体の初期状態とアニメーション */
/* トップページのみヘッダーアニメーション適用 */
body:not(.no-animation) #headerarea {
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

body:not(.no-animation) #headerarea.animate-in {
  transform: translateY(0);
  opacity: 1;
}

/* ハンバーガーメニュー（.ft-nav）は除外 */

/* hd-float__menuのオーバーフロー対策 */
#headerarea {
  overflow: visible !important;
}

.hd-wrapper {
  overflow: visible !important;
}

.hd-inner {
  overflow: visible !important;
}

/* フロートメニューのli要素個別アニメーション */
.hd-float__list li {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hd-float__list.animate-items li {
  opacity: 1;
  transform: translateY(0);
}

/* 各liに時間差を設定 */
.hd-float__list.animate-items li:nth-child(1) {
  transition-delay: 0.1s;
}

.hd-float__list.animate-items li:nth-child(2) {
  transition-delay: 0.25s;
}

.hd-float__list.animate-items li:nth-child(3) {
  transition-delay: 0.4s;
}

/* スマホ用フッターメニューの初期状態とアニメーション */
.ft-sp-menu {
  transform: translateY(100%);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.ft-sp-menu.animate-in {
  transform: translateY(0);
  opacity: 1;
}

/* アニメーション無効化（ページ遷移以外の場合） */
body.no-animation .loading-overlay {
  display: none;
}

body.no-animation .t-hero__section {
  filter: blur(0);
  opacity: 1;
  transform: scale(1);
  transition: none;
}

body.no-animation #headerarea {
  transform: translateY(0) !important;
  opacity: 1 !important;
  transition: none !important;
}

body.no-animation .hd-float__list li {
  opacity: 1;
  transform: translateY(0);
  transition: none;
}

body.no-animation .ft-sp-menu {
  transform: translateY(0);
  opacity: 1;
  transition: none;
}

@media screen and (max-width: 767px){
  .ft-nav{
    z-index: 100000;
  }
}