/*
Theme Name: Language Holiday
Author: Kota Sagawa
Version: 1.0
Description: Language Holidayウェブサイト
*/

/*　参考サイト
https://www.yamashina.or.jp/albatross/kifu.html
フォントはここを真似したい
https://125naroom.com/web/3701
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Zen+Kaku+Gothic+Antique:wght@400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');

:root {
    --primary: #FDA085;
    --sub: #fff2ef;
    --dark: #222222;
    --dark2: #333333;
    --body: #888;
    --box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

h1, h2 {
    font-family: "Zen Kaku Gothic Antique", sans-serif;
}

h2 {
    font-size: 50px;
    font-weight: bold;
    color: var(--dark);
}

p, h3, h4, span {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    color: var(--dark2);
}

p {
    font-size: 16px;
    line-height: 1.54;
    color: var(--dark);
}

h4 {
    font-size: 26px;
    line-height: 35px;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.blog p,
.fivereason-top p,
.merit-title p,
.plan-title-frame p,
.country-title-frame p,
.process-title-frame p,
.question-title-frame p {
    font-size: 20px;
}

/* rowのネガティブマージンを打ち消す */
.eachReason .row {
    margin-left: 0;
    margin-right: 0;
}

/* 画像とテキストのパディングを調整 */
.reason-img-one,
.reason-img-two,
.reason-text {
    padding: 0;
}

/* テキストエリアの余白を調整 */
.reason-text-inner-right,
.reason-text-inner-left {
    padding: 20px;
}

/* テキストエリアの余白を調整 */
.reason-text-inner-right h3,
.reason-text-inner-left h3 {
    font-weight: 700;
}

a {
    color: var(--dark);
    text-decoration: none;
}

.navbar .nav-link {
    color: black;
    font-size: 14px;
    font-weight: 500;
}

#navbarNav {
    align-items: center;
}

.btn {
    background-color: #06C755;
    border-radius: 10px;
}

.header-logo {
    width: 300px;
    display: flex;
    align-items: center;
}

.hero {
    background-image: url('./img/kids-study.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* PC用固定背景 */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-weight: 900;
    font-size: 69px;
    line-height: 90px;
    margin-bottom: 50px;
    width: 100%;
}

.hero-title.pc-text {
    display: block;
}

  /* スマホ表示用のヒーロータイトルは非表示 */
.hero-title.sp-text {
    display: none;
}

.hero::after {
    content:"";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(89, 92, 139, 0.7);
    z-index: -1;
    opacity: 0.5;
}

/* 記事一覧 */

.iconbox {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    background-color: var(--primary);
    border-radius: 100px;
    flex: none;
}

.service {
    position: relative;
    overflow: hidden;
}

.service::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    background-color: var(--primary);
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.35s ease;
    z-index: -1;
}

.service:hover h5, 
.service:hover p {
    color: white;
}

.service:hover .iconbox {
    background-color: #fff;
    color: var(--primary);
}

.service:hover::after {
    opacity: 1;
    top: 0;
}


.col-img {
    background-image: url(/img/cover2.jpg);
    background-position: center;
    background-size: cover;
    min-height: 500px;
}


/* slick slide */
.slick {
    margin: 0;
    padding: 0;
    margin-bottom: 100px;
    margin-top: 120px;
  }

  *{
    box-sizing: border-box;
  }

.slick-content p {
    line-height: 1.6;
    margin-top: 10px;
}


.slide {
    margin: 0 5px 0 5px;
}

.wrapper{
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* 親要素に相対位置を指定 */
    /*margin-bottom: 20px;*/
  }

  .inner{
    width: calc(100% - 100px);
    /* max-width: 1000px; */
    position: relative; /* 矢印の基準点となる */
  }

  .slick-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 360px;
    height: 230px;
    max-width: 100%;
    object-fit: cover; /* 画像を指定サイズに合わせてトリミング */
    background-position: center;
    background-size: cover;
    border-radius: 5px;
    z-index: -1;
  }
  
  /* arrow 
  .slick-arrow {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    z-index: 10;
    width: 20px;
    height: 20px;
    border-top: 3px solid black;
    border-right: 3px solid black;
    opacity: 0.8;
    background: transparent;
  }

  .slick-arrow::before{
    content: '';
  }
    */

/* left: 〇〇px と rotate を別で指定 */
.slick-prev{
    left: 50px;
    transform: rotate(-135deg);
  }
  .slick-next{
    right: 50px;
    transform: rotate(45deg);
  }

.slick-prev,
.slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 20px;
  height: 20px;
  opacity: 0.8;
  background: transparent;
  border: none;
}

.slick-prev {
  left: 10px;
  transform: translateY(-50%) rotate(-135deg); /* ←←←← */
  border-top: 3px solid black;
  border-right: 3px solid black;
}

.slick-next {
  right: 10px;
  transform: translateY(-50%) rotate(45deg); /* →→→→ */
  border-top: 3px solid black;
  border-right: 3px solid black;
}



/*コラム一覧ボタン*/
.column-btn-frame {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
.column-btn {
    position: relative; /* アイコンの絶対配置の基準に */
    display: flex;
    justify-content: center; /* 文字を中央に */
    align-items: center;
    width: 300px;
    height: 50px;
    background: linear-gradient(to right, var(--primary), #f6d365);
    border-radius: 50px;
    padding: 0 20px; /* アイコンが端に寄りすぎないように余白 */
    box-sizing: border-box;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.column-btn:hover {
    opacity: 0.8;
}

.column-btn p {
    margin: 0;
    z-index: 1; /* アイコンの下に埋もれないように */
}

.column-btn i {
    position: absolute;
    right: 20px; /* ボタン右端から20pxの位置 */
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.column-btn p,
.column-btn i {
    color: #333; /* 初期色（必要なら調整） */
    transition: color 0.3s ease, opacity 0.3s ease;
}

.column-btn:hover p,
.column-btn:hover i {
    color: #ffffff; /* ホバー時の色（必要に応じて変えてください） */
    opacity: 0.8; /* 少し透明にしたい場合 */
}



  @media (max-width: 1200px) {
    .slick-arrow {
        margin-top: -30px;
      }

    .slick-prev{
        left: 30px;
      }
      .slick-next{
        right: 30px;
      }

    .header-logo {
        width: 220px;
    }

      .navbar .nav-link {
        font-size: 12px;
    }
  }

  #slick-slide-control00 {
    color: red;
  }

  /* dots */
  .slick-dots {
    text-align: center; /* ドットを中央寄せ */
    width: 100%; /* 横幅いっぱい */
    padding: 0;
    margin: 0 auto; /* 中央 */
    position: absolute;
    left: 0;
    right: 0;
    bottom: -25px;
}

  .slick-dots li,
  .slick-dots li button,
  .slick-dots li button::before{
    width: 12px;
    height: 12px;
  }
  .slick-dots li{
    margin: 0 7px;
  }
  .slick-dots li button{
    background-color: #00A0E6;
    opacity: .8;
    border-radius: 100%;
  }
  .slick-dots li.slick-active button{
    opacity: .4;
  }
  .slick-dots li button::before{
    content: '';
  }


/* slick slide */

/* ヒーローセクション開始 */
.text-left {
    padding-right: 5px;
}
.text-left p {
    font-size: 24px;
    font-style: italic;
}
/* ヒーローセクション終了 */

/* お悩みセクション開始 */
.onayami-all {
    padding: 0px;
    margin-top: 50px;
}

.onayami-top {
    width: 100%;
    background: linear-gradient(180deg, #fff 0, #fff 58%, #fff2ef 58%, #fff2ef 100%);
    padding: 30px 15px;
}

.onayami-image {
    width: 80px;
    padding: 15px;
}

.onayami-top-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.onayami-top .row {
    max-width: 800px;
    margin: 0 auto;
}

/* 悩みの円の形 */
.onayami-box {
    height: 100%;
    width: 100%;
    background-color: #FED0BB;
    border-radius: 10px;
    font-weight: 700;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.onayami-box:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.onayami {
    height: 250px;
    width: 250px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px;
}

.onayami-text {
    padding: 20px;
    display: flex;
    flex-direction: column; /* デフォルト：縦並び（PC） */
    align-items: center;
    text-align: center;
}

.onayami-text P {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

/* ここいじると崩れるので確認 */
@media (min-width: 768px) and (max-width: 1200px) {
    .onayami {
        flex: 0 0 auto;
        width: calc(33.33% - 20px);
        max-width: 270px;
        margin: 0 10px;
    }
    
    .onayami-box {
        transform: scale(0.9);
    }

    
}
/* ここいじると崩れるので確認 */



.onayamibottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 10px 10px 50px 10px;
    z-index: -1;
    background-color: var(--sub);
}

.onayamibottom-text {
    line-height: 40px;
}

.solution h3 {
    font-size: 40px;
}

.solution .solution-text {
    margin-top: 40px;
}

.solution-text-sub {
    padding: 20px;
    font-weight: 900;
}


.triangle {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 30px solid var(--primary);
    margin-bottom: 10px;
}

.heading-underline {
    line-height: 1.4;
    position: relative;
    display: inline-block;
    z-index: 1;
    overflow: hidden;
  }
  
  .heading-underline::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 12px;
    width: 100%;
    background-color: rgb(240, 240, 87);
    transform: translateX(-100%);
    transition: transform 1.5s ease; /* アニメーションだけを遅らせる */
    will-change: transform;
    z-index: -1;
  }
  
  .heading-underline.scroll::after {
    transform: translateX(0);
  }

/* 遅延タイミング */

/* お悩みセクション終了 */

/* 選ばれる理由セクション 開始 */
/* 5つの理由 開始 */

.fivereason {
    margin-bottom: 100px;
    padding: 20px;
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: var(--sub);
    overflow: visible;
    display: block;
    border-bottom-left-radius: 100px;
    border-bottom-right-radius: 100px;
    overflow: hidden; /* 子要素がはみ出さないように */
}

.fivereason-top {
    margin-bottom: 50px !important;
}

.fivereason-title {
    margin-bottom: 5px;
}

.reason-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 100%;
    margin: 0 auto;
}

.reason {
    background-color: #ffffff;
    width: 200px;
    height: 200px;
    flex: 0 0 auto;
    border: 3px solid var(--primary);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.reason:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  }

  /* アニメーション定義 */
  @keyframes shakeY {
    0%, 100% { transform: translateY(0); }
    10% { transform: translateY(-4px); }
    20% { transform: translateY(4px); }
    30% { transform: translateY(-3px); }
    40% { transform: translateY(3px); }
    50% { transform: translateY(0); }
    100% { transform: translateY(0); } /* アニメーション終了位置を維持 */
  }
  
  /* ホバー時にSVGを揺らす */
  .reason:hover .reason-icon svg {
    animation: shakeY 2s infinite ease-in-out;
  }

  .reason-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;  /* ← 横中央 */
    align-items: center;      /* ← 縦中央 */
    margin: 0 auto 6px;       /* 中央揃え + 下に少し余白 */
  }
  
  .reason-icon svg {
    width: 100%;
    height: 100%;
    display: block;           /* ← 空白対策 */
    vertical-align: middle;   /* ← 念のため */
  }

  .reason-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }


.reason-inner {
    text-align: center;
    padding: 20px;
}

.reason-number {
  width: 55px;
  height: 55px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  margin: 0 auto 10px;
  flex-shrink: 0;
}

.reason-number p {
    color: white;
    font-size: 24px;
}



/* テキスト部を統一する */
.reason-inner p:last-of-type {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px; /* 任意。必要に応じて調整 */
    line-height: 1.4;
    margin: 0;
  }


/* 5つの理由 終了 */
/* それぞれの理由 開始 */
.reason-img-one {
    background-image: url(img/counseling.jpg);
    background-position: center;
    background-size: cover;
    height: 300px;
    border-radius: 0 30px 30px 0;
}

.reason-text {
    display: flex;
    align-items: center;
}

.reason-text-inner-right {
    padding-left: 10%;
    padding-right: 25%;
}

.reason-text-inner-right h3, .reason-text-inner-left h3 {
    font-style: italic;
    font-size: 70px;
}

.reason-text-inner-subtitle {
    font-size: 30px;
    font-weight: 700;
}


.reason-img-two {
    background-image: url(img/english.jpg);
    background-position: center;
    background-size: cover;
    height: 300px;
    border-radius: 30px 0 0 30px;
}

.reason-img-three {
    background-image: url(img/support.jpg);
    background-position: center;
    background-size: cover;
    height: 300px;
    border-radius: 0 30px 30px 0;
}

.reason-img-four {
    background-image: url(img/money.jpg);
    background-position: center;
    background-size: cover;
    height: 300px;
    border-radius: 30px 0 0 30px;
}

.reason-img-five {
    background-image: url(img/classroom.jpg);
    background-position: center;
    background-size: cover;
    height: 300px;
    border-radius: 0 30px 30px 0;
}

.reason-text-inner-left {
    padding-left: 30%;
    padding-right: 10%;
}

.eachReason {
    margin-bottom: 100px;
    border-radius: 12px; /* 丸みをつける場合 */
}


/*フェードイン系*/
/* 追加　基本：フェードイン用共通設定 */
.js-fade,
.js-fade-title,
.js-fade-target,
.js-fade-left,
.js-fade-right,
.js-fade-uptodown,
.js-fade-left-merit,
.js-fade-right-merit,
.js-fade-detail,
.each-content {
  opacity: 0;
  transition: all 0.8s ease;
  will-change: opacity, transform;
}
/*削除
.js-fade-title,
.js-fade-reason,
.js-fade-detail {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s, transform 1s;
}
*/

/* 追加　下から上にフェードイン */
.js-fade,
.js-fade-title,
.js-fade-target,
.js-fade-detail {
  transform: translateY(20px);
}
.js-fade.scroll,
.js-fade-title.scroll,
.js-fade-target.scroll,
.js-fade-detail.scroll {
  opacity: 1;
  transform: translateY(0);
}

/*削除
.js-fade,
.js-fade-target {
  opacity: 1 !important;
  transform: none !important;
}
  */

.scroll {
    opacity: 1;
    transform: translateY(0);
}

/* それぞれの理由 終了 */
/* 選ばれる理由セクション 終了 */

/* Oyako-intro section */

.intro-img {
    background-image: url(/img/alvin-mahmudov-vKuEhorbvYI-unsplash\ \(1\).jpg);
    background-position: center;
    background-size: cover;
    min-height: 500px;
}

.intro-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 50px;
    flex: none;
}


/* Project section */
.project {
    position: relative;
    overflow: hidden;
}

.project .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(37, 39, 71, 0.7);
    padding: 30px;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: all 0.4s ease;
}

img {
    width: 100%;
}

.project img {
    transition: all 0.4s ease;
}

.project:hover .overlay {
    opacity: 1;
    transform: scale(1.1);
}

.project:hover img {
    transform: scale(1.1);
}

/* 相談セクション */

.consult-box {
    width: 300px;
    margin: 0 auto;  /* 左右の余白を均等にして中央寄せ */
    display: flex;
    flex-direction: column;
    align-items: center;  /* 縦方向（column）でも中央寄せ */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.consult-box:hover {
    transform: scale(1.05); /* 拡大 */
  }

.consultation {
    padding: 0;
    height: 600px;
    background-color: var(--primary);
}

.consultation-inner {
    padding: 30px 15px;
    height: 60%;
    background-color: #F7F8F7;
    border-radius: 50px;
    width: 60%;
    max-width: 100%;
    margin-top: 50px;
    margin-bottom: 50px;
} 

.consul-btn1, .consul-btn2 {
    /* width: 310px; */
    width: 90%;
    height: 100px;
    border-radius: 20px;
    border: none;
    margin: 0;
}

.consul-btn1 {
    background-color: #00A0E6;
}

.consul-btn2 {
    background-color: #06C755;
}

.consul-btn1 p a {
    font-size: 16px;
}

.consul-button {
    width: 310px;
    height: 100px;
    background-color: red;
}

.highlight {
    text-decoration: underline; /* 下線 */
    text-decoration-thickness: 0.5em; /* 線の太さ */
    text-decoration-color: rgba(240, 64, 123, 0.4); /* 線の色 */
    text-underline-offset: -0.2em; /* 線の位置。テキストに重なるようにやや上部にする */
    text-decoration-skip-ink: none; /* 下線と文字列が重なる部分でも下線が省略されない（線が途切れない） */
  }

  .consul-title h3 {
    text-align: center;
  }
/* 相談セクション */




/* 親子留学とはセクション（写真のとこ）
.oyako-img {
    background-image: url(img/airplane.jpeg);
    background-position: center;
    background-size: cover;
    height: 100vh;
}

.oyako-text {
    font-weight: 600;
    line-height: 3;
}
 */

/* Oyako description section */
#description2 {
    margin-top: 120px;
    margin-bottom: 120px;
}

.description-frame {
    border-radius: 0 30px 30px 0;
    background-color: #00A0E6;
}

.description-message h2 {
    font-family: 'Zen Kaku Gothic New', Courier, monospace;
}

.oyako-title {
    text-align: left;
    margin-left: 20%;
    font-weight: 700;
    line-height: 150%;
}

.oyako {
    margin-left: 10%;
}

/* description2 sectionここから */
.description-frame-img {
    background-image: url(img/family.jpg);
    background-position: center;
    background-size: cover;
    height: 400px;
    border-radius: 0 30px 30px 0;
}

.description-details {
    margin-top: 50px;
}
/* description2 sectionここまで */


/* 根拠1 section */
.evidenceone {
    min-height: 1200px;    /* 最低800pxだが、はみ出しは許可 */
    height: auto;         /* ← 必ず追加 */
    overflow: hidden;     /* ← はみ出し防止、必要に応じて */
    position: relative;
  }

.evidenceone-text {
    z-index: 1;
    position: relative;
    width: 100%;
}

.evidenceone-text cite {
    font-size: 0.6rem; /* または 12px など、お好みのサイズに調整可能 */
    display: block;    /* 複数行になるときは改行して表示されます */
    margin-top: 1rem;  /* 上に少し余白もつけると読みやすいです */
    color: #9f9f9f;       /* 任意で色をグレーにすると引用っぽくなります */
  }

.evidenceone-text h2 {
    font-family: 'Zen Kaku Gothic New', Courier, monospace;
}

.sample {
    --sample-color: 253 160 133;
    aspect-ratio: 1 / 1;
    background: radial-gradient(
      circle,
      rgb(var(--sample-color)),
      rgb(var(--sample-color) / 0%)
    );
    border-radius: 50%;
    filter: blur(50px);
    width: min(100%, 400px);
    position: absolute;
    z-index: 0;
    right: 10%;
}


.evidenceone p {
    line-height: 2;
}

.evidence-img {
    background-image: url(img/language-ability.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain; /* 画像をトリミングせず全体表示 */
    width: 60%;
    aspect-ratio: 4 / 3; /* PCでもバランスの取れた縦横比で拡大 */
    max-width: 800px; /* 最大幅（必要に応じて調整） */
    margin: 0 auto;
    border-radius: 20px;
  }

/* Merit section */
.fiveMerits {
    margin-top: 120px;
    background-color: red;
}

.merit-title {
    margin-bottom: 80px;
}

.merit-img1 {
    background-image: url('./img/cultural-experience.jpg');
    background-position: center;
    background-size: cover;
    height: 300px;
    border-radius: 10px;
    /*
    position: absolute;
    top: -10px; 
    left: 0; 
    width: 100%; 
    height: auto; 
    */
}

.merit-img2 {
    background-image: url('./img/familyconnect.jpg');
    background-position: center;
    background-size: cover;
    height: 300px;
    border-radius: 10px;
}

.merit-img3 {
    background-image: url('./img/english.jpg');
    background-position: center;
    background-size: cover;
    height: 300px;
    border-radius: 10px;
}

.merit-img4 {
    background-image: url('./img/confident.jpg');
    background-position: center;
    background-size: cover;
    height: 300px;
    border-radius: 10px;
}

.merit-img5 {
    background-image: url('./img/change.jpg');
    background-position: center;
    background-size: cover;
    height: 300px;
    border-radius: 10px;
}


.merit-in {
    padding: 80px;
    margin-top: 50px;
}


/* または、より緩やかな湾曲 */
.merit-frame {
    position: relative;
    overflow: hidden;
    background-color: var(--primary);
    overflow: visible; /* スマホだけ */
}

.merit-frame {
    min-height: 1000px; /* 仮、適宜調整 */
}

/* デフォルト（PC表示） 曲線の調整*/
.merit-frame {
    position: relative;
    min-height: 1000px;
    background-color: #FDA085; /* 下側のオレンジ色 */
    overflow: hidden;
    clip-path: ellipse(150% 100% at 50% 100%);
}


.merit-frame, .merit-frame * {
    position: relative;
}

/* コンテンツを確実に前面に表示 */
.merit-frame > * {
    position: relative;
    z-index: 2;
}

.merit-contents {
    background-color: #fff;
    border-radius: 50px;
    margin-bottom: 80px;
    padding: 50px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.merit-upper {
    display: flex;
    align-items: flex-end;margin-bottom: 20px;

}

.number {
    font-size: 60px;
    color: black;
    font-style: italic;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1;
    padding-left: 7px;
    margin-right: 15px;
}

.number2 {
    font-size: 60px;
    color: black;
    font-style: italic;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1;
    margin-left: 15px;
    padding-right: 7px;
}

.merit-subtitle {
    font-weight: 700;
    margin-bottom: 0;
    padding-left: 5px;
    padding-right: 5px;
}
/* 5つのメリット */


.five-sec-title {
    margin-bottom: 50px;

}

.five-inner {
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.five-inner img {
    width: 100%;
}

.five-content {
    border-radius: 20px;
    background-color: #F1EFEC;
    padding: 15px;
    width: 200px;
}

.five-inner h3 {
    font-size: 16px;
    font-weight: 400;
}

.five-inner p {
    font-size: 12px;
    font-weight: 400;
    margin: 0;
}
/* 5つのメリット */

/* 親子留学の種類 */
.plan-title-frame {
    margin-bottom: 100px !important;
}

.plan-title {
    margin-bottom: 5px;
}

.plan-img-frame {
    margin-bottom: 30px;
    position: relative; /* 追加 */
}

/* 装飾背景を先に定義し、z-indexを低く設定 */
.plan-img-frame:before {
    content: "";
    width: 400px;
    height: 300px;
    background: var(--sub);
    border-radius: 20px;
    position: absolute;
    -webkit-transform: rotate(10deg);
    transform: rotate(10deg);
    left: 20px;
    top: 20px;
    z-index: 1; /* 変更 */
}

.plan-img1, .plan-img2, .plan-img3 {
    background-position: center;
    background-size: cover;
    height: 300px;
    aspect-ratio: 4 / 3; /* 幅:高さの比率を指定 */
    border-radius: 10px;
    position: relative;
    z-index: 2; 
}

.plan-img1 {
    background-image: url('./img/hawaii-image.jpg');
}

.plan-img2 {
    background-image: url('./img/canada-image.jpg');
}

.plan-img3 {
    background-image: url('./img/phillipines.jpg');
}

.flag-icon {
    width: 80px;
    height: auto;
    display: inline-block;
    object-fit: contain;
  }


.plan-contents {
    padding: 0 60px;
    margin-bottom: 200px;
}

.plan-contents-left {
    padding-right: 10%;
    padding-left: 40px; /* 左側の余白を追加 */
}

.plan-contents-right {
    padding-left: 40px; /* 左側の余白を固定値に変更 */
    padding-right: 40px; /* 右側の余白も固定値に変更 */
}

.merit-title-description {
    font-size: 22px;
    font-weight: 700;
}


/* 留学留学の種類 */

/* Process Section 親子留学の流れ */
#process {
    margin-bottom: 80px;
}

#process .container {
    width: 70%;
}

#process .row {
    margin-left: 0;
    margin-right: 0;
}

.process-title-frame {
    margin-bottom: 80px !important;
}

.process-title {
    margin-bottom: 5px;
}

.process-img {
    background-image: url(/img/cover2.jpg);
    background-position: center;
    background-size: cover;
    width: 200px;
    height: 200px;
    border-radius: 50%;
}

.each-content .each-content-frame h3 {
    font-weight: 700 !important;
    margin-bottom: 15px;
}

.each-content {
    position: relative;
    background-color: #F7F8F7;
    background-color: #fff2ef;
    border-radius: 50px;
    padding: 20px;
    margin-bottom: 30px;
    overflow: visible;
}

/* 子要素も左右のpaddingを持つ */
.col-lg-4, .col-md-4, .col-lg-7, .col-md-7 {
    padding-left: 15px;
    padding-right: 15px;
}

/* 1つ目だけ z-index: 3 に */
.each-content:nth-child(1) {
    z-index: 5;
}
  /* 2つ目は z-index: 2 に */
.each-content:nth-child(2) {
    z-index: 4;
}
  /* 3つ目は z-index: 1 に */
.each-content:nth-child(3) {
    z-index: 3;
}

  /* 3つ目は z-index: 1 に */
  .each-content:nth-child(4) {
    z-index: 2;
}

  /* 3つ目は z-index: 1 に */
  .each-content:nth-child(5) {
    z-index: 1;
}

.process-number {
    font-size: 50px;
    font-weight: 700;
    font-style: italic;
    color: var(--primary);
    margin-bottom: 0;
}


.process-con-right {
    margin-left: 20px;
}

.each-content:not(:last-child)::after {
    content: "\f063"; /* 下向き矢印を表す文字 */
    font-family: "Font Awesome 5 Free"; /* FontAwesomeのフォントファミリー */
    font-weight: 900; /* Solidアイコンの場合は900 */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto; /* 上下のマージンを調整 */
    width: 70px; /* 円の直径 */
    height: 70px; /* 円の直径 */
    background-color: #ffffff; /* 円の背景色 */
    border-radius: 50%; /* 円形にする */
    color: var(--primary); /* 矢印の色 */
    font-size: 30px; /* 矢印のサイズを調整 */
    line-height: 30px; /* 円の中央に配置 */
    position: absolute;
    bottom: -80px;/* 円の位置を調整 */
    left: 50%; /* 左から50%の位置に配置 */
    transform: translateX(-50%);  /*　X軸方向に-50%移動して中央に配置 */
    z-index: 9999; /* 必要に応じてz-indexを調整 */
    opacity: 1;
    visibility: visible;
    transform: translateY(-50px);
    transition: opacity 2s, visibility 2s, transform 2s;
    transition-delay: var(--delay, 0s); /* カスタムプロパティで遅延を指定 */
}

.each-content:not(:last-child).scroll-uptodown::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* country section開始 */
.country {
    margin-bottom: 100px !important;
}

.country-title-frame {
    margin-bottom: 50px !important;
}

.country-title {
    margin-bottom: 5px;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4 / 3; /* スマホでも高さ統一 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrapper:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 85%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    text-align: center;
    pointer-events: none;
}

.image-caption p {
    padding: 3px 5px;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    border-radius: 4px;
    white-space: nowrap;
    margin: 2px 0;
}
/* country section終わり */


/* 質問テスト */

/* FAQ セクション全体のスタイル */

.faq-section {
    margin-bottom: 100px;
}

/* アコーディオンのスタイル */
.accordion-header {
    background-color: var(--primary);
    padding: 20px 45px 20px 25px; 
    margin: 15px 0 0;
    transition: background .3s ease;
    cursor: pointer;
    position: relative;
    border-radius: 4px;
}

.accordion-header::before,
.accordion-header::after {
    position: absolute;
    content: '';
    top: 1px;
    right: 20px;
    bottom: 0;
    width: 12px;
    height: 2px;
    margin: auto;
    background: #151E2F;
}

.accordion-header::after {
    transform: rotate(-90deg);
    transition: transform 0.3s;
}

.accordion-header.active::after {
    transform: rotate(0deg);
}

.accordion-content {
    background-color: #FFF;
    padding: 20px 25px 20px;
    border-radius: 0 0 4px 4px;
}

/* Q&A のスタイル */
.accordion-header span,
.accordion-content span {
    padding-left: 25px;
    position: relative;
    display: block;
}

.accordion-header span::before {
    position: absolute;
    content: "Q";
    top: -2px;
    left: 0;
    color: #151E2F;
    font-size: 17px;
}

.accordion-content span::before {
    position: absolute;
    content: "A";
    top: -2px;
    left: 0;
    color: #151E2F;
    font-size: 17px;
}

/* ホバー効果 */
.accordion-header:hover {
    background-color: #f9b3a0;
}

/* アコーディオンの開閉 */
.accordion-content {
    display: none;
}

.accordion-content.show {
    display: block;
}

/* Bootstrapブレイクポイントに合わせたレスポンシブ調整 */
@media (max-width: 991.98px) {  /* lg breakpoint */
    .accordion-header {
        padding: 12px 40px 10px 15px;
    }

    .reason-text-inner-right,
    .reason-text-inner-left {
        padding: 20px;
        text-align: center;
    }
    .evidenceone {
        height: auto;
      }
}

@media (max-width: 767.98px) {  /* md breakpoint */
    .accordion-header span,
    .accordion-content span {
        font-size: 14px;
    }
    
    .accordion-header span::before,
    .accordion-content span::before {
        font-size: 16px;
    }
}

@media (max-width: 575.98px) {  /* sm breakpoint */
    .accordion-header {
        padding: 10px 35px 8px 12px;
    }
    
    .accordion-content {
        padding: 10px 15px 8px;
    }
    
    .accordion-header span,
    .accordion-content span {
        padding-left: 20px;
    }
}


#contact-frame {
    width: 100%; /* 追加：幅を100%に */
    text-align: center;
    padding: 50px 50px 80px 50px;
    background-color: var(--sub);
}

/* 他のスタイルはそのまま */
.contact-title-frame {
    margin-bottom: 50px !important;
}

.contact-title {
    margin-bottom: 5px;
}

.contact-inner p {
    line-height: 2;
    margin-bottom: 50px;
}

.contact-btn-frame {
    display: flex;
    justify-content: center;
}

.contact-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 400px;
    height: 80px;
    background: linear-gradient(to right, var(--primary), #f6d365);
    border-radius: 50px;
    transition: none; /* 通常の transform の transition は無効化 */
}

/* ホバー時にカスタムアニメーションを適用 */
.contact-btn:hover {
    animation: popScale 1.0s ease forwards;
}

.contact-btn i, .contact-btn p {
    transition: color 1.5s ease; /* 色を0.3秒かけて変化 */
  }
  
.contact-btn:hover i,.contact-btn:hover p {
    color: #ffffff; /* ← お好きな色に変更してください */
  }

/* 縮んでから拡大するアニメーション定義 */
@keyframes popScale {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1.05);
    }
}

.contact-btn p {
    margin-bottom: 0;
}

.contact-btn i {
    display: flex;
    align-items: center;
}

/* 通常のPC用表示 */
.contact-inner p.pc-text {
  display: block;
}

/* スマホ用改行テキストは非表示 */
.contact-inner p.sp-text {
  display: none;
}
/* CONTACTセクション終わり */


/* footer */
/* SNSボタンのスタイル */
.btn-social {
    background-color: #033366; /* Bootstrapの青色 */
    color: white; /* アイコンの色 */
    border-radius: 50%; /* 円形にする */
    width: 40px; /* ボタンの幅 */
    height: 40px; /* ボタンの高さ */
    display: flex;
    justify-content: center; /* アイコンを中央に配置 */
    align-items: center; /* アイコンを縦方向の中央に配置 */
    border: none;
}

.footer-logo {
    width: 250px;
    height: auto;
    display: inline-block; /* インラインブロック化 */
    text-align: center; /* 中のテキスト中央揃え */
  }

/* FontAwesomeアイコンのサイズ調整 */
.btn-social .fa {
    font-size: 20px; /* アイコンのサイズ */
}
/*************footer End*****************/

/*記事一覧 archive.php*/

/* 記事一覧 */
.card__text {
    width: 100%;
}

  .card__item {
    background: #fff;
    overflow: hidden;
    border-radius: 8px;
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column; /* 画像上・テキスト下 */
  }
  
  .card__item:hover {
    cursor: pointer;
  }

  .card__link {
    display: block;
    color: inherit;
    text-decoration: none;
  }

  .card__img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    object-fit: cover;
  }
  
  .card__body {
    padding: 1rem;
  }
  
  .card__title {
    font-size: 1.1rem;
    margin-bottom: 5px;
  }
  
  .card__time,
  .card__category {
    font-size: 0.8rem;
    color: #888;
  }

  .card__category {
    margin-top: 5px;
    margin-bottom: 5px;
  }

 /* ページネーション　allnews.php */
 .pagination {
    display: flex;
    justify-content: center;
    margin: 2rem auto;
  }
  
  .pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  
  .pagination li {
    list-style: none;
  }
  
  .pagination li a,
  .pagination li.active {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background-color: #f8f8f8;
    transition: background-color 0.3s;
  }
  
  .pagination li a:hover {
    background-color: #e0e0e0;
    opacity: 0.8;
  }
  
  .pagination li.active {
    background-color: #333;
    color: #fff;
    pointer-events: none;
  }

  /* リンクをブロックに */
  .card__link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
  }


  
  /* テキスト部分 */
  .card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left; /* ← 文字を左揃えに */
  }
  
  .card__time,
  .card__category {
    font-size: 0.8rem;
    color: #888;
  }
  
  .card__category {
    margin-bottom: 5px;
  }

  /* 記事一覧 */
.card-effect {
    box-shadow: var(--box-shadow);
    background-color: #fff;
    padding: 25px;
    transition: all 0.35s ease;
}

.card-effect:hover {
    box-shadow: none;
    transform: translateY(5px);
}

.card {
    border: none !important;
    box-shadow: none; /* もし影も不要なら追加 */
  }

.card__inner {
    display: flex;
    flex-direction: column; /* ← 縦並びにする */
    margin-top: 20px;
    margin-bottom: 20px;
    align-items: stretch; /* ← 中身を左詰め */
}


.card__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card__img,
.card__img-dummy {
    width: 100%;
    max-width: 300px; /* ← 画像の最大幅をここで調整 */
    height: 200px;
    display: block;
    margin: 0 auto;
    border-radius: 3px; /* ← 好きな数値で調整 */
    overflow: hidden;
    display: block;
}

.card__img-wrap {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.archive-main {
    flex: 0 0 70%;
  }

.card__title,
.card__category,
.card__time {
  text-align: left;
  margin-left: 0; /* 念のため */
}

.archive-pagetitle {
    margin: 30px;
    display: flex;
    justify-content: center;
}


/* Contact form */
/* 全幅指定 */
.full-width {
    margin: 0 calc(50% - 50vw);
    padding: 5em calc(50vw - 50%);
}

.wpcf7 input[name="your-name"] { /* 名前入力欄 */
	width: 100%;
}
.wpcf7 input[name="your-company"] { /* 会社名入力欄 */
	width: 100%;
}
.wpcf7 input[name="your-email"] { /* メール入力欄 */
	width: 100%;
}
.wpcf7 textarea[name="your-message"] { /* 本文入力欄 */
	width: 100%;
}

/* h2タグを中央揃えに */
.sec__heading_contact {
    text-align: center;
    margin-bottom: 50px;
}

/* pタグの余白を削除 */
.wpcf7-form p {
    margin-bottom: 0;
}
/* 背景色（お好きな色に） */
section.contact {
    background-color: #fff;
}
/*  フォームの幅（自由に変えてOK） */
.contactForm {
    max-width: 700px;
    margin: 0 auto;
}
/* 各項目の下部余白 */
.contact_item {
    margin-bottom: 2.5rem;
}
/* 項目名 */
.label {
    display: block;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
    font-weight: bold;
}
/* 必須タグと任意タグ共通のスタイル */
.label_tag {
    font-size: 16px;
    color: #ffffff;
    border-radius: .3rem;
    margin-right: 1rem;
    padding: 5px 10px;
}
.label br {
    display: none;
  }
/* 必須タグ */
.label_must {
    background-color: #C84772;
}
/* 任意タグ */
.label_option {
    background-color: #888988;
}
/* 名前やメールアドレスなどユーザーが入力する箇所 */
.inputs {
    width: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
input[type="text"],input[type="email"] {
    border: solid 1px #707070;
    padding: .5rem;
    font-size: 16px;
}
/* お問い合わせ内容を入力する箇所 */
textarea.form-control {
    border: solid 1px #707070;
    padding: .5rem;
    height: 300px;
    font-size: 16px;
    width: 100%; 
    max-width: 100%; /* はみ出さないように */
    resize: none;
    }

/* ボタン */
.btnArea {
    text-align: center;
}
input[type="submit"]{
    background: #C84772;
    border: 2px solid #ffffff;
    width: 280px;
    color: #ffffff;
    text-align: center;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: .5em;
    text-indent: .5em;
    font-weight: bold;
    padding: 1.4rem 0;
    margin-top: 2rem;
    cursor: pointer;
    border-radius: .3rem;
    transition: all .3s;
    
}
/* ボタンにホバーした時 */
input[type="submit"]:hover {
    color: #C84772;
    background-color: #ffffff;
    border-color: #C84772;
}
/* ローダー */
.wpcf7 .ajax-loader {
    display: block;
    margin: 0 auto;
}
/* モバイル版 */
@media screen and (max-width: 480px) {
    .contact_item {
        margin-bottom: 1.6rem;
    }

    .full-width {
        padding-left: 1rem;
        padding-right: 1rem;
      }
    .label {
        font-size: 16px;
        margin-bottom: .4rem;
    }
    .label_tag {
        font-size: 16px;
    }
    input[type="text"],input[type="email"] {
        padding: .4rem;
        font-size: 16px;
    }
    textarea {
        padding: .4rem;
        font-size: 16px;
    }
    input[type="submit"]{
        font-size: 16px;
    }
}





/* 記事一覧 */

 /* Jqueryアニメーション */

 /* 下から上に表示 */
 .js-fade {
    opacity: 0;

    transform: translateY(50px);
    transition: opacity 1.5s, transform 1.5s;
}

.js-fade.scroll {
    opacity: 1;
    transform: translateY(0);
}

/* 左から右に表示 */
.js-fade-left {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100px); /* 左からの移動を指定 */
    transition: opacity 2s, visibility 2s, transform 2s;
    transition-delay: 0.5s;
}

.scroll-left {
    opacity: 1;
    visibility: visible;
    transform: translateX(0px); /* 元の位置に戻る */
}

#merit {
    margin-top: 120px;
    margin-bottom: 80px;
}

/* メリットセクション */

/* 右から左に表示 */
.js-fade-right {
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px); /* 左からの移動を指定 */
    transition: opacity 2s, visibility 2s, transform 2s;
    transition-delay: 0.3s;
}

.scroll-right {
    opacity: 1;
    visibility: visible;
    transform: translateX(0px); /* 元の位置に戻る */
}

/* 左から右に表示 */
.js-fade-left-merit {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50px); /* 左からの移動を指定 */
    transition: opacity 2s, visibility 2s, transform 2s;
    transition-delay: 0.3s;
}

.scroll-left-merit {
    opacity: 1;
    visibility: visible;
    transform: translateX(0px); /* 元の位置に戻る */
}

/* 上から下に表示 */
.js-fade-uptodown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50px);
    transition: opacity 1.5s,visibility 1.5s, transform 1.5s;
}

.scroll-uptodown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0px);
}

/* メディアクエリは全て以下に書く */

/*Slick*/
/* dotsを丸くカスタマイズするCSS */
.dots-wrap {
    display: flex;
    justify-content: center;
    padding: 10px;
}

.slick-content-title {
    font-size: 17px;
    text-align: left;
    width: 100%;
    line-height: 2;
    font-weight: bold;
}

.slick-content-date{
    align-self: flex-start; /* ← flexboxで左に寄せる */
    text-align: left;       /* ← テキストも左寄せ */
    width: 100%;
    font-size: 15px;
    padding: 2px;
    font-weight: 300;
}

.dots-wrap li {
    width: 15px;
    height: 15px;
    margin: 0 5px;
    background: rgb(254, 188, 164);
    border-radius: 50%;
    cursor: pointer;
    list-style: none;
}

.dots-wrap li:hover,
.dots-wrap li.slick-active {
    background: coral;
}
.dots-wrap li button {
    display: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    padding: 0;
    border: none;
    background-color: transparent;
}

.slider {
    position: relative;
}

/* スライド（画像）を包む要素にも position: relative をつけると安定する */
.slide {
    position: relative;
}


.slick-content p {
    margin: 3px;
}

/*追加*/
/* 共通 */
.prev-arrow,
.next-arrow {
  display: block;
  width: 40px;
  height: 40px;
  background: coral;
  border-radius: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  z-index: 10;
  opacity: 0.7;
}

/* 左側：1つ目のスライドの左に近づける */
.prev-arrow {
  left: 0; /* 画像の左 */
  transform: translateY(-50%) rotate(180deg);
}

/* 右側：最後のスライドの右に近づける */
.next-arrow {
  right: 0;
}

/* アイコンデザイン */
.prev-arrow::before,
.next-arrow::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-right: 2px solid #FFF;
  border-top: 2px solid #FFF;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  transform: rotate(45deg);
}

/* デフォルトでは非表示（PCでは改行しない） */
.sp-only,
.pc-only {
  display: none;
}
/* PC用（768px以上） */
@media (min-width: 768px) {
    .pc-only {
      display: inline;
    }
  }

/* 1200px以下の画面幅用のスタイル */
@media (max-width: 1200px) {
    .hero {
        background-attachment: scroll !important;
        background-position: top center !important;
        min-height: 80vh;
        height: auto;
      }

    .hero-title {
        font-size: 50px; /* 1200px以下ではフォントサイズを小さく調整 */
        line-height: 65px; /* 行間もそれに合わせて調整 */
    }

    .reason-text-inner-right {
        padding-right: 5%;
        padding-left: 10%;
    }

    .reason-text-inner-left {
        padding-right: 5%;
        padding-left: 10%;
    }

    .plan-contents {
        padding: 0 60px;
        margin-bottom: 100px;
    }

    .plan-img1, .plan-img2, .plan-img3 {
        background-position: center;
        background-size: cover;
        height: 250px;
        aspect-ratio: 4 / 3; /* 幅:高さの比率を指定 */
        border-radius: 10px;
        position: relative;
        z-index: 2; 
    }

    /* 装飾背景を先に定義し、z-indexを低く設定 */
    .plan-img-frame:before {
        content: "";
        height: 250px;
        width: 320px;
        aspect-ratio: 4 / 3; /* 幅:高さの比率を指定 */
        background: var(--sub);
        border-radius: 20px;
        position: absolute;
        -webkit-transform: rotate(10deg);
        transform: rotate(10deg);
        left: 20px;
        top: 0;
        z-index: 1; /* 変更 */
    }

    .plan-contents-right {
        padding-left: 10px; /* 左側の余白を固定値に変更 */
        padding-right: 10px; /* 右側の余白も固定値に変更 */
    }

    .plan-contents-left {
        padding-right: 0;
        padding-left: 10px; /* 左側の余白を追加 */
    }

    .evidenceone {
        min-height: 1000px;
    }


    .evidence-img {
        margin-top: 10px;
        margin-bottom: 10px;
      }
    
      .evidenceone-text {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .reason-text-inner-right,
    .reason-text-inner-left {
        padding: 5px 5px;
    }

    .merit-contents {
        margin-bottom: 50px;
        border-radius: 20px;
        padding-left: 30px;
        padding-right: 30px;
        text-align: center;
    }

    .merit-img-frame {
        margin-bottom: 20px;
    }

    .image-caption p {
        padding: 3px 5px;
        font-size: 14px;
        font-weight: 600;
        color: #fff;
        border-radius: 4px;
        white-space: nowrap;
        margin: 2px 0;
    }

    #process .container {
        width: 95%;
    }

    .each-content:not(:last-child)::after {
        content: "\f063"; /* 下向き矢印を表す文字 */
        font-family: "Font Awesome 5 Free"; /* FontAwesomeのフォントファミリー */
        font-weight: 900; /* Solidアイコンの場合は900 */
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 20px auto; /* 上下のマージンを調整 */
        width: 70px; /* 円の直径 */
        height: 70px; /* 円の直径 */
        background-color: #ffffff; /* 円の背景色 */
        border-radius: 50%; /* 円形にする */
        color: var(--primary); /* 矢印の色 */
        font-size: 30px; /* 矢印のサイズを調整 */
        line-height: 30px; /* 円の中央に配置 */
        position: absolute;
        bottom: -80px;/* 円の位置を調整 */
        left: 45%; /* 左から50%の位置に配置 */
        transform: translateX(-50%);  /*　X軸方向に-50%移動して中央に配置 */
        z-index: 9999; /* 必要に応じてz-indexを調整 */
        opacity: 1;
        visibility: visible;
        transform: translateY(-50px);
        transition: opacity 2s, visibility 2s, transform 2s;
        transition-delay: var(--delay, 0s); /* カスタムプロパティで遅延を指定 */
    }

    #description2 {
        margin-bottom: 100px;
    }

    /* 選ばれる理由ここから */


    /* 選ばれる理由ここまで */
}



/* iPadの縦置き、スマートフォン用のスタイル */
@media (max-width: 767px) and (max-width: 1200px) {

/* トップ画面 */
    .sp-only {
        display: inline;
    }

    h2 {
    font-size: 36px;
    }

    p {
    font-size: 16px;
    }

    .blog p, 
    .fivereason-top p, 
    .merit-title p, 
    .plan-title-frame p, 
    .country-title-frame p,
    .process-title-frame p,
    .question-title-frame p {
        font-size: 16px;
    }

    .hero {
        background-attachment: scroll !important;
        background-position: center top;
        min-height: 80vh; /* 画像が潰れないよう調整 */
        height: auto;
      }

    .hero-title {
        font-size: 28px; /* さらに小さな画面ではさらに小さいフォントサイズ */
        line-height: 48px; /* 行間もそれに合わせて調整 */
        margin-bottom: 20px;
    }

    .text-left p {
        font-size: 18px;
        font-style: italic;
    }

    .hero-title.pc-text {
        display: none;
      }
      .hero-title.sp-text {
        display: block;
      }

    .header-logo {
        width: 200px;
    }

    .btn {
        margin-top: 20px;
    }

    /* お悩みセクションここから */
    .onayami {
        height: auto;
        width: 90% !important;
        max-width: none;
        margin: 10px auto;
        padding: 0 !important;
        margin:  10 auto;
    }

    .solution h3 {
        font-size: 24px;
    }

    .solution-text-sub {
        font-size: 18px;
        padding-left: 0;
        padding-right: 0;
    }

    .onayami-all-title {
        width: 80%;
    }

    .onayami-top {
        margin-top: 20px;
    }
    
    .onayami-box {
        height: auto;
        padding: 6px;
        width: 100%;
        transform: none;
        border-radius: 8px !important;
    }


    .onayami-text {
        padding: 5px;
    }

    .onayami-text p {
        font-size: 16px;
        font-weight: 500;
    }
    
    .row {
        flex-direction: column;
    }

    .onayami-top {
        padding: 0;
    }

    .onayami-top-inner {
        padding: 0;
    }

    .onayami-top-inner > .d-flex {
        flex-direction: column !important;
    }

    .onayami-top {
        background: linear-gradient(180deg, #fff 0, #fff 78%, #fff2ef 78%, #fff2ef 100%);
        padding: 0;
    }

    .triangle {
        border-left: 20px solid transparent;
        border-right: 20px solid transparent;
        border-top: 20px solid var(--primary);
        margin-bottom: 10px;
    }

    .onayami-text {
        flex-direction: row;  /* スマホでは横並び */
        justify-content: flex-start;
        align-items: center;
        text-align: left;
      }
    
      .onayami-image {
        width: 60px;
        margin-bottom: 0;
        margin-right: 10px;
        padding: 10px;
      }
    
      .onayami-text p {
        margin: 0;
      }
    
      .onayami-text-paragraph {
        text-align: left;
        margin: 0;
      }
    /* お悩みセクションここまで */

    /* 相談セクションここから */
    /* 親子留学の無料相談はこちらの場所 */
    .flex-lg-nowrap {
        flex-direction: column !important;
    }
    /* 相談セクションここまで */

    /* 親子留学とは？ここから */
    .description-frame-img {
        position: relative;
        height: 250px;
    }

    .description-message {
        width: 100%;;
    }

    .description-message h2 {
        position: absolute;
        top: 50%;
        left: 48%;
        transform: translate(-50%, -50%);
        text-align: center;
        font-size: 1.6rem;
    }

    .oyako-title {
        margin: 20px;
        line-height: 150%;
    }

    .oyako {
        margin: 20px;
        text-align: left;
    }

    .reason-img-one, 
    .reason-img-two,
    .reason-img-three,
    .reason-img-four,
    .reason-img-five
     {
        height: 200px;
    }

    .sample {
        width: min(100%, 200px);         /* サイズを小さく */
        filter: blur(30px);              /* ぼかしも弱めに */
                     /* 位置調整（必要に応じて） */
      }
    /* 親子留学とは？ここまで */

    /* 根拠1ここから */
    .evidenceone {
        flex-direction: column; /* Change to column layout */
        min-height: 800px;    /* 最低800pxだが、はみ出しは許可 */
        height: auto;
        margin-top: 60px;
        padding: 40px 10px;
    }

    .evidence-img {
        height: 300px; /* Adjust height for smaller screens */
        width: 300px;
        max-width: 100%;
    }

    .evidenceone-text {
        margin-bottom: 30px;
    }

    .evidenceone-text h2 {
        font-size: 1.6em;
    }

    .evidence-img {
        margin-top: 30px;
        margin-bottom: 30px;
      }
    

    .evidenceone-text {
        margin-bottom: 30px;
        margin-top: 30px;
    }

.prev-arrow,
.next-arrow {
  display: block;
  width: 30px;
  height: 30px;
  background: coral;
  border-radius: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  z-index: 10;
  opacity: 0.7;
}
/* 左側：1つ目のスライドの左に近づける */
.prev-arrow {
    left: 0; /* 画像の左 */
    transform: translateY(-50%) rotate(180deg);
  }

    .evidenceone {
        padding: 0; /* セクション全体の上下余白を削減 */
      }
    
      .evidenceone .col-12 {
        padding: 0 !important; /* グリッド余白をリセット */
      }
    
      .evidence-img {
        margin: 0 !important;
        height: 250px; /* 適宜調整。大きすぎると圧迫感あり */
        width: 100%;
        max-width: 100%;
      }
    
      .evidenceone-text {
        margin: 0 !important;
        padding: 10px 0; /* 読みやすさのため左右だけ余白 */
      }
    
      .evidenceone-text p {
        margin-bottom: 0; /* テキスト末尾の余白削減 */
      }

    /* 根拠1ここまで */
    /* 5つのメリットここから */

    .five-content .five-inner {
        height: 220px;
    }

    .five-content {
        width: 70%;
        margin-bottom: 30px;
        padding: 30px;
    }

    .five-inner {
        height: 10px;
    }

    .five-inner img {
        width: 150px;
    }

    /* 5つのメリットここまで */

    /* 相談セクション ここから */
    .consultation {
        padding: 20px 0;
        height: 500px;
        background-color: var(--primary);
    }

    .consultation-inner {
        width: 90%;
        border-radius: 30px;
        padding: 20px;
        height: 80%;
    }

    .flex-lg-nowrap {
        flex-direction: column !important;
    }

    .consul-title h3 {
        font-size: 20px;
        margin: 0;
    }

    .consultation-inner > div > div {
        width: 100%;  /* 幅を100%に */
        display: flex;
        flex-direction: column;
        align-items: center;  /* 中央揃え */
    }

    .consul-btn1, .consul-btn2 {
        width: 50%;  /* ボタンの幅を調整 */
        height: auto;  /* 高さを自動に */
        min-height: 80px;  /* 最小の高さを設定 */
        padding: 10px;  /* 内部の余白を追加 */
        margin: 0 auto;
    }
    /* 相談セクション ここまで */

    /* 選ばれる理由 ここから */
    .reason-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .reason {
        width: 100%;
        max-width: 360px;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 5px;
        background-color: #ffffff;
        border: 3px solid var(--primary);
        border-radius: 10px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .reason-text-inner-subtitle {
        font-size: 24px;
    }

    .reason-number {
        width: 40px;
        height: 40px;
        background-color: var(--primary);
        color: white;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: bold;
        flex-shrink: 0;
        margin: 0;
    }

    .reason-number p {
        font-size: 16px;
    }

    .reason-text-inner-right h3, .reason-text-inner-left h3 {
        font-style: italic;
        font-size: 30px;
    }

    .fivereason-text {
        max-width: 70%; /* テキストの最大幅を指定 */
        white-space: nowrap; /* テキストが折り返されず横に並ぶように */
        overflow: hidden; /* テキストがはみ出す場合に隠す */
        text-overflow: ellipsis; /* 省略記号 (...) を表示 */
        text-align: left !important;
        display: block;
        padding-left: 10px;
    }

    .fivereason {
        margin-bottom: 50px;
        padding-top: 50px;
        padding-bottom: 50px;
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
    }

    .fivereason-text p {
        font-size: 14px;
    }

    .fivereason-text br {
        display: none;
    }
    
    .reason-inner {
        display: flex;
        flex-direction: row; /* 横並びを強制 */
        align-items: center;
        justify-content: flex-start; /* 左揃えに設定 */
        gap: 10px;
        width: 100%;
        flex-wrap: nowrap; /* 折り返しを防止 */
        padding: 5px 15px;
        text-align: left !important; /* テキスト左揃えを強制 */
    }


    .reason-inner p {
        text-align: left !important;
        margin: 0;
        padding: 0;
    }

    /* 選ばれる理由 ここまで */

    /* merit section 親子留学のメリット　ここから */
    .merit-frame {
        min-height: 1500px; /* スマホは長めに */
        overflow: visible; /* スマホだけ */
        clip-path: ellipse(250% 100% at 50% 100%);
    }

    .merit-in {
        padding: 40px 5px;
    } 

    .merit-img1, 
    .merit-img2,
    .merit-img3,
    .merit-img4,
    .merit-img5 {
        width: 100%;
        aspect-ratio: 4 / 3; /* 横:縦 = 4:3、3:2などに調整可 */
        height: auto; /* 自動調整にする */
        background-position: center;
        background-size: cover;
        border-radius: 10px;
    }

    .merit-contents {
        margin-bottom: 30px;
        border-radius: 20px;
        padding: 20px;
        text-align: center;
    }

    .number {
        font-size: 40px;
        padding-left: 0;
        margin-right: 7px;
        margin-left: 7px;
    }
    
    .number2 {
        font-size: 40px;
        margin-left: 7px;
        padding-right: 0;
        margin-right: 7px;
    }

    .merit-img-frame {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 20px;
    }

    .merit-subtitle {
        font-size: 18px;
    }

    /* merit section ここまで */

    /* 親子留学の種類 ここから */
    /* レスポンシブ調整 */
    .plan-contents-left,
    .plan-contents-right {
        padding: 0 20px;
        margin-top: 0 20px;
    }

    .plan-img-frame {
        width: 100%;
        padding: 0 15px;
        display: flex; /* 追加：フレックスボックスを使用 */
        justify-content: center; /* 追加：中央揃え */
        align-items: center;
        position: relative;
    }

    .plan-img-frame:before {
        content: "";
        position: absolute;
        top: -10px;
        left: 50%;
        transform: translateX(-50%) rotate(6deg);
        width: 300px;
        height: 250px;
        background: var(--sub);
        border-radius: 20px;
        z-index: 1;
      }
    
    .plan-contents {
        padding: 0 10px;
        margin-bottom: 100px;
    }
    
    .plan-img1, .plan-img2, .plan-img3 {
        width: 100%;
        aspect-ratio: 4 / 3;
        height: auto;
        max-width: 300px;
        position: relative;
        z-index: 2;
        border-radius: 20px;
      }
        
      .image-caption p {
        padding: 3px 5px;
        font-size: 20px;
        font-weight: 600;
        color: #fff;
        border-radius: 4px;
        white-space: nowrap;
        margin: 2px 0;
    }
    /* 親子留学の種類 ここまで */

    /* country section ここから */
    .image-wrapper {
        margin-bottom: 20px;
    }
    /* country section ここまで */

    /* process section ここから */
    .process-title-frame {
        margin-bottom: 50px !important;
    }
    .process-img {
        width: 150px;
        height: 150px;
        border-radius: 50%;
    }

    .each-content {
        margin-right: 15px;
        padding: 10px;
        border-radius: 10px;
    }

    .each-content.row {
        margin-left: 30px;
        margin-right: 30px;
    }

    .process-number {
        font-size: 36px;
    }

    .each-content:not(:last-child)::after {
        content: "\f063"; /* 下向き矢印を表す文字 */
        font-family: "Font Awesome 5 Free"; /* FontAwesomeのフォントファミリー */
        font-weight: 900; /* Solidアイコンの場合は900 */
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 20px auto; /* 上下のマージンを調整 */
        width: 70px; /* 円の直径 */
        height: 70px; /* 円の直径 */
        background-color: #ffffff; /* 円の背景色 */
        border-radius: 50%; /* 円形にする */
        color: var(--primary); /* 矢印の色 */
        font-size: 30px; /* 矢印のサイズを調整 */
        line-height: 30px; /* 円の中央に配置 */
        position: absolute;
        bottom: -80px;/* 円の位置を調整 */
        left: 40%; /* 左から50%の位置に配置 */
        transform: translateX(-50%);  /*　X軸方向に-50%移動して中央に配置 */
        z-index: 50; /* 必要に応じてz-indexを調整 */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-50px);
        transition: opacity 2s, visibility 2s, transform 2s;
        transition-delay: var(--delay, 0s); /* カスタムプロパティで遅延を指定 */
    }

    #process {
        margin-bottom: 50px;
    }

    #process .container {
        width: 95%;
    }
    /* process section ここまで */

    .faq-section {
        margin-bottom: 50px;
    }
    /* footer section ここから */

    #contact-frame {
        width: 100%; /* 追加：幅を100%に */
        text-align: center;
        padding: 50px 30px 80px 30px;
        background-color: var(--sub);
    }

    .contact-inner p.pc-text {
        display: none;
      }
      .contact-inner p.sp-text {
        display: block;
      }

    .social {
        margin-bottom: 20px;
    }
    /* footer section ここまで */

    .card__img,
    .card__img-dummy {
    height: 100px;
    border-radius: 5px; /* ← 好きな数値で調整 */
    overflow: hidden;
    display: block;
    }

    .card__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .slick-dotted.slick-slider {
        margin-bottom: 5px;
    }
}

/* 基本：フェードイン用共通設定 */
.js-fade,
.js-fade-title,
.js-fade-target,
.js-fade-left,
.js-fade-right,
.js-fade-uptodown,
.js-fade-left-merit,
.js-fade-right-merit,
.js-fade-detail,
.each-content {
  opacity: 0;
  transition: all 0.8s ease;
  will-change: opacity, transform;
}

/* 下から上にフェードイン */
.js-fade,
.js-fade-title,
.js-fade-target,
.js-fade-detail {
  transform: translateY(20px);
}
.js-fade.scroll,
.js-fade-title.scroll,
.js-fade-target.scroll,
.js-fade-detail.scroll {
  opacity: 1;
  transform: translateY(0);
}

/* 左から右 */
.js-fade-left,
.js-fade-left-merit {
  transform: translateX(-20px);
}
.js-fade-left.scroll-left,
.js-fade-left-merit.scroll-left-merit {
  opacity: 1;
  transform: translateX(0);
}

/* 右から左 */
.js-fade-right,
.js-fade-right-merit {
  transform: translateX(20px);
}
.js-fade-right.scroll-right,
.js-fade-right-merit.scroll-right {
  opacity: 1;
  transform: translateX(0);
}

/* 上から下 */
.js-fade-uptodown {
  transform: translateY(-20px);
}
.js-fade-uptodown.scroll-uptodown {
  opacity: 1;
  transform: translateY(0);
}

/* each-content（遅延アニメーション） */
.each-content {
  transform: translateY(-20px);
  transition-delay: var(--delay, 0s);
}
.each-content.scroll-uptodown {
  opacity: 1;
  transform: translateY(0);
}



#typing-text {
    white-space: pre-line;
    font-weight: bold;
    color: white;
  }
  
  #typing-content {
    font-weight: 900;
    color: white;
    width: 100%;
    max-width: 100%;
  }
  
  .cursor {
    display: inline-block;
    width: 4px;
    height: 1em;
    background-color: white;
    margin-left: 3px;
    animation: blink 1s step-start infinite;
    vertical-align: bottom;
  }
  
  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }
  
  .hero-title-small {
    opacity: 0;
    transform: translateX(20px);
    transition: all 1s ease;
    font-size: 16px;
  }
  .hero-title-small.show {
    opacity: 1;
    transform: translateX(0);
  }
  

  
/* Slickスライダー初期化前のちらつき防止 */
.slick-slider:not(.slick-initialized) {
    opacity: 0;
    visibility: hidden;
}

.slick-slider.slick-initialized {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

/* スライダー初期化前のローディング表示 */
.slick-loading {
    position: relative;
    min-height: 200px;
}

.slick-loading::before {
    content: "読み込み中...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 14px;
}

/* Slickスライダー初期化前のちらつき防止（Safari対応強化） */
.slick-slider:not(.slick-initialized) {
    opacity: 0 !important;
    visibility: hidden !important;
    display: block !important;
}

.slick-slider.slick-initialized {
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.3s ease;
}

/* スライダー初期化前のローディング表示 */
.slick-loading {
    position: relative;
    min-height: 200px;
}

.slick-loading::before {
    content: "読み込み中...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 14px;
}

/* Safari用の強制リセット */
.slick-reset {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* カテゴリー別色分け */
.category-color {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.category-color:hover {
    opacity: 0.8;
    color: white;
    text-decoration: none;
}

/* カテゴリー別の色定義 */
.category-english-learning {
    background-color: #007bff; /* 青 - 英語学習 */
}

.category-early-education {
    background-color: #28a745; /* 緑 - 幼児教育 */
}

.category-overseas-migration {
    background-color: #fd7e14; /* オレンジ - 海外移住 */
}

.category-study-abroad {
    background-color: #6f42c1; /* 紫 - 留学 */
}

.category-uncategorized {
    background-color: #6c757d; /* グレー - 未分類 */
}

/* デフォルトカテゴリー（未分類など） */
.category-default {
    background-color: #6c757d;
}
  