@charset "utf-8";
/* CSS Document */

#mainvisual {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

#mainvisual > picture {
  width: 100%;
  height: auto;
  display: block;
}

#mainvisual .char {
  width: 100%;
}
#mainvisual .char li {
  position: absolute;
}
#mainvisual .char li:nth-child(1) {
  width: 31.46%;
  left: 37.5%;
  top: 5%;
  z-index: 3;
}
#mainvisual .char li:nth-child(2) {
  width: 29.84%;
  left: 18.39%;
  top: 24.57%;
  z-index: 2;
}
#mainvisual .char li:nth-child(3) {
  width: 21.56%;
  left: 59.32%;
  top: -10.48%;
  z-index: 1;
}
@media (max-width: 750px) {
  #mainvisual > img {
    width: 198.67%;
    transform: translateX(-25%);
  }
  #mainvisual .char li:nth-child(1) {
    width: 47.73%;
    left: 30.13%;
    top: 8.62%;
    z-index: 3;
  }
  #mainvisual .char li:nth-child(2) {
    width: 45.47%;
    left: 0.93%;
    top: 24.57%;
    z-index: 2;
  }
  #mainvisual .char li:nth-child(3) {
    width: 32.93%;
    left: 63.47%;
    top: -10.48%;
    z-index: 1;
  }
}

@keyframes float {
  0%  { transform: translateY(0%); }
  100%  { transform: translateY(-3%); }
}

#root.show .fuwafuwa1 {
  animation: float 3s ease-in-out infinite alternate;
}
#root.show .fuwafuwa2 {
  animation: float 3s ease-in-out infinite alternate;
  animation-delay: 0.5s;
}
#root.show .fuwafuwa3 {
  animation: float 3s ease-in-out infinite alternate;
  animation-delay: 1s;
}

#intro {
  position: relative;
  width: 58.02%;
  max-width: 1114px;
  margin: 30px auto 0 auto;
  overflow: hidden;
}
#intro > div {
  position: absolute;
  opacity: 0;
  top: 0;
  left: 0;
}

@media (max-width: 790px) {
  #intro {
    width: 89.33%;
  }
}

.comic {
  margin-top: 50px;
}
.comic h1 {
  width: 577px;
  margin: 0 auto;
}
.comic > div {
  width: 1180px;
  margin: 10px auto 0 auto;
  padding: 9px;
  background: #fff;
}
.comic > div > div {
  padding: 44px 70px;
  border: solid 8px #ffea00;
}
.comic > div > div dl {
  text-align: center;
  margin-top: 30px;
}
.comic > div > div dl dt {
  width: 390px;
  margin: 0 auto;
  background: #fff;
  border: solid 2px #d3d3d3;
}
.comic > div > div dl dt a {
  display: block;
  margin: 0 auto;
}
.comic > div > div dl dt a:hover {
  opacity: 0.5;
}
.comic > div > div dl dd {
  margin-top: 5px;
  color: #ff0a96;
  font-size: 31px;
  font-family: 'M PLUS 1p', "Hiragino Kaku Gothic ProN", "Hiragino Sans W3",  "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}
.comic > div > div ul {
  display: flex;
  width: 100%;
  margin-top: 20px;
  justify-content:space-around;
  align-items: center;
  gap: 12px;
  font-family: 'M PLUS 1p', "Hiragino Kaku Gothic ProN", "Hiragino Sans W3",  "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}
.comic > div > div ul li {
  color: #5e5e5e;
  background: #fff;
  text-align: center;
  font-weight: bold;
}
.comic > div > div ul li a {
  display: block;
  width: 235px;
  height: 114px;
  margin-bottom: 3px;
}
.comic > div > div ul li a:hover {
  opacity: 0.5;
}
.comic > div > div .btnMore {
  display: block;
  width: 447px;
  margin: 60px auto 0 auto;
  background: #fff;
}
.comic > div > div .btnMore:hover img {
  opacity: 0.5;
}

@media (max-width: 1180px) {
  .comic > div {
    width: 100%;
    padding: 9px 0;
  }
  .comic > div > div {
    border-top: solid 8px #ffea00;
    border-bottom: solid 8px #ffea00;
    border-left: none;
    border-right: none;
  }
  .comic > div > div dl {
    margin-top: 5vw;
  }
  .comic > div > div dl dt {
    width: 75.4%;
    max-width: 390px;
    margin: 0 auto;
  }
  .comic > div > div dl dt a{}
  .comic > div > div dl dd {
    font-size: clamp(16px, 2.63vw, 31px);
  }
  .comic > div > div ul li:nth-child(4) {
    display: none;
  }
  .comic > div > div ul li {
    flex: 1;
    width: auto;
  }
  .comic > div > div ul li a {
    width: 100%;
    height: auto;
    aspect-ratio: 704 / 340;
  }
  .comic > div > div .btnMore {
    margin-top: clamp(30px, 5.08vw, 60px)
  }
}

@media (max-width: 750px) {
  .comic h1 {
    width: 54.89%;
    margin: 0 auto;
  }
  .comic > div > div {
    padding: 5.8vw 8vw;
    border-top-width:  clamp(3px, 1.1vw, 8px);
    border-bottom-width:  clamp(3px, 1.1vw, 8px);
  }
  .comic > div > div dl dt {
    width: 75.4%;
    max-width: 390px;
    margin: 0 auto;
  }
  .comic > div > div dl dd {
    font-size: clamp(16px, 2.8vw, 21px);
  }
  .comic > div > div ul li:nth-child(3) {
    display: none;
  }
  .comic > div > div .btnMore {
    width: 42.98%;
  }
}



.chara {
  margin-top: 30px;
}
.chara h1 {
  width: 757px;
  margin: 0 auto;
}
.chara > div {
  position: relative;
  width: 1180px;
  margin: 50px auto 0 auto;
  padding: 9px;
  background: #fff;
}
.chara > div > div {
  padding: 44px 30px;
  border: solid 8px #ffea00;
}


@media (max-width: 1180px) {
  .chara {
  }
  .chara h1 {
    width: 72.06%;
    max-width: 1129px;
  }
}

.tab-container {
  position: relative;
  width: 100%;
  margin: 50px auto 0 auto;
  display: flex;
  gap: 20px;
  z-index: 10;
  justify-content: center;
  z-index: 2;
}

.tab-button {
  width: 29.1%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.tab-button:hover {
  background: #fff;
}
.tab-button img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1180px) {
  .tab-container {
    width: 100%;
    margin-top: 6vw;
  }
  .chara > div {
    width: 100%;
    padding: 9px 0;
    margin-top: 8.67vw;
  }
  .chara > div > div {
    padding: 5.8vw 2.54vw;
    border-left: none;
    border-right: none;
  }
}
@media (max-width: 750px) {
  .chara > div > div {
    padding: 5.8vw 3vw;
    border-top-width:  clamp(3px, 1.1vw, 8px);
    border-bottom-width:  clamp(3px, 1.1vw, 8px);
  }
  .tab-container {
   gap: 10px;
  }
}

.profile {
  margin-top: 170px;
}

/* --- 中央のプロフィールカード --- */
.profile-card {
  width: 100%;
  /* 初期状態では非表示にしておく（初回ロード時にJavaScriptで表示する） */
  opacity: 0; 
  transform: translateY(40px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
/* カード全体のフェードイン */
.profile-card.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* --- 左側：メインイラスト表示エリア --- */
.image-area {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
}
/* 背後のピンクの丸背景 */
.image-bg-circle {
  position: absolute;
  width: 895px;
  aspect-ratio: 895 / 895;
  z-index: 1;
  left: -400px;
  top: 50%;
  transform: translateY(-50%);
}
@media (max-width: 1180px) {
  .profile {
    margin-top: 12vw;
  }
  .image-bg-circle {
    width: 65%;
    left: -20vw;
  }
}
@media (max-width: 750px) {
  .profile {
    margin-top: 8vw;
  }
  .image-bg-circle {
    width: 80.76%;
    left: -32vw;
    transform: translateY(-45%);
  }
}

.c1 .image-bg-circle {
  background: url("../images/top/char_bg_01.png") no-repeat center center;
  background-size: 100% auto;
}
.c2 .image-bg-circle {
  background: url("../images/top/char_bg_02.png") no-repeat center center;
  background-size: 100% auto;
}
.c3 .image-bg-circle {
  background: url("../images/top/char_bg_03.png") no-repeat center center;
  background-size: 100% auto;
}
.main-image-container {
  position: absolute;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(-50%);
  pointer-events: none;
  width: 67.03%;
  left: -200px;
  top: 40%;
}
.main-image {
  pointer-events: none;
  opacity: 1; /* 初期状態 */
}
@media (max-width: 1180px) {
  .main-image-container{
    width: 55%;
    left: -10vw;
  }
}
@media (max-width: 750px) {
  .main-image-container{
    width: 63%;
    left: -12vw;
    top: 47%;
  }

}

/* --- 右側：テキスト・サムネイルエリア --- */
.info-area {
  display: flex;
  width: 570px;
  margin: 0 0 0 auto;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 2;
  font-family: 'M PLUS 1p', "Hiragino Kaku Gothic ProN", "Hiragino Sans W3",  "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}
.name-ja {
  width: 89.82%;
  font-size: 101px;
  font-weight: 800;
  margin: 0 auto;
  line-height: 1;
  text-align: center;
}
.c1 .name-ja {
  color: #f40028;
}
.c2 .name-ja {
  color: #2a4dff;
}
.c3 .name-ja {
  color: #01c901;
}
.name-en {
  width: 89.82%;
  font-size: 65px;
  font-weight: 800;
  margin: -10px auto 0 auto;
  text-align: center;
}
.c1 .name-en {
  color: #f40028;
}
.c2 .name-en {
  color: #2a4dff;
}
.c3 .name-en {
  color: #01c901;
}
.description {
  width: 89.82%;
  min-height: 8em;
  padding-top: 30px; 
  font-size: 34px;
  font-weight: bold;
  line-height: 1.5;
  color: #5e5e5e;
  white-space: pre-wrap;
  margin: 0 auto;
  flex-grow: 1;
}
.c1 .description {
  border-top: solid 3px #f40028;
}
.c2 .description {
  border-top: solid 3px #2a4dff;
}
.c3 .description {
  border-top: solid 3px #01c901;
}

@media (max-width: 1180px) {
  .info-area {
    width: 52.58%;
  }
  .name-ja {
    font-size: clamp(12px, 8vw, 60px);
  }
  .name-en {
    margin-top: 0;
    font-size: clamp(12px, 5.2vw, 39px);
  }
  .description {
    padding-top: 2vw;
    font-size: clamp(12px, 3vw, 25px);
  }
}
@media (max-width: 768px) {
  .info-area {
    width: 50%;
  }
  .name-en {
    line-height: 120%;
  }
  .description {
    min-height: 8em;
  }
}


/* --- 右下：バリエーションサムネイル --- */
.variation-container {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}
.thumb-circle {
  width: 180px;
  aspect-ratio: 180 / 180;
  border-radius: 50%;
  background-color: #fff;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  opacity: 0.5;
  transform: scale(0.9);
  transition: transform 0.2s, box-shadow 0.2s;
}
.thumb-circle:hover, .thumb-circle.active {
  opacity: 1;
  transform: scale(1);
}
.c1 .thumb-circle.active {
  border: solid 4px #fff;
  box-shadow: 0 0 0 5px #f40028;
}
.c2 .thumb-circle.active {
  border: solid 4px #fff;
  box-shadow: 0 0 0 5px #2a4dff;
}
.c3 .thumb-circle.active {
  border: solid 4px #fff;
  box-shadow: 0 0 0 5px #01c901;
}
.thumb-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .variation-container {
   gap: 6px;
  }
  .c1 .thumb-circle.active {
    border-width: clamp(2px, 0.53vw, 4px);
    box-shadow: 0 0 0 clamp(2px, 0.67vw, 5px) #f40028;
  }
  .c2 .thumb-circle.active {
    border-width: clamp(2px, 0.53vw, 4px);
    box-shadow: 0 0 0 clamp(2px, 0.67vw, 5px) #2a4dff;
  }
  .c3 .thumb-circle.active {
    border-width: clamp(2px, 0.53vw, 4px);
    box-shadow: 0 0 0 clamp(2px, 0.67vw, 5px) #01c901;
  }
}

/* =========================================
   --- アニメーション用のCSSクラスとKeyframes ---
   ========================================= */

/* 上に移動しながらフェードアウト */
.anim-fade-out-up {
    animation: fadeOutUp 0.4s ease-in forwards;
}

/* 下から移動しながらフェードイン */
.anim-fade-in-up {
    animation: fadeInUp 0.4s ease-out forwards;
}

@keyframes fadeOutUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-40px); /* 上に40px移動 */
        opacity: 0;
    }
}

@keyframes fadeInUp {
    0% {
        transform: translateY(40px); /* 下に40px下がった位置からスタート */
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 2. 表情・ポーズ変え時のアニメーション（メイン画像）
   「横へフェードアウト後に新しい画像が横からフェードイン」
   ここでは右へ消えて、右から来る動きにします */

/* 横へフェードアウト */
.anim-slide-out {
    animation: slideFadeOutRight 0.4s ease-in forwards;
}
/* 横からフェードイン */
.anim-slide-in {
    animation: slideFadeInRight 0.4s ease-out forwards;
}

@keyframes slideFadeOutRight {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(5vw); opacity: 0; }
}

@keyframes slideFadeInRight {
    0% { transform: translateX(-5vw); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}



