/* 基本設定 */
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  color: var(--color-text);
}

img {
  height: auto;
  max-width: 100%;
}

a {
  color: inherit;
}
a:not(:has(img)):hover {
  transition: 0.3s all;
}

@media screen and (width > 640px) {
  .pc-none {
    display: none;
  }
}

@media screen and (width <= 640px) {
  .sp-none {
    display: none;
  }
}

/* title */
.title-main {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 48px;
}
.title-main.type-en {
  color: var(--color-primary);
  font-weight: 400;
  padding: 0 16px;
}
.title-main.type-en .title-en {
  font-family: "Quicksand", sans-serif;
  font-size: 46px;
  letter-spacing: 0.1em;
}
@media screen and (width < 375px) {
  .title-main.type-en .title-en {
    font-size: clamp(28px, 11.6vw, 46px);
  }
}
.title-main.type-en .title-ja {
  align-items: center;
  display: flex;
  justify-content: center;
  gap: 16px;
  max-width: 345px;
  width: 100%;
}
.title-main.type-en .title-ja::before,
.title-main.type-en .title-ja::after {
  background: var(--color-primary);
  content: "";
  display: block;
  flex: 1;
  height: 2px;
}

/* text */
.title-bottom-text {
  line-height: 2;
  margin-bottom: 48px;
  padding: 0 16px;
  text-align: center;
}

/* btn */
.link-btn {
  background: #fff;
  border-radius: 8px;
  height: 56px;
  margin: auto;
  overflow: hidden;
  width: 240px;
}
.link-btn a {
  align-items: center;
  background: var(--color-primary);
  color: var(--color-text-white);
  display: flex;
  justify-content: center;
  height: 100%;
}
.link-btn a:hover {
  color: var(--color-primary);
}

.back-link {
  background: #fff;
  margin: auto;
  width: 208px;
}
.back-link a {
  align-items: center;
  border: solid 2px var(--color-primary);
  border-radius: 8px;
  color: var(--color-primary);
  display: flex;
  justify-content: center;
  height: 48px;
}

.btn-slide {
  background: var(--color-primary);
  border: solid 2px var(--color-primary);
}
.btn-slide a {
  align-items: center;
  background: var(--color-primary);
  display: flex;
  justify-content: center;
  overflow: hidden;
  height: 100%;
  width: 100%;
}
.btn-slide a::after {
  background: #fff;
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  width: 100%;
  height: 100%;
  transform: scale(0, 1);
  transform-origin: left top;
  transition: 0.2s cubic-bezier(0.45, 0, 0.55, 1);
  z-index: 0;
}
.btn-slide svg,
.btn-slide .btn-text {
  position: relative;
  z-index: 2;
}
.btn-slide a:hover svg path {
  fill: var(--color-primary);
}
.btn-slide a:hover::after {
  transform: scale(1, 1);
}

/* =========================
  header
========================= */
.header {
  background: #fff;
  display: flex;
  padding: 0 24px;
  position: sticky;
  z-index: 100;
}
.header .site-title {
  flex-shrink: 0;
}
@media screen and (width > 1024px) {
  .header {
    align-items: center;
    height: 88px;
    justify-content: center;
    gap: 88px;
    top: 0;
  }
  .header .main-nav ul {
    align-items: center;
    display: flex;
    font-size: 16px;
    height: 88px;
  }
  .header .main-nav li {
    height: inherit;
    white-space: nowrap;
  }
  .header .sns-list {
    display: none;
  }
  .header .main-nav ul a {
    align-items: center;
    display: flex;
    height: inherit;
    padding: 0 24px;
  }
  .header .main-nav ul a:hover {
    background: var(--color-primary10);
  }
}

@media screen and (width <= 1024px) {
  .header {
    height: 69px;
    justify-content: space-between;
    flex-wrap: wrap;
    top: -8px;
    padding-top: 24px;
  }
  .header .site-title {
    height: 30px;
  }
  .header .site-title img {
    height: 100%;
    width: auto;
  }
}

/* ハンバーガー */
@media screen and (width > 1024px) {
  .hamburger {
    display: none;
  }
}
@media screen and (width <= 1024px) {
  .menu-open .header {
    background: var(--color-primary10);
  }
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 40px;
    position: relative;
  }

  .hamburger span {
    background: var(--color-text);
    height: 2px;
    width: 100%;
    transition: all 0.3s ease;
  }

  .hamburger.active {
    gap: 0;
  }

  .hamburger.active span:nth-of-type(1) {
    transform: rotate(30deg);
    position: absolute;
    top: 50%;
  }

  .hamburger.active span:nth-of-type(2) {
    transform: rotate(-30deg);
    position: absolute;
    top: 50%;
  }

  .hamburger.active span:nth-of-type(3) {
    opacity: 0;
  }
  .header .navigation {
    height: 0;
    position: absolute;
    top: 69px;
    left: 0;
    opacity: 0;
    visibility: hidden;
  }
  .header .navigation.active {
    align-items: center;
    clip-path: inset(0 -16px -16px -16px);
    display: flex;
    background: var(--color-primary10);
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.25);
    flex-direction: column;
    gap: 16px;
    height: fit-content;
    opacity: 1;
    padding: 16px 24px 56px;
    transition: 0.3s all;
    visibility: visible;
    width: 100%;
    z-index: 10;
  }
  .header .main-nav {
    margin: 0 auto;
    width: 220px;
  }
  .header .main-nav li:not(:last-of-type) {
    border-bottom: solid 1px var(--color-border);
  }
  .header .main-nav a {
    display: block;
    font-size: 20px;
    padding: 24px;
    text-align: center;
  }
  .header .sns-list {
    justify-content: center;
    display: flex;
    gap: 32px;
  }
}

/* =========================
  footer
========================= */
.footer {
  align-items: center;
  background: #fff;
  border-bottom: solid 8px var(--color-primary);
  display: flex;
  flex-direction: column;
}
.footer .site-title img {
  height: 34px;
  width: auto;
}
.footer .navigation {
  align-items: center;
  display: flex;
  flex-direction: column;
}
@media screen and (width > 1024px) {
  .footer {
    gap: 54px;
    padding: 54px 24px 62px;
  }
  .footer .navigation {
    gap: 54px;
  }
}
@media screen and (width <= 1024px) {
  .footer {
    gap: 40px;
    padding: 40px 24px 48px;
  }
  .footer .navigation {
    gap: 40px;
  }
}

.footer .main-nav ul {
  display: flex;
}
@media screen and (width > 1024px) {
  .footer .main-nav ul {
    gap: 48px;
    justify-content: center;
  }
}
@media screen and (width <= 1024px) {
  .footer .main-nav ul {
    align-items: center;
    flex-direction: column;
    gap: 32px;
  }
}

.footer .sns-list {
  display: flex;
  gap: 48px;
  justify-content: center;
}
.footer .sns-list img {
  height: 30px;
  width: auto;
}

/* =========================
  スクロールアニメーション
========================= */
.fade-in {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 遅延アニメーション用 */
.fade-in-delay-1 {
  transition-delay: 0.1s;
}
.fade-in-delay-2 {
  transition-delay: 0.2s;
}
.fade-in-delay-3 {
  transition-delay: 0.3s;
}
.fade-in-delay-4 {
  transition-delay: 0.4s;
}

/* MVコピーは特別にゆっくり */
.mv-copy.fade-in {
  transition-duration: 1.2s;
}

/* =========================
  先頭へ戻るボタン
========================= */
.fxd-btn {
  position: fixed;
  bottom: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.fxd-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fxd-btn a {
  align-items: center;
  background: #fff;
  border: solid 2px var(--color-primary);
  border-radius: 24px;
  display: flex;
  justify-content: center;
  height: 48px;
  margin: auto;
  width: 48px;
}
.fxd-btn a::before {
  border-top: solid 2px var(--color-primary);
  border-right: solid 2px var(--color-primary);
  content: "";
  height: 14px;
  transform: rotate(-45deg);
  position: relative;
  top: 4px;
  width: 14px;
}
