@charset "UTF-8";

/* =========================================================
 * 261002_10horoscope — 共通ベース ＋ トップページ
 * SP: calc(● * (100vw / 375))  /  PC: rem (1rem = 10px)
 * ======================================================= */

/* パンくず 追加スタイル PC */
@media only screen and (min-width: 768px) {
  .breadcrumb__list {
    padding-bottom: 1.6rem;
  }
}

/* ---------------------------------------------------------
 * ベース
 * ------------------------------------------------------- */
.p-feature {
  --color-bg: #d5e1ce;
  --color-main: #c1d0b9;
  --color-text: #2b2b2b;
  --color-white: #fff;
  --font-sans: "Noto Sans JP", sans-serif;
  --font-serif: "Noto Serif JP", serif;
  --fw-semibold: 600;
}

.main-area {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.p-feature :where(img, svg) {
  width: 100%;
  height: auto;
}

/* スクロール連動フェード（js-intersection が .is-active を付与）
   初期状態の非表示は html.js-anim が付いているときだけ効かせる。
   js-anim は head のインラインスクリプトが付与し、初期化が走らなかった場合は
   同スクリプトが外すため、JS が動かない環境でもコンテンツが消えない。 */
:where(.main-area) .fade-up {
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-anim :where(.main-area) .fade-up {
  opacity: 0;
  transform: translateY(30px);
}

.js-anim :where(.main-area) .fade-up.is-active {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-anim :where(.main-area) .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------------------------------------------------------
 * セクションタイトル（帯 ＋ 背景の横罫）
 * ------------------------------------------------------- */
.section-title {
  position: relative;
  width: 100%;
  text-align: center;
}

.section-title::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  transform: translateY(-50%);
  z-index: 1;
}

.section-title__text {
  position: relative;
  z-index: 2;
  display: inline-block;
  background-color: var(--color-main);
  border: solid 2px var(--color-text);
  border-radius: 3.8rem;
  padding: 1.8rem 3rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.45;
  letter-spacing: 0.08em;
  color: var(--color-text);
}

/* ---------------------------------------------------------
 * メインビジュアル ＋ リード
 * ------------------------------------------------------- */
.contents-header__img {
  width: 60rem;
  margin: 0 auto;
  padding-top: 4rem;
}

.contents-header__lead-wrap {
  padding: 6rem 0 8rem;
}

.contents-header__lead {
  font-size: 1.4rem;
  line-height: 2.4;
  letter-spacing: 0.08em;
  text-align: center;
}

/* ---------------------------------------------------------
 * 先生からのメッセージ
 * ------------------------------------------------------- */
.message-section__body {
  width: 62rem;
  margin: 0 auto;
  padding: 8rem 0;
}

.message-section__text {
  font-size: 1.4rem;
  line-height: 2.4;
  letter-spacing: 0.08em;
  text-align: left;
}

/* ---------------------------------------------------------
 * 12星座一覧
 * ------------------------------------------------------- */
.zodiac-list {
  padding: 8rem 0 10rem;
}

.zodiac-list__list {
  display: grid;
  /* 狭いPC幅でも画面端に付かないよう、カラムは 18.8rem を上限に縮む */
  grid-template-columns: repeat(6, minmax(0, 18.8rem));
  justify-content: center;
  column-gap: 1.4rem;
  row-gap: 4rem;
  max-width: 120rem;
  margin: 0 auto;
}

.zodiac-list__link {
  display: block;
  color: var(--color-text);
  text-decoration: none;
}

.zodiac-list__txt {
  margin-top: 1rem;
  font-size: 1.4rem;
  font-weight: var(--fw-semibold);
  line-height: 1.8;
  letter-spacing: 0.01em;
  text-align: center;
}

/* ---------------------------------------------------------
 * 監修者プロフィール
 * ------------------------------------------------------- */
.profile {
  display: flex;
  align-items: flex-start;
  gap: 6rem;
  width: 100rem;
  max-width: 100%;
  margin: 0 auto;
  padding: 8rem;
  background-color: var(--color-main);
  border: solid 2px var(--color-text);
  border-radius: 0.4rem;
}

.profile__image {
  flex-shrink: 0;
  width: 25rem;
}

.profile__body {
  flex: 1;
}

.profile__job {
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: 0.08em;
}

.profile__name {
  margin-top: 1rem;
  font-size: 2.8rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
}

.profile__text {
  margin-top: 3.7rem;
}

.profile__description {
  font-size: 1.4rem;
  line-height: 2.2;
  letter-spacing: 0.08em;
}

/* ---------------------------------------------------------
 * ページ下部のボタン
 * ------------------------------------------------------- */
.contents-footer__button-area {
  display: grid;
  grid-template-columns: 100%;
  gap: 2rem;
  width: 34.5rem;
  max-width: 100%;
  margin: 0 auto;
  padding: 8rem 0;
}

.contents-footer__button {
  display: grid;
  place-content: center;
  height: 5rem;
  border: solid 1px var(--color-text);
  font-size: 1.6rem;
  font-weight: var(--fw-semibold);
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
}

.contents-footer__button--outline {
  background-color: transparent;
  color: var(--color-text);
}

.contents-footer__button--fill {
  background-color: var(--color-text);
  color: var(--color-white);
}

/* =========================================================
 * SP (〜767px)
 * ======================================================= */
@media only screen and (max-width: 767px) {
  .section-title__text {
    border-radius: calc(38 * (100vw / 375));
    padding: calc(12 * (100vw / 375)) calc(16 * (100vw / 375));
    font-size: calc(16 * (100vw / 375));
  }

  .contents-header__img {
    width: 100%;
    padding-top: calc(40 * (100vw / 375));
  }

  .contents-header__lead-wrap {
    padding: calc(40 * (100vw / 375)) 0 calc(50 * (100vw / 375));
  }

  .contents-header__lead {
    width: calc(335 * (100vw / 375));
    margin: 0 auto;
    font-size: calc(13 * (100vw / 375));
  }

  .message-section__body {
    width: calc(335 * (100vw / 375));
    padding: calc(50 * (100vw / 375)) 0;
  }

  .message-section__text {
    font-size: calc(13 * (100vw / 375));
  }

  .zodiac-list {
    padding: calc(50 * (100vw / 375)) 0 calc(80 * (100vw / 375));
  }

  .zodiac-list__list {
    grid-template-columns: repeat(3, calc(120 * (100vw / 375)));
    column-gap: calc(7 * (100vw / 375));
    row-gap: calc(20 * (100vw / 375));
    max-width: none;
  }

  .zodiac-list__txt {
    margin-top: calc(10 * (100vw / 375));
    font-size: calc(12 * (100vw / 375));
  }

  .profile {
    flex-direction: column;
    align-items: center;
    gap: calc(30 * (100vw / 375));
    width: calc(345 * (100vw / 375));
    padding: calc(40 * (100vw / 375)) calc(20 * (100vw / 375));
  }

  .profile__image {
    width: calc(200 * (100vw / 375));
  }

  .profile__body {
    width: 100%;
  }

  .profile__job {
    font-size: calc(12 * (100vw / 375));
  }

  .profile__name {
    margin-top: calc(10 * (100vw / 375));
    font-size: calc(28 * (100vw / 375));
  }

  .profile__text {
    margin-top: calc(20 * (100vw / 375));
  }

  .profile__description {
    font-size: calc(13 * (100vw / 375));
  }

  .contents-footer__button-area {
    gap: calc(10 * (100vw / 375));
    width: calc(345 * (100vw / 375));
    padding: calc(80 * (100vw / 375)) 0;
  }

  .contents-footer__button {
    height: calc(50 * (100vw / 375));
    font-size: calc(16 * (100vw / 375));
  }
}

/* =========================================================
 * PC (768px〜) — 要素が画面端に付かないよう左右に余白を確保する
 * （coding-guidelines.md「コンテンツ幅」／左右 padding 1〜2rem 推奨）
 * ======================================================= */
@media only screen and (min-width: 768px) {
  .contents-body {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  /* セクションタイトルの横罫は画面幅いっぱいに引くため、上記の余白を打ち消す */
  .section-title::before {
    left: -2rem;
    width: calc(100% + 4rem);
  }

  .message-section__body,
  .contents-header__img {
    max-width: 100%;
  }
}
