/* ==============================================
   カリキュラムページ専用CSS
   ============================================== */

/* 基本設定: html { font-size: 62.5%; } を前提に1.6rem = 16px */

/* タブ切り替えスタイル */
.tab-container {
  margin: 40px 0;
  width: 100%;
}

.tab-buttons {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 30px;
  overflow-x: auto;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-button {
  padding: 1.5rem 3rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.tab-button:hover {
  color: var(--faculty-color, #ff6b6b);
}

.tab-button.active {
  color: var(--faculty-color, #ff6b6b);
  font-weight: 700;
  border-bottom: 3px solid var(--faculty-color, #ff6b6b);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
  width: 100%;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* カリキュラムテーブルスタイル */
.curriculum-section {
  margin-bottom: 50px;
  width: 100%;
}

.curriculum-section h3 {
  font-size: 2.4rem;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--faculty-color, #ff6b6b);
}

.curriculum-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-size: 1.4rem;
}

.curriculum-table th {
  background: var(--faculty-color, #ff6b6b);
  color: #fff;
  padding: 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 1.5rem;
}

.curriculum-table td {
  padding: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
  font-size: 1.4rem;
  line-height: 1.8;
}

.curriculum-table tr:last-child td {
  border-bottom: none;
}

.curriculum-table ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.curriculum-table li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.4rem;
}

.curriculum-table li:before {
  content: "・";
  position: absolute;
  left: 0;
}

.course-note {
  font-size: 1.3rem;
  color: #666;
  margin-top: 1rem;
  padding: 1rem;
  background: #f5f5f5;
  border-left: 3px solid var(--faculty-color, #ff6b6b);
  line-height: 1.8;
}

.course-note strong {
  color: #333;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

/* ページヒーローセクション */
.page-hero {
  background: linear-gradient(135deg, var(--faculty-color, #ff6b6b) 0%, var(--faculty-color-light, #ff8e8e) 100%);
  padding: 6rem 0;
  color: #fff;
  text-align: center;
}

.page-hero h1 {
  font-size: 3.6rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.page-hero p {
  font-size: 1.8rem;
  opacity: 0.95;
}

.page-hero .hero-description {
  font-size: 1.6rem;
  margin-top: 2rem;
  opacity: 0.9;
  line-height: 1.8;
}

/* 注釈エリア */
.curriculum-note-area {
  margin-top: 4rem;
  padding: 2rem;
  background: #f5f5f5;
  border-left: 4px solid var(--faculty-color, #ff6b6b);
}

.curriculum-note-area h3 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.curriculum-note-area ul {
  list-style: disc;
  padding-left: 2rem;
  color: #666;
  line-height: 1.8;
}

.curriculum-note-area li {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.curriculum-note-area a {
  color: var(--faculty-color, #ff6b6b);
  text-decoration: underline;
  font-size: 1.4rem;
}

/* コンテンツ幅の確保 + top.cssの.containerスタイルをキャンセル */
.main-content .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
  box-sizing: border-box;
  /* top.cssのflexレイアウトをキャンセル */
  display: block;
  align-items: unset;
  justify-content: unset;
}

/* 学部別カラー変数 */
[data-faculty="fc_sci"] {
  --faculty-color: #ff6b6b;
  --faculty-color-light: #ff8e8e;
}

[data-faculty="fc_env"] {
  --faculty-color: #5ae06f;
  --faculty-color-light: #7ae88a;
}

[data-faculty="fc_che"] {
  --faculty-color: #00bbff;
  --faculty-color-light: #33ccff;
}

/* ==============================================
   教員紹介ページ専用スタイル
   ============================================== */

/* 教員カードグリッド */
.teacher-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

/* 教員カード */
.teacher-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  padding: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.teacher-card .lab-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--faculty-color, #ff6b6b);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--faculty-color, #ff6b6b);
}

.teacher-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.teacher-info {
  flex: 1;
}

.teacher-info p {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  line-height: 1.8;
  color: #333;
}

.teacher-field {
  font-weight: 600;
  color: #555;
}

.teacher-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}

.teacher-title {
  font-size: 1.4rem;
  font-weight: 500;
  color: #666;
  margin-left: 1rem;
  padding: 0.3rem 1rem;
  background: #f0f0f0;
  border-radius: 4px;
}

.teacher-email {
  font-size: 1.3rem;
  color: #666;
  word-break: break-all;
}

.teacher-email a {
  color: var(--faculty-color, #ff6b6b);
  text-decoration: none;
}

.teacher-email a:hover {
  text-decoration: underline;
}

.teacher-description {
  font-size: 1.4rem;
  line-height: 1.8;
  color: #555;
  margin-top: 1rem;
  padding: 1rem;
  background: #f9f9f9;
  border-left: 3px solid var(--faculty-color, #ff6b6b);
}

.teacher-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 2rem;
  background: var(--faculty-color, #ff6b6b);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1.4rem;
  font-weight: 600;
  transition: background 0.3s ease;
}

.teacher-link:hover {
  background: var(--faculty-color-dark, #e55555);
  opacity: 0.9;
}

.teacher-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.teacher-images img {
  width: 100%;
  height: 200px;
  /*object-fit: cover;*/object-fit:contain;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .tab-button {
    padding: 1.2rem 2rem;
    font-size: 1.4rem;
  }
  
  .curriculum-table {
    font-size: 1.3rem;
  }
  
  .curriculum-table th {
    font-size: 1.4rem;
  }
  
  .curriculum-table td {
    font-size: 1.3rem;
  }
  
  .curriculum-table li {
    font-size: 1.3rem;
  }

  .curriculum-table th,
  .curriculum-table td {
    padding: 1rem;
  }

  .page-hero h1 {
    font-size: 2.8rem;
  }

  .page-hero p {
    font-size: 1.6rem;
  }

  .page-hero .hero-description {
    font-size: 1.4rem;
  }

  .curriculum-section h3 {
    font-size: 2rem;
  }

  .main-content .container {
    padding: 3rem 1.5rem;
  }

  /* 教員カード レスポンシブ */
  .teacher-card-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .teacher-card {
    padding: 2rem;
  }

  .teacher-card .lab-name {
    font-size: 1.8rem;
  }

  .teacher-name {
    font-size: 1.6rem;
  }

  .teacher-images {
    grid-template-columns: 1fr;
  }

  .teacher-images img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .tab-buttons {
    flex-direction: column;
  }

  .tab-button {
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    font-size: 1.4rem;
    padding: 1.2rem 1.5rem;
  }

  .tab-button.active {
    border-left: 3px solid var(--faculty-color, #ff6b6b);
    border-bottom: 1px solid #e0e0e0;
  }

  .page-hero h1 {
    font-size: 2.4rem;
  }

  .page-hero p {
    font-size: 1.4rem;
  }

  .page-hero .hero-description {
    font-size: 1.3rem;
  }

  .curriculum-table {
    font-size: 1.2rem;
  }

  .curriculum-table th {
    font-size: 1.3rem;
  }

  .curriculum-table td {
    font-size: 1.2rem;
    padding: 0.8rem;
  }

  .curriculum-table li {
    font-size: 1.2rem;
  }

  .curriculum-section h3 {
    font-size: 1.8rem;
  }

  .main-content .container {
    padding: 2rem 1rem;
  }

  /* 教員カード レスポンシブ */
  .teacher-card {
    padding: 1.5rem;
  }

  .teacher-card .lab-name {
    font-size: 1.6rem;
  }

  .teacher-name {
    font-size: 1.5rem;
  }

  .teacher-title {
    font-size: 1.3rem;
    display: block;
    margin-left: 0;
    margin-top: 0.5rem;
    width: fit-content;
  }

  .teacher-images img {
    height: 150px;
  }

  .teacher-link {
    padding: 0.6rem 1.5rem;
    font-size: 1.3rem;
  }
}