
:root {
  width: 100%;
  height: 100%;
  font-size: 20px;
  scroll-behavior: smooth;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: .8rem;
  font-family: "M PLUS Rounded 1c", sans-serif;
  -moz-font-feature-settings: "palt";
	-webkit-font-feature-settings: "palt";
	font-feature-settings: "palt";
  background: #fff;
  overflow: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
ul, li {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}


/*------------------------------------------------
　　　　　　　　　　　  font
------------------------------------------------*/

@font-face { 
  font-family: "M PLUS Rounded 1c";
  src: url('../font/MPLUSRounded1c-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal; }
@font-face { 
  font-family: "M PLUS Rounded 1c";
  src: url('../font/MPLUSRounded1c-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal; }
@font-face { 
  font-family: "M PLUS Rounded 1c";
  src: url('../font/MPLUSRounded1c-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal; }
  @font-face { 
  font-family: "M PLUS Rounded 1c";
  src: url('../font/MPLUSRounded1c-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal; }




/*------------------------------------------------
　　　　　　　　　　　 color
------------------------------------------------*/
:root {
  --rightGreen: #54D762;
  --KoiGreen: #39B54A;
  --basecolor: #231815;
  --emphacolor: #FF406C;
}


.container {
  display: flex; 
  flex-direction: row;
  width: 100%;
  height: 100%;
}

/* 左カラム */
.left-column {
  position: sticky; 
  top: 0;
  left: 0;
  display: flex;
  justify-content: center; 
  align-items: center;
  width: 50%; 
  height: 100vh; 
  overflow: hidden;
  &:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    width: 100%;
    height: 100%;
    background-image: url('../img/bg_kirakira.svg'), url('../img/pattern_leaf_bg.png');
    background-repeat: repeat, repeat;
    background-size: 100px, 150px; 
    background-position: top left, center center;
    background-color: #fff;
    animation: unblur-background 3s forwards, scroll-background 5s linear infinite;
  }
  h1.logo {
    position: relative; 
    width: 85%;
    z-index: 10;
    opacity: 0;
    animation: yurayura-dodon 0.8s ease-out 0.5s forwards;
    img {
      max-width: 100%;
      height: auto;
    }
  }
}

/* 左カラム 四隅の装飾 */
.corner-decoration {
  position: absolute;
  z-index: 1;
  width: 55%;
  height: 55%;
  line-height: 0;
  &:before {
    content: "";
    position: absolute;
    bottom: 50%;
    right: 40%;
    display: inline-block;
    width: 6%;
    height: 2%;
    background: url('../img/bug_animation.gif') center center / contain no-repeat;
    transform: rotate(45deg) translate(0, 0);
    animation: slant-move 10s ease infinite alternate;
  }
  img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
  }
}

.corner-top-left {
  top: -22%;
  left: -20%;
}
.corner-top-right {
  top: -22%;
  right: -20%;
  transform: scale(-1, 1); 
}
.corner-bottom-left {
  bottom: -22%;
  left: -20%;
  transform: scale(1, -1);
}
.corner-bottom-right {
  bottom: -22%;
  right: -20%;
  transform: scale(-1, -1);
}



/* 右カラム*/
.right-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  width: 50%; 
  height: 100vh; 
  color: #ffffff; 
  padding: 2rem 0 0; 
  background: var(--rightGreen);
  border: 4px solid var(--KoiGreen);
  overflow-y: auto;
  z-index: 100;
  section.main-copy {
    .kv {
      position: relative;
      width: calc(100% - 4rem);
      display: block;
      background: url("../img/kv.jpg") center center / contain no-repeat;
      aspect-ratio: 16 / 9;
      margin: auto;
      border-radius: 8px;
      img {
        position: absolute;
        left: 0px;
        top: 0px;
        width: 100%;
        height: 100%;
      }
    }
    span.main-msg {
      width: 100%;
      padding: 0 2rem;
      margin: 2.5rem 0 0;
      img {
        width: 100%;
        max-width: 740px;
      }
    }
  }

  /* 共通できるもの */
  section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    h2 {
      position: relative;
      width: 100%;
      height: 3rem;
      margin-bottom: 1.2rem;
      &:after {
        content: "";
        position: absolute;
        top: 20px;
        left: 0;
        display: inline-block;
        width: 100%;
        height: 20px;
        background: url('../img/bug_fff_animation.gif') center center / contain repeat-x;
        opacity: .5;
        z-index: 1;
        animation: scroll-rtl 30s linear infinite;
      }
      img {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        max-height: 3rem;
        width: auto;
        z-index: 100;
      }
    }
    a.normal-button {
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--basecolor);
      font-size: clamp(.8rem, 1.8vw, 1.3rem);
      font-weight: 900;
      line-height: 1;
      background: #fff;
      padding: 0 1rem;
      border: 5px solid var(--basecolor);
      &:hover {
        opacity: .65;
        transition: .2s;
      }
    }
  }

  /* ムービーセクション */
  section.movie-section {
    ul {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      width: calc(100% - 4rem);
      gap: 1rem;
      li {
        width: calc((100% - 2rem) / 3);
        min-width: 180px;
        aspect-ratio: 16 / 9;
        &:hover {
          opacity: .8;
          transition: .2s;
        }
        span {
          display: block;
          position: relative;
          width: 100%;
          aspect-ratio: 16 / 9;
          overflow: hidden;
          border-radius: 5px;
          background-repeat: no-repeat;
          background-size: cover;
          background-position: center center;
          border: 2px solid #fff;
          &:before {
            content: "";
            position: absolute;
            top: 0px;
            bottom: 0px;
            left: 0px;
            right: 0px;
            width: 35%;
            height: 35%;
            z-index: 1;
            background: url(../img/icon_play.svg) center center / contain no-repeat;
            margin: auto;
            opacity: .8;
          }
          img {
            position: absolute;
            left: 0px;
            top: 0px;
            width: 100%;
            height: 100%;
          }
        }
      }
      li:first-of-type {
        span {
          background-image: url(https://img.youtube.com/vi/bn675NH9MoA/maxresdefault.jpg);
        }
      }
      li:nth-of-type(2) {
        span {
          background-image: url(https://img.youtube.com/vi/DjHuVW1cX8E/hqdefault.jpg);
        }
      }
      li:last-of-type {
        span {
          background-image: url(https://img.youtube.com/vi/su4Pk9HjGSU/maxresdefault.jpg);
        }
      }
    }
    .click-text {
      margin: 2rem 0 5px;
    }
    a.youtube-button {
      display: flex;
      align-items: center;
      justify-content: center;
      width: calc(100% - 4rem);
      margin-bottom: 1.5rem;
      animation: vibrate-periodically 2.5s infinite;
      &:hover {
        opacity: .85;
        transition: .2s;
      }
      img {
        width: 100%;
        max-width: 640px;
      }
    }
  }

  section.story-section {
    position: relative;
    gap: 1rem;
    padding: 4rem 3rem;
    background: #fff url("../img/leaf_bg.svg") center center / 60% no-repeat;
    &:after, &:before {
      content: "";
      position: absolute;
      left: 0;
      width: 100%;
      height: 28px;
      display: inline-block;
      background: url('../img/kunekune.svg') center center / contain repeat-x;
    }
    &:after {
      top: -14px;
    }
    &:before {
      bottom: -14px;
    }

    p {
      font-size: clamp(.8rem, 1.8vw, 1rem);
      line-height: 1.5;
      font-weight: 900;
      color: var(--basecolor);
    }
    .empha {
      color: var(--emphacolor);
    }
  }

    /* CAST＆OnAirセクション */
  .cast-section, .onair-section {
    p, li {
      display: inline-block;
      font-size: clamp(.8rem, 1.8vw, 1rem);
      line-height: 1.5;
      color: var(--basecolor);
      font-weight: 900;
      padding: 0 2rem;
      text-shadow:
        -2px 0 0 #ffffff,
        2px 0 0 #ffffff,
        0 -2px 0 #ffffff,
        0 2px 0 #ffffff,
        -2px -2px 0 #ffffff,
        2px -2px 0 #ffffff,
        -2px  2px 0 #ffffff,
        2px  2px 0 #ffffff;
    }
  }
  .cast-section {
    ul {
      display: flex;
      flex-direction: column;
      li {
        text-align: left;
      }
      .space-bottom {
        margin-bottom: 1rem;
      }
      li:last-of-type {
         margin-top: 2.5rem;
      }
    }
  }
  .onair-section {
    p:first-of-type {
      margin-bottom: 1rem;
    }
    a.normal-button {
      width: calc(100% - 4rem);
      max-width: 300px;
      height: 3rem;
      border-radius: 1.5rem;
      margin-top: 1.5rem;
    }
  }

  /* SNSセクション */
  .sns-section {
    .sns-icons {
      display: flex;
      justify-content: center;
      gap: 25px;
      a.official_link {
        width: 4.5rem;
        height: 4.5rem;
        display: flex;
        font-size: 0;
        border-radius: 50%;
        border: 5px solid var(--basecolor);
        background-color: #fff;
        background-size: 65%;
        background-repeat: no-repeat;
        background-position: center center;
        &:hover {
          opacity: .65;
          transition: .2s;
        }
      }
      a.official_link:nth-of-type(1) {
        background-image: url("../img/sns_x.svg");
      }
        a.official_link:nth-of-type(2) {
        background-image: url("../img/sns_i.svg");
      }
        a.official_link:nth-of-type(3) {
        background-image: url("../img/sns_t.svg");
      }
    }
  }

  /* お問い合わせセクション */
  .contact-section {
    a.contact-button {
      width: calc(100% - 4rem);
      max-width: 700px;
      height: 3.5rem;
      border-radius: 1.75rem;
      margin-top: .5rem;
      &:hover {
        opacity: .65;
        transition: .2s;
      }
    }
  }
}

/* フッター */
footer {
  width: 100%;
  padding: 30px 40px;
  color: #fff;
  font-size: clamp(.7rem, 1.8vw, .8rem);
  font-weight: 500;
  line-height: 1.25;
  background: var(--KoiGreen);
}

/*------------------------------------------------
　　　　　　　　　　 animation
------------------------------------------------*/
/* 左エリアのムシの移動 */
@keyframes slant-move {
  from {
    transform: rotate(45deg) translate(0, 0);
  }
  to {
    transform: rotate(45deg) translate(10px, 0);
  }
}

/* 芋虫の大移動 */
@keyframes scroll-rtl {
  from {
    background-position: center center;
  }
  to {
    background-position: -110px center;
  }
}

/* 小 → 大で表示する */
@keyframes pop-in {
  0% {
    opacity: 0;
    transform: scale(0.5); 
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ロゴ表示 */
@keyframes yurayura-dodon {
  0% {
    opacity: 0;
    transform: scale(0.5); 
  }
  20% {
    opacity: 0.8;
    transform: scale(0.8) rotate(-10deg); 
  }
  40% {
    opacity: 1;
    transform: scale(0.8) rotate(10deg); 
  }
  60% {
    transform: scale(1.2) rotate(0deg); 
  }
  80% {
    transform: scale(0.95); 
  }
  100% {
    opacity: 1;
    transform: scale(1); 
  }
}

/* youtubeボタンをブルブルさせる */
@keyframes vibrate-periodically {
  0%, 70% {
    transform: translate(0, 0);
  }
  73% {
    transform: translate(2px, 2px);
  }
  76% {
    transform: translate(-1px, -2px);
  }
  79% {
    transform: translate(2px, -2px);
  }
  82% {
    transform: translate(-2px, 2px);
  }
  85% {
    transform: translate(2px, 2px);
  }
  88% {
    transform: translate(-1px, -1px);
  }
  91% {
    transform: translate(2px, -2px);
  }
  94% {
    transform: translate(-2px, 2px);
  }
  97% {
    transform: translate(1px, 1px);
  }
  100% {
      transform: translate(0, 0);
  }
}

/* 左エリアをぼかす → 鮮明に */
@keyframes unblur-background {
  0% {
    filter: blur(10px);
    transform: scale(1.1); 
  }
  100% {
    filter: blur(0px);
    transform: scale(1);
  }
}

/* 左エリアをキラキラ背景を動かす */
@keyframes scroll-background {
  from {
    background-position: 0 0, center center;
  }
  to {
    background-position: 100px 100px, center center;
  }
}



/* スクロールバー */
.right-column {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.right-column::-webkit-scrollbar {
  display: none;
}


/* -------------------------------------------
 * 4. レスポンシブ対応 (スマホ)
 * ------------------------------------------- */
@media (max-width: 768px) { /* 画面幅が768px以下の場合に適用 */
  .container {
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    .left-column {
      position: relative; 
      width: 100%; 
      height: auto;
      aspect-ratio: 3 / 4;
      overflow: visible;
      .logo {
        width: 100%;
        img {
          width: 85%;
        }
      }
    }
    .right-column  {
      width: 100%; 
      height: auto;
      gap: 3rem;
      border-radius: 0;
      overflow-y: visible;
      margin: 0;
      padding: .75rem 0 0; 
      section {
        h2 {
          height: 2rem;
          &:after {
            top: 12px;
            height: 16px;
          }
          img {
            max-height: 2rem;
          }
        }
      }
      section.main-copy {
        .kv {
          width: calc(100% - 1.5rem);
        }
        span.main-msg {
          padding: 0 .75rem;
          margin: 1.5rem 0 0;
        }
      }
      section.movie-section {
        ul {
          gap: 1rem;
          li {
            width: 100%;
            min-width: 100%;
          }
        }
        a.youtube-button {
          width: calc(100% - 1.5rem);
        }
      }
      section.story-section {
        padding: 4rem 1rem;
      }
      .sns-section {
        .sns-icons {
          gap: 20px;
          a.official_link {
            width: 4rem;
            height: 4rem;
          }
        }
      }
    } 
  }
}