


/* 1枚目: バナー */
.banner {
  position: relative;
  width: 100%;
  height: 300vh; /* バナー部分を画面全体に */
  background: #fff; /* 必要なら背景色指定 */
  z-index: 1;
  transition: opacity 1s ease-out; /* フェードアウト効果 */
  
  /* 🟢 `fixed` を削除し、 `position: center fixed;` に変更 */
  background: url('../assets/images/about/profile2.webp') no-repeat center fixed;
  background-size: cover; /* 背景を適切にカバー */
  
  display: flex; /* 子要素をフレックスボックスで配置 */
  flex-direction: column;
  align-items: center;
  justify-content: center;
}




  /* 各コンテナ */
  .banner-container {
    width: 80%; /* コンテナの幅を70%に設定 */
    height: auto;
    margin-top: 100px auto; /* 上下中央揃え */
    margin-bottom: 1000px;
    opacity: 0; /* 初期状態で非表示 */
    transform: translateY(50px); /* 初期位置を下にずらす */
    transition: opacity 1s ease-out, transform 1s ease-out; /* アニメーション効果 */
    position: relative; /* これを追加 */
    will-change: opacity, transform; /* レンダリング最適化 */
  }

  /* 表示された状態 */
  .banner-container.show {
    opacity: 1; /* 表示 */
    transform: translateY(0); /* 元の位置に移動 */
  }
  
  .banner.hidden {
    opacity: 0; /* フェードアウト */
    pointer-events: none; /* スクロールを無効化 */
  }

  .banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(70%);
  }
  
  .banner-text {
    position: absolute;
    top: 50%;
    left: 20%; /* 左揃えのために位置を調整 */
    transform: translateY(-50%); /* 縦方向だけ中央に */
    color: white;
    text-align: left;
    width: 80%; /* コンテナの幅を調整（必要に応じて変更） */
  }
  
  .banner-text h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
  }
  
  .banner-text p {
    font-size: 1.6rem;
    line-height: 1.5;
  }
  
  /* 2枚目: 講師紹介 */
  /* 講師紹介セクション */
  .about-section {
    padding: 40px 20px;
    text-align: center;
  }
  /* プロフィール写真コンテナ */
  .profile-image-container {
    position: relative;
    display: inline-block;
    margin-top: -200px;
    margin-bottom: 20px;
    z-index: 2;
    transform: translateY(50px); /* 少し下にずらす */
    transition: opacity 2s ease-out, transform 2s ease-out; /* 浮き上がりアニメーション */
  }

  .about-section.show {
    opacity: 1; /* 表示 */
    transform: translateY(0); /* 元の位置に移動 */
  }

  /* リスト項目のフェードイン */
.scroll-animation {
    opacity: 0; /* 初期状態で非表示 */
    transform: translateY(50px); /* 下にずらす */
    transition: opacity 3.5s ease-out, transform 5.0s cubic-bezier(0.25, 1, 0.7, 1);
  }
  
  .scroll-animation.show {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* プロフィール写真 */
  .profile-image {
    width: 450px;
    height: 450px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid #4e4a4a;
  }
  
  /* 透明なTOMO PIANOのテキスト */
  .profile-overlay {
    display: inline; /* 文字を水平に並べる */
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%) scaleY(1.15); /* 高さを1.5倍に */
    font-family: "Didot", serif;
    font-size: 7.5em;
    font-weight: bold;
    letter-spacing: 10px; /* 水平に並べるため文字間隔を調整 */
    color: rgba(240, 229, 229, 0.659);
    pointer-events: none;
    white-space: nowrap; /* 改行を防ぐ */
    text-align: center; /* テキストを中央揃え */
  }

  .profile p{
    font-size: 1.0em;
    margin-top: -40px;
    color: #666;
  }

  /* 名前の上のアイコン */
  .name-icon {
    position: absolute;
    top: -10px;
    margin-left: -180px;
    transform: translateX(-50%);
    width: 80px; /* アイコンのサイズを調整 */
    height: 80px;
    object-fit: contain;
  }
  
  /* 名前とふりがな */
  .teacher-name {
    font-size: 2.5rem;
    margin-top: 40px;
    display: flex;
    align-items: center; /* 水平に揃える */
    justify-content: center; /* 名前と画像を中央揃え */
    gap: 10px; /* 画像と名前の間隔を調整 */
    letter-spacing: 5px; /* 文字間隔を広げる（単位: px） */
  }

  .teacher-name ruby rt {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 3px;
  }
  
  /* 詳細情報 */
  .achievements-box {
    position: relative;
    padding: 20px;
    border-radius: 10px;
    margin: 20px auto;
    margin-top: 40px;
    margin-bottom: 100px;
    width: 70%; /* 幅を全体の80%に */
    background-color: rgba(155, 126, 126, 0.308); /* 黒色で透明度30% */
    max-width: 1200px;
    z-index: 2;
  }
  
  /* 四角い枠内のリスト */
  .achievements-box ul {
    list-style: none;
    padding: 0;
    margin: 20px;
  }
  
  .achievements-box li {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: left;
  }
  
  .achievements-box li span {
    display: inline-block;
    width: 100%;
    border-bottom: 1px solid #f0e9e9; /* 下線をボーダーとして設定 */
    padding-bottom: 5px; /* 下線とテキスト間に余白を追加 */
  }
  
  /* 四角い枠の右下の画像 */
  .box-image {
    position: absolute;
    bottom: -100px;
    right: -50px;
    width: 300px;
    height: 300px;
    object-fit: contain;
    opacity: 0.8;
    z-index: 1;
  }

  /* アニメーションの初期状態 */
.scroll-animation {
    opacity: 0; /* 初期状態では非表示 */
    transform: translateY(50px); /* 下に50pxずらす */
    transition: opacity 2.5s ease-out, transform 2.5s cubic-bezier(0.25, 1, 0.5, 1);
  }
  
  /* アニメーションをトリガーするクラス */
  .scroll-animation.active {
    opacity: 1; /* 表示 */
    transform: translateY(0); /* 元の位置に移動 */
  }
  
  
  /* 3枚目: インタビュー */
/* インタビューパート全体 */
.interview-section {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 160vh;
    display: flex;
    overflow: hidden;
    z-index: 10; /* 他の要素より前に表示 */
  }

  /* 擬似要素で薄いベールを追加 */
.interview-section::before {
    content: ""; /* 擬似要素の必須 */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* 背景より前、内容より後 */
  }

  /* 🟢 背景画像にのみ薄いベールを追加 */
.interview-background::before {
  content: ""; /* 擬似要素の必須 */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2); /* 白で透明度20% */
  z-index: 1; /* 背景画像の上に配置（コンテンツには影響を与えない） */
}
  
  /* 背景画像 */
  .interview-background {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 170vh;
    background-size: cover; /* 背景画像を要素いっぱいに広げる */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 70px;
    background: url('../assets/images/about/interview-background.webp') no-repeat center center/cover;
    z-index: -1; /* 背景を最背面に */
  }
  
/* INTERVIEW の縦書きスタイル */
.interview-overlay {
    position: absolute;
    top: 0;
    left: 20px;
    display: flex;
    flex-direction: column; /* 縦方向に配置 */
    align-items: center; /* 中央揃え */
    justify-content: center;
    height: 100%; /* 高さを全体に広げる */
    z-index: 0;
  }

  .interview-overlay span {
    font-size: 13rem; /* 文字サイズ */
    color: rgba(239, 230, 230, 0.568); /* 透明感のある文字色 */
    transform: rotate(270deg); /* 各文字を270度回転 */
    display: block; /* 各文字を独立させる */
    margin: -75px 0; /* 各文字の間隔 */
  }

  /* コンテンツ全体 */
  .interview-content {
    position: relative;
    z-index: 2 !important; /* 背景よりも前面 */
    max-width: 70%; /* コンテンツの幅を制限 */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin: 0 auto;
    margin-top: 30px; /* 質問全体をさらに下げる */
  }
  
  /* 質問のスタイル */
  .question h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px; /* 回答コンテナとの余白を調整 */
    margin-top: 50px;
    z-index: 2
  ;
  }

  /* 各質問コンテナ */
  .question-container {
    background-color: rgba(255, 255, 255, 0.9); /* 背景を不透明度90% */
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1); /* 軽い影を追加 */
    z-index: 2;
  }
  
  /* 質問のスタイル */
  .question-container h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
    letter-spacing: 0.1em; /* 文字間隔を広げる */
  }

  /* Google FontsをCSSにインポート */
  @import url('https://fonts.googleapis.com/css2?family=Sawarabi+Gothic&display=swap');

  
  /* 回答のスタイル */
  .question-container p {
    font-family: 'Zen Old Mincho', serif;
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
    letter-spacing: 0.1em; /* 文字間隔を広げる */
    z-index: 2;
  }

  /* アニメーション初期状態 */

  /* 質問: 左から右にスライド */
.fade-left {
    opacity: 0; /* 最初は透明 */
    transform: translateX(-50px); /* 左にオフセット */
    transition: all 1s ease-out; /* アニメーション速度 */
  }

/* 回答: 下から上にスライド */
.fade-up {
  opacity: 0; /* 最初は透明 */
  transform: translateY(50px); /* 下にオフセット */
  transition: all 1.5s ease-out; /* アニメーション速度 */
}

/* アニメーション後の状態 */
.fade-left.show, 
.fade-up.show {
  opacity: 1; /* 完全に表示 */
  transform: translate(0); /* 元の位置に移動 */
}
  
  
  /* 携帯表示対応 */
@media (max-width: 768px) {

    .banner{
    background: url('../assets/images/about/profile2.webp') no-repeat center fixed;
    } 

    /* 各コンテナ */
    .banner-container {
      width: 90%; /* コンテナの幅を70%に設定 */
      height: auto;
      margin-top: 100px auto; /* 上下中央揃え */
      margin-bottom: 1000px;
    }   
  
    .banner-text {
      position: absolute;
      top: 50%;
      left: 10%; /* 左揃えのために位置を調整 */
      transform: translateY(-50%); /* 縦方向だけ中央に */
      color: white;
      text-align: left;
      width: 90%; /* コンテナの幅を調整（必要に応じて変更） */
    }
    
    .banner-text h1 {
      font-size: 2.0rem;
      margin-bottom: 1rem;
    }
    
    .banner-text p {
      font-size: 1.2rem;
      line-height: 1.5;
    }
  
  /* 詳細情報 */
  .achievements-box {
    position: relative;
    padding: 20px;
    border-radius: 5px;
    margin: 20px auto;
    margin-bottom: 100px;
    width: 80%; /* 幅を全体の80%に */
  }

  .achievements-box li {
    font-size: 1.0rem;
    margin-bottom: 20px;
    text-align: left;
  }

    .profile-image-container {
        margin-top: 120px;
        margin-bottom: 20px;
      /* プロフィール写真 */
  }
  .profile-image {
     width: 250px;
     height: 250px;
  }

  .profile-overlay {
    font-size: 4.0rem;
    letter-spacing: 5px; /* 水平に並べるため文字間隔を調整 */
  }

  .profile p{
    font-size: 0.9em;
    margin-top: -25px;
  }

  
    /* 名前とふりがな */
    .teacher-name {
        font-size: 1.8rem;
        margin-top: 30px;
        display: flex;
        align-items: center; /* 水平に揃える */
        justify-content: center; /* 名前と画像を中央揃え */
        gap: 10px; /* 画像と名前の間隔を調整 */
  }

  .teacher-name ruby rt {
    font-size: 0.9rem;
    color: #666;
  }

    /* 名前の上のアイコン */
    .name-icon {
        position: absolute;
        top: -10px;
        margin-left: -140px;
        transform: translateX(-50%);
        width: 60px; /* アイコンのサイズを調整 */
        height: 60px;
        object-fit: contain;
      }


    /* 四角い枠の右下の画像 */
    .box-image {
        position: absolute;
        bottom: -90px;
        right: -40px;
        width: 250px;
        height: 250px;
        object-fit: contain;
        opacity: 0.8;
      }

      .interview-background {
        background: url('../assets/images/about/interview-background2.webp') no-repeat center center/cover;
        background-position: center; /* 右寄せで表示 */
      }
    

      .interview-content {
        font-size: 0.9rem;
      }
    
      .interview-overlay span {
        font-size: 9rem; /* 文字サイズ */
        margin: -25px 0; /* 各文字の間隔 */
      }    

      .question-container {
        padding: 15px;
      }

        /* 3枚目: インタビュー */
        /* インタビューパート全体 */
      .interview-section {
        width: 100%;
  }
}

@media screen and (max-width: 430px) {
  /* ── 1枚目: バナー ── */
  .banner {
    height: calc(300vh * 0.75);
    background-attachment: scroll !important;
    /* fixedが残っていると効果が出ないので、背景指定を完全に書き換えるのも一案 */
    background: url('../assets/images/about/profile3.webp') no-repeat center center;
    background-size: cover;
  }

  .banner-container {
    width: 93%;
    /* 元: margin-top: 100px auto; margin-bottom: 1000px; */
    margin-top: calc(100px * 0.55);
    margin-bottom: calc(1000px * 0.55);
  }
  .banner-text {
    left: 5%; /* 左揃えのために位置を調整 */
  }

  .banner-text h1 {
    font-size: calc(2.8rem * 0.55);
    margin-bottom: calc(1rem * 0.55);
  }
  .banner-text p {
    font-size: calc(1.6rem * 0.55);
    line-height: calc(1.5 * 0.85);
  }
  
  /* ── 2枚目: 講師紹介 ── */
  .profile-image-container {
    margin-top: calc(-200px * 0.55);
    margin-bottom: calc(20px * 0.55);
    transform: translateY(calc(50px * 0.55));
  }
  .profile-image {
    width: calc(450px * 0.35);
    height: calc(450px * 0.35);
    border-width: calc(8px * 0.55);
  }
  .profile-overlay {
    font-size: calc(7.5em * 0.35);
    letter-spacing: calc(10px * 0.15);
  }
  .profile p {
    font-size: calc(1em * 0.55);
    margin-top: calc(-40px * 0.55);
  }
  .name-icon {
    top: calc(-10px * 0.55);
    margin-left: calc(-180px * 0.55);
    width: calc(80px * 0.55);
    height: calc(80px * 0.55);
  }
  .teacher-name {
    font-size: calc(2.5rem * 0.55);
    margin-top: calc(40px * 0.55);
    gap: calc(10px * 0.55);
    letter-spacing: calc(5px * 0.55);
  }
  .teacher-name ruby rt {
    font-size: calc(1.3rem * 0.55);
    margin-bottom: calc(3px * 0.55);
  }
  .achievements-box {
    padding: calc(20px * 0.15);
    margin-top: calc(40px * 0.55);
    margin-bottom: calc(100px * 0.55);
    border-radius: 6px;
    /* 幅はパーセンテージ指定のためそのまま */
    width: 95%;
  }
  .achievements-box li {
    font-size: calc(1.2rem * 0.55);
    margin-bottom: calc(20px * 0.55);
    margin: 5px;
    margin-left: 1px;
    margin-right: 1px;
  }
  .box-image {
    width: calc(300px * 0.35);
    height: calc(300px * 0.35);
    bottom: calc(-100px * 0.35);
    right: calc(-50px * 0.35);
  }
  
  /* ── 3枚目: インタビュー ── */
  /* インタビュー部分は、画像・文字の縮小率は70%（画面幅はやや大きく） */
  .interview-section {
    min-height: calc(160vh * 0.70);
  }
  .interview-background {
    min-height: calc(170vh * 0.55);
    padding-bottom: calc(70px * 0.55);
  }
  .interview-overlay {
    left: 0px;
  }
  
  .interview-overlay span {
    font-size: calc(13rem * 0.55);
    margin: calc(-75px * 0.55) 0;
  }
  .interview-content {
    /* インタビューのコンテンツ幅は大きめにとる */
    max-width: 83%;
    /* インタビュー内の文字は他部分と同様55%にする例 */
    font-size: calc(1rem * 0.55);
  }
  .question h3 {
    font-size: calc(1.5rem * 0.55);
    margin-top: calc(50px * 0.55);
    margin-bottom: calc(10px * 0.55);
  }
  .question-container {
    padding: calc(20px * 0.55);
    margin-bottom: calc(20px * 0.55);
    border-radius: 6px;
  }
  .question-container h3 {
    font-size: calc(1.5rem * 0.55);
    margin-bottom: calc(10px * 0.55);
    letter-spacing: calc(0.1em * 0.55);
  }
  .question-container p {
    font-size: calc(1.2rem * 0.65);
    line-height: calc(1.8 * 0.95);
    letter-spacing: calc(0.1em * 0.55);
  }
}
