/*
Theme Name: 月のノート
Description: 女性のための性の本音サイト「月のノート」用のテーマ（プラグイン「月のノート コア」と組み合わせて使う）。テイスト「ミッドナイト」。
Version: 0.4.0
Requires PHP: 7.4
Text Domain: yoru-theme
*/

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--yh-bg, #1E1B2E); color-scheme: dark; }
html.yh-light { color-scheme: light; }
body {
  margin: 0;
  background: var(--yh-bg, #1E1B2E);
  color: var(--yh-ink, #EDE6EF);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 84px; /* 下のメニューの分 */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
a { color: var(--yh-strong, #F3C6A0); }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; left: -9999px; }
.screen-reader-text:focus { left: 8px; top: 8px; background: #fff; color: #000; padding: 8px; z-index: 10000; }
:focus-visible { outline: 2px solid var(--yh-accent, #B9AAD8); outline-offset: 2px; }

.yt-wrap { max-width: 640px; margin: 0 auto; padding: 0 22px; }
@media (min-width: 900px) { .yt-wrap { max-width: 1000px; } .home .yt-main .yt-wrap { max-width: 640px; } }

/* ヘッダー：帯にせず、背景になじませる */
.yt-header { position: sticky; top: 0; z-index: 50; background: var(--yh-head-bg, rgba(30, 27, 46, .82)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--yh-line, rgba(255,255,255,.08)); }
.yt-header-in { display: flex; align-items: center; gap: 8px; height: 60px; position: relative; }
.yt-logo { color: var(--yh-ink, #EDE6EF); text-decoration: none; display: flex; align-items: center; gap: 8px; margin-right: auto; font-weight: 700; font-size: 17px; letter-spacing: .08em; }
.yt-logo .yh-logo-mark { width: 22px; height: 22px; color: var(--yh-main, #F3C6A0); }
.yt-nav { display: none; gap: 2px; align-items: center; }
.yt-nav a { white-space: nowrap; color: var(--yh-sub, #9C93A8); text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: 14px; }
.yt-nav a:hover, .yt-nav a.is-current { color: var(--yh-ink, #EDE6EF); background: var(--yh-line, rgba(255,255,255,.06)); }
.yt-nav a.is-cta { background: var(--yh-main, #F3C6A0); color: var(--yh-main-ink, #1E1B2E); font-weight: 700; margin-left: 6px; }
.yt-nav .yt-badge { display: inline-block; background: var(--yh-main, #F3C6A0); color: var(--yh-main-ink, #1E1B2E); border-radius: 999px; font-size: 11px; padding: 0 6px; margin-left: 4px; }
@media (min-width: 900px) { .yt-nav { display: flex; } }
.yt-exit { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--yh-sub, #9C93A8); border: 1px solid var(--yh-line-2, rgba(255,255,255,.14)); border-radius: 999px; padding: 5px 12px; text-decoration: none; white-space: nowrap; }
.yt-exit:hover { color: var(--yh-ink, #EDE6EF); }

/* 本文 */
.yt-main { padding: 24px 0 48px; min-height: 60vh; }
.yt-page-title { font-size: clamp(20px, 4.6vw, 26px); line-height: 1.55; margin: 6px 0 14px; letter-spacing: .03em; font-weight: 700; }
.single-yh_talk .yt-page-title { font-size: clamp(19px, 4.4vw, 23px); }
.yt-page-desc { color: var(--yh-sub, #9C93A8); font-size: 14px; margin: -6px 0 22px; }
.yt-article { max-width: 680px; margin: 0 auto; }
.yt-article .yt-body { font-size: 16px; line-height: 2; }
.yt-article .yt-body > p { margin: 0 0 1.3em; }
.yt-article .yt-body h2 { font-size: 19px; margin: 2.2em 0 .8em; }
.yt-article .yt-body h3 { font-size: 16px; margin: 1.8em 0 .6em; color: var(--yh-accent, #B9AAD8); }
.yt-article .yt-body ul, .yt-article .yt-body ol { padding-left: 1.3em; }
.yt-article .yt-body li { margin: .35em 0; }
.yt-article .yt-body strong { color: var(--yh-strong, #F3C6A0); font-weight: 700; }
.yt-crumbs { font-size: 12px; color: var(--yh-sub, #9C93A8); margin: 0 0 6px; }
.yt-crumbs a { color: inherit; text-decoration: none; }
html.yh-quiet .yt-thumb-main { display: none; }
.yt-thumb-main { border-radius: 16px; overflow: hidden; margin: 0 0 20px; aspect-ratio: 5 / 3; }
.yt-thumb-main svg, .yt-thumb-main img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* フッター */
.yt-footer { border-top: 1px solid var(--yh-line, rgba(255,255,255,.08)); color: var(--yh-sub, #9C93A8); padding: 32px 0 24px; font-size: 12px; }
.yt-footer a { color: var(--yh-sub, #9C93A8); text-decoration: none; }
.yt-footer a:hover { color: var(--yh-ink, #EDE6EF); }
.yt-footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 14px; }

/* スマホの下のメニュー */
.yt-tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: var(--yh-bar-bg, rgba(40, 36, 58, .94)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--yh-line, rgba(255,255,255,.08)); display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 0 calc(10px + env(safe-area-inset-bottom)); }
.yt-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--yh-sub, #9C93A8); font-size: 10px; position: relative; }
.yt-tabbar a.is-current { color: var(--yh-ink, #EDE6EF); }
.yt-tabbar a.is-current .yh-ic { color: var(--yh-strong, #F3C6A0); }
.yt-tabbar .yt-write { width: 46px; height: 46px; border-radius: 50%; background: var(--yh-main, #F3C6A0); color: var(--yh-main-ink, #1E1B2E); display: flex; align-items: center; justify-content: center; margin-top: -20px; box-shadow: 0 6px 18px -6px rgba(243,198,160,.6); }
.yt-tabbar .yt-dot { position: absolute; top: 0; left: 58%; width: 7px; height: 7px; background: var(--yh-main, #F3C6A0); border-radius: 50%; }
@media (min-width: 900px) { .yt-tabbar { display: none; } }

.yt-pagination { display: flex; gap: 6px; justify-content: center; margin: 28px 0; flex-wrap: wrap; }
.yt-pagination .page-numbers { padding: 6px 12px; border-radius: 10px; background: var(--yh-surface, #28243A); color: var(--yh-ink, #EDE6EF); text-decoration: none; }
.yt-pagination .current { background: var(--yh-main, #F3C6A0); color: var(--yh-main-ink, #1E1B2E); }

/* 0.4.0：コーナーが増えたのでヘッダーを2段に（パソコン）。スマホは下のメニュー＋「もっと」 */
.yt-head-actions { display: flex; align-items: center; gap: 6px; }
.yt-head-actions .yt-pc { display: none; white-space: nowrap; color: var(--yh-sub, #9C93A8); text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: 14px; }
.yt-head-actions .yt-pc.is-cta { background: var(--yh-main, #F3C6A0); color: var(--yh-main-ink, #1E1B2E); font-weight: 700; }
.yt-head-actions .yt-pc.is-current, .yt-head-actions .yt-pc:hover { color: var(--yh-ink, #EDE6EF); }
.yt-head-actions .yt-pc.is-cta:hover { color: var(--yh-main-ink, #1E1B2E); }
.yt-head-actions .yt-badge { display: inline-block; background: var(--yh-main, #F3C6A0); color: var(--yh-main-ink, #1E1B2E); border-radius: 999px; font-size: 11px; padding: 0 6px; margin-left: 4px; }
.yt-nav { display: none; border-top: 1px solid var(--yh-line, rgba(255,255,255,.08)); }
.yt-nav .yt-wrap { display: flex; gap: 2px; align-items: center; height: 44px; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 900px) {
  .yt-head-actions .yt-pc { display: inline-block; }
  .yt-nav { display: block; }
}
.yt-tabbar .yt-more { display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; color: var(--yh-sub, #9C93A8); font: inherit; font-size: 10px; position: relative; cursor: pointer; padding: 0; }
.yt-tabbar .yt-more.is-current { color: var(--yh-ink, #EDE6EF); }
.yt-tabbar .yt-more.is-current .yh-ic { color: var(--yh-strong, #F3C6A0); }
