/* =========================================================
   shrine.css
   CPT shrine archive / single
   配置先：/wp-content/themes/yourpleasure/assets/css/shrine.css
========================================================= */

/* ---------------------------------------------------------
   Common reset for shrine custom blocks
--------------------------------------------------------- */
.yp-shrine-guide-intro,
.yp-shrine-guide-feature,
.yp-shrine-guide-links,
.yp-shrine-guide-list-head,
.yp-shrine-page,
.yp-shrine-section,
.yp-shrine-card-grid,
.yp-shrine-card {
  box-sizing: border-box;
}

.yp-shrine-guide-intro *,
.yp-shrine-guide-feature *,
.yp-shrine-guide-links *,
.yp-shrine-guide-list-head *,
.yp-shrine-page *,
.yp-shrine-section *,
.yp-shrine-card-grid *,
.yp-shrine-card * {
  box-sizing: border-box;
}

.yp-shrine-guide-intro p,
.yp-shrine-guide-intro h1,
.yp-shrine-guide-feature p,
.yp-shrine-guide-feature h2,
.yp-shrine-guide-links p,
.yp-shrine-guide-links h2,
.yp-shrine-guide-list-head p,
.yp-shrine-guide-list-head h2,
.yp-shrine-section p,
.yp-shrine-section h2,
.yp-shrine-card h3,
.yp-shrine-card p,
.yp-shrine-card span {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.yp-shrine-guide-intro p::before,
.yp-shrine-guide-intro p::after,
.yp-shrine-guide-intro h1::before,
.yp-shrine-guide-intro h1::after,
.yp-shrine-guide-feature p::before,
.yp-shrine-guide-feature p::after,
.yp-shrine-guide-feature h2::before,
.yp-shrine-guide-feature h2::after,
.yp-shrine-guide-links p::before,
.yp-shrine-guide-links p::after,
.yp-shrine-guide-links h2::before,
.yp-shrine-guide-links h2::after,
.yp-shrine-guide-list-head p::before,
.yp-shrine-guide-list-head p::after,
.yp-shrine-guide-list-head h2::before,
.yp-shrine-guide-list-head h2::after,
.yp-shrine-section p::before,
.yp-shrine-section p::after,
.yp-shrine-section h2::before,
.yp-shrine-section h2::after,
.yp-shrine-card h3::before,
.yp-shrine-card h3::after,
.yp-shrine-card p::before,
.yp-shrine-card p::after,
.yp-shrine-card span::before,
.yp-shrine-card span::after {
  display: none !important;
  content: none !important;
}

/* ---------------------------------------------------------
   Archive: /shrine/
--------------------------------------------------------- */
.yp-shrine-guide-intro {
  width: 100%;
  margin: 0;
  padding: 88px 0 62px;
  background: #ffffff;
  color: #2f2a24;
}

.yp-shrine-guide-intro__inner {
  width: min(1080px, calc(100% - 56px));
  margin: 0 auto;
  text-align: center;
}

.yp-shrine-guide-intro__label,
.yp-shrine-guide-block-head__label,
.yp-shrine-guide-linkbox__label,
.yp-shrine-guide-list-head__label,
.yp-shrine-section__label {
  margin: 0 0 14px;
  color: #8a7458;
  font-family: "Times New Roman", "Yu Mincho", "YuMincho", serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.18em;
}

.yp-shrine-guide-intro__title {
  margin: 0 0 24px !important;
  padding: 0 !important;
  color: #26343d;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.28;
  letter-spacing: 0.12em;
  font-weight: 400;
}

.yp-shrine-guide-intro__lead {
  max-width: 760px;
  margin: 0 auto;
  color: #5d6971;
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.04em;
  text-align: left;
}

.yp-shrine-guide-feature,
.yp-shrine-guide-links,
.yp-shrine-guide-list-head {
  width: min(1120px, calc(100% - 56px));
  margin: 0 auto;
  color: #2f2a24;
}

.yp-shrine-guide-feature {
  padding: 0 0 74px;
}

.yp-shrine-guide-block-head,
.yp-shrine-guide-list-head {
  text-align: center;
}

.yp-shrine-guide-block-head {
  margin: 0 0 30px;
}

.yp-shrine-guide-block-head__title,
.yp-shrine-guide-linkbox__title,
.yp-shrine-guide-list-head__title,
.yp-shrine-section__title {
  margin: 0 !important;
  padding: 0 !important;
  color: #26343d;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.yp-shrine-guide-block-head__title,
.yp-shrine-guide-list-head__title,
.yp-shrine-section__title {
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.5;
}

.yp-shrine-guide-feature__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.yp-shrine-guide-feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  padding: 28px 24px;
  overflow: hidden;
  color: #ffffff !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, #26343d 0%, #4d5960 100%) !important;
  border: 1px solid rgba(38, 52, 61, 0.12);
}

.yp-shrine-guide-feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  display: block !important;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.24) 100%);
  pointer-events: none;
}

.yp-shrine-guide-feature-card::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: block !important;
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.82);
  transform: rotate(-45deg);
}

.yp-shrine-guide-feature-card__area,
.yp-shrine-guide-feature-card__title,
.yp-shrine-guide-feature-card__text {
  position: relative;
  z-index: 2;
  display: block;
}

.yp-shrine-guide-feature-card__area {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Times New Roman", "Yu Mincho", "YuMincho", serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.16em;
}

.yp-shrine-guide-feature-card__title {
  margin: 0 0 14px;
  color: #ffffff;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 22px;
  line-height: 1.55;
  letter-spacing: 0.07em;
}

.yp-shrine-guide-feature-card__text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.85;
  letter-spacing: 0.04em;
}

.yp-shrine-guide-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 0 76px;
}

.yp-shrine-guide-linkbox {
  padding: 34px 34px 32px;
  background: #fbfaf8;
  border: 1px solid rgba(38, 52, 61, 0.1);
}

.yp-shrine-guide-linkbox__title {
  margin-bottom: 24px !important;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.45;
}

.yp-shrine-guide-linkbox__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.yp-shrine-guide-linkbox__list li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.yp-shrine-guide-linkbox__list li::before,
.yp-shrine-guide-linkbox__list li::after {
  display: none !important;
  content: none !important;
}

.yp-shrine-guide-linkbox__list a {
  position: relative;
  display: block;
  min-height: 52px;
  padding: 15px 34px 15px 16px;
  color: #26343d !important;
  text-decoration: none !important;
  background: #ffffff !important;
  border: 1px solid rgba(38, 52, 61, 0.1);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.yp-shrine-guide-linkbox__list a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  display: block !important;
  width: 7px;
  height: 7px;
  border-right: 1px solid rgba(138, 116, 88, 0.88);
  border-bottom: 1px solid rgba(138, 116, 88, 0.88);
  transform: translateY(-50%) rotate(-45deg);
}

.yp-shrine-guide-list-head {
  padding: 0 0 36px;
}

.yp-shrine-guide-list-head__text {
  max-width: 760px;
  margin: 18px auto 0;
  color: #5d6971;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------
   Single: /shrine/{slug}/
--------------------------------------------------------- */
.yp-shrine-page {
  width: 100%;
}

.yp-shrine-entry {
  color: #2f2a24;
}

.yp-shrine-section {
  width: min(1120px, calc(100% - 56px));
  margin: 72px auto;
  padding: 0;
}

.yp-shrine-section__head {
  margin: 0 0 30px;
  text-align: center;
}

.yp-shrine-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.yp-shrine-card {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(38, 52, 61, 0.1);
}

.yp-shrine-card__link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit !important;
  text-decoration: none !important;
  background: none !important;
  box-shadow: none !important;
}

.yp-shrine-card__link::before,
.yp-shrine-card__link::after {
  display: none !important;
  content: none !important;
}

.yp-shrine-card__image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: #f7f4ee;
}

.yp-shrine-card__image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center center;
  transition: transform 420ms ease;
}

.yp-shrine-card__body {
  padding: 22px 22px 24px;
  background: #ffffff;
}

.yp-shrine-card__title {
  margin: 0 0 12px !important;
  padding: 0 !important;
  color: #26343d;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: 0.06em;
  font-weight: 400;
}

.yp-shrine-card__text {
  margin: 0;
  color: #5d6971;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.yp-shrine-card__more {
  display: inline-block;
  margin-top: 18px;
  color: #8a7458;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
}

/* ---------------------------------------------------------
   Hover
--------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  .yp-shrine-guide-feature-card,
  .yp-shrine-guide-linkbox__list a,
  .yp-shrine-card {
    transition:
      transform 280ms ease,
      border-color 280ms ease,
      box-shadow 280ms ease,
      opacity 280ms ease;
  }

  .yp-shrine-guide-feature-card:hover,
  .yp-shrine-guide-linkbox__list a:hover,
  .yp-shrine-card:hover {
    transform: translateY(-3px);
    border-color: rgba(138, 116, 88, 0.24);
    box-shadow: 0 12px 30px rgba(38, 52, 61, 0.08);
  }

  .yp-shrine-card:hover .yp-shrine-card__image img {
    transform: scale(1.035);
  }
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  .yp-shrine-guide-feature__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yp-shrine-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .yp-shrine-guide-intro {
    padding: 58px 0 42px;
  }

  .yp-shrine-guide-intro__inner,
  .yp-shrine-guide-feature,
  .yp-shrine-guide-links,
  .yp-shrine-guide-list-head,
  .yp-shrine-section {
    width: calc(100% - 20px);
  }

  .yp-shrine-guide-intro__inner {
    text-align: left;
  }

  .yp-shrine-guide-intro__label,
  .yp-shrine-guide-block-head__label,
  .yp-shrine-guide-linkbox__label,
  .yp-shrine-guide-list-head__label,
  .yp-shrine-section__label {
    margin-bottom: 12px;
    font-size: 11px;
  }

  .yp-shrine-guide-intro__title {
    margin-bottom: 18px !important;
    font-size: clamp(32px, 10vw, 46px);
    line-height: 1.38;
  }

  .yp-shrine-guide-intro__lead,
  .yp-shrine-guide-list-head__text {
    font-size: 13px;
    line-height: 1.95;
  }

  .yp-shrine-guide-feature {
    padding-bottom: 52px;
  }

  .yp-shrine-guide-block-head,
  .yp-shrine-guide-list-head,
  .yp-shrine-section__head {
    text-align: left;
  }

  .yp-shrine-guide-block-head {
    margin-bottom: 22px;
  }

  .yp-shrine-guide-block-head__title,
  .yp-shrine-guide-list-head__title,
  .yp-shrine-section__title {
    font-size: clamp(24px, 7.5vw, 34px);
    line-height: 1.5;
  }

  .yp-shrine-guide-feature__grid,
  .yp-shrine-guide-links,
  .yp-shrine-card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .yp-shrine-guide-feature-card {
    min-height: 190px;
    padding: 24px 20px;
  }

  .yp-shrine-guide-feature-card__title {
    font-size: 21px;
  }

  .yp-shrine-guide-links {
    padding-bottom: 54px;
  }

  .yp-shrine-guide-linkbox {
    padding: 26px 18px 24px;
  }

  .yp-shrine-guide-linkbox__title {
    margin-bottom: 18px !important;
    font-size: clamp(22px, 7vw, 30px);
  }

  .yp-shrine-guide-linkbox__list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .yp-shrine-guide-list-head {
    padding-bottom: 28px;
  }

  .yp-shrine-section {
    margin: 54px auto;
  }

  .yp-shrine-card__body {
    padding: 18px 16px 20px;
  }

  .yp-shrine-card__title {
    font-size: 18px;
  }

  .yp-shrine-card__text {
    font-size: 13px;
    line-height: 1.85;
  }
}

@media screen and (max-width: 374px) {
  .yp-shrine-guide-intro__inner,
  .yp-shrine-guide-feature,
  .yp-shrine-guide-links,
  .yp-shrine-guide-list-head,
  .yp-shrine-section {
    width: calc(100% - 16px);
  }

  .yp-shrine-guide-linkbox {
    padding-left: 16px;
    padding-right: 16px;
  }
}
/* =========================================================
   SHRINE FAQ ACCORDION
   神社ページ・神社ピラー用FAQアコーディオン
========================================================= */

.yp-faq-section {
  width: min(920px, 100%);
  margin: 64px auto;
  padding: 0;
  color: #2f2a24;
}

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

.yp-faq-section h2 {
  margin: 0 0 28px;
  padding: 0;
  color: #26343d;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.55;
  letter-spacing: 0.07em;
  font-weight: 400;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

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

.yp-faq-section details {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(38, 52, 61, 0.12);
  background: #ffffff;
}

.yp-faq-section details:last-child {
  border-bottom: 1px solid rgba(38, 52, 61, 0.12);
}

.yp-faq-section details[open] {
  background: #fbfaf8;
}

.yp-faq-section summary {
  position: relative;
  display: block;
  padding: 24px 58px 24px 0;
  color: #26343d;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.7;
  letter-spacing: 0.05em;
  cursor: pointer;
  list-style: none;
}

.yp-faq-section summary::-webkit-details-marker {
  display: none;
}

.yp-faq-section summary::before,
.yp-faq-section summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  display: block;
  background: rgba(138, 116, 88, 0.9);
  transform: translateY(-50%);
  transition:
    opacity 240ms ease,
    transform 240ms ease,
    background-color 240ms ease;
}

.yp-faq-section summary::before {
  width: 18px;
  height: 1px;
}

.yp-faq-section summary::after {
  right: 26.5px;
  width: 1px;
  height: 18px;
}

.yp-faq-section details[open] summary::after {
  opacity: 0;
  transform: translateY(-50%) rotate(90deg);
}

.yp-faq-section details > p {
  margin: 0;
  padding: 0 58px 28px 0;
  color: #5d6971;
  font-size: 15px;
  line-height: 2.05;
  letter-spacing: 0.04em;
}

.yp-faq-section details > p + p {
  margin-top: 14px;
}

@media (hover: hover) and (pointer: fine) {
  .yp-faq-section summary {
    transition: color 240ms ease, background-color 240ms ease;
  }

  .yp-faq-section summary:hover {
    color: #8a7458;
  }

  .yp-faq-section summary:hover::before,
  .yp-faq-section summary:hover::after {
    background: rgba(38, 52, 61, 0.9);
  }
}

@media screen and (max-width: 767px) {
  .yp-faq-section {
    width: 100%;
    margin: 48px auto;
  }

  .yp-faq-section h2 {
    margin-bottom: 22px;
    font-size: clamp(22px, 7vw, 30px);
    line-height: 1.55;
  }

  .yp-faq-section summary {
    padding: 20px 48px 20px 0;
    font-size: clamp(16px, 5vw, 21px);
    line-height: 1.65;
  }

  .yp-faq-section summary::before {
    right: 14px;
    width: 15px;
  }

  .yp-faq-section summary::after {
    right: 21px;
    height: 15px;
  }

  .yp-faq-section details > p {
    padding: 0 0 24px 0;
    font-size: 13px;
    line-height: 2;
  }
}

/* =========================================================
   shrine 関連お宮参りガイド記事
   写真ハブ・撮影案内カードと表示を統一
   追加先：/wp-content/themes/yourpleasure/assets/css/shrine.css
========================================================= */

.yp-shrine-guide-posts {
  margin-top: 72px;
}

.yp-shrine-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 0;
}

.yp-shrine-guide-grid--more {
  margin-top: 18px;
}

.yp-shrine-guide-card {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(38, 52, 61, 0.1);
  box-shadow: none;
}

.yp-shrine-guide-card__link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit !important;
  text-decoration: none !important;
  background: none !important;
  box-shadow: none !important;
}

.yp-shrine-guide-card__link::before,
.yp-shrine-guide-card__link::after {
  display: none !important;
  content: none !important;
}

.yp-shrine-guide-card__image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: #f7f4ee;
}

.yp-shrine-guide-card__image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center center;
  transition: transform 420ms ease;
}

.yp-shrine-guide-card__body {
  padding: 22px 22px 24px;
  background: #ffffff;
}

.yp-shrine-guide-card__title {
  margin: 0 0 12px !important;
  padding: 0 !important;
  color: #26343d;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: 0.06em;
  font-weight: 400;
}

.yp-shrine-guide-card__text {
  margin: 0;
  color: #5d6971;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yp-shrine-guide-card__more {
  display: inline-block;
  margin-top: 18px;
  color: #8a7458;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
}

.yp-shrine-guide-more {
  margin-top: 26px;
}

.yp-shrine-guide-more__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(280px, 100%);
  min-height: 48px;
  margin: 0 auto;
  padding: 0 28px;
  color: #26343d;
  background: #ffffff;
  border: 1px solid rgba(38, 52, 61, 0.14);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.12em;
  cursor: pointer;
  list-style: none;
}

.yp-shrine-guide-more__button::-webkit-details-marker {
  display: none;
}

.yp-shrine-guide-more__button::after {
  content: "+";
  margin-left: 10px;
  color: #8a7458;
  font-size: 16px;
  line-height: 1;
}

.yp-shrine-guide-more[open] > .yp-shrine-guide-more__button::after {
  content: "−";
}

@media (hover: hover) and (pointer: fine) {
  .yp-shrine-guide-card,
  .yp-shrine-guide-more__button {
    transition:
      transform 280ms ease,
      border-color 280ms ease,
      box-shadow 280ms ease,
      opacity 280ms ease;
  }

  .yp-shrine-guide-card:hover,
  .yp-shrine-guide-more__button:hover {
    transform: translateY(-3px);
    border-color: rgba(138, 116, 88, 0.24);
    box-shadow: 0 12px 30px rgba(38, 52, 61, 0.08);
  }

  .yp-shrine-guide-card:hover .yp-shrine-guide-card__image img {
    transform: scale(1.035);
  }
}

@media screen and (max-width: 1024px) {
  .yp-shrine-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .yp-shrine-guide-posts {
    margin-top: 54px;
  }

  .yp-shrine-guide-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .yp-shrine-guide-grid--more {
    margin-top: 14px;
  }

  .yp-shrine-guide-card__body {
    padding: 18px 16px 20px;
  }

  .yp-shrine-guide-card__title {
    font-size: 18px;
  }

  .yp-shrine-guide-card__text {
    font-size: 13px;
    line-height: 1.85;
    -webkit-line-clamp: 2;
  }

  .yp-shrine-guide-more {
    margin-top: 22px;
  }

  .yp-shrine-guide-more__button {
    width: 100%;
    min-height: 48px;
  }
}
