@charset "utf-8";

/* *****************************
メインビジュアル
***************************** */
.mv__body {
  margin-top: 86px;
}

.mv__title {
  width: fit-content;
  margin: 0 auto;
  text-align: left;
}

.mv h1,
.mv__title p {
  font-size: 2.4rem;
  font-weight: 400;
  font-family: "Noto serif JP";
  color: var(--primary-red);
}

.mv__title p {
  font-size: 2.8rem;
}

.mv__title img {
  width: 223px;
  height: auto;
}
/* 音声波形*/
.mv__waveform {
  padding: 0 var(--contentPadding);
  display: flex;
  height: 13px;
  display: flex;
  margin: 30px auto 0;
}

/* 音声波形左側 */
.mv__static-sp {
  width: 169px;
  height: auto;
}

.mv__static-pc,
.wave__line-pc {
  display: none;
}

.mv__dynamic {
  display: flex;
  align-items: center;
  margin-left: 10px;
  justify-content: space-between;
  vertical-align: middle;
}

.mv__dynamic .wave__line-sp:first-of-type {
  width: 60px;
}

.mv__dynamic .wave__line-sp:nth-of-type(3) {
  width: 16px;
  margin-left: 4px;
  margin-top: 1px;
}

.mv__dynamic .wave__line-sp:nth-of-type(5) {
  width: 28px;
  margin-left: 4px;
}

/* 音声波形右側 */
.wave__group {
  margin-left: 4px;
  gap: 4px;
  display: flex;
  vertical-align: middle;
  align-items: center;
}

.wave__group span {
  display: inline-block;
  width: 2px;
  height: 13px;
  background-color: var(--primary-font);
  border-radius: 4px;
  /* アニメーション */
  transform-origin: center;
  animation: wave 1s ease-in-out infinite;
}

/* 音声波形アニメーション */
/* 波形① */
.wave__group:first-of-type span:nth-child(1) {
  height: 3px;
  animation-delay: 0s;
}

.wave__group:first-of-type span:nth-child(2) {
  height: 7px;
  animation-delay: 0.15s;
}

.wave__group:first-of-type span:nth-child(3) {
  height: 14px;
  animation-delay: 0.3s;
}

.wave__group:first-of-type span:nth-child(4) {
  height: 5px;
  animation-delay: 0.45s;
}

/* 波形② */
.wave__group:nth-of-type(2) span:nth-child(1) {
  height: 6px;
  animation-delay: 0.1s;
}

.wave__group:nth-of-type(2) span:nth-child(2) {
  height: 12px;
  animation-delay: 0.25s;
}

.wave__group:nth-of-type(2) span:nth-child(3) {
  height: 5px;
  animation-delay: 0.4s;
}

/* 音声波形アニメーション */
@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.5);
  }

  50% {
    transform: scaleY(1);
  }
} /* 音声波形アニメーションここまで */
/* 音声波形ここまで */

.mv__txt {
  margin-top: 30px;
  font-family: "Noto serif JP";
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.5;
  padding: 0 var(--contentPadding);
  letter-spacing: 0.06em;
  text-align: center;
}

.mv__txt p {
  margin-top: 16px;
}

.mv__txt p:first-of-type {
  margin-top: 0;
}

.mv__catch {
  width: 193px;
  height: auto;
  margin: 0 auto;
}

/* レコードアニメーション*/
.mv {
  --mv-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --record-drop-sp: 245px; /* 落下した位置からの距離 */
  --record-rotate-speed: 16s;
  --reveal-delay: 1s; /* レコードが見えている時間 */
  --text-delay: 1.5s;
  position: relative;
  overflow: hidden;
}

.mv__body {
  position: relative;
  z-index: 2;
}

.mv__record {
  position: relative;
  z-index: 1;
  pointer-events: none;
  margin-bottom: 41px;
}

/* キャッチコピー初期状態 */
.mv__catch {
  margin-top: 30px;
  display: block;
  opacity: 0;
  transform: translateY(0);
  will-change: transform, opacity;
}

/* レコード落下用ラッパー：初期は少し上に置いておく*/
.mv__disk {
  transform: translateY(calc(-1 * var(--record-drop-sp)));
  will-change: transform;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* レコード回転 */
.mv__img {
  display: block;
  width: 135%;
  max-width: none;
  height: auto;
  transform-origin: 50% 50%;
  animation: mvRecordSpin var(--record-rotate-speed) linear infinite;
  will-change: transform;
  filter: drop-shadow(3px 12px 15px #ad9d8d);
}

/* 初期は波形と本文を隠す*/
.mv__waveform {
  opacity: 0;
  transform: translateY(0);
  will-change: transform, opacity;
  justify-content: center;
}

.mv__txt p {
  opacity: 0;
  transform: translateY(0);
  will-change: transform, opacity;
}

/* **アニメーション開始** */
.mv.is-animate .mv__disk {
  animation: mvRecordDrop 4s var(--mv-ease) var(--reveal-delay) forwards;
}

.mv.is-animate .mv__catch {
  animation: mvFadeIn 1.2s var(--mv-ease) 0.75s forwards;
}

.mv.is-animate .mv__waveform {
  animation: mvFadeIn 1.2s var(--mv-ease) 0.95s forwards;
}

.mv.is-animate .mv__txt p:nth-child(1) {
  animation: mvFadeIn 1.2s var(--mv-ease) 1.1s forwards;
}

.mv.is-animate .mv__txt p:nth-child(2) {
  animation: mvFadeIn 1.2s var(--mv-ease) 1.35s forwards;
}

.mv.is-animate .mv__txt p:nth-child(3) {
  animation: mvFadeIn 1.2s var(--mv-ease) 1.5s forwards;
}

.mv.is-animate .mv__txt p:nth-child(4) {
  animation: mvFadeIn 1.2s var(--mv-ease) 1.65s forwards;
}

@keyframes mvRecordSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes mvRecordDrop {
  0% {
    transform: translateY(calc(-1 * var(--record-drop-sp)));
  }
  70% {
    transform: translateY(8px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes mvFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
} /* **アニメーション開始ここまで** */

/* 動きを減らしたい環境向け */
@media (prefers-reduced-motion: reduce) {
  .mv__img {
    animation: none;
  }

  .mv__disk,
  .mv__catch,
  .mv__waveform,
  .mv__txt p {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
} /* **レコードアニメーションここまで** */

/* *****************************
メインビジュアル(pc)
***************************** */
@media screen and (min-width: 768px) {
  /* ＊＊mv__record側（左）＊＊ */
  .mv {
    display: flex;
    flex-direction: row-reverse; /* bodyを右、recordを左に */
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 80px;
  }

  .mv__record {
    position: relative;
    margin-bottom: 0;
  }

  .mv__inner {
    position: relative; /* absoluteをやめる */
    width: 100%;
    right: auto;
  }

  .mv__catch {
    width: 315px;
    margin: 18px 0 0 138px;
  }

  .mv__disk {
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }

  .mv__img {
    width: 854px;
    position: relative;
    left: -138px; /* サイズは変えず位置だけ左に移動させる */
  } /* **mv__body側（右）ここまで** */

  /* **mv__body側（右）** */
  .mv__body,
  .mv__record {
    width: calc(
      (100% - 138px) / 2
    ); /*  左右パディング分をなくし、左右で２等分 */
  }

  .mv__body {
    margin-top: 50px;
    background-color: rgba(
      250,
      247,
      244,
      0.6
    ); /* サイズを小さくした時に文字が見えるように */
    border-radius: 40px;
    padding: 16px;
  }

  .mv__title {
    margin: 0;
  }

  /* 変更点　h2からh1にした */
  .mv__title h1 {
    font-size: 3rem;
  }

  .mv__title img {
    width: 519px;
  }

  .mv__title p {
    font-size: 4rem;
  }

  /* **音形波形** */
  /* 音形波形左側*/
  .mv__waveform {
    margin-top: 50px;
    height: 20px; /* spの時に13pxにしていたら横幅が大きくならないから */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
  }

  .mv__waveform,
  .mv__txt {
    padding: 0;
  }

  .mv__txt {
    text-align: left;
  }

  .mv__static-sp,
  .wave__line-sp {
    display: none;
  }

  .mv__static-pc,
  .wave__line-pc {
    display: block;
  }

  .mv__static-pc {
    width: 261px;
    flex-shrink: 1;
    min-width: 0; /* 1440pxから小さくした時に縮むように */
  }

  /* 音声波形右側 */
  .mv__dynamic {
    margin-left: 13px; /* figmaでは15pxだけど見た目重視 */
  }

  .wave__line-pc {
    margin-left: 7px;
    flex-shrink: 1;
    min-width: 0px; /* 1440pxから小さくした時に縮むように */
  } /* **音形波形ここまで** */

  .mv__txt {
    margin-top: 50px;
  }

  .mv__txt p {
    font-size: 2rem;
  }

  .mv__txt p:nth-child(2) {
    margin-top: 30px;
  } /* **mv__body側（右）ここまで** */
}

/* *****************************
セクションタイトル
***************************** */
.section__title {
  font-family: "Noto serif JP";
  font-size: 3.2rem;
  border-bottom: 1px solid var(--primary-font);
  text-align: center;
  margin: 0 auto;
  line-height: 1;
  padding-bottom: 20px;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.section--future .section__title {
  border-bottom: none;
}

/* *****************************
セクションタイトル(pc)
***************************** */
@media screen and (min-width: 768px) {
  .section__title {
    font-size: 4rem;
  }
}

/* *****************************
more readボタン
***************************** */
.works__btn {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary-red);
  padding: 16px 59px 16px 46px;
  background-color: #fbfcee;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border-radius: 40px;
  /* ホバー時のアニメーション */
  transition: all 0.4s ease-in-out;
  position: relative;
  text-align: center;
  cursor: pointer;
  display: flex;
  width: fit-content;
  margin: 20px auto 0;
  /* 「透明な」線を引いておく */
  border: 1px solid transparent;
}

.works__btn::after {
  position: absolute;
  display: block;
  content: "";
  width: 13px;
  height: 13px;
  background-image: url(../images/works__img-arrowPrimary.svg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
}

.works__btn:hover {
  background-color: #e3d5d5;
  border: solid 1px var(--primary-red);
  cursor: pointer;
}

/* *****************************
Works
***************************** */
.section--works {
  padding: 100px var(--contentPadding) 50px;
  background: linear-gradient(180deg, var(--primary-bg) 0%, #fff 100%);
}
.works__filter {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  margin: 50px auto 0;
  display: flex;
  justify-content: space-between;
}

.works__filter-btn {
  background-color: var(--primary-red);
  color: var(--primary-whiteGray);
  padding: 8px 10px;
  border-radius: 15px;
  /* letter-spacing: 0.06em; */
}

.works {
  margin-top: 70px;
}

.works__item {
  margin-top: 36px;
}

.works__item:first-of-type {
  margin-top: 0;
}

.works__item h3 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.5;
  /* color: var(--primary-red); */
  /* 変更点 */
  color: var(--secondary-red);
}

.works__wrap {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.works__card {
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.25);
  border-radius: 15px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  background-color: #fff;
}

.works__card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.works__card img {
  background-color: #fff;
  border-radius: 15px 15px 0 0;
}

/* バナーのところのみ */
.works__item:nth-of-type(2) img {
  padding: 30px 42px 0;
}

.works__contents {
  padding: 0 20px 20px;
  background-color: #fff;
  border-radius: 15px;
}

.works__tag {
  display: flex;
  gap: 10px;
  align-items: center;
}

.tag__white {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary-red);
  padding: 10px;
  padding: 5px 10px;
  border: 1px solid var(--primary-red);
  border-radius: 50px;
  vertical-align: baseline;
}

.tag__red {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  color: #fbfcee;
  background-color: var(--primary-red);
  padding: 5px 10px 6px;
  border-radius: 50px;
}

.works__title {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 10px;
}

.works__role {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 10px;
}

.works__item:nth-of-type(2) .works__contents {
  padding-top: 20px;
}

.works__item:nth-of-type(3) .works__contents {
  padding-top: 10px;
}

.hide {
  display: none;
}

/* *****************************
Works(pc)
***************************** */
@media screen and (min-width: 768px) {
  .section--works {
    padding: 200px var(--contentPadding) 100px;
  }
  .works__filter {
    gap: 20px;
    justify-content: center;
    margin-top: 65px;
  }

  .works__filter-btn {
    padding: 10px 30px;
    font-size: 2rem;
  }

  .works h3 {
    font-size: 3rem;
  }

  .works {
    margin-top: 75px;
  }

  .works__wrap {
    margin-top: 30px;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }

  .works__item {
    margin-top: 75px;
  }

  .works__item:first-of-type {
    margin-top: 0;
  }
}
/* *****************************
Skill
***************************** */
.section--skill {
  background-color: #fff;
  position: relative;
  z-index: 1; /* 親要素にレイヤーの基準を作る */
  padding-top: 75px;
}

/* **ハートアニメーション** */
/* ハートを置くエリア：背景より手前に来るように設定 */
.skill__hearts {
  position: absolute;
  top: 50px;
  right: 50px;
  width: 150px; /* ハート2つが入るくらいの幅 */
  height: 150px;
  z-index: 10;
  pointer-events: none;
}

.skill__hearts span {
  position: absolute;
  display: block;
  width: 60px; /* ハート1のサイズ */
}

.skill__hearts span img {
  width: 100%;
  height: auto;
}

.skill__hearts .heart-1 {
  top: -10px;
  right: 0;
  width: 52px;
  animation: heart-sway 4s ease-in-out infinite alternate;
}

.skill__hearts .heart-2 {
  top: 30px; /* 1つ目より下にずらす */
  right: 31px; /* 1つ目より左にずらす */
  width: 23px;
  /* 逆向きに揺らすことで「生きている感」を出す */
  animation: heart-sway 3s ease-in-out infinite alternate-reverse;
}

/* 揺れアニメーション：サクラのrotateをベースに改良 */
@keyframes heart-sway {
  0% {
    transform: translateX(0px) rotate(0deg);
  }
  50% {
    transform: translateX(10px) translateY(-5px) rotate(10deg);
  }
  100% {
    transform: translateX(-5px) translateY(-10px) rotate(-10deg);
  }
} /* **ハートアニメーションここまで** */

.section__inner {
  background: linear-gradient(180deg, #fbfcee 32%, rgba(251, 252, 238, 0) 100%);
  border-radius: 187.5px 187.5px 0 0;
  padding: 50px var(--contentPadding);
}

.section--skill .section__title {
  width: 90%;
}

.skill__body {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.skill__title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  padding: 12px 20px;
  background-color: #fff;
  border-radius: 50px;
  border: solid 1px var(--primary-font);
  width: 250px;
  text-align: center;
  display: block;
  margin: 0 auto;
}

.skill__list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill__item {
  padding: 0 20px 20px;
  border-bottom: dashed 1px var(--primary-font);
}

.skill__name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-red);
  line-height: 1.5;
}

.skill__txt {
  font-size: 1.6rem;
  font-weight: 400;
  margin-top: 10px;
}

/* =====================
skill(pc)
===================== */
@media screen and (min-width: 768px) {
  .section--skill {
    padding-top: 100px;
  }

  .section--skill .section__title {
    width: 80%; /* 下線部の長さ調節 */
  }

  /* **ハート** */
  .skill__hearts .heart-1 {
    width: 100px;
    top: 100px;
    right: 60px;
  }

  .skill__hearts .heart-2 {
    width: 45px;
    top: 200px;
    right: 60px;
  } /* **ハートここまで** */

  .section__inner {
    padding: 250px 5.6% 100px; /* 左右パディング138pxのうち80pxだけ黄色がついている(80/1440) */
    margin: 0 4% 0; /* 左右パディング138pxのうち58pxだけ黄色がつい手いない(58/1440) */
    border-radius: 720px 720px 0 0;
  }

  .skill__body {
    margin-top: 65px;
    gap: 54px;
  }

  .skill__title {
    font-size: 3rem;
    width: 350px;
    padding: 16px 20px;
  }

  .skill__list {
    gap: 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .skill__item {
    padding-bottom: 10px;
  }

  .skill__txt {
    margin-top: 16px;
  }
}

/* =====================
マーキー
===================== */
.marquee {
  width: 100%;
  overflow: hidden;
}

.marquee__inner {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee__text {
  font-size: 3.2rem;
  font-weight: 400;
  font-family: "Noto serif JP";
  color: rgba(120, 10, 6, 0.8);
  background-color: #fff;
  flex-shrink: 0;
  margin: 0;
  padding-right: 80px;
  white-space: nowrap;
}

/* 左方向へ流す */
@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* =====================
マーキー(pc)
===================== */
@media screen and (min-width: 768px) {
  .marquee__text {
    font-size: 5.6rem;
  }
}

/* *****************************
About
***************************** */
.section--about {
  background-color: #fff;
  padding: 50px var(--contentPadding) 75px;
}

.section--about .section__title {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.section__subtitle {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-red);
  margin-top: 7px;
}

.about__card {
  padding-top: 50px;
}

.about__item {
  border: solid 3px var(--primary-font);
  background-color: #fff;
  border-radius: 15px;
  padding: 20px;
  height: 532px;
}

.about__img-1 {
  width: 245px;
  border-radius: 15px;
  display: block;
  margin: 0 auto;
}

.about__myname {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.name__ruby {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.06em;
  display: block;
}

.name__kanji {
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.06em;
  display: block;
}

.about__txt {
  margin-top: 24px;
}

.about__txt p {
  font-size: 1.6rem;
  font-weight: 400;
}

.about__txt-2 {
  margin-top: 30px; /* 2段落目margin-top:30pxx開ける */
}

.about__title {
  display: flex;
  align-items: center;
  border-bottom: solid 1px var(--primary-font);
  padding-bottom: 20px;
  gap: 21px;
}

.about__img-etc {
  width: 137px;
  border-radius: 15px;
}

.about__name {
  font-size: 1.8rem;
  font-weight: 700;
  font-weight: 500;
  display: flex;
  align-items: center;
  min-width: 137px;
}

/* ２ページ目のみ変更点 */
.about__txt span {
  font-weight: 700;
}

.about__hobby {
  margin-top: 8px;
}

.about__hobby-title {
  padding: 0 20px 0;
  background-color: var(--primary-red);
  display: inline-flex;
  color: var(--primary-whiteGray);
  border-radius: 5px;
} /* ２ページ目のみ変更点ここまで */

/* ** about ページ切り替え** */
/* 5ページを重ねるための親 */
.about__card {
  position: relative;
  height: 582px; /* 532px + 上のpadding 50px */
  padding-top: 50px;
  margin: 0;
  list-style: none;
}

/* 各ページ */
.about__item {
  position: absolute;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

/* 現在表示しているページ */
.about__item.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 音楽プレイヤー */
.about__player {
  margin-top: 30px;
}

/* 再生位置 */
.about__progress {
  position: relative;
  width: 100%;
  height: 5px;
  border-radius: 6px;
  background-color: #ddd;
  overflow: hidden;
}

/* 現在位置 */
.about__progress span {
  display: block;
  width: 0;
  height: 100%;
  background-color: var(--primary-font);
  border-radius: 6px;
  box-sizing: border-box; /* ★追加 */
}

/* ボタンを横並び */
.about__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

/* 共通ボタン */
.about__btn {
  position: relative;
  width: 25px;
  height: 25px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

/* 押した瞬間 */
.about__btn:active {
  transform: scale(0.85);
}

/* 1つ前へ */
.about__btn--prev::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 18px solid var(--primary-font);
  transform: translate(-60%, -50%);
}

/* 1つ次へ */
.about__btn--next::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 18px solid var(--primary-font);
  transform: translate(-40%, -50%);
}

/* 最初へ */
.about__btn--first span,
.about__btn--last span {
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

/* 最初へ：左向き三角 */
.about__btn--first span:first-child {
  left: 2px;
  border-right: 18px solid var(--primary-font);
  transform: translateY(-50%);
}

/* 最初へ：左の縦線 */
.about__btn--first span:last-child {
  left: 0;
  width: 2px;
  height: 20px;
  border: none;
  background-color: var(--primary-font);
  transform: translateY(-50%);
  border-radius: 1px;
}

/* 最後へ：右向き三角 */
.about__btn--last span:first-child {
  right: 2px;
  border-left: 18px solid var(--primary-font);
  transform: translateY(-50%);
}

/* 最後へ：右の縦線 */
.about__btn--last span:last-child {
  right: 0;
  width: 2px;
  height: 20px;
  border: none;
  background-color: var(--primary-font);
  transform: translateY(-50%);
  border-radius: 1px;
}

/* 再生・停止ボタン */
.about__btn--play {
  position: relative;
  width: 32px;
  height: 32px;
  border: 2px solid var(--primary-font);
  border-radius: 50%;
}

/* 中の記号 */
.about__btn--play span {
  position: absolute;
  top: 50%;
  width: 3px;
  height: 11px;
  background-color: var(--primary-font);
  transform: translateY(-50%);
  transition: all 0.2s ease;
}

/* 2本の棒 */
.about__btn--play span:first-child {
  left: 10px;
}

.about__btn--play span:last-child {
  right: 10px;
}

/* 停止中 → ▶ */
.about__btn--play.is-paused span:first-child {
  left: 12px;
  width: 0;
  height: 0;
  background-color: transparent;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid var(--primary-font);
  transform: translateY(-50%);
}

.about__btn--play.is-paused span:last-child {
  display: none;
}

/* 中央ボタン */
.about__btn--play {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 2px solid var(--primary-font);
  border-radius: 50%;
  background: transparent;
}

/* Ⅱ */
.about__btn--play span {
  position: absolute;
  top: 50%;
  width: 3px;
  height: 14px;
  background-color: var(--primary-font);
  transform: translateY(-50%);
  border-radius: 1px;
}

.about__btn--play span:first-child {
  left: 10px;
}

.about__btn--play span:last-child {
  right: 10px;
}

/* 停止したら ▶ */
.about__btn--play.is-paused span:first-child {
  left: 10px;
  width: 0;
  height: 0;
  background: transparent;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid var(--primary-font);
  transform: translateY(-50%);
}

.about__btn--play.is-paused span:last-child {
  display: none;
} /* ** about ページ切り替えここまで** */

/* **ページトップボタンを隠すアニメーション** */
.button-area {
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease !important;
}

/* is-hidden クラスがついた時に透明にする */
.button-area.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
} /* **ページトップボタンを隠すアニメーションここまで** */

/* =====================
about(pc)
===================== */
@media screen and (min-width: 768px) {
  .section--about {
    padding: 150px var(--contentPadding) 100px;
  }

  /* セクションタイトルも枠内に含める */
  .about__inner {
    border: solid 3px var(--primary-font);
    border-radius: 15px;
    padding: 20px 80px 65px;
  }

  .section__subtitle {
    font-size: 2rem;
  }

  .about__card {
    height: 365px; /* margin-top:50px+写真の高さ311px */
    padding: 50px 0 0 0;
  }

  /* PCでは画像＋見出し＋本文をGridで配置 */
  .about__item {
    border: none;
    display: grid;
    grid-template-rows: auto 1fr;
    column-gap: 36px;
    justify-content: flex-start;
    padding: 0;
    height: auto; /* スマホ版の時にサイズを固定していたから */
  }

  /* .about__titleの箱をなくして、中身を.about__itemのGridに参加させる */
  .about__title {
    display: contents;
  }

  .about__img-1,
  .about__img-etc {
    width: 285px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 15px;
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .about__name {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    min-width: 0;
    margin: 0;
    margin-top: 16px; /* １ページ目のふりがな分の高さ */
    font-size: 2.8rem;
    line-height: 1.5;
    letter-spacing: 0.06em;
    font-weight: 500;
  }

  .about__txt {
    grid-column: 2;
    grid-row: 2;
    margin-top: 30px;
  }

  .about__txt-2 {
    margin-top: 20px;
  }

  .about__myname {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    justify-content: flex-start;
  }

  .about__hobby {
    margin-top: 20px;
  }

  .about__player {
    margin-top: 56px;
  }

  .about__progress {
    width: 50%;
    margin: 0 auto;
  }
}

/* *****************************
about(カードのサイズ調節）
***************************** */
/* 768pxから900pxの間だけに適用 */
@media screen and (min-width: 768px) and (max-width: 900px) {
  .about__card {
    height: 440px;
  }
}

/* *****************************
Future
***************************** */
.section--future {
  padding: 75px var(--contentPadding);
  background-color: #faf9f6;
  position: relative;
  overflow: hidden;
  background-image: url(../images/future__bg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* mvで使用しているものと同じ */
.future__waveform {
  opacity: 1;
  padding: 0;
}

.future__subtitle {
  margin-top: 30px;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.8;
  text-align: center;
}

.future__list {
  padding: 0;
  list-style: none;
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.future__card {
  border-radius: 15px;
  padding: 27px 20px 20px;
  background-color: #fff;
  position: relative;
  transition: transform 0.3s ease;
  border: solid 2px var(--primary-font);
}

.future__card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.track__num {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 1.2rem;
  color: rgba(120, 10, 6, 0.3);
}

.card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
}

.card__icon {
  font-size: 1.8rem;
  color: var(--primary-red);
}

.future__card h3 {
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--primary-red);
}

/* カード内区切り線 */
.card__divider {
  display: flex;
  align-items: center;
  margin-top: 12px;
}

.d-line {
  flex: 1;
  height: 1px;
  background: rgba(120, 10, 6, 0.5);
}

.d-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(120, 10, 6, 0.5);
  margin: 0 10px;
}

.future__card p {
  font-size: 1.6rem;
  font-weight: 400;
  margin-top: 20px;
}

/* **波形アニメーション** */
.waveform-footer {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
  margin-top: 50px;
}

.waveform-footer .bar {
  width: 3px;
  background: var(--primary-red);
  border-radius: 2px;
  opacity: 0.3;
  animation: wave 1.2s ease-in-out infinite;
}

.waveform-footer .bar:nth-child(even) {
  animation-delay: 0.2s;
}

.waveform-footer .bar:nth-child(3n) {
  animation-delay: 0.4s;
}

@keyframes wave {
  0%,
  100% {
    height: 8px;
  }
  50% {
    height: 28px;
  }
} /* **波形アニメーションここまで** */

/* *****************************
Future
***************************** */
@media screen and (min-width: 768px) {
  .section--future {
    padding: 150px var(--contentPadding) 100px;
  }

  .future__list {
    flex-direction: row;
  }

  .staff-line {
    margin-top: 20px;
  }

  .future__subtitle {
    margin-top: 45px;
  }

  .future__waveform {
    justify-content: center;
  }
}

/* *****************************
pagetopへ
***************************** */
.button-area {
  position: fixed;
  right: 14px;
  bottom: 20px;
  z-index: 150;
  opacity: 80%;
}

.top-button {
  width: 88px;
  display: block;
  opacity: 0;
  transform: translateY(50px);
  pointer-events: none;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

/* 表示 */
.top-button.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ホバー */
.top-button:hover {
  transform: translateY(0) scale(1.1);
}

/* フワフワ */
.top-button.fuwafuwa-rotate {
  animation: fuwafuwa-rotate 3s ease-in-out infinite alternate;
}

/* メニューが開いたら消す */
body:has(.nav.active) .button-area {
  display: none !important;
}

/* フワフワアニメーション */
@keyframes fuwafuwa-rotate {
  0% {
    transform: translateY(0) rotate(-3deg);
  }

  100% {
    transform: translateY(-8px) rotate(3deg);
  }
}

/* *****************************
pagetopへ(pc)
***************************** */
@media screen and (min-width: 768px) {
  .button-area {
    display: none;
  }
}

/* ************************************
モーダル背景
************************************ */
.works--modal__backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;

  background: rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

/* モーダルが開いたとき */
.works--modal__backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ************************************
モーダル(read moreをクリックしたら詳細が表示）
************************************ */
/* モーダル全体の背景（最初は隠す） */
.works--modal {
  position: fixed;
  inset: 0; /* 画面いっぱいに広げる */
  z-index: 9999;
  background-image: url(../images/future__bg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  visibility: hidden;
  opacity: 0;
  transform: translateY(100%); /* 画面の下に隠す */
  transition:
    transform 0.5s ease,
    opacity 0.3s ease,
    visibility 0.5s;
}

/* 表示 */
.works--modal.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* モーダルの中身だけスクロール */
.works--modal__scroll-area {
  width: 100%;
  height: 100%;
  overflow-y: auto; /* はみ出した時に縦方向にスクロールできるように */
}

/* モーダル内のfadeInは強制表示 */
.works--modal__content .fadeIn {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* **閉じるボタン** */
.works--modal__close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  width: 42px;
  height: 42px;
  background-color: rgb(230 194 113 / 80%);
  border-radius: 50%;
  cursor: pointer;
  text-align: center;
}

.works--modal__close img {
  width: 24px;
  height: 17px;
} /* **閉じるボタンここまで** */

/* ************************************
モーダル(pc）
************************************ */
/* モーダル以外の画面＆閉じるボタン＆escをクリックとモーダル閉じる */
@media screen and (min-width: 768px) {
  .works--modal {
    position: fixed;
    top: 3vw;
    left: 5vw;
    width: 90vw;
    height: 90vh;
    background-color: var(--secondary-bg);
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.25);
    border-radius: 15px;
    overflow: hidden; /* ← 追加 */
  }

  .works--modal__scroll-area {
    width: 100%;
    height: 100%;
    overflow-y: auto;
  }
}

#modal {
  display: none;
}

#modal.is-open {
  display: block;
}
