/*--------------------------------------------------------------
# Interview Page Specific Styles
--------------------------------------------------------------*/

/* スムーススクロール設定 */
:root {
  scroll-behavior: smooth;
  scroll-padding-top: 131px; /* ヘッダー(81px) + 余白(50px) */
}

/*--------------------------------------------------------------
# Interview Hero Section
--------------------------------------------------------------*/
.interview-hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

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

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.slide-content {
  position: absolute;
  bottom: 100px;
  left: 80px;
  color: var(--white);
}

.slide-category {
  display: inline-block;
  background: var(--primary);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.slide-name {
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 800;
  margin-bottom: 10px;
}

.slide-position {
  font-size: 20px;
  opacity: 0.9;
}

.hero-title-area {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  width: 100%;
}

.interview-hero .hero-title {
  text-align: center;
}

.interview-hero .title-en {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(100px, 15vw, 200px);
  font-weight: 400;
  letter-spacing: 10px;
  color: transparent;
  -webkit-text-stroke: 3px var(--white);
  text-stroke: 3px var(--white);
  margin-bottom: -30px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.interview-hero .title-jp {
  display: block;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 8px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

/*--------------------------------------------------------------
# Interview Navigation
--------------------------------------------------------------*/
.interview-nav {
  background: var(--dark);
  padding: 40px 0;
  position: sticky;
  top: 70px;
  z-index: 100;
}

/* Non-sticky version */
.interview-nav-static {
  position: relative;
  top: auto;
}

/* Grid レイアウトで等幅化 */
.interview-nav-static .nav-items {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 20px;
  padding: 0 20px;
  overflow-x: visible;
  align-items: stretch; /* 各セルの高さを揃える */
}

/* フォールバック: 通常の .nav-items（sticky版用） */
.nav-items:not(.interview-nav-static .nav-items) {
  display: flex;
  justify-content: center;
  gap: 30px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 20px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* 上揃え */
  height: 100%; /* 親の高さいっぱいに */
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
  padding: 15px;
  border-radius: 10px;
}

.nav-item:hover,
.nav-item.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.nav-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 5px;
}

.nav-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 3px;
}

.nav-dept {
  font-size: 12px;
  opacity: 0.7;
  text-align: center; /* 中央寄せ */
}

/*--------------------------------------------------------------
# Interview Detail Section
--------------------------------------------------------------*/
.interview-detail {
  padding: 100px 0;
  background: var(--white);
}

.interview-header {
  position: relative;
  margin-bottom: 80px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.header-bg {
  position: relative;
  height: 500px;
}

.header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
}

/* 右側グラデーション版のオーバーレイ */
.header-overlay-right {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
}

.header-content {
  position: absolute;
  top: 50%;
  left: 80px;
  transform: translateY(-50%);
  color: var(--white);
  max-width: 600px;
}

/* 右側配置版のコンテンツ */
.header-content-right {
  position: absolute;
  top: 50%;
  right: 80px;
  left: auto;
  transform: translateY(-50%);
  color: var(--white);
  max-width: 600px;
  /* コンテンツ塊（.profile-info）自体は右側に配置したいので、
     親ボックスは右寄せ。内部テキストは個別指定で左揃え維持 */
  text-align: right;
}

/* 右側配置用のプロファイル情報 */
.header-content-right .profile-info {
  display: inline-flex;        /* 親の text-align に従って右端に寄せる */
  justify-content: flex-start; /* 内部は左から並べる */
  flex-direction: row;         /* 通常の順序 */
}

/* 右側配置用のテキスト揃え */
.header-content-right .profile-text {
  text-align: left;  /* 左寄せテキスト */
}

/* 右側配置用の引用文 */
.header-content-right .profile-quote {
  text-align: left;  /* 左寄せテキスト */
}

.profile-info {
  display: flex;
  align-items: start;
  gap: 30px;
  margin-bottom: 30px;
}

.profile-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 120px;
  font-weight: 400;
  line-height: 1;
  opacity: 0.3;
}

.profile-dept {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.profile-name {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.2;
}

.profile-year {
  display: block;
  font-size: 16px;
  opacity: 0.8;
}

.profile-quote {
  font-size: 18px;
  line-height: 1.8;
  font-style: italic;
  opacity: 0.9;
}

/*--------------------------------------------------------------
# Interview Body
--------------------------------------------------------------*/
.interview-body {
  max-width: 1200px;
  margin: 0 auto;
}

.interview-index {
  position: sticky;
  top: 100px; /* ヘッダー(70px) + 余白(30px) */
  background: #f8f9fa;
  padding: 30px;
  border-radius: 15px;
}

/* Non-sticky version */
.interview-index-static {
  position: relative;
  top: auto;
}

.interview-index h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--dark);
}

.interview-index ul {
  list-style: none;
  padding: 0;
}

.interview-index li {
  margin-bottom: 15px;
}

.interview-index a {
  color: var(--gray);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
  display: block;
  padding: 5px 0;
}

.interview-index a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

/*--------------------------------------------------------------
# Interview Content
--------------------------------------------------------------*/
.interview-content {
  background: var(--white);
}

.content-section {
  margin-bottom: 60px;
  scroll-margin-top: 131px; /* ヘッダー(81px) + 余白(50px) */
}

.content-section h3 {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 30px;
  position: relative;
  padding-left: 30px;
}

.content-section h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 30px;
  background: var(--primary);
  border-radius: 3px;
}

.content-section p {
  font-size: 16px;
  line-height: 2;
  color: var(--gray);
  margin-bottom: 20px;
}

/*--------------------------------------------------------------
# Career Timeline
--------------------------------------------------------------*/
.career-timeline {
  margin: 30px 0;
}

.career-timeline .timeline-item {
  display: flex;
  gap: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  margin-bottom: 15px;
  transition: var(--transition);
}

.career-timeline .timeline-item:hover {
  background: #e9ecef;
  transform: translateX(10px);
}

.career-timeline .timeline-year {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--primary);
  font-weight: 400;
  flex-shrink: 0;
}

.career-timeline .timeline-content {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.6;
}

/*--------------------------------------------------------------
# Job List
--------------------------------------------------------------*/
.job-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.job-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 16px;
  color: var(--gray);
  line-height: 1.8;
}

.job-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
}

/*--------------------------------------------------------------
# Appeal Cards
--------------------------------------------------------------*/
.appeal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.appeal-card {
  background: linear-gradient(135deg, rgba(0, 168, 89, 0.1) 0%, rgba(0, 208, 108, 0.1) 100%);
  padding: 30px;
  border-radius: 15px;
  transition: var(--transition);
}

.appeal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 168, 89, 0.2);
}

.appeal-card h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 15px;
}

.appeal-card p {
  font-size: 14px;
  color: var(--gray);
  margin: 0;
}

/*--------------------------------------------------------------
# Philosophy Cards
--------------------------------------------------------------*/
.philosophy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.philosophy-card {
  text-align: center;
  padding: 40px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.philosophy-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.philosophy-card i {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 20px;
}

.philosophy-card h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 15px;
}

.philosophy-card p {
  font-size: 14px;
  color: var(--gray);
  margin: 0;
}

/*--------------------------------------------------------------
# Message Box
--------------------------------------------------------------*/
.message-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 40px;
  border-radius: 20px;
  margin: 30px 0;
}

.message-box p {
  color: var(--white);
  font-size: 16px;
  line-height: 2;
  margin-bottom: 20px;
}

.message-box p:last-child {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Project Highlight
--------------------------------------------------------------*/
.project-highlight {
  background: #f8f9fa;
  padding: 40px;
  border-radius: 20px;
  margin: 30px 0;
}

.project-highlight h4 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

.project-highlight p {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 15px;
}

/*--------------------------------------------------------------
# Interview Footer
--------------------------------------------------------------*/
.interview-footer {
  margin-top: 80px;
  text-align: right;
}

.next-interview {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: var(--dark);
  color: var(--white);
  padding: 20px 40px;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
}

.next-interview:hover {
  background: var(--primary);
  transform: translateX(10px);
  text-decoration: none;
  color: var(--white);
}

.next-interview span:first-child {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.7;
}

.next-name {
  font-size: 18px;
  font-weight: 700;
}

/*--------------------------------------------------------------
# Interview List Section
--------------------------------------------------------------*/
.interview-list {
  padding: 100px 0;
  background: #f8f9fa;
}

.list-title {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 60px;
  color: var(--dark);
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.list-item {
  display: flex;
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  text-decoration: none;
}

.list-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.list-photo {
  flex: 0 0 150px;
  height: 150px;
}

.list-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.list-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: var(--primary);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 10px;
}

.list-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 5px;
}

.list-dept {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 5px;
}

.list-year {
  font-size: 12px;
  color: var(--gray);
  opacity: 0.7;
}

/*--------------------------------------------------------------
# Interview Page Responsive Design
--------------------------------------------------------------*/
@media (max-width: 1200px) {
  /* 通常のnav-items（sticky版）用 */
  .interview-nav:not(.interview-nav-static) .nav-items {
    justify-content: flex-start;
  }

  /* 等幅Grid版は維持 */
  .interview-nav-static .nav-items {
    grid-template-columns: repeat(6, minmax(140px, 1fr));
  }
}

@media (max-width: 992px) {
  /* タブレット：3列表示 */
  .interview-nav-static .nav-items {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 16px;
  }

  /* 通常のheader-content（右側配置版を除く） */
  .interview-header .header-content:not(.header-content-right) {
    left: 40px;
    right: 40px;
  }

  /* 右側配置版は右寄せを維持 */
  .interview-header .header-content-right {
    position: absolute;
    right: 40px;
    left: auto;
    /* モバイル時にボックスが左端まで拡張して見えないよう、
       実効幅の上限を設定（右寄せ配置は維持） */
    max-width: min(90vw, 420px);
  }

  .interview-body .row {
    margin: 0;
  }

  .interview-index {
    display: none;
  }
}

@media (max-width: 768px) {
  /* タブレット・スマホ：2列表示 */
  .interview-nav-static .nav-items {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 16px;
    padding: 0 10px;
  }

  .interview-hero .title-en {
    font-size: 80px;
    margin-bottom: -20px;
  }

  /* 通常のnav-items（sticky版）用 */
  .interview-nav:not(.interview-nav-static) .nav-items {
    padding: 0 10px;
  }

  .nav-item {
    padding: 10px;
  }
  
  .profile-info {
    flex-direction: column;
    gap: 15px;
  }
  
  .profile-number {
    font-size: 80px;
  }
  
  .profile-name {
    font-size: 36px;
  }
  
  .list-grid {
    grid-template-columns: 1fr;
  }
  
  /* 通常のheader-content（右側配置版を除く） */
  .interview-header .header-content:not(.header-content-right) {
    left: 20px;
    right: 20px;
  }
  
  /* 右側配置版は右寄せを維持 */
  .interview-header .header-content-right {
    position: absolute;
    top: 50%;
    right: 20px;
    left: auto;
    transform: translateY(-50%);
    /* スマホ幅でも右側に“塊”として収まるように上限を設定 */
    max-width: min(90vw, 420px);
  }
  
  /* 02・肩書・名前を縦積みにして“右寄り”の見た目に */
  .header-content-right .profile-info {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;   /* 右端を揃える */
  }
  /* 02の数字だけを右寄せ */
  .header-content-right .profile-number {
    align-self: flex-end;
    text-align: right;
  }
  /* 肩書・名前・入社情報のテキストは右揃え */
  .header-content-right .profile-text {
    text-align: right;
  }
  
  .header-content-right .profile-quote {
    text-align: left;
  }
}

@media (max-width: 575px) {
  /* スマホ：2列表示を維持 */
  .interview-nav-static .nav-items {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 12px;
  }

  .interview-hero .title-jp {
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .interview-hero .title-en {
    font-size: 60px;
    margin-bottom: -15px;
  }

  .interview-hero .title-jp {
    margin-top: 15px;
  }

  .slide-content {
    left: 30px;
    right: 30px;
  }

  .slide-name {
    font-size: 32px;
  }
  
  /* 通常のheader-content（右側配置版を除く） */
  .interview-header .header-content:not(.header-content-right) {
    left: 15px;
    right: 15px;
  }
  
  /* 小画面でも右側配置版は右寄せを維持 */
  .interview-header .header-content-right {
    position: absolute;
    top: 50%;
    right: 15px;
    left: auto;
    transform: translateY(-50%);
    /* さらに小さい画面ではよりタイトに */
    max-width: min(92vw, 340px);
  }
  /* 480px以下でも右揃えを維持 */
  .header-content-right .profile-text {
    text-align: right;
  }
}

/*--------------------------------------------------------------
# Future Interview Sample Section
--------------------------------------------------------------*/
.interview-sample-section {
  padding: 100px 0 60px 0;
  background: var(--white);
}

.interview-sample-section .container {
  padding-bottom: 0;
  margin-bottom: 0;
}

.sample-header {
  text-align: center;
  margin-bottom: 60px;
}

.sample-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 15px;
}

.sample-description {
  font-size: 16px;
  color: var(--gray);
  margin: 0;
}

/* Sample Panel Styles */
.sample-panel {
  margin-bottom: 60px;
  border-radius: 0;
  /* border-radius: 10px; */
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.sample-panel:last-child {
  margin-bottom: 0;
}

.sample-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.sample-btn-wrapper {
  margin-top: 30px;
}

.sample-btn-wrapper .btn {
  min-width: 250px;
  font-weight: 600;
}

/* Responsive for sample panels */
@media (max-width: 768px) {
  .sample-btn-wrapper .btn {
    min-width: 200px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .interview-sample-section {
    padding: 60px 0 0 0;
  }

  .sample-header {
    margin-bottom: 40px;
  }

  .sample-panel {
    margin-bottom: 40px;
  }

  .sample-btn-wrapper {
    margin-top: 20px;
  }

  .sample-btn-wrapper .btn {
    min-width: 180px;
    font-size: 14px;
    padding: 10px 20px;
  }
}

/*--------------------------------------------------------------
# Interview Detail Pages
# (migrated from inline styles in 001-006)
--------------------------------------------------------------*/

/* test05.html 専用スタイル */

