@charset "UTF-8";
/*
Theme Name: Kininaru
Theme URI: https://pophub.com/
Author: Kininaru
Author URI: https://pophub.com/
Description: 美容・ファッション・暮らし・ごはんを集める女性向けライフスタイルポータル「Kininaru（キニナル）」用のWordPressテーマ。中央ロゴ、下線式のタブナビ、見切れカルーセル、2カラムのトピックリスト、番号バッジ付きランキングなど、軽量で回遊しやすいポータルの型を踏襲しています。提供元クレジットと相対時間表示を内蔵。
Version: 1.0.6
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pophub
Tags: news, magazine, portal, two-columns, custom-menu, featured-images, translation-ready, right-sidebar
*/

/* =============================================================
   0. デザイントークン
   ============================================================= */
:root {
  --brand:      #c23b6e;   /* 女性誌のローズ */
  --brand-dark: #9e2d58;
  --brand-tint: #fbeaf1;

  --ink:      #3a3034;
  --ink-2:    #6a5c62;
  --muted:    #9a8b91;
  --muted-2:  #c4b6bb;
  --line:     #f0e4e8;
  --line-2:   #f7eef1;
  --bg:       #fffafb;
  --bg-soft:  #fbf4f6;
  --bg-btn:   #f6eaee;

  --gold:   #c9a15b;
  --silver: #b7a8ae;
  --bronze: #c48978;

  --container: 1080px;
  --sidebar-w: 320px;
  --gap:       36px;
  --radius-s:  4px;
  --radius-m:  8px;

  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
               "BIZ UDPGothic", Meiryo, system-ui, -apple-system, sans-serif;
  --font-serif: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

/* =============================================================
   1. リセット & ベース
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.7;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; vertical-align: middle; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; transition: color .14s, opacity .14s; }
a:hover { color: var(--brand); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.5; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 9999; width: auto; height: auto;
  clip: auto; padding: 10px 16px; background: #fff; border: 2px solid var(--brand);
}

.l-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 18px; }

/* =============================================================
   2. ヘッダー
   ============================================================= */

/* 2-1. 題字行 */
.l-masthead { border-bottom: 1px solid var(--line-2); }
.l-masthead__inner {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 16px; min-height: 96px;
}

.p-burger {
  display: none; flex-direction: column; gap: 5px; justify-self: start;
  border: 0; background: none; padding: 6px 2px;
}
.p-burger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: .2s; }
.is-open > .p-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-open > .p-burger span:nth-child(2) { opacity: 0; }
.is-open > .p-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.p-logo { grid-column: 2; justify-self: center; }
.p-logo__link { display: inline-block; line-height: 0; }
.p-logo img,
.p-logo__img {
  display: block;
  width: auto;
  height: 72px;
  max-width: min(100%, 280px);
}
.p-logo__word { font-family: var(--font-serif); font-size: 28px; font-weight: 600; letter-spacing: .04em; line-height: 1; }
.p-logo__word em { font-style: normal; color: var(--brand); }

.l-masthead__right { grid-column: 3; justify-self: end; }

/* 検索（ピル） */
.p-search { position: relative; }
.p-search__field {
  width: 208px; height: 34px; padding: 0 14px 0 36px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-soft); font-size: 13px; font-family: inherit; color: var(--ink);
}
.p-search__field::placeholder { color: var(--muted-2); }
.p-search__field:focus { outline: none; border-color: var(--brand); background: #fff; }
.p-search__submit {
  position: absolute; top: 0; left: 0; width: 34px; height: 34px;
  border: 0; background: none; color: var(--muted); display: grid; place-items: center;
}
.p-search__submit:hover { color: var(--brand); }

/* 2-3. タブナビ（下線式） */
.l-tabnav { border-bottom: 1px solid var(--line); background: #fff; }
.l-tabnav__list {
  display: flex; align-items: stretch;
  overflow-x: auto; scrollbar-width: none;
}
.l-tabnav__list::-webkit-scrollbar { display: none; }
.l-tabnav__list > li { position: relative; flex: none; }
.l-tabnav__list > li:first-child { margin-left: auto; }
.l-tabnav__list > li:last-child { margin-right: auto; }
.l-tabnav__list > li > a {
  display: flex; align-items: center; height: 46px; padding: 0 18px;
  font-size: 14px; font-weight: 700; color: var(--ink-2); white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.l-tabnav__list > li > a:hover { color: var(--brand); }
.l-tabnav__list > li.current-menu-item > a,
.l-tabnav__list > li.is-current > a { color: var(--brand); border-bottom-color: var(--brand); }

.l-tabnav__list .sub-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 180px; z-index: 60; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-m); box-shadow: 0 8px 24px rgba(0,0,0,.1);
  opacity: 0; visibility: hidden; transition: .16s; padding: 6px;
}
.l-tabnav__list li:hover > .sub-menu { opacity: 1; visibility: visible; }
.l-tabnav__list .sub-menu a { display: block; padding: 9px 14px; font-size: 13px; border-radius: var(--radius-s); }
.l-tabnav__list .sub-menu a:hover { background: var(--brand-tint); }

.p-drawer-overlay { display: none; }

/* =============================================================
   3. ヒーローカルーセル（見切れ表示）
   ============================================================= */
.p-hero { padding: 20px 0 8px; overflow: hidden; }
.p-hero__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 232px; gap: 14px;
  width: 100%; min-width: 0;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-inline: calc(50vw - var(--container) / 2 + 18px);
  scrollbar-width: none; padding-inline: calc(50vw - var(--container) / 2 + 18px);
}
.p-hero__track::-webkit-scrollbar { display: none; }
.p-hero__item { scroll-snap-align: start; min-width: 0; }
.p-hero__item img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--radius-m); background: var(--bg-soft);
}
.p-hero__title { display: block; min-width: 0; font-size: 13.5px; font-weight: 700; line-height: 1.55; margin-top: 9px; overflow-wrap: break-word; }
.p-hero__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }

.p-hero__nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }
.c-round {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); display: grid; place-items: center;
}
.c-round:hover { border-color: var(--brand); color: var(--brand); }

/* =============================================================
   4. 本文レイアウト
   ============================================================= */
.l-body { padding: 26px 0 50px; }
.l-body__inner { display: grid; grid-template-columns: minmax(0,1fr) var(--sidebar-w); gap: var(--gap); }
.l-content, .l-sidebar { min-width: 0; }
.l-body--full .l-body__inner { grid-template-columns: minmax(0,1fr); }

/* セクション見出し */
.c-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  border-bottom: 1px solid var(--line); padding-bottom: 9px; margin-bottom: 4px;
}
.c-head__title { font-family: var(--font-serif); font-size: 20px; font-weight: 600; letter-spacing: .06em; }
.c-head__more { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.c-head__more:hover { color: var(--brand); }
.c-section { margin-bottom: 38px; }

/* 主要トピックス：2カラムのコンパクトリスト */
.p-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.p-topics__item {
  display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line-2); align-items: center;
}
.p-topics__item > a { display: block; min-width: 0; }
.p-topics__thumb { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-s); background: var(--bg-soft); }
.p-topics__title { font-size: 13px; line-height: 1.6; overflow-wrap: break-word; }
.p-topics__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* 新着ニュース：1カラムのリスト */
.p-list__item {
  display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 18px;
  padding: 16px 0; border-bottom: 1px solid var(--line-2); align-items: start;
}
.p-list__item > a { display: block; min-width: 0; }
.p-list__thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-m); background: var(--bg-soft); }
.p-list__title { font-size: 15px; line-height: 1.6; overflow-wrap: break-word; }
.p-list__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* メタ部品 */
.c-time { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.c-new {
  font-size: 10px; font-weight: 700; color: var(--brand);
  border: 1px solid var(--brand); border-radius: 999px; padding: 1px 6px; line-height: 1.4;
}
.c-source {
  font-size: 11px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 2px; padding: 1px 6px; line-height: 1.5;
}
.c-source:hover { border-color: var(--brand); color: var(--brand); }
.c-cat {
  font-size: 11px; font-weight: 700; color: var(--brand);
  background: var(--brand-tint); border-radius: 999px; padding: 2px 8px; line-height: 1.5;
}
.c-cat:hover { background: var(--brand); color: #fff; }
.c-release {
  font-size: 10px; font-weight: 700; letter-spacing: .04em; color: #fff;
  background: var(--brand); border-radius: 999px; padding: 2px 8px; line-height: 1.5;
}
.p-ranking__body .c-release { margin-top: 6px; }

/* もっと見る（グレーの幅広ピル） */
.c-more {
  display: block; width: min(100%, 300px); margin: 22px auto 0;
  background: var(--bg-btn); border: 0; border-radius: 999px;
  padding: 11px 20px; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--ink-2);
}
.c-more:hover { background: #f0dfe6; color: var(--ink); }

/* ページネーション */
.c-pagination { margin-top: 30px; }
.c-pagination .nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.c-pagination .page-numbers {
  min-width: 36px; height: 36px; padding: 0 11px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-s); font-size: 13px; color: var(--ink-2);
}
.c-pagination .page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.c-pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }

/* =============================================================
   5. サイドバー
   ============================================================= */
.l-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.p-widget { margin-bottom: 30px; }
.p-widget__title {
  font-family: var(--font-serif); font-size: 16px; font-weight: 600; letter-spacing: .06em;
  border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 4px;
}
.p-widget__note { margin: 0 0 10px; font-size: 12px; color: var(--muted); }

.l-sidebar .p-widget {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 14px 10px;
  box-shadow: 0 12px 32px rgba(194, 59, 110, .06);
}
.l-sidebar .p-widget__title {
  position: relative;
  margin: 0 0 2px;
  padding: 0 0 0 12px;
  border: 0;
  font-size: 17px;
}
.l-sidebar .p-widget__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  bottom: .2em;
  width: 3px;
  border-radius: 99px;
  background: var(--brand);
}
.l-sidebar .p-widget__note { margin: 0 0 10px 12px; }

.p-ranking { margin: 2px 0 6px; }
.p-ranking__item { margin: 0; padding: 0; border: 0; }
.p-ranking__link {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 7px;
  border-radius: 12px;
  color: inherit;
}
.p-ranking__link:hover { background: var(--brand-tint); color: inherit; }
.p-ranking__link:hover .p-ranking__title { color: var(--brand); }
.p-ranking__media { position: relative; display: block; min-width: 0; }
.p-ranking__body { min-width: 0; }
.p-ranking__thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  background: var(--bg-soft);
  display: block;
}
.p-ranking__num {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(58, 48, 52, .12);
}
.p-ranking__item:nth-child(-n+3) .p-ranking__num {
  background: var(--brand-tint);
  color: var(--brand);
  border-color: transparent;
}
.p-ranking__title { display: block; min-width: 0; font-size: 13px; line-height: 1.55; overflow-wrap: break-word; }
.p-ranking__time { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }

.p-ranking__item:nth-child(1) .p-ranking__link {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 2px 2px 8px;
  background: transparent;
}
.p-ranking__item:nth-child(1) .p-ranking__thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
}
.p-ranking__item:nth-child(1) .p-ranking__num {
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  background: var(--brand);
  color: #fff;
  border: 0;
  font-size: 14px;
}
.p-ranking__item:nth-child(1) .p-ranking__body { display: block; padding: 10px 4px 0; }
.p-ranking__item:nth-child(1) .p-ranking__title {
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
}

.p-ranking--quiet .p-ranking__item:nth-child(1) .p-ranking__link {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 7px;
}
.p-ranking--quiet .p-ranking__item:nth-child(1) .p-ranking__thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
}
.p-ranking--quiet .p-ranking__item:nth-child(1) .p-ranking__num {
  top: -6px;
  left: -6px;
  width: 22px;
  height: 22px;
  font-size: 12px;
  background: var(--brand-tint);
  color: var(--brand);
}
.p-ranking--quiet .p-ranking__item:nth-child(1) .p-ranking__body { padding: 0; }
.p-ranking--quiet .p-ranking__item:nth-child(1) .p-ranking__title {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
}

.l-sidebar .p-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 8px;
}
.l-sidebar .p-cats > li,
.l-sidebar .p-cats > .cat-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 12px;
  color: var(--muted);
}
.l-sidebar .p-cats a { font-weight: 700; color: var(--ink); }
.l-sidebar .p-cats > li:hover,
.l-sidebar .p-cats > .cat-item:hover { background: var(--brand); color: #fff; }
.l-sidebar .p-cats > li:hover a,
.l-sidebar .p-cats > .cat-item:hover a { color: #fff; }

.p-banner { display: block; margin-bottom: 14px; }
.l-sidebar .widget select { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-s); }

/* =============================================================
   6. 記事詳細
   ============================================================= */
.p-breadcrumb { font-size: 11.5px; color: var(--muted); padding: 11px 0; }
.p-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 7px; }
.p-breadcrumb li + li::before { content: "›"; margin-right: 7px; color: var(--muted-2); }

.p-article__header { padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.p-article__cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.p-article__title { font-family: var(--font-serif); font-size: 26px; font-weight: 600; line-height: 1.5; margin-bottom: 12px; }
.p-article__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.p-article__figure { margin: 0 0 24px; }
.p-article__figure img { width: 100%; border-radius: var(--radius-m); }
.p-article__lead {
  font-size: 15px; line-height: 1.9; background: var(--bg-soft);
  border-radius: var(--radius-m); padding: 15px 18px; margin-bottom: 24px;
}

.p-article__body { font-size: 15.5px; line-height: 2.0; }
.p-article__body > * + * { margin-top: 1.35em; }
.p-article__body h2 {
  font-size: 19px; margin-top: 2em; padding: 8px 0 8px 13px;
  border-left: 5px solid var(--brand); background: var(--bg-soft); border-radius: 0 var(--radius-s) var(--radius-s) 0;
}
.p-article__body h3 { font-size: 17px; margin-top: 1.8em; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.p-article__body a { color: var(--brand); text-decoration: underline; }
.p-article__body ul { list-style: disc; padding-left: 1.5em; }
.p-article__body ol { list-style: decimal; padding-left: 1.7em; }
.p-article__body li { margin-bottom: .45em; }
.p-article__body img { border-radius: var(--radius-m); }
.p-article__body blockquote {
  background: var(--bg-soft); border-radius: var(--radius-m); padding: 16px 20px;
  color: var(--ink-2); font-size: 14.5px;
}
.p-article__body figure { margin: 1.8em 0; }
.p-article__body figcaption { font-size: 12px; color: var(--muted); margin-top: 7px; }
.p-article__body table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.p-article__body th, .p-article__body td { border: 1px solid var(--line); padding: 9px 11px; }
.p-article__body th { background: var(--bg-soft); }

/* 提供元クレジット */
.p-credit {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--bg-soft); border-radius: var(--radius-m);
  padding: 13px 16px; margin-top: 28px; font-size: 12.5px; color: var(--ink-2);
}
.p-credit__label {
  font-size: 10.5px; font-weight: 700; color: #fff; background: var(--muted);
  border-radius: 2px; padding: 2px 7px; flex: none;
}
.p-credit a { color: var(--brand); text-decoration: underline; }

.p-article__footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.p-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.p-tags a {
  font-size: 12px; padding: 5px 13px; background: var(--bg-soft);
  border-radius: 999px; color: var(--ink-2);
}
.p-tags a:hover { background: var(--brand-tint); color: var(--brand); }
.p-sharelist { display: flex; gap: 8px; margin-top: 18px; }
.p-sharelist a {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--muted);
  font-size: 13px; font-weight: 700;
}
.p-sharelist a:hover { border-color: var(--brand); color: var(--brand); }

/* 読み終えたあとの次記事 */
.p-article { scroll-margin-top: 18px; }
.p-stream { margin-top: 36px; }
.p-stream__kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--brand);
}
.p-stream__note {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}
.p-stream__card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(194, 59, 110, .07);
}
.p-stream__card:hover { border-color: #e7c3d1; color: inherit; }
.p-stream__card:hover .p-stream__title { color: var(--brand); }
.p-stream__thumb {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--brand-tint);
}
.p-stream__thumb img,
.p-stream__thumb svg { width: 100%; height: 100%; object-fit: cover; }
.p-stream__body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.p-stream__title {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
}
.p-stream__go {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
}
.p-stream__go::after { content: " →"; }
.p-stream__more { margin-top: 26px; }
.p-stream__more .c-head { margin-bottom: 4px; }

.p-nextbar {
  position: fixed;
  z-index: 70;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  max-width: 640px;
  margin: 0 auto;
  padding: 10px 12px 12px;
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(58, 48, 52, .18);
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
  transition: transform .28s ease, opacity .28s ease;
}
.p-nextbar.is-on {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.p-nextbar:hover { color: inherit; }
.p-nextbar:hover .p-nextbar__title { color: var(--brand); }
.p-nextbar__meter {
  flex: 1 0 100%;
  height: 3px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}
.p-nextbar__meter-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand);
}
.p-nextbar__meta { display: flex; align-items: center; gap: 8px; flex: none; }
.p-nextbar__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--brand);
}
.p-nextbar__left { font-size: 11px; color: var(--muted); }
.p-nextbar__title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.p-nextbar__go {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
}
body.has-nextbar .p-pagetop { bottom: 88px; }

.p-page__title { font-size: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }

/* アーカイブ見出し */
.p-archive-head { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 8px; }
.p-archive-head__title { font-size: 22px; }
.p-archive-head__desc { font-size: 13px; color: var(--muted); margin: 7px 0 0; }

/* 空 / 404 */
.p-empty { text-align: center; padding: 62px 20px; }
.p-empty__code { font-size: 52px; font-weight: 700; color: var(--brand); line-height: 1; margin: 0; }
.p-empty__title { font-size: 18px; margin: 16px 0 9px; }
.p-empty__text { color: var(--muted); font-size: 13.5px; }
.p-empty .p-search { display: inline-block; margin-top: 22px; }

/* =============================================================
   7. フッター
   ============================================================= */
.l-footer {
  margin-top: 48px;
  padding: 28px 0 36px;
  background: var(--bg-soft);
  font-size: 13px;
}
.l-footer__panel {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0 28px 16px;
  box-shadow: 0 16px 40px rgba(194, 59, 110, .06);
}
.l-footer__panel::before {
  content: "";
  display: block;
  height: 4px;
  margin: 0 -28px 24px;
  background: linear-gradient(90deg, #c23b6e, #e7a0bb);
}
.l-footer__cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.15fr; gap: 28px 32px; }
.l-footer .p-logo__link { display: inline-block; }
.l-footer .p-logo__img,
.l-footer .p-logo img { height: 68px; max-width: 240px; }
.l-footer__tagline {
  max-width: 28em;
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-2);
}
.l-footer__heading {
  position: relative;
  margin: 0 0 14px;
  padding-left: 12px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .06em;
}
.l-footer__heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: .22em;
  bottom: .22em;
  width: 3px;
  border-radius: 99px;
  background: var(--brand);
}
.l-footer__list li { margin: 0 0 8px; font-size: 13px; }
.l-footer__list a { color: var(--ink-2); }
.l-footer__list a:hover { color: var(--brand); }
.l-footer__cats { display: flex; flex-wrap: wrap; gap: 8px; }
.l-footer__cats li { margin: 0; }
.l-footer__cats a {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.l-footer__cats a:hover { background: var(--brand); color: #fff; }
.l-footer__bottom {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.l-footer__legal { display: flex; gap: 8px 16px; flex-wrap: wrap; font-size: 12px; }
.l-footer__legal a { color: var(--muted); }
.l-footer__legal a:hover { color: var(--brand); }
.l-footer__copy { font-size: 12px; color: var(--muted); letter-spacing: .04em; }

.p-pagetop {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: .24s;
}
.p-pagetop.is-visible { opacity: 1; visibility: visible; }
.p-pagetop:hover { background: var(--brand-dark); }

/* =============================================================
   8. レスポンシブ
   ============================================================= */
@media (max-width: 1120px) {
  .p-hero__track { padding-inline: 18px; scroll-padding-inline: 18px; }
}

@media (max-width: 960px) {
  :root { --gap: 26px; --sidebar-w: 280px; }
  .l-tabnav__list > li > a { padding: 0 12px; }
}

@media (max-width: 860px) {
  .l-tabnav__list > li > a { padding: 0 10px; }
  .l-body__inner { grid-template-columns: minmax(0,1fr); }
  .l-sidebar { border-top: 0; padding-top: 10px; }
  .p-topics { grid-template-columns: 1fr; gap: 0; }
  .l-footer__cols { grid-template-columns: 1fr 1fr; }
  .l-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 782px) {
  .l-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 250, 251, .96);
    backdrop-filter: blur(10px);
  }
  .l-masthead__inner {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    grid-template-areas: "burger logo ." "search search search";
    align-items: center;
    gap: 8px 0;
    min-height: 0;
    padding-block: 8px 10px;
  }
  .p-burger {
    display: flex;
    grid-area: burger;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .p-logo { grid-area: logo; justify-self: center; align-self: center; }
  .p-logo img,
  .p-logo__img { height: 54px; max-width: 168px; }
  .l-masthead__right { grid-area: search; width: 100%; }
  .l-masthead__right .p-search { display: block; }
  .p-search__field { width: 100%; height: 42px; font-size: 15px; }

  .l-container { padding-inline: 16px; }
  body { font-size: 15px; }

  .p-hero { padding: 14px 0 4px; }
  .p-hero__track {
    grid-auto-columns: calc(100% - 36px);
    gap: 12px;
    padding-inline: 16px;
    scroll-padding-inline: 16px;
  }
  .p-hero__title { font-size: 16px; line-height: 1.55; margin-top: 10px; }
  .c-round { width: 40px; height: 40px; }

  .c-head__title { font-size: 20px; }
  .c-time { font-size: 12px; }

  .p-topics__item {
    grid-template-columns: minmax(0, clamp(6.5rem, 32vw, 7.5rem)) minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
    align-items: center;
  }
  .p-topics__thumb { border-radius: 10px; }
  .p-topics__title { font-size: 15.5px; line-height: 1.6; }

  .p-list__item {
    grid-template-columns: minmax(0, clamp(7.25rem, 40vw, 10.5rem)) minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0;
  }
  .p-list__thumb { border-radius: 10px; }
  .p-list__title { font-size: 16px; line-height: 1.6; }

  .p-ranking__link { grid-template-columns: clamp(5.5rem, 28vw, 6.75rem) minmax(0, 1fr); gap: 12px; padding: 10px 6px; }
  .p-ranking__title { font-size: 15px; line-height: 1.55; }
  .p-ranking__item:nth-child(1) .p-ranking__title { font-size: 18px; }
  .p-ranking--quiet .p-ranking__item:nth-child(1) .p-ranking__link { grid-template-columns: clamp(5.5rem, 28vw, 6.75rem) minmax(0, 1fr); }
  .p-ranking--quiet .p-ranking__item:nth-child(1) .p-ranking__thumb { width: 100%; }
  .p-ranking--quiet .p-ranking__item:nth-child(1) .p-ranking__title { font-size: 15px; }
  .l-sidebar .p-cats > li,
  .l-sidebar .p-cats > .cat-item { padding: 8px 14px; font-size: 13px; }

  .p-article__title { font-size: 23px; line-height: 1.45; }
  .p-article__lead { font-size: 15.5px; padding: 14px 16px; }
  .p-article__body { font-size: 16px; line-height: 1.95; }
  .p-article__body h2 { font-size: 18px; }
  .p-article__body table { display: block; overflow-x: auto; }
  .p-breadcrumb { font-size: 12px; }

  .c-more { width: 100%; padding: 13px 16px; font-size: 14px; }

  .l-footer { padding: 18px 0 72px; }
  .l-footer__panel { padding: 0 16px 14px; border-radius: 16px; }
  .l-footer__panel::before { margin-inline: -16px; }
  .l-footer .p-logo__img,
  .l-footer .p-logo img { height: 60px; max-width: 200px; }
  .l-footer__tagline { font-size: 14px; line-height: 1.85; }
  .l-footer__cols { grid-template-columns: 1fr; gap: 26px; }
  .l-footer__heading { font-size: 17px; letter-spacing: .03em; }
  .l-footer__list a { display: inline-flex; align-items: center; min-height: 36px; font-size: 14px; }
  .l-footer__cats { gap: 10px; }
  .l-footer__cats a { padding: 10px 14px; font-size: 13px; }
  .l-footer__bottom { align-items: flex-start; flex-direction: column; gap: 10px; }
  .l-footer__legal a { display: inline-flex; align-items: center; min-height: 32px; }

  .p-pagetop { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); width: 44px; height: 44px; }

  .p-hero__title,
  .p-topics__title,
  .p-list__title,
  .p-ranking__title,
  .p-article__title,
  .p-stream__title { word-break: auto-phrase; }
}

@media (max-width: 480px) {
  .p-empty__code { font-size: 42px; }
  .p-hero__track { grid-auto-columns: calc(100% - 28px); }
}

/* スマホだけ、ハンバーガーで開くメニュー */
@media (max-width: 782px) {
  .l-tabnav {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 90;
    width: min(86vw, 320px);
    margin: 0;
    padding: 8px 0 32px;
    background: #fff;
    border-bottom: 0;
    overflow-y: auto;
    transform: translateX(-105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .26s ease, visibility .26s;
  }
  .l-tabnav.is-open {
    transform: none;
    visibility: visible;
    pointer-events: auto;
    box-shadow: 8px 0 28px rgba(58, 48, 52, .12);
  }
  .l-tabnav .l-container { padding: 0; }
  .l-tabnav__list { flex-direction: column; overflow: visible; }
  .l-tabnav__list > li { display: block; }
  .l-tabnav__list > li:first-child,
  .l-tabnav__list > li:last-child { margin: 0; }
  .l-tabnav__list > li > a {
    height: auto;
    min-height: 48px;
    padding: 12px 22px;
    border-bottom: 1px solid var(--line-2);
    border-left: 3px solid transparent;
  }
  .l-tabnav__list > li.is-current > a,
  .l-tabnav__list > li.current-menu-item > a {
    border-bottom-color: var(--line-2);
    border-left-color: var(--brand);
  }
  .l-tabnav__list .sub-menu {
    position: static;
    display: block;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    background: var(--bg-soft);
    padding: 4px 0 8px;
  }
  .l-tabnav__list .sub-menu a {
    display: block;
    height: auto;
    min-height: 44px;
    padding: 12px 22px 12px 36px;
    border-radius: 0;
  }
  .p-drawer-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 85;
    background: rgba(58, 48, 52, .42);
    opacity: 0;
    visibility: hidden;
    transition: .24s;
    border: 0;
  }
  .p-drawer-overlay.is-open { opacity: 1; visibility: visible; }
  .p-stream__card { grid-template-columns: minmax(0, clamp(7rem, 38%, 10rem)) minmax(0, 1fr); gap: 12px; padding: 12px; }
  .p-stream__title { font-size: 16.5px; }
  .p-nextbar { left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); }
  .p-nextbar__title { font-size: 14.5px; }
}

/* =============================================================
   9. WordPress 標準クラス
   ============================================================= */
.alignleft { float: left; margin: .4em 1.5em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { width: min(100%, 900px); margin-inline: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--muted); margin-top: 6px; }
.sticky .p-list__title::before { content: "注目 "; color: var(--brand); }
.bypostauthor > article { display: block; }

@media (prefers-reduced-motion: reduce) {
  .p-nextbar { transition: none; }
}

@media print {
  .l-tabnav, .l-sidebar, .l-footer, .p-pagetop, .p-hero, .p-nextbar { display: none !important; }
  body { font-size: 11pt; }
}
