/* 月詠みの書庫（blog.karenohonne.com）
 * 型: 一般的なSEO記事ページ（2026-10-30 調査: 占い・恋愛メディア10＋定番テーマ・大手メディア13）
 * - 白背景＋アクセント1色（藍）。フォントは端末のゴシック（Webフォントなし）
 * - 本文16px／行間1.9／字間0.03em／#3a3a3a／左右16px（スマホ）
 * - H2: 左の太線＋淡い面　H3: 左の短い線　マーカー: 太字＋下40%
 */
:root {
  --text: #3a3a3a; --sub: #8a8a8a; --line: #e6e6e6; --bg: #fff; --bg2: #f6f6f8;
  --accent: #2F3B7A; --accent-soft: #eef0f7; --gold: #b8975a; --marker: #fbe7a6;
  --line-green: #06C755; --line-green-d: #05a648;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic Medium", "YuGothic", Meiryo, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.9; letter-spacing: .03em; font-feature-settings: "palt" 0; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; vertical-align: bottom; }

/* ヘッダー */
.hd { background: #fff; border-bottom: 1px solid var(--line); }
.hd__in { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px 6px; max-width: 1080px; margin: 0 auto; }
.hd__logo { display: inline-flex; align-items: center; gap: 7px; color: #222; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: .06em; }
.moon { width: 22px; height: 22px; flex: none; }
.hd__sub { font-size: 11px; color: var(--sub); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabs { display: flex; gap: 2px; overflow-x: auto; padding: 0 10px; max-width: 1080px; margin: 0 auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; font-size: 13px; color: #555; text-decoration: none; padding: 8px 10px 9px; border-bottom: 2px solid transparent; font-weight: 600; }
.tabs a.is-on, .tabs a:hover { color: var(--accent); border-color: var(--accent); }

/* 全体 */
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; }
.crumbs { font-size: 11px; color: var(--sub); padding: 10px 0; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.crumbs::-webkit-scrollbar { display: none; }
.crumbs a { color: var(--sub); text-decoration: none; }
.crumbs__sep { margin: 0 6px; }

/* 記事の頭 */
.post__head { padding: 6px 0 0; }
.post__cat { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 2px 10px; border-radius: 3px; text-decoration: none; letter-spacing: .04em; }
.post__head h1 { margin: 10px 0 12px; font-size: 22px; line-height: 1.5; font-weight: 700; color: #222; letter-spacing: .02em; }
.post__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--sub); margin-bottom: 14px; }
.post__icon { width: 22px; height: 22px; }
.post__meta time { margin-left: auto; }
.post__ec { display: block; width: 100%; border-radius: 4px; margin-bottom: 22px; }

/* 本文 */
.post__body p { margin: 0 0 1.6em; }
.post__body h2 { margin: 2.6em 0 1.1em; padding: 12px 14px; font-size: 19px; line-height: 1.55; font-weight: 700; color: #222; background: var(--accent-soft); border-left: 6px solid var(--accent); border-radius: 0 3px 3px 0; letter-spacing: .02em; }
.post__body h3 { margin: 2.2em 0 .9em; padding: 2px 0 2px 12px; font-size: 17px; line-height: 1.6; font-weight: 700; color: #222; border-left: 4px solid var(--accent); }
.post__body h4 { margin: 1.8em 0 .6em; font-size: 16px; font-weight: 700; }
.post__body ul, .post__body ol { margin: 0 0 1.6em; padding-left: 1.4em; }
.post__body li { margin: .35em 0; }
.post__body li::marker { color: var(--accent); }
.post__body strong { font-weight: 700; background: linear-gradient(transparent 60%, var(--marker) 60%); }
blockquote { margin: 0 0 1.6em; padding: 12px 16px; background: var(--bg2); border-left: 4px solid #ccc; color: #555; }
.table { overflow-x: auto; margin: 0 0 1.8em; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.7; letter-spacing: .01em; }
th, td { border: 1px solid #ddd; padding: 9px 10px; text-align: left; vertical-align: top; }
td:first-child { min-width: 5.5em; font-weight: 600; }
th { background: var(--accent-soft); font-weight: 700; color: #222; }

/* 目次 */
.toc { margin: 0 0 2em; border: 1px solid var(--line); border-radius: 4px; background: #fafafb; }
.toc summary { cursor: pointer; padding: 10px 16px; font-weight: 700; font-size: 15px; color: #222; list-style: none; display: flex; justify-content: space-between; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: '閉じる'; font-size: 12px; font-weight: 400; color: var(--sub); }
.toc:not([open]) summary::after { content: '開く'; }
.toc ol { margin: 0 !important; padding: 2px 16px 12px 2.2em !important; font-size: 14px; line-height: 1.7; }
.toc li { margin: .45em 0 !important; }
.toc a { color: #333; text-decoration: none; }

/* 箱 */
.box { position: relative; margin: 0 0 2em; padding: 18px 16px 2px; border: 2px solid var(--accent); border-radius: 4px; }
.box__label { position: absolute; top: -12px; left: 12px; margin: 0 !important; padding: 0 8px; background: #fff; color: var(--accent); font-size: 13px; font-weight: 700; line-height: 22px; }
.box p { margin-bottom: 1em !important; }
.box--summary { border-color: var(--gold); }
.box--summary .box__label { color: var(--gold); }
.box--note { border: 1px solid #ddd; background: var(--bg2); font-size: 14px; }
.box--note .box__label { background: transparent; color: #666; top: -11px; }

/* レイナの吹き出し */
.talk { display: flex; gap: 12px; margin: 0 0 2em; align-items: flex-start; }
.talk__who { margin: 0; flex: none; width: 56px; text-align: center; }
.talk__who img { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); object-fit: cover; }
.talk__who figcaption { font-size: 11px; color: var(--sub); line-height: 1.6; }
.talk__body { position: relative; flex: 1; background: var(--accent-soft); border-radius: 8px; padding: 12px 14px 1px; font-size: 15px; }
.talk__body::before { content: ''; position: absolute; left: -8px; top: 18px; border: 8px solid transparent; border-left: 0; border-right-color: var(--accent-soft); }
.talk__body p { margin-bottom: .9em !important; }

/* カード */
.card { margin: 0 auto 2em; text-align: center; max-width: 200px; }
.card--big { max-width: 240px; }
.card img { display: block; width: 100%; border-radius: 6px; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.card img.is-rev { transform: rotate(180deg); }
.card figcaption { margin-top: 8px; line-height: 1.6; }
.card__name { display: block; font-weight: 700; font-size: 15px; }
.card__name small { font-weight: 400; font-size: 12px; color: var(--sub); }
.card__kw { display: block; font-size: 13px; color: var(--gold); }

/* FAQ */
.faq { border-top: 1px solid var(--line); margin-bottom: 2em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 13px 28px 13px 30px; font-weight: 700; position: relative; list-style: none; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: 'Q'; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.faq summary::after { content: '+'; position: absolute; right: 6px; color: var(--sub); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 14px !important; padding-left: 30px; font-size: 15px; position: relative; }
.faq details p::before { content: 'A'; position: absolute; left: 4px; color: var(--gold); font-weight: 700; }

/* 記事の最後 */
.endcta { margin: 2.4em 0 2em; padding: 20px 16px; text-align: center; background: var(--accent-soft); border-radius: 6px; }
.endcta__t { margin: 0 0 6px; font-weight: 700; font-size: 16px; color: #222; }
.endcta p { margin: 0 0 12px; font-size: 14px; }
.btn { display: block; max-width: 340px; margin: 0 auto; padding: 14px; border-radius: 999px; background: var(--accent); color: #fff !important; text-decoration: none; font-weight: 700; box-shadow: 0 3px 0 #1d2652; }
.author { margin: 0 0 2.4em; padding: 16px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; line-height: 1.8; }
.author__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.author__icon { width: 44px; height: 44px; }
.author__label { margin: 0; font-size: 11px; color: var(--sub); }
.author__name { margin: 0; font-weight: 700; font-size: 15px; color: #222; }
.author p { margin: 0 0 8px; }
.author__links a { margin-right: 14px; font-size: 13px; }
.related__t, .shelf__t { margin: 0 0 12px; padding-bottom: 8px; font-size: 17px; font-weight: 700; color: #222; border-bottom: 2px solid #222; }
.shelf { margin: 2.4em 0; }
.shelf__t a { color: inherit; text-decoration: none; }
.related__more { text-align: right; font-size: 13px; margin: 8px 0 0; }
.related__more a { text-decoration: none; }

/* 記事カード（サムネ左＋タイトル） */
.posts { list-style: none; margin: 0; padding: 0; }
.posts li { border-bottom: 1px solid var(--line); }
.posts a { display: flex; gap: 12px; padding: 12px 0; text-decoration: none; color: #222; align-items: center; }
.posts img { width: 120px; flex: none; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; }
.posts span { font-size: 14px; font-weight: 600; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 640px) {
  .posts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .posts img { width: 140px; }
}

/* 記事内の1枚引き（占いの場面だけ藍の面） */
.draw { overflow: hidden; margin: 2.4em 0; padding: 24px 16px 22px; background: linear-gradient(180deg, #27306b 0%, #1b2250 60%, #141a40 100%); color: #f3efe3; text-align: center; border-radius: 8px; }
.draw__eyebrow { margin: 0 !important; font-size: 12px; letter-spacing: .25em; color: #d9bd7f; font-weight: 600; }
.draw__title { margin: 4px 0 6px !important; padding: 0 !important; border: 0 !important; background: none !important; font-size: 18px !important; color: #fff !important; }
.draw__lead { font-size: 13px; color: #d6d2c4; margin: 0 0 14px !important; line-height: 1.8; }
.draw__q { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 360px; margin: 0 auto; }
.draw__q p { grid-column: 1 / -1; margin: 0 0 4px !important; font-size: 14px; font-weight: 600; }
.draw__q button { font: inherit; font-size: 14px; font-weight: 600; padding: 11px 6px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.draw__q button:hover { background: rgba(255, 255, 255, .18); }
.draw__fan { display: flex; justify-content: center; margin: 10px auto 6px; height: 150px; max-width: 320px; position: relative; }
.draw__fan button { position: absolute; bottom: 0; width: 76px; height: 114px; padding: 0; border: 0; border-radius: 6px; background: url(/img/cards/back.webp) center/cover; box-shadow: 0 4px 12px rgba(0, 0, 0, .45); cursor: pointer; transform-origin: 50% 160%; transition: filter .2s; }
.draw__fan button:hover, .draw__fan button:focus-visible { filter: brightness(1.2); outline: 2px solid #d9bd7f; }
.draw__hint { font-size: 13px; color: #d6d2c4; margin: 4px 0 0 !important; }
.draw__flip { width: 190px; height: 285px; margin: 6px auto 12px; perspective: 1000px; }
.draw__inner { position: relative; width: 100%; height: 100%; transition: transform .9s cubic-bezier(.3, .7, .2, 1); transform-style: preserve-3d; }
.draw__inner.is-open { transform: rotateY(180deg); }
.draw__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 8px; background: center/cover; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.draw__face--front { transform: rotateY(180deg); }
.draw__face--front.is-rev { transform: rotateY(180deg) rotate(180deg); }
.draw__name { font-size: 18px; font-weight: 700; margin: 0 !important; color: #fff; }
.draw__name small { font-size: 12px; font-weight: 400; color: #d6d2c4; }
.draw__kw { color: #d9bd7f; font-size: 14px; margin: 2px 0 12px !important; }
.draw__read { text-align: left; background: #fff; color: var(--text); border-radius: 6px; padding: 16px 16px 4px; margin: 0 auto; max-width: 520px; font-size: 15px; }
.draw__read h3 { margin: 0 0 8px !important; border: 0 !important; padding: 0 !important; font-size: 15px !important; color: var(--accent) !important; }
.draw__reina { font-weight: 700; color: #222; }
.draw__fade { position: relative; max-height: 12em; overflow: hidden; }
.draw__fade::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4.5em; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.draw__locked { list-style: none; padding: 0 !important; margin: 4px 0 12px !important; }
.draw__locked li { padding: 8px 0 8px 22px; border-top: 1px dashed #ddd; position: relative; font-size: 14px; }
.draw__locked li::before { content: '🔒'; position: absolute; left: 0; top: 8px; font-size: 12px; }
.draw__cta { display: block; max-width: 400px; margin: 16px auto 6px; padding: 14px 12px; border-radius: 999px; background: var(--line-green); color: #fff !important; text-decoration: none; font-weight: 700; font-size: 16px; box-shadow: 0 3px 0 var(--line-green-d); }
.draw__cta small { display: block; font-weight: 400; font-size: 12px; opacity: .9; }
.draw__note { font-size: 11px; color: #b9b4a4; margin: 8px 0 0 !important; }

/* 追従ボタン */
.sticky { position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 20; display: none; text-align: center; padding: 12px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); max-width: 420px; margin: 0 auto; }
.sticky.is-show { display: block; }

/* フッター */
.ft { background: var(--bg2); border-top: 1px solid var(--line); padding: 28px 16px calc(80px + env(safe-area-inset-bottom)); font-size: 13px; }
.ft__in { max-width: 760px; margin: 0 auto; }
.ft__logo { display: inline-flex; align-items: center; gap: 7px; color: #222; text-decoration: none; font-weight: 700; font-size: 16px; }
.ft__lead { color: #666; line-height: 1.8; margin: 10px 0 14px; }

.ft nav a { color: #444; text-decoration: none; }
.ft__c { color: var(--sub); font-size: 12px; margin: 0; }

@media (min-width: 760px) {
  .post__head h1 { font-size: 26px; }
  .post__body h2 { font-size: 21px; }
  .wrap { padding: 0 24px 60px; }
}

/* 情景イラスト（H2の直後） */
.il { margin: 0 0 1.6em; }
.il img { display: block; width: 100%; border-radius: 6px; }

/* ── サイト全体（2026-10-30 型: docs/blogサイト設計の型_2026-10.md） ── */
.hd__in { align-items: center; }
.hd__logo { margin-right: auto; }
.hd__sub { display: none; }
.hd__btn { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; min-width: 44px; padding: 4px 6px; color: #444; text-decoration: none; font-size: 10px; font-weight: 600; cursor: pointer; list-style: none; }
.hd__btn::-webkit-details-marker { display: none; }
.menu { position: relative; }
.menu__panel { position: absolute; right: -8px; top: 46px; z-index: 30; width: min(300px, 86vw); background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); padding: 8px 0 12px; }
.menu__panel a { display: block; padding: 10px 18px; color: #222; text-decoration: none; font-size: 14px; }
.menu__panel a:hover { background: var(--accent-soft); }
.menu__t { margin: 8px 18px 2px; font-size: 11px; color: var(--sub); font-weight: 700; letter-spacing: .08em; }

/* レイアウト（PC は右に列） */
.layout { max-width: 1120px; margin: 0 auto; }
.side { display: none; }
@media (min-width: 1080px) {
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding: 0 24px; }
  .layout .wrap { max-width: 760px; width: 100%; margin: 0; padding: 0 0 60px; }
  .side { display: block; padding-top: 16px; }
  .side__in { position: static; }  /* 固定しない。本文と一緒にふつうにスクロールする（本庄さん指示 2026-10-30） */
}
.side__box { border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 16px; font-size: 14px; line-height: 1.8; }
.side__box ul { list-style: none; margin: 0; padding: 0; }
.side__box li a { display: block; padding: 6px 0; color: #333; text-decoration: none; border-bottom: 1px solid var(--line); }
.side__t { margin: 0 0 8px; font-weight: 700; color: #222; }
.side__reina { text-align: center; }
.side__reina img { width: 64px; height: 64px; border-radius: 50%; }
.side__name { margin: 6px 0 4px; font-weight: 700; color: #222; }
.side__reina p { margin: 0 0 8px; text-align: left; }
.side__cta { background: var(--accent-soft); border-color: transparent; text-align: center; }
.side__cta p { margin: 0 0 10px; }

/* カテゴリ（ピラー）の入口 */
.catnav { margin: 0 0 2em; padding: 14px 14px 12px; background: var(--bg2); border-radius: 6px; }
.catnav__t { margin: 0 0 10px !important; font-weight: 700; font-size: 14px; color: #222; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px !important; padding: 0 !important; }
.chips li { margin: 0 !important; }
.chips a { display: inline-block; padding: 6px 12px; font-size: 13px; line-height: 1.5; color: var(--accent); background: #fff; border: 1px solid #d6daea; border-radius: 999px; text-decoration: none; }
.catnav__all { font-size: 13px; text-decoration: none; }

/* トップ */
.wrap--home { padding-top: 8px; }
.hero { padding: 28px 4px 26px; text-align: center; border-bottom: 1px solid var(--line); }
.hero__en, .sec__en { margin: 0; font-size: 11px; letter-spacing: .25em; color: var(--gold); font-weight: 600; }
.hero__t { margin: 8px 0 12px; font-size: 25px; line-height: 1.6; color: #222; letter-spacing: .06em; }
.hero__lead { margin: 0 auto 14px; max-width: 520px; font-size: 15px; color: #555; }
.badges { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; }
.badges li { font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 3px; }
.hero__btn { max-width: 300px; }
.home-sec { margin: 34px 0; }
.sec__t { margin: 2px 0 14px; font-size: 20px; color: #222; }
.worries { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; }
.worries a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 10px 12px; font-size: 14px; font-weight: 700; color: #222; background: #fff; border: 1px solid #d6daea; border-radius: 8px; text-decoration: none; line-height: 1.5; }
.worries a::after { content: '›'; color: var(--accent); margin-left: 6px; }
.shelf__t { margin: 22px 0 6px; font-size: 16px; padding-left: 10px; border-left: 4px solid var(--accent); border-bottom: 0; }
.trust { padding: 18px 16px; background: var(--bg2); border-radius: 8px; font-size: 14px; }
.trust p { margin: 0 0 10px; }
.trust__links { margin: 0; padding-left: 1.2em; }

/* 記事を探す */
.search__l { display: block; font-weight: 700; margin-bottom: 8px; }
.search__in { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #ccc; border-radius: 8px; }
.search__n { font-size: 13px; color: var(--sub); margin: 10px 0 !important; }

/* フッター: 「悩みから探す」だけを主役に。書庫についてはその下に小さく、ご利用にあたっては最下部に最小で */
.ft__main { margin: 8px 0 18px; }
.ft__t { margin: 0 0 10px; font-weight: 700; color: #222; font-size: 15px; }
.ft__cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ft__cats a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 8px 12px; background: #fff; border: 1px solid #d6daea; border-radius: 8px; color: #222 !important; font-weight: 700; font-size: 14px; line-height: 1.5; }
.ft__cats a::after { content: '›'; color: var(--accent); margin-left: 6px; }
.ft__sub { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 16px; font-size: 12px; }
.ft__sub a { color: #666 !important; }
.ft__c { font-size: 11px; color: #aaa; line-height: 2; }
.ft__c a { color: #aaa !important; margin-right: 12px; white-space: nowrap; }
@media (min-width: 760px) { .ft__cats { grid-template-columns: repeat(4, 1fr); } }

/* スマホ（〜639px）: 横長の表は1行＝1枚のカードに（横スクロールさせない） */
@media (max-width: 639px) {
  .table--cards { overflow: visible; }
  .table--cards table, .table--cards tbody, .table--cards tr, .table--cards td { display: block; width: 100%; }
  .table--cards thead { display: none; }
  .table--cards tr { margin: 0 0 12px; border: 1px solid #dde0ea; border-radius: 8px; overflow: hidden; background: #fff; }
  .table--cards td { border: 0; border-top: 1px solid #eef0f5; padding: 8px 14px 10px; font-size: 14.5px; line-height: 1.75; min-width: 0; font-weight: 400; }
  .table--cards td::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 700; color: var(--accent); letter-spacing: .04em; margin-bottom: 2px; }
  .table--cards td:first-child { border-top: 0; background: var(--accent-soft); font-weight: 700; font-size: 15px; color: #222; padding: 10px 14px; }
  .table--cards td:first-child::before { display: none; }
}

/* 箇条書きの太字の見出し語は1行目に独立させる（スマホで拾い読みしやすく） */
.post__body li > strong:first-child { display: block; margin-bottom: 2px; }
