/* =========================================================
   Shrine Archive - Search Under Kana + Light Weight
   /shrine/ 神社から探す

   配置先：
   /wp-content/themes/yourpleasure/assets/css/shrine-archive.css

   方針：
   - 個別神社ページ側のフォント感に寄せる
   - archive側で font-family を固定しない
   - ボールドを抑えて、すっきり見せる
   - 親神社だけを五十音順に表示
   - 「神社を探す」内に五十音索引と検索ボックスをまとめる
========================================================= */

.yp-shrine-archive {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 20px 80px;
  box-sizing: border-box;
  color: #333;
  font-family: inherit;
}

/* ---------------------------------------------
   Hero
--------------------------------------------- */

.yp-shrine-archive-hero {
  margin: 0 0 54px;
  text-align: center;
}

.yp-shrine-archive-hero__label {
  margin: 0 0 12px;
  color: #8a7458;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.12em;
  font-weight: 400;
}

.yp-shrine-archive-hero__title {
  margin: 0 0 18px;
  color: #333;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.35;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.yp-shrine-archive-hero__lead {
  max-width: 720px;
  margin: 0 auto;
  color: #555;
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0;
  font-weight: 400;
}

/* ---------------------------------------------
   Common section
--------------------------------------------- */

.yp-shrine-archive-section {
  margin: 64px 0 0;
}

.yp-shrine-archive-section__head {
  margin: 0 0 26px;
}

.yp-shrine-archive-section__label {
  margin: 0 0 8px;
  color: #8a7458;
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.12em;
  font-weight: 400;
}

.yp-shrine-archive-section__title {
  position: relative;
  margin: 0 0 14px;
  padding: 0 0 14px;
  color: #4f5a3d;
  font-size: 26px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.yp-shrine-archive-section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 1px;
  background: #babf95;
}

.yp-shrine-archive-section__lead {
  max-width: 760px;
  margin: 0;
  color: #555;
  font-size: 14.5px;
  line-height: 1.9;
  letter-spacing: 0;
  font-weight: 400;
}

/* ---------------------------------------------
   Featured Shrine Cards
--------------------------------------------- */

.yp-shrine-featured__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.yp-shrine-featured-card {
  margin: 0;
  padding: 0;
}

.yp-shrine-featured-card__link {
  position: relative;
  display: block;
  min-height: 420px;
  overflow: hidden;
  background: #26343d;
  text-decoration: none !important;
  box-shadow: 0 18px 42px rgba(38, 52, 61, 0.16);
}

.yp-shrine-featured-card__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.01);
  transition: transform 0.6s ease;
}

.yp-shrine-featured-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.74) 0%,
      rgba(0, 0, 0, 0.50) 36%,
      rgba(0, 0, 0, 0.16) 70%,
      rgba(0, 0, 0, 0.06) 100%
    ),
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.24) 0%,
      rgba(0, 0, 0, 0.04) 58%
    );
}

.yp-shrine-featured-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 34px 32px 30px;
  color: #ffffff;
  box-sizing: border-box;
}

.yp-shrine-featured-card__area {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  font-weight: 400;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.34);
}

.yp-shrine-featured-card__title {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 27px;
  line-height: 1.42;
  letter-spacing: 0.02em;
  font-weight: 500;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.yp-shrine-featured-card__text {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 13.5px;
  line-height: 1.75;
  letter-spacing: 0;
  font-weight: 400;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.yp-shrine-featured-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.48);
}

.yp-shrine-featured-card__more::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.yp-shrine-featured-card__link:hover .yp-shrine-featured-card__image {
  transform: scale(1.06);
}

/* ---------------------------------------------
   Finder
--------------------------------------------- */

.yp-shrine-finder {
  margin-top: 58px;
}

.yp-shrine-finder__inner {
  padding: 22px 24px;
  background: #f8f8f5;
  border: 1px solid rgba(186, 191, 149, 0.56);
  box-sizing: border-box;
}

.yp-shrine-finder__subhead {
  margin: 0 0 12px;
  color: #4f5a3d;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  font-weight: 400;
}

/* ---------------------------------------------
   Kana nav
--------------------------------------------- */

.yp-shrine-kana-block {
  margin: 0 0 20px;
}

.yp-shrine-kana-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
}

.yp-shrine-kana-nav__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 38px;
  color: #4f5a3d;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 400;
  text-decoration: none !important;
  background: #ffffff;
  border: 1px solid rgba(79, 90, 61, 0.18);
  box-sizing: border-box;
}

.yp-shrine-kana-nav__item.is-active {
  transition:
    background-color 0.24s ease,
    border-color 0.24s ease,
    transform 0.24s ease;
}

.yp-shrine-kana-nav__item.is-active:hover {
  background: #f7f4ee;
  border-color: rgba(138, 116, 88, 0.36);
  transform: translateY(-1px);
}

.yp-shrine-kana-nav__item.is-disabled {
  color: rgba(79, 90, 61, 0.25);
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(79, 90, 61, 0.08);
}

/* ---------------------------------------------
   Search
--------------------------------------------- */

.yp-shrine-search {
  margin: 20px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(186, 191, 149, 0.46);
}

.yp-shrine-search__label {
  display: block;
  margin: 0 0 10px;
  color: #4f5a3d;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.yp-shrine-search__field {
  display: flex;
  gap: 10px;
}

.yp-shrine-search__input {
  flex: 1 1 auto;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(79, 90, 61, 0.22);
  border-radius: 0;
  background: #ffffff;
  color: #333;
  font-size: 15px;
  line-height: 1;
  font-weight: 400;
  box-sizing: border-box;
  outline: none;
  appearance: none;
}

.yp-shrine-search__input:focus {
  border-color: rgba(79, 90, 61, 0.56);
  box-shadow: 0 0 0 3px rgba(186, 191, 149, 0.18);
}

.yp-shrine-search__input::placeholder {
  color: rgba(85, 85, 85, 0.48);
}

.yp-shrine-search__clear {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(138, 116, 88, 0.28);
  border-radius: 0;
  background: #ffffff;
  color: #8a7458;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.04em;
  font-weight: 400;
  cursor: pointer;
  box-sizing: border-box;
}

.yp-shrine-search__clear:hover {
  border-color: rgba(138, 116, 88, 0.48);
  background: #f7f4ee;
}

.yp-shrine-search__clear[hidden] {
  display: none;
}

.yp-shrine-search__count {
  margin: 12px 0 0;
  color: #777;
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: 0;
  font-weight: 400;
}

/* ---------------------------------------------
   Shrine list
--------------------------------------------- */

.yp-shrine-list__groups {
  display: grid;
  gap: 38px;
}

.yp-shrine-list__empty {
  padding: 22px 24px;
  background: #f8f8f5;
  border: 1px solid rgba(186, 191, 149, 0.56);
  color: #555;
  font-size: 14px;
  line-height: 1.8;
  box-sizing: border-box;
}

.yp-shrine-list-group {
  scroll-margin-top: 110px;
}

.yp-shrine-list-group[hidden],
.yp-shrine-list-card[hidden] {
  display: none !important;
}

.yp-shrine-list-group__title {
  margin: 0 0 16px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(186, 191, 149, 0.62);
  color: #4f5a3d;
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  font-weight: 500;
}

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

.yp-shrine-list-card {
  margin: 0;
}

.yp-shrine-list-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 96px;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid rgba(186, 191, 149, 0.52);
  color: inherit;
  text-decoration: none !important;
  box-sizing: border-box;
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.yp-shrine-list-card__link:hover {
  transform: translateY(-2px);
  border-color: rgba(138, 116, 88, 0.38);
  box-shadow: 0 12px 26px rgba(60, 70, 40, 0.08);
}

.yp-shrine-list-card__main {
  min-width: 0;
}

.yp-shrine-list-card__kana {
  margin: 0 0 6px;
  color: #9b8f80;
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.yp-shrine-list-card__title {
  margin: 0 0 6px;
  color: #333;
  font-size: 16.5px;
  line-height: 1.55;
  letter-spacing: 0;
  font-weight: 500;
}

.yp-shrine-list-card__area {
  margin: 0;
  color: #6d755c;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0;
  font-weight: 400;
}

.yp-shrine-list-card__more {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8a7458;
  font-size: 11.5px;
  line-height: 1;
  letter-spacing: 0.08em;
  font-weight: 400;
}

.yp-shrine-list-card__more::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* ---------------------------------------------
   Mobile
--------------------------------------------- */

@media screen and (max-width: 767px) {
  .yp-shrine-archive {
    padding: 36px 16px 64px;
  }

  .yp-shrine-archive-hero {
    margin-bottom: 40px;
    text-align: left;
  }

  .yp-shrine-archive-hero__title {
    font-size: 30px;
    letter-spacing: 0.01em;
  }

  .yp-shrine-archive-hero__lead {
    font-size: 14px;
    line-height: 1.9;
  }

  .yp-shrine-archive-section {
    margin-top: 48px;
  }

  .yp-shrine-archive-section__title {
    font-size: 22px;
    line-height: 1.55;
    letter-spacing: 0.01em;
  }

  .yp-shrine-archive-section__lead {
    font-size: 14px;
    line-height: 1.85;
  }

  .yp-shrine-featured__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .yp-shrine-featured-card__link {
    min-height: 330px;
  }

  .yp-shrine-featured-card__overlay {
    background:
      linear-gradient(
        to top,
        rgba(0, 0, 0, 0.80) 0%,
        rgba(0, 0, 0, 0.56) 40%,
        rgba(0, 0, 0, 0.18) 78%,
        rgba(0, 0, 0, 0.08) 100%
      );
  }

  .yp-shrine-featured-card__body {
    padding: 26px 22px 24px;
  }

  .yp-shrine-featured-card__title {
    font-size: 23px;
    letter-spacing: 0.01em;
  }

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

  .yp-shrine-finder__inner {
    padding: 18px;
  }

  .yp-shrine-kana-nav {
    gap: 6px;
  }

  .yp-shrine-kana-nav__item {
    width: 36px;
    height: 34px;
    font-size: 13.5px;
  }

  .yp-shrine-search {
    margin-top: 18px;
    padding-top: 18px;
  }

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

  .yp-shrine-search__input {
    min-height: 46px;
    font-size: 14px;
  }

  .yp-shrine-search__clear {
    min-height: 42px;
    font-size: 12.5px;
  }

  .yp-shrine-list-grid {
    grid-template-columns: 1fr;
  }

  .yp-shrine-list-card__link {
    min-height: 88px;
    padding: 16px;
  }

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