html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--base);
  color: var(--brown);
  font-family: var(--font-ja);
}

:root {
  /*カラー*/
  --base: #FFFAD4;
  --wine: #6F1420;
  --brown: #45210E;
  --orange: #E1AB58;
  --dark-orange: #B84113;
  /*スペース*/
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  /* フォント */
  --font-ja: "Noto Sans JP", sans-serif;
  --font-en: "Alfa Slab One", serif;
}

a {
  color: var(--wine);
  text-decoration: none;
}

p {
  line-height: 1.75;
  margin-bottom: 16px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background-color: var(--dark-orange);
  color: var(--base);
  padding: 2%;
  font-weight: bold;
  font-size: clamp(14px, 2vw, 16px);
  letter-spacing: 0.02em;
  text-align: center;
  clip-path: polygon(10px 0,
      calc(100% - 10px) 0,
      100% 10px,
      100% calc(100% - 10px),
      calc(100% - 10px) 100%,
      10px 100%,
      0 calc(100% - 10px),
      0 10px);
  max-width: 320px;
  margin: 0 auto;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease
}

/* ホバー */
.btn:hover {
  background-color: var(--orange);
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(2px);
}

.en {
  font-family: var(--font-en);
}

.pc-only {
  display: none;
}

.sp-only {
  display: block;
}

.attention {
  color: var(--dark-orange);
  font-weight: bold;
}

.strong {
  font-size: clamp(18px, 2vw, 20px);
  font-weight: bold;
}

.section {
  padding: 48px 0;
}

.wrapper {
  width: min(100% - 48px, 1100px);
  margin-inline: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 1s;
  transform: translateY(50px);
}

.wrapper.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0px);
}


.section-title {
  font-size: clamp(18px, 6.5vw, 64px);
  margin-bottom: var(--space-3);
  letter-spacing: 2px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.section-title__ja {
  font-family: var(--font-ja);
  font-weight: bold;
  font-size: clamp(16px, 3vw, 32px);
  text-align: center;
}

.section-title__en {
  font-family: var(--font-en);
  text-align: center;
  font-size: clamp(24px, 4.5vw, 63px);
  line-height: 1.5;
  color: var(--wine);
}


.heading-m {
  font-size: clamp(18px, 5vw, 32px);
  font-family: var(--font-ja);
  margin-bottom: var(--space-3);
  letter-spacing: 2px;
  line-height: 1.5;

}

.heading-s {
  font-size: clamp(14px, 2.5vw, 18px);
  font-family: var(--font-ja);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* =========================
   ヘッダー
========================= */

.tape {
  background-image: url(../img/tape_new.png);
  background-size: contain;
  width: 100%;
  height: 40px;
  background-repeat: repeat-x;
}

.logo {
  width: 100%;
  margin: 0 auto;
  position: relative;
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 1;
}

.logo {
  animation: logo-pop 0.8s ease-out both;
}

@keyframes logo-pop {
  0% {
    opacity: 0;
    transform: scale(0.75);
  }

  70% {
    opacity: 1;
    transform: scale(1.015);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}


.logo img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 80%;
}

.logo::before {
  content: "";
  position: absolute;
  bottom: -35%;
  left: -5%;
  z-index: -1;
  background-image: url(../img/cassette.png);
  max-width: 40%;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  transform: rotate(8deg);
  background-position: bottom;
}

.logo::after {
  content: "";
  position: absolute;
  bottom: -35%;
  right: -5%;
  z-index: -1;
  background-image: url(../img/cd_red_turn.png);
  max-width: 40%;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom;
  animation: record-rotate 30s linear infinite;
}

.header {
  position: fixed;
  top: 40px;
  left: 0;
  z-index: 1000;
  background: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 30px 0;
  box-sizing: border-box;
  backdrop-filter: blur(3px);

}

.header.is-scrolled {
  top: 0;
}

.header-logo {
  margin: 0;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  width: 30px;
  height: 22px;
  padding: 0;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #333;
}

.header__inner {
  width: 100%;
}


.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 24px;
}

.header__title {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.header__sub-title {
  display: inline;
  font-size: clamp(12px, 2vw, 14px);
}

/* =========================
   ハンバーガー
========================= */

.header__hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 5px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.header__hamburger span {
  width: 28px;
  height: 3px;
  background: var(--wine);
  border-radius: 3px;
  transition: 0.3s;
}

/* ×変形 */
.header__hamburger.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.header__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================
   ナビ（SPスライド）
========================= */
.header__logo {
  width: clamp(180px, 10vw, 280px);
}

.header-sp__nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 60%;
  height: 100vh;
  background: var(--orange);
  transform: translateX(100%);
  transition: 0.3s ease;
  padding: 80px 20px;
  z-index: 1000;
}

.header-sp__nav.is-open {
  transform: translateX(0);
}

/* メニュー */
.header-sp__menu {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  font-family: var(--font-ja);
  font-weight: bold;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

/* =========================
   mv
========================= */

.mv {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #fffad4;
  margin-top: 90px;
}

.mv--decoration {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.mv__character {
  margin-top: 12%;
  margin-bottom: -6px;
  position: relative;
}

.mv__character img {
  display: block;
  width: 100%;
  max-width: 70%;
  margin: 0 auto;
  box-sizing: border-box;
  animation: character-pop 0.8s ease-out 0.5s both;
}

@keyframes character-pop {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  65% {
    opacity: 1;
    transform: translateY(-8px);
  }

  85% {
    transform: translateY(3px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.mv__character .speech {
  position: absolute;
  top: 20%;
  right: 12%;
  transform: rotate(8deg);
  max-width: 35%;
  animation: speech-in 0.5s ease-out 1.1s both;
}

@keyframes speech-in {
  from {
    opacity: 0;
    transform: rotate(8deg) scale(0.7);
  }

  to {
    opacity: 1;
    transform: rotate(8deg) scale(1);
  }
}

.mv__character::before,
.mv__character::after {
  content: "";
  position: absolute;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: 0;
}

.mv__character::before {
  width: 80%;
  height: 80%;
  max-width: 20%;
  top: -5%;
  left: -2%;
  background-image: url("../img/star.png");
  opacity: 0;
  transform: scale(0.3) rotate(-30deg);
  transform-origin: center;

  animation: star-pop 0.6s ease-out 0.9s forwards;
}

@keyframes star-pop {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-30deg);
  }

  70% {
    opacity: 1;
    transform: scale(1.2) rotate(10deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}


.mv__character::after {
  width: 100%;
  height: 100%;
  max-width: 30%;
  top: -50%;
  right: -12%;
  background-image: url("../img/cd_yellow.png");
  opacity: 0;
  animation:
    record-appear 0.5s ease-out 0.6s forwards,
    record-rotate 8s linear 1.4s infinite;
}

@keyframes record-appear {
  from {
    opacity: 0;
    transform: scale(0.6) rotate(-30deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes record-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* =========================
  welcome
========================= */

.welcome {
  position: relative;
  background-image: url(../img/bg/oldpaper1.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  padding: 48px 0 62px 0;
}

.welcome__content {
  background-color: #FFFFFFCC;
  padding: 10% 2%;
}

main ul {
  width: fit-content;
  margin: 0 auto 16px auto;
}

main ul li {
  list-style-type: disc;
  margin-left: 1.25em;
  line-height: 1.75;
}

.welcome__text p {
  text-align: center;
}


.welcome__text .strong {
  margin-bottom: 0;
}

.drbrown_logo {
  width: clamp(85px, 2vw, 100px);
  padding: 4px 4px 2.5% 4px;
}

iframe {
  aspect-ratio: 16 / 9;
  padding: 0 2%;
  box-sizing: border-box;
}

/* =========================
join
========================= */

.join {
  background-color: var(--orange);
  background-image: url("../img/bg/noise_bg.png");
  background-size: contain;
  background-position: top center;
  position: relative;
}

.join::after {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  width: 100%;
  aspect-ratio: 2000 / 141;
  background-image: url(../img/zigzag_noise.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transform: translateY(calc(-65% + 1px));
  pointer-events: none;
  z-index: 2;
}

.join .section-title {
  margin-bottom: var(--space-5);
}

.join__content {
  display: grid;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.join__frame {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  pointer-events: none;
}

.join__frame {
  display: grid;
  grid-area: 1 / 1;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  pointer-events: none;
}

.join__frame-top,
.join__frame-bottom {
  display: block;
  width: 100%;
  height: auto;
}

.join__frame-middle {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: fill;
}

.join__inner {
  grid-area: 1 / 1;
  z-index: 1;
  box-sizing: border-box;
  padding: 10% 10% 18%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.join__text-wrap {
  width: 100%;
  max-width: 868px;
  margin: var(--space-4) auto;
  box-sizing: border-box;
}

.join__title {
  color: var(--dark-orange);
  font-family: var(--font-en);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: var(--space-1);
  line-height: 1;
}

.join__number {
  font-size: clamp(48px, 5vw, 80px);
}

.join__heading {
  color: var(--wine);
  font-size: clamp(18px, 3vw, 42px);
  font-weight: bold;
  margin-bottom: var(--space-1);
}

.join__step {
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
}

.join__step::after {
  content: "";
  height: 1px;
  width: 50%;
  background-color: var(--brown);
}

.join__step::before {
  content: "";
  height: 1px;
  width: 50%;
  background-color: var(--brown);
}

.join ul {
  width: 100%;
}

.join__img {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--space-3);
}

.join__img img {
  display: block;
  width: 100%;
}


/* =========================
  later
========================= */

.later {
  position: relative;
}

.later::before {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  width: 100%;
  aspect-ratio: 1440 / 100;
  background-image: url(../img/zigzag_white.svg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transform: translateY(calc(-50% + 1px));
  pointer-events: none;
  z-index: 2;
}

.later__content {
  padding: 0% 10%;
}

.later__heading {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 5px;
  margin-bottom: var(--space-2);
}

.later__number {
  font-size: clamp(18px, 2vw, 42px);
  font-family: var(--font-en);
  color: var(--dark-orange);
  margin-bottom: -2px;
}

.later__title {
  font-size: clamp(16px, 4vw, 32px);
  font-family: var(--font-ja);
  font-weight: bold;
}

.later__text-wrap {
  width: 100%;
  max-width: 868px;
  margin: var(--space-4) auto;
  box-sizing: border-box;
}

.later__lead {
  text-align: center;
  margin-bottom: var(--space-3);
}

.later__img {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.later__img img {
  display: block;
  width: 100%;
}

/* =========================
  footer
  ========================= */

.footer {
  text-align: center;
  font-size: clamp(12px, 3vw, 16px);
  background: var(--orange);
  background-image: url("../img/bg/noise_bg.png");
  background-size: contain;
  background-position: top center;
  padding: var(--space-5) 0;
  position: relative;
}


.footer::after {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  width: 100%;
  aspect-ratio: 2000 / 141;
  background-image: url(../img/zigzag_noise.png);
  background-size: contain;
  background-repeat: repeat;
  transform: translateY(calc(-55% + 1px));
  pointer-events: none;
  z-index: 2;
}

.footer .wrapper {
  opacity: 1;
  visibility: visible;
  transform: translateY(0px);
}

.footer p {
  text-align: center;
  font-weight: bold;
}

.footer .en {
  font-size: clamp(16px, 10vw, 20px);
}

.footer__accent {
  color: var(--wine);
  text-align: center;
  font-size: clamp(48px, 12vw, 128px);
  font-weight: bold;
  font-family: var(--font-en);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.footer .btn {
  background-color: var(--wine);
  margin-bottom: var(--space-4);
}

.footer .btn:hover {
  background-color: var(--dark-orange);
  transform: translateY(-3px);
}

.footer__logo {
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 0 auto var(--space-3) auto;
}

.footer small {
  display: block;
  text-align: center;
  font-weight: bold;
}

/* =========================
   PCPCPCPCPCPCPCPCPCPCPCPC
    ========================= */

@media (min-width: 768px) {
  .section {
    padding: 160px 0;
  }

  .pc-only {
    display: block;
  }

  .sp-only {
    display: none;
  }

  .tape img {
    height: 80px;
  }

  .tape {
    height: 80px;
  }

  p {
    margin-bottom: var(--space-3);
  }

  /* =========================
   PC header
    ========================= */

  .header {
    top: 80px;
  }

  .header-pc__nav {
    position: relative;
    width: 100%;
    height: 100%;
    background: none;
    transform: translateX(0);
    transition: none;
    padding: 0;
    z-index: 1000;
  }

  .header-pc__menu {
    display: flex;
    color: var(--wine);
    gap: var(--space-2);
    font-family: var(--font-ja);
    font-weight: bold;
    letter-spacing: 0.018em;
  }

  .header-pc__menu li a {
    transition: opacity 0.3s ease;
  }

  .header-pc__menu li a:hover {
    opacity: 0.65;
  }

  /* =========================
    PC MV
    ========================= */

  .mv--decoration {
    max-width: 1440px;
    margin: 0 auto;
  }

  .mv--decoration img {
    max-width: 40%;
  }

  .mv__character::after {
    top: -63%;
  }

  .logo img {
    max-width: 60%;
  }

  @media screen and (min-width: 768px) and (max-width: 1599px) {
    .mv--decoration {
      width: 70%;
      top: 58%;
    }

  }

  /* =========================
    PC welcome
    ========================= */

  .welcome {
    background-repeat: repeat;
    background-size: auto;
    padding: 160px 0 200px 0;
  }

  .welcome__content {
    max-width: 1000px;
    padding: 4%;
  }

  main ul {
    margin-bottom: var(--space-3);
  }


  .drbrown_logo {
    padding: 4px 4px 1.5% 4px;
  }

  /* =========================
    PC join
    ========================= */

  .join__inner {
    padding: 10% 5% 18%;
  }

  .join__img {
    flex-direction: row;
  }

  .join__img img {
    width: 50%;
  }

  /* =========================
    PC later
    ========================= */

  .later__content {
    padding: 0 5%;
  }

  .later__img {
    flex-direction: row;
  }

  .later__img img {
    width: 50%;
  }


  /* =========================
    PC footer
    ========================= */

  .footer {
    padding-top: var(--space-7);
    background-size: cover;
  }

}