@charset "UTF-8";
.header {
  margin: 0 auto;
  padding: 20px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: fixed;
  z-index: 999;
  top: 0;
  width: 100%;
}

.header_inner {
  position: relative;
  display: flex;
  padding: 0 5px;
  align-items: center;
}
.logo_img {
  width: 26%;
  margin: 0 auto 0 0;
  display: block;
}

.nav {
  margin: 0 0 0 auto;
}
.nav ul {
  display: flex;
}
.nav ul li {
  margin: 0 20px;
}

/* Google Mapを囲う要素 */
.map {
  position: relative;
  width: 71%;
  height: 63%;
  padding-top: 18%; /* 比率を4:3に固定 */
  margin: 0 auto;
}

/* Google Mapのiframe */
.map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 112%;
}

/* ファーストビュー */
/* ヒーローの器 */
.c-hero {
  position: relative;
  height: 700px;
  overflow: hidden;
}
.c-hero__slider {
  width: 100%;
}

/* スライド画像 */
.c-hero__img {
  position: relative;
  overflow: hidden;
}
.c-hero__img img {
  width: 100%;
  height: auto;
  display: block;
}

/* 高さ調整：必要に応じて固定比にしたい場合は下を有効化 */
/*
.c-hero__img img { aspect-ratio: 16 / 6; object-fit: cover; }
@media (max-width: 768px){
  .c-hero__img img { aspect-ratio: 16 / 9; }
}
*/

/* ドット */
.c-hero__pagination {
  bottom: 14px !important;
}
.c-hero__pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.7);
  opacity: 1;
}
.c-hero__pagination .swiper-pagination-bullet-active {
  background: #fff;
}

/* 矢印 */
.c-hero__btn {
  color: #fff;
  width: 42px;
  height: 42px;
}
.c-hero__btn::after {
  font-size: 20px;
}
.c-hero__btn--prev {
  left: 12px;
}
.c-hero__btn--next {
  right: 12px;
}

/* 矢印の視認性アップ（薄い背景向け） */
.c-hero .swiper-button-prev,
.c-hero .swiper-button-next {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  display: none;
}

/*--------パソコン----------*/
@media screen and (min-width: 1024px) {
  .header {
    padding: 0;
  }
  .header_inner {
    padding: 0 50px;
  }
}
a.btn-border {
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  padding: 15px 85px;
}

a.btn-border:hover {
  color: #fff;
  background: #000;
}

.top_message {
  width: 95%;
  overflow: hidden;
}

.top_message_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 800px;
}

/* 左カラム（テキスト） */
.text_area {
  flex: 1;
  padding: 60px 0;
  z-index: 2;
  width: 50%;
}

.text_area p {
  font-size: 22px;
  letter-spacing: 0.12em;
  line-height: 170%;
}

.btn.btn-border {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 30px;
  border: 1px solid #000;
  text-decoration: none;
}

/* 右カラム（パララックス背景） */
.image_area {
  flex: 1;
  height: 800px;
  width: 50%;
  overflow: hidden;
  position: relative;
}

.parallax_bg {
  background-image: url("../assets/img/DSC02561.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: calc(100% + 100px);
  transform: translateY(0);
  transition: transform 0.1s linear;
}
.parallax_bg.bg2 {
  background-image: url("../assets/img/DSC02286.webp");
}
.top_message p {
  margin: 30px 0 60px;
}

.border_line {
  font-family: "游明朝体";
  font-weight: 300;
  font-size: 2.2rem;
  border-bottom: 1px solid;
  padding-bottom: 10px;
  width: 320px;
  margin-left: 20px;
  margin-bottom: 30px;
}

.your_problem_backimg {
  position: relative;
  margin: 80px 0;
}

.problem_text {
  position: absolute;
  top: 130px;
  left: 0;
}
.problem_text li:before {
  content: "";
  width: 20px;
  min-height: 20px;
  position: absolute;
  box-sizing: border-box;
  border: 1px solid #000;
  left: 33px;
}

/* スライダー */
/* 全体 */
.stair-loop {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 40px 0;            /* 上下の余白（好みで） */
}

/* 横に並べるレーン（2本） */
.stair-loop__track {
  display: flex;
  gap: clamp(16px, 2vw, 32px); /* 画像の間隔 */
  width: max-content;
  will-change: transform;
  animation: stair-scroll 50s linear infinite;
}

/* 2本目は半周ズラしてシームレスに */
.stair-loop__track:nth-of-type(2) {
  position: absolute;
  top: 40px;                  /* 親のpadding-topと同じに */
  left: 0;
  animation-delay: -20s;      /* 40sの半分を負の遅延で開始 */
}

/* 各アイテム（幅は可変、高さを段々に） */
.stair-loop__item {
  flex: 0 0 auto;
  width: clamp(320px, 32vw, 520px);  
   aspect-ratio: 3 / 4;       
  border-radius: 10px;
  overflow: hidden;
}

/* 段々の高さ（3パターンをローテーション） */
.stair-loop__item:nth-child(3n + 1) { height: clamp(180px, 30vw, 480px); }
.stair-loop__item:nth-child(3n + 2) { height: clamp(220px, 30vw, 460px);margin-bottom: 20px; }
.stair-loop__item:nth-child(3n + 3) { height: clamp(260px, 30vw, 640px);margin-top: 20px; }
.stair-loop__item:nth-child(3n + 4) { height: clamp(260px, 30vw, 640px);margin-top: 10px; }


/* 画像のフィット */
.stair-loop__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



/* スクロールアニメーション */
@keyframes stair-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* 2本で全体100%になる前提で半分進める */
}

/* スマホ調整（高さを控えめに） */
@media (max-width: 768px) {
  .stair-loop__item:nth-child(3n + 1) { height: 160px; }
  .stair-loop__item:nth-child(3n + 2) { height: 200px; }
  .stair-loop__item:nth-child(3n + 3) { height: 240px; }
}


/*--------パソコン----------*/
@media screen and (min-width: 1024px) {
  .problem_text {
    margin-left: 36%;
    top: 30%;
  }
  .border_line {
    margin-left: 60px;
  }
}
.your_problem_list {
  text-align: left;
  padding: 0 40px 0 60px;
}
.your_problem_list li {
  margin-bottom: 15px;
}

.trial_box {
  position: relative;
  padding: 40px 35px;
  background: #f6f4f4;
  margin: 40px 0;
  border-radius: 25px;
}
.trial_box_arr img {
  width: 18px;
  display: inline-block;
  margin: 0 10px;
}

/*
.trial_box::before {
  content: "Personal";
  right: 270px;
  transform: rotate(90deg);
  display: block;
  position: absolute;
  top: 20px;
}
*/
.trial_box_semi {
  position: relative;
  padding: 40px 35px;
  background: #f6f4f4;
  font-family: "游明朝体";
  margin: 40px 0;
}
.lesson_img {
  /* width: 59%;
  height: 500px;
  object-fit: cover;
  border-radius: 50px; */
}
.image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  overflow: hidden;
}

.lesson_img {
  width: 40px; /* 初期サイズ */
  transform-origin: center center;
  transition: transform 0.1s linear;
  will-change: transform, width;
}

/*
.trial_box_semi::before {
  content: "Pair Personal";
  right: 225px;
  transform: rotate(90deg);
  display: block;
  position: absolute;
  top: 36px;
  width:300px;
}
*/
.btn_pink {
  position: relative;
  padding: 10px 30px 10px 0px;
  background: #ebc3c3;
  margin-top: 10px;
}
.btn_pink .arrow::after {
  content: "";
  position: absolute;
  width: 31px;
  height: 8px;
  border-bottom: 1px solid #000;
  border-right: 1px solid #000;
  transform: skew(45deg);
  font-family: "Noto Sans";
  top: 16px;
}

.trial_plan {
  padding: 30px 20px;
  box-sizing: border-box;
  border: 1px solid #000;
  font-family: "游明朝体";
  margin: 0 40px;
  background: #fff;
}

.voice_section {
  position: relative;
  background: #eee2da;
  padding: 60px 0;
}
.voice_section p {
  margin: 17px 0px 8px;
}
/* ヒーローにオーバーレイ配置 */
.c-hero {
  position: relative;
}
.c-hero__headline {
  position: absolute;
  left: 0%;
  top: 5%;
  z-index: 5;
  pointer-events: none; /* 中央配置（必要に応じて変えてOK） */
  z-index: 5; /* スライダーUIより前に */
  padding: clamp(16px, 4vw, 40px);
}

/* 見出しの見た目 */
.c-hero__title {
  font-size: clamp(28px, 6vw, 64px);
  line-height: 1.2;
  font-weight: 700;
  color: #000;
  text-align: left;
  letter-spacing: 0.06em;
  border: none;
  white-space: nowrap; /* 1行固定。改行したければ適宜調整 */
}

/* 1文字ずつのアニメーション（JSでspanを挿入） */
.c-hero__title .char {
  display: inline-block;
  opacity: 0;
  transform: translateX(16px);
  animation: heroCharIn 0.6s cubic-bezier(0.22, 0.8, 0.26, 0.99) forwards;
  animation-delay: calc(var(--i) * 0.06s); /* 左→右に遅延 */
  margin: 10px 0;
  background-color: #fff;
  padding: 4px;
}

/* 句読点やスペースは少し待ってから */
.c-hero__title .char.space {
  width: 0.5em;
}
.c-hero__title .char.punct {
  animation-delay: calc(var(--i) * 0.06s + 0.06s);
}

@keyframes heroCharIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* コントラスト不足時の保険（背景が明るい画像でも読めるよう半透明背景） */
@supports (backdrop-filter: blur(6px)) {
  .c-hero__title {
    border-radius: 0.5rem;
  }
}

/* アニメーション苦手な人の配慮 */
@media (prefers-reduced-motion: reduce) {
  .c-hero__title .char {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

.c-hero {
  position: relative;
  margin: 7% 3% 0 16%;
}

/* スライダーや見出しは上に来るよう調整 */
.c-hero__slider,
.c-hero__headline {
  z-index: 2;
}
h3 {
  margin-bottom: 10px;
}
.c-hero-sticky {
  margin: 7% 3% 0 10%;
}

/*--------パソコン----------*/
@media screen and (min-width: 1024px) {
  .flex {
    display: flex;
    position: relative;
    justify-content: center;
  }
  .your_problem_backimg {
    margin-top: 10%;
    margin-bottom: 10%;
  }
  .trial_box {
    margin-right: 60px;
    padding: 40px 80px;
  }
  .trial_box::before {
    right: 403px;
  }
  .trial_box_semi {
    padding: 80px;
  }
  .trial_box_semi::before {
    right: 385px;
  }
  .voice_top_pc {
    display: flex;
    justify-content: center;
    margin: 60px 0;
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    margin: 0 auto;
    max-width: 800px;
  }
  .voice_top_pc_text {
    width: 500px;
    padding-left: 30px;
    margin-top: 0;
  }
  .btn_pink {
    padding: 15px 50px;
  }
  .btn_pink .arrow::after {
    top: 20px;
  }
  .trial_plan {
    width: 1120px;
    display: inline-block;
    padding: 60px 0;
  }
  .addres {
    padding-top: 50px;
  }
}

@media only screen and (max-width: 768px) {
  .voice_top_pc {
    display: flex;
    justify-content: center;
    margin: 60px 0;
    flex-direction: column;
    background: #fff;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 20px;
  }
  .c-hero {
    height: auto;
  }
  .swiper {
    height: 750px;
  }
  .swiper.c-hero__slider {
    height: auto;
  }
  .inner {
    padding: 0 16px;
  }
  .header {
    padding: 0;
  }
  .header_inner {
    padding: 0px 16px;
  }
  .swiper {
    z-index: -1;
  }
  .header {
    z-index: 9999;
  }
  .your_problem_backimg img {
    width: 100%;
  }
  .swiper-wrapper {
    height: 66vw !important;
  }
  .logo_img {
    width: 63%;
  }
  .header_logo {
    max-width: 100px;
  }
  .lesson_img {
    /* width: 80%;
    height: 223px; */
  }
  .trial_plan {
    margin: 0;
  }
  .map iframe {
    height: 100%;
  }
  .map {
    width: 90%;
    height: 68%;
    padding-top: 61%;
  }
  .c-hero__title .char {
    margin: 3px 0;
  }
  .c-hero__headline {
    top: 3%;
  }
  .top_message_inner {
        flex-direction: column;
        min-height: auto;
  }
    .top_message_inner.one{
      flex-direction: column-reverse;
    }
    .image_area {
      width: 100%;
     flex: 35rem;
    }
    .text_area {
    width: 100%;
    padding: 0;
    }
  .text_area p {
    font-size: 13.64px;
  }
  .top_message{
    margin: 0;
    width: 100%;
  }
  section{
    margin: 30px 0;
    padding: 0 15px;
  }
 .top_message p{
    margin-top: 30px;
    margin-bottom: 30px;
  }
}
