@charset "utf-8";

/*
Theme Name: onimaga 2026 V4
Description: オニマガの公式テンプレート2026年版V4です。
Version: 20260823
Author: onimaga
Text Domain: minimalwp
*/


/* 全要素に border-box を適用（横揺れ防止の基本） */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --color-accent: #1b3c5d;
  --color-text: #1c1c1a;
  --color-muted: #999;
  --color-border: #e3e3e1;
  --color-bg: #fff;
  --color-bg-light: #f5f5f5;
  --font-base: "Hiragino Kaku Gothic ProN", "游ゴシック", YuGothic, "メイリオ", Meiryo, sans-serif;
  --transition: 0.3s ease;
  --max-width: 1200px;
}


/* *****************************************************************
*	基本設定
* ***************************************************************** */
body {
  font-family: "Hiragino Kaku Gothic ProN", "游ゴシック", YuGothic, "メイリオ", Meiryo, sans-serif;
  font-weight: 500;
  font-size: 16px;
  background: #fff;
  color: #333;
  line-height: 190%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}


/* リンク
---------------------------------------------------- */
a {
  color: var(--color-link);
  text-decoration: none;
  transition: 0.5s;
}

a:hover {
  color: var(--color-accent);
}

/* 本文リンクは下線付き */
.single-contents a,
.page-contents a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* kanren内は下線なし */
.single-contents .kanren a,
.page-contents .kanren a,
.kanren a {
  text-decoration: none !important;
  text-underline-offset: unset !important;
}

/* 関連記事カード（文中自動変換）も下線なし。
   .related-card 側にも text-decoration:none はあるが、
   .single-contents a（0,1,1）のほうが .related-card（0,1,0）より強くて負けるため、
   ここで詳細度を上げて打ち消す */
.single-contents a.related-card,
.page-contents a.related-card {
  text-decoration: none;
  text-underline-offset: unset;
}

a:active,
a:focus {
  outline: 0;
}

/* ページ内リンク（目次→見出し、↑ボタン）はスクロールで移動する。
   着地位置のオフセットは h2/h3 の scroll-margin-top:80px 側で既に確保済み。
   OSで「視差効果を減らす」を有効にしている人には従来どおり即時ジャンプ */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }
}


/* 画像
---------------------------------------------------- */
img {
  border: 0;
  padding: 0px;
  margin: 0px
}

img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

img.alignright {
  padding: 4px;
  margin: 0 0 10px 20px;
  display: inline;
}

img.alignleft {
  padding: 4px;
  margin: 0 20px 10px 0;
  display: inline;
}


/* フロート
---------------------------------------------------- */
.alignright,
.right {
  float: right;
  margin: 0 0 10px 20px;
}

.alignleft,
.left {
  float: left;
  margin: 0 20px 10px 0;
}

.clear {
  clear: both;
}

.aligncenter {
  display: block;
  margin: 0 auto;
}


/* リスト
---------------------------------------------------- */
ol {
  margin: 35px 0 30px 10px;
  padding: 0 0 0 0;
  list-style: decimal;
}

ul {
  margin: 35px 0 30px 4px;
  padding: 0 0 0 0;
  list-style: disc;
}

li {
  margin: 10px 0 10px 15px;
  padding: 0;
}

li a {
  color: #378893;
  transition: 0.5s;
}

li a:hover {
  color: #666;
}


/* *****************************************************************
*	全体Wrapper
* ***************************************************************** */
.wrapper {
  margin: auto;
  width: 90%;
  max-width: var(--max-width);
  padding: 0px 30px 50px 30px;
}

/* 記事ページはサイドバー余白確保のため少し広め */
.single .wrapper {
  max-width: 1080px;
}


/* ***************************************************************** 
*	ヘッダー
* ***************************************************************** */
.topborder {
  /* 読み込み直後の「上端の1本」。#reading-progress と色も太さも同値にして
     ある＝読み切ると開いた瞬間と同じ見え方に戻る。片方を変えたら両方変える */
  border-top: 3px solid var(--color-text);
}

.logo {
  text-align: center;
  margin: 0;
  padding: 0;
}


/* トップヘッダー画像
---------------------------------------------------- */
.top-header {
  width: 100%;
  margin: 30px auto 0px auto;
  text-align: center;
}


/* ワンカラムページのイメージヘッダー
---------------------------------------------------- */
.head-img {
  width: 100%;
  text-align: center;
  overflow: hidden;
  margin: 30px 0 0px 0;
}

.head-img img {
  margin: 0px auto 10px auto;
}


/* トップナビゲーション
---------------------------------------------------- */
#nav {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  z-index: 9999;
  padding: 0;
  text-align: center;
}

#nav ul {
  list-style: none;
  margin: auto;
}

.main-navigation {
  clear: both;
  margin: 0 auto;
  position: relative;
}

ul.nav-menu,
div.nav-menu>ul {
  margin: 0;
  padding: 0;
}

.nav-menu li {
  display: inline-block;
  position: relative;
  margin: 0 -2px 0 -2px;
}

.nav-menu li a {
  color: #333;
  display: block;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  padding: 12px 27px 12px 27px;
}

.nav-menu li:hover>a,
.nav-menu li a:hover {
  background: #eee;
}

.nav-menu .sub-menu,
.nav-menu .children {
  background: #eee;
  display: none;
  padding: 0;
  position: absolute;
  z-index: 99999;
}

.nav-menu .sub-menu ul,
.nav-menu .children ul {
  border-left: 0;
  left: 100%;
  top: 0;
}

ul.nav-menu ul a,
.nav-menu ul ul a {
  color: #333;
  margin: 0;
  width: 200px;
}

ul.nav-menu ul a:hover,
.nav-menu ul ul a:hover {
  background: #f5f5f5;
}

ul.nav-menu li:hover>ul,
.nav-menu ul li:hover>ul {
  display: block;
  background: #eee;
}

.nav-menu .current_page_item>a,
.nav-menu .current_page_ancestor>a,
.nav-menu .current-menu-item>a,
.nav-menu .current-menu-ancestor>a,
.nav-menu .current-post-ancestor>a {
  color: #333;
  background: #f5f5f5;
}

.toggle {
  display: none;
}

.menu-toggle {
  width: 40px;
  height: 40px;
}

.hamburger {
  display: none;
}


/* ハンバーガーメニュー
---------------------------------------------------- */

/*!
* Hamburgers
* @description Tasty CSS-animated hamburgers
* @author Jonathan Suh @jonsuh
* @site https://jonsuh.com/hamburgers
* @link https://github.com/jonsuh/hamburgers
*/
.hamburger {
  padding: 12px 2px;
  display: inline-block;
  cursor: pointer;
  transition-property: opacity, -webkit-filter;
  transition-property: opacity, filter;
  transition-property: opacity, filter, -webkit-filter;
  transition-duration: 0.15s;
  transition-timing-function: linear;
  font: inherit;
  color: inherit;
  text-transform: none;
  background-color: transparent;
  border: 0;
  margin: 0;
  overflow: visible;
}

.hamburger:hover {
  opacity: 0.7;
}

.hamburger-box {
  width: 50px;
  height: 25px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 30px;
  height: 2px;
  background-color: #000;
  position: absolute;
  transition-property: -webkit-transform;
  transition-property: transform;
  transition-property: transform, -webkit-transform;
  transition-duration: 0.15s;
  transition-timing-function: ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  display: block;
}

.hamburger-inner::before {
  top: -10px;
}

.hamburger-inner::after {
  bottom: -10px;
}

/*
* Spin
*/
.hamburger--spin .hamburger-inner {
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger--spin .hamburger-inner::before {
  transition: top 0.1s 0.34s ease-in, opacity 0.1s ease-in;
}

.hamburger--spin .hamburger-inner::after {
  transition: bottom 0.1s 0.34s ease-in, -webkit-transform 0.3s cubic-bezier(0.55, 0.055, 0.675, 0.19);
  transition: bottom 0.1s 0.34s ease-in, transform 0.3s cubic-bezier(0.55, 0.055, 0.675, 0.19);
  transition: bottom 0.1s 0.34s ease-in, transform 0.3s cubic-bezier(0.55, 0.055, 0.675, 0.19), -webkit-transform 0.3s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger--spin.is-active .hamburger-inner {
  -webkit-transform: rotate(225deg);
  transform: rotate(225deg);
  transition-delay: 0.14s;
  transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

.hamburger--spin.is-active .hamburger-inner::before {
  top: 0;
  opacity: 0;
  transition: top 0.1s ease-out, opacity 0.1s 0.14s ease-out;
}

.hamburger--spin.is-active .hamburger-inner::after {
  bottom: 0;
  -webkit-transform: rotate(-90deg);
  transform: rotate(-90deg);
  transition: bottom 0.1s ease-out, -webkit-transform 0.3s 0.14s cubic-bezier(0.215, 0.61, 0.355, 1);
  transition: bottom 0.1s ease-out, transform 0.3s 0.14s cubic-bezier(0.215, 0.61, 0.355, 1);
  transition: bottom 0.1s ease-out, transform 0.3s 0.14s cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 0.3s 0.14s cubic-bezier(0.215, 0.61, 0.355, 1);
}


/* スティッキーナビゲーション（バニラCSS版）
---------------------------------------------------- */
nav#nav.main-navigation {
  position: sticky;
  top: 0;
  background: var(--color-bg);
  z-index: 9999;
  margin-bottom: 32px;
}


/* ***************************************************************** 
*	メイン（本文）コンテンツ
* ***************************************************************** */
#main {
  margin: 0 0 0 0;
  padding: 0 0 0 0;
}


/* ギャラリーレイアウト
---------------------------------------------------- */
li.item {
  height: 450px;
  margin-bottom: 50px;
  position: relative;
}

.item-img {
  margin: 0 0 10px 0;
  overflow: hidden;
  text-align: center;
}

.item-cat {
  font-size: 65%;
  color: #999;
  padding: 0 0 0px 0;
  margin: 0 0 20px 0;
  max-height: 65px;
  overflow: hidden;
}

.item-cat a {
  color: #444;
}

.item-cat-name {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0px 8px;
  font-size: 65%;
  max-height: 25px;
  background: #eee;
  overflow: hidden;
}

.item-cat-name a {
  color: #333;
}

.item-date {
  font-size: 70%;
  color: #ccc;
  padding: 0 0 0 0;
  margin: 0 0 10px 0;
  max-height: 50px;
  overflow: hidden;
  line-height: 150%;
}

.item h2 {
  font-size: 16px;
  line-height: 150%;
  font-weight: bold;
  letter-spacing: 0.03em;
  text-decoration: underline;
}

.item-title {
  margin: 0 0 0 0;
  padding: 5px 0px 0px 0px;
  border-top: 0px solid #ccc;
  border-bottom: 0px solid #ccc;
}

.item-title a {
  color: #333;
}

.item-title a:hover {
  color: #666;
}

.item-text {
  font-size: 13px;
  color: #555;
  line-height: 170%;
}


/* ブログ記事部分
---------------------------------------------------- */
.single-contents {
  margin: 0 0 50px 0;
}

.page-contents {
  margin: 0 0 50px 0;
}

p {
  font-size: 16px;
  color: #333;
  line-height: 190%;
  padding: 15px 0px 15px 0px;
}

p a {
  color: #1a0dab;
  text-decoration: none;
  transition: 0.5s;
}

p a:hover {
  color: #365899;
  text-decoration: underline;
}

p a:active,
a:focus {
  outline: 0;
}


/* パンくずリスト
---------------------------------------------------- */
.breadcrumb {
  margin: 30px 0 0px 0;
  line-height: 120%;
}

.breadcrumb div {
  display: inline;
  font-size: 11px;
  color: #999;
}

.breadcrumb span,
.breadcrumb span a {
  color: #45aab8;
}

.breadcrumb ol {
  margin: 0px;
}

.breadcrumb li {
  margin: 0px;
  display: inline;
}


/* ページタイトル
---------------------------------------------------- */
.pagedate {
  font-size: 12px;
  font-weight: normal;
  text-align: left;
  padding: 0 0 0 0;
  margin: 0 0 -10px 0;
  color: #555;
  letter-spacing: 0.02em;
}

.pagetitle-kotei {
  color: #333;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.05em;
  font-style: normal;
  margin: 0px 0px 20px 0px;
  padding: 0 0 3px 0;
}

.pagetitle {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.01em;
  padding: 0px 0px 5px 0px;
  margin: 0px auto 30px auto;
  border-bottom: 3px double #ccc;
  max-width: 300px;
  text-align: center;
}

.pagetitle a {
  color: #333;
  transition: 0.5s;
}

.pagetitle a:hover {
  color: #666;
}

.pagetitle-top {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.01em;
  padding: 0px 0px 5px 0px;
  margin: 0px auto 30px auto;
  border-bottom: 3px double #ccc;
  max-width: 300px;
  text-align: center;
}

.pagetitle-single {
  color: #333;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.05em;
  font-style: normal;
  margin: 0px 0px 10px 0px;
}

.pagetitle-single a {
  color: #333;
  transition: 0.5s;
}

.pagetitle-single a:hover {
  color: #666;
}

/* ランディングページ（page-imgheader.php）だけ見出しを中央揃え。
   WPがテンプレートに自動付与する body クラスで絞る＝他の固定ページは左揃えのまま */
.page-template-page-imgheader .pagetitle-single {
  text-align: center;
}


/* 投稿記事タイトルH1
---------------------------------------------------- */
.blog-title {
  font-size: 22px;
  line-height: 140%;
  font-weight: bold;
  color: #333;
  margin: 20px 0px 20px 0px;
  padding: 18px 0px 15px 0px;
  border-top: 3px double #999;
  border-bottom: 1px solid #999;
}

.blog-title a {
  color: #333;
  text-decoration: none;
  transition: 0.5s;
}

.blog-title a:hover {
  color: #666;
}


/* 見出し
---------------------------------------------------- */
h1 {
  font-size: 24px;
  margin: 40px 0px 20px 0px;
}

h2 {
  font-size: 22px;
  line-height: 130%;
  font-weight: bold;
  color: #333;
  margin: 80px 0px 20px 0px;
  padding: 18px 0px 15px 0px;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

h3 {
  font-size: 20px;
  line-height: 130%;
  font-weight: bold;
  color: #333;
  padding: 0 0 5px 0;
  margin: 40px 0 25px 0;
  border-bottom: 3px double #999;
}

h4 {
  font-size: 18px;
  line-height: 130%;
  font-weight: bold;
  color: #444;
  padding: 0 0 5px 0;
  margin: 50px 0 10px 0;
  border-bottom: 1px dotted #ccc;
}

h5 {
  font-size: 16px;
  line-height: 1.3em;
  margin: 30px 0 0px 0;
}

h6 {
  font-size: 14px;
  line-height: 1.3em;
  margin: 30px 0 0px 0;
}

.subtitle5 {
  border-left: 7px solid #777;
  padding: 1px 0 0 10px;
  border-bottom: none;
}


/* 記事フッター
---------------------------------------------------- */
.blog-foot {
  clear: both;
  font-size: 11px;
  color: #999;
  margin-bottom: 50px;
}

.blog-foot span {
  color: #999;
}


/* 次の記事・前の記事
---------------------------------------------------- */
#next {
  font-size: 90%;
  line-height: 150%;
  margin: 50px 0 20px 0;
}


/* ページャー
---------------------------------------------------- */
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 64px 0 40px 0;
}

a.page-numbers,
.pager .current {
  background: #f0f0f0;
  padding: 6px 12px;
  text-align: center;
  white-space: nowrap;
  line-height: 1.6;
}

.pager .current {
  background: #ccc;
  color: #fff;
}

@media screen and (max-width: 480px) {

  a.page-numbers,
  .pager .current {
    padding: 6px 8px;
    font-size: 13px;
  }

  /* …を非表示にしてアイテム数を減らし1行に収める */
  .pager .page-numbers.dots {
    display: none;
  }
}


/* 関連記事
---------------------------------------------------- */

/* .similar-head は Phase2 追加CSS（末尾）で定義 */
.similar {
  margin: 0px 0px 50px 0px;
}

.similar a {
  color: #444;
}

.similar ul {
  margin: 0 0 0 0;
  padding: 0 0 0 0;
}

.similar li {
  margin: 0 0 0 0;
  padding: 0 0 0 0;
  list-style: none;
}

.similar li a {
  color: #555;
}

.similar li a:hover {
  color: #888;
}

table.similar-text {
  width: 100%;
  color: #444;
  margin: 0 0 0 0;
  padding: 0 0 0 0;
  border-bottom: dotted 1px #ccc;
  border-collapse: collapse;
  border-spacing: 0;
}

table.similar-text img {
  width: 150px;
}

table.similar-text th {
  text-align: left;
  width: 150px;
  vertical-align: middle;
  border: 0px solid #fff;
  padding: 10px 0px;
  background-color: transparent;
}

table.similar-text td {
  text-align: left;
  white-space: normal;
  vertical-align: middle;
  border: 0px solid #fff;
  padding: 20px 0px 20px 10px;
  font-size: 15px;
}


/* 関連記事（記事挿入版） */
.kanren {
  margin: 50px 0 0px 0;
  font-size: 95%;
}

.kanren-midashi {
  /* 手書き関連記事の見出し＝立ち止まる字なので明朝（Shipporiはboldより600が上品） */
  font-family: var(--f2-mincho);
  font-weight: 600;
  border-bottom: 1px solid #dedede;
  padding: 0px 0px 4px 0px;
  margin: 0 0 -20px 0;
}

.kanren a,
.single-contents .kanren a,
.page-contents .kanren a {
  color: var(--color-accent);
  text-decoration: none !important;
}

.kanren a:hover {
  color: #999;
}

.kanren li {
  border-bottom: 1px dotted #ccc;
  padding: 0px 0px 7px 0px;
  margin-left: -5px;
}

.kanren ul {
  list-style: none;
}


/* コメント欄
---------------------------------------------------- */
.comment-head,
.comment-reply-title {
  color: #333;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.05em;
  font-style: normal;
  margin: 0px 0px 10px 0px;
  padding: 0 0 3px 0;
  border-bottom: 3px double #ccc;
}

.commentlist li {
  list-style: none;
  font-size: 90%;
  color: #888;
}

.commentlist {
  margin: 0 0 50px 0;
  padding: 0 0 0 0;
}

li.comment {
  list-style: none;
  font-size: 90%;
  color: #888;
  margin: 30px 0px 30px 0px;
}

.comment p {
  font-size: 14px;
}


/* WP必須
---------------------------------------------------- */
.wp-caption {
  max-width: 100%;
}

/* 画像キャプション（クラシック＆ブロック共通）
   写真の添え書きとして小さく薄く。日記（明朝本文）内でもゴシックを維持 */
.wp-caption-text,
figcaption,
.wp-block-image figcaption,
.wp-block-gallery figcaption {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .05em;
  color: var(--f2-muted);
  text-align: center;
  padding: 0;
  margin: 10px 0 0;
}

.sticky {}

.gallery-caption {}

.bypostauthor {}

/* Text meant only for screen readers. */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-size: 0.875rem;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
  /* Above WP toolbar. */
}


/* *****************************************************************
*	サイドバー
* ***************************************************************** */
.sidebar {
  width: 100%;
  margin: 0px 0px 40px 0px;
  padding: 0 0 0 0;
}


/* 新着表示
---------------------------------------------------- */
.sidebox-new {
  margin: 0 0 50px 0;
  padding: 0 0 0 0;
}

.sidebox-new ul {
  margin: 0 0 0 0;
  padding: 0 0 0 0;
}

.sidebox-new li {
  list-style: none;
  margin: 0 0 0 0;
  padding: 0px 0 0px 0px;
  border-bottom: 1px dotted #ddd;
}

.sidebox-new li a {
  font-size: 14px;
  color: #444;
  list-style: none;
  transition: 0.5s;
}

.sidebox-new li a:hover {
  color: #999;
}

table.similar-side {
  width: 100%;
  color: #444;
  margin: 0 0 0 0;
  padding: 0 0 0 0;
  border-collapse: collapse;
  border-spacing: 0;
}

table.similar-side img {
  width: 100px;
}

table.similar-side th {
  text-align: left;
  width: 100px;
  vertical-align: middle;
}

table.similar-side td {
  text-align: left;
  white-space: normal;
  vertical-align: middle;
}


/* *****************************************************************
*	フッター
* ***************************************************************** */
#footer {
  background: #fff;
  clear: both;
  width: 100%;
  font-size: 80%;
  margin: 0px auto 0px auto;
}

.footer-inner {
  margin: 0px auto 0px auto;
  padding: 0px 0px;
  max-width: var(--max-width);
}

#copyright {
  font-size: 10px;
  line-height: 110%;
  color: #999;
  text-align: center;
  position: relative;
  margin: 0;
  padding: 10px;
  background: #444;
}

#copyright a {
  color: #FFF;
}


/* *****************************************************************
*	ウィジェット
* ***************************************************************** */

/* 基本形
---------------------------------------------------- */
.widget {
  margin: 30px 0 50px 0;
}

.widget ul {
  margin: 0 0 0 0;
  padding: 0 0 0 0;
}

.widget li {
  list-style: none;
}

.widget li a {
  color: #666;
}

.widget li a:hover {
  color: #999;
}

.widget_recent_entries li a,
.widget_archive li a,
.widget_categories li a,
.widget_nav_menu,
.widget_nav_menu li a {
  margin: 0 0 0 0;
}

.textwidget,
.textwidget p {
  font-size: 16px;
  color: #444;
  line-height: 170%;
  margin: 0 0;
  padding: 0px 0px 0px 0px;
}

.widget-title {
  color: #333;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.05em;
  font-style: normal;
  margin: 0px 0px 10px 0px;
  padding: 0 0 3px 0;
  border-bottom: 3px double #ccc;
}


/* タグクラウド */
.widget_tag_cloud a {
  font-size: 14px !important;
  padding: 3px 10px;
  margin: 0 5px 10px 0;
  border: 1px solid #888;
  display: inline-block;
}

.widget_tag_cloud a:hover {
  color: #fff;
  background-color: #378893;
}


/* ウィジェットボックストップページ用
---------------------------------------------------- */
.topbox {
  margin: 0 0 0 0;
  padding: 0 0 0 0;
}

.topbox h2,
.topbox h3,
.topbox h4 {
  border-bottom: none;
}

.topbox ul {
  margin: 0 0 0 0;
  padding: 0 0 0 0;
}

.topbox li {
  margin: 0 0 0 0;
  padding: 7px 0px 6px 0px;
  list-style: none;
  border-bottom: 1px dotted #ddd;
}

.topbox li a {
  font-size: 15px;
  line-height: 160%;
  color: #333;
  margin: 0 0 0 0;
  padding: 7px 0px 6px 0px;
  list-style: none;
  transition: 0.5s;
}

.topbox li a:hover {
  color: #666;
}

.topbox ul.children {
  margin-bottom: 0px;
  display: block;
  padding: 5px 0 0 0;
}

.topbox ul.children li {
  padding-left: 15px;
  padding-top: 5px;
  border-top: 1px dotted #ccc;
  border-bottom: 0px dotted #ccc;
}

.topbox ul.sub-menu {
  margin-bottom: 0px;
  display: block;
  padding: 5px 0 0 0;
}

.topbox ul.sub-menu li {
  padding-left: 15px;
  padding-top: 5px;
  border-top: 1px dotted #ccc;
  border-bottom: 0px dotted #ccc;
}

.top-widget-title {
  font-size: 18px;
  letter-spacing: 0.01em;
  padding: 0px 0px 10px 0px;
  margin: 30px auto 40px auto;
  border-bottom: 3px double #ccc;
  max-width: 300px;
  text-align: center;
}


/* ウィジェットボックスフッター用
---------------------------------------------------- */
.footerbox {
  margin: 0 0 0 0;
  padding: 0 0 0 0;
}

.footerbox .widget {
  margin: 0 0 0 0;
  padding: 50px 0 50px 0;
}

.footerbox h2,
.footerbox h3,
.footerbox h4 {
  border-bottom: none;
}

.footerbox ul {
  margin: 0 0 0 0;
  padding: 0 0 0 0;
}

.footerbox li {
  margin: 0 0 0 0;
  padding: 7px 0px 6px 0px;
  list-style: none;
  border-bottom: 1px dotted #ddd;
}

.footerbox li a {
  font-size: 14px;
  line-height: 160%;
  color: #444;
  margin: 0 0 0 0;
  padding: 7px 0px 6px 0px;
  list-style: none;
  transition: 0.5s;
}

.footerbox li a:hover {
  color: #999;
}

.footerbox ul.children {
  margin-bottom: 0px;
  display: block;
  padding: 5px 0 0 0;
}

.footerbox ul.children li {
  padding-left: 15px;
  padding-top: 5px;
  border-top: 1px dotted #ccc;
  border-bottom: 0px dotted #ccc;
}

.footerbox ul.sub-menu {
  margin-bottom: 0px;
  display: block;
  padding: 5px 0 0 0;
}

.footerbox ul.sub-menu li {
  padding-left: 15px;
  padding-top: 5px;
  border-top: 1px dotted #ccc;
  border-bottom: 0px dotted #ccc;
}

.footer-widget-title {
  color: #333;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.05em;
  font-style: normal;
  margin: 0px 0px 10px 0px;
  padding: 0px 0 3px 0;
  border-bottom: 3px double #ccc;
}


/* ウィジェットボックスシングルページ記事下用
---------------------------------------------------- */
.singlebox {
  margin: 50px 0 50px 0;
  padding: 0 0 0 0;
}

.singlebox .textwidget,
.singlebox .textwidget p {
  font-size: 16px;
  color: #444;
  line-height: 170%;
  margin: 0 0 0px 0;
  padding: 5px 0 5px 0;
}

.singlebox h2,
.singlebox h3,
.singlebox h4 {
  border-bottom: none;
}

.singlebox ul {
  margin: 0 0 0 0;
  padding: 0 0 0 0;
}

.singlebox li {
  margin: 0 0 0 0;
  padding: 7px 0px 6px 0px;
  list-style: none;
  border-bottom: 1px dotted #ddd;
}

.singlebox li a {
  font-size: 16px;
  line-height: 160%;
  color: #444;
  margin: 0 0 0 0;
  padding: 7px 0px 6px 0px;
  list-style: none;
  transition: 0.5s;
}

.singlebox li a:hover {
  color: #999;
}

.single-widget-title {
  color: #333;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.05em;
  font-style: normal;
  margin: 50px 0 10px 0;
  padding: 0 0 3px 0;
  border-bottom: 3px double #ccc;
}

.singlebox ul.children {
  margin-bottom: 0px;
  display: block;
  padding: 5px 0 0 0;
}

.singlebox ul.children li {
  padding-left: 15px;
  padding-top: 5px;
  border-top: 1px dotted #ccc;
  border-bottom: 0px dotted #ccc;
}

.singlebox ul.sub-menu {
  margin-bottom: 0px;
  display: block;
  padding: 5px 0 0 0;
}

.singlebox ul.sub-menu li {
  padding-left: 15px;
  padding-top: 5px;
  border-top: 1px dotted #ccc;
  border-bottom: 0px dotted #ccc;
}


/* ウィジェットボックスサイドバー用
---------------------------------------------------- */
.sidebox {
  margin: 0 0 30px 0;
  padding: 0 0 0 0;
}

.sidebox ul {
  margin: 0 0 0 0;
  padding: 0 0 0 0;
}

.sidebox li {
  margin: 0 0 0 0;
  padding: 7px 0px 7px 0px;
  list-style: none;
  border-bottom: 1px dotted #ddd;
}

.sidebox li a {
  font-size: 14px;
  color: #444;
  margin: 0 0 0 0;
  padding: 5px 0px 5px 0px;
  line-height: 150%;
  list-style: none;
  transition: 0.5s;
}

.sidebox li a:hover {
  color: #999;
}

.sidebox h2,
.sidebox h3,
.sidebox h4 {
  margin: 0;
  padding: 0;
  border-bottom: none;
}

.sidebox ul.children {
  margin-bottom: 0px;
  display: block;
  padding: 5px 0 0 0;
}

.sidebox ul.children li {
  padding: 5px 0 5px 15px;
  border-top: 1px dotted #ccc;
  border-bottom: 0px dotted #ccc;
}

.sidebox ul.sub-menu {
  margin-bottom: 0px;
  display: block;
  padding: 5px 0 0 0;
}

.sidebox ul.sub-menu li {
  padding: 5px 0 5px 15px;
  border-top: 1px dotted #ccc;
  border-bottom: 0px dotted #ccc;
}

.sidebox .textwidget {
  margin: 0px 0 30px 0;
}


/* カレンダー
---------------------------------------------------- */
table#wp-calendar {
  width: 100%
}

table#wp-calendar th {
  text-align: center;
}

table#wp-calendar td {
  text-align: center;
}


/* *****************************************************************
*	検索フォーム＆検索結果
* ***************************************************************** */

/* 検索フォーム
---------------------------------------------------- */
.search input {
  font: 16px arial, sans-serif;
  color: #333;
  width: 75%;
  padding: 10px 5px;
}

/* div.search に絞ることで body.search（検索結果ページ）への意図しない適用を防ぐ */
div.search button {
  background-color: #eee;
  cursor: pointer;
  vertical-align: middle;
  border: 1px solid #ccc;
  padding: 5px 10px;
  color: #333;
}

form#searchform {
  text-align: center;
}

/* 絞り込み検索フォーム */
.my_searchform input,
.my_searchform select {
  margin-bottom: 0.5em;
  width: 93%;
  padding: 10px;
}

input[type="submit"] {
  padding: 10px;
  font-size: 16px;
  margin-top: 10px;
}


/* *****************************************************************
*	CSS3アニメーション
* ***************************************************************** */
.img-anime2 img {
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

.img-anime2:hover img {
  -webkit-transform: scale(1.3);
  transform: scale(1.3);
}


/* ************************************************ 
*	ライン
* ************************************************ */
.line-dotted {
  margin: 0 0 0 0;
  padding: 0 0 0 0;
  border-bottom: 1px dotted #CCC;
}

.line-solid {
  margin: 0 0 0 0;
  padding: 0 0 0 0;
  border-bottom: 1px solid #CCC;
}

.line-footmenu {
  margin: 0 0 5px 0;
  padding: 0 0 3px 0;
  border-bottom: 1px dotted #CCC;
}

.line-kakoi {
  margin: 0 0 0 0;
  padding: 10px 7px;
  border: 1px solid #CCC;
}

.line-kakoi2 {
  margin: 20px 0 40px 0;
  padding: 20px 25px;
  border: 3px dotted #CCC;
}


/* ショップ情報（非表示中）
---------------------------------------------------- */
.shopinfo {
  padding: 10px 10px 10px 10px;
  margin: 20px 0;
  background: #f5f5f5;
}

.shopinfo p {
  font-size: 14px;
  padding: 5px 5px;
  line-height: 2.0;
}

.shopinfo .subtitle {
  font-size: 17px;
  margin: 0px 0px 5px 0px;
  padding: 5px 5px;
  border-top: 0px solid #ccc;
  border-bottom: 1px dotted #ccc;
}

.shopinfo {
  display: none;
}


/* *****************************************************************
*	テーブル
* ***************************************************************** */
.single-contents tabel,
.page-contents tabel {
  width: 100%;
}

.single-contents th,
.single-contents td,
.page-contents th,
.page-contents td {
  border: 1px solid #ccc;
  padding: 20px;
}

.single-contents th,
.page-contents th {
  font-weight: bold;
  background-color: #dedede;
}


/* ************************************************ 
*   ボタン
* ************************************************ */
.bt-more {
  width: 100%;
  margin: 0px auto 0px auto;
}

.bt-more a {
  font-size: 80%;
  letter-spacing: 0.2em;
  font-weight: normal;
  text-align: center;
  text-decoration: none;
  display: block;
  padding: 8px 8px 8px 8px;
  margin: -10px 0 50px 0;
  color: #666;
  background-color: #ddd;
}

.bt-more a:hover {
  color: #999;
  background-color: #eee;
}

.btn-more2 {
  display: inline-block;
  padding: 10px 30px;
  text-decoration: none;
  color: #333;
  border: solid 2px #333;
  transition: .4s;
}

.btn-more2:hover {
  background: #666;
  color: white;
}


/* ************************************************ 
*   広告用設定
* ************************************************ */


/* カエレバnew
---------------------------------------------------- */
.booklink-box,
.kaerebalink-box {
  font-family: 'Lucida Grande', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  padding: 22px 25px 22px 25px;
  width: 100%;
  margin: 20px auto;
  border: 1px solid #ccc;
  box-sizing: border-box;
  text-align: center;
}

.booklink-image,
.kaerebalink-image {
  width: 100%;
  margin: 0 0 5px 0;
}

.booklink-image img,
.kaerebalink-image img {}

.booklink-info,
.kaerebalink-info {
  line-height: 125%;
  width: 100%;
}

.booklink-name,
.kaerebalink-name {
  margin: 0 0 4px 0;
}

.booklink-name a,
.kaerebalink-name a {
  color: #0066cc;
  text-decoration: underline;
  font-weight: bold;
}

.booklink-name>a,
.kaerebalink-name>a {
  font-size: 16px;
  line-height: 150%;
}

.booklink-name a:hover,
.kaerebalink-name a:hover {
  color: #FF9900;
}

.booklink-powered-date,
.kaerebalink-powered-date {
  font-size: 8px;
  margin-top: -20px;
}

.booklink-detail,
.kaerebalink-detail {
  color: #333333;
  font-size: 12px;
  margin: 0 0 10px 0;
}

.booklink-link2,
.kaerebalink-link1 {}

.booklink-link2 a,
.kaerebalink-link1 a {
  width: 90%;
  display: block;
  margin: 0px auto 8px;
  padding: 10px 1px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
}

.booklink-link2 a:hover,
.kaerebalink-link1 a:hover {
  opacity: 0.6;
}

@media screen and (min-width: 800px) {

  .booklink-box,
  .kaerebalink-box {
    text-align: left;
    display: table;
  }

  .booklink-image,
  .kaerebalink-image {
    vertical-align: top;
    box-sizing: border-box;
    display: table-cell;
    width: 111px;
    text-align: center;
  }

  .booklink-image img,
  .kaerebalink-image img {
    max-width: 100%
  }

  .booklink-info,
  .kaerebalink-info {
    line-height: 125%;
    vertical-align: top;
    box-sizing: border-box;
    display: table-cell;
    padding-left: 25px;
    width: auto;
  }

  .booklink-name,
  .kaerebalink-name {
    margin: 0 0 24px 0;
  }

  .booklink-name>a,
  .kaerebalink-name>a {
    font-size: 16px;
  }

  .booklink-powered-date,
  .kaerebalink-powered-date {
    margin: -10px 0 0 0;
  }

  .booklink-detail,
  .kaerebalink-detail {
    margin: 0 0 14px 0;
  }

  .booklink-link2 a,
  .kaerebalink-link1 a {
    width: auto;
    text-align: center;
    margin: 0;
  }

  .booklink-link2>div,
  .kaerebalink-link1>div {
    width: 33.33%;
    padding: 0 5px 5px 0;
    box-sizing: border-box;
    float: left;
  }
}

.shoplinkamazon a {
  color: #ffffff;
  background: #ff9900;
  border: 2px solid #ff9900;
}

.shoplinkrakuten a {
  color: #ffffff;
  background: #bf0000;
  border: 2px solid #bf0000;
  margin-bottom: -10px;
}

.shoplinkkindle a {
  color: #ffffff;
  background: #0079ba;
  border: 2px solid #0079ba;
}

.shoplinkyahoo a {
  color: #ffffff;
  background: #0079ba;
  border: 2px solid #0079ba;
}


/* Amazolet
---------------------------------------------------- */
.amazlet-box {
  margin-top: 20px;
  padding-bottom: 15px;
}

.amazlet-name {
  padding-top: 10px;
}

.amazlet-box img {
  background: #eee;
  padding: 5px;
}


/* ヒント広告挿入
---------------------------------------------------- */
.hinto {
  border: 0px solid #dedede;
  padding: 7px 7px 6px 10px;
  margin: 20px 0;
  background: #f5f5f5;
}


/* CTA (Minimal WP)
---------------------------------------------------- */
.cta-minimal {
  padding: 20px 20px 20px 20px;
  margin: 0;
  border: solid 1px #ccc;
  background: #e8e8e8;
}

.cta-title {
  font-family: Helvetica, arial, sans-serif;
  margin: 0px 0px 0px 0px;
  padding: 30px 0px 30px 0px;
  font-size: 20px;
  text-align: center;
  font-weight: bold;
  line-height: 140%;
  color: #FFF;
  border-top: solid 1px #ccc;
  border-bottom: 0px solid #ccc;
  border-left: solid 1px #ccc;
  border-right: solid 1px #ccc;
  background: #3e3e3e;
}

.bt-order a {
  font-size: 15px;
  color: #fff;
  display: block;
  text-align: center;
  background-color: #10c98d;
  margin: 20px 0 20px 0;
  padding: 15px 15px;
}

.bt-order a:hover {
  color: #fff;
  background: #008677;
  text-decoration: none;
  transition: 0.5s;
}

.bt-more2 a {
  color: #867888;
  background: #ddd;
  font-size: 14px;
  display: block;
  text-align: center;
  margin: 20px 0 20px 0;
  padding: 10px 15px;
}

.bt-more2 a:hover {
  color: #fff;
  background: #999;
  text-decoration: none;
  transition: 0.5s;
}


/* 本文最後テキスト広告
---------------------------------------------------- */
.text-ad {
  margin: 25px 0 30px 0;
  padding: 15px 15px;
  border: 1px solid #CCC;
}


/* プロフィールカード
---------------------------------------------------- */
.author-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: 32px 0;
  background: none;
}

.author-image {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  filter: grayscale(20%);
}

.author-info {
  flex: 1;
  min-width: 0;
}

.author-label {
  font-family: var(--font-serif-en) !important;
  font-size: 10px !important;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-muted) !important;
  margin: 0 0 4px;
  padding: 0;
}

.author-name-catch {
  font-family: var(--font-serif-ja) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--color-text) !important;
  margin: 0 0 8px;
  padding: 0;
}

.author-description {
  font-family: var(--font-base) !important;
  /* 12pxの読む文章はゴシック */
  font-size: 12px !important;
  color: var(--color-muted) !important;
  line-height: 1.8;
  margin: 0 0 14px;
  padding: 0;
}

.author-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.author-sns {
  display: flex;
  gap: 14px;
  align-items: center;
}

.author-sns-link {
  color: var(--color-muted);
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.2s;
}

.author-sns-link:hover {
  color: var(--color-accent);
}

.author-profile-btn {
  font-family: var(--font-serif-en);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--color-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.author-profile-btn:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

@media (max-width: 767px) {
  .author-card {
    gap: 16px;
  }

  .author-image {
    width: 52px;
    height: 52px;
  }
}


/* フォローボタン
---------------------------------------------------- */
.follow-block {
  max-width: var(--max-width);
  margin: 4rem auto;
  padding: 1rem 0;
  text-align: center;
}

.follow-title {
  font-weight: bold;
  font-size: 16px;
  color: #333;
  text-align: center;
  margin-bottom: 1rem;
}

.follow-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.follow-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 0.8em 1em;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s;
}

.follow-item i {
  font-size: 18px;
  color: #333;
}

.follow-item:hover {
  background-color: #f5f5f5;
}


@media (max-width: 767px) {
  .follow-links {
    grid-template-columns: 1fr;
  }
}


/* *****************************************************************
*   レスポンシブ（メディアクエリ）
* ***************************************************************** */


/* PC 画面の横幅が960px以上
---------------------------------------------------- */

@media only screen and (min-width: 960px) {
  .logo img {
    max-width: 200px;
    height: auto;
  }

  .sidebar {
    width: 300px;
  }

  .pc-ad-none {
    display: none;
  }
}


/* Tablet (Portrait) 画面の横幅が768px〜959pxまで
---------------------------------------------------- */

@media only screen and (min-width: 768px) and (max-width: 959px) {
  .wrapper {
    width: 90%;
    margin: 0 auto -2px auto;
    padding: 0px 20px 50px 20px;
  }

  .logo img {
    max-width: 200px;
    height: auto;
  }

  #nav {
    float: none;
    width: 90%;
    margin: 0 auto 0px auto;
    padding: 0;
  }

  li.item {
    height: auto;
    min-height: 470px;
    margin-bottom: 50px;
  }

  .footer-inner {
    width: 90%;
    padding: 0px 0px;
  }

  .mobile-ad-none {
    display: none;
  }
}


/* Mobile (Portrait) 画面の横幅が300px~767pxまで（基本）
---------------------------------------------------- */

@media only screen and (max-width: 767px) {
  .topborder {
    display: none;
  }

  .wrapper {
    width: 100% !important;
    /* トップページの基準余白(24px)に統一：本文の左右にもう少し呼吸を */
    padding: 0 24px 50px 24px !important;
  }

  /* ロゴを背景に関わらず見えやすくする */
  .logo img {
    max-height: 40px;
    width: 100%;
    margin: auto;
    position: static;
    left: auto;
    top: auto;
    padding: 0;
    background: none;
    z-index: auto;
  }

  .top-header {
    margin: 0px auto 0px auto;
  }

  .head-img {
    margin: 0px;
  }

  #nav {
    display: block;
    position: fixed;
    top: 60px;
    float: none;
    width: 100%;
    background: #fefefe;
    margin: 0px auto 40px auto;
    border-top: 1px solid #dedede;
    /* display:none/blockは切り替え不可なのでopacity+visibility+transformでふんわり開閉する */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }

  .nav-menu li a {
    color: #333;
    display: block;
    font-size: 15px;
    padding: 20px 10px;
    text-decoration: none;
  }

  .nav-menu li {
    display: block;
    float: none;
    border-bottom: 1px solid #ededed;
  }

  .toggle {
    display: block;
    float: right;
    position: fixed;
    top: 5px;
    right: -5px;
    z-index: 10000;
  }

  li.item {
    height: auto;
    margin-bottom: 100px;
  }

  table.similar-text img {
    width: 100px;
  }

  table.similar-text th {
    width: 100px;
  }

  .pagedate {
    margin: -20px 0 -10px 0;
  }

  .pagetitle-single {
    text-align: center;
    margin-top: 20px;
  }

  .pagetitle-top {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.05em;
    padding: 0px 0px 30px 0px;
    margin-top: 20px;
    margin-bottom: -40px;
    border-bottom: none;
    text-align: center;
  }

  .pagetitle {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.05em;
    padding: 0px 0px 0px 0px;
    margin: 20px auto 20px auto;
    border-bottom: none;
    text-align: center;
  }

  p {
    font-size: 15.5px;
    line-height: 1.75;
    text-align: justify;
  }

  .footer-inner {
    width: 90%;
    padding: 0px 0px;
  }

  .mobile-display-none {
    display: none;
  }

  .mobile-ad-none {
    display: none;
  }

  .single-contents br {
    display: none;
  }

  .shopinfo br {
    display: block;
  }

  .single-contents {
    margin: 0 0 50px 0;
  }

  .page-contents {
    margin: 0px 0 50px 0;
  }

  .block-two {
    list-style: none;
    margin-left: -3.1914893617021276%;
  }

  li.similar-item {
    float: left;
    width: 46.80851063829787%;
  }

  li.similar-item {
    height: 200px;
    margin-bottom: 20px;
    overflow: hidden;
  }

  .similar-item-title {
    font-size: 13px;
    line-height: 150%;
    font-weight: bold;
  }

  .block-three {
    margin-left: -3.1914893617021276%;
    width: 100%;
  }
}


/* *****************************************************************
*   レスポンシブ（外部サービス対策用）
* ***************************************************************** */

/* Twitter Timeline
---------------------------------------------------- */
.twitter-timeline {
  width: 100%;
  height: 300px;
}


/* YouTube embed
---------------------------------------------------- */
.youtube {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 30px;
  height: 0;
  overflow: hidden;
  margin-top: 20px;
  margin-bottom: 20px;
}

.youtube iframe,
.youtube object,
.youtube embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/* Google Map embed
---------------------------------------------------- */
.map {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 30px;
  height: 0;
  overflow: hidden;
  margin-top: 20px;
  margin-bottom: 20px;
}

.map iframe,
.map object,
.map embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/* ======================================================================
*  モバイルナビゲーション（バニラJS対応）
* ====================================================================== */

/* トグルボタンはデスクトップでは非表示 */
.sub-menu-toggle {
  display: none;
}

@media only screen and (max-width: 767px) {

  /* ナビを開く */
  #nav.nav-open {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s;
  }

  @media (prefers-reduced-motion: reduce) {
    #nav {
      transition: opacity 0.01s linear, visibility 0.01s linear;
      transform: none;
    }

    #nav.nav-open {
      transition: opacity 0.01s linear, visibility 0.01s linear;
    }
  }

  /* 子メニューはデフォルト非表示（display:noneはtransitionできないので、
     常にdisplay:blockのままmax-height+opacityで開閉する。このテーマは
     後方の別ブロックで.nav-menu .sub-menuに`position:static !important`が
     かかっており、position:absolute前提の「常時block+opacityだけ」だと
     閉時も高さ分の空白が残ってしまうため、max-heightで畳む方式にする） */
  #nav .nav-menu .sub-menu,
  #nav .nav-menu .children {
    display: block;
    background: #f9f9f9;
    border-top: 1px solid #ededed;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }

  /* トグルで開いたとき */
  #nav .nav-menu .sub-menu.sub-menu-open,
  #nav .nav-menu .children.sub-menu-open {
    display: block;
    max-height: 600px;
    opacity: 1;
    pointer-events: auto;
    transition: max-height 0.3s ease, opacity 0.25s ease 0.05s;
  }

  @media (prefers-reduced-motion: reduce) {

    #nav .nav-menu .sub-menu,
    #nav .nav-menu .children,
    #nav .nav-menu .sub-menu.sub-menu-open,
    #nav .nav-menu .children.sub-menu-open {
      transition: opacity 0.01s linear;
    }
  }

  /* 子メニューアイテムのインデント */
  #nav .nav-menu .sub-menu li,
  #nav .nav-menu .children li {
    border-bottom: none;
    border-top: 1px dotted #dedede;
  }

  #nav .nav-menu .sub-menu li a,
  #nav .nav-menu .children li a {
    padding-left: 40px;
    padding-right: 16px;
    font-size: 13px;
    color: var(--color-muted);
    text-align: left;
    white-space: normal;
    width: 100%;
    box-sizing: border-box;
  }

  #nav .nav-menu .sub-menu li a::before,
  #nav .nav-menu .children li a::before {
    content: '–\00a0';
    color: var(--color-muted);
  }

  /* 親リンクを含む li を relative に */
  #nav .nav-menu>li {
    position: relative;
  }

  /* 親リンクに右余白を確保（ボタン分）＋日本語フォントの視覚的ずれを補正 */
  #nav .nav-menu>li>a {
    padding-right: 48px;
    padding-top: 22px;
    padding-bottom: 18px;
  }

  /* サブメニュートグルボタン */
  .sub-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 0;
    width: 48px;
    height: 58px;
    background: none;
    border: none;
    border-left: 1px solid #ededed;
    cursor: pointer;
    font-size: 10px;
    color: #aaa;
  }

  .sub-menu-toggle:hover {
    background: #f0f0f0;
  }

  /* SP: current親メニュー → 下線 */
  #nav .nav-menu>.current_page_item>a,
  #nav .nav-menu>.current-menu-item>a,
  #nav .nav-menu>.current-menu-ancestor>a,
  #nav .nav-menu>.current-post-ancestor>a,
  #nav .nav-menu>.current_page_ancestor>a {
    color: var(--color-accent) !important;
    box-shadow: none !important;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  /* SP: current子メニュー → 下線 */
  #nav .nav-menu .sub-menu .current_page_item>a,
  #nav .nav-menu .sub-menu .current-menu-item>a,
  #nav .nav-menu .sub-menu .current-menu-ancestor>a,
  #nav .nav-menu .sub-menu .current-post-ancestor>a,
  #nav .nav-menu .sub-menu .current_page_ancestor>a {
    color: var(--color-accent) !important;
    box-shadow: none !important;
    background: transparent !important;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}


/* ======================================================================
*  トップに戻るボタン（バニラJS生成）
* ====================================================================== */
#topcontrol {
  position: fixed;
  bottom: 40px;
  right: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, color 0.25s, border-color 0.25s;
  z-index: 9999;
  background: var(--color-bg);
  color: var(--color-muted);
  font-family: var(--font-serif-en);
  font-size: 11px;
  letter-spacing: 0.15em;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  user-select: none;
}

#topcontrol:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-bg);
}

.top-main-col {
  width: 100%;
}


/* ---- セクションヘッダー ----------------------------------------------- */
.post-section {
  margin-top: 48px;
  margin-bottom: 52px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

/* .section-title は Phase3 CSS ブロック（末尾付近）で定義 */


/* ---- 記事グリッド ----------------------------------------------------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}


/* ---- 記事カード ------------------------------------------------------- */
li.post-card {
  height: auto;
  min-height: 0;
  min-width: 0;
  /* グリッドセルオーバーフロー防止 */
  margin: 0;
  padding: 0;
  position: static;
}

.post-card-img {
  display: block;
  overflow: hidden;
  background: #f0f0f0;
  margin: 0;
}

.post-card-img img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: 0;
  /* WordPress が出力する width/height 属性を上書き */
  height: auto;
}


.post-card-body {
  padding: 9px 0 0 0;
}

.post-card-cat {
  display: block;
  font-size: 10px;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.post-card-cat a {
  color: var(--color-accent);
}

.post-card-title {
  font-size: 16px;
  line-height: 1.55;
  font-weight: bold;
  color: var(--color-text);
  margin: 0 0 5px 0;
  padding: 0;
  border: none;
  text-decoration: none;
  overflow-wrap: break-word;
  word-break: break-word;
}

.post-card-title a {
  color: var(--color-text);
  text-decoration: none;
}

.post-card-title a:hover {
  color: #666;
}

.post-card-date {
  display: block;
  font-size: 10px;
  color: #bbb;
  letter-spacing: 0.04em;
}


/* ---- アーカイブ・検索ヘッダー ----------------------------------------- */
.archive-header {
  margin: 40px 0 32px;
  text-align: center;
}

.archive-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--color-text);
  margin: 0 0 6px 0;
  padding: 0;
  border: none;
  border-top: none;
  border-bottom: none;
}

.archive-desc {
  font-size: 14px;
  color: #666;
  margin: 6px 0 0 0;
  line-height: 1.7;
}


/* ---- コンテンツ2カラムレイアウト（記事・固定ページ） ------------------ */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0 64px;
  align-items: start;
}

.content-main {
  min-width: 0;
}

.content-side {
  min-width: 0;
}

/* CTA以降（関連記事・新着・note・コメント）はPCでも全幅ワンカラム。
   DOM順は main → wide → side なので、スマホは自動フローのまま従来通りの並びになる */
.content-wide {
  min-width: 0;
}

@media only screen and (min-width: 768px) {
  .content-main {
    grid-column: 1;
    grid-row: 1;
  }

  .content-side {
    grid-column: 2;
    grid-row: 1;
  }

  .content-wide {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 8px;
  }
}


/* ---- 関連記事・新着記事グリッド --------------------------------------- */
.similar-head {
  font-size: 18px;
  font-weight: bold;
  border: none;
  padding: 0;
  margin: 48px 0 20px;
  color: var(--color-text);
  text-align: center;
}

/* 旧 .similar ul/li CSS をリセット */
ul.similar-grid,
ul.similar-grid li {
  margin: 0;
  padding: 0;
  list-style: none;
  border: none;
  float: none;
  width: auto;
  height: auto;
  min-height: 0;
  white-space: normal;
}

.similar-grid {
  display: grid;
  /* post-gridと同じgridを明示 */
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 12px;
}

.similar-grid .post-card-title {
  /* 記事下の新着・関連：PCは14pxに（15pxは圧迫感）、行間ゆったり */
  font-size: 14px;
  line-height: 1.6;
}


/* ---- レスポンシブ ----------------------------------------------------- */

/* スマホ：2カラム */
@media only screen and (max-width: 767px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 12px;
  }

  .post-card-title {
    font-size: 14px;
    line-height: 1.5;
  }

  .similar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 8px;
  }

  .similar-grid .post-card-title {
    font-size: 14px;
  }

  ul.similar-grid,
  ul.similar-grid li {
    float: none;
    width: auto;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .content-side {
    margin-top: 0;
  }

  .archive-title {
    font-size: 18px;
  }
}

/* タブレット */
@media only screen and (min-width: 768px) and (max-width: 959px) {

  /* ナビのパディングを詰めて折り返しを防ぐ */
  .nav-menu>li>a {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* ミニロゴのマージンも詰める */
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .similar-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .content-layout {
    grid-template-columns: 1fr 220px;
    gap: 0 20px;
  }
}


/* ---- ダークモード ----------------------------------------------------- */


/* ---- 1カラムワンカラムレイアウト（サイドバー無しsingle/page） ------- */
.content-single-wide {
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}


/* ---- コメントエリア余白 ----------------------------------------------- */
#comments,
.comments-area,
.comment-respond {
  margin-top: 60px;
}


/* ---- SP時ロゴ中央揃え ------------------------------------------------- */

@media only screen and (max-width: 767px) {
  .logo img {
    width: 100%;
    max-width: 150px;
    height: auto;
    max-height: 40px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    position: static !important;
    padding: 0;
    background: none;
    left: auto !important;
    top: auto !important;
    z-index: auto !important;
  }
}


/* ======================================================================
 * Phase 3 — Magazine Redesign
 * Kinfolk × Pen Online: ミニマル・余白・エディトリアル
 * ====================================================================== */


/* ---- カラーパレット上書き -------------------------------------------- */

/* V2-3 配色＝白に振り切る。面の色差でヒエラルキーを作るのをやめ、
   余白・級数・写真そのものに全部背負わせる。落とす面は写真バンドと
   フッター（奥付）の黒だけで、それ以外に地色は一切持たせない。
   藍は罫とスモールキャップスにしか出さない（面では絶対に使わない）。
   背景・面 すべて #ffffff ／ 本文 #1c1c1a ／ 罫線 #e3e3e1 ／ 差し色 #1b3c5d ／ 唯一の黒 #17181a */
:root {
  --color-bg: #ffffff;
  --color-bg-light: #ffffff;
  --color-text: #1c1c1a;
  /* チャコール */
  --color-muted: #767671;
  --color-border: #e3e3e1;
  --color-accent: #1b3c5d;
  /* 有松絞りの藍。面で使うワンポイント専用（CTA・タグhover・TODAY） */
  --color-link: #3e6488;
  /* 本文リンク。本文の墨より明るくして、色でなく明度で見分けさせる
     白地とのコントラスト：本文17.2:1 → リンク6.2:1 → hoverで11.3:1に沈む */
  --color-accent2: #4e7a87;
  /* 淡い藍鼠（サブ） */
  --font-serif-ja: 'Shippori Mincho', 'ヒラギノ明朝 ProN', serif;
  --font-serif-en: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Hiragino Kaku Gothic ProN', '游ゴシック', YuGothic, 'メイリオ', sans-serif;
}


/* ---- ベース ----------------------------------------------------------- */

/* iOS Safe Area: html の背景色をテーマ色に揃える
   viewport-fit=cover のとき html はステータスバーの裏まで広がるため
   スクロール中も固定ヘッダーの隙間が正しい色で埋まる              */
html {
  background-color: var(--color-bg);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}


@media only screen and (max-width: 767px) {


  /* メニュー全画面オーバーレイ（ヘッダー・ナビの下・ページコンテンツの上） */
  #nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    z-index: 9990;
  }

  #nav-overlay.is-open {
    display: block;
  }
}

.logo {
  text-align: center;
}

/* PCナビ */
nav#nav.main-navigation {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
  width: 100%;
  max-width: 100%;
}


/* PC: flexで虫眼鏡ボタンを右端に */
@media only screen and (min-width: 768px) {
  nav#nav.main-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* スクロール後：ナビにミニロゴをフェードイン */

  /* スクロール後：ナビにほんのり影 */
  .nav-search-btn {
    position: static !important;
    flex-shrink: 0;
    margin-left: 16px;
  }
}


/* ---- ナビゲーション hover / current スタイル上書き -------------------- */

/* 旧スタイルの背景色をリセット（トップメニューのみ・サブメニューは除く） */
.nav-menu>li>a:hover,
.nav-menu>.current_page_item>a,
.nav-menu>.current_page_ancestor>a,
.nav-menu>.current-menu-item>a,
.nav-menu>.current-menu-ancestor>a,
.nav-menu>.current-post-ancestor>a {
  background: none;
}

/* サブメニューのコンテナは背景を確保 */
ul.nav-menu li:hover>ul,
.nav-menu ul li:hover>ul,
.nav-menu .sub-menu {
  background: var(--color-bg);
}

/* トップメニュー: hover */
.nav-menu>li>a:hover {
  color: var(--color-accent);
}

/* トップメニュー: current（現在のページ・祖先） */
.nav-menu>.current_page_item>a,
.nav-menu>.current_page_ancestor>a,
.nav-menu>.current-menu-item>a,
.nav-menu>.current-menu-ancestor>a,
.nav-menu>.current-post-ancestor>a {
  color: var(--color-accent);
  box-shadow: inset 0 -2px 0 var(--color-accent);
}

/* サブメニュー: hover */
.nav-menu .sub-menu li a:hover {
  color: var(--color-accent);
  background: var(--color-bg-light);
  padding-left: 24px;
}

/* サブメニュー: current */
.nav-menu .sub-menu .current_page_item>a,
.nav-menu .sub-menu .current-menu-item>a,
.nav-menu .sub-menu .current-menu-ancestor>a,
.nav-menu .sub-menu .current-post-ancestor>a,
.nav-menu .sub-menu .current_page_ancestor>a {
  color: var(--color-accent) !important;
  box-shadow: inset 0 0 0 1px var(--color-border);
  background: var(--color-bg) !important;
}

.nav-menu {
  display: flex;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu>li>a {
  display: block;
  padding: 12px clamp(12px, 2vw, 32px);
  white-space: nowrap;
  font-family: var(--font-serif-en);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.25s;
}

.nav-menu>li>a:hover {
  color: var(--color-accent);
}

/* 子メニュー */
.nav-menu .sub-menu {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.nav-menu .sub-menu li a {
  font-family: var(--font-serif-ja);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: none;
  color: var(--color-text);
  padding: 10px 20px;
  border-bottom: 1px solid var(--color-border);
}

.nav-menu .sub-menu li a::before {
  content: '–\00a0';
  color: var(--color-muted);
}

.nav-menu .sub-menu li:last-child a {
  border-bottom: none;
}

.nav-menu .sub-menu li a:hover {
  color: var(--color-accent);
  background: var(--color-bg-light);
}


/* ---- セクションタイトル ---------------------------------------------- */
.section-title {
  font-family: var(--font-serif-en) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 0.25em !important;
  text-transform: uppercase !important;
  color: var(--color-muted) !important;
  border: none !important;
  border-bottom: 1px solid var(--color-border) !important;
  padding: 0 0 12px !important;
  margin: 0 0 28px !important;
  width: auto !important;
  display: block !important;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

/* section-header 内の section-title は親が border を持つので自身の border・margin は不要 */
.section-header .section-title {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}


/* ---- 記事カード ------------------------------------------------------ */

/* カテゴリラベル */
.post-card-cat {
  display: block;
  font-family: var(--font-serif-en);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin-bottom: 4px;
  margin-top: 10px;
}

.post-card-cat a {
  color: inherit;
  text-decoration: none;
}

.post-card-cat a:hover {
  opacity: 0.7;
}

.post-card-title {
  font-family: var(--font-serif-ja);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--color-text);
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
}

.post-card-title a:hover {
  color: var(--color-accent);
}

.post-card-date {
  font-family: var(--font-serif-en);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-top: 6px;
}


/* ---- ポストセクション間隔 -------------------------------------------- */
.post-section {
  margin-top: 64px;
  margin-bottom: 64px;
}

.post-grid {
  gap: 48px 24px;
}


/* ---- アーカイブ・検索ヘッダー ---------------------------------------- */
.archive-title {
  font-family: var(--font-serif-ja);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.archive-title a {
  color: inherit;
  text-decoration: none;
}

.archive-title a:hover {
  opacity: 0.7;
}

/* ---- セクション・ウィジェット見出し統一 -------------------------------- */
.similar-head,
.widget-title,
.top-widget-title,
.single-widget-title,
.footer-widget-title,
.widgettitle {
  font-family: var(--font-serif-en) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 0.25em !important;
  text-transform: uppercase !important;
  color: var(--color-muted) !important;
  border: none !important;
  padding: 0 0 12px !important;
  margin: 0 0 28px !important;
  border-bottom: 1px solid var(--color-border) !important;
  width: auto !important;
}


/* ---- 記事本文・ウィジェット 明朝統一 --------------------------------- */

/* 本文全体 */
.single-contents,
.page-contents,
.single-contents p,
.page-contents p,
.widget p,
.textwidget,
.textwidget p,
#sidebar p,
#sidebar li,
.comment-body p,
.comment-content p {
  font-family: var(--font-serif-ja);
  line-height: 2;
}

.single-contents p,
.page-contents p {
  margin-bottom: 1.6em;
  font-size: 16px;
}


/* 見出しh2 */
/* H2＝セクションの大区切り：幅いっぱいの下線（濃いめ）。上に大きく空ける */
.single-contents h2,
.page-contents h2 {
  font-family: var(--font-serif-ja);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin-top: 3.2em;
  margin-bottom: 1.1em;
  padding: 0 0 0.5em;
  border-top: none;
  border-bottom: 1px solid var(--f2-ink);
  scroll-margin-top: 80px;
  /* 固定ヘッダー分のオフセット */
}

/* H3＝小見出し：H2の横線と直交する左のアクセント縦線で階層を差別化。
   本文16pxと紛れないようサイズ・余白をしっかり取る */
.single-contents h3,
.page-contents h3 {
  font-family: var(--font-serif-ja);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.03em;
  margin-top: 2.8em;
  margin-bottom: 0.7em;
  padding: 2px 0 2px 14px;
  border-bottom: none;
  border-left: 3px solid var(--f2-accent);
  scroll-margin-top: 80px;
  /* 固定ヘッダー分のオフセット */
}

/* 見出しh4 */
.single-contents h4,
.page-contents h4 {
  font-family: var(--font-serif-ja);
  font-size: 15px;
  font-weight: 600;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}

/* ウィジェットタイトル */
.widget-title,
.widgettitle {
  font-family: var(--font-serif-ja);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* サイドバーのテキスト */
.sidebar .widget,
.content-side .widget,
aside.content-side,
aside.content-side *

/* コメント */
.comment-author,
.comment-meta {
  font-family: var(--font-serif-en);
  font-size: 12px;
  letter-spacing: 0.08em;
}


/* ---- カテゴリラベル（個別記事ページ上部） ----------------------------- */

/* 固定ページタイトル：記事タイトル（.s2-title）と同じ文法・左揃え */
.pagetitle-single {
  font-family: var(--f2-mincho) !important;
  font-size: 32px !important;
  font-weight: 600 !important;
  letter-spacing: normal !important;
  color: var(--f2-ink) !important;
  line-height: 1.55;
  margin-top: 52px;
  margin-bottom: 38px;
  text-align: left;
}

@media only screen and (max-width: 767px) {
  .pagetitle-single {
    font-size: 26px !important;
    margin-top: 28px;
    margin-bottom: 28px;
  }
}

/* イメージヘッダー付きテンプレート（固定ページ・記事とも）：
   sub-headのmargin-bottomが画像の上に乗って余白になるため密着させる。
   page-lightroom-presets.php は page-imgheader.php から分岐した別テンプレで
   body クラスが変わるため、ここに足しておかないと余白が復活する
   （PC40px・モバイル24px。2026-08-14に本番で発覚）。
   イメージヘッダーを使うテンプレを増やしたら必ずここに追加すること */
.page-template-page-imgheader .sub-head,
.page-template-single-imgheader .sub-head,
.page-template-page-lightroom-presets .sub-head {
  margin-bottom: 0;
}

.pagetitle-single a {
  color: var(--color-accent) !important;
  text-decoration: none;
}

.pagetitle-single a:hover {
  opacity: 0.7;
}

/* ---- 記事タイトル h1（blog-title / entry-title） --------------------- */
h1.blog-title,
h1.entry-title,
.entry-title {
  font-family: var(--font-serif-ja);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin-bottom: 12px;
}


/* ---- ページャー ------------------------------------------------------ */
.pager a,
.pager span {
  font-family: var(--font-serif-en);
  letter-spacing: 0.1em;
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  color: var(--color-text);
  transition: background 0.2s, color 0.2s;
}

.pager a:hover,
.pager .current {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}


/* ---- 明朝フォント 全域追加適用 --------------------------------------- */

/* 記事タイトル（一覧・アーカイブ含む） */
.pagetitle-top,
.pagetitle,
.archive-title,
.entry-title {
  font-family: var(--font-serif-ja);
}

/* ウィジェット全体 */
/* ウィジェット類＝並べて読む字なのでゴシック
   （旧: 明朝一括。記事下singleboxのウィジェットが明朝のままだった） */
.widget,
.widget ul,
.widget ol,
.widget li,
.widget a,
.widget span,
.widget div,
.widget p,
.textwidget,
.textwidget p,
.textwidget a,
.widgettitle,
.widget-title,
.sidebar,
.sidebar *,
.sidebox,
.sidebox * {
  font-family: var(--font-base);
}

/* タグ（旧遺産の表示箇所・現状維持） */
.tags a,
a[rel="tag"],
.entry-tags a {
  font-family: var(--font-serif-ja);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* パンくずリスト */
.breadcrumb,
.breadcrumb a,
.breadcrumb span,
#breadcrumb,
#breadcrumb a,
#breadcrumb span {
  font-family: var(--font-serif-ja);
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* コメントエリア全体 */
#comments,
.comments-area,
.comment-respond,
.comment-list,
.comment-list li,
.comment-body,
.comment-body p,
.comment-content,
.comment-content p,
.comment-author,
.comment-author .fn,
.comment-metadata,
.comment-meta,
#reply-title,
.comment-reply-title,
label,
.comment-form p,
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
  font-family: var(--font-serif-ja);
}

input[type="text"],
input[type="email"],
input[type="url"],
textarea {
  font-size: 15px;
  letter-spacing: 0.03em;
}

/* コメントフォームのラベルが全幅に伸びて文字が散らばるのを防ぐ */
.comment-form label {
  display: inline;
  letter-spacing: 0;
  width: auto;
}

/* 検索ボックス */
.search-form,
.search-form input,
input[type="search"] {
  font-family: var(--font-serif-ja);
  font-size: 15px;
  letter-spacing: 0.03em;
}

/* フッター：英字はCormorantセリフ（奥付の顔）、日本語は明示ゴシック
   （旧: --font-serif-en のみ＝日本語が総称serif落ちで環境により明朝/ゴシックが揺れた） */
#footer,
#footer *,
.footer-inner,
.footer-inner *.copyright,
#footer .copyright {
  font-family: 'Cormorant Garamond', Georgia, var(--font-base, "Hiragino Kaku Gothic ProN", sans-serif);
  /* フッターの下限。老眼を考慮して13pxを死守する。
     このセレクタは #footer * を含む＝(1,0,1) なので、フッター内の
     .footer-col-label(10px) や .footer-profile-name(14px) 等の指定に
     すべて勝つ。つまりここがフッター全体の実サイズになる */
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* 3列（About/Category/Series）の本文リンク。上の下限と同じ13pxに揃える */
#footer .footer-cols a,
#footer .footer-cols p:not(.footer-col-label) {
  font-size: 13px;
}


/* ---- フッター -------------------------------------------------------- */
#footer {
  background: var(--color-text);
  color: var(--color-bg);
  border-top: none;
}

#footer a {
  color: var(--color-bg-light);
}

#footer .section-title {
  color: var(--color-bg) !important;
  border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}

#footer .footerbox,
#footer .footerbox *#footer .footerbox a {
  color: rgba(255, 255, 255, 0.65) !important;
}

#footer .footerbox a:hover {
  color: var(--color-bg) !important;
}

/* ================================================================
   フッター 案C レイアウト
================================================================ */

/* 上段：3列グリッド */
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 24px 56px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}

/* 列ラベル（About / Category / Follow） */
.footer-col-label {
  font-family: var(--font-serif-en);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  /* コントラスト改善（Search Console指摘対応） */
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* プロフィール列 */
#footer .footer-cols p.footer-profile-name {
  font-family: var(--font-serif-ja);
  /* 3列の本文(13px)より一段大きく。#footer .footer-cols p:not(...) と
     同じ詳細度(1,2,1)なので、後ろに置いてあることで勝っている */
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 10px;
}

.footer-profile-desc {
  font-family: var(--font-serif-ja);
  font-size: 12px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 16px;
}

.footer-profile-link {
  font-family: var(--font-serif-en);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5) !important;
  transition: color var(--transition);
}

.footer-profile-link:hover {
  color: #fff !important;
}

/* カテゴリ列 */
.footer-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-cat-list li {
  margin: 0 0 10px;
}

.footer-cat-list a {
  font-family: var(--font-serif-ja);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6) !important;
  transition: color var(--transition);
}

.footer-cat-list a:hover {
  color: #fff !important;
}

/* SNS列 */
.footer-sns-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-sns-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6) !important;
  font-family: var(--font-serif-en);
  font-size: 12px;
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

.footer-sns-link:hover {
  color: #fff !important;
}

.footer-sns-link svg {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.footer-sns-link:hover svg {
  opacity: 1;
}

/* 下段：細ボーダー + カテゴリ横並び + コピーライト */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  text-align: center;
}

.footer-bottom-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.footer-bottom-nav a {
  font-family: var(--font-serif-ja);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4) !important;
  transition: color var(--transition);
}

.footer-bottom-nav a:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

#footer .footer-copyright,
#footer .footer-copyright a {
  font-family: var(--font-serif-en);
  /* 奥付だけは小さいまま据え置き（本人指定） */
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.3);
  margin: 0;
  white-space: nowrap;
}

.footer-copyright a {
  color: rgba(255, 255, 255, 0.3) !important;
}

/* フッター SP対応 */
@media only screen and (max-width: 767px) {
  .footer-inner {
    padding: 48px 20px 36px;
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    padding: 20px;
  }
}


/* ---- SP調整 ---------------------------------------------------------- */

@media only screen and (max-width: 767px) {
  .post-grid {
    gap: 36px 14px;
  }

  .section-header {
    margin-bottom: 20px;
  }

  .post-section {
    margin-top: 72px;
    margin-bottom: 72px;
  }
}


/* ---- CTAブロック ----------------------------------------------------- */

.cta-block,
.cta-block *.cta-title,
.cta-minimal,
.cta-minimal p,
.bt-order,
.bt-order a {
  font-family: var(--font-serif-ja);
}

.cta-block {
  margin: 48px 0;
}

.cta-title {
  font-size: 16px !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em;
  line-height: 1.8;
  background: var(--color-text) !important;
  color: var(--color-bg) !important;
  border-color: var(--color-text) !important;
  padding: 24px !important;
}

.cta-minimal {
  background: var(--color-bg-light) !important;
  /* 太さは1pxのまま、濃さで効かせる（#e3e3e1=1.3:1 → 墨=17.1:1）。
     上の .cta-title が墨ベタなので、囲うと1つの塊としてつながる */
  border-color: var(--color-text) !important;
}

.moji15px {
  /* CTA本文＝読む文章はゴシック。サイズはクラス名どおり15pxに是正（旧13px） */
  font-family: var(--font-base) !important;
  font-size: 15px !important;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--color-muted) !important;
}

.bt-order a {
  background-color: var(--color-accent) !important;
  font-size: 13px !important;
  letter-spacing: 0.12em;
  padding: 14px !important;
  color: #fff !important;
}

.bt-order a:hover {
  background: var(--f2-accent-deep) !important;
  color: #fff !important;
}


/* ---- 日付・著者エリア ------------------------------------------------ */

.blog-foot,
.blog-foot *,
.date,
.date.updated,
.vcard,
.vcard *span.fn,
span[itemprop="author"],
span[itemprop="name"],
.blog-foot a {
  font-family: var(--font-serif-ja);
  font-size: 11px;
  letter-spacing: 0.04em;
}


/* ---- single.phpのウィジェットエリア（singlebox） -------------------- */

.singlebox,
.singlebox *
/* ---- PC トップページ マガジンレイアウト（崩す版）----------------------
 * 方針: 余白を大きく・リズムをつける・グリッドを緩める
 * 新着記事:
 *   1枚目 : 2/3幅フィーチャー（1行）
 *   2枚目 : 1/3幅（同行）
 *   3枚目〜: 3カラム継続
 * カテゴリセクション:
 *   1枚目のみ少しタイトル大きく
 * ---------------------------------------------------------------------- */

@media only screen and (min-width: 768px) {

  /* セクション間を大きく開ける */
  .top-main-col .post-section {
    margin-top: 100px;
    margin-bottom: 0;
  }

  .top-main-col .post-section:first-of-type {
    margin-top: 56px;
  }

  /* セクションヘッダーも余裕を持たせる */
  .top-main-col .section-header {
    margin-bottom: 40px;
    padding-bottom: 16px;
  }

  /* カードグリッドのgapを大きく */
  .top-main-col .post-grid {
    gap: 64px 32px;
  }

  /* ---- 新着記事セクション ---- */
  .top-main-col .post-section:first-of-type .post-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 56px 32px;
  }

  /* 1枚目: 2カラム幅・1行（高さ固定なし、タイトル長に左右されない） */
  .top-main-col .post-section:first-of-type .post-grid .post-card:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .top-main-col .post-section:first-of-type .post-grid .post-card:nth-child(1) .post-card-img img {
    aspect-ratio: 16 / 9;
  }

  .top-main-col .post-section:first-of-type .post-grid .post-card:nth-child(1) .post-card-title {
    font-size: 22px !important;
    line-height: 1.55;
    margin-top: 14px;
  }

  .top-main-col .post-section:first-of-type .post-grid .post-card:nth-child(1) .post-card-cat {
    margin-top: 14px;
  }

  .top-main-col .post-section:first-of-type .post-grid .post-card:nth-child(1) .post-card-date {
    font-size: 12px;
    margin-top: 8px;
  }

  /* 2枚目以降: 通常サイズ */
  .top-main-col .post-section:first-of-type .post-grid .post-card:nth-child(n+2) .post-card-title {
    font-size: 16px !important;
  }

  /* 3枚目以降: 通常3カラム */
  .top-main-col .post-section:first-of-type .post-grid .post-card:nth-child(n+3) {
    grid-column: auto;
    grid-row: auto;
  }

  /* ---- カテゴリセクション ---- */
  /* 非対称3カラム × 2行: 1枚目左列スパン・右列に2〜4枚目 */
  .top-main-col .post-section:not(:first-of-type) .post-grid {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px 28px;
    align-items: start;
  }

  /* 1枚目: col1・row 1-2 スパン（左カラム全体） */
  .top-main-col .post-section:not(:first-of-type) .post-grid .post-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .top-main-col .post-section:not(:first-of-type) .post-grid .post-card:nth-child(1) .post-card-img img {
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
  }

  .top-main-col .post-section:not(:first-of-type) .post-grid .post-card:nth-child(1) .post-card-title {
    font-size: 20px !important;
    line-height: 1.55;
    margin-top: 10px;
  }

  /* 2枚目: col2・row1 */
  .top-main-col .post-section:not(:first-of-type) .post-grid .post-card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  /* 3枚目: col3・row1 */
  .top-main-col .post-section:not(:first-of-type) .post-grid .post-card:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
  }

  /* 2・3枚目をコンパクトに */
  .top-main-col .post-section:not(:first-of-type) .post-grid .post-card:nth-child(2) .post-card-title,
  .top-main-col .post-section:not(:first-of-type) .post-grid .post-card:nth-child(3) .post-card-title {
    font-size: 16px !important;
    line-height: 1.5;
    margin-top: 7px;
  }

  .top-main-col .post-section:not(:first-of-type) .post-grid .post-card:nth-child(2) .post-card-cat,
  .top-main-col .post-section:not(:first-of-type) .post-grid .post-card:nth-child(3) .post-card-cat {
    font-size: 9px !important;
    margin-top: 8px;
  }

  .top-main-col .post-section:not(:first-of-type) .post-grid .post-card:nth-child(2) .post-card-date,
  .top-main-col .post-section:not(:first-of-type) .post-grid .post-card:nth-child(3) .post-card-date {
    display: block;
    font-size: 10px;
  }

  /* 4枚目: col2-3・row2・左画像＋右タイトル 横並び */
  .top-main-col .post-section:not(:first-of-type) .post-grid .post-card:nth-child(4) {
    grid-column: 2 / 4;
    grid-row: 2;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .top-main-col .post-section:not(:first-of-type) .post-grid .post-card:nth-child(4) .post-card-img {
    width: 90px;
    flex-shrink: 0;
  }

  .top-main-col .post-section:not(:first-of-type) .post-grid .post-card:nth-child(4) .post-card-img img {
    aspect-ratio: 3 / 2;
    width: 100%;
    height: auto;
  }

  .top-main-col .post-section:not(:first-of-type) .post-grid .post-card:nth-child(4) .post-card-body {
    flex: 1;
    padding-top: 0;
  }

  .top-main-col .post-section:not(:first-of-type) .post-grid .post-card:nth-child(4) .post-card-title {
    font-size: 15px !important;
    line-height: 1.5;
    margin-top: 0;
  }

  .top-main-col .post-section:not(:first-of-type) .post-grid .post-card:nth-child(4) .post-card-cat {
    font-size: 9px !important;
    margin-top: 0;
  }

  .top-main-col .post-section:not(:first-of-type) .post-grid .post-card:nth-child(4) .post-card-date {
    display: block;
    font-size: 10px;
    margin-top: 4px;
  }

}


/* ---- ランディングページ ヘッダー画像 ---------------------------------- */
.head-img {
  margin-top: 0;
}


/* ---- SP専用要素: PC時は常に非表示 ------------------------------------ */
.sp-nav-extras {
  display: none;
}


/* ---- サイドバー上部余白（PC） ---------------------------------------- */
aside.content-side,
.sidebar {
  padding-top: 40px;
}

@media only screen and (max-width: 767px) {

  aside.content-side,
  .sidebar {
    padding-top: 0;
    margin-top: 0;
    margin-bottom: 0;
  }
}


/* ---- サイドバー 検索ウィジェット ------------------------------------- */

/* 検索ボックスを細く */
.sidebar .widget_search input[type="search"],
.sidebox .widget_search input[type="search"] {
  padding: 5px 10px !important;
  font-size: 13px !important;
  height: 34px !important;
  line-height: 1.2 !important;
  box-sizing: border-box;
}

.sidebar .widget_search input[type="submit"],
.sidebar .widget_search button[type="submit"],
.sidebar .widget_search button,
.sidebox .widget_search input[type="submit"],
.sidebox .widget_search button[type="submit"],
.sidebox .widget_search button {
  padding: 5px 12px !important;
  font-size: 12px !important;
  height: 34px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}

/* 検索ウィジェットの上に余白 */
.sidebar .widget_search,
.sidebox .widget_search {
  margin-top: 32px;
}


/* ---- ウィジェット間の余白 --------------------------------------------- */
.sidebox {
  margin-bottom: 40px;
}

.sidebar .widget,
.sidebox .widget {
  margin-bottom: 36px;
}


/* ---- wp-block-heading（Gutenbergブロック見出し） ---------------------- */
.wp-block-heading,
h2.wp-block-heading,
h3.wp-block-heading,
h4.wp-block-heading {
  border-top: none !important;
  border-bottom: 1px solid var(--color-border) !important;
}

/* ウィジェットエリア内の wp-block-heading を section-title スタイルに統一 */
.sidebar .wp-block-heading,
.sidebox .wp-block-heading,
.singlebox .wp-block-heading,
.topbox .wp-block-heading,
.footerbox .wp-block-heading,
.content-side .wp-block-heading {
  font-family: var(--font-serif-en) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 0.25em !important;
  text-transform: uppercase !important;
  color: var(--color-muted) !important;
  border-top: none !important;
  border-bottom: 1px solid var(--color-border) !important;
  padding: 32px 0 10px !important;
  margin: 0 0 4px !important;
}


/* フッター内は白で上書き */
#footer .wp-block-heading {
  color: var(--color-bg) !important;
  border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}

h2.wp-block-heading {
  font-family: var(--font-serif-ja);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0 0 0.4em;
  margin-top: 2.5em;
  margin-bottom: 0.8em;
  color: var(--color-text);
}

h3.wp-block-heading {
  font-family: var(--font-serif-ja);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0 0 0.4em;
  margin-top: 2em;
  margin-bottom: 0.6em;
  color: var(--color-text);
}

h4.wp-block-heading {
  font-family: var(--font-serif-ja);
  font-size: 15px;
  font-weight: 600;
  padding: 0 0 0.3em;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
  color: var(--color-text);
}


/* ---- SP トップページ マガジンレイアウト --------------------------------
 * 1枚目    : フル幅ヒーロー（大画像・大タイトル）
 * 2〜5枚目 : 2カラム・タイトル13px
 * 6枚目〜  : 左画像＋右テキスト 横並びリスト
 * ---------------------------------------------------------------------- */

@media only screen and (max-width: 767px) {

  /* グリッドコンテナ: 2カラム */
  .top-main-col .post-section .post-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px 12px !important;
  }

  /* ============================================================
   * 1枚目: フル幅ヒーロー
   * ============================================================ */
  .top-main-col .post-section .post-grid .post-card:nth-child(1) {
    grid-column: 1 / -1 !important;
  }

  .top-main-col .post-section .post-grid .post-card:nth-child(1) .post-card-img img {
    aspect-ratio: 16 / 9;
  }

  .top-main-col .post-section .post-grid .post-card:nth-child(1) .post-card-title {
    font-size: 18px !important;
    line-height: 1.55;
    margin-top: 8px;
  }

  .top-main-col .post-section .post-grid .post-card:nth-child(1) .post-card-cat {
    margin-top: 10px;
  }

  /* ============================================================
   * 2〜5枚目: 2カラム・中サイズ
   * ============================================================ */
  .top-main-col .post-section .post-grid .post-card:nth-child(n+2):nth-child(-n+5) .post-card-title {
    font-size: 16px !important;
    line-height: 1.5;
  }

  /* ============================================================
   * 6枚目以降: 左画像＋右テキスト 横並びリスト
   * ============================================================ */
  .top-main-col .post-section .post-grid .post-card:nth-child(n+6) {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
    margin-top: -20px;
    /* gap: 40px の半分を相殺して実質20pxに */
  }

  .top-main-col .post-section .post-grid .post-card:nth-child(n+6) .post-card-img {
    width: 96px;
    flex-shrink: 0;
  }

  .top-main-col .post-section .post-grid .post-card:nth-child(n+6) .post-card-img img {
    aspect-ratio: 3 / 2;
    width: 100%;
    height: auto;
  }

  .top-main-col .post-section .post-grid .post-card:nth-child(n+6) .post-card-body {
    flex: 1;
    padding-top: 0;
  }

  .top-main-col .post-section .post-grid .post-card:nth-child(n+6) .post-card-title {
    font-size: 14px !important;
    line-height: 1.5;
    margin-top: 0;
  }

  .top-main-col .post-section .post-grid .post-card:nth-child(n+6) .post-card-cat {
    margin-top: 0;
  }

  .top-main-col .post-section .post-grid .post-card:nth-child(n+6) .post-card-date {
    font-size: 10px;
    margin-top: 6px;
  }

}


/* ---- SP カテゴリセクション: 4枚目を横並びに -------------------------- */

@media only screen and (max-width: 767px) {

  /* 4枚目: フル幅・左画像＋右タイトル */
  .top-main-col .post-section:not(:first-of-type) .post-grid .post-card:nth-child(4) {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .top-main-col .post-section:not(:first-of-type) .post-grid .post-card:nth-child(4) .post-card-img {
    width: 80px;
    flex-shrink: 0;
  }

  .top-main-col .post-section:not(:first-of-type) .post-grid .post-card:nth-child(4) .post-card-img img {
    aspect-ratio: 3 / 2;
    width: 100%;
    height: auto;
  }

  .top-main-col .post-section:not(:first-of-type) .post-grid .post-card:nth-child(4) .post-card-body {
    flex: 1;
    padding-top: 0;
  }

  .top-main-col .post-section:not(:first-of-type) .post-grid .post-card:nth-child(4) .post-card-title {
    font-size: 14px !important;
    line-height: 1.5;
    margin-top: 0;
  }

  .top-main-col .post-section:not(:first-of-type) .post-grid .post-card:nth-child(4) .post-card-cat {
    margin-top: 0;
    font-size: 9px;
  }

  .top-main-col .post-section:not(:first-of-type) .post-grid .post-card:nth-child(4) .post-card-date {
    display: block;
    font-size: 10px;
    margin-top: 4px;
  }

}


/* ---- SP ヘッダー高さ修正（PC用paddingの上書き防止） ------------------- */

@media only screen and (max-width: 767px) {

  /* SP専用: 横スクロール防止（PC sticky を壊さないようにSP限定）
     touch-actionは pan-y だけだとピンチズームまで禁止してしまうので、
     pinch-zoom を足して「縦スクロール＋拡大は許可、横パンだけ禁止」にする */
  html,
  body {
    overflow-x: hidden;
    touch-action: pan-y pinch-zoom;
  }


  /* ---- SP モバイルナビ: 縦積み・横テキスト ----------------------------- */
  nav#nav.main-navigation {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    height: auto;
  }

  .nav-menu {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
  }

  .nav-menu>li {
    width: 100% !important;
    border-bottom: 1px solid var(--color-border);
    float: none !important;
  }

  .nav-menu>li>a {
    padding: 16px 24px !important;
    font-size: 14px !important;
    letter-spacing: 0.1em !important;
    text-align: left !important;
    display: block !important;
    writing-mode: horizontal-tb !important;
  }

  /* 子メニューも同様に縦積み */
  .nav-menu .sub-menu {
    position: static !important;
    display: none;
    box-shadow: none !important;
    border: none !important;
    border-top: 1px solid var(--color-border) !important;
    background: var(--color-bg-light) !important;
  }

  .nav-menu .sub-menu li a {
    padding: 12px 16px 12px 40px !important;
    font-size: 13px !important;
    text-align: left !important;
    white-space: normal !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* SP専用エクストラエリア */
  .sp-nav-extras {
    display: block;
    padding: 24px 20px 32px;
    border-top: 1px solid var(--color-border);
  }

  /* SNSアイコン */
  .sp-nav-sns {
    display: flex;
    gap: 24px;
    align-items: center;
  }

  .sp-sns-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s;
  }

  .sp-sns-link:hover {
    color: var(--color-accent);
  }

  .sp-sns-link svg {
    display: block;
  }
}


/* ======================================================================
 *  画像ホバーズーム
 *  **カードの写真のズームはこの1ルールだけ**（2026-08-22に集約）。
 *  以前は 0.4s ease / 0.6s ease / 0.5s cubic-bezier の3つに割れていて、
 *  倍率も 1.05 と 1.04 で食い違っていた（後ろ勝ちで決まっていた）。
 *  トップのカード（.front2 .f2-thumb）もここに含めて同じ速さにする。
 *  片方だけ足したり変えたりしないこと。
 * ====================================================================== */
.post-card-img,
.front2 .f2-thumb {
  overflow: hidden;
}

.post-card-img img,
.front2 .f2-thumb img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.post-card:hover .post-card-img img,
.front2 a:hover .f2-thumb img {
  transform: scale(1.04);
}


/* ======================================================================
 *  フィルムグレイン
 * ====================================================================== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}


/* ======================================================================
 *  マーキーテキスト
 * ====================================================================== */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  margin: 40px 0;
}

.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  font-family: var(--font-serif-en);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: 0 32px;
  white-space: nowrap;
}

.marquee-item::after {
  content: '·';
  margin-left: 32px;
  color: var(--color-accent);
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}


/* ======================================================================
 *  タグマーキー（記事下）
 * ====================================================================== */
.tag-marquee-wrap {
  overflow: hidden;
  margin: 32px 0;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.tag-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 20s linear infinite;
  will-change: transform;
}

.tag-marquee-wrap:hover .tag-marquee-track {
  animation-play-state: paused;
}

.tag-marquee-item {
  font-family: var(--font-serif-ja);
  /* マーキーは例外的に明朝：機能半分・演出半分で、ゴシックだとニュース速報感が出る */
  font-size: 14px !important;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  text-decoration: none;
  padding: 4px 20px;
  white-space: nowrap;
  border-right: 1px solid var(--color-border);
  transition: color 0.2s;
}

.tag-marquee-item:hover {
  color: var(--color-accent);
}

/* カテゴリページ専用：タグ数が多いため速度・余白を調整 */
.tag-marquee-wrap--cat {
  margin: 80px 0 0 0;
}

/* animation-duration はタグ数に応じてPHPからインラインで設定 */


/* ======================================================================
 *  関連記事カード（文中自動変換）
 * ====================================================================== */
.related-card {
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding: 12px;
  margin: 28px 0;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  /* ホバーは「前の記事・次の記事」（.post-adjacent-item）と同じ挙動＝
     薄い罫が墨に締まる（2026-08-22・本人指定）。記事下のMEMORYブロックと
     本文中に自動挿入される関連記事カードは同じ見た目の部品なので揃える。
     旧指定はカード全体が opacity:.75 で薄くなるもので、罫が濃くなる動きと
     打ち消し合うため外した */
  transition: border-color 0.2s;
}

.related-card:hover {
  border-color: var(--f2-ink);
}

.related-card-img {
  position: relative;
  flex-shrink: 0;
  width: 100px;
  height: 68px;
  overflow: hidden;
}

.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-card-label {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  font-size: 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  padding: 2px 6px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.related-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.related-card-body .related-card-title {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--color-text);
}

/* ======================================================================
 *  スクロールフェードイン
 * ====================================================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ======================================================================
 *  リーディングプログレスバー
 * ====================================================================== */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  /* .topborder と同値（色・太さ）。片方を変えたら両方変える */
  height: 3px;
  background: var(--color-text);
  z-index: 100001;
  /* 10万1（ヘッダーや他の要素より確実に手前） */
  pointer-events: none;
  transition: width 0.1s linear;
}

@media only screen and (max-width: 767px) {
  #reading-progress {
    display: none;
  }
}


/* ======================================================================
 *  目次（Table of Contents）
 * ====================================================================== */
.toc-box {
  border: 1px solid var(--color-border);
  padding: 20px 28px 40px 28px;
  margin: 40px 0;
  background: var(--color-bg-light);
}

/* .single .single-contents p（本文書体ルール）に負けないよう詳細度を確保 */
.single-contents .toc-box .toc-title,
.toc-box .toc-title {
  font-family: var(--font-serif-en);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 16px;
}

.toc-box ol {
  margin: 0;
  padding: 0 0 0 20px;
  list-style: decimal;
}

.toc-box li {
  /* 目次＝探す字（本文中の見出しは明朝でも、一覧では走査用のゴシック） */
  font-family: var(--font-base);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 6px;
}

.toc-box li a {
  color: var(--color-text);
  text-decoration: none;
}

.toc-box li a:hover {
  color: var(--color-accent);
}

.toc-box .toc-h3 {
  margin-left: 16px;
  font-size: 12px;
  color: var(--color-muted);
}

.toc-box .toc-hidden {
  display: none;
}

.toc-box.toc-expanded .toc-hidden {
  display: list-item;
}

.toc-toggle {
  display: block;
  margin-top: 14px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-serif-ja);
  font-size: 12px;
  color: var(--color-accent);
  cursor: pointer;
  letter-spacing: 0.05em;
}

.toc-toggle:hover {
  opacity: 0.7;
}


/* ======================================================================
 *  もっと見るボタン
 * ====================================================================== */
.load-more-wrap {
  text-align: center;
  margin: 48px 0 120px;
}


/* ======================================================================
 *  block-three ウィジェット（.topbox内のリストスタイルを無効化）
 * ====================================================================== */
.topbox .block-three {
  margin-top: 40px !important;
  /* -30px inline wrapper + 40px = proper top spacing */
  margin-left: -3.1914893617021276% !important;
  /* .topbox ul { margin:0 } の上書きを復元 */
  width: 100% !important;
}

.topbox .block-three li,
.topbox .block-three .top-item {
  border-bottom: none !important;
  padding: 0 !important;
  /* Preserve float grid margins from responsive.css */
  margin-top: 0 !important;
  margin-bottom: 1.5em !important;
}

.topbox .block-three li a {
  padding: 0 !important;
  font-size: inherit !important;
}

.load-more-btn {
  display: inline-block;
  font-family: var(--font-serif-en);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: 14px 40px;
  cursor: pointer;
  background: none;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.load-more-btn:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.load-more-btn.loading {
  color: var(--color-muted);
  pointer-events: none;
}

.load-more-btn.no-more {
  display: none;
}


/* ======================================================================
 *  カエレバ / Booklink リデザイン
 * ====================================================================== */
.booklink-box,
.kaerebalink-box {
  font-family: var(--font-serif-ja) !important;
  background: var(--color-bg-light) !important;
  border: 1px solid var(--color-border) !important;
  padding: 28px 32px !important;
  margin: 40px auto !important;
  box-sizing: border-box;
}

/* SP: 縦積み */
.booklink-image,
.kaerebalink-image {
  text-align: center;
}

.booklink-image img,
.kaerebalink-image img {
  max-width: 120px !important;
  box-shadow: none;
}

/* 商品名 */
.booklink-name a,
.kaerebalink-name a {
  font-family: var(--font-serif-ja) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--color-text) !important;
  text-decoration: none !important;
  line-height: 1.6 !important;
}

.booklink-name a:hover,
.kaerebalink-name a:hover {
  color: var(--color-accent) !important;
}

/* posted with カエレバ */
.booklink-powered-date,
.kaerebalink-powered-date {
  font-size: 8px !important;
  color: var(--color-muted) !important;
  margin: -40px 0 16px !important;
}

.booklink-powered-date a,
.kaerebalink-powered-date a {
  font-size: 10px !important;
  color: var(--color-muted) !important;
  font-weight: 400 !important;
  text-decoration: none !important;
}

/* アフィリエイト計測用1px画像を非表示 */
.kaerebalink-link1 img[width="1"],
.kaerebalink-link1 img[height="1"],
.booklink-link2 img[width="1"],
.booklink-link2 img[height="1"] {
  display: none !important;
}

/* 詳細テキスト */
.booklink-detail,
.kaerebalink-detail {
  font-size: 12px !important;
  color: var(--color-muted) !important;
  margin: 0 0 16px !important;
}

/* ボタン共通 */
.booklink-link2 a,
.kaerebalink-link1 a {
  display: block !important;
  font-family: var(--font-serif-ja) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  letter-spacing: 0.08em !important;
  color: var(--color-text) !important;
  background: var(--color-bg) !important;
  border: 1px solid var(--color-border) !important;
  padding: 10px 16px !important;
  text-decoration: none !important;
  text-align: center !important;
  transition: color 0.2s, border-color 0.2s !important;
  margin: 0 0 6px !important;
  width: auto !important;
}

.booklink-link2 a:hover,
.kaerebalink-link1 a:hover {
  color: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  opacity: 1 !important;
}

/* 各ショップの色を無効化 */
.shoplinkamazon a,
.shoplinkrakuten a,
.shoplinkkindle a,
.shoplinkyahoo a {
  color: var(--color-text) !important;
  background: var(--color-bg) !important;
  border: 1px solid var(--color-border) !important;
}

.shoplinkamazon a:hover,
.shoplinkrakuten a:hover,
.shoplinkkindle a:hover,
.shoplinkyahoo a:hover {
  color: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
}

/* PC: 横並びレイアウト調整 */
@media screen and (min-width: 800px) {

  .booklink-image,
  .kaerebalink-image {
    width: 130px !important;
    padding-right: 0 !important;
  }

  .booklink-info,
  .kaerebalink-info {
    padding-left: 32px !important;
  }

  .booklink-link2>div,
  .kaerebalink-link1>div {
    width: auto !important;
    float: none !important;
    display: inline-block !important;
    padding: 0 6px 0 0 !important;
  }

  .booklink-link2,
  .kaerebalink-link1 {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .booklink-link2 a,
  .kaerebalink-link1 a {
    margin: 0 !important;
    white-space: nowrap;
  }
}


/* ======================================================================
 *  note セクション
 * ====================================================================== */


/* 有料バッジ */
.note-card .post-card-img {
  position: relative;
}


/* noteカードのタイトルは行数を制限しない（長め） */
.note-grid .post-card-title a {
  -webkit-line-clamp: unset;
}


/* ======================================================================
 *  block-three ウィジェット（トップページ新着記事下（大）カードスタイル）
 * ====================================================================== */

/* ウィジェット内の margin-top: -30px を相殺しつつ上余白を確保 */
.top-main-col .row .block-three {
  margin-top: 50px;
  list-style: none;
}

/* カード本体：固定高さ・position: relative を解除 */
.top-main-col .block-three li.item {
  height: auto !important;
  margin-bottom: 32px !important;
  position: static !important;
}

/* 画像エリア：ホバーズームを post-card と揃える */
.top-main-col .block-three .item-img {
  overflow: hidden;
  margin-bottom: 12px;
  text-align: left;
}

.top-main-col .block-three .item-img img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.top-main-col .block-three .item-img:hover img {
  transform: scale(1.04);
}

/* "おすすめ記事" ラベル → post-card-cat 風 */
.top-main-col .block-three .item-date {
  font-family: var(--font-serif-ja) !important;
  font-size: 10px !important;
  letter-spacing: 0.05em;
  color: var(--color-muted) !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  max-height: none !important;
}

/* カテゴリ名：絶対配置を解除してインライン表示 */
.top-main-col .block-three .item-cat-name {
  position: static !important;
  display: block;
  font-family: var(--font-serif-ja) !important;
  font-size: 11px !important;
  color: var(--color-muted) !important;
  background: none !important;
  padding: 0 !important;
  margin-bottom: 6px !important;
  max-height: none !important;
}

.top-main-col .block-three .item-cat-name a {
  color: var(--color-muted) !important;
}

.top-main-col .block-three .item-cat-name a:hover {
  color: var(--color-accent) !important;
}

/* タイトル：下線を外して post-card-title 風に */
.top-main-col .block-three h2.item-title {
  font-family: var(--font-serif-ja);
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.7 !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: none !important;
  text-decoration: none !important;
}

.top-main-col .block-three h2.item-title a {
  color: var(--color-text) !important;
  text-decoration: none !important;
}

.top-main-col .block-three h2.item-title a:hover {
  color: var(--color-accent) !important;
}

/* 本文テキスト */
.top-main-col .block-three .item-text {
  font-family: var(--font-serif-ja) !important;
  font-size: 12px !important;
  color: var(--color-muted) !important;
  line-height: 1.8 !important;
  margin-top: 6px !important;
}


/* ======================================================================
 *  カテゴリページ
 * ====================================================================== */

/* ---- ヒーロー -------------------------------------------------------- */
.cat-hero {
  width: 100%;
  height: 460px;
  overflow: hidden;
}

.cat-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* テキストエリア：画像の下、白背景 */
/* ヒーローあり：テキストブロック */
.cat-hero-text {
  text-align: center;
  padding: 48px 24px 52px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 40px;
  /* PC: border後の余白 */
}

/* ヒーローなし：シンプルヘッダー（cat-hero-textと同じ余白に揃える） */
.cat-simple-header {
  text-align: center;
  margin: 0 0 40px;
  /* PC: cat-hero-textに揃える */
  padding: 48px 24px 52px;
  border-bottom: 1px solid var(--color-border);
}

/* wrapper の padding-bottom を打ち消す（margin-bottom だけで余白管理） */
.cat-header-wrapper {
  padding-bottom: 0 !important;
}

/* カテゴリページ #main は余白管理しない（ヘッダー側で統一） */
.category #main {
  padding-top: 0;
}

/* カテゴリ・検索結果ページ PC：記事タイトルを16pxに揃える */
@media only screen and (min-width: 768px) {

  .category #main .post-card-title,
  .search #main .post-card-title {
    font-size: 16px;
  }
}

.cat-hero-label {
  font-family: var(--font-serif-en);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 16px;
}

.cat-hero-title {
  font-family: var(--font-serif-ja);
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3;
  margin: 0 0 20px;
  color: var(--color-text);
  border: none;
}

.cat-hero-desc {
  font-family: var(--font-serif-ja);
  font-size: 13px;
  line-height: 1.9;
  color: var(--color-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ---- 子カテゴリピル -------------------------------------------------- */
.cat-children {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}


.cat-child-pill {
  font-family: var(--font-serif-ja);
  font-size: 12px;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: 5px 14px;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}

.cat-child-pill:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ---- 本数＋年別ジャンプ ---------------------------------------------- */
.cat-meta {
  margin: 0 0 36px;
}

/* グローバルpのpadding打ち消し（新規コンポーネントは明示打ち消し必須） */
.cat-meta .cat-count {
  font-family: var(--font-serif-ja);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--color-muted);
  padding: 0;
  margin: 0;
  text-align: left;
}

/* 裸の数字はCormorant */
.cat-count-year {
  font-family: var(--f2-en);
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--f2-accent);
}

.cat-years {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 14px;
}

.cat-year {
  font-family: var(--f2-en);
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--color-muted);
  line-height: 1.6;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}

.cat-year:hover {
  color: var(--f2-accent);
}

.cat-year.is-current {
  color: var(--f2-ink);
  border-bottom-color: var(--f2-accent);
}

@media only screen and (max-width: 767px) {
  .cat-meta {
    margin-bottom: 28px;
  }

  .cat-years {
    gap: 4px 14px;
  }

  .cat-year {
    font-size: 13px;
  }
}

/* ---- カテゴリ別CTA --------------------------------------------------- */
.cat-cta-wrap {
  margin: 64px 0 48px;
}

.cat-cta-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  border: 1px solid var(--color-text);
  padding: 24px;
  background: var(--color-bg-light);
  transition: border-color 0.2s;
}

.cat-cta-img {
  flex-shrink: 0;
  width: 180px;
  overflow: hidden;
}

.cat-cta-img img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.cat-cta-card:hover .cat-cta-img img {
  transform: scale(1.04);
}

.cat-cta-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}


.cat-cta-title {
  font-family: var(--font-base);
  /* 誘導＝ゴシック */
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
}

.cat-cta-btn {
  font-family: var(--font-serif-en);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-top: auto;
}

/* ---- SP対応 ---------------------------------------------------------- */

@media only screen and (max-width: 767px) {
  .cat-hero {
    height: 220px;
  }

  .cat-hero-text,
  .cat-simple-header {
    padding: 32px 20px 36px;
    margin-bottom: 24px;
    /* SP: 両方同じ余白 */
    text-align: center;
  }

  .cat-hero-label {
    text-align: center;
  }

  .category #main {
    padding-top: 0;
  }

  .cat-hero-desc {
    font-size: 12px;
  }

  .cat-hero-desc .pc-br {
    display: none;
  }

  .cat-cta-card {
    flex-direction: column;
    gap: 16px;
  }

  .cat-cta-img {
    width: 100%;
  }

  .cat-cta-title {
    font-size: 14px;
  }

  /* カテゴリページSP：1〜6枚目フル幅（雑誌の特集面）、7枚目〜2列（索引） */
  .category #main .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 12px;
  }

  /* 1〜6枚目：フル幅 */
  .category #main .post-grid .post-card:nth-child(-n+6) {
    grid-column: 1 / -1;
  }

  .category #main .post-grid .post-card:nth-child(-n+6) .post-card-img img {
    aspect-ratio: 3 / 2;
  }

  .category #main .post-grid .post-card:nth-child(-n+6) .post-card-title {
    font-size: 18px !important;
    line-height: 1.55;
  }

  /* 7枚目〜：2列 */
  .category #main .post-grid .post-card:nth-child(n+7) {
    grid-column: auto;
  }

  .category #main .post-grid .post-card:nth-child(n+7) .post-card-title {
    font-size: 16px !important;
  }

  /* 検索結果ページSP：カテゴリページ（3枚目〜）に揃える */
  .search #main .post-card-title {
    font-size: 16px !important;
  }
}


/* ======================================================================
 *  検索ボックス
 * ====================================================================== */

/* 共通フォームスタイル */
.site-search-form {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}

.site-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  /* flex内でinputが縮まるようにするための必須設定 */
  border: none;
  background: transparent;
  /* 検索はUI＝ゴシック（サイドバーの検索ボックスと統一） */
  font-family: var(--font-base);
  font-size: 14px;
  color: var(--color-text);
  padding: 11px 16px;
  outline: none;
  -webkit-appearance: none;
}

.site-search-form input[type="search"]::placeholder {
  color: var(--color-muted);
  font-size: 13px;
}

.site-search-form button[type="submit"] {
  flex-shrink: 0;
  border: none;
  background: transparent;
  padding: 11px 16px;
  cursor: pointer;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.site-search-form button[type="submit"]:hover {
  color: var(--color-accent);
}

/* ---- ヘッダー検索ボタン（PCのみ） ---- */
.header-search-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-muted);
  padding: 8px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.header-search-btn:hover {
  color: var(--color-accent);
}


/* ---- ヘッダー検索オーバーレイ ---- */
.header-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 99999;
  align-items: flex-start;
  justify-content: center;
  padding-top: 140px;
}

.header-search-overlay.is-open {
  display: flex;
}

.header-search-inner {
  width: 90%;
  max-width: 600px;
  background: var(--color-bg);
  padding: 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.header-search-inner .site-search-form {
  border: none;
  width: 100%;
  height: 100%;
  align-items: stretch;
  margin-bottom: 0;
  /* responsive.css の form { margin-bottom: 1.5em } を打ち消す */
}

.header-search-inner .site-search-form input[type="search"] {
  font-size: 16px;
  height: 60px;
  padding: 0 16px;
  box-sizing: border-box;
  line-height: 60px;
}

.header-search-inner .site-search-form button[type="submit"] {
  height: 60px;
  padding: 0 16px;
  box-sizing: border-box;
}

/* SP ではハンバーガーメニュー内の旧検索ボタンは非表示 */
@media (max-width: 767px) {
  .header-search-btn {
    display: none;
  }
}

/* ---- トップページ検索バー ---- */
.top-search-wrap {
  max-width: var(--max-width);
  margin: 48px auto 0;
  padding: 0 5%;
}

.top-search-form {
  max-width: 560px;
  margin: 0 auto;
}

.top-search-form input[type="search"] {
  font-size: 15px;
  padding: 14px 20px;
}


/* ---- サイドバー検索（PC専用） ---- */
.sidebar-search-wrap {
  margin-bottom: 36px;
}

@media only screen and (max-width: 767px) {
  .sidebar-search-wrap {
    display: none;
  }
}

.sidebar-search-wrap .section-title {
  margin-bottom: 12px !important;
}


/* ======================================================================
 *  検索ボタン配置（PC ナビ右端 / SP ヘッダー左端）
 * ====================================================================== */

/* ---- PC: ナビ右端ボタン ---- */
.nav-search-btn {
  display: none;
  /* SPでは非表示 */
}

@media only screen and (min-width: 768px) {
  .nav-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    /* sticky nav が containing block になる */
    right: 20px;
    top: 0;
    bottom: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-muted);
    padding: 8px;
    transition: color 0.2s;
  }

  .nav-search-btn:hover {
    color: var(--color-accent);
  }
}


/* ---- ヘッダー内ボタン（旧スタイル）をリセット ---- */
.header-search-btn {
  display: none !important;
}

/* ======================================================================
 *  フッター直前 検索ブロック
 * ====================================================================== */
.pre-footer-search {
  text-align: center;
  padding: 64px 24px 72px;
  border-top: 1px solid var(--color-border);
  margin-top: 80px;
}


.pre-footer-search-form {
  max-width: 480px;
  margin: 0 auto;
}

@media only screen and (max-width: 767px) {
  .pre-footer-search {
    padding: 48px 20px 56px;
    margin-top: 48px;
  }
}

/* 記事ページ：パンくず〜検索ボックス間が空きすぎるので詰める（PCのみ・モバイルは従来のまま） */
@media only screen and (min-width: 768px) {
  .single .blog-foot {
    margin-bottom: 24px;
  }

  .single .pre-footer-search {
    margin-top: 32px;
  }
}


@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }

  /* 2周分の半分まで */
}


/* ---- ダークモード追加修正 -------------------------------------------- */


/* ======================================================================
 *  前後記事ナビゲーション
 * ====================================================================== */
.post-adjacent-nav {
  display: flex;
  gap: 12px;
  margin: 40px 0 32px;
  padding-top: 8px;
}

.post-adjacent-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.2s, border-color 0.2s;
  min-width: 0;
}

.post-adjacent-item:hover {
  background: none;
  border-color: var(--f2-ink);
}

.post-adjacent-empty {
  border: none;
  background: none;
}

.post-adjacent-label {
  font-size: 11px;
  color: var(--color-text-light, #999);
  letter-spacing: 0.05em;
  font-family: var(--font-serif-en);
}

.post-adjacent-title {
  font-size: 13px;
  line-height: 1.55;
  font-family: var(--font-base);
  /* ナビ＝スキャンする字 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-adjacent-next {
  text-align: right;
}

@media only screen and (max-width: 767px) {
  .post-adjacent-nav {
    gap: 8px;
    margin: 28px 0 24px;
  }

  .post-adjacent-item {
    padding: 12px 10px;
  }

  .post-adjacent-title {
    font-size: 12px;
    -webkit-line-clamp: 3;
  }

  .post-adjacent-label {
    font-size: 10px;
  }
}


/* ======================================================================
 *  関連記事 → カテゴリ一覧リンク
 * ====================================================================== */
.related-cat-link-wrap {
  text-align: center;
  margin: 24px 0 48px;
}

.related-cat-link {
  display: inline-block;
  font-family: var(--font-serif-ja);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: 14px 36px;
  text-decoration: none;
  transition: color 0.25s, border-color 0.25s;
}

.related-cat-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}


/* ======================================================================
 *  記事本文内の太字を強調
 * ====================================================================== */
.single-contents strong,
.single-contents b {
  font-weight: 800;
}

/* ======================================================================
 *  空ウィジェットエリア対策（2026-07-12 配布テーマ統一修正から移植）
 * ====================================================================== */

/* 空のウィジェットエリアの箱は余白ごと非表示にする
   （ウィジェット未設定のエリアが余計な隙間として残らないように） */
.topbox:not(:has(*)),
.singlebox:not(:has(*)),
.sidebox:not(:has(*)),
.footerbox:not(:has(*)) {
  display: none;
}

/* 空のウィジェット箱と構造用の枠しか入っていない行は、行ごと非表示にする
   （空行のクリアフィックスが前後のマージン相殺を妨げて余白が二重になるのを防ぐ。
   記事やウィジェット本体など、リスト外の要素が1つでもあれば行はそのまま表示される） */
.row:not(:has(*:not(.topbox):not(.singlebox):not(.footerbox):not(.sidebox):not(.half):not(.third):not(.clear))) {
  display: none;
}

img,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
li,
a,
figure,
iframe,
video,
audio,
blockquote,
table,
form,
button,
hr,
span)) {
  display: none;
}

/* =====================================================================
   v2 トップページ（.front2）＋ すりガラス固定バー ＋ フッターMinimal WP欄
   既存スタイルと衝突しないよう f2- プレフィックス／.front2 スコープで記述
===================================================================== */
:root {
  --f2-accent: #1b3c5d;
  /* 有松絞りの藍 */
  --f2-accent-deep: #12293f;
  /* 藍の深い側（hover・押し込み）*/
  --f2-ink: #1c1c1a;
  --f2-muted: #767671;
  --f2-border: #e3e3e1;
  --f2-warm: #ffffff;
  --f2-mat: #ffffff;
  --f2-dark: #17181a;
  /* ページ唯一のトーンイベント。ここだけ黒く落とす */
  --f2-latte: #ffffff;
  --f2-note: #ffffff;
  --f2-mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f2-en: "Cormorant Garamond", "Didot", "Times New Roman", serif;
  --f2-max: 1200px;
}

/* 旧ナビバーはPCでは全ページ非表示（サブページは.sub-headが新ヘッダー）。
   モバイルは元の opacity/visibility ふんわり開閉機構をそのまま使うので
   display:none にしない（display:noneはtransitionを殺す） */
@media only screen and (min-width: 768px) {
  #nav {
    display: none !important;
  }
}

/* フッター前検索ボックス：トップページでは上の余白を消す */
body.home .pre-footer-search {
  margin-top: 0;
}

/* メニューのフォントはPC・モバイルともゴシックで統一 */
#nav .nav-menu a {
  font-family: var(--font-base, "Hiragino Kaku Gothic ProN", sans-serif) !important;
}

body {
  overflow-x: clip;
  font-synthesis: none;
  /* フォールバック時の疑似太字の歪み防止 */
}

.f2-wrap {
  max-width: var(--f2-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- front2 内リセット ---- */
.front2 {
  color: var(--f2-ink);
  line-height: 1.7;
}

.front2 ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.front2 li {
  margin: 0;
  padding: 0;
}

.front2 h2,
.front2 h3,
.front2 p {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.front2 a {
  text-decoration: none;
  color: inherit;
}

.front2 img {
  max-width: 100%;
  display: block;
  border: none;
}

.front2 .f2-thumb {
  overflow: hidden;
}

.front2 .f2-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* transition と hover の scale は「画像ホバーズーム」の1ルールが持つ。
     ここに `transition:.3s` を書き戻すと、あちらより後ろなので勝ってしまい、
     トップだけ速さが違う状態に逆戻りする（一度やって直した） */
}

.front2 button {
  font-family: inherit;
}

.front2 .f2-date {
  display: block;
  margin-top: 10px;
  font-family: var(--f2-en);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--f2-muted);
}

.front2 .cat-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--f2-accent);
  border: 1px solid currentColor;
  padding: 3px 10px;
  margin-bottom: 12px;
}


/* ---- 固定バー ----
   すりガラスをやめ、静止ヘッダー(.sub-head)と同じ白＋1px罫に統一。
   降りてきたバーが最初から見えていたヘッダーとそのまま同じ顔になる */
.sticky-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--f2-warm);
  /* 上端の1本を引き継ぐ。スクロールで .topborder が流れて消えたあとも
     画面の上端には同じ線が残り続ける（＝開いた瞬間と同じ顔のまま） */
  border-top: 3px solid var(--color-text);
  border-bottom: 1px solid var(--f2-border);
  transform: translateY(-160%);
  transition: transform .3s ease;
  z-index: 10000;
}

/* 記事ページだけは、この上罫の位置に #reading-progress が重なって
   「線そのものがメーターになる」。線を2本描かないよう色だけ透明にする
   （background-clipはborder-boxなのでバーの白地が透けて見える＝高さは不変）*/
body.single .sticky-bar {
  border-top-color: transparent;
}

.sticky-bar.visible {
  transform: translateY(0);
}

.sticky-bar .f2-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* .sub-head と同値 */
  height: 66px;
}

.sticky-bar .logo-small {
  position: relative;
  z-index: 1001;
  transform: translateY(-80px);
  transition: transform .5s cubic-bezier(.34, 1.45, .44, 1) .12s;
}

.sticky-bar.visible .logo-small {
  transform: translateY(0);
}

.sticky-bar .logo-small img {
  /* .sub-head と同値 */
  height: 40px;
  width: auto;
  display: block;
}

.sb-menu {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0 22px 0 auto;
  padding: 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .05em;
  font-family: var(--font-base, sans-serif);
}

.sb-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sb-menu li a {
  /* クリック領域を文字の周囲まで拡大。paddingぶんを負マージンで打ち消して
     レイアウトは不変。左右12pxはgap:24pxの半分＝隣と当たり判定がちょうど接する値 */
  padding: 12px;
  margin: -12px;
  display: block;
}

.sb-menu a {
  text-decoration: none;
  color: var(--f2-ink);
}

.sb-menu a:hover {
  color: var(--f2-accent);
}

.sb-menu .sub-menu,
.sb-menu .children {
  display: none;
}

.sb-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--f2-ink);
  padding: 4px;
  line-height: 1;
}

/* ヘッダーロゴの左端を「記事ブロックの左端」に揃える（PC・トップ以外）。
   ヘッダーの枠(.f2-wrap 最大1200)と記事の枠(.wrapper 最大1080)は別物で、
   ロゴのほうが36px外に出る。1280/1440/1920 のどの幅でもこの差は36pxで一定。
   ・<a class="logo-small"> 側にマージンを当てても効かないので img に当てる
   ・モバイルはロゴが中央寄せなので対象外
   ・トップページはヘッダー以外も .f2-wrap 基準で揃っているため除外 */
@media only screen and (min-width: 768px) {

  body:not(.home) .sub-head .logo-small img,
  body:not(.home) .sticky-bar .logo-small img {
    margin-left: 36px;
  }
}

/* ---- サブページの静的ヘッダー ---- */
.sub-head {
  background: var(--f2-warm);
  border-bottom: 1px solid var(--f2-border);
  /* 記事側の見出し(.s2-head)にも上余白52pxがあり、合計が空きすぎていたので30px削減（40→10）。
     モバイルは24pxのままで、アーカイブ系とイメージヘッダー系は別途0に上書きしている */
  margin-bottom: 10px;
}

.sub-head .f2-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.sub-head .logo-small img {
  height: 40px;
  width: auto;
  display: block;
}

/* ---- ヒーローバンド ---- */
.front2 .hero-band {
  position: relative;
  /* 面で色を持たない＝ヒーロー写真が地続きの紙に刷られて見える */
  background: var(--color-bg);
  padding-bottom: 84px;
}

.front2 .logo-huge {
  flex-shrink: 0;
}

.front2 .logo-huge img {
  height: 92px;
  width: auto;
  /* inlineだと行ボックスの余白が下に12pxぶら下がり、帯の上下均等が崩れる */
  display: block;
}

.front2 .masthead-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  /* 右上メニュー（mast-right）の上下余白が32pxで均等になる値 */
  padding: 32px 0 32px;
}

.front2 .mast-right {
  text-align: right;
  /* ロゴ（92px）より背が低いので、ロゴに対して垂直センタリング＝上下均等 */
  align-self: center;
}

.front2 .mast-menu {
  display: flex;
  gap: 30px;
  justify-content: flex-end;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .08em;
  margin: 0;
  padding: 0;
}

.front2 .mast-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.front2 .mast-menu li a {
  /* クリック領域を文字の周囲まで拡大。paddingぶんを負マージンで打ち消して
     レイアウトは不変。左右15pxはgap:30pxの半分＝隣と当たり判定がちょうど接する値 */
  padding: 12px 15px;
  margin: -12px -15px;
  display: block;
}

.front2 .mast-right {
  margin-left: auto;
}

.front2 .mast-menu a:hover {
  color: var(--f2-accent);
}

.front2 .mast-menu .sub-menu,
.front2 .mast-menu .children {
  display: none;
}

/* 一行ニュース（お知らせ：45日以内の告知があるときだけ現れる細帯）
   区切りは上の1本だけ。下側は直下の .hibi の border-top が担当する
   （両方に引くと 2px 分に見えるため） */
.front2 .f2-news-band {
  background: #fff;
  border-top: 1px solid var(--f2-border);
  padding: 12px 0;
}

.front2 .f2-newsline {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin: 0;
  text-decoration: none;
}

.front2 .f2-newsline-label {
  font-family: var(--f2-en);
  font-size: 10.5px;
  letter-spacing: .25em;
  color: var(--f2-accent);
}

.front2 .f2-newsline-title {
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .03em;
  color: #565f68;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 46em;
  transition: .25s;
}

.front2 .f2-newsline-arrow {
  font-size: 11.5px;
  color: var(--f2-accent);
  transition: transform .25s ease;
}

.front2 .f2-newsline:hover .f2-newsline-title {
  color: var(--f2-accent);
}

.front2 .f2-newsline:hover .f2-newsline-arrow {
  transform: translateX(4px);
}

/* パノラマスライダー：表示されるたびに少し拡大した状態からゆっくり縮小して着地。
   fill-modeなしなので終了後は通常のホバー拡大(.3s)がそのまま効く */
@keyframes f2-settle {
  from {
    transform: scale(1.08);
  }

  to {
    transform: scale(1);
  }
}

.front2 .hero-slide.is-active .f2-thumb img {
  animation: f2-settle 4.8s cubic-bezier(.23, .6, .32, 1);
}

@media (prefers-reduced-motion: reduce) {
  .front2 .hero-slide.is-active .f2-thumb img {
    animation: none;
  }
}

/* パノラマスライダー */
.front2 .hero-slides {
  position: relative;
  aspect-ratio: 21 / 9;
  /* 角丸は廃止（V2-3）。角丸のために張っていた overflow+isolation の
     クリップレイヤーも一緒に撤去する。Ken Burns の拡大は各スライド内側の
     .f2-thumb の overflow:hidden がすでに抑えているので、ここには不要。
     結果、PCもモバイルと同じ「クリップレイヤー無し」の構造に揃う
     （このレイヤーがiOSのスライダー残像の原因だった） */
}

.front2 .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
  pointer-events: none;
}

/* テキストパネルはクロスフェードさせない（文字が重なると読めない汚れになる）：
   前の文字はis-activeが外れた瞬間に消え、次の文字は.25s遅れでふわっと出る。
   ※transitionは使わない——WebKit（iPhoneは全ブラウザこれ）はクラス除去時に
   古いtransition-delayを引きずって前の文字が残る（＝重なる）ことがあるため、
   クセのないkeyframeアニメーション＋fill:bothで実装する */
.front2 .hero-panel {
  opacity: 0;
}

.front2 .hero-slide.is-active .hero-panel {
  /* 遅延なし＝前の文字が消えた瞬間に次が出始める（パッと切り替わる体感）。
     前の文字は即座に消えるので重なりは構造上起きない */
  animation: heroPanelIn .35s ease both;
}

@keyframes heroPanelIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .front2 .hero-slide.is-active .hero-panel {
    animation: none;
    opacity: 1;
  }
}

.front2 .hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.front2 .hero-slide .f2-thumb {
  width: 100%;
  height: 100%;
}

.front2 .hero-panel {
  position: absolute;
  left: 0;
  bottom: 0;
  /* 誌面の一部として画像の角に密着（浮遊カード案は却下） */
  /* すりガラス：写真を覆いすぎず、固定バーと同じデザイン言語に */
  /* すりガラスをやめ、紙が写真の角を食う白ノックアウトに */
  background: #fff;
  padding: 18px 20px 16px 20px;
  /* すりガラス＝カードなので左右均等の内余白 */
  max-width: 35%;
}

.front2 .hero-panel h2 {
  font-family: var(--f2-mincho);
  font-size: 20px;
  line-height: 1.45;
  font-weight: 600;
}

.front2 .hero-dots {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: none;
  gap: 10px;
  z-index: 5;
}

.front2 .hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  border: none;
  cursor: pointer;
  transition: .25s;
  padding: 0;
}

.front2 .hero-dot.on {
  background: #fff;
  transform: scale(1.25);
}

/* スライド送り矢印：PCではタブがあるので非表示、モバイルのみ */
.front2 .hero-arrow {
  display: none;
}

.front2 .hero-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 34px;
}

.front2 .hero-tab {
  position: relative;
  display: block;
  background: none;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, .14);
  padding: 14px 0 0;
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: .25s;
}

/* 進捗バー：次のスライドまでの時間をアクセント線で予告（JS側の4500msと同期） */
.front2 .hero-tab::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--f2-accent);
}

.front2 .hero-tab.on::before {
  width: 100%;
  animation: f2-tab-progress 4.5s linear;
}

@keyframes f2-tab-progress {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

.front2 .hero-tab .ht-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  color: #565f68;
}

.front2 .hero-tab .ht-date {
  display: block;
  margin-top: 6px;
  font-family: var(--f2-en);
  font-size: 12px;
  letter-spacing: .12em;
  color: #7a8894;
}

.front2 .hero-tab:hover .ht-title {
  color: var(--f2-accent);
}

.front2 .hero-tab.on .ht-title {
  color: var(--f2-ink);
}

/* ---- 素晴らしい日々 ---- */
.front2 .hibi {
  background: var(--f2-mat);
  border-top: 1px solid var(--f2-border);
  border-bottom: 1px solid var(--f2-border);
  padding: 84px 0 88px;
}

.front2 .hibi-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.front2 .hibi-title-block {
  display: flex;
  align-items: flex-end;
  gap: 32px;
}

.front2 .hibi-bigdate {
  font-family: var(--f2-en);
  font-size: 104px;
  line-height: .82;
  font-weight: 400;
}

.front2 .hibi-bigdate small {
  display: block;
  font-size: 14px;
  letter-spacing: .3em;
  margin-top: 12px;
  color: var(--f2-accent);
}

.front2 .hibi-name h2 {
  font-family: var(--f2-mincho);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: .08em;
}


/* 語の途中で改行させない塊 */
.f2-br-sp {
  display: none;
}

/* モバイルだけ効く改行 */
.front2 .hibi-name p {
  text-align: left;
  /* justify由来の間延び防止 */
  font-size: 12px;
  color: var(--f2-muted);
  letter-spacing: .15em;
  margin-top: 6px;
}

.front2 .hibi-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 18px;
}

.front2 .hibi-card .day {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--f2-en);
  margin-bottom: 8px;
}

.front2 .hibi-card .day .num {
  font-size: 27px;
}

.front2 .hibi-card .day .dow {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--f2-muted);
}

.front2 .hibi-card.today .day .num {
  color: var(--f2-accent);
}

.front2 .hibi-card .f2-thumb {
  aspect-ratio: 1 / 1;
  margin-bottom: 10px;
}

.front2 .hibi-card.today .f2-thumb {
  outline: 2px solid var(--f2-accent);
  outline-offset: 3px;
}

.front2 .hibi-card h3 {
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
}

.front2 .hibi-card .today-label {
  animation: f2-breathe 3.4s ease-in-out infinite;
  display: inline-block;
  font-family: var(--f2-en);
  font-size: 10px;
  letter-spacing: .25em;
  color: #fff;
  background: var(--f2-accent);
  padding: 1px 7px;
  margin-left: auto;
}

.front2 .cs-box {
  width: 100%;
  /* Safariがaspect-ratioを高さ基準で解決して横に伸びるのを防ぐ */
  aspect-ratio: 1 / 1;
  border: 1px dashed rgba(27, 60, 93, .55);
  /* 小数幅(1.5px)はiOSで縦の点線が消えるので整数に */
  background: none;
  color: var(--f2-accent);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 2;
  letter-spacing: .06em;
  margin-bottom: 10px;
}

.front2 .cs-box small {
  display: block;
  font-family: var(--f2-en);
  font-size: 10px;
  letter-spacing: .25em;
  color: rgba(27, 60, 93, .55);
  margin-top: 6px;
}

/* ---- カテゴリーバンド共通 ---- */
.front2 .band {
  padding: 92px 0 96px;
}


.front2 .band-note {
  background: var(--f2-note);
  border-top: 1px solid var(--f2-border);
}

.front2 .band .f2-wrap {
  position: relative;
}

.front2 .f2-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--f2-ink);
  padding-bottom: 14px;
  margin-bottom: 42px;
  position: relative;
  z-index: 2;
}


.front2 .f2-title {
  font-family: var(--f2-mincho);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--f2-ink);
  /* 旧テーマのh2色に負けないよう明示 */
}


.front2 .f2-title small {
  font-family: var(--f2-en);
  font-size: 12px;
  letter-spacing: .25em;
  color: var(--f2-muted);
  margin-left: 14px;
  text-transform: uppercase;
}


.front2 .ghost-word {
  position: absolute;
  top: -30px;
  right: -10px;
  font-family: var(--f2-en);
  font-style: italic;
  font-size: 120px;
  line-height: 1;
  z-index: 0;
  pointer-events: none;
  white-space: nowrap;
}


.front2 .layout-stagger,
.front2 .features-grid,
.front2 .layout-tate,
.front2 .layout-list,
.front2 .osusume-grid,
.front2 .layout-gallery,
.front2 .more-btn-wrap {
  position: relative;
  z-index: 1;
}

/* もっと見るボタン（セクション末尾・中央）
   .notfound-home-wrap は404の「トップページへ戻る」。.front2 の外なので
   ここに並べておかないと枠だけ付いて左端に寄る */
.front2 .more-btn-wrap,
.notfound-home-wrap,
.rensai-more {
  text-align: center;
  margin-top: 48px;
}

/* サイト共通の「もっと見る」ボタン。ここが唯一の定義。
   トップのカテゴリー／連載ページ／記事下の関連記事／記事下の新着記事(Ajax)／
   404の「トップページへ戻る」／コメントの送信ボタン、
   6種の見た目をこの1ルールで揃えている。
   **片方だけ足したり変えたりしないこと**。
   （以前は明朝13px・Cormorant11px大文字・ゴシック13pxの3種類に割れていた） */
.front2 .f2-more-btn,
.rensai-more .f2-more-btn,
.related-cat-link,
.notfound-home,
.comment-form #submit,
.load-more-btn {
  display: inline-block;
  border: 1px solid var(--f2-ink);
  /* <input type="submit"> はブラウザ既定の灰色の面と黒文字を持つので明示で消す
     （<a>や<button>では要らないが、6種を1ルールで揃えるためここに置く） */
  background: none;
  color: var(--f2-ink);
  cursor: pointer;
  padding: 13px 56px;
  /* buttonはフォントを継承しないので明示。明朝や英字セリフに戻さないこと */
  font-family: var(--font-base, "Hiragino Kaku Gothic ProN", sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: none;
  /* 行送りも明示。置き場所ごとに継承値が違って、同じpaddingでも
     ボタンの高さが50/53/48pxとバラついていた */
  line-height: 1.7;
  transition: .25s;
}

/* 連載ページは.front2外なのでリンク色・下線をここで整える */
/* 連載ページ・404は.front2外なのでリンク色・下線をここで整える
   （404はテーマ内で唯一、ブラウザ既定の青いリンクが出ていた箇所） */
.rensai-more .f2-more-btn,
.notfound-home {
  color: var(--f2-ink);
  text-decoration: none;
}

.front2 .f2-more-btn::after,
.rensai-more .f2-more-btn::after,
.related-cat-link::after,
.notfound-home::after,
.comment-form #submit::after,
.load-more-btn::after {
  content: "\2192";
  /* → */
  display: inline-block;
  margin-left: 10px;
  transition: transform .25s ease;
}

.front2 .f2-more-btn:hover::after,
.rensai-more .f2-more-btn:hover::after,
.related-cat-link:hover::after,
.notfound-home:hover::after,
.comment-form #submit:hover::after,
.load-more-btn:hover::after {
  transform: translateX(6px);
}

/* 読み込み中は矢印を消す（「読み込み中… →」に見えないように） */
.load-more-btn.loading::after {
  display: none;
}

.front2 .f2-more-btn:hover,
.rensai-more .f2-more-btn:hover,
.related-cat-link:hover,
.notfound-home:hover,
.comment-form #submit:hover,
.load-more-btn:hover {
  background: var(--f2-ink);
  /* 旧ルールが hover で border-color を藍にしていたので明示で打ち消す */
  border-color: var(--f2-ink);
  color: #fff;
}


/* ---- 暮らし：段差グリッド ---- */
.front2 .layout-stagger {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 48px 40px;
}

.front2 .st-main {
  grid-area: 1 / 1 / 3 / 7;
}

.front2 .st-main .f2-thumb {
  aspect-ratio: 3 / 2;
  margin-bottom: 16px;
}

.front2 .layout-stagger h3 {
  font-size: 15px;
  line-height: 1.65;
  font-weight: 600;
}

.front2 .st-a {
  grid-area: 1 / 7 / 2 / 10;
  padding-top: 60px;
}

.front2 .st-b {
  grid-area: 1 / 10 / 2 / 13;
  padding-top: 130px;
}

.front2 .st-a .f2-thumb,
.front2 .st-b .f2-thumb {
  aspect-ratio: 3 / 2;
  margin-bottom: 14px;
}

.front2 .st-c {
  grid-area: 2 / 7 / 3 / 13;
  align-self: end;
}

.front2 .st-c a {
  display: flex;
  gap: 24px;
  align-items: center;
}

.front2 .st-c .f2-thumb {
  flex: 0 0 200px;
  aspect-ratio: 3 / 2;
}

/* ---- おすすめ記事 ---- */
.front2 .osusume-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.front2 .osusume-card {
  /* 箱をやめる。写真と級数だけで立たせる */
  background: none;
  color: var(--f2-ink);
  transition: .3s;
}

.front2 .osusume-card:hover .f2-thumb img {
  opacity: .82;
}

.front2 .osusume-card .f2-thumb {
  aspect-ratio: 3 / 2;
}

.front2 .osusume-body {
  padding: 18px 22px 22px;
}

.front2 .osusume-label {
  font-family: var(--f2-en);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--f2-accent);
}

.front2 .osusume-card h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
  margin-top: 8px;
}

/* ---- 写真：ダークギャラリー ---- */
.front2 .layout-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 52px 34px;
}

.front2 .gal a {
  position: relative;
  display: block;
}

.front2 .gal .f2-thumb {
  aspect-ratio: 3 / 2;
  /* 写真だけ角丸：カクい紙箱キャプションとの丸カク対比。
     isolationはSafariでホバー拡大中に角丸クリップが外れる対策 */
  overflow: hidden;
  isolation: isolate;
}

/* キャプション＝紙色の箱。写真の左下からちょいはみ出し（ずらし配置）、
   日付は箱の上に段違いの小チップ。角丸・影なしのフラット（NG集遵守） */
.front2 .gal .gal-caption {
  position: absolute;
  left: -10px;
  right: auto;
  bottom: -16px;
  display: block;
  max-width: min(88%, 360px);
  padding: 12px 18px 13px;
  background: var(--color-bg, #fff);
  z-index: 1;
}

.front2 .gal h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--f2-ink);
}

.front2 .gal .f2-date {
  position: absolute;
  top: -25px;
  left: 14px;
  margin-top: 0;
  padding: 4px 12px 5px;
  background: var(--color-bg, #fff);
  color: var(--f2-accent);
  font-size: 11px;
  letter-spacing: .1em;
}

.front2 .gal-1 {
  grid-column: 1 / 8;
}

.front2 .gal-2 {
  grid-column: 8 / 13;
  align-self: end;
}

.front2 .gal-3 {
  grid-column: 1 / 6;
}

.front2 .gal-4 {
  grid-column: 6 / 13;
}

/* ---- コーヒー：1本デカ＋2本サイド ---- */
.front2 .features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 30px;
}

.front2 .feature-main {
  grid-column: 1 / 9;
  position: relative;
}

.front2 .feature-main .feature-img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.front2 .feature-main .feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.front2 .feature-main .feature-panel {
  position: absolute;
  left: -1px;
  bottom: -34px;
  background: var(--f2-latte);
  max-width: 78%;
  padding: 26px 34px 0 0;
}

.front2 .feature-main h3 {
  font-family: var(--f2-mincho);
  font-size: 26px;
  line-height: 1.5;
  font-weight: 600;
}

.front2 .feature-side {
  grid-column: 9 / 13;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.front2 .feature-sub .feature-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 14px;
}

.front2 .feature-sub .feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.front2 .feature-sub h3 {
  font-family: var(--f2-mincho);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
}

/* ---- 仕事：縦書きコラム（左が最新） ---- */
.front2 .layout-tate {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 14px 5% 6px;
  overflow-x: auto;
  overflow-y: hidden;
}

.front2 .tate-item {
  flex: 0 0 auto;
}

.front2 .tate-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.front2 .tate-date {
  font-family: var(--f2-en);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--f2-accent);
}

.front2 .tate-item h3 {
  writing-mode: vertical-rl;
  font-family: var(--f2-mincho);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.9;
  height: 270px;
  max-width: 110px;
  /* 長文タイトルは3列で切る */
  overflow: hidden;
  transition: .25s;
}

.front2 .tate-item a:hover h3 {
  color: var(--f2-accent);
}

/* ---- ぼくの名古屋案内：写真・タイトル・日付のリスト ---- */
.front2 .layout-list li {
  border-bottom: 1px solid rgba(0, 0, 0, .16);
}

.front2 .layout-list a {
  display: grid;
  /* 写真 / タイトル / 日付。数字は廃止したぶん写真に幅を回した */
  grid-template-columns: 220px 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 22px 0;
}

.front2 .list-title {
  font-family: var(--f2-mincho);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
}

.front2 .layout-list a:hover .list-title {
  color: var(--f2-accent);
}

.front2 .list-date {
  font-family: var(--f2-en);
  font-size: 13px;
  letter-spacing: .12em;
  color: #7a8894;
  white-space: nowrap;
}

.front2 .layout-list .f2-thumb {
  aspect-ratio: 3 / 2;
}

.front2 .list-badge {
  display: inline-block;
  margin-left: 12px;
  font-family: var(--f2-en);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--f2-accent);
  border: 1px solid currentColor;
  padding: 1px 8px;
  vertical-align: 3px;
}

/* ---- note：商品カード ---- */


/* ---- 日記：お休みカード ---- */
.front2 .rest-box {
  width: 100%;
  /* Safari対策（cs-boxと同じ） */
  aspect-ratio: 1 / 1;
  border: 1px dashed #dcdcd9;
  /* 小数幅(1.5px)はiOSで縦の点線が消えるので整数に */
  background: #f6f6f4;
  color: #9b9b96;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 2;
  letter-spacing: .06em;
  margin-bottom: 10px;
}

.front2 .rest-box small {
  display: block;
  font-family: var(--f2-en);
  font-size: 10px;
  letter-spacing: .25em;
  color: #adada8;
  margin-top: 6px;
}

.front2 .hibi-card.rest h3 {
  color: var(--f2-muted);
}

.front2 .hibi-card.rest .day .num {
  color: #c3c0ba;
}

/* ---- 写真ディバイダー（フッター直前・全幅・スクロール視差） ---- */
.f2-divider {
  height: 300px;
  overflow: hidden;
}

.f2-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: 50% 30%;
  /* 顔が入る高さに調整（パララックス中央基準） */
  will-change: transform;
  transform: scale(1.3);
}

/* ---- ハンバーガーを細く・正方形に近い比率に ---- */
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 24px;
  height: 1px;
}

.hamburger-inner::before {
  top: -8px;
}

.hamburger-inner::after {
  bottom: -8px;
}

/* ---- サイドバー：タグクラウドをテーマの雰囲気に ---- */
.tagcloud a,
.wp-block-tag-cloud a {
  display: inline-block;
  margin: 0 6px 8px 0;
  padding: 5px 12px;
  border: 1px solid currentColor !important;
  background: none;
  color: var(--f2-accent) !important;
  font-size: 12px !important;
  font-family: var(--font-base, "Hiragino Kaku Gothic ProN", sans-serif) !important;
  letter-spacing: .04em;
  line-height: 1.5;
  text-decoration: none;
  transition: .25s;
}

/* 記事タイトル上の .s2-cat-tag と同じ挙動＝藍の面に白抜き。
   打ち消す相手が2つあるので !important が要る：
   旧レイヤーの .widget_tag_cloud a:hover（背景 #378893 の青緑。文字色だけが
   上の !important に負けて、青緑に藍という低コントラストになっていた）と、
   p a:hover（ブロック版タグクラウドは <p> で出るので下線が乗る） */
.tagcloud a:hover,
.wp-block-tag-cloud a:hover {
  background: var(--f2-accent) !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* ---- WP標準SNSアイコンウィジェットを真円に ---- */
.wp-block-social-links .wp-social-link {
  border-radius: 50%;
  overflow: hidden;
  border: none !important;
  /* サイドバーliのdotted下線が円に回り込んでギザギザに見えるのを防ぐ */
}

.wp-block-social-links .wp-social-link a {
  padding: .4em !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- フッター：Minimal WP欄（全ページ共通） ---- */
.f2-works {
  border-top: 1px solid rgba(255, 255, 255, .12);
}

/* フッター一括のuppercase（#footer *）をこの欄だけ解除。
   「WordPress」がWORDPRESSになると商標表記的にまずいため原文どおり表示する */
#footer .f2-works,
#footer .f2-works * {
  text-transform: none;
}

.f2-works-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 36px 24px;
  max-width: var(--f2-max);
  margin: 0 auto;
}

.f2-works-banner {
  flex-shrink: 0;
  display: block;
}

.f2-works-banner img {
  height: 26px;
  width: auto;
  display: block;
  /* 黒ロゴをダーク背景用に白へ反転 */
  filter: brightness(0) invert(1);
  opacity: .92;
  transition: opacity .25s;
}

.f2-works-banner:hover img {
  opacity: 1;
}


#footer .f2-works-text p {
  font-size: 12.5px;
  line-height: 1.9;
  max-width: 480px;
  margin: 0;
  color: #a8a8a8;
}

#footer .f2-works-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 700;
  /* 暗いフッターの上では藍は使えない（#1b3c5d on #1c1c1a で 1.5:1）。
     これまでは #footer a 経由でたまたま白になっていたが、詳細度が上がって
     この宣言が効く側に回るので白を明示する。周囲の本文グレー #a8a8a8 が
     7.3:1、白は 17.3:1 なので明度差でリンクだと分かる */
  color: #fff;
  text-decoration: none;
}

/* ---- ふんわり出現（fade-in-up）v2向けバリエーション ---- */
/* セクション見出しはワンテンポ遅れて */
.f2-header.fade-in-up {
  transition-delay: .12s;
}

/* ゴースト文字は上下移動なしで、さらに遅れてゆっくり浮かび上がる */
.ghost-word.fade-in-up {
  transform: none;
  transition: opacity 1.8s ease .4s;
}

.ghost-word.fade-in-up.is-visible {
  transform: none;
}

/* 日記ストリップは左から順に波打つように */
.front2 .hibi-card.fade-in-up:nth-child(2) {
  transition-delay: .07s;
}

.front2 .hibi-card.fade-in-up:nth-child(3) {
  transition-delay: .14s;
}

.front2 .hibi-card.fade-in-up:nth-child(4) {
  transition-delay: .21s;
}

.front2 .hibi-card.fade-in-up:nth-child(5) {
  transition-delay: .28s;
}

.front2 .hibi-card.fade-in-up:nth-child(6) {
  transition-delay: .35s;
}

.front2 .hibi-card.fade-in-up:nth-child(7) {
  transition-delay: .42s;
}

/* ---- アーカイブ系：余白は各ヘッダー側で管理するので、バー下のマージンはゼロ ---- */
body.archive .sub-head {
  margin-bottom: 0;
}

/* ---- 日記バックナンバー（hibiアーカイブ）：台帳スタイル ---- */
.hb-header {
  padding: 52px 0 6px;
}

.hb-header-title {
  font-family: var(--f2-mincho);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: .08em;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.hb-header-title a {
  text-decoration: none;
  color: inherit;
}

.hb-header-label {
  font-family: var(--f2-en);
  font-size: 12px;
  letter-spacing: .25em;
  color: var(--f2-muted);
  margin: 10px 0 0;
}

.hb-list {
  list-style: none;
  margin: 8px 0 24px;
  padding: 0;
}

.hb-month {
  font-family: var(--f2-en);
  font-size: 13px;
  letter-spacing: .25em;
  color: var(--f2-muted);
  padding: 40px 0 10px;
}

.hb-item {
  border-bottom: 1px solid var(--f2-border);
}

.hb-item a {
  display: grid;
  grid-template-columns: 96px 150px 1fr;
  gap: 24px;
  align-items: center;
  padding: 16px 0;
  text-decoration: none;
  color: inherit;
}

.hb-date {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hb-num {
  font-family: var(--f2-en);
  font-size: 34px;
  line-height: 1;
}

.hb-item a:hover .hb-num {
  color: var(--f2-accent);
}

.hb-meta {
  font-family: var(--f2-en);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--f2-muted);
  line-height: 1.6;
}

.hb-thumb {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.hb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .3s;
}

.hb-item a:hover .hb-thumb img {
  transform: scale(1.04);
}

.hb-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
  transition: .25s;
}

.hb-item a:hover .hb-title {
  color: var(--f2-accent);
}

@media only screen and (max-width: 767px) {
  .hb-item a {
    grid-template-columns: 58px 104px 1fr;
    gap: 14px;
  }

  .hb-num {
    font-size: 24px;
  }

  .hb-date {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .hb-title {
    font-size: 13.5px;
  }
}

/* ---- 記事ページ：v2タイトルまわり ---- */
.s2-head {
  margin: 52px 0 38px;
}

.s2-cat-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .18em;
  color: var(--f2-accent);
  border: 1px solid currentColor;
  padding: 7px 10px 6px 12px;
  text-decoration: none;
}

.s2-cat-tag:hover {
  background: var(--f2-accent);
  color: #fff;
}

/* h1.entry-titleのclamp(20-30px)旧ルールに勝つため.s2-head付きで詳細度確保 */
.s2-head .s2-title {
  font-family: var(--f2-mincho);
  font-size: 32px;
  line-height: 1.55;
  font-weight: 600;
  margin: 14px 0 0;
  padding: 0;
  border: none;
  background: none;
}

.s2-date {
  font-family: var(--f2-en);
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--f2-muted);
  margin: 12px 0 0;
}

.s2-date .s2-date-sep {
  margin: 0 6px;
  color: #ccc;
}

/* 日記：記事末尾（パンくず行）の日付 */
.s2-foot-date {
  font-family: var(--f2-en);
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--f2-muted);
  margin: 0;
  white-space: nowrap;
}

.blog-foot:has(.s2-foot-date) {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

/* 日記（素晴らしい日々）用ヘッダー */
.s2-bigdate {
  font-family: var(--f2-en);
  font-size: 74px;
  line-height: .85;
  margin: 0;
}

.s2-bigdate small {
  display: block;
  font-size: 12px;
  letter-spacing: .3em;
  margin-top: 10px;
  color: var(--f2-accent);
  font-family: var(--f2-en);
}

.s2-hibi-label {
  font-size: 12px;
  color: var(--f2-muted);
  letter-spacing: .15em;
  margin: 16px 0 0;
}

/* ラベル全体がカテゴリトップへのリンク。見た目は従来のまま、ホバーでアクセント */
.s2-hibi-label a {
  color: inherit;
  text-decoration: none;
}

.s2-hibi-label a:hover {
  color: var(--f2-accent);
}

.s2-head-hibi .s2-title {
  font-size: 26px;
  margin-top: 8px;
}

/* =========================
   v2 レスポンシブ：〜900px（レイアウト折りたたみ）
========================= */
@media only screen and (max-width: 900px) {
  .front2 .hibi {
    padding: 60px 0 64px;
  }

  .front2 .hibi-bigdate {
    font-size: 68px;
  }

  .f2-br-sp {
    display: inline;
  }

  .front2 .hibi-strip {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    /* 縦のうにゅうにゅを禁止（overflow-x:autoだけだと縦もautoになる） */
    gap: 16px;
    scroll-snap-type: x mandatory;
    /* 画面幅いっぱいに広げて内側に余白を持つ：端のカードの枠線・点線が
       スクロール境界でクリップされるのを防ぐ（TODAYのoutlineは外側5px出る） */
    margin: 0 -24px;
    padding: 6px 24px 8px;
    scroll-padding-left: 24px;
  }

  .front2 .hibi-card {
    flex: 0 0 150px;
    scroll-snap-align: start;
  }

  .front2 .band {
    padding: 64px 0 68px;
  }

  .front2 .ghost-word {
    font-size: 58px;
    top: -16px;
  }

  .front2 .layout-stagger {
    display: flex;
    flex-direction: column;
    gap: 34px;
  }

  .front2 .st-a,
  .front2 .st-b {
    padding-top: 0;
  }

  .front2 .st-c .f2-thumb {
    flex-basis: 140px;
  }

  .front2 .osusume-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .front2 .layout-gallery {
    display: flex;
    flex-direction: column;
    /* キャプション箱が写真の下に16px+チップ分はみ出すため広めに */
    gap: 56px;
  }

  .front2 .features-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .front2 .feature-main .feature-panel {
    position: static;
    max-width: none;
    padding: 16px 0 0;
    background: transparent;
  }

  .front2 .feature-main h3 {
    font-size: 21px;
  }

  .front2 .layout-tate {
    justify-content: flex-start;
    overflow-x: auto;
    gap: 36px;
    /* タイトル同士の呼吸 */
    padding: 14px 0 10px;
  }

  .front2 .tate-item {
    flex: 0 0 auto;
  }

  .front2 .tate-item h3 {
    height: 210px;
    font-size: 16px;
    max-width: 96px;
  }

  .front2 .layout-list a {
    /* 写真は左で2行ぶんを使い、右にタイトル→日付を積む */
    grid-template-columns: 130px 1fr;
    gap: 6px 14px;
  }

  .front2 .layout-list .f2-thumb {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .front2 .list-title {
    grid-column: 2;
    grid-row: 1;
  }

  .front2 .list-title {
    font-size: 15px;
  }

  /* モバイルでも日付は出す（写真の右・タイトルの下に小さく） */
  .front2 .list-date {
    display: block;
    grid-column: 2;
    grid-row: 2;
    font-size: 11px;
    letter-spacing: .1em;
  }

  /* 矢印(::after)は独立した折り返し単位なので行頭に落ちうる。
     モバイルでは折り返しを禁止し、そのぶん左右の余白を56px→28pxに詰めて
     13〜14文字でも収める。375pt幅で本文に使える幅は327pxしかない
     （f2-wrapの左右24pxを引いた値）*/
  .front2 .f2-more-btn,
  .rensai-more .f2-more-btn,
  .search-redraw {
    padding: 13px 28px;
    white-space: nowrap;
  }


  .f2-divider {
    height: 170px;
  }

  .f2-works-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

/* =========================
   v2 レスポンシブ：〜767px（モバイル：ナビ・ヒーロー・固定バー）
========================= */
@media only screen and (max-width: 767px) {

  /* サブページ静的ヘッダー：ロゴ中央・検索左（ハンバーガーは既存の .toggle）。
     色はスクロール時に降りてくる sticky-bar と同じ紙色寄りの不透明度に揃える
     （iOSノッチとの継ぎ目対策で.92にした値と同期・ズレると開いた瞬間だけ
     ヘッダーが白浮きする） */
  /* 紙色に完全同化させすぎるとヘッダー自体の輪郭が消えるため、白寄りに戻して
     メリハリを少し取り戻す（ノッチとの継ぎ目対策の不透明度.92は維持） */
  /* 紙色(248,245,240)と白の中間。紙色そのままだと輪郭が消え、
     白100%だとメリハリが付きすぎたための着地点 */
  .sub-head {
    margin-bottom: 24px;
    background: rgba(255, 255, 255, .92);
    border-bottom-color: rgba(0, 0, 0, .06);
  }

  .sub-head .f2-wrap {
    height: 58px;
    justify-content: center;
    position: relative;
  }

  .sub-head .sb-menu {
    display: none;
  }

  .sub-head .sb-search-btn {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
  }

  .sub-head .logo-small img {
    height: 40px;
  }

  .s2-head {
    margin-top: 28px;
  }

  .s2-head .s2-title {
    font-size: 25px;
  }

  /* 記事本文の見出し：モバイルは記事タイトル(25px)と潰れないよう一段下げる */
  .single-contents h2,
  .page-contents h2 {
    font-size: 22px;
  }

  .single-contents h3,
  .page-contents h3 {
    font-size: 18px;
  }

  .s2-bigdate {
    font-size: 54px;
  }

  .s2-head-hibi .s2-title {
    font-size: 22px;
  }

  /* 固定バー：ロゴ中央（ハンバーガーは既存の .toggle を使用）。
     .sub-headと同値で同期（紙色に寄せすぎるとメリハリが消えるため白寄りに） */
  .sticky-bar {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    /* モバイルは .topborder も #reading-progress も出さない設計なので
       上端に線を作らない */
    border-top: none;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
  }

  .sticky-bar .f2-wrap {
    height: 58px;
    justify-content: center;
    position: relative;
  }

  .sticky-bar .sb-menu {
    display: none;
  }

  .sticky-bar .sb-search-btn {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
  }

  /* ハンバーガーでメニューを開いている間はバー（＝ロゴ）を出しておく。
     区切り線はメニュー項目の罫線と同色に揃える（#navのborder-topは廃止し、
     ヘッダー下の線はこの1本だけにする） */
  .sticky-bar:has(~ #nav.nav-open) {
    transform: translateY(0);
    border-bottom-color: var(--color-border);
  }

  /* ハンバーガー：58px帯の縦中央に合わせる。
     可視部＝padding12+バー25+padding12=49px → top 4.5pxで中心29px＝帯中央 */
  .toggle {
    top: 4.5px;
  }

  /* 開いたメニューはバー（58px＋1px罫線）の直下に密着させ、
     前方ブロックのtop:60px＋border-topによる二重線を解消 */
  nav#nav.main-navigation {
    top: 59px;
    border-top: none;
  }

  .sticky-bar .logo-small {
    position: static;
    transform: none;
    transition: none;
  }

  .sticky-bar.visible .logo-small {
    transform: none;
  }

  .sticky-bar .logo-small img {
    height: 40px;
    filter: none;
  }

  /* ヒーロー：ロゴ中央・スライダー全幅 */
  .front2 .hero-band {
    padding-bottom: 32px;
  }

  .front2 .masthead-row {
    display: block;
    padding: 0;
  }

  .front2 .logo-huge {
    display: block;
    text-align: center;
    /* ロゴ40px＋上下9px＝58px。sub-head/sticky-barと帯の高さを統一して
       固定ハンバーガーが常に帯の縦中央に見えるようにする */
    padding: 9px 0;
  }

  .front2 .logo-huge img {
    height: 40px;
    margin: 0 auto;
  }

  .front2 .mast-right {
    display: none;
  }

  .front2 .hero-slides {
    aspect-ratio: auto;
    display: grid;
    margin: 0 -24px;
    /* 画面端まで全幅貼り付き（実機チューニング済み）。
       角丸とクリップレイヤーはPC側でも廃止したのでリセット不要になった。
       overflow:visible はドットの bottom:-18px はみ出し配置に必要なので明示のまま */
    overflow: visible;
  }

  .front2 .hero-slide {
    position: static;
    grid-area: 1 / 1;
  }

  .front2 .hero-slide .f2-thumb {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .front2 .hero-panel {
    position: static;
    max-width: none;
    padding: 22px 24px 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .front2 .hero-panel h2 {
    font-size: 21px;
    /* 長いタイトルは2行で省略（スライド全体の高さ膨張を防いで日記を見せる） */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .front2 .hero-dots {
    display: flex;
    left: 0;
    right: 0;
    top: auto;
    bottom: -18px;
    justify-content: center;
  }

  .front2 .hero-dot {
    background: rgba(0, 0, 0, .14);
  }

  .front2 .hero-dot.on {
    background: var(--f2-accent);
  }

  .front2 .hero-tabs {
    display: none;
  }

  .front2 .f2-news-band {
    padding: 10px 0;
  }

  /* モバイルは矢印を省いて文字を最大限見せる（行全体がリンクなので支障なし） */
  .front2 .f2-news-band .f2-wrap {
    padding: 0 16px;
  }

  /* この細帯だけ左右を詰めて文字に譲る */
  .front2 .f2-newsline {
    gap: 8px;
  }

  .front2 .f2-newsline-arrow {
    display: none;
  }

  .front2 .f2-newsline-title {
    font-size: 11px;
    max-width: calc(100vw - 82px);
    /* 中日新聞告知の定型文が「掲載…」まで見える幅 */
  }

  /* すりガラスの左右矢印（4:3画像の縦中央に配置） */
  .front2 .hero-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: calc(67.5vw - 19px);
    /* 写真の下寄り＝タイトルまで含めた一塊の操作に見せる */
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, .3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    color: #fff;
    padding: 0;
    z-index: 6;
    cursor: pointer;
  }

  .front2 .hero-arrow-prev {
    left: 10px;
  }

  .front2 .hero-arrow-next {
    right: 10px;
  }
}


/* =====================================================================
   v2 モーション追加分
===================================================================== */
/* TODAYラベルの呼吸 */
@keyframes f2-breathe {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

/* ページ遷移クロスフェード（対応ブラウザのみ・非対応は無視される）
   モバイルは体感がもたつくのでPCのみ有効 */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .4s;
}

@media only screen and (max-width: 767px) {
  @view-transition {
    navigation: none;
  }
}

/* 動きを減らす設定の人にはモーションを止める */
@media (prefers-reduced-motion: reduce) {
  .front2 .hero-tab.on::before {
    animation: none;
    width: 100%;
  }

  .front2 .hibi-card .today-label {
    animation: none;
  }

  .f2-divider img {
    transform: none !important;
  }

  @view-transition {
    navigation: none;
  }
}


/* 長い英単語がはみ出さないように（タイトル系はどこでも折り返し可） */
.hb-title,
.list-title,
.s2-title,
.post-adjacent-title,
.related-card-title,
.front2 .hero-panel h2,
.front2 .hero-tab .ht-title,
.front2 .hibi-card h3,
.front2 .gal h3,
.front2 .layout-stagger h3,
.front2 .osusume-card h3,
.front2 .feature-main h3,
.front2 .feature-sub h3 {
  overflow-wrap: anywhere;
  min-width: 0;
}

/* =====================================================================
   本文フォントのカテゴリー分岐
   通常記事＝ゴシック（Win/Androidの明朝描画のかすれ対策・情報系記事の可読性）
   日記（素晴らしい日々）＝明朝（文芸の空気はここに残す）
   ※articleタグの category-xxx クラスで分岐しているので、
     他のカテゴリーで変えたくなったら同じ形式で追加できる
===================================================================== */
.single .single-contents,
.single .single-contents p,
.page .page-contents,
.page .page-contents p {
  font-family: var(--font-sans);
}

.single .category-hibi .single-contents,
.single .category-hibi .single-contents p,
.single .category-weekly-photo-diary .single-contents,
.single .category-weekly-photo-diary .single-contents p {
  font-family: var(--font-serif-ja);
}

/* =====================================================================
   記事ページ：カテゴリー別の背景色（トップページのバンド配色と連動）
   サイトの基本背景がすでに生成り(#f4f2ef)なので、日記はそのまま基本色。
   V2-2では紙と藍の2色に絞ったため、個別に塗るのはコーヒー（ラテ）だけ。
   名古屋は catbg-nagoya クラスだけ付いた無塗装（再度塗るならここに1ブロック足す）。
   ダークモード時は事故る（明背景×明文字）ので塗らない。
   写真カテゴリーのダーク化は本文まで反転が必要になるので今はやらない
===================================================================== */
body.catbg-coffee {
  background: var(--f2-latte);
}

body.catbg-coffee .singlebox,
body.catbg-nagoya .singlebox {
  background: transparent;
}

/* =====================================================================
   タイポグラフィの役割統一（2026-07-19）
   ルール：明朝＝立ち止まって見る文字（見出し・主役タイトル・日記本文）
          ゴシック＝流し読み・実用の文字（本文・一覧・誘導リンク・UI）
===================================================================== */
/* サイドバー：中身はゴシック（一覧・誘導） */
aside.content-side,
aside.content-side * {
  font-family: var(--font-sans, "Hiragino Kaku Gothic ProN", sans-serif) !important;
}

/* ただしサイドバーの見出しラベルは明朝・欧文セリフのまま（デザイン要素） */
aside.content-side .widget-title,
aside.content-side .widgettitle,
aside.content-side .sidebar-search-wrap .section-title {
  font-family: var(--font-serif-en, Georgia, serif) !important;
}

/* 関連記事・アーカイブ等のカードタイトル：スキャン対象なのでゴシック */
.post-card-title,
.post-card-title a {
  font-family: var(--font-sans, "Hiragino Kaku Gothic ProN", sans-serif) !important;
}

/* コメント欄の本文もゴシック（読む文字） */
.comment-body p,
.comment-content p {
  font-family: var(--font-sans, "Hiragino Kaku Gothic ProN", sans-serif);
}

/* =========================
   検索0件ページ：「あの年の今日」／おみくじ
========================= */
.search-zero-msg {
  text-align: center;
  margin: 24px 0 0;
}

.search-onthisday {
  margin: 72px 0 0;
  border-top: 1px solid var(--color-border);
  padding-top: 96px;
}

/* 日付ドーン（日記ヘッダーの .s2-bigdate を流用）＋明朝の一言。
   デカ日付はPC・モバイルとも中央 */
.search-onthisday-head {
  text-align: center;
  margin-bottom: 60px;
}

/* モバイルの旧ルール p{text-align:justify} が継承centerに勝つため明示指定
   （1行のjustifyは左揃えに見える） */
.search-onthisday-head .s2-bigdate {
  text-align: center;
}

/* /onthisday/ 単独ページ版：上に検索結果が無いので罫線なし。
   ヘッダー下の合計余白＝sub-headのmargin(PC40/SP24)＋この16px
   →PC56px/SP40px＝記事ページのヘッダーリズムに揃える */
/* クラス2連結＝後方のモバイル用 .search-onthisday{margin/padding} より詳細度で勝たせる */
.search-onthisday.search-onthisday--page {
  border-top: none;
  margin-top: 0;
  padding-top: 16px;
}

/* トップ日記ブロック：ボタン2本を中央横並び（モバイルは自然に縦積み） */
.more-btn-wrap--hibi {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* 見出しは明朝＝立ち止まる文字（セクション見出しの役割ルールに従う）。
   旧グローバルh2の上下ボーダー・余白は打ち消す */
.search-onthisday-title {
  font-family: var(--font-serif-ja);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--f2-ink);
  margin: 48px 0 0;
  padding: 0;
  border: none;
}

@media only screen and (max-width: 767px) {
  .search-onthisday {
    margin-top: 56px;
    padding-top: 64px;
  }

  .search-onthisday-head {
    margin-bottom: 44px;
  }

  .search-onthisday-title {
    font-size: 15px;
    margin-top: 36px;
  }
}

.search-onthisday-sep {
  color: var(--color-muted);
}

/* おみくじ（1枚だけ）の時はカードを中央に */
.search-onthisday--omikuji .post-grid {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}

.search-redraw-wrap {
  text-align: center;
  margin: 40px 0 0;
}

.search-redraw {
  display: inline-block;
  border: 1px solid var(--f2-ink);
  padding: 13px 56px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  font-family: var(--font-base);
  color: var(--f2-ink);
  text-decoration: none;
  transition: .25s;
}

.search-redraw::after {
  content: "\2192";
  display: inline-block;
  margin-left: 10px;
  transition: transform .25s ease;
}

.search-redraw:hover {
  background: var(--f2-ink);
  color: #fff;
}

.search-redraw:hover::after {
  transform: translateX(6px);
}

/* =========================
   記事回遊ブロック：次に読む1本ドン／この記事の日
========================= */
.next-read-heading,
.article-onthisday-heading {
  font-family: var(--font-serif-ja);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--f2-ink);
  line-height: 1.3;
  padding: 0;
  margin: 0 0 10px;
}

.next-read-heading small,
.article-onthisday-heading small {
  font-family: var(--f2-en);
  font-size: 11px;
  letter-spacing: .25em;
  color: var(--f2-accent);
  margin-left: 12px;
}

/* ---- 次に読む1本ドン ---- */
.next-read {
  margin: 56px 0 0;
}

.next-read-card {
  display: flex;
  align-items: stretch;
  /* 記事内で一番大きい回遊導線。上罫だけだとモバイルで押せると気づかれない
     （PCはホバーで補えるが、タッチにはホバーが無く静止状態が全て）。
     「枠線＝押せる」の線に従って囲む。太さと色は「もっと見る」ボタンと同じ */
  border: 1px solid var(--f2-ink);
  background: none;
  text-decoration: none;
  color: inherit;
  transition: opacity .2s;
}

.next-read-card:hover {
  opacity: .82;
}

.next-read-img {
  flex: 0 0 42%;
  min-width: 0;
}

.next-read-img img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.next-read-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 22px 26px;
}

.next-read-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--f2-accent);
}

.next-read-title {
  font-family: var(--font-serif-ja);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  border: none;
}

.next-read-arrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
}

@media only screen and (max-width: 767px) {
  .next-read-card {
    flex-direction: column;
  }

  .next-read-img {
    flex: none;
  }

  .next-read-img img {
    aspect-ratio: 3 / 2;
  }

  .next-read-body {
    padding: 18px 20px 20px;
  }

  .next-read-title {
    font-size: 17px;
  }
}

/* ---- この記事の日、あの年は ---- */
/* 上の余白も見出し下の余白も NEXT と同値にする（2026-08-22・本人指摘）。
   カードの `margin:14px 0` は2本並べていた頃の名残で、見出しの
   `margin-bottom:10px` と相殺されて14pxが勝っていた＝NEXTより4px広かった。
   1本ドンになったいまは見出し側の10pxだけでよい */
.article-onthisday {
  margin: 56px 0 0;
}

.article-onthisday .related-card {
  margin: 0;
}


/* =========================
   連載（rensai taxonomy）：記事バンド＋アーカイブ目次
========================= */
/* ---- 記事タイトル下の連載バンド ---- */
.rensai-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: none;
  border-top: 1px solid var(--f2-accent);
  border-bottom: 1px solid var(--f2-accent);
  background: none;
  padding: 10px 2px;
  margin: 20px 0 0;
}

.rensai-band-name {
  font-family: var(--font-serif-ja);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--f2-ink);
  text-decoration: none;
}

.rensai-band-name:hover {
  color: var(--f2-accent);
}

.rensai-band-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--f2-accent);
  white-space: nowrap;
}

.rensai-band-total {
  color: var(--color-muted);
  font-weight: 400;
}

/* ---- 連載アーカイブ：ヘッダー ---- */
.rensai-head {
  text-align: center;
  margin: 16px 0 48px;
}

/* モバイルの旧ルール p{text-align:justify} が継承centerに勝つため明示指定 */
.rensai-head p {
  text-align: center;
}

.rensai-head-label {
  font-family: var(--font-serif-ja);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--f2-ink);
  margin: 0 0 14px;
}

.rensai-head-label small {
  font-family: var(--f2-en);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--f2-accent);
  margin-left: 10px;
}

/* ラベルは連載一覧（/rensai/）へのリンク（カテゴリタグと同じ扱い） */
.rensai-head-label a {
  color: inherit;
  text-decoration: none;
  transition: opacity .2s;
}

.rensai-head-label a:hover {
  opacity: .65;
}

.rensai-title {
  font-family: var(--font-serif-ja);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.4;
  margin: 0;
  padding: 0;
  border: none;
}

.rensai-lead {
  max-width: 560px;
  margin: 18px auto 0;
  font-size: 14px;
  line-height: 2;
  color: var(--color-muted);
  text-align: center;
}

.rensai-count {
  font-family: var(--f2-en);
  font-size: 12px;
  letter-spacing: .25em;
  color: var(--f2-accent);
  margin: 16px 0 0;
}

/* ---- 連載アーカイブ：目次リスト ---- */
.rensai-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}

.rensai-toc-item {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--color-border);
}

.rensai-toc-item a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 4px;
  text-decoration: none;
  color: inherit;
  transition: opacity .2s;
}

.rensai-toc-item a:hover {
  opacity: .75;
}

.rensai-no {
  font-family: var(--f2-en);
  font-size: 18px;
  color: var(--f2-accent);
  flex: 0 0 34px;
  text-align: right;
}

.rensai-thumb {
  flex: 0 0 120px;
}

.rensai-thumb img {
  display: block;
  width: 120px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.rensai-item-title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-base);
  font-size: 15px;
  line-height: 1.6;
}

.rensai-item-date {
  font-family: var(--f2-en);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--color-muted);
  white-space: nowrap;
}

@media only screen and (max-width: 767px) {
  .rensai-title {
    font-size: 24px;
  }

  .rensai-lead {
    font-size: 13px;
  }

  .rensai-toc-item a {
    gap: 12px;
    padding: 12px 0;
  }

  /* 数字は出さない（写真に幅を回す）。順序は ol のままなので情報は失われない */
  .rensai-no {
    display: none;
  }

  .rensai-thumb {
    flex-basis: 112px;
  }

  .rensai-thumb img {
    width: 112px;
  }

  .rensai-item-title {
    font-size: 13px;
  }

  .rensai-item-date {
    display: none;
  }
}

/* ---- 連載一覧（/rensai/ 固定ページ・page-rensai.php） ---- */
.rensai-index-head .rensai-index-lead p {
  /* グローバルpのpadding打ち消し（新規コンポーネントは明示打ち消し必須） */
  padding: 0;
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 2;
  color: var(--color-text);
  text-align: left;
}

.rensai-index {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 36px;
}

.rensai-index-item {
  margin: 0;
  padding: 0;
}

.rensai-index-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.rensai-index-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.rensai-index-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.rensai-index-item a:hover .rensai-index-thumb img {
  transform: scale(1.04);
}

.rensai-index-name {
  display: block;
  font-family: var(--font-serif-ja);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--f2-ink);
  margin: 14px 0 0;
}

.rensai-index-count {
  display: block;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--f2-accent);
  margin: 4px 0 0;
}

.rensai-index-desc {
  display: block;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--color-muted);
  margin: 6px 0 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-align: left;
}

@media only screen and (max-width: 767px) {
  .rensai-index {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 36px;
  }
}

/* =========================
   モバイルメニュー内：連載・シリーズの目次（POPEYE方式）
========================= */
/* PCではメニュー自体が非表示だが念のため */
.sp-nav-rensai {
  display: none;
}

@media only screen and (max-width: 767px) {
  .sp-nav-rensai {
    display: block;
    padding: 28px 24px 39px;
    border-top: 1px solid var(--color-border);
  }

  .sp-nav-rensai-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    color: var(--color-muted);
    margin: 0 0 14px;
    text-align: left;
  }

  .sp-nav-rensai-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .sp-nav-rensai-list li {
    margin: 0;
    padding: 0;
    border: none;
    display: block;
    float: none;
  }

  /* メインメニューより一段軽く：罫線なし・小さめゴシック */
  .sp-nav-rensai-list a {
    display: block;
    padding: 9px 0;
    font-family: var(--font-base, sans-serif);
    font-size: 14px;
    letter-spacing: .04em;
    color: var(--color-text);
    text-decoration: none;
    text-align: left;
  }

  .sp-nav-rensai-list a:hover {
    color: var(--color-accent);
  }
}

/* メニュー内連載リストの話数（5話以上のみ自動表示・（）が余白を含むためmarginは控えめ） */
.sp-nav-rensai-count {
  font-family: var(--font-base, sans-serif);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--color-muted);
  margin-left: 2px;
}

/* =========================
   フッター：SNSアイコン化＋連載・シリーズの棚
========================= */
/* Follow列はアイコンだけの横並びに（テキストラベルはHTML側で削除済み） */
.footer-sns-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
}

/* 最下段のFollow帯（コピーライトの直前・SNSアイコンのみ） */
.footer-band {
  border-top: 1px solid rgba(255, 255, 255, .12);
}

/* ラベルなし・アイコン中央・上下均等 */
.footer-band-inner {
  max-width: var(--f2-max);
  margin: 0 auto;
  padding: 30px 24px;
}

.footer-band-follow .footer-sns-links {
  justify-content: center;
}

/* 3列目：連載リストの話数（5話以上のみ表示） */
.footer-rensai-count {
  font-size: 11px;
  color: rgba(255, 255, 255, .4);
  margin-left: 2px;
}

@media only screen and (max-width: 767px) {
  .footer-band-inner {
    padding: 26px 24px;
  }
}

/* =========================
   サイドバー：今日の日付＋最新の日記（POPEYE式の生きてるカード）
========================= */
.side-hibi {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 26px 20px 20px;
  text-align: center;
  margin-bottom: 28px;
}


.side-hibi-card {
  display: block;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  text-decoration: none;
  color: inherit;
  transition: opacity .2s;
}

.side-hibi-card:hover {
  opacity: .8;
}

.sidebar .side-hibi-label {
  display: block;
  font-family: var(--font-serif-ja) !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  margin-bottom: 12px;
}

.sidebar .side-hibi-label small {
  font-family: var(--f2-en) !important;
  font-size: 10px;
  letter-spacing: .25em;
  color: var(--f2-accent);
  margin-left: 8px;
}

.side-hibi-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 12px;
}

.sidebar .side-hibi-title {
  display: block;
  font-family: var(--font-serif-ja) !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
  text-align: left;
}

.side-hibi-postdate {
  display: block;
  margin-top: 10px;
  font-family: var(--font-base, sans-serif);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--f2-accent);
  text-align: right;
}

/* ---- サイドバー：連載ミニ棚（雑誌の連載陣欄） ----------------------
   日付カードと同じ白カード文法。!importantはサイドバー一括
   ゴシック強制（aside.content-side *）対策（side-hibiと同じ理由） */
.side-rensai {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 22px 20px 18px;
  margin-bottom: 28px;
}

.sidebar .side-rensai-label {
  font-family: var(--font-serif-ja) !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--f2-ink);
  padding: 0;
  margin: 0 0 4px;
}

.sidebar .side-rensai-label small {
  font-family: var(--f2-en) !important;
  font-size: 10px;
  letter-spacing: .25em;
  color: var(--f2-accent);
  margin-left: 8px;
}

.side-rensai-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* border:noneは旧テーマのサイドバーli点線対策・marginは旧li 15px対策 */
.side-rensai-list li {
  margin: 0;
  padding: 0;
  border: none;
  border-bottom: 1px solid var(--color-border);
}

.side-rensai-list li:last-child {
  border-bottom: none;
}

.side-rensai-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 2px;
  text-decoration: none;
  color: inherit;
  transition: opacity .2s;
}

.side-rensai-list a:hover {
  opacity: .7;
}

.side-rensai-name {
  font-size: 12.5px;
  line-height: 1.6;
}

.side-rensai-count {
  flex-shrink: 0;
  font-size: 10.5px;
  letter-spacing: .05em;
  color: var(--color-muted);
  white-space: nowrap;
}

.side-rensai-more {
  display: block;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--f2-accent);
  text-decoration: none;
  text-align: right;
  transition: opacity .2s;
}

.side-rensai-more:hover {
  opacity: .7;
}


/* 記事下noteカードのタイトル：基本の16pxから1段下げ＋行間ゆったり */
.note-grid .post-card-title {
  font-size: 15px;
  line-height: 1.6;
}

@media only screen and (max-width: 767px) {
  .note-grid .post-card-title {
    font-size: 14px;
  }
}

/* ページャー＝ノンブル：裸の数字は英字セリフで統一（日付ドン・連載目次番号と同じ文法）。
   Cormorantは小さく見えるためサイズは1段上げ */
a.page-numbers,
.pager .current {
  font-family: var(--f2-en);
  font-size: 15px;
}

@media only screen and (max-width: 767px) {

  a.page-numbers,
  .pager .current {
    font-size: 14px;
  }
}

/* ウィジェット本文の文字サイズ統一：サイドバーli=12px/p=16px・記事下=16pxと
   バラバラだったのを14pxに揃える（widgettitle等の見出しは各自のサイズを維持） */
.widget p,
.widget li,
.widget a,
.textwidget,
.textwidget p,
.sidebox p,
.sidebox li,
.sidebox a,
.singlebox p,
.singlebox li,
.singlebox a,
.widget li a,
.sidebox li a,
.singlebox li a {
  /* 旧ルール .singlebox li a { font-size:16px } 等（0,1,2）に同格・後方で勝つ */
  font-size: 14px;
}


/* =====================================================================
   V2-3：線の太さを 1px に統一（本人指定・2026-08-11）
   旧テンプレ由来の 3px double / 7px の罫が、サイドバー見出し・コメント見出し・
   固定ページタイトルなどに生き残っていた。v2レイヤーはフォントだけ上書きして
   border は触っていなかったため実際に描画されている。ここで全部 1px に落とす。
===================================================================== */
.pagetitle,
.pagetitle-top,
.comment-head,
.comment-reply-title,
.widget-title,
.top-widget-title,
.footer-widget-title,
.single-widget-title {
  border-bottom: 1px solid var(--f2-border);
}

h1.blog-title {
  border-top: 1px solid var(--f2-border);
}

/* 記事本文の h3 は v2 レイヤーで左罫に置き換え済み。
   それ以外の場所の h3 に残る二重罫を消す */
h3 {
  border-bottom: none;
}

.line-kakoi2 {
  border: 1px dotted var(--f2-border);
}

.subtitle5 {
  border-left: 1px solid var(--f2-accent);
}


/* =====================================================================
   V2-4 square：モバイルのヒーロー写真をほぼ正方形に。
   タイトルは写真に被せず下に置く（被せると写真が隠れすぎる＝実機で確認）。

   高さに vh 系（svh を含む）を使ってはいけない。
   Chrome はURLバーの開閉でレイアウトを計算し直すため、vh系を含む要素は
   スクロール中に高さが揺れて写真が拡大縮小して見える（実機で確認・2026-08-12）。
   svh は値としては固定だが、それでもリフローの対象になるので同じことが起きる。
   vw は横幅基準なのでバーの開閉に一切影響されない＝スクロールしても動かない。

   91vw の根拠（iPhone実機・Chromeで詰めた値）：
     92vw → 帯の下の罫線が数px欠ける
     90vw → 罫線は出るが下に少し余る
     91vw → その中間。ここで確定
   Chrome は Safari より上下のバーが厚いので、Chrome が基準（Safari は余る）。
   **1vw ≒ 4px（幅390ptの端末）**。これより細かく詰めたいときは
   `calc(91vw - 2px)` のように px を足し引きする。
   写真の形も両ブラウザで一致する（svh方式だと Safari は正方形・
   Chrome は横長で食い違っていた）。
   ※端末の縦横比が極端に横長の機種では帯が下に落ちる可能性がある。
     そこまで詰めるならJSで一度だけpx計算して流し込む方式になる。
===================================================================== */
@media only screen and (max-width: 767px) {

  .front2 .hero-slides {
    --hero-h: 91vw;
  }

  .front2 .hero-slide .f2-thumb {
    aspect-ratio: auto;
    height: var(--hero-h);
  }

  /* 矢印は写真の下寄り88%（親指が届く位置）。
     ※白文字＋半透明白背景なので、白いタイトル面に重なると消える */
  .front2 .hero-arrow {
    top: calc(var(--hero-h) * 0.88 - 19px);
  }
}


/* =====================================================================
   アバウトページの活動リスト：ジャンル別アコーディオン（.about-acc）
   本文が長いので details/summary でジャンルごとに折りたたむ。
   ページ側HTMLだけで完結するよう .about-acc スコープで閉じている。
   色は使わず、罫線・太さ・余白・▼の回転だけで開閉を示す（[[user-color-vision]]）。
===================================================================== */
.about-acc {
  margin: 0 0 1.5em;
  border-top: 1px solid var(--color-border, #e3e3e1);
}

.about-acc details {
  border-bottom: 1px solid var(--color-border, #e3e3e1);
}

.about-acc summary {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 0.2em;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
  /* 開閉のたびに背景がチラつかないよう色は変えない */
  transition: opacity 0.2s ease;
}

/* Safari のデフォルト三角を消す */
.about-acc summary::-webkit-details-marker {
  display: none;
}

.about-acc summary:hover {
  opacity: 0.65;
}

.about-acc summary:focus-visible {
  outline: 2px solid var(--color-text, #1c1c1a);
  outline-offset: 2px;
}

/* ▼ 開くと180度回る。色ではなく向きで状態を示す */
.about-acc summary::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--color-text, #1c1c1a);
  border-bottom: 2px solid var(--color-text, #1c1c1a);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.25s ease;
}

.about-acc details[open]>summary::after {
  transform: translateY(1px) rotate(225deg);
}

.about-acc details>ul {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}

.about-acc details>ul li {
  margin-bottom: 0.5em;
  line-height: 1.8;
}

@media only screen and (max-width: 767px) {
  .about-acc summary {
    padding: 0.9em 0.2em;
  }
}

/* *****************************************************************
 *	店情報ブロック（.shopinfo）をv2の言語で復活
 *	1662行の display:none を後勝ちで打ち消している。
 *	戻すときはこのブロックごと削除する。
 * ***************************************************************** */
.shopinfo {
  display: block;
  background: none;
  border-top: 1px solid var(--f2-border);
  border-bottom: 1px solid var(--f2-border);
  padding: 22px 0;
  margin: 40px 0;
}

.shopinfo .subtitle {
  font-family: var(--f2-mincho);
  font-size: 17px;
  font-weight: 600;
  color: var(--f2-ink);
  border: none;
  padding: 0;
  margin: 0 0 8px;
}

.shopinfo p {
  font-size: 14px;
  line-height: 1.9;
  padding: 0;
  margin: 0;
}

.shopinfo a {
  color: var(--f2-accent);
}

.shopinfo .moji12px {
  color: var(--f2-muted);
  font-size: 12px;
  margin-top: 6px;
}

@media only screen and (max-width: 767px) {
  .shopinfo {
    padding: 18px 0;
    margin: 32px 0;
  }
}

/* =====================================================================
   V4：トップページの構成替え（2026-08-21）
   並び：ヘッダー（ロゴ＋メニュー）→ イメージヘッダー → お知らせ →
         素晴らしい日々 → 全画面スライド → 各カテゴリー

   ・ヒーロースライダーを最上段から日記の下へ降格。表示はv3の全画面機構を採用
   ・フッター直前に降格していた写真帯（.f2-divider）を最上段のイメージヘッダーへ復帰
     （トップ1ページ目ではフッター側をPHPで出さない＝同じ写真を1ページに2回出さない）
   ・カテゴリーごとに違ったレイアウト（段差／ギャラリー／縦書き／リスト）をやめ、
     全カテゴリーを同じカードグリッドで整然と並べる（.band-cat / .cat-grid）
   ・旧レイアウトのCSS（.layout-stagger 等）はDOMごと無くなったので触っていない。
     v2-4へ戻すときはこのブロックを消して index.php を差し替えれば足りる
===================================================================== */

/* ---- 最上段のヘッダー（ヒーローから独立した .site-masthead） ----
   中身の .masthead-row はv2のものをそのまま使う（モバイルのロゴ中央寄せも継承）。
   下に全幅の写真が来るので区切り線は引かない（写真の上辺が境界になる） */
.front2 .site-masthead {
  background: var(--f2-warm);
}

/* ---- イメージヘッダー：全幅の1枚（LCP） ----
   高さは初代テンプレートの clamp(220px,40vw,580px) をそのまま踏襲 */
.front2 .f2-imgheader {
  width: 100%;
  overflow: hidden;
  background: #f2f2f0;
}

.front2 .f2-imgheader img {
  display: block;
  width: 100%;
  height: clamp(220px, 40vw, 580px);
  object-fit: cover;
  /* 人物や主体は中央よりやや上に来ることが多いので気持ち上寄せ */
  object-position: 50% 42%;
}

/* ---- スライド帯の見出し（旧マストヘッドの位置） ----
   ここは900px以下＝地の白に黒文字。PC（901px〜）では写真に白でのせる。
   ※上の罫線は引かない。直前の .hibi が既に border-bottom を持っていて、
     ここにも引くと1pxの線が2本並んで2pxに見える（SPで実際に踏んだ） */
.front2 .hero-band {
  padding-top: 64px;
}

.front2 .hero-label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--f2-ink);
}

.front2 .hero-label-ja {
  font-family: var(--f2-mincho);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--f2-ink);
}

.front2 .hero-label-en {
  font-family: var(--f2-en);
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--f2-muted);
}

/* ---- カテゴリー：全部おなじ顔で整然と並べる ---- */
.front2 .band-cat {
  background: var(--f2-warm);
  border-top: 1px solid var(--f2-border);
  padding: 78px 0 82px;
}

/* 見出し右のテキストリンク（.f2-section-more）は本人判断で廃止。
   出口はセクション末尾の枠ボタン1本だけ。CSSも2026-08-23に削除済み */
.front2 .cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 46px 30px;
}

/* おすすめ・note は3枚なので3列（4列に3枚だと右が抜ける） */
.front2 .cat-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* カードは高さいっぱいに伸ばし、日付を行の底に揃える。
   タイトルの行数（1〜3行）でバラバラだった日付の位置が1本に揃う＝「整然」の要 */
.front2 .cat-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.front2 .cat-card .f2-thumb {
  flex: none;
  aspect-ratio: 3 / 2;
  background: #f2f2f0;
}

.front2 .cat-card h3 {
  margin-top: 15px;
  font-family: var(--f2-mincho);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: .02em;
  /* 3行で切る＝カードの高さが揃って行が乱れない（整然の要） */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  min-width: 0;
}

/* ホバーは下線が左から引かれる（末尾のV4ブロックで定義）。
   以前はここで `opacity:.58` と濃度だけ落としていたが、
   トランジションが無くカクッと切り替わるうえ、線のほうが伝わる */

.front2 .cat-card .f2-date {
  /* autoで底へ。paddingが「タイトルとの最低距離」を保証する */
  margin-top: auto;
  padding-top: 9px;
}


/* =====================================================================
   V4：PC（768px〜）の全画面スライド帯
   v3実験（onimaga-2026v3e-fullscreen-hero）の機構をそのまま移植。
   仕組み：.hero-slides を position:absolute で .f2-wrap(1200px枠)から
   脱出させ、.hero-band(position:relative)基準で全面に敷く。
   **.hero-band .f2-wrap に position を与えてはいけない**
   （absoluteの基準が1200px枠に変わり全画面が壊れる）。
   z-index：スライド1＜スクリム2＜見出し/タブ3。
   sticky-bar(10000)・#nav(9999)より必ず下に保つこと。

   モバイル側の上書き（.hero-slides を grid に、.hero-panel を static に、
   .hero-tabs を非表示に）は max-width:767px のブロックに入っている。
   max-width:900px のブロックはヒーローに触れていないので、v3と同じ
   min-width:768px で衝突しない（確認済み）。
===================================================================== */
@media only screen and (min-width: 768px) {

  .front2 .hero-band {
    height: 100vh;
    /* svh非対応ブラウザは上のvhにフォールバック */
    height: 100svh;
    min-height: 640px;
    padding: 0;
    border-top: none;
  }

  .front2 .hero-band .f2-wrap {
    height: 100%;
    display: flex;
    flex-direction: column;
    /* 見出しを上端・タブを下端に振り分ける */
    justify-content: space-between;
  }

  .front2 .hero-slides {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    border-radius: 0;
    z-index: 1;
  }

  /* 文字用スクリム：上＝見出し、下＝タブの可読性確保 */
  .front2 .hero-band::before,
  .front2 .hero-band::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    z-index: 2;
    pointer-events: none;
  }

  .front2 .hero-band::before {
    top: 0;
    height: 170px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .42), rgba(0, 0, 0, 0));
  }

  .front2 .hero-band::after {
    bottom: 0;
    height: 170px;
    background: linear-gradient(0deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  }

  .front2 .hero-label,
  .front2 .hero-tabs {
    position: relative;
    z-index: 3;
  }

  /* ---- 見出し白仕様 ---- */
  .front2 .hero-label {
    margin: 0;
    padding: 40px 0 14px;
    border-bottom-color: rgba(255, 255, 255, .38);
  }

  .front2 .hero-label-ja {
    color: #fff;
  }

  .front2 .hero-label-en {
    color: rgba(255, 255, 255, .72);
  }

  /* ---- タイトルパネル ----
     v2-3で「すりガラス」から「紙が写真を食う白ノックアウト」に変わっているので、
     v3のようにコンテンツ左端に置くと宙に浮いた白カードになる（v2-3で却下済みの絵）。
     画面の左端にぴったり付けて、タブ帯の上に乗せる */
  .front2 .hero-panel {
    left: 0;
    bottom: 150px;
    max-width: min(460px, 44vw);
    padding: 22px 26px 20px 40px;
  }

  .front2 .hero-panel h2 {
    font-size: 22px;
  }

  /* ---- タブ白仕様（ヒーロー下端にオーバーレイ） ---- */
  .front2 .hero-tabs {
    margin: 0 0 28px;
  }

  .front2 .hero-tab {
    border-top-color: rgba(255, 255, 255, .35);
    /* タイトルが1行のタブと2行のタブで日付の高さが食い違うので、
       グリッドの行いっぱいに伸ばして日付を底に揃える */
    display: flex;
    flex-direction: column;
    height: 100%;
    /* 1fr は min-content 未満に縮まないので、nowrapの日付を持つタブが
       列幅を押し広げてタブ帯が右へはみ出す。min-width:0 で縮めて省略させる */
    min-width: 0;
  }

  .front2 .hero-tab::before {
    background: #fff;
  }

  .front2 .hero-tab .ht-title {
    color: rgba(255, 255, 255, .82);
    /* タブ帯の高さを安定させ、パネルのbottomとの衝突を防ぐ */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .front2 .hero-tab .ht-date {
    color: rgba(255, 255, 255, .55);
    margin-top: auto;
    padding-top: 6px;
    /* カテゴリー名が長いと2行になり、タブごとに帯の高さが食い違うので1行で切る */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .front2 .hero-tab:hover .ht-title,
  .front2 .hero-tab.on .ht-title {
    color: #fff;
  }
}


/* =====================================================================
   V4：カテゴリーグリッドのレスポンシブ
===================================================================== */
/* 768〜1024pxを3列にしていたが、PCは4枚出るので2行目に1枚だけ残って
   グリッドが欠ける。4列のまま通す（1枚あたりの幅の比率は1440pxとほぼ同じ：
   266/1440≒18.5% ／ 157/768≒20%）。
   ※ここに3列指定を戻すなら、同時に4枚目を畳む仕組みが要る */

@media only screen and (max-width: 767px) {

  .front2 .hero-band {
    padding-top: 44px;
  }

  .front2 .hero-label {
    margin-bottom: 20px;
  }

  .front2 .hero-label-ja {
    font-size: 20px;
  }

  .front2 .band-cat {
    padding: 56px 0 60px;
  }

  .front2 .cat-grid,
  .front2 .cat-grid--3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 16px;
  }

  .front2 .cat-card h3 {
    margin-top: 11px;
    font-size: 13.5px;
    line-height: 1.7;
  }

  /* モバイルは2列＝縦にカードを追う読み方になるので、日付は行の底ではなく
     タイトルの直後に置く。2列で行の底に揃えると、1行タイトルのカードだけ
     日付が大きく離れて「間違い」に見える（PCの4列では逆に揃えたほうが整う） */
  .front2 .cat-card .f2-date {
    margin-top: 0;
    padding-top: 6px;
    font-size: 12px;
  }

  .front2 .f2-header {
    margin-bottom: 28px;
    padding-bottom: 12px;
  }

}


/* =====================================================================
   V4：最上段ヘッダーを haera.parco.jp の型に（2026-08-21・本人指定）
   ロゴ左／メニューは器のど真ん中／右端に検索＋Instagram。
   実測した見本の値（1440px時）：帯90px・ロゴ121×39・メニュー14px/500/
   字間0.04em・リンク間37px・アイコン22px。ここもその数字に合わせている。

   ロゴだけ44px（見本は39px）。オニマガのロゴは筆記体＋「オニマガ」の
   2段組みなので、39pxだとカナが潰れて読めない。上段の見た目の重さが
   見本と釣り合う値として44pxにした。

   ※メニューの中央寄せは grid の `1fr auto 1fr`。両端の1frが必ず同幅に
     なるので、ロゴとアイコンの幅が変わってもメニューは器の中央に残る。
     flex + margin:auto ではロゴ幅ぶんズレる。
   ※このブロックは max-width:767px の既存モバイル指定より後ろにあるので
     後勝ちする。モバイルの中央ロゴは下のモバイルブロックで再指定している。
===================================================================== */
.front2 .masthead-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  /* ロゴ44px＋上下23px＝90px（見本の帯の高さ） */
  padding: 23px 0;
}

.front2 .logo-huge {
  justify-self: start;
}

.front2 .logo-huge img {
  height: 44px;
}

.front2 .mast-nav {
  justify-self: center;
  min-width: 0;
}

/* リンクの当たり判定は左右18px＝gap:37pxのほぼ半分。隣と当たり判定が
   ちょうど接する（.sb-menu 側も同値にしてある） */
.front2 .mast-menu li a {
  padding: 12px 18px;
  margin: -12px -18px;
}

.front2 .mast-menu {
  display: flex;
  justify-content: center;
  gap: 37px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  white-space: nowrap;
}

.front2 .mast-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
  /* 旧：text-align:right / margin-left:auto（flex時代の名残）を打ち消す */
  margin-left: 0;
  text-align: left;
}

/* 検索・Instagram 共通。色は変えず濃度だけでホバーを示す */
.front2 .mast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--f2-ink);
  transition: opacity .2s ease;
}

.front2 .mast-icon:hover {
  opacity: .5;
}

.front2 .mast-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

/* ---- 固定バー／サブページヘッダーにも同じ2つを並べる ----
   スクロールで降りてくるバーが最上段と同じ顔である、という設計を保つため */
.sb-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sb-ig-link {
  display: flex;
  align-items: center;
  color: var(--f2-ink);
  padding: 4px;
  line-height: 1;
  transition: opacity .2s ease;
}

.sb-ig-link:hover {
  opacity: .5;
}

@media only screen and (max-width: 900px) {

  /* 720pxの器にロゴ＋6項目＋アイコン2つを収める */
  .front2 .masthead-row {
    gap: 16px;
  }

  .front2 .mast-menu {
    gap: 22px;
    font-size: 13px;
  }
}

@media only screen and (max-width: 767px) {

  /* モバイルはロゴだけの帯に戻す（メニューと検索はハンバーガーの中）。
     旧実装は `display:block` の <a> が親幅いっぱいに広がる前提で
     text-align:center に頼っていたが、それだと確実に中央に来ない。
     1列グリッド＋justify-items:center なら箱の幅に関係なく必ず中央 */
  .front2 .masthead-row {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
  }

  .front2 .logo-huge {
    justify-self: center;
    padding: 9px 0;
  }

  .front2 .logo-huge img {
    height: 40px;
  }

  .front2 .mast-nav,
  .front2 .mast-right {
    display: none;
  }

  /* 固定バー／サブヘッダーの検索ボタンは既存指定で左端に絶対配置される。
     Instagramは並べる場所が無いのでモバイルでは出さない（SNSはナビの中） */
  .sb-ig-link {
    display: none;
  }
}

/* ---- ヘッダーの帯だけ1200px枠から外す（見本と同じ「左右端に張り付く」形） ----
   見本はロゴが画面左端から34px、右のアイコン群は右端まで。1200px枠のままだと
   1440px以上で「右端に検索アイコン」にならないため、ヘッダー3種（最上段・
   スクロールで降りる固定バー・サブページの静的ヘッダー）だけ枠を外す。
   3つとも同じ余白にしてあるので、固定バーが降りてきてもロゴは横に飛ばない。
   記事・カードなどの中身は従来どおり1200pxグリッドのまま。 */
.front2 .site-masthead > .f2-wrap,
.sticky-bar > .f2-wrap,
.sub-head > .f2-wrap {
  max-width: none;
  padding: 0 40px;
}

@media only screen and (max-width: 767px) {

  /* モバイルは元の24px（固定バーの検索ボタンが left:24px 前提で置かれている） */
  .front2 .site-masthead > .f2-wrap,
  .sticky-bar > .f2-wrap,
  .sub-head > .f2-wrap {
    padding: 0 24px;
  }
}

/* ---- 固定バー／サブページヘッダーもメニューを中央に ----
   最上段が中央寄せなのに、スクロールで降りてくるバーだけ右寄せだと
   メニューが右へ飛んで見える。最上段と同じ `1fr auto 1fr` にして位置を揃える。
   （高さ・ロゴ・文字組みも下のブロックで最上段と同値に揃えてある） */
.sticky-bar > .f2-wrap,
.sub-head > .f2-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
}

.sticky-bar .logo-small,
.sub-head .logo-small {
  justify-self: start;
}

.sticky-bar .sb-menu,
.sub-head .sb-menu {
  justify-self: center;
  /* 旧flex時代に検索ボタンとの間隔用で入っていた margin-right:22px が
     残っていると、列は左右対称なのにメニューだけ11pxぶん左にズレる */
  margin: 0;
}

.sticky-bar .sb-actions,
.sub-head .sb-actions {
  justify-self: end;
}

@media only screen and (max-width: 767px) {

  /* モバイルはロゴ中央＋検索を左端に絶対配置する既存の形に戻す。
     gap:0 を忘れないこと——PC用に付けた gap:24px が残ると、幅0の
     .sb-actions との間に24pxが入って**ロゴが12px左にズレる**（実測） */
  .sticky-bar > .f2-wrap,
  .sub-head > .f2-wrap {
    display: flex;
    justify-content: center;
    gap: 0;
  }
}


/* =====================================================================
   V4：ファーストビューの高さ ＆ モバイルの固定ヘッダー（2026-08-21・本人指定）
===================================================================== */

/* ---- PC：ヘッダー＋イメージヘッダー＋お知らせで、ちょうど1画面 ----
   写真だけを flex:1 で伸ばすので、お知らせの帯が出る日も出ない日も
   「帯の下端＝画面の下端」に揃う。写真の高さを計算で出す必要がない。
   3px は .topborder（ページ最上端の黒罫）のぶん。片方を変えたら両方見ること。
   ※vh系はモバイルだとURLバーの開閉で高さが揺れる（[[onimaga2026v2-4-mobile-hero]]）。
     ここは 768px以上＝バーが伸縮しない環境に限っているので使ってよい。 */
@media only screen and (min-width: 768px) {

  .front2 .top-screen {
    display: flex;
    flex-direction: column;
    /* svh非対応ブラウザは上のvhにフォールバック */
    min-height: calc(100vh - 3px);
    min-height: calc(100svh - 3px);
  }

  .front2 .top-screen .f2-imgheader {
    flex: 1;
    /* これが無いと中身の最小サイズで踏ん張って縮まない */
    min-height: 0;
    position: relative;
  }

  /* 箱の余りぶんをそのまま写真の高さにする。
     img に height:100% だけだと効かない——親の height は auto（高さは
     flex が決めている）なので % の基準が無く、img の width/height 属性
     由来の縦横比（1920/739）で高さが決まってしまう。絶対配置なら
     箱の実寸にそのまま貼り付くので確実。 */
  .front2 .top-screen .f2-imgheader img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

@media only screen and (max-width: 767px) {

  /* ---- モバイル：イメージヘッダーは「正方形に見える」比率に切る ----
     高さは幅基準（aspect-ratio）で出す。vh系だとChromeのURLバー開閉で
     スクロール中に写真が伸び縮みして見える。

     **9:8 であって 1:1 ではない**。人間の目は同じ長さでも縦を長く感じる
     （垂直・水平錯視）ので、幾何学的な正方形はやや縦長に見える。横を
     12.5%長くして、見た目が正方形になるところに合わせた（本人が実物を
     見比べて決定）。元画像が1920×739＝約2.6:1のパノラマなので、
     正方形だと横幅の38.5%しか残らないところが43%残る利点もある。 */
  .front2 .f2-imgheader img {
    height: auto;
    aspect-ratio: 9 / 8;
  }

  /* ---- モバイル：バーを最初から出しっぱなしにする ----
     「一旦消えてから降りてくる」演出をやめ、検索アイコン付きのバーが
     最初から画面上端に居る状態にする（本人指定）。
     transform を殺すので .visible が付いても付かなくても位置は同じ。
     position は fixed ではなく sticky にする。ページ最上部にあるので
     読み込み直後から貼り付いた状態＝見た目は固定だが、flow の中で
     自分の高さぶんの場所を持つため body に余白を足さなくて済む。 */
  .sticky-bar {
    position: sticky;
    transform: none;
    transition: none;
  }

  /* 同じロゴが2段になるので、ページ内に置いてある静的ヘッダーは出さない。
     モバイルのヘッダーは固定バー1枚に統一する（トップもサブページも） */
  .front2 .site-masthead,
  .sub-head {
    display: none;
  }
}


/* =====================================================================
   V4：固定バー／サブページヘッダーを最上段と完全に同じ顔に（2026-08-21・本人指定）
   帯90px・ロゴ44px・メニュー14px/500/字間0.04em/間隔37px・アイコン22px。
   最上段（.masthead-row）と1つずつ同値にしてある。片方を変えたら両方変えること。

   ・上端の3px黒罫と下端の1px罫は残す。前者は .topborder を引き継ぐ線、
     後者は浮いたバーと本文の境界で、どちらも最上段には要らない役。
   ・ロゴが上から降りてくる演出（translateY）はデザインではなく動きなので触らない。
   ・min-width:768px に閉じてある。モバイルは58pxの帯＋メニュー非表示の別物。
===================================================================== */
@media only screen and (min-width: 768px) {

  .sticky-bar > .f2-wrap,
  .sub-head > .f2-wrap {
    height: 90px;
  }

  .sticky-bar .logo-small img,
  .sub-head .logo-small img {
    height: 44px;
  }

  /* 旧「ヘッダーロゴを記事ブロックの左端に揃える」36pxインデントを解除。
     あれはヘッダーが1200px枠だった頃、記事枠(1080)との差を埋める値だった。
     V4でヘッダーの帯は枠を外して左右40pxにしたので前提ごと無くなっている。
     残すとトップの最上段ロゴ(x=40)と横位置が食い違い、768pxでは
     ロゴが自分の列からはみ出してメニューに当たる。
     元ルールが body:not(.home) 付きで詳細度が高いので、こちらも同じ形にする */
  body:not(.home) .sticky-bar .logo-small img,
  body:not(.home) .sub-head .logo-small img {
    margin-left: 0;
  }

  .sb-menu {
    gap: 37px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .04em;
  }

  .sb-menu li a {
    padding: 12px 18px;
    margin: -12px -18px;
  }

  .sb-actions {
    gap: 18px;
  }

  /* svgのwidth/height属性が18なのでCSS側で22に上書きする */
  .sb-search-btn,
  .sb-ig-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
  }

  .sb-actions svg {
    display: block;
    width: 22px;
    height: 22px;
  }
}


/* =====================================================================
   V4：SPのロゴだけ視覚補正で右にずらす（2026-08-21・本人指定）
   数値上の中央より少し右のほうが中央に見える、という本人の見え方に合わせる。
   （ロゴの筆記体は左側の払いが長いぶん左に重心があるので、数値中央だと
     左に寄って見える）

   **5px は「見た目で決まった値」。計算で出た値ではない。**
   25px → 13px → 5px と本人が実物を見ながら詰めて落ち着いた値。
   触るときは計算せず、実機で見て決めること。

   .visible の有無でJSがクラスを付け外しするので、両方に同じ値を書いて
   スクロールでロゴが横に飛ばないようにしている。
===================================================================== */
@media only screen and (max-width: 767px) {

  .sticky-bar .logo-small,
  .sticky-bar.visible .logo-small {
    transform: translateX(5px);
  }
}

/* 768〜900px：最上段と同じ詰め方をバー側にも適用する。
   これが無いと768pxでロゴが自分の列からはみ出してメニューに当たる（実測） */
@media only screen and (min-width: 768px) and (max-width: 900px) {

  .sticky-bar > .f2-wrap,
  .sub-head > .f2-wrap {
    gap: 16px;
  }

  .sb-menu {
    gap: 22px;
    font-size: 13px;
  }

  .sb-menu li a {
    padding: 12px 11px;
    margin: -12px -11px;
  }
}


/* =====================================================================
   V4：カテゴリー帯のトーン（2026-08-21・本人指定）
   白 → グレー → 濃いグレー を順に振って、面の明るさだけでブロックを分ける。
   色相ではなく明度で切り替えているので、色の差が見えにくくても区切りが分かる
   （[[user-color-vision]]）。

   順序とトーン：
     暮らし 白／写真 グレー／おすすめ 濃／コーヒー 白／考えごと グレー／
     名古屋 白／note グレー／検索ボックス 白／フッター 濃
   隣り合う帯が同じトーンにならない並びなので、帯どうしの区切り線は不要。
   （.band-cat の border-top はここで外している）
===================================================================== */
:root {
  /* 白との差は約6%。これ以上薄いと帯として見えず、濃いと紙が濁る */
  --f2-tone-gray: #efeeeb;
  /* フッター(#footer)と同値。おすすめ帯とフッターが同じトーンで揃う */
  --f2-tone-dark: #1c1c1a;
}

.front2 .band-cat {
  border-top: none;
}

.front2 .band-tone-white {
  background: #fff;
}

.front2 .band-tone-gray {
  background: var(--f2-tone-gray);
}

.front2 .band-tone-dark {
  background: var(--f2-tone-dark);
  color: #edece9;
}

/* ---- 濃いグレー帯：文字と罫を反転する ---- */
.front2 .band-tone-dark .f2-header {
  border-bottom-color: rgba(255, 255, 255, .38);
}

.front2 .band-tone-dark .f2-title {
  color: #f4f3f1;
}

.front2 .band-tone-dark .f2-title small {
  color: rgba(255, 255, 255, .58);
}


.front2 .band-tone-dark .cat-card h3 {
  color: #f4f3f1;
}

.front2 .band-tone-dark .f2-date {
  color: rgba(255, 255, 255, .52);
}

/* 画像読み込み前のプレースホルダも地に合わせる（白い箱が光らないように） */
.front2 .band-tone-dark .cat-card .f2-thumb {
  background: #2a2a27;
}

/* 検索ボックスは白。トップでは上のnote（グレー）から白へ変わるので区切り線は
   要らないが、サブページは上が白のままなので罫線が無いと切れ目が消える。
   線を外すのはトップだけにする */
.pre-footer-search {
  background: #fff;
}

body.home .pre-footer-search {
  border-top: none;
}

/* ---- SP専用のカード：PCでは出さない ----
   カテゴリーはPC4枚／SP5枚、おすすめはPC3枚／SP4枚。
   枚数の差ぶんに .cat-card--sp-only を付けてPC側で畳む */
@media only screen and (min-width: 768px) {

  .front2 .cat-card--sp-only {
    display: none;
  }
}


/* =====================================================================
   V4：SPのカテゴリーは「1枚目が大きく、2〜5枚目が2列」（2026-08-21・本人指定）
   1枚目だけ2列ぶんをまたがせる。写真の縦横比は他と同じ3:2のままなので、
   幅が倍になったぶんそのまま大きくなる。
   おすすめ・note（.cat-grid--3）は2列×2行のままにする＝1枚目を大きくしない。
===================================================================== */
@media only screen and (max-width: 767px) {

  .front2 .cat-grid > .cat-card:first-child {
    grid-column: 1 / -1;
  }

  .front2 .cat-grid > .cat-card:first-child h3 {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.7;
  }

  .front2 .cat-grid > .cat-card:first-child .f2-date {
    font-size: 13px;
  }

  .front2 .cat-grid--3 > .cat-card:first-child {
    grid-column: auto;
  }

  .front2 .cat-grid--3 > .cat-card:first-child h3 {
    margin-top: 11px;
    font-size: 13.5px;
    line-height: 1.7;
  }

  .front2 .cat-grid--3 > .cat-card:first-child .f2-date {
    font-size: 12px;
  }
}


/* =====================================================================
   V4：SPの「新着記事」見出し（2026-08-21・本人指定）
   中央揃え・下線なし・2段組み。日記ブロックの下の罫線とスライダー写真の
   上端のあいだに、縦も横も中央で置く。
   上下の余白を同値にするだけで縦中央になるので、.hero-band の padding-top は
   0にして、余白は見出し自身の padding で持たせている。
===================================================================== */
@media only screen and (max-width: 767px) {

  .front2 .hero-band {
    padding-top: 0;
  }

  .front2 .hero-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 30px 0;
    border-bottom: none;
    text-align: center;
  }
}


/* =====================================================================
   V4：メニューに「メニューらしさ」を足す（2026-08-21・本人指定）
   ・ホバーで下線がすっと引かれる（色の変化だけだと分かりにくいため主役は線）
   ・項目の頭に小さい丸。文字が延々続いて見えるのを切る

   下線も丸も <li> に付ける。<li> の幅は
   `a { padding:12px 18px; margin:-12px -18px }` の打ち消しでちょうど文字幅に
   なるので、下線が文字の幅とぴったり揃う（<a> に付けると当たり判定ぶん伸びる）。
   丸は position:absolute なので、付けても項目の幅は1pxも増えない
   ＝768pxでの詰まり具合に影響しない。

   最上段・固定バー・サブページヘッダーの3種とも同じにしてある。
===================================================================== */
.front2 .mast-menu li,
.sb-menu li {
  position: relative;
}

/* 項目と項目の“あいだ”に置く区切りの丸（暮らし ・ 写真 ・ …）。
   `li + li` なので先頭には付かない＝メニューの左端が丸で始まらない。
   left は「隙間の中央 − 丸の半径」。gap:37px なら 37/2 + 1.5 = 20px。
   色は文字より一段落とした灰。主役は文字で、丸はあくまで区切り記号 */
.front2 .mast-menu li + li::before,
.sb-menu li + li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  width: 3px;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 50%;
  background: #c6c5c1;
}

/* ホバーの下線。左から右へ引かれる */
.front2 .mast-menu li::after,
.sb-menu li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s ease;
}

.front2 .mast-menu li:hover::after,
.sb-menu li:hover::after {
  transform: scaleX(1);
}

@media only screen and (min-width: 768px) and (max-width: 900px) {

  /* 項目の間隔が22pxに詰まるので、丸も隙間の中央（22/2 + 1.5）へ寄せる */
  .front2 .mast-menu li + li::before,
  .sb-menu li + li::before {
    left: -12.5px;
  }
}


/* =====================================================================
   V4：カテゴリーカードのタイトルはゴシック（2026-08-21・本人指定）
   見出し（.f2-title）は明朝のまま。一覧の記事名だけゴシックにして、
   小さい字でも潰れず拾い読みしやすくする。
===================================================================== */
.front2 .cat-card h3 {
  font-family: var(--font-sans);
}


/* =====================================================================
   V4：カテゴリーページのタグ（2026-08-21・本人指定）
   流れるマーキーをやめ、記事タイトル上のカテゴリ表示（.s2-cat-tag）と
   同じ「四角い枠のチップ」を中央揃えで並べる。
   記事下（single）のマーキーは従来のまま＝ここはカテゴリページ専用。
===================================================================== */
.cat-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 80px 0 0;
}

.cat-tag-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .18em;
  color: var(--f2-accent);
  border: 1px solid currentColor;
  padding: 7px 10px 6px 12px;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.cat-tag-chip:hover {
  background: var(--f2-accent);
  color: #fff;
}

@media only screen and (max-width: 767px) {

  .cat-tags {
    margin-top: 80px;
    gap: 8px;
  }

  /* 子カテゴリのピル：上の説明文と詰まって見えるので離す */
  .cat-children {
    margin-top: 30px;
  }
}

/* ---- 子カテゴリのピルも、最下部のタグと同じ四角い枠のチップで中央揃え ----
   同じ「絞り込みの手がかり」なので、ページ内で2種類の見た目を作らない。
   .cat-children 側の左寄せ（旧：見出し＋ピルの横並び）も中央に振り直す */
.cat-children {
  justify-content: center;
}

.cat-children-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.cat-child-pill {
  font-family: var(--font-base, sans-serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .18em;
  color: var(--f2-accent);
  border: 1px solid currentColor;
  padding: 7px 10px 6px 12px;
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.cat-child-pill:hover {
  background: var(--f2-accent);
  border-color: var(--f2-accent);
  color: #fff;
}

/* カテゴリー説明文もゴシック（一覧のカードタイトルと揃える。
   明朝は見出し＝.cat-hero-title 側に残す） */
.cat-hero-desc {
  font-family: var(--font-sans);
}


/* =====================================================================
   V4：PCの単調さ対策（2026-08-21・本人指定）

   実測：PCは帯1本が平均558px＝**0.62画面ごとに面が変わる**（SPは1.06画面ごと）。
   さらにSPは「1枚大＋小4」で中身にも変化があるのに、PCはどの帯も4列均等で
   まったく同じ。面の変化は「ここから別のものが始まる」という予告なのに、
   中身が毎回同じでその約束が裏切られる＝これがチカチカの正体。
   → 背景を減らすのではなく、**面が変わるところで中身も変える**方向で直す。

   型は2つだけに留める（以前やめた「セクションごとに全部違う」に戻さない）：
     白の帯（暮らし・コーヒー・名古屋）＝4列均等＝基準
     グレーの帯（写真・考えごと）＝1枚大＋小3
     濃い帯（おすすめ）＝3列・見出し中央＝特別枠
===================================================================== */
/* 変則グリッドは1025px以上だけ。768pxで5列にすると小カードが120pxまで痩せて
   タイトルが1行7文字になる（実測）。タブレット幅は全帯とも4列で通す＝
   その幅では面の変化だけが残るが、対象が狭いので割り切る */
@media only screen and (min-width: 1025px) {

  /* ---- 記事数が多いカテゴリー：左に大1枚＋右に小4枚（2×2）----
     `.cat-grid--split` を付けた帯だけ。どのカテゴリーに付けるかは
     index.php 側の 'feature' => true で決める＝**面のトーンとは独立**。
     トーンは白/グレー/濃でリズムを作る役、この形は「記事が多くて
     見せ場になるカテゴリー」に割り当てる役、と担当を分けている。
     いまは 暮らし と 名古屋 に付けている。

     組み方：4列グリッドで1枚目を「2列 × 2行」取る。残り4枚が右の2×2を埋める。 */
  .front2 .cat-grid--split.cat-grid--n5 {
    grid-template-columns: repeat(4, 1fr);
  }

  .front2 .cat-grid--split.cat-grid--n5 > .cat-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  /* 5枚目はPCでは畳んでいる（.cat-card--sp-only）が、この形だけは出す */
  .front2 .cat-grid--split.cat-grid--n5 > .cat-card--sp-only {
    display: list-item;
  }

  /* 大きいカードの写真は3:2をやめ、2行ぶんの高さいっぱいに伸ばす。
     img の height:100% は効かない——親の高さは flex が決めていて
     computed の height は auto なので % の基準が無い。絶対配置で貼る */
  .front2 .cat-grid--split.cat-grid--n5 > .cat-card:first-child .f2-thumb {
    position: relative;
    flex: 1;
    min-height: 0;
    aspect-ratio: auto;
  }

  .front2 .cat-grid--split.cat-grid--n5 > .cat-card:first-child .f2-thumb img {
    position: absolute;
    inset: 0;
  }

  /* ---- 5枚そろわないときの代替：1行の「2:1:1:1」----
     5枚前提の組みをそのまま当てるとマスが1つ欠けるため、
     PHP側で5枚そろったときだけ .cat-grid--n5 を付けている */
  .front2 .cat-grid--split:not(.cat-grid--n5) {
    grid-template-columns: repeat(5, 1fr);
    /* 大小が混ざる1行なので、カードを行の高さまで伸ばさない */
    align-items: start;
  }

  .front2 .cat-grid--split:not(.cat-grid--n5) > .cat-card:first-child {
    grid-column: span 2;
  }

  /* この形のときだけ日付をタイトル直後に戻す
     （高さがバラバラなので底に揃えると小さいカードの日付だけ大きく離れる） */
  .front2 .cat-grid--split:not(.cat-grid--n5) .cat-card .f2-date {
    margin-top: 0;
  }

  /* 大きいカードのタイトルは一段大きく（どちらの形でも共通） */
  .front2 .cat-grid--split > .cat-card:first-child h3 {
    font-size: 17px;
    line-height: 1.7;
  }
}

/* ---- 濃い帯（おすすめ）＝見出しを中央に2段組み ----
   SPの「新着記事」と同じ組み方。面・見出しの位置・列数の3つが同時に違うので、
   ここだけ「記事一覧ではなく編集の推し」だと一目で分かる＝ページの中休みになる */
.front2 .band-cat--centered .f2-header {
  justify-content: center;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 46px;
}

.front2 .band-cat--centered .f2-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.front2 .band-cat--centered .f2-title small {
  margin-left: 0;
}


/* =====================================================================
   V4：セクション見出しは英字がメイン・日本語がサブ（2026-08-21・本人指定）
   `Nagoya ぼくの名古屋案内` の組み方。英字は Cormorant Garamond の
   大きめ・細めで、日本語は明朝の小さめ。大文字化はしない（Nagoya のまま）。

   「新着記事」の見出し（.hero-label）も同じ組み方に揃えている。
   おすすめ帯の中央見出しは .band-cat--centered が縦積みにするだけなので、
   ここを直せば自動的に `Editor's Pick / おすすめ記事` の2段になる。
===================================================================== */
.front2 .f2-title {
  font-family: var(--f2-en);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: .06em;
}

.front2 .f2-title small {
  font-family: var(--f2-mincho);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: none;
  margin-left: 16px;
  color: var(--f2-muted);
}

/* ---- 「新着記事」見出しも英字メインに ---- */
.front2 .hero-label-en {
  font-family: var(--f2-en);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: none;
  color: var(--f2-ink);
}

.front2 .hero-label-ja {
  font-family: var(--f2-mincho);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--f2-muted);
}

@media only screen and (min-width: 768px) {

  /* 写真の上に白でのせる側も、主従が入れ替わったので色を振り直す */
  .front2 .hero-label-en {
    color: #fff;
  }

  .front2 .hero-label-ja {
    color: rgba(255, 255, 255, .72);
  }
}

/* モバイルも同じ40px（本人指定）。以前は25pxに落としていた */


/* =====================================================================
   V4：カテゴリーへの導線は記事の並びの下へ（2026-08-21・本人指定）
   見出しの右のテキストリンクは見逃されて押されないため、枠ボタンに戻して
   セクションの末尾に置く。日記セクションの2つと同じ .f2-more-btn。
   （旧 .f2-section-more のCSSは未使用になったが、戻せるよう残してある）

   note にはボタンを付けない＝記事だけに誘導する（本人指定）。
===================================================================== */
.front2 .band-cat .more-btn-wrap {
  margin-top: 52px;
}

/* ---- SPのnoteだけ「大1枚＋小2枚」（2026-08-21・本人指定）----
   .cat-grid--3 は1枚目を大きくしない指定（おすすめの2列×2行を守るため）だが、
   noteは3枚なので2列だと2段目に1枚だけ残る。1枚目を全幅にして
   「大1＋小2」に組み替える。おすすめ側は4枚なので今のままでよい */
@media only screen and (max-width: 767px) {

  .front2 .band-note .cat-grid--3 > .cat-card:first-child {
    grid-column: 1 / -1;
  }

  .front2 .band-note .cat-grid--3 > .cat-card:first-child h3 {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.7;
  }
}

/* ---- SPのスライダー下に余白を足す（2026-08-21・本人指定）----
   32px → 72px。ドットが写真の下18pxにぶら下がっているので、
   32pxのままだと次のセクションとの間がドットぶんしか空いていない。
   ※PCは .hero-band が100svhで、スライドが inset:0 で全面を覆っている。
     padding を足しても写真が伸びるだけで隙間はできない（別対応が要る） */
@media only screen and (max-width: 767px) {

  .front2 .hero-band {
    padding-bottom: 72px;
  }
}

/* ---- SPナビ内「連載・シリーズ」の上の罫を1本に（2026-08-21）----
   直前のメニュー項目（.nav-menu > li）が既に border-bottom を持っていて、
   .sp-nav-rensai の border-top と隣り合って2pxに見えていた。
   li 側は項目どうしの区切りとして必要なので、こちらを外す
   （連載が無い日はこのブロック自体が出ないため、li側を消すとリストの
     いちばん下の線が消えてしまう） */
@media only screen and (max-width: 767px) {

  .sp-nav-rensai {
    border-top: none;
  }
}


/* =====================================================================
   V4：SPのセクション見出しは全部「New」と同じ組みに（2026-08-21・本人指定）
   中央揃え・2段組み・罫なし。＝ .band-cat--centered と .hero-label の組み方。

   SPで罫を引かない理由：白／グレー／濃の面が交互に変わるので区切りは面が
   担っており、線は二重の説明になる。PCは版面が広く、罫が見出しと下のグリッドを
   結びつける役をしているので**左寄せ＋罫のまま**（＝ここはSP限定）。
===================================================================== */
@media only screen and (max-width: 767px) {

  .front2 .band-cat .f2-header {
    justify-content: center;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 32px;
  }

  .front2 .band-cat .f2-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
  }

  .front2 .band-cat .f2-title small {
    margin-left: 0;
  }
}

/* ---- 見出しの行送りを .f2-title と .hero-label で揃える（2026-08-21）----
   .hero-label 側は .front2 の line-height:1.7 を継いでいて、40pxの文字が
   70pxの行箱になっていた（.f2-title は52px）。同じ gap:6px でも
   「New／新着記事」の隙間だけ20px、他の見出しは7pxと食い違う。
   両方に同じ行送りを明示して揃える */
.front2 .f2-title,
.front2 .hero-label-en {
  line-height: 1.3;
}

.front2 .f2-title small,
.front2 .hero-label-ja {
  line-height: 1;
}

/* ---- SP：見出しの上下の余白を均等に（2026-08-21・本人指定）----
   帯の上余白56pxに対して見出し下が32pxで、上のほうが空いて見えていた。
   下に20px足して52px＝ほぼ同値にする */
@media only screen and (max-width: 767px) {

  .front2 .band-cat .f2-header {
    margin-bottom: 52px;
  }
}

/* ---- SPの細かい余白調整（2026-08-21・本人指定）---- */
@media only screen and (max-width: 767px) {

  /* 「New」見出しと写真のあいだを15px広げる（上31px／下30px → 下45px）。
     ここは意図的に上下非対称。写真という重い面が下にくるぶん、
     下を空けたほうが見出しが写真に押されずに立つ */
  .front2 .hero-label {
    padding-bottom: 45px;
  }

  /* 記事ページ：タイトル下と本文のあいだを20px詰める（38px → 18px） */
  .s2-head {
    margin-bottom: 18px;
  }
}


/* =====================================================================
   V4：記事本文の番号付きリスト、桁が増えても番号がはみ出さないように
   （2026-08-21・本人指摘）

   仕組みの話：`list-style-position` の既定 `outside` は、番号を項目の外側に
   **右揃え**で置く。だから桁が増えると番号は左へ伸びる——これは番号付き
   リストとして正しい組み方（番号の右端と本文の左端が揃う）。
   問題は置き場所の広さで、旧指定は `ol{padding-left:0}` ＋ `li{margin-left:15px}`
   の**15pxしかなかった**。「10.」で約22px、「100.」で約30px要るので、
   足りないぶんが <ol> の枠の外へ出て本文より左に飛び出していた。

   なので幅を渡すだけでよい。カウンターや ::before に置き換えると、
   `start` 属性・`type` 属性・`reversed`・入れ子の番号が全部効かなくなるので
   **やらないこと**。ここは素の marker のままにしてある。
===================================================================== */
.single-contents ol,
.page-contents ol {
  margin-left: 0;
  /* 2桁（99まで）が収まる幅。1桁だけのリストでも同じ位置から始まるので、
     記事内に短いリストと長いリストが混ざっても本文の左端が動かない */
  padding-left: 2.4em;
}

.single-contents ol > li,
.page-contents ol > li {
  /* 旧 li{margin-left:15px} を打ち消す。字下げは ol の padding が担当 */
  margin-left: 0;
}

/* 3桁に届くリストだけ番号の欄を広げる。:has() で項目数を見ているので、
   書き手が何もしなくても100件超のリストで自動的に広がる */
.single-contents ol:has(> li:nth-child(100)),
.page-contents ol:has(> li:nth-child(100)) {
  padding-left: 3.3em;
}

/* 数字の字幅を揃えて番号を1列に見せる（1と8で幅が違うと縦のラインが揺れる） */
.single-contents ol > li::marker,
.page-contents ol > li::marker {
  font-variant-numeric: tabular-nums;
}

/* SPは横paddingを詰める。56pxのままだと文字の入る幅が342-112=230pxしか
   残らず、カテゴリー名が長い記事で関連記事のボタンだけ2行になる */
@media only screen and (max-width: 767px) {

  .front2 .f2-more-btn,
  .rensai-more .f2-more-btn,
  .related-cat-link,
  .load-more-btn {
    padding: 13px 24px;
  }
}

/* ---- 関連記事のボタン：矢印だけ2行目に取り残されないように（2026-08-21・本人指定）----
   このボタンだけカテゴリー名が前に付くので、長い名前だとSPで2行になる。
   そのとき「→」だけが2行目に落ちて孤立していた。
   末尾の定型句「をもっと見る」と矢印を nowrap のひとかたまりにして、
   折り返しが「カテゴリー名 ／ をもっと見る →」の位置で起きるようにする。
   矢印は要素の ::after から .btn-tail の ::after へ引っ越す（要素側は消す）。 */
.related-cat-link .btn-tail {
  white-space: nowrap;
}

.related-cat-link::after {
  display: none;
}

.related-cat-link .btn-tail::after {
  content: "\2192";
  display: inline-block;
  margin-left: 10px;
  transition: transform .25s ease;
}

.related-cat-link:hover .btn-tail::after {
  transform: translateX(6px);
}

/* ---- SPの記事下noteも「1枚目だけ大・残り2枚は2列」に（2026-08-21・本人指定）----
   トップのnote帯（.band-note .cat-grid--3）と同じ組み方に揃える。
   3枚を2列に流すと2行目に1枚だけ残るので、1枚目を全幅にして解消する。
   PCは元から3列で、トップと同じなので触らない。 */
@media only screen and (max-width: 767px) {

  .note-grid > .note-card:first-child {
    grid-column: 1 / -1;
  }

  .note-grid > .note-card:first-child .post-card-title {
    /* トップの大カードと同値 */
    font-size: 16px;
    line-height: 1.7;
  }
}


/* =====================================================================
   V4：サイドバーの日記ブロックを組み直し（2026-08-21・本人指定）
   「今日の日付ドン」を廃止し、最新1本のカード＋バックナンバー6本にした。
   旧 .side-hibi-day / .side-hibi-date のCSSは使われなくなったが、
   戻せるよう残してある（HTML側だけ消してある）。
   一覧の見た目は下の連載ミニ棚（.side-rensai-list）と同じ文法。
===================================================================== */
.side-hibi {
  /* 日付ドンを中央に置くための text-align:center をやめ、連載棚と同じ左揃えに */
  text-align: left;
  padding: 22px 20px 18px;
}

/* 見出しはカードの中から出したので、カード側の余白を持たせる */
.sidebar .side-hibi-label {
  margin: 0 0 14px;
}

.side-hibi-card {
  /* 見出しが上に出た＝カード上の罫線は不要 */
  border-top: none;
  padding-top: 0;
}

/* ---- バックナンバー一覧（連載ミニ棚と同じ組み） ---- */
.side-hibi-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--color-border);
}

/* border:noneは旧テーマのサイドバーli点線対策・marginは旧li 15px対策 */
.side-hibi-list li {
  margin: 0;
  padding: 0;
  border: none;
  border-bottom: 1px solid var(--color-border);
}

.side-hibi-list li:last-child {
  border-bottom: none;
}

.side-hibi-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 2px;
  text-decoration: none;
  color: inherit;
  transition: opacity .2s;
}

.side-hibi-list a:hover {
  opacity: .7;
}

.sidebar .side-hibi-list-title {
  font-size: 12.5px;
  line-height: 1.6;
  /* 長いタイトルは2行で切る。1本だけ背が高くなって一覧のリズムが崩れるため */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-hibi-list-date {
  flex-shrink: 0;
  font-family: var(--f2-en);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--color-muted);
  white-space: nowrap;
}

.side-hibi-more {
  display: block;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--f2-accent);
  text-decoration: none;
  text-align: right;
  transition: opacity .2s;
}

.side-hibi-more:hover {
  opacity: .7;
}

/* カードが無いとき（＝最新の日記を読んでいるとき）は、見出しの直後に一覧が来る。
   その場合の上の罫と余白は見出しと二重になるので外す */
.side-hibi-label + .side-hibi-list {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}


/* =====================================================================
   V4：サイドバーの箱の見出しを揃えて、大きく2段組みに（2026-08-21・本人指定）
   日記（素晴らしい日々 LATEST）と連載（連載 SERIES）で組みが違っていたのを統一。
   日本語をデカ文字で1段目、英字を小さく2段目、どちらも中央揃え。

   寸法の根拠：箱は幅300px・左右padding20px＝内側260px。
   「素晴らしい日々」7文字を 24px・字間0.2em で組むと
   7×24 + 7×4.8 ＝ 約202px。左右に約29pxずつ残って窮屈にならない。

   **`text-indent` は字間の打ち消し**。letter-spacing は最後の1文字の後ろにも
   空きを作るので、中央揃えだと文字列が字間の半分ぶん左にズレる。
   同値の text-indent を入れて視覚的な中心を合わせている。

   font-family の !important はサイドバー一括ゴシック強制（aside.content-side *）対策。
===================================================================== */
.sidebar .side-hibi-label,
.sidebar .side-rensai-label {
  display: block;
  text-align: center;
  font-family: var(--font-serif-ja) !important;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .2em;
  text-indent: .2em;
  line-height: 1.35;
  color: var(--f2-ink);
  padding: 0;
  margin: 6px 0 22px;
}

.sidebar .side-hibi-label small,
.sidebar .side-rensai-label small {
  display: block;
  margin: 14px 0 0 0;
  font-family: var(--f2-en) !important;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .25em;
  text-indent: .25em;
  color: var(--f2-accent);
}

/* ---- サイドバー：カードの本文と各導線も中央寄せに（2026-08-21・本人指定）----
   見出しを中央にしたので、箱の中で左揃え・右揃えが混ざらないよう
   「日記タイトル／n月j日の日記→／バックナンバーを読む→／その他の連載をみる→」の
   4つを中央に統一する。バックナンバー一覧だけは
   「タイトル｜日付」の対比があるので両端揃えのまま。 */
.sidebar .side-hibi-title,
.side-hibi-postdate,
.side-hibi-more,
.side-rensai-more {
  text-align: center;
}

/* ---- 箱の末尾リンク：上下の余白を目で見て均等にする（2026-08-21・本人指摘）----
   旧 padding-top:12px だと「区切り罫→文字」が17〜18px、「文字→箱の下辺」が
   25〜26pxで、下のほうが8pxほど広かった（箱の padding-bottom 18px が効くため）。
   20pxにすると実測で 上25〜26 / 下25〜26 とほぼ揃う。
   ※日記と連載で1〜2px差が残るのは「む/る」「バ/そ」の字形（アセンダ・
     ディセンダ）の違い。これ以上は文字列ごとの調整になるので追わない。 */
.side-hibi-more,
.side-rensai-more {
  padding-top: 20px;
}

/* ---- 日記バックナンバー一覧の左端を他の要素に揃える（2026-08-21・本人指摘）----
   テーマ共通の `li { margin: 10px 0 10px 15px }` が効いて、月見出しと各項目だけ
   本文列より15px右にズレていた（「全n本」や年別ジャンプは0なので段差になる）。
   記事本文の <ul> は箇条書きの正しいインデントなので触らない。ここだけ打ち消す。 */
.hb-list > li {
  margin-left: 0;
}

/* ---- スライダーのタブを5列に（2026-08-21・本人指定）----
   スライドを4→5件にしたので、タブ帯も5列にする。
   間隔は30→24pxに詰めて、1枚あたりの文字幅を少しでも稼ぐ。 */
@media only screen and (min-width: 768px) {

  .front2 .hero-tabs {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
  }
}

/* ---- 降りてくる固定バーにごく薄い影（2026-08-21・本人指定）----
   1px罫の下にやわらかい落ち際を足して、浮いている帯だと分かりやすくする。
   **濃さは白地での落ち具合で決めている**（本人指定）。alpha .02 で、
   帯の1px下と9px下の明るさの差が約5ポイント（255が白）。
   参考：.025で5.8／.03で6.8／.04で8.2ポイント。上げるならこの順。
   濃い帯（#1c1c1a）の上では影は見えないが、そこは白い帯との明度差が
   最大なので影は要らない。

   **PC限定**。SPのバーは常時出ていて、すりガラス＋1px罫ですでに分離できている。 */
@media only screen and (min-width: 768px) {

  .sticky-bar {
    box-shadow: 0 2px 6px rgba(0, 0, 0, .02);
  }
}


/* =====================================================================
   V4：ファーストビューに「下に続きがある」合図（2026-08-21・本人指定）
   PCは ヘッダー90 + 写真 + お知らせ45 でちょうど1画面になるよう組んだので、
   **次の要素が1pxも見えない**（実測：日記セクションの上端＝画面の高さ）。
   初見の人が「ここで終わり」と読む可能性があるため、下向きの矢印を置く。

   余計にならないための3つの条件：
   ・**PC限定**。SPは画面の半分ほどで日記が見えているので要らない
   ・**スクロールしたら消える**。誘い文句であって備品ではない
   ・**箱を作らない**。白い矢印に濃い滲みを重ねる。写真は管理画面で差し替えられる
     ので片方に賭けない——**濃い矢印＋白い滲みでは白い被写体の上で消える**
     （実際に白いTシャツの上で見えなくなった）。逆に白い矢印＋濃い滲みなら、
     明るい写真では滲みが、暗い写真では矢印そのものが輪郭を作る
===================================================================== */
.f2-scroll-cue {
  display: none;
}

@media only screen and (min-width: 768px) {

  .front2 .f2-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    color: #fff;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, .55)) drop-shadow(0 1px 8px rgba(0, 0, 0, .4));
    opacity: .9;
    transition: opacity .45s ease;
  }

  .front2 .f2-scroll-cue:hover {
    opacity: 1;
  }

  /* スクロールしたら引っ込む（JSが .is-gone を付ける） */
  .front2 .f2-scroll-cue.is-gone {
    opacity: 0;
    pointer-events: none;
  }

  /* 上下の揺れは中のアイコンに掛ける。
     親に掛けると .is-gone の指定とtransformを取り合う */
  .front2 .f2-scroll-cue-icon {
    animation: f2-cue-bob 2.6s ease-in-out infinite;
  }
}

@keyframes f2-cue-bob {

  0%,
  100% {
    transform: translateY(-3px);
  }

  50% {
    transform: translateY(3px);
  }
}

@media (prefers-reduced-motion: reduce) {

  .front2 .f2-scroll-cue-icon {
    animation: none;
  }
}

/* 「つづきに、この話。」を外して NEXT だけにしたので、
   英字ラベルが先頭に来たときは左の余白（和文との間隔用の12px）を消す。
   `:first-child` にしてあるので、和文が前にある .article-onthisday-heading
   側は従来どおり12px空く */
.next-read-heading small:first-child,
.article-onthisday-heading small:first-child {
  margin-left: 0;
}

/* ---- フッター手前の写真帯：切り取り位置を直す（2026-08-21）----
   イメージヘッダーの元画像を差し替えたら（1920×739＝2.6:1 → 2048×1139＝1.8:1）、
   この帯（4.8:1）で縦に残る割合が変わり、旧 `50% 30%` では空ばかりで
   頭のてっぺんしか写らなくなっていた。
   縦は37.5%しか残らないので、その窓を下げて顔と水平線が入る位置に合わせる。
   ※`transform: scale(1.3)` と視差のtranslateYが乗るので、計算より実物で決めた値。 */
.f2-divider img {
  object-position: 50% 55%;
}

/* =====================================================================
   V4：セクション見出しの下罫を左から引く（2026-08-22・本人指定）
   帯に入ったとき、見出しが出たワンテンポあとに罫が左→右へ伸びる。
   線が主役のデザインなので、色ではなく線の動きで「ここから別の話」を出す。

   罫そのもの（border-bottom）は残したまま色だけ透明にして、同じ位置に
   疑似要素を重ねて scaleX する。**JSが `.fade-in-up` を付けたときだけ**
   透明にしてあるので、JS無効／IntersectionObserver非対応／
   `prefers-reduced-motion`（この3つはJS側が早期returnしてクラスを付けない）
   では従来どおり静止した罫が出る。

   **PC限定**。SPは `.front2 .band-cat .f2-header` が `border-bottom:none`＝
   もともと罫が無い（見出しが中央揃えになる指定と同じブロック）ので、
   ここを囲まないとSPに無かった線を1本足してしまう。
===================================================================== */
@media only screen and (min-width: 768px) {

  .front2 .f2-header.fade-in-up {
    border-bottom-color: transparent;
  }

  .front2 .f2-header.fade-in-up::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    /* 絶対配置の基準はpadding boxなので、borderの1pxぶん外に出して重ねる */
    bottom: -1px;
    height: 1px;
    background: var(--f2-ink);
    transform: scaleX(0);
    transform-origin: left center;
    /* 見出し自身は .12s 遅れの0.6sで出るので、罫はそれが着地してから引く */
    transition: transform .7s cubic-bezier(.22, .61, .36, 1) .45s;
  }

  .front2 .f2-header.fade-in-up.is-visible::after {
    transform: scaleX(1);
  }

  /* 濃い帯・写真帯は罫の色が違う（元のborder-bottom-colorと同値にする） */
  .front2 .band-tone-dark .f2-header.fade-in-up::after {
    background: rgba(255, 255, 255, .38);
  }


  /* 中央見出しの帯（おすすめ・note）は元から罫が無いので引かない */
  .front2 .band-cat--centered .f2-header.fade-in-up::after {
    content: none;
  }
}

/* =====================================================================
   V4：記事下の3つの見出しをトップのカテゴリー帯と同じ組みに
   （2026-08-22・本人指定）
   note・関連記事・新着記事だけ、ウィジェット見出し（.section-header /
   .section-title）をやめて `Related 関連記事` の英字メイン＋和文サブに。
   出力は functions.php の onimaga_article_head()。

   **値はトップ（`.front2 .f2-header` / `.front2 .f2-title`）と同値。
   片方を変えたら両方**。`.front2` スコープの中には入れられないので
   ここで持ち直しているだけで、別のデザインではない。
===================================================================== */
.f2-header--article {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--f2-ink);
  padding-bottom: 14px;
  margin-bottom: 42px;
  position: relative;
  z-index: 2;
}

.f2-header--article .f2-title {
  font-family: var(--f2-en);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.15;
  color: var(--f2-ink);
  margin: 0;
  padding: 0;
  border: none;
}

.f2-header--article .f2-title small {
  font-family: var(--f2-mincho);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: none;
  margin-left: 16px;
  color: var(--f2-muted);
}

/* ---- note だけ中央2段組み・罫なし（トップのnote帯＝.band-cat--centered と同値） ---- */
.f2-header--article-centered {
  justify-content: center;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 46px;
}

.f2-header--article-centered .f2-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.f2-header--article-centered .f2-title small {
  margin-left: 0;
}

/* ---- 下罫を左から引く（PC限定）。トップと同じ機構・同じ値 ---- */
@media only screen and (min-width: 768px) {

  .f2-header--article.fade-in-up {
    border-bottom-color: transparent;
  }

  .f2-header--article.fade-in-up::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: var(--f2-ink);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .7s cubic-bezier(.22, .61, .36, 1) .45s;
  }

  .f2-header--article.fade-in-up.is-visible::after {
    transform: scaleX(1);
  }

  /* note は元から罫が無いので引かない */
  .f2-header--article-centered.fade-in-up::after {
    content: none;
  }
}

/* ---- SPもトップと同じく中央揃え・罫なし（トップの `.front2 .band-cat .f2-header` と同値） ---- */
@media only screen and (max-width: 767px) {

  .f2-header--article {
    justify-content: center;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 52px;
  }

  .f2-header--article .f2-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
  }

  .f2-header--article .f2-title small {
    margin-left: 0;
  }
}

/* =====================================================================
   V4：記事下のnoteだけ全幅のグレー帯に（2026-08-22・本人指定）
   トップのnote帯と同じ見え方にする。

   **構造は変えていない**。中身は従来どおり `.content-wide`（1020px）の中に
   あって、背景だけ疑似要素で画面幅まで広げている。セクションごと100vwに
   すると中身を列幅へ戻す計算（レスポンシブで変わる）を持つことになるので、
   塗りだけ外に出すほうが壊れにくい。

   - `.content-wide` は左右が同値＝ビューポートの中央なので `50% - 50vw` が効く
   - `body` に `overflow-x: clip` があるので、100vwがスクロールバーぶん
     はみ出しても横スクロールは出ない（左右対称にはみ出す）
   - **z-index を負にしないこと**。負にすると祖先の背景の裏に回って消える。
     子側を `z-index:1` に上げて、疑似要素は 0 のまま重ねる
===================================================================== */
.note-section-single,
.post-section--new {
  position: relative;
  /* 帯の厚みはトップの .band-cat と同値 */
  padding: 78px 0 82px;
  background: none;
}

.note-section-single > *,
.post-section--new > * {
  position: relative;
  z-index: 1;
}

.note-section-single::before,
.post-section--new::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  background: var(--f2-tone-gray);
}

@media only screen and (max-width: 767px) {

  .note-section-single,
  .post-section--new {
    padding: 56px 0 60px;
  }
}

/* =====================================================================
   V4：カードのタイトルのホバーは「下線が左から引かれる」（2026-08-22・本人指定）
   メニューで採ったのと同じ考え方＝線が主役、色の変化は副次。

   下線は `text-decoration` ではなく背景のグラデーションで引く。
   `background-size` を 0→100% にすると左から伸びるアニメーションになり、
   `text-decoration` と違って**伸ばす動きが付けられる**。
   **`box-decoration-break: clone` が要る**。既定の slice だと折り返した
   行がひとつながりの箱として扱われて、**最終行にしか線が出ない**。
   トップのカードは `<h3>` がブロックなので、中の文字を `<span>` で
   包んで文字幅ぶんだけ引いている（index.php の f2_card / f2_card_manual）。
===================================================================== */
.post-card-title a,
.front2 .cat-card h3 span {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size .35s cubic-bezier(.22, .61, .36, 1);
}

/* 写真をさわってもタイトルに引かれる＝カード全体で1つの反応にする */
.post-card:hover .post-card-title a,
.front2 .cat-card a:hover h3 span {
  background-size: 100% 1px;
}

@media (prefers-reduced-motion: reduce) {

  .post-card-title a,
  .front2 .cat-card h3 span {
    transition: none;
  }
}


/* =====================================================================
   V4：記事下のタグはカテゴリページと同じ四角いチップに（2026-08-22・本人指定）
   流れるマーキーは廃止。同じ役目（絞り込みの手がかり）の見た目を
   サイト内で2種類にしないため。チップ本体は .cat-tag-chip を共用する。
===================================================================== */
.cat-tags--single {
  margin: 48px 0 0;
}

@media only screen and (max-width: 767px) {

  .cat-tags--single {
    margin-top: 40px;
  }
}

/* ---- Newの帯：下の余白を上と揃える（2026-08-22・本人指摘）----
   `.load-more-wrap` の `margin-bottom:120px` が帯の padding-bottom 82px に
   上乗せされて、上78px／下202pxになっていた。帯の中では余白は帯自身の
   paddingが持つので、ボタンの下マージンは要らない。
   （帯の外＝アーカイブ等で使われる素の .load-more-wrap は120pxのまま） */
.post-section--new .load-more-wrap {
  margin-bottom: 0;
}

/* ---- 記事下のタグチップは左寄せ（2026-08-22・本人指摘）----
   1個しか付いていない記事だと、中央にぽつんと置かれたチップが
   「押させたいボタン」に見えてしまう。左端を本文の左端に揃える。
   カテゴリページ（.cat-tags）は数が多く見出しも中央なので従来どおり中央。 */
.cat-tags--single {
  justify-content: flex-start;
}

/* =====================================================================
   V4：コメント欄（2026-08-23・本人指定）
   ここだけ旧Minimal WP層の見た目がそのまま出ていたので作り直した。
   踏んでいた地雷：
   - `wp_list_comments()` を裸で呼んでいて `<li>` がリストの外に出ていた
     （`.commentlist` 前提のCSSが全部死んでいた）→ comments.php で `<ol>` を追加
   - **コメントが `<li>` なので、旧レイヤーの `li a { color:#378893 }`（青緑）が
     ここだけ表面化していた**。サイトで唯一の青緑だったので藍・墨に振り直す
   - 送信ボタンがブラウザ既定（Arial 16px / border:2px outset）だった
     → サイト共通の枠ボタン（`#submit` を「もっと見る」の1ルールに追加）
===================================================================== */
.comments-block {
  margin: 56px 0 0;
}

.commentlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 旧レイヤーの `li { margin: 10px 0 10px 15px }` を打ち消す */
.commentlist li.comment,
.commentlist li.pingback,
.commentlist li.trackback {
  margin: 0;
  padding: 0;
  list-style: none;
}

.commentlist > li.comment + li.comment {
  border-top: 1px solid var(--f2-border);
}

/* #comment-9 のようなコメントへの直リンクで、固定バーの下に潜らないように。
   本文の見出し（h2/h3）と同じ逃がし幅にしてある */
.commentlist li.comment {
  scroll-margin-top: 80px;
}

.commentlist .comment-body {
  padding: 26px 0;
}

.commentlist .comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}

.commentlist .avatar {
  border-radius: 50%;
  flex-shrink: 0;
}

.commentlist .comment-meta-text {
  min-width: 0;
}

.commentlist .comment-author {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--f2-ink);
}

/* 旧 `li a` の青緑を打ち消す。名前は墨のまま＝リンクだと主張しない */
.commentlist .comment-author a {
  color: var(--f2-ink);
  text-decoration: none;
}

/* 日付はカードの日付（.f2-date）と同じ見え方に揃える */
.commentlist .comment-date a {
  font-family: var(--f2-en);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--f2-muted);
  text-decoration: none;
}

.commentlist .comment-date a:hover {
  color: var(--f2-ink);
}

/* 本文は記事本文と同じ明朝 */
.commentlist .comment-content,
.commentlist .comment-content p {
  font-family: var(--f2-mincho);
  font-size: 15px;
  line-height: 1.9;
  color: var(--f2-ink);
}

.commentlist .comment-content p {
  margin: 0 0 1em;
}

.commentlist .comment-content p:last-child {
  margin-bottom: 0;
}

.commentlist .comment-content a {
  color: var(--f2-accent);
}

.comment-awaiting-moderation {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--f2-muted);
  margin: 0 0 10px;
}

/* 返信リンク：色ではなく線で反応を出す（メニュー・カードと同じ考え方） */
.commentlist .reply {
  margin-top: 12px;
}

.commentlist .comment-reply-link {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--f2-ink);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size .3s cubic-bezier(.22, .61, .36, 1);
}

.commentlist .comment-reply-link:hover {
  background-size: 100% 1px;
}

/* 返信のぶら下がり。左の細い罫で「誰かへの返事」だと分かるように */
.commentlist .children {
  list-style: none;
  margin: 0;
  padding: 0 0 0 28px;
  border-left: 1px solid var(--f2-border);
}

.commentlist .children li.comment {
  border-top: 1px solid var(--f2-border);
}

/* ---- 投稿フォーム ---- */
.comment-respond {
  margin: 48px 0 0;
}

.comment-reply-title {
  font-family: var(--f2-mincho);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--f2-ink);
  border: none;
  padding: 0;
  margin: 0 0 8px;
}

.comment-reply-title small {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 12px;
}

.comment-reply-title small a {
  color: var(--f2-muted);
}

.comment-notes,
.comment-form-cookies-consent label,
.comment-form label {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--f2-muted);
}

.comment-form label {
  display: block;
  margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  /* 旧レイヤーが max-width:97% を掛けていて、入力欄だけ本文の列より
     31px 内側に寄っていた（左端は揃うので右だけ足りない） */
  max-width: 100%;
  border: 1px solid var(--f2-border);
  background: #fff;
  font-family: var(--font-base);
  font-size: 14px;
  color: var(--f2-ink);
  padding: 11px 14px;
  transition: border-color .2s;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  border-color: var(--f2-ink);
  outline: none;
}

.comment-form-cookies-consent {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.comment-form-cookies-consent label {
  margin-bottom: 0;
}

.comment-login-note {
  font-family: var(--font-sans);
  font-size: 13px;
}

/* コメントのページ送り（既定の .pager と同じ顔にする） */
.comments-block .page-numbers {
  font-family: var(--f2-en);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--f2-muted);
  text-decoration: none;
  margin-right: 10px;
}

@media only screen and (max-width: 767px) {

  .commentlist .children {
    padding-left: 16px;
  }

  .comments-block {
    margin-top: 44px;
  }
}

/* ---- パンくずの区切り（2026-08-23）----
   「›」をテキストで置くと `<ol>` の直下に text ノードが並んで文法違反になる
   （`<ol>` の直下に置けるのは `<li>` だけ）。メニューの中黒と同じく
   `li + li::before` で出す＝先頭には付かないので末尾に余ることもない。 */
.breadcrumb li + li::before {
  content: "›";
  /* HTMLの改行に由来する空白が前後に入るので、marginは足さない
     （足すと以前の見え方より1つあたり4px広がる。実測で決めた） */
  margin: 0;
  color: var(--f2-muted);
}

/* ---- パンくずの色（2026-08-23・本人指摘）----
   パンくずも `<li>` なので、コメント欄と同じく旧レイヤーの
   `li a { color:#378893 }`（青緑）がここだけ表面化していた。
   サイトの藍でも墨でもない色だったので振り直す。

   全記事の下に出る補助的な導線なので、**通常はミュート・ホバーで墨に締まる**
   ＝色相ではなく明度で反応を出す（記事下のカードの日付と同じ考え方）。 */
.breadcrumb,
.breadcrumb div,
.breadcrumb span,
.breadcrumb a,
.breadcrumb span a {
  color: var(--f2-muted);
}

.breadcrumb a:hover,
.breadcrumb span a:hover {
  color: var(--f2-ink);
}

/* ---- 記事下のグレー帯がページの最後に来たときは、下の白を出さない
       （2026-08-23・本人指摘）----
   コメントを使っていない記事では New の帯が最後の要素になり、その下に
   `.post-section` の下マージン64px と `.wrapper` の下パディング50px が
   そのまま白として残っていた（実測122px）。
   **トップは最後の帯と検索ボックスが0pxで密着している**ので、そこに揃える。
   コメントが出る記事では帯が最後にならないので、この指定は当たらない。

   **PC限定**。SPはサイドバーが本文の下に積まれるので、帯の次に来るのは
   検索ブロックではなくサイドバーの箱＝そもそも空白が出ないし、
   ここで詰めると帯とサイドバーがくっついてしまう。 */
@media only screen and (min-width: 768px) {

  .content-wide > .post-section--new:last-child {
    margin-bottom: 0;
  }

  .wrapper:has(.content-wide > .post-section--new:last-child) {
    padding-bottom: 0;
  }

/* 検索ブロック側の上マージン32pxと1px罫も落とす。
   トップは `margin-top:0 / border-top:none / padding-top:64px` で帯と密着していて、
   **面のトーンが変わること自体が境目**になっている。ここも上がグレーの帯に
   なったので同じ条件＝罫は要らない（サブページで罫を残しているのは
   「上が白のままだと切れ目が消える」ためで、その前提がこの場合は消えている） */
  body:has(.content-wide > .post-section--new:last-child) .pre-footer-search {
    margin-top: 0;
    border-top: none;
  }
}

/* ---- 固定カード（収益導線・広告）のタイトルはSPで4行まで（2026-08-23）----
   カードのタイトルは3行クランプ。**固定カードは文言を自分で書くので長くなり、
   ちょうど肝心の末尾が切れる**——実測で Minimal WP の広告は商品名「Minimal WP」が、
   Amazonサブスクは「無料！」が落ちていた（どちらも表示69px／中身92px）。
   PCは3行で収まるのでこの指定は要らない。
   **固定カードの文言を変えたら、SPで切れていないか測り直すこと**（`scrollHeight`）。 */
@media only screen and (max-width: 767px) {

  .front2 .cat-card--fixed h3 {
    -webkit-line-clamp: 4;
  }
}

/* =====================================================================
   V4：カードのタイトルは1ルールに集約（2026-08-23・本人指摘）
   トップのカテゴリ帯／カテゴリページ／アーカイブ／検索／記事下の関連・新着、
   **同じ「カード」なのに全部バラバラだった**（実測・PC）：
     17px/600、16px/500、15px/500、14px/500。SPはカテゴリページだけ18pxで
     PCより大きいという逆転もあった。
   → **16px / 500 / 行送り1.7** に統一。太字をやめる理由は、少数派が600だった
   ことに加えて、**タイトルの反応は下線ホバーが担当している**から（太さで
   主張する必要がない）。いちばん狭いカード（266px）でも1行16文字入る。

   **写真とその下の中身の間は14px**。記事下は9pxで詰まりすぎ、トップは15px。
   一覧系（カテゴリ・アーカイブ・検索）はここにカテゴリチップが入るので、
   「写真→チップ」が14pxになるようチップの上マージンを0にして揃える。

   **3行クランプは統一しない**。トップは横に並ぶカードの底を揃える必要が
   あるが、一覧系は読むものを選ぶ画面なのでタイトルを切ると損。
   あれは書体ではなく別の役目の指定。
===================================================================== */
.front2 .cat-card h3,
.post-card-title,
/* 以下は「そこだけ別サイズ」にしていた古い指定の打ち消し。
   ・split帯の大きいカードだけ17px（`.cat-grid--split > :first-child`）
   ・記事下の関連・新着だけ14px（`.similar-grid`／「15pxは圧迫感」という当時の判断）
   ・カテゴリページSPの先頭6枚だけ18px（フル幅カードの指定） */
.front2 .cat-grid--split > .cat-card:first-child h3,
.similar-grid .post-card-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .02em;
}

/* カテゴリページSPの先頭6枚は `font-size:18px !important` で書かれているので、
   打ち消すにはこちらも !important が要る（詳細度では勝てない） */
.category #main .post-grid .post-card:nth-child(-n+6) .post-card-title {
  font-size: 16px !important;
  line-height: 1.7;
}

.front2 .cat-card h3 {
  margin-top: 14px;
}

.post-card-body {
  padding-top: 14px;
}

.post-card-cat {
  margin-top: 0;
}

/* =====================================================================
   V4：サイドバーの広告ボックス（2026-08-23）
   ウィジェット（カスタムHTML）に貼るMinimal WPのバナー用。
   雛形＝`wp-content/widget-minimalwp-banner.html`。

   **既存の箱（.side-hibi / .side-rensai）と同じ寸法・同じ組み**に揃えてある：
   幅300px・内側258px・padding 22px 20px 18px・1px罫・白地・下マージン28px、
   見出しは日本語デカ文字＋英字小さく2段・中央、末尾は区切り罫＋テキストリンク。

   **全部 `.sidebar` を前置きすること（重要）。**
   ウィジェットの中身は `.textwidget` に包まれて出力されるので、旧レイヤーの
   `.widget p / .textwidget p / .sidebox p ...`（詳細度0,1,1）や
   `aside.content-side *`（!important）に、クラス1つ（0,1,0）では全部負ける。
   実際に負けて **本文14px・余白ゼロ・ホバーで青＋下線** になっていた。
   **ブラウザで確かめるときも `.textwidget` の包みごと再現すること**——
   包みなしで見ると通ってしまい、本番で初めて崩れる。
===================================================================== */
.sidebar .side-ad {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 22px 20px 18px;
  margin-bottom: 28px;
  text-align: center;
}

.sidebar .side-ad-label {
  display: block;
  /* `aside.content-side *` の一括ゴシック強制（!important付き）に勝つため、
     既存のラベルと同じく `.sidebar` を前置きして詳細度を上げる */
  font-family: var(--font-serif-ja) !important;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .12em;
  text-indent: .12em;
  line-height: 1.5;
  color: var(--f2-ink);
  padding: 0;
  margin: 6px 0 20px;
}

.sidebar .side-ad-label small {
  display: block;
  margin: 12px 0 0;
  font-family: var(--f2-en) !important;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .25em;
  text-indent: .25em;
  color: var(--f2-accent);
}

/* 写真の拡大がはみ出さないように器で切る（カードと同じ挙動） */
.sidebar .side-ad-thumb {
  display: block;
  overflow: hidden;
}

.sidebar .side-ad-img img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  transition: transform .5s cubic-bezier(.25, .46, .45, .94);
}

.sidebar .side-ad:hover .side-ad-img img {
  transform: scale(1.04);
}

/* 本文はサイドバーの基準に合わせて14px（日記カードのタイトル・
   ウィジェットのpと同値）。13pxにするとここだけ小さく浮く */
.sidebar .side-ad-text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--f2-ink);
  text-align: left;
  margin: 16px 0 0;
  padding: 0;
}

/* 説明文はリンクだが「読ませる文」なので、色も下線も付けない。
   反応は写真のズームと「詳細はこちら」の矢印が担当する。
   **`:hover` も明示すること**——`p a:hover`（旧レイヤー）が青＋下線にする */
.sidebar .side-ad-text a,
.sidebar .side-ad-text a:hover {
  color: inherit;
  text-decoration: none;
}

/* 末尾の導線：日記・連載の箱と同じ「区切り罫＋11px藍＋→」 */
.sidebar .side-ad-more {
  border-top: 1px solid var(--color-border);
  margin: 18px 0 0;
  padding-top: 20px;
  text-align: center;
}

.sidebar .side-ad-more a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--f2-accent);
  text-decoration: none;
}

.sidebar .side-ad-more a:hover {
  color: var(--f2-accent);
  text-decoration: none;
}

.sidebar .side-ad-more a::after {
  content: "\2192";
  display: inline-block;
  margin-left: 8px;
  transition: transform .25s ease;
}

.sidebar .side-ad-more a:hover::after {
  transform: translateX(5px);
}

/* =====================================================================
   V4：SPのサイドバー周りの余白（2026-08-23・本人指摘）
   SPはサイドバーが本文の下に積まれる。そこで2つ問題があった：
   ①箱と箱の間が28pxで詰まって見える（他の箱は40pxでバラバラでもあった）
   ②**最後の箱と検索ボックスの間が114px**も空く。内訳は
     箱の下マージン40px＋`.wrapper` の下パディング50px＋
     `.pre-footer-search` の上マージン48px の積み上げ。
   → 箱の間を56pxに揃え、最後の箱の下は同じ56pxに詰める。
===================================================================== */
@media only screen and (max-width: 767px) {

  /* 箱と箱の間を56pxで揃える（28/40/56が混在していた） */
  .sidebar > * {
    margin-bottom: 56px;
  }

  /* 最後の箱の下は、箱自身のマージンではなく検索ボックス側の上マージンで作る。
     二重に積み上がらないようここで0にする */
  .sidebar > *:last-child {
    margin-bottom: 0;
  }

  /* サイドバーがページ最後の要素になるので、wrapperの下パディングは要らない
     （これが50pxぶんの空白の正体） */
  .content-layout > .content-side {
    padding-bottom: 0;
  }

  /* SPの `.wrapper` は `padding: 0 24px 50px 24px !important` で書かれているので、
     打ち消しにも !important が要る（左右の24pxは残す） */
  body.single .wrapper,
  body.page .wrapper {
    padding-bottom: 0 !important;
  }
}
