/* ========================================
   Contactページ専用スタイル
   ======================================== */

/* ========================================
   ヒーローセクション（Contact専用）
   ======================================== */
.hero-contact {
  /* 位置・サイズ */
  position: relative;
  width: 100%;
  height: 420px;

  /* レイアウト */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  /* 余白 */
  padding: 163px 199px 146px;

  /* オーバーフロー */
  overflow: hidden;
}

/* カルーセルコンテナ */
.hero-contact .hero-carousel {
  /* 位置・サイズ */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* カルーセルスライド */
.hero-contact .carousel-slide {
  /* 位置・サイズ */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  /* 透明度 */
  opacity: 1;
}

/* スライド内の画像 */
.hero-contact .carousel-slide img {
  /* サイズ */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

/* ヒーロー画像の上のオーバーレイ（暗くする効果） */
.hero-overlay-contact {
  /* 位置・サイズ */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;

  /* グラデーション背景 */
  background: linear-gradient(180deg,
      rgba(41, 51, 84, 0.68) 25%,
      rgba(41, 51, 84, 0.85) 100%);

  /* ブレンドモード */
  mix-blend-mode: multiply;

  /* ポインターイベントを無効化 */
  pointer-events: none;
}

/* ヒーローコンテンツ */
.hero-content-contact {
  /* 位置 */
  position: relative;
  z-index: 2;

  /* レイアウト */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;

  /* サイズ */
  width: 100%;
  max-width: 1042px;
  text-align: center;
}

/* ヒーロータイトル */
.hero-title-contact {
  /* レイアウト */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;

  /* 色 */
  color: var(--color-text-light);

  /* サイズ */
  width: 100%;
}

.hero-title-contact .hero-title-en {
  /* フォント */
  font-family: var(--font-en-serif);
  font-size: 80px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.8px;

  /* 透明度 */
  opacity: 0.9;
}

.hero-title-contact .hero-title-ja {
  /* フォント */
  font-family: var(--font-ja-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 2.64px;
  white-space: nowrap;
}

.hero-contact .hero-subtitle {
  /* フォント */
  font-family: var(--font-ja-mincho);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.5px;

  /* 色 */
  color: var(--color-text-secondary);

  /* 余白 */
  margin-top: 8px;
}

/* 研究室名セクション（Contact専用） */
.hero-contact .lab-name-section {
  /* 位置 */
  position: absolute;
  bottom: 20.5px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* ========================================
   メインコンテンツ
   ======================================== */
.content-wrapper-contact {
  /* レイアウト */
  display: flex;
  flex-direction: column;
  gap: 80px;

  /* サイズ */
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   お問い合わせセクション
   ======================================== */
.contact-intro {
  /* 余白 */
  margin-bottom: var(--spacing-xl);
}

.contact-intro p {
  /* フォント */
  font-family: var(--font-ja-mincho);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-primary);
}

/* お問い合わせボタンコンテナ */
.contact-button-container {
  /* レイアウト */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-md);

  /* 余白 */
  padding: var(--spacing-lg) 0;
}

/* お問い合わせボタン */
.btn-contact {
  /* レイアウト */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  /* サイズ */
  padding: 20px 48px;

  /* 背景・枠線 */
  background-color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 8px;

  /* テキスト */
  text-decoration: none;

  /* トランジション */
  transition: all 0.3s ease;
}

.btn-contact:hover {
  background-color: transparent;
  border-color: var(--color-primary);
}

.btn-contact-icon {
  /* サイズ */
  width: 24px;
  height: 24px;

  /* トランジション */
  transition: filter 0.3s ease;
}

.btn-contact:hover .btn-contact-icon {
  /* ホバー時にプライマリーカラーに変更（フィルターで調整） */
  filter: brightness(0) saturate(100%) invert(19%) sepia(58%) saturate(2156%) hue-rotate(214deg) brightness(91%) contrast(97%);
}

.btn-contact-text {
  /* フォント */
  font-family: var(--font-ja-serif);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;

  /* トランジション */
  transition: color 0.3s ease;
}

.btn-contact:hover .btn-contact-text {
  color: var(--color-primary);
}

.contact-note {
  /* フォント */
  font-family: var(--font-ja-mincho);
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ========================================
   アクセスセクション
   ======================================== */
.access-info {
  /* レイアウト */
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
}

.address-block,
.transport-block,
.lab-location-block {
  /* レイアウト */
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.address-title,
.transport-title,
.lab-location-title {
  /* フォント */
  font-family: var(--font-ja-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);

  /* 左線 */
  padding-left: var(--spacing-md);
  border-left: 3px solid var(--color-primary);
}

.address-text {
  /* フォント */
  font-family: var(--font-ja-mincho);
  font-size: 16px;
  font-style: normal;
  line-height: 1.8;
  color: var(--color-text-primary);

  /* 余白 */
  padding-left: var(--spacing-md);
}

.transport-list {
  /* リストスタイル */
  list-style: none;
  padding-left: var(--spacing-md);
}

.transport-list li {
  /* フォント */
  font-family: var(--font-ja-mincho);
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-primary);

  /* 余白 */
  margin-bottom: var(--spacing-sm);

  /* ビュレット */
  position: relative;
  padding-left: var(--spacing-md);
}

.transport-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

.lab-location-text {
  /* フォント */
  font-family: var(--font-ja-mincho);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-muted);

  /* 余白 */
  padding-left: var(--spacing-md);
}

.map-container {
  /* サイズ */
  width: 100%;
  margin-top: var(--spacing-lg);
}

.map-container iframe {
  /* サイズ */
  width: 100%;
  height: 400px;

  /* 枠線なし（Google Maps推奨） */
  border: 0;
  border-radius: 8px;
}

/* ========================================
   リンクセクション
   ======================================== */
.links-list {
  /* レイアウト */
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.link-item {
  /* レイアウト */
  display: flex;
  flex-direction: column;
  gap: 4px;

  /* 余白 */
  padding: var(--spacing-md);

  /* 背景・枠線 */
  background-color: var(--color-bg-light);
  border-radius: 8px;
  border: 1px solid var(--color-border);

  /* テキスト */
  text-decoration: none;

  /* トランジション */
  transition: all 0.2s ease;
}

.link-item:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.link-name {
  /* フォント */
  font-family: var(--font-ja-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);

  /* トランジション */
  transition: color 0.2s ease;
}

.link-item:hover .link-name {
  color: #fff;
}

.link-url {
  /* フォント */
  font-family: var(--font-en-serif);
  font-size: 13px;
  color: var(--color-text-muted);

  /* テキスト */
  word-break: break-all;

  /* トランジション */
  transition: color 0.2s ease;
}

.link-item:hover .link-url {
  color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   レスポンシブデザイン
   ======================================== */

/* タブレット（768px以下） */
@media (max-width: 768px) {
  .hero-contact {
    height: 300px;
    padding: 100px 50px 80px;
  }

  .hero-title-contact .hero-title-en {
    font-size: 60px;
  }

  .hero-title-contact .hero-title-ja {
    font-size: 18px;
  }

  .hero-contact .hero-subtitle {
    font-size: 14px;
  }

  .content-wrapper-contact {
    gap: 64px;
    padding: 0 16px;
  }

  .btn-contact {
    padding: 18px 40px;
  }

  .btn-contact-text {
    font-size: 16px;
  }

  .map-container iframe {
    height: 300px;
  }

  .address-title,
  .transport-title,
  .lab-location-title {
    font-size: 16px;
  }
}

/* スマートフォン（480px以下） */
@media (max-width: 480px) {
  .hero-contact {
    height: auto;
    min-height: 40vh;
    padding: 80px 27px 60px;
  }

  .hero-title-contact .hero-title-en {
    font-size: 48px;
  }

  .hero-title-contact .hero-title-ja {
    font-size: 16px;
    letter-spacing: 1.92px;
  }

  .hero-contact .hero-subtitle {
    font-size: 13px;
  }

  .hero-contact .lab-name-section {
    bottom: 16px;
  }

  .content-wrapper-contact {
    gap: 48px;
  }

  .contact-intro p {
    font-size: 14px;
  }

  .btn-contact {
    padding: 16px 32px;
    gap: 10px;
  }

  .btn-contact-icon {
    width: 20px;
    height: 20px;
  }

  .btn-contact-text {
    font-size: 15px;
  }

  .contact-note {
    font-size: 13px;
  }

  .map-container iframe {
    height: 250px;
  }

  .address-text,
  .lab-location-text {
    font-size: 14px;
  }

  .transport-list li {
    font-size: 14px;
  }

  .link-name {
    font-size: 15px;
  }

  .link-url {
    font-size: 12px;
  }
}