/* =========================================================
   Shrine Normal Template v0.1.2
   本文のみ神社CPTテンプレート用CSS
   配置先：/wp-content/themes/yourpleasure/assets/css/shrine-normal.css

   変更点：
   - NORMAL本文のh2/h3/pを神社ページB本文（.yp-shrine-b-editor-content）と同じ見た目に調整
   - 本文幅・行間・見出しサイズをB型自由編集部分に合わせる
========================================================= */

.yp-shrine-normal,
.yp-shrine-normal * {
  box-sizing: border-box;
}

.yp-shrine-normal {
  width: 100%;
  color: #2f2a24;
  background: #ffffff;
}

.yp-shrine-normal p,
.yp-shrine-normal h1,
.yp-shrine-normal h2,
.yp-shrine-normal h3,
.yp-shrine-normal h4,
.yp-shrine-normal ul,
.yp-shrine-normal ol,
.yp-shrine-normal li,
.yp-shrine-normal figure,
.yp-shrine-normal blockquote,
.yp-shrine-normal details,
.yp-shrine-normal summary {
  box-shadow: none !important;
}

.yp-shrine-normal p::before,
.yp-shrine-normal p::after,
.yp-shrine-normal h1::before,
.yp-shrine-normal h1::after,
.yp-shrine-normal h2::before,
.yp-shrine-normal h2::after,
.yp-shrine-normal h3::before,
.yp-shrine-normal h3::after,
.yp-shrine-normal h4::before,
.yp-shrine-normal h4::after {
  display: none !important;
  content: none !important;
}

.yp-shrine-normal-inner,
.yp-shrine-normal-content-wrap {
  width: min(1120px, calc(100% - 56px));
  margin: 0 auto;
}

.yp-shrine-normal-hero {
  padding: 72px 0 48px;
  background: #ffffff;
  text-align: center;
}

.yp-shrine-normal-label {
  margin: 0 0 14px !important;
  padding: 0 !important;
  color: #8a7458;
  font-family: "Times New Roman", "Yu Mincho", "YuMincho", serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-align: center;
  background: none !important;
  border: 0 !important;
}

.yp-shrine-normal-title {
  margin: 0 !important;
  padding: 0 !important;
  color: #26343d;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.48;
  letter-spacing: 0.08em;
  text-align: center;
  background: none !important;
  border: 0 !important;
}

.yp-shrine-normal-subtitle {
  max-width: 760px;
  margin: 20px auto 0 !important;
  padding: 0 !important;
  color: #8a7458;
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.06em;
  text-align: center;
  background: none !important;
  border: 0 !important;
}

.yp-shrine-normal-content-wrap {
  padding: 0 0 84px;
}

/* B型本文と同じ見出し・本文の見た目 */
.yp-shrine-normal-content {
  max-width: 900px;
  margin: 0 auto;
  color: #4f5d65;
  font-size: 15px;
  line-height: 2.08;
  letter-spacing: 0.04em;
}

.yp-shrine-normal-content > *:first-child {
  margin-top: 0 !important;
}

.yp-shrine-normal-content > *:last-child {
  margin-bottom: 0 !important;
}

.yp-shrine-normal-content p {
  margin: 0 0 1.55em !important;
  padding: 0 !important;
  color: #4f5d65;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.yp-shrine-normal-content h2,
.yp-shrine-normal-content h3,
.yp-shrine-normal-content h4 {
  margin: 2.1em 0 0.85em !important;
  padding: 0 !important;
  color: #26343d;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.07em;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.yp-shrine-normal-content h2 {
  font-size: clamp(22px, 2.4vw, 30px);
}

.yp-shrine-normal-content h3 {
  font-size: clamp(19px, 2vw, 24px);
}

.yp-shrine-normal-content h4 {
  font-size: 17px;
}

.yp-shrine-normal-content ul,
.yp-shrine-normal-content ol {
  margin: 1.2em 0 1.6em 1.4em !important;
  padding: 0 !important;
  color: #4f5d65;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.04em;
}

.yp-shrine-normal-content li {
  margin: 0 0 0.45em !important;
  padding: 0 !important;
}

.yp-shrine-normal-content a {
  color: #8a7458;
  text-decoration: none;
  padding-bottom: 2px;
  background: linear-gradient(180deg, transparent 72%, rgba(212, 184, 150, 0.45) 72%);
}

.yp-shrine-normal-content figure,
.yp-shrine-normal-content .wp-block-image,
.yp-shrine-normal-content .wp-block-gallery,
.yp-shrine-normal-content .wp-block-cover {
  margin: 2.2em 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.yp-shrine-normal-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.yp-shrine-normal-content figcaption {
  margin-top: 10px;
  color: #7a858c;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  text-align: center;
}

.yp-shrine-normal-content blockquote {
  margin: 36px 0 !important;
  padding: 26px 30px !important;
  color: #4f5961;
  background: #fbfaf8 !important;
  border: 1px solid rgba(38, 52, 61, 0.10) !important;
}

.yp-shrine-normal-content blockquote p:last-child {
  margin-bottom: 0 !important;
}

.yp-shrine-normal-content hr {
  margin: 56px 0;
  border: 0;
  border-top: 1px solid rgba(38, 52, 61, 0.10);
}

/* FAQ / details */
.yp-shrine-normal-content details {
  margin: 0 !important;
  padding: 0 !important;
  border-top: 1px solid rgba(38, 52, 61, 0.12);
  background: #ffffff;
}

.yp-shrine-normal-content details:last-of-type {
  border-bottom: 1px solid rgba(38, 52, 61, 0.12);
}

.yp-shrine-normal-content details[open] {
  background: #fbfaf8;
}

.yp-shrine-normal-content summary {
  position: relative;
  display: block;
  padding: 22px 52px 22px 0 !important;
  color: #26343d;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.7;
  letter-spacing: 0.05em;
  cursor: pointer;
  list-style: none;
}

.yp-shrine-normal-content summary::-webkit-details-marker {
  display: none;
}

.yp-shrine-normal-content summary::before,
.yp-shrine-normal-content summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  display: block !important;
  background: rgba(138, 116, 88, 0.9);
  transform: translateY(-50%);
}

.yp-shrine-normal-content summary::before {
  width: 14px;
  height: 1px;
}

.yp-shrine-normal-content summary::after {
  right: 24.5px;
  width: 1px;
  height: 14px;
}

.yp-shrine-normal-content details[open] summary::after {
  opacity: 0;
}

.yp-shrine-normal-content details > p {
  padding-right: 52px !important;
  padding-bottom: 24px !important;
}

@media screen and (max-width: 767px) {
  .yp-shrine-normal-inner,
  .yp-shrine-normal-content-wrap {
    width: calc(100% - 20px);
  }

  .yp-shrine-normal-hero {
    padding: 54px 0 36px;
    text-align: left;
  }

  .yp-shrine-normal-label,
  .yp-shrine-normal-title,
  .yp-shrine-normal-subtitle {
    text-align: left;
  }

  .yp-shrine-normal-title {
    font-size: clamp(27px, 8.5vw, 38px);
    line-height: 1.5;
  }

  .yp-shrine-normal-subtitle {
    font-size: 13px;
    line-height: 1.9;
  }

  .yp-shrine-normal-content-wrap {
    padding-bottom: 64px;
  }

  .yp-shrine-normal-content {
    max-width: none;
    font-size: 13px;
    line-height: 1.98;
  }

  .yp-shrine-normal-content ul,
  .yp-shrine-normal-content ol {
    font-size: 13px;
    line-height: 1.9;
  }

  .yp-shrine-normal-content figure,
  .yp-shrine-normal-content .wp-block-image,
  .yp-shrine-normal-content .wp-block-gallery,
  .yp-shrine-normal-content .wp-block-cover {
    margin: 1.8em 0 !important;
  }

  .yp-shrine-normal-content summary {
    padding: 19px 44px 19px 0 !important;
    font-size: clamp(16px, 5vw, 21px);
  }

  .yp-shrine-normal-content details > p {
    padding-right: 0 !important;
    padding-bottom: 22px !important;
  }
}

@media screen and (max-width: 374px) {
  .yp-shrine-normal-inner,
  .yp-shrine-normal-content-wrap {
    width: calc(100% - 16px);
  }
}
