@charset "utf-8";

:root {
  /* 全体背景 */
  --bgColor: #2c1b1c;
  /* キャラクター名の帯 */
  --bgName: #52322c;
  /* キャッチコピー */
  --mainCopy: #e5b08b;
  /* 購入ボタン */
  --toBuy: #7f473e;
  /* オーバーレイ */
  /* --overlay: rgba(44, 27, 28, 0.9); */
  --overlay: rgba(27, 11, 1, 0.9);
  /* ポップアップ背景 */
  --popupBg: #000;
  /* ポップアップ枠 */
  --popupBorder: #52322c;
  /* ポップアップ文章 */
  --popupText: #c99b7a;
  /* ボタン背景 */
  --buttonBg: #2b2b2b;
  /* ボタン内枠 */
  --buttonInner: #000;
  /* ONボタン外枠 */
  --buttonOnOuter: #8c695d;
  /* OFFボタン外枠 */
  --buttonOffOuter: #585757;

  --fontFamily: "DotGothic16", cursive;
}

/* JSでbodyに付与するクラス */
body.is-modal-open {
  overflow: hidden;
}

/* ページ全体のスタイル　主に色 */
body {
  background-color: var(--bgColor);
}
img {
  vertical-align: bottom;
}

.box_top {
  background-color: #fff;
  color: 000000;
}

.detail_box_flex {
  justify-content: space-between;
  column-gap: 3em;
}
.img_notes_2_wrapper img {
  vertical-align: bottom;
}
.fragrance_tx {
  color: var(--mainCopy);
  margin-top: 2rem;
}

.info_area {
  color: #000;
}

.fragrance_text_r2 {
  margin: 0 0 2% 0%;
  color: #fff;
  width: 42%;
}
.img_notes_2 {
  margin: 0;
}

.img_notes_2_wrapper {
  position: relative;
}
.img_notes_2_wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, #1b324d 3%, transparent 3%, transparent 97%, #1b324d 97%);
}

.nametx {
  background-color: var(--bgName);
  z-index: 0;
  line-height: 1;
}
.nametx--ls {
  letter-spacing: 0.2em;
}

.p-under599 {
  display: none;
}

/*  ポップアップ画面に関する ------------------------------------- */
.p-overlay {
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--overlay);
  opacity: 0;
  width: 100vw;
  height: 100vh;
  visibility: none;
  transition: visibility 0.2s, opacity 0.2s;
}
.p-overlay.js-open {
  opacity: 1;
  visibility: visible;
}

.p-caution {
  position: fixed;
  top: 50%;
  left: 50%;
  background-color: var(--popupBg);
  border: 10px solid var(--popupBorder);
  width: 100%;
  height: 100%;
  max-width: 600px;
  max-height: 0px;
  opacity: 0;
  padding: 1em 2em;
  visibility: none;
  transform: translate(-50%, -50%);
  transition: visibility 0.5s, max-height 0.5s, opacity 0.5s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
}
.p-caution.js-open {
  opacity: 1;
  visibility: visible;
  max-height: 360px;
}

/* .p-caution__container {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
} */

/* .p-caution_close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.p-caution_closeSpan {
  font-size: 12px;
  position: absolute;
  top: 33px;
  left: 2px;
  color: #fff;
} */

/* バーの開閉アニメーション ------------------------------------- */
/* .p-caution_close::before,
.p-caution_close::after {
  content: "";
  position: absolute;
  background-color: #fff;
  border-radius: 3px;
  top: 50%;
  left: 50%;
  width: 45px;
  height: 3px;
}
.p-caution_close::before {
  animation-name: bar1;
  animation-duration: 0.3s;
  animation-fill-mode: forwards;
  animation-timing-function: ease;
}
.p-caution.js-open .p-caution_close::before {
  animation-name: bar1_open;
  animation-duration: 0.3s;
  animation-fill-mode: forwards;
  animation-timing-function: ease;
}
@keyframes bar1 {
  0% {
    transform: translate(-50%, -50%) rotate(45deg) scaleX(1);
  }
  50% {
    transform: translate(-50%, -50%) rotate(0deg) scaleX(1);
  }
  100% {
    transform: translate(-50%, -50%) rotate(0deg) scaleX(0);
  }
}
@keyframes bar1_open {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scaleX(0);
  }
  50% {
    transform: translate(-50%, -50%) rotate(0deg) scaleX(1);
  }
  100% {
    transform: translate(-50%, -50%) rotate(45deg) scaleX(1);
  }
}

.p-caution_close::after {
  top: 50%;
  left: 50%;
  width: 3px;
  height: 45px;
  animation-name: bar2;
  animation-duration: 0.3s;
  animation-fill-mode: forwards;
  animation-timing-function: ease;
}
.p-caution.js-open .p-caution_close::after {
  animation-name: bar2_open;
  animation-duration: 0.3s;
  animation-fill-mode: forwards;
  animation-timing-function: ease;
}
@keyframes bar2 {
  0% {
    transform: translate(-50%, -50%) rotate(45deg) scaleX(1);
  }
  50% {
    transform: translate(-50%, -50%) rotate(90deg) scaleX(1);
  }
  100% {
    transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
  }
}
@keyframes bar2_open {
  0% {
    transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
  }
  50% {
    transform: translate(-50%, -50%) rotate(90deg) scaleX(1);
  }
  100% {
    transform: translate(-50%, -50%) rotate(45deg) scaleX(1);
  }
} */
/* バーの開閉アニメーションここまで */

.p-caution__imgBox {
  width: 200px;
  display: flex;
  align-items: center;
}
.p-caution__imgBox img {
  width: 100%;
  max-height: 0px;
  transition: max-height 0.4s;
}

.p-caution.js-open .p-caution__imgBox img {
  max-height: 284px;
}

.p-caution__pBox {
  width: 290px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  /* padding-top: 2em; */
  height: 100%;
  max-height: 0px;
  opacity: 0;
  transition: opacity 0.3s, max-height 0.4s;
}

.p-caution.js-open .p-caution__pBox {
  opacity: 1;
  max-height: 300px;
}

.p-caution__p {
  font-family: var(--fontFamily);
  display: block;
  padding: 0;
  margin: 0;
  color: var(--popupText);
  font-size: 15px;
  line-height: 1.5;
}

/* ポップアップのボタン ------------------------------------- */
.p-audioPlayer {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
}
.pixel-btn {
  color: #fff;
  font-family: var(--fontFamily);
  font-size: 1.25em;
  background-color: var(--buttonBg);
  border: 4px solid var(--buttonOnOuter);
  outline: 4px solid var(--buttonInner);
  outline-offset: -8px;
  text-align: left;
  padding: 0.5em 0em 0.5em 1.5em;
  width: 100px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 2px 2px 0 #111;
  transition: all 0.1s ease-in-out;
  position: relative;
  text-align: center;
}
.pixel-btn--off {
  border: 4px solid var(--buttonOffOuter);
}
.pixel-btn:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}
#playBtn::before,
#stopBtn::before {
  position: absolute;
  content: "";
  width: 1.25em;
  height: 1.25em;
  background-image: url(../img/sound-on.gif);
  background-size: 1.25em;
  background-position: 0;
  background-repeat: no-repeat;
  transform: translateY(-50%);
  top: 50%;
  left: 1em;
}
#stopBtn::before {
  background-image: url(../img/sound-off.gif);
}

@media (max-width: 767px) {
  .fragrance_tx {
    font-size: 1.15em;
    margin-top: 1.5em;
    line-height: 1.5;
  }
  .detail_box_flex {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .fragrance_text_r2 {
    width: 95%;
    margin-top: 8px;
    margin-left: auto;
    margin-right: auto;
  }
  .nametx p {
    font-size: 1.5em;
    line-height: 1;
  }
  .fragrance_note {
    margin: 0;
    padding: 1.5em 0;
  }
  /* .p-caution__imgBox {
    width: auto;
  }
  .p-caution__pBox {
    padding-top: 0;
    justify-content: space-between;
  } */
}

@media (max-width: 650px) {
  .p-caution {
    flex-direction: column;
    max-width: 350px;
  }
  .p-caution.js-open {
    opacity: 1;
    visibility: visible;
    max-height: 600px;
    padding-top: 3em;
    padding-bottom: 3em;
  }
  .p-caution__pBox {
    width: 100%;
    justify-content: space-around;
    gap: 0.5em;
  }
  .p-caution__p {
    font-size: 14px;
  }
  .p-audioPlayer {
    margin-top: 0.5em;
    justify-content: center;
    gap: 2em;
  }
}
