/* =====================================================================
   KIN ORACLE 使い方ガイド
   LP と同じ reference-layout.css / reference-ivory.css の上に重ねる、ガイド専用の部品。
   ===================================================================== */

/* ---------- ヘッダー（LPのナビにガイド用のリンクを追加） ---------- */
.nav .nav-guide { font-size: 13px; font-weight: 700; text-decoration: none; color: var(--rose-deep); }
.nav .nav-guide:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- セクションの地色（LPと同じ波形の区切り） ---------- */
.g-white { background: #fff; --wave-fill: #fbf8f1; }
.g-ivory { background: #fbf8f1; --wave-fill: #fff; }
.g-first { --wave-fill: #f7f2e8; }
.g-white.g-first, .g-ivory.g-first { --wave-fill: #f7f2e8; }

/* ---------- ヒーロー ---------- */
.g-hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 80% 35%, #fff 0%, #fffaf4 46%, #f7f2e8 100%); padding: 40px 0 76px; }
.g-hero .orb-rose { width: 280px; height: 280px; left: -160px; top: -120px; background: #edb2b8; opacity: .3; }
.g-hero .orb-blue { width: 220px; height: 220px; right: -130px; top: 210px; background: #b7e0ee; opacity: .34; }
.g-hero .orb-yellow { width: 220px; height: 220px; left: -130px; bottom: -150px; background: #edcf7b; opacity: .22; }
.g-crumb { position: relative; z-index: 1; font-size: 12px; color: #8a7f6a; margin-bottom: 26px; }
.g-crumb a { color: var(--rose-deep); text-underline-offset: 4px; }
.g-crumb span { margin: 0 8px; color: #c8bba0; }
.g-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.g-hero-grid.is-single { grid-template-columns: 1fr; max-width: 820px; }
.g-hero h1 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.45; letter-spacing: -.01em; }
.g-hero h1 small { display: block; font-size: .5em; letter-spacing: .02em; color: var(--rose-deep); margin-bottom: 10px; }
.g-hero .lead { text-align: left; margin-top: 20px; font-size: 16px; }
.g-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.g-chips span { background: #fff; border: 1px solid #e3d6ba; border-radius: 99px; padding: 5px 14px; font-size: 12px; font-weight: 700; color: #6e5d3d; }
.g-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.g-actions .button { min-height: 56px; padding: 14px 28px; font-size: 15px; }
.g-hero-visual { position: relative; }
.g-hero-visual .sheet-preview { max-width: 520px; margin-left: auto; }
.g-hero-visual .sheet-preview.portrait { max-height: 560px; }
.g-hero-visual .sheet-preview.portrait img { max-height: 514px; }

/* ---------- 目次（ページ内リンク） ---------- */
.g-toc { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.g-toc a { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.85); border: 1px solid var(--line); border-radius: 10px; padding: 7px 13px; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--ink); transition: background .2s, border-color .2s; }
.g-toc a:hover { background: #fff; border-color: #d7c6a2; }
.g-toc a span { color: var(--rose-deep); font-size: 11px; }

/* ---------- このシートでわかること ---------- */
.g-know { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.g-know article { background: #fffefa; border: 1px solid #eee6d4; border-radius: 20px; padding: 24px 22px; box-shadow: 0 8px 24px rgba(96, 79, 40, .05); }
.g-know__icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #f4ecda; color: #8a6b34; font-size: 19px; font-weight: 900; margin-bottom: 14px; }
.g-know h3 { font-size: 17px; margin-bottom: 8px; }
.g-know p { font-size: 14px; color: var(--body); line-height: 1.9; }
.g-know ul { margin-top: 6px; }

/* ---------- 手順 ---------- */
.g-steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 24px; }
.g-step { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: #fffefa; border: 1px solid #eee6d4; border-radius: 26px; padding: 34px 36px; box-shadow: 0 10px 30px rgba(96, 79, 40, .06); }
.g-step.no-fig { grid-template-columns: 1fr; }
.g-step__label { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--rose-deep); }
.g-step__label b { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--rose); color: #fff; font-size: 15px; letter-spacing: 0; box-shadow: 0 6px 14px rgba(149, 117, 61, .25); }
.g-step h3 { font-size: 21px; line-height: 1.55; margin: 14px 0 10px; }
.g-step p { font-size: 15px; line-height: 2; color: var(--body); }
.g-step p + p { margin-top: 10px; }
.g-step .check-list { margin-top: 12px; font-size: 14px; }
.g-step .g-point { margin-top: 16px; }
.g-fig { margin: 0; }
.g-fig img { width: 100%; border-radius: 16px; border: 1px solid #ebe3d2; background: #fff; box-shadow: 0 14px 32px rgba(82, 69, 43, .13); }
.g-fig.is-panel { max-width: 380px; margin-inline: auto; }
.g-fig.is-phone { max-width: 260px; margin-inline: auto; }
.g-fig.is-phone img { border: 7px solid #49463e; border-radius: 30px; }
.g-fig figcaption { margin-top: 12px; text-align: center; font-size: 12px; color: #736c5f; line-height: 1.7; }
.g-fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- ポイント・注意 ---------- */
.g-point { border-left: 3px solid #c5af7a; background: #f6f0e2; border-radius: 0 14px 14px 0; padding: 14px 18px; font-size: 14px; line-height: 1.95; color: var(--body); }
.g-point b { display: block; font-size: 12px; letter-spacing: .06em; color: var(--rose-deep); margin-bottom: 2px; }
.g-point a { color: var(--rose-deep); font-weight: 700; text-underline-offset: 4px; }
.g-point.is-note { border-left-color: #b7c2ae; background: #f2f4ee; }
.g-point.is-note b { color: #5f7258; }

/* ---------- 活用シーン・2カラムの説明 ---------- */
.g-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; align-items: start; }
.g-panel { background: #fffefa; border: 1px solid #eee6d4; border-radius: 22px; padding: 28px 28px 30px; box-shadow: 0 8px 24px rgba(96, 79, 40, .05); }
.g-panel h3 { font-size: 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.g-panel h3 i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #f4ecda; color: #8a6b34; font-size: 15px; }
.g-panel p { font-size: 14px; color: var(--body); line-height: 1.95; }
.g-panel p + p { margin-top: 10px; }
.g-panel .check-list { font-size: 14px; }

/* ---------- 表 ---------- */
.g-table-wrap { margin-top: 36px; overflow-x: auto; border-radius: 18px; border: 1px solid #eadfc8; background: #fff; box-shadow: 0 8px 24px rgba(96, 79, 40, .05); }
.g-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.g-table th { background: #f4ecda; color: #5d4a26; font-weight: 800; text-align: left; padding: 13px 16px; font-size: 13px; white-space: nowrap; }
.g-table td { padding: 13px 16px; border-top: 1px solid #f0e8d6; color: var(--body); line-height: 1.8; vertical-align: top; }
.g-table td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.g-table .mark { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #f4ecda; color: #8a6b34; font-size: 12px; margin-right: 8px; vertical-align: -6px; }

/* ---------- 一覧ページのカード ---------- */
.g-group-label { display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); padding-bottom: 13px; margin-top: 54px; font-weight: 900; letter-spacing: .04em; color: #8f7437; }
.g-group-label:first-of-type { margin-top: 40px; }
.g-group-label span { width: 11px; height: 11px; border-radius: 50%; background: var(--gold); }
.g-group-label.blue { color: #697b63; } .g-group-label.blue span { background: #aab6a2; }
.g-group-label.rose { color: #9a5c62; } .g-group-label.rose span { background: #d99a98; }
.g-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 24px; }
.g-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.g-card { display: flex; flex-direction: column; text-decoration: none; background: #fffefa; border: 1px solid #ece3d0; border-radius: 22px; overflow: hidden; box-shadow: 0 8px 24px rgba(96, 79, 40, .06); transition: transform .2s, box-shadow .2s; }
.g-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(96, 79, 40, .14); }
.g-card__thumb { height: 170px; background: linear-gradient(140deg, #fffefa, #efe7d5); display: flex; align-items: flex-end; justify-content: center; padding: 18px 18px 0; overflow: hidden; }
.g-card__thumb img { width: auto; max-width: 100%; max-height: 100%; object-fit: cover; object-position: top; border-radius: 4px 4px 0 0; box-shadow: 0 6px 18px rgba(75, 65, 42, .16); background: #fff; }
.g-card__thumb.is-landscape img { width: 100%; height: auto; }
.g-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.g-card__meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--rose-deep); }
.g-card__meta i { font-style: normal; letter-spacing: 0; background: #f0e8d7; padding: 2px 9px; border-radius: 5px; font-size: 10.5px; }
.g-card h3 { font-size: 17px; line-height: 1.5; }
.g-card p { font-size: 13px; color: var(--body); line-height: 1.85; }
.g-card__more { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 800; color: var(--rose-deep); }
.g-card.is-text .g-card__body { padding-top: 24px; }
.g-card__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #f4ecda; color: #8a6b34; font-size: 20px; font-weight: 900; }
.g-new { display: inline-block; margin-left: 6px; background: var(--rose); color: #fff; border-radius: 4px; font-size: 10px; padding: 1px 6px; letter-spacing: .04em; vertical-align: 2px; }

/* ---------- はじめての方へ（3ステップ） ---------- */
.g-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; counter-reset: flow; }
.g-flow li { list-style: none; position: relative; background: #fffefa; border: 1px solid #eee6d4; border-radius: 22px; padding: 26px 24px 26px; box-shadow: 0 8px 24px rgba(96, 79, 40, .05); }
.g-flow li::before { counter-increment: flow; content: counter(flow); position: absolute; top: -16px; left: 24px; width: 34px; height: 34px; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 15px; box-shadow: 0 6px 14px rgba(149, 117, 61, .25); }
.g-flow h3 { font-size: 17px; margin: 8px 0 8px; }
.g-flow p { font-size: 14px; color: var(--body); line-height: 1.9; }
.g-flow a { color: var(--rose-deep); font-weight: 700; text-underline-offset: 4px; }
.g-flow { padding: 0; }

/* ---------- 用語集 ---------- */
.g-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.g-term { background: #fffefa; border: 1px solid #eee6d4; border-radius: 18px; padding: 20px 22px; }
.g-term dt { font-size: 16px; font-weight: 900; line-height: 1.5; }
.g-term dt small { font-size: 11px; font-weight: 600; color: #8a7f6a; margin-left: 8px; letter-spacing: .04em; }
.g-term dd { margin: 8px 0 0; font-size: 14px; color: var(--body); line-height: 1.95; }
.g-term dd .in-app { display: block; margin-top: 8px; font-size: 12.5px; color: #7a6a47; background: #f6f0e2; border-radius: 10px; padding: 8px 12px; }

/* ---------- 前後のページ送り ---------- */
.g-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.g-pager a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; background: #fffefa; border: 1px solid #ece3d0; border-radius: 18px; padding: 18px 22px; transition: border-color .2s, transform .2s; }
.g-pager a:hover { border-color: #d3bf95; transform: translateY(-2px); }
.g-pager span { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--rose-deep); }
.g-pager b { font-size: 15px; }
.g-pager .next { text-align: right; }
.g-pager .is-empty { visibility: hidden; }

/* ---------- 最下部のCTA ---------- */
.g-cta { text-align: center; background: linear-gradient(165deg, #fbf8f1, #fff 50%, #f7f2e8); --wave-fill: #fbf8f1; }
.g-cta h2 { font-size: 32px; line-height: 1.6; }
.g-cta .button { margin-top: 28px; }
.g-cta .terms-note { text-align: center; }

/* ---------- サンプル拡大ダイアログ（LPと同じ見た目） ---------- */
.sheet-preview { cursor: zoom-in; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1000px) {
  .g-cards { grid-template-columns: repeat(2, 1fr); }
  .g-cards.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .g-step { gap: 28px; padding: 28px; }
  .g-hero-grid { gap: 36px; }
}
@media (max-width: 760px) {
  .nav .nav-guide { display: none; }
  .g-hero { padding: 26px 0 52px; }
  .g-crumb { margin-bottom: 18px; font-size: 11px; }
  .g-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .g-hero h1 { font-size: clamp(25px, 7vw, 32px); }
  .g-hero .lead { font-size: 14px; }
  .g-hero-visual .sheet-preview { margin: 0 auto; }
  .g-chips span { font-size: 11px; padding: 4px 12px; }
  .g-actions .button { width: 100%; }
  .g-toc a { font-size: 12px; padding: 6px 11px; }
  .g-know { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .g-know article { padding: 20px 18px; }
  .g-steps { gap: 18px; margin-top: 30px; }
  .g-step { grid-template-columns: 1fr; padding: 24px 20px; border-radius: 20px; gap: 20px; }
  .g-step h3 { font-size: 18px; }
  .g-step p { font-size: 14px; }
  .g-fig.is-panel { max-width: 100%; }
  .g-split { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
  .g-panel { padding: 22px 20px; }
  .g-cards, .g-cards.cols-3 { grid-template-columns: 1fr; gap: 14px; }
  .g-card__thumb { height: 150px; }
  .g-flow { grid-template-columns: 1fr; gap: 26px; }
  .g-terms { grid-template-columns: 1fr; }
  .g-pager { grid-template-columns: 1fr; }
  .g-pager .next { text-align: left; }
  .g-pager .is-empty { display: none; }
  .g-cta h2 { font-size: 24px; }
  .g-fig-pair { grid-template-columns: 1fr; }
}
