@charset "UTF-8";

body {
  position: relative;
  font-family: "Zen maru gothic";
  margin: 0 auto;
}

img {
  max-width: 100%;
  vertical-align: bottom;
  object-fit: cover;
}

li {
  list-style: none;
}

a {
  color: #333;
  text-decoration: none;
  display: block;
}

/* header */
header {
  margin: 32px 80px 16px;
}

header h1 {
  text-align: left;
}

header img {
  width: 40%;
  max-width: 200px;
}

.toggle-btn {
  position: absolute;
  top: 5px;
  right: 70px;
  cursor: pointer;
  display: inline-block;
  padding: 15px;
  line-height: 0;
  width: 50px;
  height: 50px;
}

.toggle-btn span {
  content: "";
  background-color: #333;
  width: 100%;
  height: 2px;
  position: absolute;
  transition: all 0.5s ease;
}

.toggle-btn span:nth-of-type(1) {
  top: 5px;
}

.toggle-btn span:nth-of-type(2) {
  top: 15px;
}

.toggle-btn span:nth-of-type(3) {
  top: 25px;
}

.open .toggle-btn span:nth-of-type(1) {
  transform: translateY(10px) rotate(-315deg);
}

.open .toggle-btn span:nth-of-type(2) {
  opacity: 0;
}

.open .toggle-btn span:nth-of-type(3) {
  transform: translateY(-10px) rotate(315deg);
}

.header-inner {
  display: block;
  position: fixed;
  top: 0;
  left: -300px;
  bottom: 0;
  width: 300px;
  background-color: #fd9801;
  overflow-x: hidden;
  overflow-y: auto;
  transition: all 0.5s;
  z-index: 50;
  opacity: 1;
}

.open .header-inner {
  left: 0;
}

.header-inner-list {
  padding: 25px;
}

.header-inner-list ul {
  margin: 0;
  padding: 0;
}

.header-inner-list li {
  position: relative;
  margin: 0;
  border-bottom: 3px solid #fff;
}

.header-inner-list a {
  display: block;
  color: #fff;
  padding: 1em;
  transition-duration: 0.2s;
}

.header-inner-list a:hover {
  color: #DEC431;
  background-color: #fff;
}

.mask {
  display: none;
  transition: all 0.5s;
}

.open .mask {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #333;
  opacity: 0.8;
  z-index: 40;
  cursor: pointer;
}




/* main */

.main-wrapper {
  margin: 20px 80px;
}



/* 共通 */
.section-title {
  font-size: 16px;
  width: fit-content;
  color: #fff;
  background-color: #1f7a6b;
  border: 1px solid #1f7a6b;
  border-radius: 5px;
  text-align: center;
  padding: 4px 12px;
  margin: 16px 0;
}


/* fv */
.fv {
  margin-bottom: 40px;
}

.fv-images {
  display: flex;
  justify-content: center;
}

.fv-left,
.fv-right {
  width: 25%;
  max-width: 400px;
  position: relative;
}

.fv-center {
  width: 50%;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  align-items: center;
  position:relative;
}
/* FV：メイン画像 4枚フェード（20秒で順番切替）*/

/* FVの画像エリアの親（必要なら既存のクラスに合わせてOK） */
.fv-center {
  position: relative;
}

/* 親に高さ（表示領域）を持たせて次セクションと被らんように */
.fv-center .fade {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  aspect-ratio: 1 / 1;  /* 正方形の表示枠*/
  overflow: hidden;     /* はみ出し防止 */
}

/* 4枚を同じ位置に重ねる */
.fv-center .fade li {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: fvfade 20s infinite;
}

/* 15秒を4分割（3.75秒ごと） */
.fv-center .fade li:nth-child(1) { animation-delay: 0s; }
.fv-center .fade li:nth-child(2) { animation-delay: 5s; }
.fv-center .fade li:nth-child(3) { animation-delay: 10s; }
.fv-center .fade li:nth-child(4) { animation-delay: 15s; }

/* 画像を枠にフィット（元が丸画像なのでそのままでOK） */
.fv-center .fade li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* “うっとおしくない”＝比較的パッと切り替わるフェード */
@keyframes fvfade {
  0%   { opacity: 0; }
  6%   { opacity: 1; }   /* 出るのを速める */
  25%  { opacity: 1; }
  31%  { opacity: 0; }   /* 消えるのを速める */
  100% { opacity: 0; }
}

.center-image {
  width: 90%;
}

.line-image {
  position: absolute;
  width: 50%;
  animation: image-floating 2s ease-in-out infinite alternate-reverse;
}

@keyframes image-floating {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(12px);
  }
}

.line-image:hover {
  animation-play-state: paused;
}


/* 
.line-1 {
  top: 10%;
  left: 40%;
}
.line-2 {
  top: 60%;
  left: 20%;
  animation: image-floating-second 2.5s ease-in-out infinite alternate-reverse;
}
.line-3 {
  top: 5%;
  left: 10%;
  animation: image-floating-second 2.5s ease-in-out infinite alternate-reverse;
}
.line-4 {
  top: 45%;
  left: 60%;
}
.line-5 {
  top: 80%;
  left: 8%;
  animation: image-floating-third 2.5s ease-in-out infinite alternate-reverse;
} */

@keyframes image-floating-second {
  0% {
    transform: translateX(0px);
  }

  100% {
    transform: translateX(12px);
  }
}

@keyframes image-floating-third {
  0% {
    transform: translateX(0px);
  }

  100% {
    transform: translateX(-12px);
  }
}

/* fv変更箇所 */
.fv-section {
  display: flex;
  justify-content: center;
  margin: 20px 80px;
}

.fv-l-side {
  width: 40%;
  position: relative;
}

.fv-l-text {
  margin: 100px 0 100px 20px;
}

.fv-copy {
  font-size: 36px;
  padding-bottom: 36px;
  letter-spacing: 0.05em;
}

.fv-p {
  width: fit-content;
  border-top: 1px solid #fd9801;
  padding-top: 24px;
}

.line-image {
  position: absolute;
  width: 20%;
  animation: image-floating 2s ease-in-out infinite alternate-reverse;
}

@keyframes image-floating {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(12px);
  }
}

.line-image:hover {
  animation-play-state: paused;
}


.line-3 {
  bottom: 5%;
  left: 10%;
  animation: image-floating-second 2.5s ease-in-out infinite alternate-reverse;
}
.line-4 {
  bottom: 5%;
  left: 70%;
}
.line-5 {
  bottom: 10%;
  left: 40%;
  animation: image-floating-third 2.5s ease-in-out infinite alternate-reverse;
}

.fv-r-side {
  width: 50%;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  align-items: center;
  position:relative;
}
/* FV：メイン画像 4枚フェード（20秒で順番切替）*/

/* 親に高さ（表示領域）を持たせて次セクションと被らんように */
.fv-r-side .fade {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  aspect-ratio: 1 / 1;  /* 正方形の表示枠*/
  overflow: hidden;     /* はみ出し防止 */
}

/* 4枚を同じ位置に重ねる */
.fv-r-side .fade li {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: fvfade 20s infinite;
}

/* 15秒を4分割（3.75秒ごと） */
.fv-r-side .fade li:nth-child(1) { animation-delay: 0s; }
.fv-r-side .fade li:nth-child(2) { animation-delay: 5s; }
.fv-r-side .fade li:nth-child(3) { animation-delay: 10s; }
.fv-r-side .fade li:nth-child(4) { animation-delay: 15s; }

/* 画像を枠にフィット（元が丸画像なのでそのままでOK） */
.fv-r-side .fade li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* “うっとおしくない”＝比較的パッと切り替わるフェード */
@keyframes fvfade {
  0%   { opacity: 0; }
  6%   { opacity: 1; }   /* 出るのを速める */
  25%  { opacity: 1; }
  31%  { opacity: 0; }   /* 消えるのを速める */
  100% { opacity: 0; }
}

.center-image {
  width: 90%;
}




/* channel */
.movie-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.movie-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.movie-thumbnail {
  width: 100%;
  height: 300px;
  transition: transform 0.3s ease;
}

.movie-thumbnail:hover {
  transform: scale(1.05);
}

.movie-title {
  margin-top: 8px;
  text-align: left;
  font-size: 14px;
}


/* footer */
.footer-logo {
  width: 22%;
  display: block;
  margin: 0 auto;  
}
.img_mouseover {
overflow: visible;
width: 100%;
height: 100%;
}
.img_mouseover img {
display: block;
transition-duration: 0.5s;
}
.img_mouseover img:hover {
transform: scale(1.07,1.07);
transition-duration: 0.5s;
}

.footer-text {
  text-align: center;
}

.copy-right {
  text-align: center;
  font-size: 10px;
  margin: 16px 0;
}



/*-------------------------------------------
MB
-------------------------------------------*/

@media (max-width: 834px) {
    /* fv変更箇所 */
.fv-section {
  flex-direction: column-reverse;
  margin: 20px 80px;
}

.fv-r-side {
  width: 50%;
  text-align: right;
}

.fv-l-side {
  width: 100%;
}

.fv-l-text {
  margin: 30px 0 30px 10px;
}

.fv-copy {
  font-size: 24px;
  padding-bottom: 24px;
  letter-spacing: 0.02em;
}

.fv-p {
  font-size: 12px;
}

/* .line-image {
  width: 10%;
} */
.fv-line-image{
  display:none;
}

}

/*-------------------------------------------
SP
-------------------------------------------*/

@media (max-width: 600px) {
  header {
    margin: 24px 40px 16px;
  }

  .main-wrapper {
    margin: 20px 40px;
  }

  .section-title {
    font-size: 12px;
  }

  .movie-title,
  .footer-text {
    font-size: 12px;
  }

  .fv-line-image{
    display:none;
  }

   /* fv変更箇所 */
  .fv-section {
    flex-direction: column-reverse;
    margin: 20px 30px;
  }


  /* channel */
.movie-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.movie-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.movie-thumbnail {
  width: 100%;
  height: 250px;
  transition: transform 0.3s ease;
}

.movie-thumbnail:hover {
  transform: scale(1.05);
}

.movie-title {
  margin-top: 8px;
  text-align: left;
  font-size: 14px;
}


/* footer */
.footer-logo {
  width: 35%;
  display: block;
  margin: 16px auto;
}

.footer-text {
  text-align: center;
}

.copy-right {
  text-align: center;
  font-size: 10px;
  margin: 16px 0;
}


}