/**
 * Custom styles for single-symptoms-custom.php
 * Used by: blister, foot-care, blister2
 */

/* ========================================
   Base Styles
   ======================================== */

.bl_breadcrumb {
  max-width: 1380px;
  margin-inline: auto;
  margin-top: 60px;
}

.ly_cont {
  padding-block: 40px;
}

/* Text Color Utilities */
.el_txtPink {
  color: #de6476;
}

.el_txtBlue {
  color: #4c829a;
}

/* キャンセル */
.ly_consult {
  padding-block: unset;
}

.bl_cta_storeImg {
  display: none;
}

/* ========================================
   FV Section
   ======================================== */

html {
  overflow-x: hidden;
}

body {
  position: relative;
  overflow-x: hidden;
}

.ly_fv {
  position: relative;
  overflow: hidden;
}

.ly_fv::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../../img/cutomSymptom/fv-bg-sp.svg');
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% auto;
  z-index: 0;
  pointer-events: none;
}

.ly_fv .ly_cont {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding-block: 0 40px;
}

/* FV Copy Section - 背景画像 */
.bl_copy {
  position: absolute;
  width: 275px;
  padding-block: 32px;
  background-image: url('../../img/cutomSymptom/fv-copy-bg.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.bl_copy p {
  text-align: center;
  text-shadow:
    -2px -2px 0 #ffffff,
    2px -2px 0 #ffffff,
    -2px 2px 0 #ffffff,
    2px 2px 0 #ffffff,
    -2px 0 0 #ffffff,
    2px 0 0 #ffffff,
    0 -2px 0 #ffffff,
    0 2px 0 #ffffff;
}

/* FV Main Image */
.bl_fvMain {
  display: block;
  width: 100%;
  margin-top: 120px;
  max-width: 460px;
  margin-inline: auto;
}

.bl_fvMain_imgWrap {
  position: relative;
}

/* FV Main Image - 縦書きテキスト */
.bl_fvMain_imgWrap p {
  position: absolute;
  top: 40px;
  right: 0;
  z-index: 10;
  padding: 8px;
  background-color: #ffffffa1;
  border-radius: 8px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* 縦書きの字下げ（2文字分） */
.bl_fvMain_imgWrap p .el_fvText_indent {
  padding-top: 2em;
}

/* FV Content Wrap */
.bl_fvCont_wrap {
  position: relative;
  z-index: 10;
  display: block;
  width: calc(100% -20px);
  margin-top: -40px;
  margin-inline: auto;
  max-width: 435px;
}

.bl_fvPoints {
  display: flex;
  justify-content: space-between;
}

.bl_fvCont_subTxt {
  position: relative;
  display: flex;
  justify-content: center;
}

.bl_fvCont_subTxt p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -64%);
  white-space: nowrap;
  word-break: keep-all;
}

/* ========================================
   BEFORE & AFTER Section
   ======================================== */

/* 複数のスライダーを囲むコンテナ */
.bl_ba_container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.bl_ba_wrapper {
  width: 100%;
  max-width: 445px;
  padding-inline: 20px;
  padding-block: 20px 7px;
  margin-inline: auto;
  background-color: #4c829a;
  border-radius: 8px;
}

/* Before/After Slider */
.ba-slider {
  position: relative;
  width: 100%;
  max-width: 445px;
  margin: 0 auto;
}

.ba-slider__container {
  position: relative;
  width: 100%;
  max-height: 335px;
  border-radius: 8px;
  overflow: hidden;
  user-select: none;
}

.ba-slider__after-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.ba-slider__after {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.ba-slider__before-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.ba-slider__before {
  width: 445px;
  max-width: none;
  height: 100%;
  width: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.ba-slider__handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  cursor: ew-resize;
  transform: translateX(-50%);
  z-index: 2;
}

.ba-slider__handle::before,
.ba-slider__handle::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  transform: translateY(-50%);
}

.ba-slider__handle::before {
  left: -10px;
  border-width: 8px 8px 8px 0;
  border-color: transparent #000 transparent transparent;
  z-index: 2;
}

.ba-slider__handle::after {
  right: -9px;
  border-width: 8px 0 8px 8px;
  border-color: transparent transparent transparent #000;
}

.ba-slider__handle-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
}

.ba-slider__label {
  position: absolute;
  top: 20px;
  font-size: 14px;
  font-weight: bold;
  color: #de6476;
  background: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  z-index: 0;
}

.ba-slider__label--before {
  left: 20px;
}

.ba-slider__label--after {
  right: 20px;
}

/* スライダー下の注意書き */
.el_ba_note {
  text-align: center;
  font-size: 12px;
  color: #ffffff;
}

/* ========================================
   CV Section
   ======================================== */
.bl_ctaWrap {
  position: relative;
  max-width: 960px;
  margin-inline: auto;
}

.bl_ctaWrap img {
  width: 100%;
  height: 100%;
}

.el_ctaBtn_wrap {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
}

.el_ctaBtn_subTxt {
  position: absolute;
  top: 0%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: 143px;
  z-index: 2;
}

/* CTAボタン */
.el_ctaBtn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  width: 100%;
  height: 60px;
  background-color: #00b900;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}


/* ========================================
   RECOMMEND Section
   ======================================== */
.ly_recommend>.ly_cont>.bl_secTtl.el_txtBlue p,
.ly_recommend>.ly_cont>.bl_secTtl.el_txtBlue {
  color: #4c829a;
}

.ly_recommend>.ly_cont>.bl_secTtl.el_txtBlue span {
  background: #4c829a;
}

.ly_recommend ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ly_recommend ul li {
  display: flex;
  align-items: flex-start;
  flex-direction: row;
  gap: 8px;
}

.ly_recommend .ly_cont .el_imgWrap {
  width: 140px;
  height: 140px;
  border-radius: 8px;
}

.el_recommendComment {
  display: flex;
  flex-direction: column;
  text-align: center;
  width: 60%;
  gap: 8px;
  justify-content: space-evenly;
}

.el_recommendComment .el_recommendComment_position {
  color: #fff;
  background-color: #4c829a;
  border-radius: 4px;
}

.el_recommendComment_txt {
  text-align: justify;
  letter-spacing: normal;
}

/* ========================================
   CUSTOMER VOICE Section
   ======================================== */
.ly_customer_voice .bl_fvCont_subTxt img {
  max-width: 400px;
}

.ly_customer_voice .bl_fvCont_subTxt p {
  font-weight: 500;
}

/* Customer Voice 画像ラッパー */
.ly_customerVoice_imgWrap {
  width: 100%;
}

/* スマホ用：グリッド表示 */
.bl_customerVoice_grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
}

.bl_customerVoice_grid img {
  width: 33%;
  height: auto;
}

.bl_customerVoice_scroll_container {
  display: none;
}

/* 無限スクロールアニメーション（メディアクエリ外で定義） */
@keyframes infinity-scroll-left {
  from {
    transform: translateX(0);
  }

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

@keyframes infinity-scroll-right {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.ly_customer_voice {
  margin-inline: unset;
}

/* ========================================
   VALUE Section
======================================== */
.bl_value_list ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 32px;
  margin-top: 40px;
  max-width: 1220px;
  margin-inline: auto;
}

.bl_value_list ul li {
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}


.bl_value_item {
  max-width: 335px;
}

.bl_value_item_img {
  position: relative;
}

.bl_value_item_img p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  z-index: 1;
}

.bl_value_item>p,
.bl_nlmSalon {
  margin-top: 16px;
}

.bl_nlmSalon {
  position: relative;
}

.bl_nlmSalon p:first-child {
  width: fit-content;
  padding-block: 4px;
  padding-inline: 6px;
  border: 1px solid rgb(0, 0, 0);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  background: rgb(255, 255, 255);
}

.bl_nlmSalon p:last-of-type {
  width: 100%;
  padding-block: 8px;
  padding-inline: 6px;
  border: 1px solid rgb(0, 0, 0);
  border-radius: 0 4px 4px 4px;
  background: rgb(255, 255, 255);
}

.bl_nlmSalon img {
  position: absolute;
  top: 0;
  right: 0;
  transform: translateX(-50%);
}

.ly_consult .ly_cv .ly_cont {
  padding-inline: unset;
}

/* ========================================
   Responsive Design（レスポンシブ対応）
   ======================================== */

/* タブレット（768px以上） */
@media screen and (min-width: 768px) {
  .bl_breadcrumb {
    padding-top: 100px;
    margin-top: 0px;
  }

  .ly_fv::before {
    display: none;
  }

  body::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -50%;
    width: 170%;
    max-width: 1192px;
    height: 120vh;
    background-image: url('../../img/cutomSymptom/fv-bg.svg');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: contain;
    z-index: 0;
    pointer-events: none;
  }

  .bl_cta_storeImg {
    display: unset;
  }

  .ly_fv .ly_cont {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-end;
  }

  .bl_copy {
    width: 100%;
    max-width: 315px;
    padding-block: 40px;
    position: unset;
  }

  .bl_copy p {
    font-size: 18px;
    font-weight: 500;
  }

  .bl_fvMain_imgWrap p {
    font-size: 20px;
    font-weight: 600;
  }

  .bl_fvCont_wrap {
    position: unset;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }

  .bl_customerVoice_grid {
    display: none;
  }

  /* タブレット以上用：CSSアニメーション無限スクロール（2列） */
  .bl_customerVoice_scroll_container {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .bl_customerVoice_scroll {
    width: 100%;
  }

  .bl_customerVoice_scroll_wrap {
    display: flex;
    overflow: hidden;
    width: max-content;
    animation: infinity-scroll-left 180s infinite linear;
  }

  .bl_customerVoice_scroll_reverse .bl_customerVoice_scroll_wrap {
    transform: translateX(-50%);
    animation: infinity-scroll-right 180s infinite linear;
  }

  /* JavaScriptで制御する場合はCSSアニメーションを無効化 */
  .js-scroll-control .bl_customerVoice_scroll_wrap {
    animation: none !important;
  }

  .js-scroll-control .bl_customerVoice_scroll_reverse .bl_customerVoice_scroll_wrap {
    animation: none !important;
  }

  .bl_customerVoice_scroll_list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
  }

  .bl_customerVoice_scroll_item {
    flex-shrink: 0;
    width: auto;
    height: 180px;
    margin-right: 20px;
  }

  .bl_customerVoice_scroll_item img {
    width: auto;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .bl_ba_container {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
  }

  .bl_ba_wrapper {
    flex: 1;
    max-width: calc(50% - 10px);
  }

  .el_ctaBtn_wrap {
    bottom: 10%;
    left: unset;
    right: 6%;
    transform: unset;
    width: calc(60% - 40px);
    max-width: 500px;
  }

  .ly_recommend ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
  }

  .ly_recommend ul li {
    width: 48%;
    justify-content: space-around;
  }

  .ly_cta {
    margin-bottom: unset;
  }

  .ly_cont.ly_symptoms {
    padding-block: unset;
  }

  .ly_footer {
    margin-top: 120px;
  }
}

/* デスクトップ（1000px以上） */
@media screen and (min-width: 1000px) {
  .bl_breadcrumb {
    padding-top: 140px;
  }

  body::before {
    top: -2%;
    max-width: 1242px;
  }

  .bl_fvMain {
    max-width: 680px;
    margin-top: unset;
  }

  .bl_fvMain_imgWrap p {
    font-size: 32px;
    letter-spacing: 0.2rem;
  }

  .bl_fvCont_wrap {
    max-width: 435px;
    margin-bottom: 20px;
  }

  .bl_copy p {
    font-size: 20px;
    font-weight: 600;
  }

  .bl_fvMain_imgWrap img {
    width: 80%;
  }

  .bl_fvMain_imgWrap p {
    right: 8%;
  }

  .bl_fvPoints {
    width: 100%;
    justify-content: space-around;
  }

  .bl_points_wrap img {
    width: 160px;
    height: auto;
  }

  .bl_fvCont_subTxt {
    width: 100%;
  }

  .bl_fvCont_subTxt p {
    font-size: 18px;
    font-weight: 500;
  }

  .bl_fvCont_subTxt img {
    max-width: unset;
  }

  .bl_ba_container {
    gap: 30px;
    width: fit-content;
    margin-inline: auto;
  }

  .bl_ba_wrapper {
    max-width: 400px;
  }
}

/* 大型デスクトップ（1300px以上） */
@media screen and (min-width: 1300px) {
  body::before {
    right: -60%;
    max-width: 1940px;
    top: -4.8%;
    height: 188vh;
  }

  .bl_fvCont_subTxt p {
    font-weight: 600;
  }

  .bl_ba_container {
    gap: 40px;
  }

  .bl_ba_wrapper {
    max-width: 445px;
  }
}

@media screen and (min-width: 1441px) {
  .ly_customerVoice_imgWrap {
    max-width: 1440px;
    overflow: hidden;
    margin-inline: auto;
    border-radius: 120px;
  }

  body::before {
    right: -25%;
    max-width: 1800px;
    top: -4.2%;
    height: 156vh;
  }
}