@charset "utf-8";

html,body{
  margin: 0;
  padding: 0;
  background: #BBDC6C;
}

.fade-up {
  transition: all 1s ease;
}

/* プリローダー */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #BBDC6C;
  background: linear-gradient(135deg, #BBDC6C 0%, #87CEEB 50%, #F7B151 100%);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 2s ease-out, visibility 2s ease-out;
  opacity: 1;
  visibility: visible;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

#preloader.fade-out #preloader-inner {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

#preloader-inner {
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  top: auto;
  left: auto;
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

#preloader-gallery {
  position: relative;
  width: 350px;
  height: 350px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: rgba(255,255,255,0.1); */
  top: auto;
  left: auto;
}

.preloader-photo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0;
  transition: all 0.6s ease;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  border: 4px solid white;
  background: white;
}

.preloader-photo.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.preloader-photo.hide {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

#preloader-progress {
  margin-top: 10px;
  order: 2;
}

#progress-bar {
  width: 200px;
  height: 6px;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
  margin: 0 auto 10px;
  overflow: hidden;
  position: relative;
  --progress: 0%;
  display: none;
}

#progress-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #FF69B4, #FFD700, #87CEEB);
  border-radius: 3px;
  width: var(--progress, 0%);
  transition: width 0.3s ease;
  animation: progressShine 2s infinite;
}

@keyframes progressShine {
  0% { box-shadow: 0 0 5px rgba(255,255,255,0.5); }
  50% { box-shadow: 0 0 20px rgba(255,255,255,0.8); }
  100% { box-shadow: 0 0 5px rgba(255,255,255,0.5); }
}

#progress-txt {
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  margin: 10px 0 0 0;
  display: none;
}

/* レスポンシブ対応 */
@media screen and (max-width: 960px) {
  #preloader-gallery {
    width: 280px;
    height: 280px;
  }
  
  .preloader-photo {
    width: 260px;
    height: 260px;
  }
  
  #progress-bar {
    width: 180px;
  }
}

@media screen and (max-width: 480px) {
  #preloader-gallery {
    width: 240px;
    height: 240px;
  }
  
  .preloader-photo {
    /* width: 220px;
    height: 220px; */
  }
  
  #progress-bar {
    width: 150px;
  }
  
  #progress-txt {
    font-size: 1rem;
  }
}

main {
}

@keyframes bg-loop {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -1980px 0; /* 画像のマイナス幅 */
  }
}

#wrapper{
	position: relative;
	z-index: 1;
}

.contents {
  position: relative;
  /* padding: 20px 0; */
}

.pc {
	display: block;
}

.sp {
	display: none;
}

.txt {
  font-size: 1.5rem;
  line-height: 1.8;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  text-shadow:1px 1px 0 #FFF, -1px -1px 0 #FFF,
  -1px 1px 0 #FFF, 1px -1px 0 #FFF,
  0px 1px 0 #FFF,  0-1px 0 #FFF,
  -1px 0 0 #FFF, 1px 0 0 #FFF;
  /* letter-spacing: 0; */
}

@media screen and (max-width: 960px) {

  .pc {
    display: none;
  }
    
  .sp {
    display: block!important;
  }
}

.ttl-anime {-webkit-animation:rotate-in-ver .5s cubic-bezier(.25,.46,.45,.94) .5s both;animation:rotate-in-ver .5s cubic-bezier(.25,.46,.45,.94) .5s both}

 @-webkit-keyframes rotate-in-ver{0%{-webkit-transform:rotateY(-360deg);transform:rotateY(-360deg);opacity:0}100%{-webkit-transform:rotateY(0deg);transform:rotateY(0deg);opacity:1}}@keyframes rotate-in-ver{0%{-webkit-transform:rotateY(-360deg);transform:rotateY(-360deg);opacity:0}100%{-webkit-transform:rotateY(0deg);transform:rotateY(0deg);opacity:1}}


/* --------------------
- top
-------------------- */

#top {
  position: relative;
  background: #fff;
  background-image: none;
  min-height: auto;
  border-radius: 0;
  padding: 0;
}

.ttl {
  background: #c8ebfa url(../img/top/bg_pc.png) no-repeat bottom center;
  /* background: #ffa9cc url(../img/top/st.jpg) no-repeat bottom center;
  background: url(../img/top/st.jpg) #fef2f7 repeat; */
  /* background-size: 60px; */
  background-size: cover;
  padding: 30px 0;
}

.ttl h1 {
  width: 90%;
  max-width: 580px;
  margin: 0 auto;
  /* padding: 30px 0; */
  opacity: 0;
  transform: rotateY(0deg);
  animation: titleSpinIn 1.5s ease-out 0.5s forwards;
}

@keyframes titleSpinIn {
  0% {
    opacity: 0;
    transform: rotateY(-360deg) scale(0.9);
  }
  70% {
    opacity: 1;
    transform: rotateY(10deg) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
  }
}

.loop {
  height: 150px;
  overflow: hidden;
  width: 100%;
}

.loop-a {
  background: #fff url('../img/top/slide_a.png') repeat-x;
  background-position: 0 0;
  background-size: auto 100%;
  animation: loop-a 100s linear infinite;
  margin: 5px auto;
}

.loop-b {
  background: #fff url('../img/top/slide_b.png') repeat-x;
  background-position: 0 0;
  background-size: auto 100%;
  animation: loop-b 100s linear infinite;
  margin: 5px auto;
}

.overview {
  background: url('../img/line.jpg') no-repeat center center;
  background-size: cover;
  padding: 40px 0;
}

.overview h2 {
  margin: 0 auto;
  max-width: 998px;
  width: 90%;
}

@media screen and (max-width: 960px) {

#top {
  /* background: #eaf2db url(../img/top/ttl_bg_sp.jpg) no-repeat center center;
  background-size: cover; */
  background: #fff;
  padding: 1px;
}

.ttl {
  padding: 10px 0;
  background: #fff url(../img/top/bg_pc.png) no-repeat bottom center;
  background-size: cover;
}

.ttl h1 {
    width: 100%;
    padding: 10px;
    max-width: 300px;
    opacity: 0;
    transform: rotateY(0deg);
    animation: titleSpinIn 1.5s ease-out 0.5s forwards;
}

.loop {
    height: 90px;
    overflow: hidden;
    width: 100%;
}

/* .loop-a {
  background: #fff url('../img/top/slide_a.png') repeat-x;
}

.loop-b {
  background: #fff url('../img/top/slide_b.png') repeat-x;
} */

}

@keyframes loop-a {
  from {
      background-position: 0 0;
  }
  to {
      background-position: 3177px 0; /* 画像のマイナス幅 */
  }
}

@keyframes loop-b {
  from {
      background-position: 0 0;
  }
  to {
      background-position: -3384px 0; /* 画像のマイナス幅 */
  }
}

/* --------------------
- menu
-------------------- */

.special-menu {
  padding: 50px 0;
  position: relative;
}

.special-menu-list {
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.special-menu-list li {
  
  padding: 12px 10px;
  text-align: center;
  border-radius: 50px;
  margin: 10px;
  border: 1px solid #fff;
}

.special-menu-list li a {
  color: #fff;
  display: block;
}

.special-menu-list li:hover {
  opacity: .8;
}

.fa-w-16 {
  font-size: small;
}

/* .l1 {
  width: 20%;
  background: #a980e6;
}

.l2 {
  width: 20%;
  background: #f78233;
}

.l3 {
  width: 20%;
  background: #219dd3;
}

.l4 {
  width: 20%;
  background: #eb86bc;
}

.l5 {
  width: 25%;
  background: #42c5d3;
}

.l6 {
  width: 25%;
  background: #e96b66;
}

.l7 {
  width: 25%;
  background: #39b58b;
} */

.lead {
  position: relative;
  width: 95%;
  margin: 50px auto ;
  max-width: 650px;
  display: none;
}

@media screen and (max-width: 960px) {

  .special-menu {
    padding: 20px 0 60px;
}

  .special-menu-list {
    width: 95%;
  }

  .l1 {
    width: 44%;
    background: #a980e6;
  }
  
  .l2 {
    width: 44%;
    background: #f78233;
  }
  
  .l3 {
    width: 44%;
    background: #219dd3;
  }
  
  .l4 {
    width: 44%;
    background: #eb86bc;
  }
  
  .l5 {
    width: 90%;
    background: #42c5d3;
  }
  
  .l6 {
    width: 90%;
    background: #e96b66;
  }
  
  .l7 {
    width: 90%;
    background: #39b58b;
  }

}

/* --------------------
- contents
-------------------- */
.topic {
  padding: 20px 0;
  border-bottom: 1px dashed #fff;
}

.topic:last-child {
  border-bottom: none;
}

.main-topic-ttl {
  position: relative;
  padding: 1rem;
  border-radius: 5px;
  border: 10px solid #E96B66;
  background-color: #E96B66;
  background-image:
      linear-gradient(#E96B66 0 100%),
      repeating-linear-gradient(135deg, #fff 0 5px, transparent 5px 10px);
  background-repeat: no-repeat;
  background-position: center;
  background-size: calc(100% - 10px) calc(100% - 10px), 100%;
  color: #fff;
  font-size: 26px;
  font-weight: bold;
  text-align: center;
  margin: 0 auto 20px;
}

.topic-ttl {
  position: relative;
  padding: 15px;
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  max-width: 480px;
  margin: 0 auto 25px;
  z-index: 1;
}

.topic-ttl::before,
.topic-ttl::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-bottom: 5px solid #f3cff1;
  background: #f78234;
  content: '';
  z-index: -1;
}

.topic-ttl::before {
  transform: skew(25deg);
}


.topic-ttl::after {
  transform: skew(-25deg);
}

.photo-inner {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px auto;
}

.c-ttl {
  width: 450px;
  margin: 0 auto;
  position: relative;
  bottom: -30px;
  z-index: 2;
}

.s-ttl {
  width: 80%;
  max-width: 430px;
  margin: 0 auto;
}

.c-txt1 {
  font-size: 1.7rem;
  line-height: 1.8;
  width: 80%;
  margin: 0 auto 20px;
  padding: 30px 0;
  text-align: center;
}

.c-txt2 {
  font-size: 1.5rem;
  line-height: 1.8;
  width: 80%;
  margin: 40px auto 0;
  text-align: center;
}

.contents-inner {
  position: relative;
  border-radius: 10px;
  padding: 60px;
  width: 90%;
  max-width: 980px;
  margin: 0 auto 40px;
  /* border: 4px solid #f3cff1; */
}

#c1 {
  background: #f6f18b;
  position: relative;
  z-index: 3;
}

#c2 {
  background: #55C5F0;
  padding: 150px 0 0 0;
  margin: -180px 0 0 0;
  position: relative;
  z-index: 2;
}

#c3 {
  background: #EB9DB3;
  padding: 80px 0 80px 0; /* 下部パディングも追加 */
  margin: -80px 0 0 0;
}

.c1 {
    /* background: #f3ecfd; */
}

.c2 {
  /* background: #f9fad7; */
}



.c-photo {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  border-radius: 10px;
}

.c-photo.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.c-photo img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.lines-photo img {
  border-radius: 10px 10px 0 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.lines {
  background: #fff;
  text-align: center;
  border-radius: 10px;
}

.lines-txt {
  font-size: 2.3rem;
  line-height: 1.8;
  padding: 20px 0;
}

.lines-list {
  padding: 50px 0;
  border-bottom: 2px dotted #39b58b;
  border-bottom-width: 4px;
}

.lines-list:first-child {
  padding: 10px 0 50px;
}

.lines-list:last-child {
  border-bottom: none;
  padding: 50px 0 0;
}

@media screen and (max-width: 960px) {

  .c-ttl {
    width: 80%;
    bottom: -20px;
  }

  .contents-inner {
    width: 97%;
    padding: 50px 12px;
  }

  .c-txt1 {
    padding: 0;
  }

  .c-txt1,
  .c-txt2 {
    width: 100%;
    text-align: justify;
    font-size: 1.5rem;
  }

  .info-txt {
    font-size: 1.5rem;
    margin: 40px auto!important;
  }

  .c-txt2 {
    margin: 20px auto 0;
  }

  .topic-ttl {
    font-size: 18px;
  }

  .lines-txt{
    font-size: 1.8rem;
  }

  .s-ttl {
    width: 100%;
  }

  .lines-list:first-child {
    padding: 0 0 30px 0;
  }

  .c-photo img {
    border-radius: 10px;
  }

}



.cc {
  font-size: 1rem;
  line-height: 1.63636;
  text-align: center;
  padding: 0 0 30px;
  position: relative;
}

.cp-banner {
  margin: 30px auto 50px;
}



.info-container {
  padding: 30px 0;
}

.info-txt {
  font-weight: bold;
  color: #4CAF50;
  font-size: 1.3em;
  line-height: 1.8;
  margin: 50px auto;
  /* display: inline; */
  padding: 0 10px;
  background: #fff;
  border-radius: 0;
  text-shadow: none;

  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.info-inner {
  text-align: center;
}

.info-photo {
  width: 90%;
  margin: 30px auto;
  max-width: 750px;
}

.info-photo img {
  border-radius: 10px;
}

.info-logo {
  width: 60%;
  margin: 30px auto 10px;
  max-width: 370px;
}

.info-rs {
  width: 60%;
  margin: 30px auto;
  max-width: 200px;
}



@media screen and (max-width: 960px) {
  .info-txt {
    font-size: 1.4rem;
  }

  .info-rs {
    width: 35%;
    margin: 0 auto;
    max-width: 180px;
  }
}

.container {
  position: relative;
  /* background: #f6f18b; */
  /* height: 50vh; */
  /* z-index: 10;*/
} 



.wave1 {
  position: absolute;
  height: 70px;
  width: 100%;
  background: #f6f18b;
  bottom: 0;
}

.wave1::before, .wave1::after {
  content: "";
  display: block;
  position: absolute;
  border-radius: 100% 50%;
}

.wave1::before {
  width: 55%;
  height: 109%;
  background-color: #55C5F0;
  right: -1.5%;
  top: 60%;
}
.wave1::after {
  width: 55%;
  height: 100%;
  background-color: #f6f18b;
  left: -1.5%;
  top: 40%;
}

.wave2 {
  position: absolute;
  height: 70px;
  width: 100%;
  background: #55C5F0;
  bottom: 0;
}

.wave2::before, .wave2::after {
  content: "";
  display: block;
  position: absolute;
  border-radius: 100% 50%;
}

.wave2::before {
  width: 55%;
  height: 109%;
  background-color: #EB9DB3;
  right: -1.5%;
  top: 60%;
}
.wave2::after {
  width: 55%;
  height: 100%;
  background-color: #55C5F0;
  left: -1.5%;
  top: 40%;
}

.wave3 {
  position: absolute;
  height: 70px;
  width: 100%;
  background: #EB9DB3;
  bottom: 0;
}

.wave3::before, .wave3::after {
  content: "";
  display: block;
  position: absolute;
  border-radius: 100% 50%;
}

.wave3::before {
  width: 55%;
  height: 109%;
  background-color: #F7B151;
  right: -1.5%;
  top: 60%;
}
.wave3::after {
  width: 55%;
  height: 100%;
  background-color: #EB9DB3;
  left: -1.5%;
  top: 40%;
}

.wave4 {
  position: absolute;
  height: 70px;
  width: 100%;
  background: #F07C63;
  bottom: 0;
}

.wave4::before, .wave4::after {
  content: "";
  display: block;
  position: absolute;
  border-radius: 100% 50%;
}

.wave4::before {
  width: 55%;
  height: 109%;
  background-color: #BBDC6C;
  right: -1.5%;
  top: 60%;
}
.wave4::after {
  width: 55%;
  height: 100%;
  background-color: #F07C63;
  left: -1.5%;
  top: 40%;
}





.random-anime-gallery-container {
  width: 100vw; /* デフォルトも画面幅いっぱい */
  height: 35vh; /* ギャラリーの高さを調整 */
  margin: 20px 0; /* 上下にマージンを追加 */
  position: relative;
  left: 50%;
  transform: translateX(-50%); /* 中央揃え */
  box-sizing: border-box;
  overflow: hidden;
}

.random-anime-gallery-track {
  display: flex;
  animation: scrollAnimeGallery 300s linear infinite;
  will-change: transform;
  position: relative;
  left: 0;
  top: 0;
  gap: 0;
  align-items: flex-start; /* ランダム配置のため */
  min-width: fit-content;
}

.random-anime-gallery-track img {
  flex-shrink: 0; /* 画像が縮小しないように */
  display: block;
  object-fit: cover; /* 画像の比率を保ちつつトリミング */
  box-shadow: 3px 3px 8px rgba(0,0,0,0.1);
  filter: saturate(1.1) brightness(1.05);
  
  /* ランダムサイズ機能を復活 */
  width: var(--img-width, 300px);
  height: var(--img-height, 169px);
  aspect-ratio: 16 / 9; /* 16:9の比率を維持 */

  position: relative;
  /* ランダム配置機能を復活 */
  transform: translateY(var(--random-y, 0px));
  
  margin: 0 10px; /* 左右10pxのマージン */
  padding: 0;
  box-sizing: border-box;

  opacity: 0.7;
  transition: opacity 0.5s;
  border-radius:10px;
}

.random-anime-gallery-track img.fade-in {
  opacity: 1;
}

/* ランダム配置機能を使用するため、固定パターンを削除 */

.random-anime-gallery-track img {
  opacity: 1;
}

@keyframes scrollAnimeGallery {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .random-anime-gallery-container {
    width: 100vw; /* デフォルトも画面幅いっぱい */
    height: 30vh; /* タブレットの高さ */
    margin: 15px 0; /* 上下にマージン */
    left: 50%;
    transform: translateX(-50%);
  }

  .random-anime-gallery-track img {
    box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    margin: 0 8px;
    /* タブレット用ランダムサイズ機能を使用 */
    width: var(--img-width, 255px);
    height: var(--img-height, 143px);
    /* ランダム配置機能を使用 */
    transform: translateY(var(--random-y, 0px));
  }
  
  #c3 .contents-inner {
    margin-top: 40px; /* タブレット用上部マージン調整 */
    margin-bottom: 0; /* 連結を保つ */
    border-radius: 50px / 40px; /* タブレット用丸に近い楕円形 */
  }
  
  #c3 .random-anime-gallery-container {
    width: 100%; /* contents-inner内の幅いっぱい */
    margin: 15px 0;
    height: 30vh;
  }
  
  /* タブレット用上下ギャラリーのマージン調整 */
  #c3 .gallery-top {
    width: 100vw; /* 画面幅いっぱい */
    margin: 0 0 20px 0;
    left: 50%;
    transform: translateX(-50%);
  }
  
  #c3 .gallery-bottom {
    width: 100vw; /* 画面幅いっぱい */
    margin: 20px 0 0 0;
    left: 50%;
    transform: translateX(-50%);
  }
  
  /* info-content-wrapper のレスポンシブ対応（タブレット） */
  .info-content-wrapper {
    /* flex-direction: column;
    gap: 25px; */
    /* padding: 25px; */
  }
  
  .info-content-wrapper .info-txt {
    font-size: 1.7rem!important;
  }
  
  .info-content-wrapper .info-photo {
    flex: none;
    max-width: 300px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .random-anime-gallery-container {
    width: 100vw; /* デフォルトも画面幅いっぱい */
    height: 25vh; /* SPの高さ */
    margin: 10px 0; /* 上下にマージン */
    left: 50%;
    transform: translateX(-50%);
  }

  .random-anime-gallery-track img {
    box-shadow: 1px 1px 4px rgba(0,0,0,0.2);
    margin: 0 5px; /* マージンを元に戻す */
    /* スマホ用ランダムサイズ機能を使用 */
    width: var(--img-width, 225px);
    height: var(--img-height, 127px);
    /* ランダム配置機能を使用 */
    transform: translateY(var(--random-y, 0px));
  }
  
  /* SPでのギャラリーの高さを画像サイズに合わせて調整 */
  #c3 .random-anime-gallery-container {
    height: 30vh; /* SPでの高さを通常サイズに戻す */
  }
  
  #c3 .contents-inner {
    margin-top: 30px; /* スマホ用上部マージン調整 */
    margin-bottom: 0; /* 連結を保つ */
    padding: 40px 20px 30px;
    border-radius: 40px / 35px; /* スマホ用丸に近い楕円形 */
  }
  
  /* スマホでの引用出典部分の調整 */
  .quote-attribution {
    /* margin-top: 15px;
    padding-top: 8px; */
  }
  
  .quote-attribution .author-name {
    text-align: center;
    font-size: 1.3em!important;
    margin-bottom: 8px;
  }
  
  .quote-attribution .source-info {
    font-size: 0.7em;
    line-height: 1.3;
  }
  
  /* スマホでのキャラクター画像調整 */
  .character-img {
    width: 100px;
    padding: 8px;
    border: 3px solid #0ba95f;
  }
  
  .character-image {
    margin-bottom: 10px;
  }
  
  #c3 .random-anime-gallery-container {
    width: 100%; /* contents-inner内の幅いっぱい */
    margin: 10px 0;
    height: 25vh;
  }
  
  /* スマホ用上下ギャラリーのマージン調整 */
  #c3 .gallery-top {
    width: 100vw; /* 画面幅いっぱい */
    margin: 0 0 15px 0;
    left: 50%;
    transform: translateX(-50%);
  }
  
  #c3 .gallery-bottom {
    width: 100vw; /* 画面幅いっぱい */
    margin: 15px 0 0 0;
    left: 50%;
    transform: translateX(-50%);
  }
  
  /* info-content-wrapper のレスポンシブ対応（スマホ） */
  .info-content-wrapper {
    /* flex-direction: column;
    gap: 20px; */
    /* padding: 0 20px; */
    /* margin: 30px 0; */
  }
  
  .info-content-wrapper .info-txt {
    font-size: 1.3rem;
    line-height: 1.5;
  }
  
  .info-content-wrapper .info-photo {
    flex: none;
    /* max-width: 220px; */
    margin: 0 auto;
  }
}

.contents-ttl {
  display: block;
  position: relative;
  width: 50%;
  height: 56px;
  text-align: center;
  box-sizing: border-box;
  margin: 0 auto 30px;
}

@media screen and (max-width: 960px) {

  .contents-ttl {
  width: 90%;
  }
}

.contents-ttl:before {
  content: '';
  position: absolute;
  width: 10px;
  bottom: -10px;
  left: -25px;
  z-index: 1;
  border: 20px solid #F07C63;
  border-left-color: transparent;
}

.contents-ttl:after {
  content: '';
  position: absolute;
  width: 10px;
  bottom: -10px;
  right: -25px;
  z-index: 1;
  border: 20px solid #F07C63;
  border-right-color: transparent;
}

.contents-ttl h2 {
  width: 100%;
  
  display: inline-block;
  position: relative;
  margin: 0 auto;
  padding: 0 20px;
  line-height: 56px;
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  /* text-shadow: 0 0 2px rgba(0,0,0,0.3); */
  background: #ea5433;
  z-index: 2;
}

.contents-ttl h2:before {
  position: absolute;
  content: '';
  top: 100%;
  left: 0;
  border: none;
  border-bottom: solid 10px transparent;
  border-right: solid 15px #D84545;
}

.contents-ttl h2:after {
  position: absolute;
  content: '';
  top: 100%;
  right: 0;
  border: none;
  border-bottom: solid 10px transparent;
  border-left: solid 15px #D84545;
}

@media (max-width: 768px) {
  .contents-ttl h2 {
    font-size: 18px;
  }
}

/* c3セクション内のcontents-ttlを緑系にする */
#c3 .contents-ttl:before {
  border: 20px solid #6BC5A3;
  border-left-color: transparent;
  bottom: -10px;
}

#c3 .contents-ttl:after {
  border: 20px solid #6BC5A3;
  border-right-color: transparent;
  bottom: -10px;
}

#c3 .contents-ttl {
  margin-top: 30px;
}

#c3 .contents-ttl h2 {
  background: #39b58b;
  color: #fff;
}

#c3 .contents-ttl h2:before {
  border-right: solid 15px #329F79;
}

#c3 .contents-ttl h2:after {
  border-left: solid 15px #329F79;
}

/* c4セクション内のcontents-ttlを青系にする */
#c4 .contents-ttl:before {
  border: 20px solid #5CCBF0;
  border-left-color: transparent;
}

#c4 .contents-ttl:after {
  border: 20px solid #5CCBF0;
  border-right-color: transparent;
}

#c4 .contents-ttl h2 {
  background: #20b9ee;
  color: #fff;
}

#c4 .contents-ttl h2:before {
  border-right: solid 15px #1BA5D6;
}

#c4 .contents-ttl h2:after {
  border-left: solid 15px #1BA5D6;
}

/* c5セクション内のcontents-ttlを緑系にする */
#c5 .contents-ttl:before {
  border: 20px solid #6BC5A3;
  border-left-color: transparent;
}

#c5 .contents-ttl:after {
  border: 20px solid #6BC5A3;
  border-right-color: transparent;
}

#c5 .contents-ttl h2 {
  background: #39b58b;
  color: #fff;
}

#c5 .contents-ttl h2:before {
  border-right: solid 15px #329F79;
}

#c5 .contents-ttl h2:after {
  border-left: solid 15px #329F79;
}

/* c3セクション内のcontents-innerの上部余白を調整 */
#c3 .contents-inner {
  margin-top: 20px;
  margin-bottom: 0;
  background: #f9fad7;
  /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); */
  border-radius: 60px / 50px; /* 丸に近い楕円形に調整 */
  padding: 20px 20px 40px;
  position: relative;
  border: 2px dashed #43c9b4;
}

/* c3-textコンテナのスタイル */
#c3 .contents-inner.c3-text {
  background: #def8fb;
  border-radius: 60px / 50px;
  padding: 20px 20px 40px;
  margin-top: 32px;
  border: 2px dashed #7ed6ff;
}

/* info-content-wrapper のスタイル */
.info-content-wrapper {
  /* display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px; */
  /* margin: 40px 0;
  padding: 30px; */
  /* background: rgba(255, 255, 255, 0.8); */
  border-radius: 15px;
}

.info-content-wrapper .info-txt {
  flex: 1;
  font-size: 2rem;
  line-height: 1.6;
  text-align: center;
  font-weight: bold;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* text-shadow: 2px 2px 4px rgba(0,0,0,0.1); */
  position: relative;
}

.info-content-wrapper .info-photo {
  flex: 0 0 300px;
  text-align: center;
}

.info-content-wrapper .info-photo img {
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* キャラクター画像のスタイリング */
.character-image {
  text-align: center;
  margin-bottom: 10px;
  position: relative;
  position: absolute;
    top: -180px;
    left: 0;
    right: 0;
    margin: auto;
  z-index: 3;
}

.character-img {
  width: 150px;
  height: auto;
  /* border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: 4px solid #0ba95f;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px;
  transition: transform 0.3s ease; */
}

/* 引用の出典部分のスタイリング */
.quote-attribution {
  text-align: right;
  /* margin-top: 20px; */
  padding-top: 10px;
  /* border-top: 1px solid rgba(0, 0, 0, 0.1); */
}

.quote-attribution .author-name {
  text-align: center;
  display: block;
  font-size: 1.5em;
  font-weight: bold;
  color: #0ba95f;
  margin: 15px auto;
}

.quote-attribution .source-info {
  text-align: center;
  display: block;
  font-size: 0.8em;
  color: #666;
  line-height: 1.4;
}

/* c3セクション内のギャラリーを枠内に配置 */
#c3 .random-anime-gallery-container {
  width: 100vw; /* 画面幅いっぱい */
  height: 35vh; /* 明確な高さを設定 */
  max-width: none;
  margin: 20px 0; /* 上下にマージンを追加 */
  overflow: hidden;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1; /* 他の要素の下に隠れないように */
}

/* 上部ギャラリーのスタイリング */
#c3 .gallery-top {
  width: 100vw; /* 画面幅いっぱい */
  height: 35vh; /* 明確な高さを設定 */
  margin: 40px 0 30px 0; /* 上部と下部に大きめのマージン */
  position: relative;
  left: 50%;
  transform: translateX(-50%); /* 中央揃え */
  overflow: hidden;
  z-index: 1;
}

/* 下部ギャラリーのスタイリング */
#c3 .gallery-bottom {
  width: 100vw; /* 画面幅いっぱい */
  height: 35vh; /* 明確な高さを設定 */
  margin: 30px 0 0 0; /* 上部に大きめのマージン */
  position: relative;
  left: 50%;
  transform: translateX(-50%); /* 中央揃え */
  overflow: hidden;
  z-index: 1;
}

/* アニメーション */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateY(-50px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* やなせ先生プロフィールセクション */
.yanase-profile {
  background: #F7B151;
  padding: 200px 0 80px 0;
  margin: -120px 0 0 0;
}



.yanase-profile-container {
  max-width: 900px;
  width: 90%;
  margin: 0 auto;
}



.yanase-profile-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  background: white;
  padding: 60px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.yanase-profile-image {
  flex: 0 0 300px;
}

.yanase-profile-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.yanase-profile-image img:hover {
  transform: scale(1.05);
}

.yanase-profile-text {
  flex: 1;
}

.yanase-profile-main-name {
  font-size: 2.5rem;
  font-weight: bold;
  color: #f46d85;
  margin-bottom: 8px;
  border-bottom: 2px solid #EB9DB3;
  padding-bottom: 10px;
}

.yanase-profile-real-name {
  font-size: 1.1rem;
  color: #888;
  margin-bottom: 5px;
  font-weight: normal;
}

.yanase-profile-years {
  font-size: 1rem;
  color: #888;
  margin-bottom: 20px;
  font-weight: bold;
}

.yanase-profile-name {
  font-size: 1.8rem;
  font-weight: bold;
  color: #f46d85;
  margin-bottom: 10px;
  border-bottom: 2px solid #EB9DB3;
  padding-bottom: 10px;
}

.yanase-profile-description {
  font-size: 1.5rem;
  line-height: 1.8;
  color: #333;
  text-align: justify;
}

/* 思い出セクション */
.memories-section {
  background: #F07C63;
  padding: 60px 0;
}



.memories-container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}



.memories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  justify-items: center;
  position: relative;
}

.memory-item {
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 20px;
  border-radius: 15px;
  background: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 200px;
}

.memory-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.memory-photo-container {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.memory-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  /* border: 3px solid #EB9DB3; */
  transition: all 0.3s ease;
}

.memory-item:hover .memory-photo {
  /* border-color: #f46d85; */
  /* transform: scale(1.05); */
}

.memory-plus-btn {
  /* position: absolute; */
  bottom: 10px;
  right: 10px;
  padding: 8px 16px;
  background: #43c9b4;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: bold;
  transition: all 0.3s ease;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.2); */
  white-space: nowrap;
  min-width: fit-content;
  letter-spacing: 0.5px;
}

.memory-item:hover .memory-plus-btn {
  background: #f46d85;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.memory-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
  margin: 5px auto;
}

.character-name {
  display: block;
  font-size: 1.2rem;
  color: #f46d85;
  margin: 5px auto 10px;
  font-weight: normal;
  display: inline-block;
}

/* ポップアップ */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.9); 
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  z-index: 9999999 !important;
}

.popup-overlay.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

/* ポップアップ表示中は他の要素を無効化 */
body.popup-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

body.popup-open * {
  pointer-events: none;
}

body.popup-open .popup-overlay,
body.popup-open .popup-overlay * {
  pointer-events: auto;
}

/* ポップアップ表示中はヘッダーやナビゲーション要素を隠す */
body.popup-open #header,
body.popup-open .el_humburger,
body.popup-open .navi,
body.popup-open header,
body.popup-open nav {
  visibility: hidden !important;
  z-index: -1 !important;
}

.popup-content {
  background: white;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  position: relative;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideIn 0.3s ease;
  z-index: 10000000 !important;
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
  color: #f46d85;
  font-weight: bold;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 10000001 !important;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.popup-close:hover {
  background: #EB9DB3;
  color: white;
  transform: scale(1.1);
}

.popup-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 30px;
    background: #f46d85;
    padding: 10px;
    border-radius: 50px;
}

.popup-person-info {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  /* padding: 20px; */
  /* background: #FFEEF7; */
  border-radius: 15px;
}

.popup-person-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.popup-person-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f46d85;
}

/* ポップアップ内の名前とキャラクター名のコンテナ */
.popup-person-name-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* キャラクター名が空の場合は非表示 */
.popup-person-info .character-name:empty {
  display: none;
}

/* PC時のみ横並びにする */
@media screen and (min-width: 961px) {
  .popup-person-name-container {
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }
  
  .popup-person-info .character-name {
    display: inline-block;
    background: #FFEEF7;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 1.1rem;
    color: #f46d85;
    border: 1px solid #EB9DB3;
  }
  
  /* PC時でもキャラクター名が空の場合は非表示 */
  .popup-person-info .character-name:empty {
    display: none;
  }
}

.popup-section {
  margin-bottom: 30px;
}

.popup-section-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f46d85;
  margin-bottom: 15px;
  border-left: 4px solid #EB9DB3;
  padding-left: 15px;
  background: #FFEEF7;
  padding: 10px 15px;
  border-radius: 5px;
}

.popup-section-text {
  font-size: 1.4rem;
  line-height: 1.8;
  color: #333;
  text-align: justify;
  padding: 15px;
  background: #FAFAFA;
  border-radius: 10px;
  margin: 0;
}

/* レスポンシブ対応 */
@media screen and (max-width: 960px) {

  .character-name {
    display: inline-block;
  }

  .yanase-profile-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  
  .yanase-profile-image {
    flex: none;
    max-width: 250px;
    margin: 0 auto;
  }
  
  .memories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .popup-content {
    padding: 20px;
    margin: 15px;
    margin-top: 20px;
    max-height: 85vh;
    overflow-y: auto;
  }
  
  .popup-person-info {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  #c4 .contents-ttl,
  #c5 .contents-ttl {
    width: 90%;
  }
  
  #c4 .contents-ttl h2,
  #c5 .contents-ttl h2 {
    font-size: 20px;
  }
}

@media screen and (max-width: 480px) {
  #c4 .contents-ttl,
  #c5 .contents-ttl {
    width: 95%;
  }
  
  #c4 .contents-ttl h2,
  #c5 .contents-ttl h2 {
    font-size: 18px;
  }
  
  .memories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .memory-photo {
    width: 100px;
    height: 100px;
  }
  
  .memory-plus-btn {
    font-size: 10px;
    padding: 6px 10px;
    bottom: 5px;
    right: 5px;
    border-radius: 15px;
  }
  
  .popup-content {
    padding: 15px;
    max-height: 90vh;
    margin: 5px;
    margin-top: 10px;
    overflow-y: auto;
  }
  
  .popup-title {
    font-size: 1.5rem;
  }
  
  .yanase-profile-content {
    padding: 40px 20px;
  }
  
    .yanase-profile-main-name {
    font-size: 2rem;
  }
  
  .yanase-profile-real-name {
    font-size: 1rem;
  }
  
  .yanase-profile-years {
    font-size: 1rem;
  }

  .yanase-profile-name {
    font-size: 1.5rem;
  }

  .yanase-profile-description {
    font-size: 1.5rem;
  }
}

/* 星の飾り */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.star {
  position: absolute;
  color: #FFD700;
  font-size: 16px;
  animation: twinkle 3s infinite ease-in-out, float 6s infinite ease-in-out;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.star:nth-child(2n) {
  color: #FFA500;
  animation-delay: -1s;
  animation-duration: 4s, 8s;
}

.star:nth-child(3n) {
  color: #FF69B4;
  animation-delay: -2s;
  animation-duration: 2.5s, 7s;
}

.star:nth-child(4n) {
  color: #87CEEB;
  animation-delay: -0.5s;
  animation-duration: 3.5s, 9s;
}

.star:nth-child(5n) {
  color: #98FB98;
  animation-delay: -1.5s;
  animation-duration: 2.8s, 6.5s;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(90deg);
  }
  50% {
    transform: translateY(-5px) rotate(180deg);
  }
  75% {
    transform: translateY(-15px) rotate(270deg);
  }
}

/* 星のサイズバリエーション */
.star.small {
  font-size: 12px;
}

.star.medium {
  font-size: 16px;
}

.star.large {
  font-size: 22px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 960px) {
  .star {
    font-size: 14px;
  }
  
  .star.small {
    font-size: 10px;
  }
  
  .star.medium {
    font-size: 14px;
  }
  
  .star.large {
    font-size: 18px;
  }
}

@media screen and (max-width: 480px) {
  .star {
    font-size: 12px;
  }
  
  .star.small {
    font-size: 8px;
  }
  
  .star.medium {
    font-size: 12px;
  }
  
  .star.large {
    font-size: 16px;
  }
}

/* specialページでは動画関連要素を無効化 */
.movie,
.video-trigger,
[data-video],
.modal-video,
.modaal-video-wrap,
.youtube-player {
  display: none !important;
  pointer-events: none !important;
}

/* 動画モーダルを無効化 */
.modaal-wrapper.modaal-video {
  display: none !important;
}

/*-------------------------------

fade-image

-------------------------------*/

.fade-image {

}
.fade-image-effect {
	position: relative;
	overflow: hidden;
}

.fade-image-effect:after {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 100;
	width: 100%;
	height: 100%;
	background: #55C5F0;
	transform: translate3d(0%,0,0);
}

.fade-image-effect.active:after {
	animation: swipeRight 1.1s cubic-bezier(0.6,0,0.4,1);
	animation-fill-mode: forwards;
}

@keyframes swipeRight {
	0% {
		transform: translate(0);
	}
	50%, 60% {
		transform: translate3d(100%,0,0);
	}
	100% {
		transform: translate3d(100%,0,0);
	}
}

@media screen and (max-width: 1024px) {
	.fade-image {
	}
	.fade-image-effect {
	}
	.fade-image .fade_image-effect:last-child {
		margin: 0;
	}
}

/* info-photos-row（アンパンマンと正義セクションの写真7枚横並び） */
.info-photos-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 15px!important;
  margin: 50px auto 0;
  flex-wrap: wrap;
}
.info-photo-item {
  width: 210px;
  flex: 0 0 auto;
}
.info-photo-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

@media (max-width: 600px) {
  .info-photos-row {
    gap: 4px;
    margin: 40px auto 0;
  }
  .info-photo-item {
    width: 40vw;
    min-width: 96px;
    max-width: 160px;
  }
}