@charset "utf-8";

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


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

:root {
  --color-accent: #c4705a;
  --color-text: #333;
  --color-muted: #999;
  --color-border: #dedede;
  --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-accent);
  text-decoration: none;
  transition: 0.5s;
}

a:hover {
  color: #666;
}

/* 本文リンクは下線付き */
.single-contents a,
.page-contents a {
  color: var(--color-accent);
  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;
}

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


/* 画像
---------------------------------------------------- */

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 {
  border-top: 7px solid #333;
}

#header {
  width: 100%;
  margin: 0 auto;
}

.header-inner {
  max-width: var(--max-width);
  overflow: hidden;
  margin: 0px auto;
  padding: 40px 0;
}

#header h1 {
  text-align: center;
  margin: 0;
}

.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;
  border-radius: 4px;
  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;
}


/* 投稿記事タイトル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;
}

.next-left {
  float: left;
  text-align: left;
  margin: 0 0 10px 0;
  background: url(images/left.gif) no-repeat left;
}

.next-left a {
  padding: 20px 20px 20px 50px;
  display: block;
  border: 1px solid #fff;
}

.next-left a:hover {
  border: 1px solid #eee;
}

.next-right {
  float: right;
  text-align: right;
  margin: 0 0 10px 0;
  background: url(images/right.gif) no-repeat right;
}

.next-right a {
  padding: 20px 50px 20px 20px;
  display: block;
  border: 1px solid #fff;
}

.next-right a:hover {
  border: 1px solid #eee;
}


/* ページャー
---------------------------------------------------- */

.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 {
  font-weight: bold;
  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 {
  font-size: 90%;
  text-align: center;
}

.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;
  border-radius: 3px;
  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: #F5F5F5;
  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;
}


/* ウィジェットボックスワイドコンテンツ用
---------------------------------------------------- */

.top-wide-contents {
  width: 100%;
  margin: 0 0 0 0;
  background: #f9f9f9;
}

.top-wide-contents .widget {
  margin: 0 0 0 0;
  padding: 5px 20px 5px 20px;
}

.top-wide-contents .textwidget,
.top-wide-contents .textwidget p {
  color: #444;
  line-height: 170%;
  margin: 0 0 30px 0;
  text-align: center;
}

.top-wide-contents .top-widget-title {
  font-weight: bold;
  margin-bottom: 30px;
  padding: 0px 0 5px 0;
  border-bottom: 4px solid #444;
}

.top-wide-contents ul {
  margin: 0 0 0 0;
  padding: 0 0 0 0;
}

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

.top-wide-contents li a {
  line-height: 160%;
  color: #444;
  margin: 0 0 0 0;
  padding: 7px 0px 6px 0px;
  list-style: none;
  transition: 0.5s;
}

.top-wide-contents li a:hover {
  color: #999;
}

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

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

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

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


/* カレンダー
---------------------------------------------------- */

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;
  border-radius: 3px;
  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;
  border-radius: 3px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
}

.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;
  border-radius: 3px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
}

.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-serif-ja) !important;
  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;
  }

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

  .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;
    padding: 0 4% 50px 4% !important;
  }

  #header {
    width: 100%;
    background-color: #FFF;
    border-bottom: 1px solid #dedede;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
  }

  .header-inner {
    width: 90%;
    max-width: 300px;
    padding: 10px 0 10px 0;
  }

  .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: none;
    position: fixed;
    top: 60px;
    float: none;
    width: 100%;
    background: #fefefe;
    margin: 0px auto 40px auto;
    border-top: 1px solid #dedede;
  }

  .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;
  }

  .top-wide-contents br {
    display: none;
  }

  .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;
  }

  /* 子メニューはデフォルト非表示 */
  #nav .nav-menu .sub-menu,
  #nav .nav-menu .children {
    display: none;
    background: #f9f9f9;
    border-top: 1px solid #ededed;
  }

  /* トグルで開いたとき */
  #nav .nav-menu .sub-menu.sub-menu-open,
  #nav .nav-menu .children.sub-menu-open {
    display: block;
  }

  /* 子メニューアイテムのインデント */
  #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);
}


/* ======================================================================
 * Phase 2 追加スタイル
 * ====================================================================== */


/* ---- ヒーロー --------------------------------------------------------- */

.hero {
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.hero-img {
  display: block;
  width: 100%;
  height: clamp(220px, 40vw, 580px);
  object-fit: cover;
  object-position: center;
}


/* ---- トップページレイアウト ------------------------------------------- */

.top-page-layout {
  display: block;
}

.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 ブロック（末尾付近）で定義 */

.section-more {
  font-size: 12px;
  color: var(--color-muted);
  white-space: nowrap;
}

.section-more:hover {
  color: #555;
}


/* ---- 記事グリッド ----------------------------------------------------- */

.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;
  transition: transform 0.4s ease;
  margin: 0;
  /* WordPress が出力する width/height 属性を上書き */
  height: auto;
}

.post-card-img:hover img {
  transform: scale(1.05);
}

.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;
}


/* ---- 関連記事・新着記事グリッド --------------------------------------- */

.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 {
  font-size: 15px;
  line-height: 1.55;
}


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

/* スマホ：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;
  }

  /* ミニロゴのマージンも詰める */
  #header.header-scrolled~nav#nav .nav-logo {
    margin-right: 4px;
  }

  .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;
  }
}


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

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #141414;
    --color-bg-light: #1e1e1e;
    --color-text: #ddd;
    --color-muted: #888;
    --color-border: #2e2e2e;
    --color-accent: #5ab4be;
  }

  body {
    background: var(--color-bg);
    color: var(--color-text);
  }

  #header {
    background: var(--color-bg);
  }

  nav#nav.main-navigation {
    background: var(--color-bg);
  }

  .post-card-img {
    background: #222;
  }

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

  .archive-header {
    border: none;
  }

  .similar-head {
    color: var(--color-text);
  }

  .section-title {
    color: var(--color-text);
  }

  .section-more {
    color: var(--color-muted);
  }

  #topcontrol {
    background: var(--color-bg);
    color: var(--color-muted);
    bottom: 20px;
    right: 12px;
    width: 38px;
    height: 38px;
  }
}


/* ---- 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;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    max-width: 100% !important;
    height: 60px;
    padding: 0;
  }
}


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


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

:root {
  --color-bg: #f8f5f0;
  /* オフホワイト */
  --color-bg-light: #eeeae4;
  --color-text: #1c1c1a;
  /* チャコール */
  --color-muted: #8a8680;
  --color-border: #dbd7d1;
  --color-accent: #b07d62;
  /* くすんだテラコッタ */
  --color-accent2: #6b8c78;
  /* セージグリーン（サブ） */
  --font-serif-ja: 'Shippori Mincho', 'ヒラギノ明朝 ProN', serif;
  --font-serif-en: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Hiragino Kaku Gothic ProN', '游ゴシック', YuGothic, 'メイリオ', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #181714;
    --color-bg-light: #222019;
    --color-text: #e8e4de;
    --color-muted: #7a7672;
    --color-border: #2e2c28;
    --color-accent: #c49070;
  }
}


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

/* 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;
}


/* ---- ヘッダー --------------------------------------------------------- */

#header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  padding: 40px;
}

.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スクロール時ナビロゴ */
.nav-logo {
  display: none;
}

@keyframes nav-logo-fadein {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  /* スクロール後：ナビにミニロゴをフェードイン */
  #header.header-scrolled~nav#nav .nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 8px;
    animation: nav-logo-fadein 0.3s ease forwards;
  }

  .nav-logo img {
    height: 26px;
    width: auto;
  }

  /* スクロール後：ナビにほんのり影 */
  #header.header-scrolled~nav#nav {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  }

  .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: 11px !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;
}

.section-more {
  font-family: var(--font-serif-en);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-left: auto;
}


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

.post-card-img img {
  transition: transform 0.6s ease;
}

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

/* カテゴリラベル */
.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: 11px !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 */
.single-contents h2,
.page-contents h2 {
  font-family: var(--font-serif-ja);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 3em;
  margin-bottom: 1.2em;
  padding: 0 0 0.4em;
  border-top: none;
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: 80px;
  /* 固定ヘッダー分のオフセット */
}

/* 見出しh3 */
.single-contents h3,
.page-contents h3 {
  font-family: var(--font-serif-ja);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-top: 2.5em;
  margin-bottom: 0.8em;
  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 * {
  font-family: var(--font-serif-ja) !important;
}

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


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

/* pagetitle-single はカテゴリ名表示なので小さくラベル的に */
.pagetitle-single {
  font-family: var(--font-serif-en) !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  letter-spacing: 0.22em !important;
  color: var(--color-accent) !important;
  line-height: 1.4;
  margin-top: 40px;
  margin-bottom: 16px;
}

/* ランディングページ（page-imgheader.php）のみ中央寄せ */
.page-template-page-imgheader .pagetitle-single {
  text-align: center;
}

@media only screen and (max-width: 767px) {
  .pagetitle-single {
    margin-top: 20px;
  }
}

.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;
}


/* ---- ヒーロー -------------------------------------------------------- */

.hero-img {
  filter: brightness(0.97);
}


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

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

/* ウィジェット全体 */
.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-serif-ja);
}

/* タグ */
.tag-list,
.tag-list a,
.tags a,
a[rel="tag"],
.post-tags a,
.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,
.breadcrumbs,
.breadcrumbs a {
  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"],
.search-field {
  font-family: var(--font-serif-ja);
  font-size: 15px;
  letter-spacing: 0.03em;
}

/* フッター */
#footer,
#footer *,
.footer-inner,
.footer-inner * {
  font-family: var(--font-serif-ja);
}

.copyright,
#footer .copyright {
  font-family: var(--font-serif-en);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}


/* ---- フッター -------------------------------------------------------- */

#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 * {
  color: rgba(255, 255, 255, 0.65) !important;
}

#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.4);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* プロフィール列 */
.footer-profile-name {
  font-family: var(--font-serif-ja);
  font-size: 14px;
  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-copyright {
  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,
.moji15px,
.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;
  border-color: var(--color-border) !important;
}

.moji15px {
  font-size: 13px !important;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--color-muted) !important;
}

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

.bt-order a:hover {
  background: #9a6a52 !important;
  color: #fff !important;
}


/* ---- 日付（タイトル上） ---------------------------------------------- */

.post-date-above {
  font-family: var(--font-serif-en);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.post-date-above .date-sep {
  margin: 0 6px;
  opacity: 0.5;
}

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

  /* SP：更新日と区切りを非表示、公開日のみ */
  .post-date-above .date-sep,
  .post-date-above .date-updated-wrap {
    display: none;
  }

  /* SP：日付＋タイトルを一体化ブロックに */
  .post-title-block {
    border-top: 3px double #999;
    border-bottom: 1px solid #999;
    padding: 20px 0 24px;
    margin: 12px 0 8px;
  }

  /* SP：日付はブロック内の上部に小さく */
  .post-title-block .post-date-above {
    margin-bottom: 14px;
  }

  /* SP：h1 のボーダー・パディング・マージンはブロック側が担う */
  .post-title-block h1.blog-title {
    border: none !important;
    padding: 0 !important;
    margin: 0 !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 * {
  font-family: var(--font-serif-ja);
}


/* ---- 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,
.sp-nav-about-item {
  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"],
.sidebar .search-field,
.sidebox .widget_search input[type="search"],
.sidebox .search-field {
  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,
.sidebar .search-submit,
.sidebox .widget_search input[type="submit"],
.sidebox .widget_search button[type="submit"],
.sidebox .widget_search button,
.sidebox .search-submit {
  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: 11px !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;
}

/* トップページ新着記事下（大）ウィジェットのセクション見出し */
.top-row-large .wp-block-heading {
  font-family: var(--font-serif-en) !important;
  font-size: 11px !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: 0 0 12px !important;
  margin: 0 0 28px !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限定） */
  html,
  body {
    overflow-x: hidden;
    touch-action: pan-y;
  }

  .header-inner {
    padding: 0 !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #header {
    overflow: hidden;
    /* header内の要素の横はみ出し防止 */
  }


  /* ---- SP モバイルナビ: 縦積み・横テキスト ----------------------------- */

  nav#nav.main-navigation {
    position: fixed;
    /* stickyを上書き: スクロール位置に関係なくビューポート上部に固定 */
    top: 60px;
    left: 0;
    right: 0;
    overflow-y: auto;
    max-height: calc(100vh - 60px);
  }

  .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;
  }

  /* AboutリンクをSPメニューの最後に同デザインで表示 */
  .sp-nav-about-item {
    display: block;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
  }

  .sp-nav-about-item a {
    display: block;
    padding: 16px 24px;
    font-family: var(--font-serif-ja);
    font-size: 14px;
    letter-spacing: 0.1em;
    color: var(--color-text);
    text-decoration: none;
    text-align: left;
    writing-mode: horizontal-tb;
  }

  .sp-nav-about-item a:hover {
    color: var(--color-accent);
  }

  /* Aboutリンクの旧スタイルは不要 */
  .sp-nav-about {
    display: none;
  }

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

  /* Aboutリンク */
  .sp-nav-about {
    margin-bottom: 24px;
  }

  .sp-nav-about a {
    font-family: var(--font-serif-en);
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-muted);
    text-decoration: none;
  }

  .sp-nav-about a:hover {
    color: var(--color-accent);
  }

  /* 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;
  }
}


/* ======================================================================
 *  画像ホバーズーム
 * ====================================================================== */

.post-card-img {
  overflow: hidden;
}

.post-card-img 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 {
  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);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.related-card:hover {
  opacity: 0.75;
}

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

.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);
}


/* ======================================================================
 *  スクロール連動ヘッダー
 * ====================================================================== */

/* SP のみ: ヘッダーは常に表示（スクロールで隠さない） */
@media only screen and (max-width: 767px) {
  #header {
    transition: none;
  }
}


/* ======================================================================
 *  リーディングプログレスバー
 * ====================================================================== */

#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  /* 少し太くして見やすく */
  background: var(--color-accent);
  z-index: 100001;
  /* 10万1（ヘッダーや他の要素より確実に手前） */
  pointer-events: none;
  transition: width 0.1s linear;
  box-shadow: 0 1px 4px rgba(var(--color-accent), 0.3);
  /* 少し光らせて隠れないように */
}


/* ======================================================================
 *  目次（Table of Contents）
 * ====================================================================== */

.toc-box {
  border: 1px solid var(--color-border);
  padding: 24px 28px;
  margin: 40px 0;
  background: var(--color-bg-light);
}

.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-serif-ja);
  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: 0 2px 8px rgba(0, 0, 0, 0.10);
}

/* 商品名 */
.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-section-title {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.note-section-icon {
  opacity: 0.75;
  flex-shrink: 0;
}

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

.note-paid-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-serif-en);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--color-bg);
  background: var(--color-accent);
  padding: 3px 8px;
  pointer-events: none;
}

/* 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-children-label {
  font-family: var(--font-serif-en);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  flex-shrink: 0;
}

.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);
}

/* ---- カテゴリ別CTA --------------------------------------------------- */

.cat-cta-wrap {
  margin: 64px 0 48px;
}

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

.cat-cta-card:hover {
  border-color: var(--color-accent);
}

.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-label {
  font-family: var(--font-serif-en);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0;
}

.cat-cta-title {
  font-family: var(--font-serif-ja);
  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〜2枚目フル幅、3枚目〜2列 */
  .category #main .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 12px;
  }

  /* 1・2枚目：フル幅 */
  .category #main .post-grid .post-card:nth-child(1),
  .category #main .post-grid .post-card:nth-child(2) {
    grid-column: 1 / -1;
  }

  .category #main .post-grid .post-card:nth-child(1) .post-card-img img,
  .category #main .post-grid .post-card:nth-child(2) .post-card-img img {
    aspect-ratio: 16 / 9;
  }

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

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

  .category #main .post-grid .post-card:nth-child(n+3) .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;
  font-family: var(--font-serif-ja);
  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);
}

/* ヘッダー inner を relative に */
.header-inner {
  position: relative;
}

/* ---- ヘッダー検索オーバーレイ ---- */
.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;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  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;
}

/* ---- カテゴリーページ検索バー ---- */
.cat-search-wrap {
  margin: 0 0 40px;
}

/* ---- サイドバー検索（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);
  }
}

/* ---- SP: ヘッダー左端ボタン ---- */
.sp-header-search-btn {
  display: none;
  /* PCでは非表示 */
}

@media only screen and (max-width: 767px) {
  .sp-header-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-muted);
    padding: 6px;
    z-index: 10001;
    /* ハンバーガーより下 */
  }
}

/* ---- ヘッダー内ボタン（旧スタイル）をリセット ---- */
.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-label {
  font-family: var(--font-serif-ja);
  font-size: 12px;
  color: var(--color-muted);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.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;
  }
}


/* ======================================================================
 *  ニュースティッカー
 * ====================================================================== */

.news-ticker {
  display: flex;
  align-items: center;
  width: 100%;
  background: var(--color-accent);
  color: var(--color-bg);
  height: 40px;
  overflow: hidden;
}

.news-ticker-label {
  flex-shrink: 0;
  font-family: var(--font-serif-en);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--color-bg);
  padding: 0 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  line-height: 40px;
}

.news-ticker-track-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.news-ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 18s linear infinite;
}

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

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

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

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

.news-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  text-decoration: none;
  color: var(--color-bg);
  transition: opacity 0.2s;
}

.news-ticker-item:hover {
  opacity: 0.7;
}

.news-ticker-date {
  font-family: var(--font-serif-en);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.news-ticker-title {
  font-family: var(--font-serif-ja);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.news-ticker-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  flex-shrink: 0;
}

@media only screen and (max-width: 767px) {
  .news-ticker-label {
    padding: 0 14px;
    font-size: 9px;
  }

  .news-ticker-title {
    font-size: 11px;
  }

  .news-ticker-item {
    padding: 0 16px;
    gap: 8px;
  }

  .news-ticker-track {
    animation-duration: 10s;
  }
}

/* ---- iOS Safe Area: ステータスバー背景を固定ヘッダーの色で埋める ---------- */
/* viewport-fit=cover でビューポートをフル画面に拡張し、
   safe-area-inset-top 分の padding でコンテンツを押し下げる
   constant() = iOS 11.1以前、env() = iOS 11.2以降               */
@media only screen and (max-width: 767px) {
  #header {
    padding-top: constant(safe-area-inset-top);
    padding-top: env(safe-area-inset-top);
  }
}

/* iOS Safe Area カバー要素（#headerの外・独立した position:fixed）
   #header内のネスト問題・overflow問題を回避しつつ
   ステータスバー領域をテーマ色で確実に塗りつぶす              */
#ios-safe-area-cover {
  display: none;
  /* PC・非対応環境では非表示 */
}

@media only screen and (max-width: 767px) {
  #ios-safe-area-cover {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    /* 非対応環境フォールバック */
    height: constant(safe-area-inset-top);
    /* iOS 11.1以前 */
    height: env(safe-area-inset-top);
    /* iOS 11.2以降 */
    background-color: var(--color-bg);
    z-index: 9998;
    /* #header(9999)・progress bar(10001)より下、スクロールコンテンツ(0)より上 */
    pointer-events: none;
  }
}


/* ---- ダークモード追加修正 -------------------------------------------- */
@media (prefers-color-scheme: dark) {

  /* フッター: --color-text が明るくなるので背景を固定の暗色で上書き */
  #footer {
    background: #0e0d0b;
    color: var(--color-bg);
  }

  #footer a {
    color: rgba(232, 228, 222, 0.75);
  }

  #footer .section-title {
    color: var(--color-bg) !important;
  }

  #footer .footerbox,
  #footer .footerbox * {
    color: rgba(232, 228, 222, 0.6) !important;
  }

  #footer .footerbox a {
    color: rgba(232, 228, 222, 0.6) !important;
  }

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

  #footer .copyright {
    color: rgba(232, 228, 222, 0.4);
  }

  /* ハンバーガーボタン: #000 ハードコードを上書き */
  .hamburger-inner,
  .hamburger-inner::before,
  .hamburger-inner::after {
    background-color: var(--color-text);
  }

  /* ロゴ: 黒SVGをダークモードで白反転 */
  .logo img,
  .nav-logo img {
    filter: invert(1) brightness(0.9);
  }
}

@media (prefers-color-scheme: dark) {

  /* 記事本文テキスト: ハードコードされた #333/#444 等を上書き */
  p {
    color: var(--color-text);
  }

  h2,
  h3,
  h4,
  h5,
  h6 {
    color: var(--color-text);
  }

  /* 見出しのボーダー */
  h2 {
    border-top-color: var(--color-border);
    border-bottom-color: var(--color-border);
  }

  h3 {
    border-bottom-color: var(--color-border);
  }

  h4 {
    border-bottom-color: var(--color-border);
  }

  /* 記事内リンク */
  p a {
    color: var(--color-accent);
  }

  /* リスト・テーブル */
  li,
  dt,
  dd,
  td,
  th {
    color: var(--color-text);
  }
}

/* ======================================================================
 *  前後記事ナビゲーション
 * ====================================================================== */

.post-adjacent-nav {
  display: flex;
  gap: 12px;
  margin: 40px 0 32px;
  border-top: 1px solid var(--color-border);
  padding-top: 28px;
}

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

.post-adjacent-item:hover {
  background: var(--color-bg-sub, #f8f7f5);
  border-color: var(--color-text-light, #999);
}

.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-serif-ja);
  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);
}
