@charset "UTF-8";
/* =========================================================
   はじめての占いガイド
   ヘッダー・フッター・背景は /common/common.css で管理
   ========================================================= */

:root {
  --gd-text: #5b4a3a;        /* 本文 */
  --gd-heading: #4a3a2c;     /* 見出し */
  --gd-accent: #d9a85b;      /* テーマ色（枠・ひし形・下線） */
  --gd-soft: #fdf1d8;        /* 主役カードの地 */
  --gd-border: #efdcb4;      /* カードの枠 */
  --gd-button: #ecc277;      /* ボタン */
  --gd-button-hover: #e3b260;
  --gd-white: #fff;
}

.guide-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 16px 72px;
  color: var(--gd-text);
  font-family: "Kosugi Maru", sans-serif;
  line-height: 1.95;
  letter-spacing: 0.04em;
}

.guide-page h1,
.guide-page h2,
.guide-page h3 {
  font-family: "Zen Antique Soft", serif;
  color: var(--gd-heading);
  font-weight: 400;
  margin: 0;
}

.guide-page p { margin: 0 0 1em; }
.guide-page p:last-child { margin-bottom: 0; }

.sp-only { display: none; }

/* ---------- タイトル ---------- */
.guide-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 8px 16px;
  text-align: center;
  margin-bottom: 20px;
}

.guide-heading__animal {
  width: 150px;
  height: auto;
  justify-self: end;
}
.guide-heading__animal:last-of-type { justify-self: start; }
.guide-heading__animal.is-flip { transform: scaleX(-1); }

.guide-heading__text { padding-bottom: 12px; }

.guide-heading h1 {
  font-size: 36px;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.guide-heading__lead {
  grid-column: 1 / -1;
  font-size: 15px;
}

.guide-label {
  font-family: "Libre Baskerville", serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gd-accent);
  margin: 0 0 4px !important;
}
.guide-label::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: var(--gd-accent);
  transform: rotate(45deg);
  vertical-align: 2px;
}

/* ---------- パンくず ---------- */
.guide-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 13px;
  margin-bottom: 24px;
}
.guide-breadcrumb a {
  color: var(--gd-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.guide-breadcrumb a:hover { color: var(--gd-accent); }

/* ---------- セクション（カード） ---------- */
.guide-section {
  background: var(--gd-white);
  border: 1px solid var(--gd-border);
  border-radius: 18px;
  padding: 36px 40px;
  margin-bottom: 28px;
}

.guide-section--main {
  background: var(--gd-soft);
  border-color: var(--gd-soft);
}

.guide-section > h2 {
  position: relative;
  font-size: 24px;
  letter-spacing: 0.1em;
  padding-left: 22px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.guide-section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  background: var(--gd-accent);
  transform: rotate(45deg);
}

/* ---------- 迷ったら：カード一覧 ---------- */
.guide-card-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.guide-card {
  background: var(--gd-soft);
  border-radius: 14px;
  padding: 20px 22px;
}
.guide-card:last-child:nth-child(odd) { grid-column: 1 / -1; }

.guide-card h3 {
  font-size: 18px;
  line-height: 1.5;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--gd-accent);
}
.guide-card p { font-size: 14px; }

/* ---------- 使い方：ステップ ---------- */
.guide-steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}

.guide-steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 28px 68px;
}
.guide-steps li:last-child { padding-bottom: 0; }

/* 番号 */
.guide-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gd-soft);
  border: 1px solid var(--gd-accent);
  font-family: "Libre Baskerville", serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gd-heading);
  display: grid;
  place-items: center;
}
/* 番号をつなぐ線 */
.guide-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 52px;
  bottom: 6px;
  border-left: 1px dashed var(--gd-accent);
}

.guide-steps h3 {
  font-size: 18px;
  line-height: 1.5;
  padding-top: 9px;
  margin-bottom: 8px;
}

/* ---------- 締め ---------- */
.guide-closing {
  text-align: center;
  padding: 24px 16px 0;
}
.guide-closing h2 {
  font-size: 24px;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.guide-closing h2::before,
.guide-closing h2::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 14px;
  background: var(--gd-accent);
  transform: rotate(45deg);
  vertical-align: 4px;
}

.guide-button {
  display: inline-block;
  margin-top: 28px;
  min-width: 260px;
  padding: 14px 40px;
  border-radius: 999px;
  background: var(--gd-button);
  color: var(--gd-heading);
  font-weight: bold;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: background 0.2s;
}
.guide-button::after { content: "　›"; }
.guide-button:hover { background: var(--gd-button-hover); }

/* ---------- TOPへ戻る ---------- */
.guide-totop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gd-button);
  color: var(--gd-heading);
  display: grid;
  place-items: center;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(91, 74, 58, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 50;
}
.guide-totop.is-show {
  opacity: 1;
  visibility: visible;
}

/* ---------- スマホ ---------- */
@media (max-width: 640px) {
  .sp-only { display: inline; }

  .guide-heading { gap: 8px; }
  .guide-heading__animal { width: 80px; }
  .guide-heading h1 { font-size: 24px; letter-spacing: 0.08em; }
  .guide-heading__lead { font-size: 14px; text-align: left; }

  .guide-section { padding: 26px 20px; border-radius: 14px; }
  .guide-section > h2,
  .guide-closing h2 { font-size: 20px; }

  .guide-card-list { grid-template-columns: 1fr; }
  .guide-steps li { padding-left: 58px; }
  .guide-closing h2::before,
  .guide-closing h2::after { margin: 0 8px; }
  .guide-button { min-width: 0; width: 100%; box-sizing: border-box; }
}
