@charset "UTF-8";
/*
Theme Name: HAYAYOMI
Theme URI: https://hayayomi.com/
Author: HAYAYOMI
Author URI: https://hayayomi.com/
Description: 早読み（HAYAYOMI）のための日本語ニュースポータル用WordPressテーマ。テック／ビジネス／カルチャーを横断する総合ニュースサイト向けに、通信社系サイトの情報密度とレイアウト構造を踏襲して設計しています。
Version: 1.0.0
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: hayayomi
Tags: news, magazine, two-columns, custom-menu, featured-images, translation-ready, right-sidebar
*/

/* =============================================================
   0. デザイントークン
   ============================================================= */
:root {
  /* ブランドカラー。ここ1行を変えるとサイト全体の色が変わります */
  --brand:        #c3102f;
  --brand-dark:   #9c0a24;
  --brand-tint:   #fdf2f4;

  --ink:          #1a1a1a;
  --ink-2:        #333333;
  --muted:        #767676;
  --muted-2:      #999999;
  --line:         #e2e2e2;
  --line-2:       #efefef;
  --bg:           #ffffff;
  --bg-soft:      #f5f5f5;
  --bg-footer:    #2b2b2b;

  --container:    1200px;
  --gap:          40px;
  --sidebar-w:    320px;
  --radius:       4px;

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

  --shadow-1: 0 1px 3px rgba(0,0,0,.08);
  --shadow-2: 0 4px 16px rgba(0,0,0,.10);
}

/* =============================================================
   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: 15px;
  line-height: 1.8;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; vertical-align: middle; }
[hidden] { display: none !important; }
a { color: var(--ink); text-decoration: none; transition: color .15s, opacity .15s; }
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.45; }
p { margin: 0 0 1.2em; }
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: 20px; }

/* =============================================================
   2. ヘッダー
   ============================================================= */
.l-header { background: #fff; border-bottom: 1px solid var(--line); }

/* 2-1. ユーティリティバー */
.l-utility { border-bottom: 1px solid var(--line-2); }
.l-utility__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 34px;
}
.l-utility__tagline {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--muted);
}
.l-utility__tagline b { color: var(--brand); }

/* 2-2. ブランド行 */
.l-brandbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: 14px;
}
.p-logo { display: flex; align-items: center; min-width: 0; max-width: 100%; }
.p-logo__img { display: block; width: auto; max-width: 100%; height: auto; max-height: 52px; }
a.p-logo:hover .p-logo__img { opacity: .84; }

.l-brandbar__tools { display: flex; align-items: center; gap: 12px; }

/* 検索フォーム */
.p-search { position: relative; }
.p-search__field {
  width: 240px; height: 34px; padding: 0 38px 0 12px;
  border: 1px solid var(--line); border-radius: 2px;
  font-size: 13px; font-family: inherit; background: #fff; color: var(--ink);
}
.p-search__field::placeholder { color: var(--muted-2); }
.p-search__field:focus { outline: none; border-color: var(--brand); }
.p-search__submit {
  position: absolute; top: 0; right: 0; width: 36px; height: 34px;
  border: 0; background: none; color: var(--muted); display: grid; place-items: center;
}
.p-search__submit:hover { color: var(--brand); }

/* ハンバーガー */
.p-burger {
  display: none; flex-direction: column; gap: 5px; align-items: center;
  border: 0; background: none; padding: 4px;
}
/* ドロワー背景。782px以下でのみ使う */
.p-drawer-overlay { display: none; }
.p-burger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: .2s; }
.p-burger__label { font-size: 9px; letter-spacing: .1em; color: var(--ink); margin-top: 3px; line-height: 1; }
.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); }

/* 2-3. グローバルナビ */
.l-gnav { background: var(--brand); }
.l-gnav__list {
  display: flex; align-items: stretch; justify-content: center;
  flex-wrap: wrap;
}
.l-gnav__list > li > a {
  display: flex; align-items: center; height: 46px; padding: 0 26px;
  color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .04em;
  position: relative;
}
.l-gnav__list > li > a:hover,
.l-gnav__list > li.current-menu-item > a { background: var(--brand-dark); color: #fff; }
.l-gnav__list > li + li > a::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 16px; background: rgba(255,255,255,.28);
}

/* サブメニュー */
.l-gnav__list li { position: relative; }
.l-gnav__list .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 200px; z-index: 60;
  background: #fff; box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.l-gnav__list li:hover > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.l-gnav__list .sub-menu a {
  display: block; padding: 11px 18px; font-size: 13px; border-bottom: 1px solid var(--line-2);
}
.l-gnav__list .sub-menu a:hover { background: var(--brand-tint); color: var(--brand); }

/* 速報 */
.p-ticker { background: var(--bg-soft); border-bottom: 1px solid var(--line-2); }
.p-ticker__inner { display: flex; align-items: flex-start; gap: 12px; padding-block: 10px; min-width: 0; }
.p-ticker__label {
  flex: none; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700;
  line-height: 1.6; padding: 1px 8px; margin-top: 2px;
}
.p-ticker__body { min-width: 0; flex: 1; }
.p-ticker__item { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.p-ticker__item .c-date { flex: none; }
.p-ticker__title {
  min-width: 0; font-size: 13.5px; font-weight: 700; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* =============================================================
   3. ヒーロー（タブ + カルーセル）
   ============================================================= */
.p-hero { background: var(--bg-soft); padding: 26px 0 34px; }

.p-tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.p-tabs__btn {
  position: relative; border: 1px solid var(--line); background: #ededed;
  color: var(--muted); font-size: 14px; font-weight: 700;
  padding: 9px 26px; border-radius: 3px;
}
.p-tabs__btn:hover { color: var(--ink); }
.p-tabs__btn.is-active {
  background: #fff; color: var(--brand); border-color: var(--brand);
}
.p-tabs__btn.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  border: 8px solid transparent; border-top-color: var(--brand); border-bottom: 0;
}

.p-carousel { position: relative; }
.p-carousel__panel { display: none; }
.p-carousel__panel.is-active { display: block; }
.p-carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4);
  gap: 20px; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.p-carousel__track::-webkit-scrollbar { display: none; }
.p-carousel__track > * { scroll-snap-align: start; }

.p-carousel__nav {
  position: absolute; top: 40%; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-2);
}
.p-carousel__nav:hover { background: var(--brand-dark); }
.p-carousel__nav--prev { left: -14px; }
.p-carousel__nav--next { right: -14px; }

/* =============================================================
   5. カード
   ============================================================= */
.c-card { background: #fff; display: flex; flex-direction: column; height: 100%; }
.c-card__thumb {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--bg-soft);
}
.c-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.c-card:hover .c-card__thumb img { transform: scale(1.04); }
.c-card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.c-card__title { font-size: 16px; font-weight: 700; line-height: 1.5; }
.c-card__meta { margin-top: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.c-date { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.c-cat {
  display: inline-block; font-size: 11px; line-height: 1; padding: 4px 9px;
  border: 1px solid var(--line); border-radius: 2px; color: var(--muted); background: #fafafa;
}
.c-cat:hover { border-color: var(--brand); color: var(--brand); }
.c-cat--solid { background: var(--brand); border-color: var(--brand); color: #fff; }
.c-cat--solid:hover { background: var(--brand-dark); color: #fff; }

/* 横並びカード（2カラムグリッド用） */
.c-card--row {
  flex-direction: row; gap: 14px; height: auto; align-items: flex-start;
  border-bottom: 1px solid var(--line-2); padding-bottom: 18px;
}
.c-card--row .c-card__thumb { flex: none; width: 128px; aspect-ratio: 4 / 3; align-self: flex-start; }
.c-card--row .c-card__body { padding: 0; gap: 8px; }
.c-card--row .c-card__title { font-size: 14px; line-height: 1.55; }

/* 大型カード（セクション先頭）
   height:100% のままだと、本文カラムがサイドバーの高さまで伸びたとき
   先頭画像まで一緒に縦長へ引き伸ばされる。 */
.c-card--lead {
  flex-direction: row; gap: 24px; height: auto; align-items: flex-start;
  border-bottom: 1px solid var(--line); padding-bottom: 26px;
}
.c-card--lead .c-card__thumb { flex: none; width: 46%; aspect-ratio: 16 / 10; align-self: flex-start; }
.c-card--lead .c-card__body { padding: 4px 0 0; gap: 12px; }
.c-card--lead .c-card__title { font-size: 21px; line-height: 1.45; }
.c-card__excerpt { font-size: 13.5px; color: var(--ink-2); line-height: 1.85; margin: 0; }

.c-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 26px; }
.c-grid--3 { grid-template-columns: repeat(3, 1fr); }
.c-grid--4 { grid-template-columns: repeat(4, 1fr); }

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

/* セクション見出し */
.c-section { margin-bottom: 46px; }
.c-section__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 22px;
}
.c-section__title { font-size: 19px; letter-spacing: .04em; position: relative; padding-left: 13px; }
.c-section__title::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 19px; background: var(--brand);
}
.c-section__more { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.c-section__more::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.c-section__more:hover { color: var(--brand); }

/* 特集バナー */
.p-feature {
  display: grid; grid-template-columns: 300px 1fr auto; gap: 24px; align-items: center;
  background: var(--bg-soft); padding: 18px; margin-bottom: 16px;
}
.p-feature__thumb { aspect-ratio: 16 / 7; overflow: hidden; }
.p-feature__thumb img { width: 100%; height: 100%; object-fit: cover; }
.p-feature__title { font-size: 15px; margin-bottom: 6px; }
.p-feature__text { font-size: 13px; color: var(--ink-2); margin: 0; }
.c-btn-pill {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 700;
  padding: 9px 22px; border-radius: 999px; white-space: nowrap;
}
.c-btn-pill:hover { background: var(--brand-dark); color: #fff; }

/* ページネーション */
.c-pagination { margin-top: 34px; }
.c-pagination .nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.c-pagination .page-numbers {
  min-width: 38px; height: 38px; padding: 0 10px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); background: #fff;
}
.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; }

/* =============================================================
   7. サイドバー
   ============================================================= */
.l-sidebar { min-width: 0; }
.p-widget { margin-bottom: 34px; }
.p-widget__title {
  font-size: 15px; letter-spacing: .04em; padding: 0 0 9px 12px;
  border-bottom: 2px solid var(--ink); margin-bottom: 14px; position: relative;
}
.p-widget__title::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 4px; height: 16px; background: var(--brand);
}

/* ランキング */
.p-ranking__item { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.p-ranking__num {
  flex: none; width: 22px; font-size: 17px; font-weight: 700; line-height: 1.3;
  color: var(--brand); font-family: Georgia, "Times New Roman", serif;
}
.p-ranking__item:nth-child(n+4) .p-ranking__num { color: var(--muted-2); }
.p-ranking__body { min-width: 0; }
.p-ranking__title { font-size: 13.5px; line-height: 1.6; display: block; margin-bottom: 4px; }
.p-ranking__thumb { flex: none; width: 62px; aspect-ratio: 4/3; object-fit: cover; background: var(--bg-soft); }

/* サイドの通常リスト */
.p-sidelist__item { display: flex; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.p-sidelist__item > a { flex: none; display: block; width: 74px; }
.p-sidelist__thumb { display: block; width: 100%; max-width: none; aspect-ratio: 4/3; object-fit: cover; background: var(--bg-soft); }
.p-sidelist__title { font-size: 13px; line-height: 1.6; }

.p-banner { display: block; margin-bottom: 14px; }
.p-banner img { width: 100%; }

/* WordPress標準ウィジェット */
.l-sidebar .widget ul li { padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; overflow-wrap: anywhere; }
.l-sidebar .widget select { width: 100%; max-width: 100%; padding: 8px; border: 1px solid var(--line); }
.l-sidebar .wp-block-heading,
.l-sidebar .wp-block-search__label {
  font-size: 15px; letter-spacing: .04em; padding: 0 0 9px 12px;
  border-bottom: 2px solid var(--ink); margin: 0 0 14px; position: relative;
}
.l-sidebar .wp-block-heading::before,
.l-sidebar .wp-block-search__label::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 4px; height: 16px; background: var(--brand);
}
.l-sidebar .wp-block-search__inside-wrapper { display: flex; max-width: 100%; }
.l-sidebar .wp-block-search__input {
  flex: 1; min-width: 0; width: 100%; height: 42px; font-size: 16px;
  border: 1px solid var(--line); padding: 0 12px; font-family: inherit;
}
.l-sidebar .wp-block-search__button {
  flex: none; height: 42px; border: 0; background: var(--brand); color: #fff;
  padding: 0 14px; font-size: 13px; font-weight: 700;
}
.l-sidebar .widget_recent_comments,
.l-sidebar .widget_archive,
.l-sidebar .widget:has(.wp-block-latest-comments),
.l-sidebar .widget:has(.wp-block-archives) { display: none; }

/* =============================================================
   8. 記事詳細
   ============================================================= */
.p-breadcrumb { font-size: 12px; color: var(--muted); padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.p-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; }
.p-breadcrumb li + li::before { content: "›"; margin-right: 8px; color: var(--muted-2); }

.p-article { background: #fff; }
.p-article__header { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.p-article__cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.p-article__title { font-size: 30px; line-height: 1.5; letter-spacing: .01em; margin-bottom: 14px; }
.p-article__meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.p-article__thumb { margin-bottom: 26px; }
.p-article__thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; height: auto; }
.p-article__lead {
  font-size: 16px; line-height: 1.95; font-weight: 500;
  border-left: 4px solid var(--brand); padding: 4px 0 4px 18px; margin-bottom: 28px;
}

.p-article__body { font-size: 16px; line-height: 2.05; overflow-wrap: break-word; }
.p-article__body img,
.p-article__body video,
.p-article__body svg { max-width: 100%; height: auto; }
.p-article__body iframe,
.p-article__body embed { max-width: 100%; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.p-article__body > * + * { margin-top: 1.4em; }
.p-article__body h2 {
  font-size: 21px; border-left: 5px solid var(--brand); padding-left: 14px;
  margin-top: 2.2em; line-height: 1.6;
}
.p-article__body h3 {
  font-size: 18px; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-top: 2em;
}
.p-article__body a { color: #0b5cab; text-decoration: underline; overflow-wrap: anywhere; }
.p-article__body a:hover { color: var(--brand); }
.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: .5em; }
.p-article__body blockquote {
  background: var(--bg-soft); border-left: 4px solid var(--line); padding: 18px 22px;
  color: var(--ink-2); font-size: 15px;
}
.p-article__body figure { margin: 2em 0; }
.p-article__body figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.p-article__body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.p-article__body th, .p-article__body td { border: 1px solid var(--line); padding: 10px 12px; }
.p-article__body th { background: var(--bg-soft); font-weight: 700; }

.p-article__footer { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.p-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.p-sharelist { display: flex; gap: 8px; margin-top: 20px; }
.p-sharelist a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--muted);
}
.p-sharelist a:hover { border-color: var(--brand); color: var(--brand); }
.p-article__cite { margin: 16px 0 0; font-size: 12px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.p-article__cite a { text-decoration: underline; text-underline-offset: 2px; }

.p-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.p-prevnext__item { border: 1px solid var(--line); padding: 16px; font-size: 13.5px; }
.p-prevnext__item:hover { border-color: var(--brand); }
.p-prevnext__label { font-size: 11px; color: var(--brand); font-weight: 700; display: block; margin-bottom: 6px; }
.p-prevnext__item--next { text-align: right; }

.p-chain { margin-top: 50px; }
.p-chain__lead {
  display: block; margin-bottom: 22px; padding: 18px 20px;
  border: 1px solid var(--line); border-left: 4px solid var(--brand); background: #fff;
}
.p-chain__lead:hover { border-color: var(--brand); }
.p-chain__kicker { display: block; margin-bottom: 6px; color: var(--brand); font-size: 12px; font-weight: 700; }
.p-chain__lead-title { display: block; font-size: 18px; line-height: 1.55; font-weight: 700; }
.p-nextdock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  width: 100%; max-width: 100%; overflow: hidden;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .08);
  transform: translateY(110%); transition: transform .25s ease;
}
.p-nextdock.is-on { transform: translateY(0); }
.p-nextdock__inner { display: flex; align-items: center; gap: 16px; min-height: 64px; min-width: 0; max-width: 100%; }
.p-nextdock__label { flex: none; color: var(--brand); font-size: 12px; font-weight: 700; }
.p-nextdock__title {
  flex: 1; min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.45;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p-nextdock__title:hover { color: var(--brand); }
body:has(.p-nextdock.is-on) { padding-bottom: 72px; }

/* コメント */
.p-comments .comment-body { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.p-comments .children { list-style: none; margin: 0; padding-left: 16px; }
.p-comments .comment-author { display: flex; align-items: center; gap: 10px; }
.p-comments .avatar { width: 36px; height: 36px; border-radius: 50%; }
.p-comments .comment-meta { margin-bottom: 8px; font-size: 13px; }
.p-comments .comment-metadata { font-size: 12px; color: var(--muted); }
.p-comments .comment-content { font-size: 14.5px; line-height: 1.8; overflow-wrap: anywhere; }
.p-comments .comment-form label { display: block; font-size: 13px; font-weight: 700; margin: 14px 0 6px; }
.p-comments .comment-form input[type="text"],
.p-comments .comment-form input[type="email"],
.p-comments .comment-form input[type="url"],
.p-comments .comment-form textarea {
  display: block; width: 100%; max-width: 100%; box-sizing: border-box;
  font: inherit; font-size: 16px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--ink);
}
.p-comments .comment-form textarea { min-height: 120px; resize: vertical; }
.p-comments .comment-form .form-submit { margin: 16px 0 0; }
.p-comments .comment-form .c-btn-pill { border: 0; }

/* 固定ページ */
.p-page__title { font-size: 28px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); margin-bottom: 26px; }

/* 404 / 検索なし */
.p-empty { text-align: center; padding: 70px 20px; }
.p-empty__code { font-size: 62px; font-weight: 700; color: var(--brand); line-height: 1; }
.p-empty__title { font-size: 20px; margin: 18px 0 10px; }
.p-empty__text { color: var(--muted); font-size: 14px; }
.p-empty .p-search { display: inline-block; margin-top: 24px; }

/* アーカイブヘッダー */
.p-archive-head { border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 26px; }
.p-archive-head__sub { font-size: 12px; color: var(--brand); font-weight: 700; letter-spacing: .1em; }
.p-archive-head__title { font-size: 26px; margin-top: 4px; }
.p-archive-head__desc { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; }

/* =============================================================
   9. フッター
   ============================================================= */
.l-footer { background: var(--bg-footer); color: #cfcfcf; margin-top: 60px; font-size: 13px; }
.l-footer a { color: #cfcfcf; }
.l-footer a:hover { color: #fff; }

.l-footer__top { padding: 44px 0 34px; border-bottom: 1px solid #3d3d3d; }
.l-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; align-items: start; }
.l-footer__cols > * { min-width: 0; }
.l-footer__brand .p-logo__img { width: auto; max-width: min(240px, 100%); height: auto; max-height: 58px; }
.l-footer__tagline { margin: 14px 0 0; font-size: 12.5px; color: #a5a5a5; line-height: 1.9; overflow-wrap: anywhere; }
.l-footer__heading {
  font-size: 12px; letter-spacing: .12em; color: #fff; margin-bottom: 14px;
  padding-bottom: 8px; border-bottom: 1px solid #454545;
}
.l-footer__list li { margin-bottom: 9px; font-size: 12.5px; }
.l-footer__list a,
.l-footer__legal a { overflow-wrap: anywhere; }
.l-footer__bottom {
  padding-block: 18px 26px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px 16px; flex-wrap: wrap;
}
.l-footer__legal { display: flex; gap: 12px 18px; flex-wrap: wrap; font-size: 12px; min-width: 0; }
.l-footer__copy { font-size: 11.5px; color: #8d8d8d; letter-spacing: .04em; overflow-wrap: anywhere; }

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

/* =============================================================
   10. レスポンシブ
   ============================================================= */
@media (max-width: 1100px) {
  :root { --gap: 28px; --sidebar-w: 280px; }
  .p-carousel__track { grid-auto-columns: calc((100% - 2 * 18px) / 3); }
  .p-carousel__nav--prev { left: -6px; }
  .p-carousel__nav--next { right: -6px; }
  .p-feature { grid-template-columns: 220px 1fr; }
  .p-feature .c-btn-pill { grid-column: 2; justify-self: start; }
}

@media (max-width: 900px) {
  .l-body__inner { grid-template-columns: minmax(0,1fr); }
  .l-sidebar { border-top: 1px solid var(--line); padding-top: 32px; }
  .l-footer__cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .l-footer__brand { grid-column: 1 / -1; }
  .c-card--lead { flex-direction: column; gap: 14px; align-items: stretch; }
  .c-card--lead .c-card__thumb { width: 100%; align-self: auto; }
  .c-card--lead .c-card__title { font-size: 19px; }
  .p-prevnext { grid-template-columns: 1fr; }
}

@media (max-width: 782px) {
  body { font-size: 14px; }
  .l-container { padding-inline: 16px; }
  .l-content, .c-card__body, .p-ranking__body { min-width: 0; }

  .l-header { position: sticky; top: 0; z-index: 100; }
  .l-utility, .l-brandbar { position: relative; z-index: 3; background: #fff; }
  .l-utility__inner { flex-wrap: wrap; align-items: center; gap: 4px 12px; padding-block: 6px; }
  .l-utility__tagline { flex: 1 1 160px; min-width: 0; letter-spacing: .02em; line-height: 1.55; }
  .l-utility__right { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 12px; margin-left: auto; }
  .l-utility__right a { font-size: 11px; line-height: 1.4; white-space: nowrap; }

  .l-brandbar__inner {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px; row-gap: 10px; align-items: center;
  }
  .l-brandbar__tools { display: contents; }
  .p-logo { grid-column: 1; grid-row: 1; }
  .p-burger { grid-column: 2; grid-row: 1; }
  .l-brandbar__tools .p-search { display: block; grid-column: 1 / -1; grid-row: 2; }
  .p-search__field { width: 100%; height: 42px; font-size: 16px; }
  .p-search__submit { height: 42px; }

  /* ナビをドロワーに。閉じるボタンはヘッダー側に残す */
  .p-burger { display: inline-flex; min-width: 44px; min-height: 44px; justify-content: center; }
  #js-gnav {
    position: fixed; right: 0; bottom: 0; width: min(84vw, 320px); z-index: 2;
    background: var(--brand); padding: 8px 0 32px; overflow-y: auto;
    transform: translateX(100%); transition: transform .28s ease;
  }
  #js-gnav.is-open { transform: none; }
  #js-gnav .l-container { padding: 0; }
  #js-gnav .l-gnav__list { flex-direction: column; justify-content: flex-start; }
  #js-gnav .l-gnav__list > li > a { height: auto; padding: 16px 22px; border-bottom: 1px solid rgba(255,255,255,.18); }
  #js-gnav .l-gnav__list > li + li > a::before { display: none; }
  #js-gnav .l-gnav__list .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: rgba(0,0,0,.14);
  }
  #js-gnav .l-gnav__list .sub-menu a { color: #fff; border-bottom-color: rgba(255,255,255,.14); }
  #js-gnav .l-gnav__list .sub-menu a:hover { background: rgba(0,0,0,.2); color: #fff; }
  .p-drawer-overlay {
    display: block;
    position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1;
    opacity: 0; visibility: hidden; transition: .25s; border: 0;
  }
  .p-drawer-overlay.is-open { opacity: 1; visibility: visible; }

  .p-logo__img { max-height: 40px; max-width: 100%; }
  .l-footer__brand .p-logo__img { max-height: 48px; }
  .p-ticker__inner { gap: 8px; padding-block: 8px; }
  .p-ticker__item { flex-wrap: wrap; gap: 2px 8px; }
  .p-ticker__title { font-size: 13px; }

  .p-tabs {
    flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin-bottom: 8px;
    padding-bottom: 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .p-tabs::-webkit-scrollbar { display: none; }
  .p-tabs__btn { flex: none; padding: 8px 14px; font-size: 13px; }

  .p-carousel__track { grid-auto-columns: 100%; gap: 12px; }
  .p-carousel__nav { display: none; }
  .p-hero { padding: 16px 0 22px; }

  .c-card__title, .p-feature__title, .p-ranking__title, .p-sidelist__title,
  .p-article__title, .p-chain__lead-title, .p-prevnext__item {
    text-wrap: pretty; line-break: strict; word-break: auto-phrase;
  }

  .c-grid, .c-grid--3, .c-grid--4 { grid-template-columns: 1fr; gap: 0; }
  .c-grid > * { border-bottom: 1px solid var(--line-2); padding-bottom: 16px; margin-bottom: 16px; }
  .c-grid > *:last-child { border-bottom: 0; margin-bottom: 0; }
  .c-grid .c-card--row { border-bottom: 0; padding-bottom: 0; }

  .c-card--row { align-items: flex-start; gap: 12px; }
  .c-card--row .c-card__thumb { width: 104px; aspect-ratio: 4 / 3; }
  .c-card--lead .c-card__thumb { aspect-ratio: 16 / 10; }
  .c-card--row .c-card__title { font-size: 15px; line-height: 1.5; }
  .c-card--lead .c-card__title { font-size: 20px; line-height: 1.45; }
  .p-sidelist__item > a,
  .p-ranking__thumbwrap { flex: none; display: block; width: 96px; aspect-ratio: 4 / 3; overflow: hidden; }
  .p-ranking__thumb,
  .p-sidelist__thumb { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
  .p-ranking__title,
  .p-sidelist__title { font-size: 14.5px; line-height: 1.55; }
  .c-pagination .page-numbers { min-width: 44px; height: 44px; }

  .p-feature { grid-template-columns: 1fr; gap: 14px; }
  .p-feature__title { font-size: 16px; line-height: 1.5; }
  .c-section { margin-bottom: 36px; }
  .c-section__title { font-size: 18px; min-width: 0; }
  .c-section__head { align-items: flex-end; gap: 12px; }
  .c-section__more { flex: none; }
  .p-archive-head__title { font-size: 22px; line-height: 1.35; overflow-wrap: anywhere; }

  .p-breadcrumb { overflow-wrap: anywhere; }
  .p-prevnext__item--next { text-align: left; }
  .p-article__title { font-size: 22px; line-height: 1.45; }
  .p-article__lead { font-size: 15px; }
  .p-article__body { font-size: 16px; line-height: 1.9; }
  .p-article__body table { display: block; overflow-x: auto; }
  .p-article__body pre { overflow-x: auto; max-width: 100%; }
  .alignleft, .alignright { float: none; display: block; margin: 1em 0; }
  .alignwide, .alignfull { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; }
  .p-sharelist a { width: 44px; height: 44px; }
  .p-page__title { font-size: 22px; }
  .p-chain__lead { padding: 14px 16px; }
  .p-chain__lead-title { font-size: 16px; }
  .p-nextdock__inner { align-items: flex-start; gap: 10px; padding-block: 10px; }
  .p-nextdock__title {
    white-space: normal; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; line-height: 1.45;
  }
  body:has(.p-nextdock.is-on) { padding-bottom: 84px; }
  .p-pagetop { right: 12px; bottom: 88px; width: 42px; height: 42px; }

  .l-footer__cols { grid-template-columns: 1fr; }
  .l-footer__top { padding: 32px 0 22px; }
  .l-footer__bottom { align-items: flex-start; }
  .l-footer__legal { gap: 10px 16px; }
}

@media (max-width: 480px) {
  .l-container { padding-inline: 14px; }
  .p-carousel__track { grid-auto-columns: 100%; }
  .c-card--row .c-card__thumb { width: 92px; aspect-ratio: 4 / 3; }
  .p-article__title { font-size: 20px; }
  .p-empty__code { font-size: 48px; }
}

/* =============================================================
   11. WordPress 標準クラス
   ============================================================= */
.alignleft { float: left; margin: .4em 1.6em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { width: min(100%, 1000px); margin-inline: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.sticky .c-card__title::before { content: "注目 "; color: var(--brand); }
.bypostauthor > article { display: block; }
.clearfix::after { content: ""; display: table; clear: both; }

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