@charset "utf-8";

/* Reset & Base
------------------------------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  display: block;
}

video {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a.opa:hover {
  opacity: 0.7;
}

/* Layout
------------------------------------------------------------*/
#content {
  width: 100%;
  margin: 0 auto;
}

section {
  width: 100%;
}

.maincontent {
  max-width: 750px;
  margin: 0 auto;
  width: 100%;
}

/* Fade Up Animation
------------------------------------------------------------*/
.anime {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.anime.show {
  opacity: 1;
  transform: translateY(0);
}

/* Sections
------------------------------------------------------------*/
#fv .maincontent,
#sec01 .maincontent,
#sec02 .maincontent,
#sec03 .maincontent,
#sec04 .maincontent,
#sec05 .maincontent,
#sec06 .maincontent,
#sec07 .maincontent,
#sec08 .maincontent,
#sec09 .maincontent,
#sec10 .maincontent,
#sec11 .maincontent,
#sec12 .maincontent,
#sec13 .maincontent {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Section 10 - 上余白と要素間余白
------------------------------------------------------------*/
#sec10 {
  margin-top: 80px;
}

#sec10 .maincontent {
  gap: 20px;
}

/* CTA Section - CTAボタン下に余白追加
------------------------------------------------------------*/
#sec02 {
  margin-bottom: 60px;
}

/* CTA Button Hover Animation (横揺れ)
------------------------------------------------------------*/
#sec02 .maincontent img[src*="ctabtn"] {
  cursor: pointer;
  width: 80%;
  margin: 0 auto;
  transition: transform 0.3s ease;
  animation: shake 2s ease infinite;
}

#sec02 .maincontent img[src*="ctabtn"]:hover {
  animation: shake 1.5s ease infinite;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-3px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(3px);
  }
}

/* Fixed Button (右横固定バナー)
------------------------------------------------------------*/
#fixed_btn {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%) scale(0.85);
  z-index: 1000;
  transform-origin: right center;
}

#fixed_btn a {
  display: block;
  width: auto;
  height: auto;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#fixed_btn a:hover {
  transform: translateX(-5px);
}

#fixed_btn img {
  width: auto;
  height: auto;
  max-height: 80vh;
  display: block;
}

/* Media Queries
------------------------------------------------------------*/

/* タブレット (768px以下) */
@media screen and (max-width: 768px) {
  .maincontent {
    max-width: 100%;
    padding: 0 20px;
  }

  .anime {
    transform: translateY(20px);
  }

  #sec02 {
    margin-bottom: 40px;
  }

  #sec10 {
    margin-top: 60px;
  }

  #sec10 .maincontent {
    gap: 15px;
  }

  #fixed_btn img {
    max-height: 70vh;
    max-width: 100px;
  }
}

/* スマートフォン (480px以下) */
@media screen and (max-width: 480px) {
  .maincontent {
    padding: 0 15px;
  }

  .anime {
    transform: translateY(15px);
  }

  #sec02 {
    margin-bottom: 30px;
  }

  #sec10 {
    margin-top: 40px;
  }

  #sec10 .maincontent {
    gap: 12px;
  }

  #fixed_btn img {
    max-height: 65vh;
    max-width: 90px;
  }

  @keyframes shake {
    0%, 100% {
      transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
      transform: translateX(-3px);
    }
    20%, 40%, 60%, 80% {
      transform: translateX(3px);
    }
  }
}

/* 小型スマートフォン (375px以下) */
@media screen and (max-width: 375px) {
  .maincontent {
    padding: 0 10px;
  }

  #sec02 {
    margin-bottom: 20px;
  }

  #sec10 {
    margin-top: 30px;
  }

  #sec10 .maincontent {
    gap: 10px;
  }

  #fixed_btn img {
    max-height: 60vh;
    max-width: 80px;
  }
}

/* ワイドスクリーン (1200px以上) */
@media screen and (min-width: 1200px) {
  #content {
    max-width: 750px;
    margin: 0 auto;
  }
}