
/* Main Visual */
.top-mainvisual {
    position: relative;
    width: 100%;
    /* 動画の下端はブラウザのウィンドウサイズに合わせる */
    height: calc(100vh - clamp(60px, 6.94vw, 100px)); /* ヘッダーの高さを引く */
    overflow: hidden;
    background-color: #000;
}

.top-mainvisual-video-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.top-mainvisual-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* テキストの背景は動画（動画の上に重なるコンテンツ） */
.top-mainvisual-content {
    position: absolute;
    bottom: clamp(60px, 8.33vw, 120px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1290px;
    z-index: 10;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.top-mainvisual-title {
    font-size: clamp(50px, 11.11vw, 92px);
    font-weight: 500;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.top-mainvisual-text {
    font-size: clamp(14px, 1.94vw, 23px);
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* SCROLLテキスト */
.top-mainvisual-scroll {
    scroll-margin-top: clamp(60px, 6.94vw, 100px); /* 固定ヘッダーの高さ分、スクロール停止位置をずらす */
    position: absolute;
    right: 30px;
    bottom: 0;
    z-index: 10;
    writing-mode: vertical-rl;
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.2em;
    padding-bottom: 100px;
    text-decoration: none;
}

.top-mainvisual-scroll::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 1px;
    height: 80px;
    background-color: #fff;
}

/* SP Media Query (767px以下) */
@media screen and (max-width: 767px) {
    .top-mainvisual {
        /* SP時の動画サイズは幅100vw H970pxで固定 */
        height: 970px;
        max-height: 70vh;
    }

    .top-mainvisual-content {
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
    }

    .top-mainvisual-title {
        font-size: 50px;
        margin-bottom: 15px;
    }

    .top-mainvisual-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .top-mainvisual-scroll {
        display: none; /* 添付のSPレイアウトにはSCROLLが見当たらないため非表示、もし必要なら調整 */
    }
}

/* --- top_sec02 Settings --- */

.top_sec02 {
  padding: clamp(60px, 8vw, 100px) 0;
  background-color: #f8f8f8; /* 背景色は画像に基づき薄いグレーに設定 */
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.top_sec02-inner {
  width: 90%;
  max-width: 1200px; /* PC版のコンテンツ幅のバランスを考慮 */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Header Area */
.top_sec02-title-en {
  font-size: clamp(40px, 5vw, 64px);
  color: #00338d; /* 濃いブルー */
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}

.top_sec02-title-jp {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: bold;
  margin-top: 8px;
  color: #333;
}

.top_sec02-all-link {
  display: inline-block;
  font-size: clamp(18px, 2.5vw, 24px);
  color: #333;
  text-decoration: none;
  padding-bottom: 8px;
  border-bottom: 2px solid #a0d8ef; /* 下線の色 */
  transition: opacity 0.3s;
}

.top_sec02-all-link:hover {
  opacity: 0.7;
}

.sp-only {
    display: none;
}

@media screen and (max-width: 768px) {
    .pc-only {
        display: none;
    }
    .sp-only {
        display: block;
    }
}

/* News List Area */
.top_sec02-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.top_sec02-item-link {
  display: flex;
  align-items: center;
  background-color: #fff;
  padding: clamp(15px, 2vw, 25px) clamp(20px, 3vw, 40px);
  text-decoration: none;
  color: #333;
  transition: background-color 0.3s;
}

.top_sec02-item-link:hover {
  background-color: #eee;
}

.top_sec02-date {
  font-size: clamp(14px, 1.8vw, 18px);
  margin-right: clamp(20px, 4vw, 60px);
  flex-shrink: 0; /* 日付の幅を維持 */
}

.top_sec02-text {
  font-size: clamp(14px, 1.8vw, 18px);
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* 長いテキストの三点リーダー対応 */
}

/* --- Responsive Layout (Break Point: 768px) --- */

@media screen and (min-width: 769px) {
  .top_sec02-inner {
    flex-direction: row; /* PC版は横並び */
    align-items: flex-start;
    justify-content: space-between;
  }

  .top_sec02-header {
    width: 20%; /* 左側のタイトルエリア幅 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch; /* 高さ一杯に広げてAll Newsを下に配置 */
  }

  .top_sec02-content {
    width: 75%; /* 右側のリストエリア幅 */
  }
}

@media screen and (max-width: 768px) {
  .top_sec02-inner {
    width: 85%; /* SP版は少しマージンを広めに */
  }

  .top_sec02-header {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .top_sec02-item-link {
    flex-direction: column; /* SP版は日付とテキストを縦並び */
    align-items: flex-start;
    gap: 10px;
  }

  .top_sec02-text {
    white-space: normal; /* SP版では折り返しを許可 */
  }

  .top_sec02-link-wrapper {
    margin-top: 20px;
  }
}

/* --- top_sec03 Settings --- */

.top_sec03 {
  background-color: #003a8c; /* デザインに合わせた濃いブルー */
  color: #ffffff;
  padding: clamp(60px, 8vw, 100px) 0;
  overflow: hidden;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.top_sec03-inner {
  width: 90%;
  max-width: 1290px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(30px, 5vw, 80px);
}

/* Image Area */
.top_sec03-image-box {
  flex: 3;
  width: 100%;
}
.top_sec03-img {
  width: 100%;
}

/* Content Area */
.top_sec03-content-box {
  flex: 2;
  display: flex;
  flex-direction: column;
}

.top_sec03-title-en {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 10px;
}

.top_sec03-title-jp {
  font-size: clamp(14px, 1.8vw, 18px);
  margin-bottom: clamp(30px, 4vw, 50px);
  font-weight: bold;
}

.top_sec03-text {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 2;
  margin-bottom: clamp(30px, 4vw, 50px);
}

/* Link Area */
.top_sec03-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px;
}

.top_sec03-link-more,
.top_sec03-link-sub {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 5px;
  transition: opacity 0.3s, border-color 0.3s;
  font-size: clamp(16px, 1.8vw, 20px);
}

.top_sec03-link-more {
  font-size: clamp(20px, 2.2vw, 26px);
}

.top_sec03-link-more:hover,
.top_sec03-link-sub:hover {
  opacity: 0.7;
  border-color: #ffffff;
}

/* --- Responsive Layout (Break Point: 768px) --- */

@media screen and (max-width: 768px) {
  .top_sec03 {
    padding: 0; /* SP版は上に画像を配置するため上のpaddingを0に */
  }

  .top_sec03-inner {
    flex-direction: column; /* 縦並び */
    width: 100%; /* 画像を端まで見せるために一旦100% */
    gap: 40px;
  }

  .top_sec03-image-box {
    order: 2; /* SP版デザインに基づき画像を下に配置 */
  }

  .top_sec03-content-box {
    order: 1;
    width: 85%; /* テキストエリアは左右に余白を持たせる */
    margin: 60px auto 0;
  }

  .top_sec03-text br {
    display: none; /* SP版では改行を解除して流動的に */
  }
  
}

/* --- top_sec04 Settings --- */

.top_sec04 {
  position: relative;
  padding: clamp(60px, 8vw, 100px) 0;
  background-color: #f9f9f9; /* 非常に薄いグレーの背景 */
  overflow: hidden;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.top_sec04-inner {
  width: 90%;
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 5vw, 60px);
}

/* Content Area */
.top_sec04-content {
  flex: 0.9;
  position: relative; /* 背景装飾の基準 */
  z-index: 1;
}

/* 背景装飾画像 (img_top_sec04_02) */
.top_sec04-bg-deco {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 133.3%; /* flex: 0.9に対して元のサイズ感を維持するため調整 (1.2 / 0.9 ≒ 1.333) */
  z-index: -1;
  opacity: 0.6; /* 視認性のため調整 */
}

.top_sec04-bg-deco img {
  width: 100%;
  height: auto;
}

.top_sec04-title-en {
  font-size: clamp(40px, 5vw, 64px);
  color: #00338d;
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}

.top_sec04-title-jp {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: bold;
  margin-top: 8px;
  margin-bottom: clamp(30px, 4vw, 50px);
  color: #333;
}

.top_sec04-text {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 2;
  color: #333;
  margin-bottom: clamp(30px, 4vw, 50px);
}

.top_sec04-link-more {
  display: inline-block;
  font-size: clamp(18px, 2.5vw, 24px);
  color: #333;
  text-decoration: none;
  padding-bottom: 8px;
  border-bottom: 2px solid #a0d8ef;
  transition: opacity 0.3s;
}

.top_sec04-link-more:hover {
  opacity: 0.7;
}

/* Image Grid Area */
.top_sec04-image-grid {
  flex: 1.08; /* 1.2 * 0.9 = 1.08 */
}

.top_sec04-main-img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* --- Responsive Layout (Break Point: 768px) --- */

@media screen and (max-width: 768px) {
  .top_sec04-inner {
    flex-direction: column;
    gap: 50px;
  }

  .top_sec04-content {
    width: 100%;
    order: 1;
  }

  .top_sec04-image-grid {
    width: 100%;
    order: 2;
  }

  .top_sec04-bg-deco {
    width: 90%; /* SPではテキストの背面に収まるサイズに */
  }

  .top_sec04-text br {
    display: none; /* SPでは自動改行に任せる */
  }

  /* テキストの配置を微調整 */
  .top_sec04-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- top_sec05 Settings --- */

.top_sec05 {
  padding: clamp(60px, 8vw, 100px) 0;
  background-color: #fff;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.top_sec05-inner {
  position: relative;
  width: 90%;
  max-width: 1280px; /* デザインのバランスに合わせて調整 */
  margin: 0 auto;
  overflow: hidden;
}

/* Background Image Area */
.top_sec05-bg {
  width: 100%;
  line-height: 0;
}

.top_sec05-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  /* PC版で高さが足りない場合の最小高さを確保 */
  min-height: 400px;
}

/* Floating Text Box */
.top_sec05-box {
  position: absolute;
  top: 50%;
  left: 8%; /* PC版：左側に寄せる */
  transform: translateY(-50%);
  background-color: #003a8c; /* 濃いブルー */
  color: #fff;
  padding: clamp(30px, 4vw, 60px);
  width: clamp(280px, 35vw, 400px);
  z-index: 2;
}

.top_sec05-title-en {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}

.top_sec05-title-jp {
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: bold;
  margin-top: 5px;
  margin-bottom: clamp(25px, 3vw, 40px);
}

.top_sec05-text {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 2;
  margin-bottom: clamp(25px, 3vw, 40px);
}

.top_sec05-link-more {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: clamp(18px, 2vw, 24px);
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: opacity 0.3s, border-color 0.3s;
}

.top_sec05-link-more:hover {
  opacity: 0.7;
  border-color: #fff;
}

/* --- Responsive Layout (Break Point: 768px) --- */

@media screen and (max-width: 768px) {
  .top_sec05 {
    padding: 40px 0;
  }

  .top_sec05-inner {
    width: 100%; /* SP版は画像を端まで見せる */
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .top_sec05-bg {
    order: 1;
  }

  .top_sec05-box {
    position: absolute; /* 画像の上に重ねる */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; /* SP版：画面中央に大きく配置 */
    padding: 40px 30px;
    text-align: left;
  }

  .top_sec05-img {
    min-height: 800px; /* SP版でボックスがはみ出さないよう高さを確保 */
  }

  .top_sec05-text br {
    display: block; /* SP版でも改行を維持 */
  }
}