/* ========================================
   インタビュー001ページ専用スタイル
======================================== */

/* ========================================
   インタビューセクション セクション
======================================== */

.interview {
    width: 100%;       /* ← 固定幅をやめる */
    max-width: 1200px; /* ← 上限は1200px */
    margin: 0 auto;
    padding: 0 20px;
}

.interview-bg {
    background: #EDEDED;
    margin: auto;
}

.midashi h1 {
    font-size: 32px;
    font-weight: 700;
    color: #e74c3c;
    text-align: center;
    margin-bottom: 40px;
}

.interview h2 {
    font-size: 80px;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: #333;
    text-align: left;
    margin-bottom: 0 auto;
}
.interview-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.interview-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.interview-left {
    flex: 0 0 40%;
}

.interview-right {
    flex: 1;
}

.interview-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.interview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.interview-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

.interview-description {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

.interview-cta {
    text-align: left;
}

.interview-member-card {
    display: flex;
    gap: 40px;
    align-items: center;
    max-width: 600px;
    height: 300px;
    margin: 0 auto;
    padding: 20px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.interview-member-info {
    flex: 1;
    padding: 20px;
}

.interview-member-name {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.interview-member-position,
.interview-member-year {
    font-size: 16px;
    color: #666;
    margin-bottom: 5px;
}

.interview-member-photo {
    flex: 0 0 300px;
    height: 300px;          /* 高さは揃える */
    display: flex;
    align-items: center;    /* 画像を中央寄せ */
    justify-content: center;
    background: #fff;       /* 余白が出る部分の背景色 */
}

.interview-member-photo .photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.interview-member-photo .photo-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;    /* ← トリミングせず全体表示 */
}

/* インタビューQ&A部分の文字サイズ調整 */
.interview-member-name {
    font-size: 20px; /* 24px → 20px */
}

.interview-member-position,
.interview-member-year {
    font-size: 14px; /* 16px → 14px */
}

.qa01 .question,
.qa02 .question {
    font-size: 14px; /* 質問文字 */
}

.qa01 .answer,
.qa02 .answer {
    font-size: 14px; /* 回答文字 */
    line-height: 1.6; /* 行間少し広げて読みやすく */
}

/* .qa-container .inteview-photo のスタイルは .inteview-photo に統合 */

.qa01 .question {
    display: inline-block;
    background-color: black;
    color: white;
    padding: 5px 10px;
    margin-bottom: 20px;
}

.qa01 {
    margin: 0 auto; /* inteview-photoと同じ中央寄せ */
    max-width: 600px; /* 画像の最大幅に合わせて調整 */
    text-align: left; /* 内部のquestionを左寄せ */
}

.qa01 .answer {
    margin-bottom: 40px;
}

.qa02 .question {
    display: inline-block;
    background-color: black;
    color: white;
    padding: 5px 10px;
    margin-bottom: 20px;
}

.qa02 {
    margin: 0 auto; /* inteview-photoと同じ中央寄せ */
    max-width: 600px; /* 画像の最大幅に合わせて調整 */
    text-align: left; /* 内部のquestionを左寄せ */
}

.qa02 .answer {
    margin-bottom: 40px;
}

.inteview-photo {
    margin: 0 auto 40px auto; /* 中央寄せと下マージン */
    max-width: 600px; /* 画像コンテナの最大幅 */
    text-align: center; /* 画像を中央寄せ */
}

.inteview-photo img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* YouTube動画埋め込み用スタイル */
.inteview-photo.video-container {
    margin: 0 auto 40px auto;
    max-width: 600px;
    text-align: center;
    position: relative;
    aspect-ratio: 16/9;   /* 最初から比率で制御 */
    height: auto;
    overflow: hidden;
}

.inteview-photo.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/* ========================================
   メンバーセクション
======================================== */
.members-bg {
    background: white;
}

/* メンバーセクションの左右レイアウト */
.members-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.members-left {
    flex: 0 0 40%;
}

.members-right {
    flex: 1;
    overflow: hidden; /* はみ出し部分を非表示 */
}

.members-header {
    text-align: left;
    margin-bottom: 40px;
}

.members-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.title-line {
    width: 60px;
    height: 4px;
    background: #e74c3c;
}

/* .members-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
} */

.members-subtitle {
    font-size: 120px;
    font-weight: 900;
    color: #f8f9fa;
    position: absolute;
    top: 20%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 1;
    opacity: 0.3;
    letter-spacing: 10px;
    font-style: italic;
}

.members-description {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 0 30px 0;
    position: relative;
    z-index: 2;
}

.members-cta {
    text-align: left;
}

.members-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-container {
    overflow: hidden;
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
    gap: 10px;
}

.member-card {
    flex: 0 0 calc((100% - 20px) / 3);
    /* border-radius: 20px; */
    overflow: hidden;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
    display: flex;
    flex-direction: column;
    min-height: 300px; /* 最小高さを設定し、内容に応じて拡張 */
    max-width: 200px; /* 最大幅を制限 */
}

.member-photo {
    width: 100%;
    min-height: 180px; /* 最小高さを設定し、必要に応じて拡張 */
    /* background: #f8f9fa; */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* 縮小を防ぐ */
    overflow: hidden;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: #f8f9fa; */
}

.photo-placeholder img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain; /* 画像全体を表示し、アスペクト比を保持 */
}

.member-info {
    padding: 20px;
    color: #000;
    text-align: center;
    flex: 1; /* 残りスペースを使用 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden; /* はみ出しを防ぐ */
}

.member-info h3 {
    border-bottom: 1px solid #000;
}

.member-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-position,
.member-year {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 5px;
    line-height: 1.4;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    pointer-events: all;
    z-index: 10;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 0 10px;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.members-cta {
    text-align: center;
}

.members-cta .btn-outline {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none; /* 枠線を無効化 */
    padding: 0; /* パディングを無効化 */
    border-radius: 0; /* 角丸を無効化 */
    background: transparent; /* 背景を透明に */
    color: inherit; /* 文字色を親から継承（または任意のデフォルト色） */
    font-weight: normal; /* フォントウェイトをデフォルトに */
}

.members-cta .btn-outline:hover {
    /* 画像のホバーエフェクトはimgタグで直接制御するため、親のhoverは不要 */
}

.members-cta .btn-outline img {
    width: 200px; /* btn-viewmoreと同じサイズに */
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto; /* 中央寄せ */
    transition: all 0.3s ease;
}

.members-cta .btn-outline:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* 単体の画像用スタイル（.members-cta .btn-outline imgと同じ） */
.viewmore-img {
    width: 200px;
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.viewmore-img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* .midashi h2 {
    font-size: 32px;
    font-weight: 700;
    color: #e74c3c;
    text-align: center;
    margin-bottom: 40px;
} */

.midashi {
    margin: 0 auto; /* 中央寄せ */
    width: fit-content; /* コンテンツの幅に合わせる */
}

/* ========================================
   レスポンシブ対応
======================================== */

/* タブレット横（〜1024px） */
@media (max-width: 1024px) {
    .interview {
      width: 100%;
      padding: 0 15px;
    }
  
    .interview-member-card {
      flex-direction: column;
      text-align: center;
      height: auto;
      gap: 20px;
    }
  
    .interview-member-photo {
      flex: none;
      width: 100%;
      height: auto;
    }
  
    .members-content {
      flex-direction: column;
      gap: 40px;
    }
  
    .member-card {
      flex: 0 0 calc((100% - 10px) / 2);
      max-width: 320px;
      height: auto;
    }
  }
  
  /* タブレット縦・大きめスマホ（〜768px） */
  @media (max-width: 768px) {
    .midashi h1 {
      font-size: 24px;
    }
  
    .interview h2 {
      font-size: 48px;
      text-align: center;
    }
  
    .qa01, .qa02 {
      max-width: 100%;
      padding: 0 10px;
    }
  
    .interview-photo {
      max-width: 500px;
      margin: 0 auto 30px;
    }
  
    .members-subtitle {
      font-size: 60px;
    }
  
    .member-card {
      flex: 0 0 calc((100% - 10px) / 2);
      height: auto;
    }
  }
  
  /* ========================================
   スマホ用 はみ出し対策
======================================== */
/* スマホ用 はみ出し対策（カルーセル壊さない） */
@media (max-width: 480px) {
    html, body {
      width: 100%;
      overflow-x: hidden; /* 横スクロール禁止 */
    }
  
    /* インタビュー写真のはみ出し防止 */
    .interview-member-photo .photo-placeholder {
      width: 100% !important;   /* ← 120% → 100% に修正 */
      height: auto !important;
    }
    .interview-member-photo .photo-placeholder img {
      max-width: 100% !important;
      height: auto !important;
    }
  
    /* メンバーカードを1列に */
    .member-card {
      flex: 0 0 100% !important;
      max-width: 100% !important;
    }
  
    /* カルーセルは wrap させない。横並び維持 */
    .carousel-track {
      flex-wrap: nowrap !important;
      gap: 10px;
    }
  }