/* ==========================================================
   ファーストビュー（FV）
   動画背景、メインコンテンツ、ニュース、コントロール
========================================================== */

.fv-section {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

/* ==========================================================
   背景動画
========================================================== */

.fv-video {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.fv-video video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* ==========================================================
   オーバーレイ
========================================================== */

.fv-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 2;
}

/* ==========================================================
   メインコンテンツ
========================================================== */

.fv-content-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--fv-max);
  padding: 0 18px;
  display: flex;
  justify-content: center;
}

.fv-content {
  width: 100%;
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 22px 18px;
}

.fv-content h1 {
  font-family: 'Zen Old Mincho', serif;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin: 0;
  color: #f2f2f2;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.fv-en-caption {
  margin: 10px 0 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

/* ==========================================================
   ニュース表示
========================================================== */

.fv-news {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: min(520px, calc(100% - 36px));
  max-width: 520px;
  background: rgba(255, 255, 255, 0.96);
  color: #222;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.fv-news h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  text-align: center;
  color: #222;
}

.fv-news .news-item {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.fv-news .news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.fv-news .news-date {
  font-size: 0.85rem;
  white-space: nowrap;
  color: #666;
}

.fv-news .news-title {
  color: var(--link);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.35;
}

.fv-news .news-title:hover {
  text-decoration: underline;
}

/* ==========================================================
   ビデオコントロール
========================================================== */

.fv-video-controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.video-control-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.video-control-btn:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-1px);
}

.video-control-btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* ==========================================================
   SP：FVを3段レイアウトにして端末差でも安定させる（おすすめ）
   - 上：メッセージ
   - 中：余白（背景見せる）
   - 下：News + コントロールの固定席（絶対重ならない）
========================================================== */
@media (max-width: 768px){

  .fv-section{
    /* 背景は伸ばしてOK（端末に追従） */
    height: 78svh;
    height: 78dvh;
    height: 78vh;

    min-height: 0 !important;   /* ★520pxは消す */
    display: grid !important;
    grid-template-rows: 1fr auto auto; /* 上=可変 / 下=固定 */
    align-items: stretch !important;
    padding: 0 !important;
  }

  /* メッセージは上段に置く（中央ズレ問題を根本解決） */
  .fv-content-wrapper{
    position: relative !important;
    inset: auto !important;
    z-index: 3;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    /* ★ここで“見た目の位置”を端末に合わせて可変 */
    padding: clamp(56px, 10svh, 96px) 16px 18px !important;
    max-width: 100% !important;
  }

  /* Newsは「下段」にする（absoluteをやめる） */
  .fv-news{
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;

    z-index: 4;
    width: calc(100% - 28px) !important;
    margin: 0 auto 10px !important;
  }

  /* コントロールは最下段（中央） */
  .fv-video-controls{
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;

    z-index: 5;
    justify-content: center !important;
    margin: 0 auto 14px !important;
  }

  /* タイトル微調整 */
  .fv-content h1{
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    line-height: 1.45;
  }
}

@media (max-width: 480px){

  .fv-section{
    height: 82svh;
    height: 82dvh;
    height: 82vh;
    min-height: 0 !important;
  }

  .fv-content-wrapper{
    padding: clamp(48px, 9svh, 84px) 14px 16px !important;
  }

  .fv-content h1{
    font-size: 1.42rem;
    letter-spacing: 0.03em;
    line-height: 1.5;
  }

  .fv-en-caption{
    font-size: 0.82rem;
  }
}

