/* ======================================= わたしの「更年期」アーカイブ ======================================= */

/* Design tokens */
/* MOSS BLACK: #42220F, CLEAR MOSS: #B2A581 */
/* BACKGROUND WHITE: #FEFDFB, SUBTLE MOSS: #E9E9E2 */

.mystory-page {
  background-color: #fefdfb;
  padding-top: 72px; /* ヘッダー高さ（PC） */
}

/* ======================================= ヒーローセクション ======================================= */
.mystory-hero {
  position: relative;
  overflow: hidden;
  height: 576px;
}

.mystory-hero__bg {
  position: absolute;
  inset: 0;
}

.mystory-hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 576px;
  object-fit: cover;
  object-position: center center;
}

.mystory-hero__title-card {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: 0;
  transform: translateX(-50%);
  background-color: #fefdfb;
  padding: 40px 48px;
  text-align: center;
  width: calc(100% - 320px);
  min-width: 342px;
}

.mystory-hero__label {
  font-family: "Lato", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1.12px;
  color: #b2a581;
  margin: 0 0 12px;
}

.mystory-hero__title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 32px;
  letter-spacing: 2.56px;
  color: #42220f;
  margin: 0;
}

/* ======================================= メインコンテンツ ======================================= */
.mystory-main {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  max-width: 1440px;
  margin: 0 auto;
  padding: 100px 160px 40px;
}

.mystory-main__cards {
  flex: 1;
  min-width: 0;
}

.mystory-main__sidebar {
  flex-shrink: 0;
  width: 240px;
}

/* ======================================= 記事カードグリッド ======================================= */
.mystory-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 32px;
  margin-bottom: 24px;
}

.mystory-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mystory-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mystory-card__link:hover .mystory-card__title {
  text-decoration: underline;
}

.mystory-card__image {
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background-color: #e9e9e2;
}

.mystory-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mystory-card__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mystory-card__title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.72px;
  line-height: 1.7;
  color: #42220f;
  margin: 0;
}

.mystory-card__date {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.64px;
  color: #b2a581;
  margin: 0;
}

/* ======================================= もっと見るボタン ======================================= */
.mystory-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.mystory-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #b2a581;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.64px;
  color: #42220f;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.mystory-more:hover {
  opacity: 0.8;
}

.mystory-more__arrow {
  display: inline-block;
  width: 10px;
  height: 6px;
  transform: rotate(90deg);
}

.mystory-more__arrow img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ======================================= タグサイドバー ======================================= */
.mystory-tags {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mystory-tags__header {
  text-align: center;
}

.mystory-tags__label {
  font-family: "Lato", sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.96px;
  color: #b2a581;
  margin: 0 0 12px;
}

.mystory-tags__title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 1.92px;
  color: #42220f;
  margin: 0;
}

.mystory-tags__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.mystory-tag {
  display: block;
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid #b2a581;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.56px;
  color: #42220f;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.mystory-tag:hover,
.mystory-tag.is-active {
  background-color: #b2a581;
  color: #fefdfb;
}

/* ページネーションは pagination-archive.css で共通表示 */

.mystory-no-posts {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 16px;
  color: #42220f;
  text-align: center;
  padding: 48px 24px;
}

/* ======================================= ページネーション ======================================= */
.mystory-pagination {
  margin-top: 32px;
  text-align: center;
}

.mystory-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #42220f;
  text-decoration: none;
  border: 1px solid #b2a581;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.mystory-pagination .page-numbers:hover,
.mystory-pagination .page-numbers.current {
  background-color: #b2a581;
  color: #fefdfb;
}

/* ======================================= タブレット（1250px以下） ======================================= */
@media (max-width: 1024px) {
  .mystory-page {
    padding-top: 56px; /* ヘッダー高さ（SP/タブレット） */
  }

  .mystory-main {
    padding-left: 80px;
    padding-right: 80px;
  }

  .mystory-main {
    gap: 48px;
  }

  .about-cta__inner {
    padding-left: 80px;
    padding-right: 80px;
  }
}

/* ======================================= SP（767px以下） ======================================= */
@media (max-width: 1024px) {
  .mystory-page {
    padding-top: 56px; /* ヘッダー高さ（SP） */
  }

  .mystory-hero {
    min-height: 276px;
    height: 276px;
  }

  .mystory-hero__bg img {
    min-height: 276px;
  }

  .mystory-hero__title-card {
    width: calc(100% - 48px);
    padding: 24px 20px;
    min-width: 280px;
  }

  .mystory-hero__label {
    font-size: 13px;
    letter-spacing: 1.04px;
  }

  .mystory-hero__title {
    font-size: 24px;
    letter-spacing: 1.92px;
  }

  .mystory-main {
    flex-direction: column-reverse;
    gap: 56px;
    padding: 56px 24px 24px;
  }

  .mystory-main__sidebar {
    width: 100%;
  }

  .mystory-tags__header {
    text-align: left;
  }

  .mystory-tags__label {
    font-size: 10px;
    letter-spacing: 0.8px;
  }

  .mystory-tags__title {
    font-size: 20px;
    letter-spacing: 1.6px;
  }

  .mystory-tags__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .mystory-tag {
    width: fit-content;
    flex: 0 0 auto;
    box-sizing: border-box;
  }

  .mystory-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
  }

  .mystory-card,
  .mystory-card__link {
    gap: 12px;
  }

  .mystory-card__title {
    font-size: 14px;
    letter-spacing: 0.56px;
  }

  .mystory-card__date {
    font-size: 12px;
    letter-spacing: 0.48px;
  }

  .mystory-more {
    font-size: 14px;
    letter-spacing: 0.56px;
  }
}
