/* ========================================================================================== */
/* mv */
/* ========================================================================================== */
section.mv {
  width: 100%;
  height: 52vw;
  max-height: 670px;
  min-height: 350px;
  position: relative;
}

section.mv video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

section.mv .main_ttl {
  position: absolute;
  width: 36.71875vw;
  max-width: 470px;
  min-width: 150px;
  top: 3.515625vw;
  left: 6.640625vw;
}

section.mv .txt_box {
  left: 11.71875vw;
  top: 18.515625vw;
  position: absolute;
}

section.mv .txt_box .middle_ttl {
  margin-top: 15px;
}

@media screen and (min-width: 1280px) {
  section.mv .main_ttl {
    top: 45px;
    left: 85px;
  }

  section.mv .txt_box {
    left: 150px;
    top: 237px;
  }
}

/* responsive */
@media screen and (max-width: 1024px) {
  section.mv {
    min-height: unset;
    height: 65vw;
  }
}

@media screen and (max-width: 768px) {
  section.mv {
    height: 75vw;
    min-height: 550px;
  }

  section.mv .txt_box {
    top: 25%;
  }
}

@media screen and (max-width: 480px) {
  section.mv {
    min-height: unset;
    height: 100vh;
    max-height: unset;
  }

  section.mv .main_ttl {
    top: 20%;
    left: 20px;
    width: 60%;
  }

  section.mv .txt_box {
    top: 30%;
    left: 3.5vw;
  }

  section.mv .txt_box .top_ttl {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
  }

  section.mv .txt_box .middle_ttl {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
  }

  section.mv .txt_box .txt {
    margin-top: 30px;
    text-align: left;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
  }
}

/* =========================================================================== */
/* sec2 */
/* =========================================================================== */

.rotating-bg-wrap {
  position: relative;
  overflow: hidden; /* 回転時のはみ出し防止 */
}

/* 回転する背景レイヤー */
.rotating-background {
  position: absolute;
  inset: 0;
  background-image: url("../../img/top/top_bg_bis.png");
  background-size: 50%;
  background-position: center;
  background-repeat: no-repeat;

  /* 少し大きめに（回転時の欠け防止） */
  width: 80vw;
  height: 80vw;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: center;

  animation: rotateBackground 50s linear infinite;
  z-index: 0;
}

/* 中身 */
.content-layer {
  position: relative;
  z-index: 1; /* 背景より前 */
}

/* 回転アニメーション */
@keyframes rotateBackground {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}



/* =========================================================================== */
/* sec3 */
/* =========================================================================== */

section .box {
    margin-top: 50px;
}

section .box .item {
    padding: 30px 0;
    border-bottom: 1px solid #004EA2;
}

section .box .item:first-of-type {
    border-top: 1px solid #004EA2;
}

section .box .item p.date_txt {
    color: #716B6B;
    margin-right: 20px;
}

section .box .item a.cat {
    pointer-events: none;
    background: var(--blue);
    padding: 4px;
    margin-right: 20px;
    width: 100px;
    display: block;
}

section .box .item .post_ttl {
    transition: all 0.2s;
}

section .box .item a:hover .post_ttl {
    color: var(--blue);
}

/* responsive */
@media screen and (max-width: 768px) {
.rotating-background {
  background-size: 100%;
  width: 80vw;
  height: 80vw;
}

    
    section .box {
        margin-top: 30px;
    }

    section .box .item {
        padding: 15px 0;
    }
  .info_box{
    flex-wrap: wrap;
    gap: 8px 12px; /* 任意 */
  }
  .info_box .date_txt,
  .info_box .cat{
    flex: 0 0 auto;
  }
  .info_box .post_ttl{
    flex: 0 0 100%;
  }
}

.pnavi {
    font-family: 'Noto Sans JP', sans-serif;
}