/* ==================================================
   興味カテゴリ詳細ページ
================================================== */

/* ---------- 共通ヘッダー ---------- */
.page-header {
  color: #fff;
  background: #1e3442;
}

.page-header .header {
  height: 74px;
}

/* ---------- パンくず ---------- */
.breadcrumb {
  min-height: 45px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #888;
  font-size: 10px;
}

.breadcrumb b {
  color: #555;
  font-weight: 500;
}

/* ---------- カテゴリメインビジュアル ---------- */
.detail-hero {
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-color: #53616a;
  background-position: center;
  background-size: cover;
}

.detail-hero__inner {
  padding-bottom: 62px;
}

.detail-hero p {
  margin: 0 0 8px;
  color: #dccf9f;
  font: 700 12px Georgia, serif;
  letter-spacing: 0.23em;
}

.detail-hero h1 {
  margin: 0 0 12px;
  font: 500 46px serif;
  letter-spacing: 0.16em;
}

.detail-hero span {
  font: 17px serif;
  letter-spacing: 0.07em;
}

/* ---------- カテゴリ紹介 ---------- */
.detail-intro {
  padding: 72px 0 70px;
  background: #fff;
}

.detail-intro__inner {
  max-width: 790px;
  text-align: center;
}

.section-label {
  margin: 0 0 11px !important;
  color: var(--gold) !important;
  font: 700 10px Georgia, serif !important;
  letter-spacing: 0.2em;
}

.detail-intro h2 {
  margin: 0 0 24px;
  font: 500 27px/1.55 serif;
  letter-spacing: 0.08em;
}

.intro-copy {
  margin: 0 auto;
  color: #555;
  font: 15px/2.15 serif;
}

.related-tags {
  margin-top: 31px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.related-tags > span {
  margin-right: 5px;
  color: #888;
  font-size: 11px;
}

.related-tags a,
.member-tags span {
  padding: 7px 12px;
  border-radius: 20px;
  background: #f0eee8;
  font-size: 11px;
}

/* ---------- メンバー紹介 ---------- */
.members-section {
  padding: 72px 0 82px;
  background: #f4f2ec;
}

.section-heading {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2 {
  margin: 0;
  font: 500 27px serif;
  letter-spacing: 0.08em;
}

.section-heading > div > p:last-child {
  margin: 8px 0 0;
  color: #777;
  font-size: 13px;
}

.text-link {
  padding-bottom: 3px;
  border-bottom: 1px solid #aaa;
  font-size: 11px;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}

.member-card {
  min-height: 430px;
  padding: 25px 20px 21px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8e5dd;
  border-radius: 5px;
  box-shadow: 0 8px 25px #1c283008;
}

.new-label {
  position: absolute;
  top: 17px;
  left: 17px;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #b79a62;
  font: 11px Georgia, serif;
}

.status {
  position: absolute;
  top: 26px;
  right: 17px;
  font-size: 10px;
  font-weight: 600;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 5px;
  display: inline-block;
  border-radius: 50%;
  background: #ddd;
}

.status.online::before {
  background: #53dc85;
  box-shadow: 0 0 7px #53dc85;
}

.member-avatar {
  width: 122px;
  height: 122px;
  margin: 18px auto 25px;
  overflow: hidden;
  border-radius: 50%;
  background: #eeeae1;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-avatar__emoji {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #292623;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 68px;
  line-height: 1;
  -webkit-text-fill-color: initial;
}

.member-card h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: 0.05em;
}

.member-card h3 small {
  font-size: 12px;
}

.member-meta {
  margin: 7px 0 15px;
  font-size: 12px;
  font-weight: 600;
}

.member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.member-tags span {
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 600;
}

.member-copy {
  margin: 18px 0;
  color: #555;
  font-size: 15px;
  line-height: 1.9;
}

.member-link {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #eee9df;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
}

.member-empty {
  padding: 55px 30px;
  background: #fff;
  border: 1px solid #e8e5dd;
  text-align: center;
}

.member-empty p {
  margin: 0 0 22px;
  color: #666;
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- 関連JOURNAL ---------- */
.journal-section {
  padding: 75px 0 85px;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.journal-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e1ddd4;
}

.journal-thumb {
  height: 190px;
  background-color: #69777f;
  background-position: center;
  background-size: cover;
}

.journal-body {
  padding: 19px 20px 21px;
}

.journal-body small {
  color: var(--gold);
  font: 700 9px Georgia, serif;
  letter-spacing: 0.17em;
}

.journal-body h3 {
  min-height: 52px;
  margin: 9px 0 15px;
  font: 500 17px/1.55 serif;
}

.journal-body span {
  font: 9px Georgia, serif;
  letter-spacing: 0.1em;
}

/* ---------- 会員登録CTA ---------- */
.detail-cta {
  padding: 78px 0;
  color: #fff;
  background: #334b58;
  text-align: center;
}

.detail-cta p {
  margin: 0 0 10px;
  color: #d8ceb0;
  font: 700 10px Georgia, serif;
  letter-spacing: 0.2em;
}

.detail-cta h2 {
  margin: 0 0 12px;
  font: 500 28px serif;
  letter-spacing: 0.08em;
}

.detail-cta > div > span {
  display: block;
  margin-bottom: 27px;
  font: 14px serif;
}

.detail-cta .btn {
  min-width: 240px;
}

.detail-cta small {
  display: block;
  margin-top: 14px;
  color: #ffffffaa;
  font-size: 10px;
}

.detail-cta small a {
  border-bottom: 1px solid #ffffff66;
}

.sp-only {
  display: none;
}

/* ==================================================
   タブレット（900px以下）
================================================== */
@media (max-width: 900px) {
  .member-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .member-card {
    min-height: 410px;
  }
}

/* ==================================================
   スマートフォン（640px以下）
================================================== */
@media (max-width: 640px) {
  .page-header .header {
    height: 64px;
  }

  .breadcrumb {
    overflow-x: auto;
    white-space: nowrap;
  }

  .detail-hero {
    min-height: 335px;
  }

  .detail-hero__inner {
    padding-bottom: 42px;
  }

  .detail-hero h1 {
    font-size: 36px;
  }

  .detail-hero span {
    font-size: 14px;
  }

  .detail-intro {
    padding: 52px 0;
  }

  .detail-intro h2 {
    font-size: 23px;
  }

  .intro-copy {
    text-align: left;
    font-size: 14px;
    line-height: 2;
  }

  .sp-only {
    display: block;
  }

  .members-section {
    padding: 52px 0 60px;
    overflow: hidden;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading h2 {
    font-size: 22px;
  }

  .section-heading > div > p:last-child {
    line-height: 1.6;
  }

  .member-grid {
    margin-right: -16px;
    padding-right: 16px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .member-card {
    min-width: 82%;
    min-height: 405px;
    scroll-snap-align: start;
  }

  .journal-section {
    padding: 54px 0 62px;
  }

  .journal-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .journal-card a {
    display: grid;
    grid-template-columns: 42% 1fr;
  }

  .journal-thumb {
    height: auto;
    min-height: 145px;
  }

  .journal-body {
    padding: 16px;
  }

  .journal-body h3 {
    min-height: 0;
    font-size: 15px;
  }

  .detail-cta {
    padding: 58px 0;
  }

  .detail-cta h2 {
    font-size: 23px;
  }
}

/* Member profile icon images */
.member-avatar__emoji .member-icon-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
