@charset "UTF-8";

/* =========================================================
   11. FAQ
   七五三撮影 よくある質問
   ファイル名：11-faq.css
   変更目印：11-faq-section
========================================================= */

.yp-shichigosan-faq {
  width: 100%;
  margin: 0;
  padding: 96px 0;
  background: #ffffff;
  color: #2f2a24;
}

.yp-shichigosan-faq,
.yp-shichigosan-faq * {
  box-sizing: border-box;
}

.yp-shichigosan-faq__inner {
  width: min(1240px, calc(100% - 56px));
  margin: 0 auto;
}

/* =========================================================
   見出し
========================================================= */

.yp-shichigosan-faq__head {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(320px, 1fr);
  gap: 54px;
  align-items: start;
  margin-bottom: 58px;
}

.yp-shichigosan-faq__title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* DigiPress見出し装飾対策 */
.yp-shichigosan-faq h2,
.yp-shichigosan-faq h3 {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-top: 0 !important;
}

.yp-shichigosan-faq h2::before,
.yp-shichigosan-faq h2::after,
.yp-shichigosan-faq h3::before,
.yp-shichigosan-faq h3::after {
  display: none !important;
  content: none !important;
}

/* DigiPress本文装飾対策 */
.yp-shichigosan-faq__label,
.yp-shichigosan-faq__sub-label,
.yp-shichigosan-faq__lead p,
.yp-shichigosan-faq__number,
.yp-shichigosan-faq__answer p {
  background: none !important;
  box-shadow: none !important;
}

.yp-shichigosan-faq__label::before,
.yp-shichigosan-faq__label::after,
.yp-shichigosan-faq__sub-label::before,
.yp-shichigosan-faq__sub-label::after,
.yp-shichigosan-faq__lead p::before,
.yp-shichigosan-faq__lead p::after,
.yp-shichigosan-faq__number::before,
.yp-shichigosan-faq__number::after,
.yp-shichigosan-faq__answer p::before,
.yp-shichigosan-faq__answer p::after {
  display: none !important;
  content: none !important;
}

/* ラベル */
.yp-shichigosan-faq__label {
  margin: 0 0 18px;
  color: #8a7458;
  font-family: "Times New Roman", "Yu Mincho", "YuMincho", serif;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.18em;
}

/* 大見出し */
.yp-shichigosan-faq__title {
  margin: 0;
  color: #26343d;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.24;
  letter-spacing: 0.12em;
  font-weight: 400;
}

/* 英字サブラベル */
.yp-shichigosan-faq__sub-label {
  margin: 18px 0 0;
  color: #7a878f;
  font-family: "Times New Roman", "Yu Mincho", "YuMincho", serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.12em;
}

/* リード文 */
.yp-shichigosan-faq__lead p {
  margin: 0;
  color: #5d6971;
  font-size: 15px;
  line-height: 2.15;
  letter-spacing: 0.04em;
}

/* =========================================================
   FAQ LIST
========================================================= */

.yp-shichigosan-faq__list {
  border-top: 1px solid rgba(38, 52, 61, 0.12);
}

.yp-shichigosan-faq__item {
  border-bottom: 1px solid rgba(38, 52, 61, 0.12);
  background: #ffffff;
}

.yp-shichigosan-faq__item[open] {
  background: #fbfaf8;
}

.yp-shichigosan-faq__question {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 42px;
  gap: 20px;
  align-items: center;
  padding: 28px 0;
  cursor: pointer;
  list-style: none;
}

.yp-shichigosan-faq__question::-webkit-details-marker {
  display: none;
}

.yp-shichigosan-faq__number {
  color: #8a7458;
  font-family: "Times New Roman", "Yu Mincho", "YuMincho", serif;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.16em;
}

.yp-shichigosan-faq__question-text {
  color: #26343d;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.55;
  letter-spacing: 0.06em;
  font-weight: 400;
}

/* 開閉アイコン */
.yp-shichigosan-faq__question::before,
.yp-shichigosan-faq__question::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  display: block !important;
  background: rgba(138, 116, 88, 0.9);
  transform: translateY(-50%);
  transition:
    opacity 240ms ease,
    transform 240ms ease,
    background-color 240ms ease;
}

.yp-shichigosan-faq__question::before {
  width: 16px;
  height: 1px;
}

.yp-shichigosan-faq__question::after {
  width: 1px;
  height: 16px;
  right: 25.5px;
}

.yp-shichigosan-faq__item[open] .yp-shichigosan-faq__question::after {
  opacity: 0;
  transform: translateY(-50%) rotate(90deg);
}

/* 回答 */
.yp-shichigosan-faq__answer {
  max-width: 880px;
  padding: 0 0 30px 90px;
}

.yp-shichigosan-faq__answer p {
  margin: 0;
  color: #5d6971;
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.04em;
}

.yp-shichigosan-faq__answer p + p {
  margin-top: 14px;
}

/* =========================================================
   HOVER
========================================================= */

@media (hover: hover) and (pointer: fine) {
  .yp-shichigosan-faq__question {
    transition: background-color 240ms ease;
  }

  .yp-shichigosan-faq__question:hover {
    background: rgba(251, 250, 248, 0.8);
  }

  .yp-shichigosan-faq__question:hover::before,
  .yp-shichigosan-faq__question:hover::after {
    background: rgba(38, 52, 61, 0.9);
  }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media screen and (max-width: 1024px) {
  .yp-shichigosan-faq {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .yp-shichigosan-faq__inner {
    width: min(100%, calc(100% - 36px));
  }

  .yp-shichigosan-faq__head {
    grid-template-columns: 230px 1fr;
    gap: 34px;
    margin-bottom: 44px;
  }

  .yp-shichigosan-faq__title {
    font-size: clamp(36px, 5vw, 58px);
  }

  .yp-shichigosan-faq__lead p {
    font-size: 14px;
    line-height: 2;
  }

  .yp-shichigosan-faq__question {
    grid-template-columns: 58px minmax(0, 1fr) 40px;
    gap: 16px;
  }

  .yp-shichigosan-faq__question::before {
    right: 16px;
    width: 15px;
  }

  .yp-shichigosan-faq__question::after {
    right: 23px;
    height: 15px;
  }

  .yp-shichigosan-faq__answer {
    padding-left: 74px;
  }
}

@media screen and (max-width: 767px) {
  #yp-shichigosan-faq {
    scroll-margin-top: 80px;
  }

  .yp-shichigosan-faq {
    padding: 58px 0;
  }

  .yp-shichigosan-faq__inner {
    width: calc(100% - 20px);
  }

  .yp-shichigosan-faq__head {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 34px;
  }

  .yp-shichigosan-faq__label {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .yp-shichigosan-faq__title {
    font-size: clamp(32px, 10vw, 46px);
    line-height: 1.4;
    letter-spacing: 0.1em;
  }

  .yp-shichigosan-faq__sub-label {
    margin-top: 10px;
    font-size: 12px;
  }

  .yp-shichigosan-faq__lead p {
    font-size: 13px;
    line-height: 1.95;
  }

  .yp-shichigosan-faq__question {
    grid-template-columns: 42px minmax(0, 1fr) 34px;
    gap: 12px;
    padding: 22px 0;
  }

  .yp-shichigosan-faq__number {
    font-size: 13px;
  }

  .yp-shichigosan-faq__question-text {
    font-size: clamp(17px, 5.4vw, 23px);
    line-height: 1.55;
  }

  .yp-shichigosan-faq__question::before {
    right: 14px;
    width: 14px;
  }

  .yp-shichigosan-faq__question::after {
    right: 20.5px;
    height: 14px;
  }

  .yp-shichigosan-faq__answer {
    padding: 0 0 24px 54px;
  }

  .yp-shichigosan-faq__answer p {
    font-size: 13px;
    line-height: 2;
  }
}

@media screen and (max-width: 374px) {
  .yp-shichigosan-faq__inner {
    width: calc(100% - 16px);
  }

  .yp-shichigosan-faq__question {
    grid-template-columns: 38px minmax(0, 1fr) 28px;
    gap: 10px;
  }

  .yp-shichigosan-faq__question::before {
    right: 12px;
    width: 13px;
  }

  .yp-shichigosan-faq__question::after {
    right: 18px;
    height: 13px;
  }

  .yp-shichigosan-faq__answer {
    padding-left: 48px;
  }

  .yp-shichigosan-faq__answer p,
  .yp-shichigosan-faq__lead p {
    font-size: 12.5px;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .yp-shichigosan-faq__question,
  .yp-shichigosan-faq__question::before,
  .yp-shichigosan-faq__question::after {
    transition: none !important;
  }
}