/* ==========================================================================
   std.css — 下層ページ共通の型（見本 v1 / 2026-10-07）
   - 既存 styles.css の「後」に読む上書きファイル。
   - すべて body.page-std に閉じ込める（トップ・/consult/・恋愛経験なしLP・/data/・/ticket/ には効かせない）。
   - トークン・部品の質感は styles.css の .lp-* から流用（navy / gold / cream / line）。
   - オレンジ（--color-accent）と縦線見出しは使わない。
   ========================================================================== */

/* ---------- トークン・書体 ---------- */
body.page-std {
  --navy: #0c1832;
  --gold: #d9b365;
  --gold-deep: #b8862b;
  --cream: #faf6ec;
  --line: #eadfc4;
  --serif: "Shippori Mincho B1", "Noto Serif JP", "Noto Serif CJK JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic", sans-serif;
  --card-r: 6px;
  --card-sh: 0 1px 3px rgba(12, 24, 50, 0.06);
  --std-text: #2b2b2b;
}

/* ---------- 本文の器 ---------- */
body.page-std .site-main {
  max-width: 800px;           /* 左右パディング込みで、本文はおよそ 760px */
  padding: 0 1.2em 3.5em;
  font-size: 1rem;
  line-height: 1.95;
  letter-spacing: 0.02em;
  color: var(--std-text);
}
body.page-std .section { margin: 0; }
body.page-std .section + .section { margin-top: 2.8em; }
body.page-std .section > h2:first-child,
body.page-std .section > h3:first-child { margin-top: 0; }

/* ---------- 1. ページ見出しの帯（全幅クリーム） ---------- */
body.page-std .page-title {
  position: relative;
  margin: 0 0 48px;
  padding: 56px 0;
  border: 0;
  background: var(--cream);                 /* 影は要素の外側にしか出ないので、中身にも同じ色を敷く */
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 1;
  color: var(--navy);
  text-align: center;
  text-wrap: balance;
  word-break: auto-phrase;
  box-shadow: 0 0 0 100vmax var(--cream), 0 1px 0 100vmax var(--line);   /* 2枚目は帯の下辺の 1px 線 */
  clip-path: inset(0 -100vmax -1px -100vmax);
}
/* h1 の上の小さなラベル（左右に金の細線） */
body.page-std .page-title::before {
  content: "結婚相談所ジムリッジ";
  display: block;
  width: fit-content;
  margin: 0 auto 14px;
  padding: 0 36px;
  text-indent: 0.14em;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.4;
  letter-spacing: 0.14em;
  font-feature-settings: normal;
  color: var(--gold-deep);
  background:
    linear-gradient(var(--gold), var(--gold)) left center / 24px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right center / 24px 1px no-repeat;
}
/* h1 の下の金の短線 */
body.page-std .page-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 20px auto 0;
  background: var(--gold);
}
/* 直後に p.lead（用語集の説明・お知らせの日付）があるときは、同じ帯の中に入れる */
body.page-std .page-title:has(+ .lead) {
  margin-bottom: 0;
  padding-bottom: 0;
  box-shadow: 0 0 0 100vmax var(--cream);
  clip-path: inset(0 -100vmax -1px -100vmax);   /* 下に 1px 重ねて継ぎ目を消す */
}
body.page-std .page-title + .lead {
  position: relative;
  margin: 0 0 48px;
  padding: 18px 0 56px;
  background: var(--cream);
  font-size: 0.85rem;
  line-height: 1.9;
  color: #666;
  text-align: center;
  text-wrap: balance;
  word-break: auto-phrase;
  box-shadow: 0 0 0 100vmax var(--cream), 0 1px 0 100vmax var(--line);
  clip-path: inset(0 -100vmax -1px -100vmax);
}

/* ---------- 2. h2 ---------- */
body.page-std .site-main h2 {
  position: relative;
  margin: 2.8em 0 1em;
  padding: 0 0 0.55em;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 1;
  color: var(--navy);
  text-align: left;
  text-wrap: balance;
  word-break: auto-phrase;
}
body.page-std .site-main h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 48px;
  height: 2px;
  background: var(--gold);
}

/* ---------- 3. h3 ---------- */
body.page-std .site-main h3 {
  margin: 2em 0 0.6em;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--navy);
  word-break: auto-phrase;
}
body.page-std .site-main h3::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-right: 0.6em;
  vertical-align: middle;
  background: var(--gold);
}

/* ---------- 本文 ---------- */
body.page-std .site-main p { margin: 0 0 1.2em; }
body.page-std .site-main :where(p, li) { text-wrap: pretty; }
body.page-std .site-main strong { color: var(--navy); font-weight: 700; }

/* ---------- 4. 箇条書き ---------- */
/* ul: 黒丸を消して gold-deep の 5px 菱形（.lp-prog__grp li::before と同じ）。:where() で詳細度を下げ、部品側で上書きしやすくする */
body.page-std .site-main :where(ul) { list-style: none; padding: 0; margin: 0 0 1.2em; }
body.page-std .site-main :where(ul) > li { position: relative; margin: 0 0 0.45em; padding-left: 1.15em; }
body.page-std .site-main :where(ul) > li::before {
  content: "";
  position: absolute;
  left: 0.1em;
  top: calc(0.975em - 2.5px);   /* 1行目の中央（line-height 1.95 の半分） */
  width: 5px;
  height: 5px;
  background: var(--gold-deep);
  transform: rotate(45deg);
}
body.page-std .site-main :where(ul) :where(ul) { margin: 0.45em 0 0.2em; }
/* ol: 数字を明朝・gold-deep に */
body.page-std .site-main :where(ol) { margin: 0 0 1.2em; padding-left: 2.2em; }
body.page-std .site-main :where(ol) > li { margin: 0 0 0.45em; padding-left: 0.2em; }
body.page-std .site-main :where(ol) > li::marker {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--gold-deep);
}
body.page-std .site-main :where(ol) :where(ol),
body.page-std .site-main :where(ol) :where(ul),
body.page-std .site-main :where(ul) :where(ol) { margin: 0.45em 0 0.2em; }

/* ---------- 5. 表 ---------- */
body.page-std .site-main table {
  width: 100%;
  margin: 1.4em 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--card-r);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--card-sh);
  font-size: 0.95rem;
  line-height: 1.75;
}
body.page-std .site-main th,
body.page-std .site-main td {
  padding: 0.75em 1em;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}
body.page-std .site-main tr > :last-child { border-right: 0; }
body.page-std .site-main tbody tr:last-child > *,
body.page-std .site-main table > tr:last-child > * { border-bottom: 0; }
/* 本番の yoyaku の表は見出し行が空（th が空）なので、空の見出し行は描かない */
body.page-std .site-main thead:not(:has(th:not(:empty))) { display: none; }
body.page-std .site-main th { background: var(--cream); color: var(--navy); font-weight: 700; }
body.page-std .site-main td { background: #fff; }

/* ---------- 6. .panel ---------- */
body.page-std .site-main .panel {
  margin: 1.4em 0;
  padding: 1.2em 1.4em;
  background: #fcfbf7;
  border: 1px solid var(--line);
  border-radius: var(--card-r);
  box-shadow: var(--card-sh);
}
body.page-std .site-main .panel > :last-child { margin-bottom: 0; }
body.page-std .site-main .panel li:last-child { margin-bottom: 0; }

/* ---------- 7. details.faq ---------- */
body.page-std .site-main details.faq {
  margin: 0 0 0.7em;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--card-r);
  box-shadow: var(--card-sh);
}
body.page-std .site-main details.faq summary {
  position: relative;
  display: block;
  padding: 1.05em 3em 1.05em 1.2em;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.75;
  color: var(--navy);
  word-break: auto-phrase;
}
body.page-std .site-main details.faq summary::-webkit-details-marker { display: none; }
body.page-std .site-main details.faq summary::marker { content: ""; }
body.page-std .site-main details.faq summary::after {
  content: "";
  position: absolute;
  right: 1.35em;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -5px;
  border-right: 1.5px solid var(--gold-deep);
  border-bottom: 1.5px solid var(--gold-deep);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
body.page-std .site-main details.faq[open] summary::after { transform: rotate(225deg) translate(-1px, -1px); }
body.page-std .site-main details.faq[open] > summary { border-bottom: 1px solid var(--line); }
/* 中身は左右 1.2em・下 1.1em（summary 直下の線が「上に 1px --line」） */
body.page-std .site-main details.faq > :not(summary) { margin: 0 1.2em 0.9em; }
body.page-std .site-main details.faq > summary + :not(summary) { margin-top: 1em; }
body.page-std .site-main details.faq > :last-child { margin-bottom: 1.1em; }

/* ---------- 8. 本文中のリンク ---------- */
body.page-std .site-main a:not(.cta-button) {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}
body.page-std .site-main a:not(.cta-button):hover { text-decoration: none; opacity: 0.75; }

/* ---------- 9. CTA（トップの .lp-btn .cta-button と同じ） ---------- */
body.page-std .site-main p:has(> .cta-button) { margin: 2.6em 0 0; text-align: center; }
body.page-std .site-main > .cta-button { margin-top: 2.8em; }
body.page-std .site-main .cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 360px;
  min-height: 56px;
  margin-left: auto;
  margin-right: auto;
  padding: 0.9em 1.6em;
  border: 0;
  border-radius: 999px;
  background: #06c755;
  color: #fff !important;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
  word-break: auto-phrase;
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.25);
}
body.page-std .site-main .cta-button:hover { opacity: 0.9; text-decoration: none; }

/* ---------- 10. 本文中の画像 ---------- */
body.page-std .site-main img { border-radius: var(--card-r); box-shadow: var(--card-sh); }
body.page-std .site-main iframe { max-width: 100%; border: 1px solid var(--line); border-radius: var(--card-r); background: #fff; }

/* notice-box も同じ質感に（仕様外・軽微） */
body.page-std .site-main .notice-box {
  margin: 1.4em 0;
  padding: 1em 1.2em;
  background: #fcfbf7;
  border: 1px solid var(--line);
  border-radius: var(--card-r);
  box-shadow: var(--card-sh);
  color: #555;
  font-size: 0.95rem;
}

/* ---------- 11. 用語集の一覧・お知らせの一覧（.lead の直後の .section > ul > li） ---------- */
body.page-std .site-main .lead + .section > ul:not([class]) { margin: 0; }
body.page-std .site-main .lead + .section > ul:not([class]) > li {
  margin: 0 0 0.8em;
  padding: 1.1em 1.3em;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--card-r);
  box-shadow: var(--card-sh);
  transition: border-color 0.15s;
}
body.page-std .site-main .lead + .section > ul:not([class]) > li::before { display: none; }
body.page-std .site-main .lead + .section > ul:not([class]) > li:hover { border-color: var(--gold); }
body.page-std .site-main .lead + .section > ul:not([class]) > li > a {
  display: inline-block;
  padding: 0;
  border: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--navy);
}
body.page-std .site-main .lead + .section > ul:not([class]) > li > a:hover { opacity: 1; }
body.page-std .site-main .lead + .section > ul:not([class]) > li > p {
  margin: 0.35em 0 0 !important;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #666 !important;
}
body.page-std .site-main .lead + .section > ul:not([class]) > li > p:first-child {
  margin: 0 0 0.1em !important;
  font-size: 0.8rem !important;
  line-height: 1.6;
  color: #777 !important;
}
body.page-std .site-main .lead + .section > ul:not([class]) > li > p:last-child { margin-bottom: 0 !important; }

/* ---------- 12. blockquote / hr ---------- */
body.page-std .site-main blockquote {
  margin: 1.4em 0;
  padding: 0.9em 1.3em;
  background: var(--cream);
  border: 0;
  border-left: 3px solid var(--gold);
  border-radius: var(--card-r);
}
body.page-std .site-main blockquote > :last-child { margin-bottom: 0; }
body.page-std .site-main hr {
  width: 48px;
  height: 2px;
  margin: 2.6em auto;
  border: 0;
  background: var(--gold);
}

/* ---------- フッター（ナビの下の余白だけ整える） ---------- */
body.page-std .site-footer { margin-top: 0; }

/* ---------- 13. スマホ（〜600px） ---------- */
@media (max-width: 600px) {
  body.page-std .site-main { font-size: 15.5px; padding-bottom: 3em; }
  body.page-std .page-title { margin-bottom: 32px; padding: 36px 0; font-size: 1.5rem; }
  body.page-std .page-title:has(+ .lead) { margin-bottom: 0; padding-bottom: 0; }
  body.page-std .page-title::after { margin-top: 16px; }
  body.page-std .page-title + .lead { margin-bottom: 32px; padding: 14px 0 36px; }
  body.page-std .site-main h2 { font-size: 1.22rem; }
  body.page-std .site-main table { font-size: 0.9rem; }
  body.page-std .site-main th,
  body.page-std .site-main td { padding: 0.65em 0.8em; }
  body.page-std .site-main tr > :first-child { min-width: 6.5em; }   /* 見出し列が1字ずつ縦に割れないように */
  body.page-std .site-main .panel { padding: 1.1em 1.1em; }
  body.page-std .site-main .lead + .section > ul:not([class]) > li { padding: 1em 1.1em; }
}
