@charset "UTF-8";

/* ==========================================================================
   AW-Base Theme – Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables (defaults – overridden by style-output.php inline CSS)
   -------------------------------------------------------------------------- */
:root {
  /* --- Font ---*/
  --font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;

  /* --- Colors (オリジナルのデフォルト値 / style-output.php で上書き) --- */
  --bg-color:       #FCFCFC;  /* 基本背景 */
  --content-bg:     #FFFFFF;  /* コンテンツ背景 */
  --text-color:     #333333;  /* 文字ポジティブ */
  --text-neg:       #FFFFFF;  /* 文字ネガティブ */
  --text-muted:     #888888;  /* 補助テキスト（日付・メタ情報） */
  --main-color:     #11114D;  /* アクセント/通知ライン（ナビ背景） */
  --accent-color:   #C30E24;  /* 見出しアクセント/ボタン/バッジ背景 */
  --nav-text-color: #FFFFFF;  /* ナビ・通知エリアの文字色 */
  --badge-text:     #FFFFFF;  /* バッジ文字色 */
  --link-color:     #3365CA;  /* リンク（全パターン共通） */
  --border-color:   #E3E3E3;  /* 各要素罫線 */
  --heading-bg:     #F5F6F7;  /* 見出し背景 */
  --card-bg:        #FFFFFF;  /* カード背景 */
  --card-text:      #333333;  /* カード文字 */
  --header-bg:      #FFFFFF;  /* ヘッダー背景（全パターン白固定） */

  /* --- FV / Overlay --- */
  --fv-overlay: rgba(0, 0, 0, 0.28);
  --fv-height: 100vh;

  /* --- Layout --- */
  --site-max-width: 1200px;
  --content-width: 760px;
  --sidebar-width: 300px;
  --card-radius: 6px;
  --transition: 0.25s ease;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, dl, dt, dd,
figure, blockquote, pre, table {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: opacity var(--transition), color var(--transition), background-color var(--transition);
}

/* ボディテキストは文字ポジティブ色、リンクのみ--link-colorを適用する */
body {
  color: var(--text-color);
}

a:hover {
  opacity: 0.75;
}

/* --------------------------------------------------------------------------
   3. Layout – Site Container & Main Wrap
   -------------------------------------------------------------------------- */
.site-container {
  max-width: var(--site-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.site-main-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start; /* メインコンテンツとサイドバーの上辺を揃える */
  gap: var(--gap-main-sidebar, 24px);
  padding: 40px 0 60px;
}

.site-main {
  width: 100%;
  min-width: 0;
}

/* Sidebar – hidden on mobile */
.site-sidebar {
  display: none;
  min-width: 0;
}

/* 2-column layout at >= 1040px */
@media (min-width: 1040px) {
  .layout-2c .site-main {
    flex: 1 1 0;        /* 余白を自動で埋める（サイドバー+gapを除いた幅） */
    min-width: 0;
    max-width: var(--content-width); /* 指定幅を上限として制約 */
  }

  .layout-2c .site-sidebar {
    display: block;
    flex: 0 0 var(--sidebar-width);
    width: var(--sidebar-width);
    min-width: 0;
    padding-top: 0;
    align-self: flex-start;
    position: sticky;
    top: 60px;
  }

  /* Sidebar left – reverse order */
  .layout-2c.sidebar-left .site-main-wrap {
    flex-direction: row-reverse;
  }
}

/* --------------------------------------------------------------------------
   4. Body.home – Front Page Layout Adjustments
   サイドバー表示は PHP の layout-1c/layout-2c クラスで制御。
   CSS での強制非表示は行わない。
   -------------------------------------------------------------------------- */
body.home.layout-1c .site-main-wrap {
  gap: 0;
}

/* --------------------------------------------------------------------------
   5. Notice Area
   -------------------------------------------------------------------------- */
.notice-area {
  background-color: var(--main-color);
  color: var(--nav-text-color);
  text-align: center;
  padding: 10px 20px;
  font-size: 14px;
  line-height: 1.5;
}

.notice-inner {
  display: flex;
  justify-content: center;
}

.notice-link,
.notice-text {
  color: var(--nav-text-color);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.notice-link {
  text-decoration: none;
  border-bottom: 1px solid rgba(128, 128, 128, 0.4);
  padding-bottom: 1px;
  transition: opacity var(--transition);
}

.notice-link:hover {
  opacity: 0.75;
}

/* --------------------------------------------------------------------------
   6. Site Header
   -------------------------------------------------------------------------- */
.site-header {
  background-color: var(--header-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: var(--header-height, 100px);
  padding: 12px 0;
}

.header-align-left  .header-inner { justify-content: flex-start; }
.header-align-center .header-inner { justify-content: center; }
.header-align-right  .header-inner { justify-content: flex-end; }

.site-branding {
  display: flex;
  flex-direction: column;
}

.header-align-center .site-branding {
  align-items: center;
  text-align: center;
}

.header-align-right .site-branding {
  align-items: flex-end;
  text-align: right;
}

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

.site-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.site-title a {
  color: var(--main-color);
}

.site-catchphrase {
  font-size: 0.78rem;
  opacity: 0.6;
  margin-top: 8px;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   7. Global Navigation
   -------------------------------------------------------------------------- */
.global-nav {
  background-color: var(--main-color);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.nav-inner {
  display: flex;
  align-items: center;
  min-height: 52px;
}

.global-nav.nav-align-left   .nav-inner { justify-content: flex-start; }
.global-nav.nav-align-center .nav-inner { justify-content: center; }
.global-nav.nav-align-right  .nav-inner { justify-content: flex-end; }

/* Nav menu list */
#primary-menu {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
}

.nav-inner ul {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
}

.nav-inner ul li {
  position: relative;
}

.nav-inner ul li a {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--nav-text-color, #ffffff);
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition);
}

.nav-inner ul li a:hover,
.nav-inner ul li.current-menu-item > a,
.nav-inner ul li.current-menu-ancestor > a {
  background-color: rgba(255, 255, 255, 0.15);
  opacity: 1;
}

/* Dropdown sub-menu */
.nav-inner ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--main-color);
  min-width: 200px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  z-index: 300;
  flex-direction: column;
}

.nav-inner ul li:hover > ul {
  display: flex;
}

.nav-inner ul li ul li a {
  padding: 12px 18px;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Hamburger Button (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 4px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle span + span {
  margin-top: 5px;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.mobile-nav-drawer {
  display: none;
  background-color: var(--main-color);
  padding: 10px 0 20px;
}

.mobile-nav-drawer.is-open {
  display: block;
}

.mobile-nav-drawer ul {
  list-style: none;
}

.mobile-nav-drawer ul li a {
  display: block;
  padding: 12px 24px;
  color: #fff;
  font-size: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-drawer ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   8. First View
   -------------------------------------------------------------------------- */
.first-view {
  position: relative;
  height: var(--fv-height);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fv-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--fv-overlay);
}

/* Dot pattern overlay */
.fv-dot-pattern .fv-overlay {
  background-image:
    radial-gradient(rgba(0, 0, 0, 0.18) 1px, transparent 1px),
    linear-gradient(var(--fv-overlay), var(--fv-overlay));
  background-size: 4px 4px, 100% 100%;
}

.fv-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #ffffff;
  padding: 20px;
}

.fv-logo {
  max-width: 340px;
  width: 80%;
  margin: 0 auto 24px;
}

.fv-site-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  margin-bottom: 16px;
  line-height: 1.2;
}

.fv-catchphrase {
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  line-height: 2;
  opacity: 0.92;
}

/* --------------------------------------------------------------------------
   9. Entry Cards – List Style (entry-card)
   -------------------------------------------------------------------------- */
.entries-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.entry-card {
  background: var(--card-bg, #fff);
  color: var(--card-text, var(--text-color));
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.entry-card-title,
.entry-card-snippet,
.entry-card-meta {
  color: var(--card-text, var(--text-color));
}

.entry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
}

.entry-card-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  height: 100%;
}

.entry-card-thumb {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.entry-card-thumb {
  aspect-ratio: 16 / 9;
}

.entry-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

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

.entry-card-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--accent-color);
  color: var(--badge-text, #fff);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
}

.entry-card-content {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.entry-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
}

.entry-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.entry-card-meta i {
  margin-right: 3px;
}

.entry-card-snippet {
  font-size: 0.84rem;
  opacity: 0.75;
  line-height: 1.6;
  flex: 1;
}

/* Grid style inherits .entry-card base styles – no additional rules needed here */


.entry-card-type-grid .entry-card-title {
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.entry-card-type-grid .entry-card-snippet {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8rem;
  opacity: 0.72;
  line-height: 1.55;
}

/* Grid container variants */
.entry-card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.entry-card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* --------------------------------------------------------------------------
   付箋カード形式 - List layout (archive / home / blog index)
   Cocoon準拠: 横並び・左アクセントバー・サムネイル左固定
   -------------------------------------------------------------------------- */
.entry-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.entry-card-list .entry-card {
  border-radius: var(--card-radius);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
}

.entry-card-list .entry-card:hover {
  transform: translateX(3px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.13);
}

.entry-card-list .entry-card-link {
  flex-direction: row;
  align-items: flex-start;
}

.entry-card-list .entry-card-thumb {
  width: 200px;
  min-width: 200px;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  height: auto;
  align-self: flex-start;
}

.entry-card-list .entry-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-card-list .entry-card-content {
  padding: 16px 18px 14px;
  justify-content: flex-start;
}

.entry-card-list .entry-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.entry-card-list .entry-card-snippet {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.82rem;
}

/* モバイル: 縦並びに戻す */
@media (max-width: 640px) {
  .entry-card-list .entry-card-link {
    flex-direction: column;
  }
  .entry-card-list .entry-card-thumb {
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

/* --------------------------------------------------------------------------
   11. Archive Page
   -------------------------------------------------------------------------- */

/* アーカイブ・ブログ一覧のコンテンツエリアに白背景を適用 */
.archive .site-main,
.blog .site-main,
.search .site-main {
  background: var(--content-bg);
  border-radius: var(--card-radius);
  padding: 32px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.archive-header {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--main-color);
}

.archive-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-color);
}

.archive-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   12. Single Article
   -------------------------------------------------------------------------- */
.single-entry,
.page-entry {
  background: var(--content-bg);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

/* Front page / static home page content background */
.home .site-main,
.front-page .site-main {
  background: var(--content-bg);
  border-radius: var(--card-radius);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  padding: 32px;
}

.single-header {
  padding: 32px 40px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.single-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.cat-link {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--badge-text);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cat-link:hover {
  background-color: var(--main-color);
  opacity: 1;
  color: var(--nav-text-color);
}

.single-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 16px;
}

.single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.single-meta i {
  margin-right: 4px;
}

.post-reading-time {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 12px 0 24px;
}

/* Eyecatch */
.single-eyecatch {
  margin: 0;
}

.single-eyecatch img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
  object-fit: cover;
}

/* Article Content */
.single-content {
  padding: 40px;
}

/* h2 in entry content */
.entry-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  position: relative;
  padding: 0.4em 0.4em;
  margin: 2.2em 0 1em;
  border-bottom: 3px solid var(--heading-bg);
  line-height: 1.4;
}

.entry-content h2::first-letter {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--accent-color);
}

.entry-content h2::after {
  position: absolute;
  content: "";
  display: block;
  bottom: -3px;
  left: 0;
  width: 20%;
  border-bottom: 3px solid var(--accent-color);
}

/* h3 in entry content */
.entry-content h3:not(.entry-card-title) {
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.4em 0.4em;
  margin: 1.8em 0 1em;
  border-left: 5px solid var(--accent-color);
  border-bottom: 3px solid var(--heading-bg);
  line-height: 1.4;
}

/* h4 in entry content */
.entry-content h4 {
  font-size: 1rem;
  font-weight: 700;
  padding: 0.4em 0;
  margin: 1.4em 0 0.8em;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
}

/* Paragraphs */
.entry-content p {
  margin-bottom: 1.4em;
  line-height: 1.85;
}

/* Images */
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1em 0;
}

/* Blockquote */
.entry-content blockquote {
  margin: 1.5em 0;
  padding: 1em 1.2em 1em 1.6em;
  border-left: 4px solid var(--main-color);
  background: rgba(0, 0, 0, 0.03);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  opacity: 0.85;
}

.entry-content blockquote cite {
  display: block;
  font-size: 0.8rem;
  margin-top: 0.6em;
  opacity: 0.7;
}

/* Code */
.entry-content code {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.88em;
  font-family: "Fira Code", "Consolas", "Courier New", monospace;
}

.entry-content pre {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 20px 24px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5em 0;
  font-size: 0.88rem;
  line-height: 1.65;
}

.entry-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}

/* Tables */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.92rem;
}

.entry-content th,
.entry-content td {
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  text-align: left;
}

.entry-content th {
  background-color: var(--main-color);
  color: var(--nav-text-color);
  font-weight: 700;
}

.entry-content tr:nth-child(even) td {
  background-color: rgba(0, 0, 0, 0.025);
}

/* Horizontal Rule */
.entry-content hr {
  border: none;
  border-top: 2px solid rgba(0, 0, 0, 0.08);
  margin: 2em 0;
}

/* Single Footer (Tags) */
.single-footer {
  padding: 20px 40px 32px;
}

/* --------------------------------------------------------------------------
   12b. Tagcloud – 現行サイト準拠スタイル
   -------------------------------------------------------------------------- */
.tagcloud {
  padding: 0 2px;
}

.tagcloud a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 12px !important; /* WPインライン上書き */
  font-weight: 700;
  display: inline-block;
  background-color: var(--heading-bg);
  padding: 2px 8px;
  margin-right: 2px;
  margin-bottom: 4px;
  border-radius: 9px 3px;
  border: none;
  word-break: break-all;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tagcloud a:hover {
  background-color: var(--border-color);
  color: var(--text-color);
  opacity: 1;
}

/* Widget Tag Cloud – WordPress core output compatibility */
.widget_tag_cloud .tagcloud a,
.wp-block-tag-cloud a {
  font-size: 12px !important;
  font-weight: 700;
  display: inline-block;
  background-color: var(--heading-bg);
  color: var(--text-color);
  padding: 2px 8px;
  margin-right: 2px;
  margin-bottom: 4px;
  border-radius: 9px 3px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.widget_tag_cloud .tagcloud a:hover,
.wp-block-tag-cloud a:hover {
  background-color: var(--border-color);
  color: var(--text-color);
  opacity: 1;
}

/* Pagination within a post (page-links) */
.page-links {
  margin: 2em 0;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   13. Table of Contents (TOC)
   -------------------------------------------------------------------------- */
.toc {
  background-color: rgba(0, 0, 0, 0.025);
  border-top: 5px solid var(--main-color);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  padding: 0;
  margin: 1.8em auto 2em; /* 左右autoで中央整列 */
  display: block;
  width: 66.67%;
  max-width: 100%;
}

/* details/summary ネイティブ開閉 */
.toc > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 24px 12px;
}

.toc > summary::-webkit-details-marker { display: none; }
.toc > summary::marker { display: none; }

.toc-title {
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  letter-spacing: 0.05em;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.toc-title::after {
  content: "▲";
  font-size: 0.65em;
  color: var(--main-color);
  transition: transform 0.2s;
}

.toc:not([open]) .toc-title::after {
  transform: rotate(180deg);
}

.toc .toc-list {
  padding: 0 24px 20px;
}

.toc-list {
  counter-reset: toc-h2;
}

.toc-list > li {
  counter-increment: toc-h2;
  margin-bottom: 6px;
}

.toc-list > li > a::before {
  content: counter(toc-h2) ". ";
  font-weight: 700;
  color: inherit; /* アクセントカラーを使わず、導構テキスト色と統一 */
}

.toc-list a {
  color: var(--text-color);
  font-size: 0.92rem;
  display: inline-block;
  padding: 1px 0;
}

.toc-list a:hover {
  text-decoration: underline;
  opacity: 1;
}

/* Sub list (h3 entries) */
.toc-list ul {
  padding-left: 20px;
  margin-top: 4px;
  counter-reset: toc-h3;
}

.toc-list ul li {
  counter-increment: toc-h3;
  margin-bottom: 4px;
}

.toc-list ul li a::before {
  content: counter(toc-h2) "-" counter(toc-h3) ". ";
  font-weight: 600;
  color: inherit; /* アクセントカラーを使わず、導構テキスト色と統一 */
}

/* --------------------------------------------------------------------------
   14. Author Box
   -------------------------------------------------------------------------- */
.author-box {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 2.5em 48px;
  padding: 28px 28px 24px;
  background: var(--content-bg);
  border-radius: var(--card-radius);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  overflow: visible;
}

.author-widget-name {
  display: inline-block;
  background: var(--main-color);
  color: var(--nav-text-color);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  position: absolute;
  top: -14px;
  left: 24px;
  white-space: nowrap;
}

.author-thumb {
  flex-shrink: 0;
  margin: 0;
}

.author-thumb img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(0, 0, 0, 0.07);
}

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

.author-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.author-name a {
  color: var(--main-color);
}

.author-name a:hover {
  text-decoration: underline;
  opacity: 1;
}

.author-description {
  font-size: 0.88rem;
  opacity: 0.8;
  line-height: 1.7;
  margin-bottom: 10px;
}

.sns-follow-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.sns-follow-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--main-color);
  color: var(--nav-text-color);
  font-size: 14px;
  text-decoration: none;
  transition: background-color var(--transition), transform var(--transition);
}

.sns-follow-buttons a:hover {
  transform: scale(1.1);
  opacity: 1;
}

.sns-follow-buttons a.website-button  { background: var(--accent-color); }
.sns-follow-buttons a.twitter-button  { background: #000000; }
.sns-follow-buttons a.facebook-button { background: #1877F2; }
.sns-follow-buttons a.instagram-button{ background: #C13584; }
.sns-follow-buttons a.youtube-button  { background: #FF0000; }
.sns-follow-buttons a.linkedin-button { background: #0077B5; }
.sns-follow-buttons a.github-button   { background: #333333; }

/* --------------------------------------------------------------------------
   15. Related Posts
   -------------------------------------------------------------------------- */
.related-entries {
  margin-top: 3em;
  padding: 2em 40px 2em; /* コンテンツ背景とカードの間に適切な余白 */
  border-top: 2px solid rgba(0, 0, 0, 0.06);
}

.related-entries-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--accent-color);
}

.related-entries .entry-card-grid-3 {
  gap: 20px;
}

.related-entries .entry-card-thumb img {
  height: 150px;
}

/* --------------------------------------------------------------------------
   16. Post Navigation (次の記事 / 前の記事)
   -------------------------------------------------------------------------- */
.post-nav {
  display: flex;
  width: 100%;
  border-top: 2px solid rgba(0, 0, 0, 0.06);
  margin-top: 0;
}

.post-nav-item {
  flex: 1 1 50%;
  min-width: 0;
}

.post-nav-item + .post-nav-item {
  border-left: 1px solid var(--border-color);
}

.post-nav-item:empty {
  background: var(--heading-bg);
}

.post-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text-color);
  background: var(--content-bg);
  transition: background var(--transition);
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.post-nav-link:hover {
  background: var(--heading-bg);
  color: var(--text-color);
  opacity: 1;
}

.post-nav-next .post-nav-link {
  flex-direction: row-reverse;
}

.post-nav-thumb {
  width: 80px;
  height: 45px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 3px;
  background: var(--heading-bg);
}

.post-nav-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-nav-body {
  flex: 1;
  min-width: 0;
}

.post-nav-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.post-nav-next .post-nav-label {
  justify-content: flex-end;
}

.post-nav-next .post-nav-body {
  text-align: right;
}

.post-nav-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   17. Sidebar & Widgets
   -------------------------------------------------------------------------- */
.sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Normal sidebar section */
.sidebar-normal {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Sticky sidebar section */
.sidebar-sticky-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.widget {
  background: var(--content-bg);
  border-radius: var(--card-radius);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

.widget-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 18px;
  background-color: var(--main-color);
  color: var(--nav-text-color);
  margin: 0;
}

/* Widget inner content */
.widget > *:not(.widget-title) {
  padding: 16px 18px;
}

/* Widget ul/li reset */
.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.9rem;
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  color: var(--text-color);
}

.widget ul li a:hover {
  color: var(--accent-color);
  opacity: 1;
}

/* Widget author box */
.widget-author-box {
  box-shadow: none;
  margin: 0;
}

/* Search Widget */
.widget_search .search-form {
  display: flex;
}

.widget_search .search-field {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
  outline: none;
}

.widget_search .search-submit {
  padding: 8px 16px;
  background: var(--main-color);
  color: var(--nav-text-color);
  border: 1px solid var(--main-color);
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 14px;
  transition: background-color var(--transition);
}

.widget_search .search-submit:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

/* --------------------------------------------------------------------------
   17. Pagination
   -------------------------------------------------------------------------- */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 40px 0 20px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text-color);
  background: var(--content-bg);
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.page-numbers:hover,
.page-numbers.current {
  background-color: var(--main-color);
  border-color: var(--main-color);
  color: var(--nav-text-color);
  opacity: 1;
}

.page-numbers.dots {
  border: none;
  background: transparent;
}

/* 「次のページ」full-width button */
.pagination-next-wrap {
  margin: 32px 0 8px;
  text-align: center;
}

.pagination-next-wrap a {
  display: block;
  background-color: var(--accent-color);
  color: var(--badge-text);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 0;
  border-radius: 4px;
  letter-spacing: 0.06em;
  transition: opacity var(--transition);
}

.pagination-next-wrap a:hover {
  opacity: 0.82;
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 0;
  border-top: 4px solid var(--main-color); /* アクセントライン/通知ライン共通カラー */
  background-color: #FFFFFF; /* フッター背景は白固定 */
  color: var(--text-color); /* 白背景の上に表示するので文字ポジティブ */
  padding: 48px 0 24px;
  text-align: center;
}

.footer-logo {
  margin-bottom: 24px;
}

.footer-logo img {
  display: inline-block;
}

.footer-logo a {
  display: inline-block;
  opacity: 1;
}

.footer-logo a:hover {
  opacity: 0.8;
}

.footer-nav {
  margin-bottom: 24px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  gap: 4px 16px;
}

.footer-nav-align-left ul { justify-content: flex-start; }
.footer-nav-align-center ul { justify-content: center; }
.footer-nav-align-right ul { justify-content: flex-end; }

.footer-nav ul li a {
  color: var(--text-color);
  opacity: 0.75;
  font-size: 13px;
}

.footer-nav ul li a:hover {
  color: var(--text-color);
  opacity: 1;
  text-decoration: underline;
}

.footer-copyright {
  font-size: 12px;
  color: var(--text-color);
  opacity: 0.5;
  letter-spacing: 0.04em;
}

/* Footer bottom widget area (video/banner section) */
.footer-bottom-area {
  background-color: #0a0a1a;
  padding: 0;
}

.footer-bottom-area .footer-bottom-widget {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.footer-bottom-area iframe,
.footer-bottom-area video {
  display: block;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   19. TOP Page Sections
   -------------------------------------------------------------------------- */

/* Shared section styles */
.home-content {
  padding: 32px 0 60px;
}

.home-widget-area {
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.home-section {
  padding: 52px 0;
}

.home-section + .home-section {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Section header */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--main-color);
  letter-spacing: 0.04em;
  padding-left: 16px;
  border-left: 5px solid var(--accent-color);
  line-height: 1.3;
}

.section-title::after {
  display: none;
}

.section-more-link {
  font-size: 0.82rem;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition);
}

.section-more-link:hover {
  background-color: var(--accent-color);
  color: var(--badge-text);
  opacity: 1;
}

/* New Posts section */
.home-new-posts .entry-card-grid-3 {
  margin-bottom: 32px;
}

.home-section-more {
  text-align: center;
  margin-top: 28px;
}

.btn-more {
  display: inline-block;
  padding: 12px 36px;
  background: var(--main-color);
  color: var(--nav-text-color);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 30px;
  letter-spacing: 0.06em;
  transition: background-color var(--transition), transform var(--transition);
}

.btn-more:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  opacity: 1;
  color: var(--badge-text);
}

/* Pick Up section */
.home-pickup .entry-card-grid-2 {
  margin-bottom: 0;
}

/* Posts by Category section */
.home-category-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.category-section-box {
  background: var(--content-bg);
  border-radius: var(--card-radius);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.category-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background-color: var(--main-color);
  color: var(--nav-text-color);
}

.category-section-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.category-section-more {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition);
}

.category-section-more:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  opacity: 1;
}

/* Category post list */
.category-post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-post-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background-color var(--transition);
}

.category-post-item:last-child {
  border-bottom: none;
}

.category-post-item:hover {
  background-color: rgba(0, 0, 0, 0.025);
}

.category-post-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
}

.category-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.category-post-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-post-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.category-section-footer {
  padding: 12px 16px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.category-section-footer .btn-more {
  font-size: 0.8rem;
  padding: 8px 24px;
}

/* --------------------------------------------------------------------------
   20. Fixed Page (page.php)
   -------------------------------------------------------------------------- */
.page-entry {
  background: var(--content-bg);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.page-header {
  padding: 32px 40px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.page-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--main-color);
}

.page-content {
  padding: 40px;
}

/* --------------------------------------------------------------------------
   21. 404 Page
   -------------------------------------------------------------------------- */
.error-404 {
  text-align: center;
  padding: 80px 20px;
}

.error-404 .error-code {
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 700;
  color: var(--main-color);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  opacity: 0.15;
}

.error-404 .error-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-404 .error-message {
  font-size: 0.95rem;
  opacity: 0.7;
  margin-bottom: 32px;
}

.error-404 .btn-home {
  display: inline-block;
  padding: 12px 36px;
  background: var(--main-color);
  color: var(--nav-text-color);
  border-radius: 30px;
  font-weight: 600;
  transition: background-color var(--transition);
}

.error-404 .btn-home:hover {
  background: var(--accent-color);
  opacity: 1;
  color: var(--badge-text);
}

/* --------------------------------------------------------------------------
   22. Utilities
   -------------------------------------------------------------------------- */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* --------------------------------------------------------------------------
   23. Responsive – 1040px (tablet large)
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .global-nav .nav-inner > ul,
  .global-nav #primary-menu {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .global-nav .nav-inner {
    justify-content: space-between;
    padding-right: 4px;
  }

  .home-category-sections {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   24. Responsive – 768px (tablet)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .site-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .single-header,
  .single-content,
  .single-footer,
  .page-header,
  .page-content {
    padding-left: 20px;
    padding-right: 20px;
  }

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

  .entry-card-grid-2 {
    grid-template-columns: 1fr;
  }

  .home-section {
    padding: 36px 0;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .toc {
    width: 100%;
  }

  .author-box {
    margin: 2em 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-thumb {
    margin: 0 auto;
  }

  .sns-follow-buttons {
    justify-content: center;
  }

  .related-entries .entry-card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer {
    padding: 36px 0 20px;
  }

  .footer-nav ul {
    gap: 4px 10px;
  }
}

/* --------------------------------------------------------------------------
   25. Responsive – 480px (smartphone)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .entry-card-grid-3,
  .entry-card-grid-2 {
    grid-template-columns: 1fr;
  }

  .entry-card-list .entry-card-link {
    flex-direction: column;
  }

  .entry-card-list .entry-card-thumb {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
    height: auto;
    align-self: auto;
  }

  .single-header,
  .single-content,
  .single-footer,
  .page-header,
  .page-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .single-content {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .entry-card-thumb img {
    height: 160px;
  }

  .fv-logo {
    max-width: 240px;
  }

  .home-section {
    padding: 28px 0;
  }

  .related-entries .entry-card-grid-3 {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 4px;
  }

  .page-numbers {
    min-width: 32px;
    height: 32px;
    font-size: 0.82rem;
  }
}

/* --------------------------------------------------------------------------
   404 Page
   -------------------------------------------------------------------------- */
.not-found-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 60px 20px;
}
.not-found-code {
  font-size: 120px;
  font-weight: 900;
  color: var(--main-color);
  line-height: 1;
  margin: 0 0 16px;
  opacity: 0.15;
}
.not-found-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 12px;
}
.not-found-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--main-color);
  color: var(--nav-text-color);
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}
.btn-back-home:hover { opacity: 0.85; }
.not-found-search { max-width: 400px; margin: 20px auto 0; }

/* --------------------------------------------------------------------------
   Search Results
   -------------------------------------------------------------------------- */
.no-results {
  background: var(--content-bg);
  border-radius: 6px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.no-results p { color: var(--text-muted); margin-bottom: 16px; }

/* Search form */
.search-form {
  display: flex;
  gap: 0;
  width: 100%;
  max-width: 600px;
  margin: 16px auto 0;
  padding: 0 15px;
  box-sizing: border-box;
}
.search-form .search-field,
.search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
  outline: none;
  background: #fff;
  color: var(--text-color);
}
.search-form .search-field:focus,
.search-form input[type="search"]:focus { border-color: var(--main-color); }
.search-form .search-submit,
.search-form button {
  background: var(--main-color);
  color: var(--nav-text-color);
  border: none;
  padding: 10px 18px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}
.search-form .search-submit:hover,
.search-form button:hover { background: var(--accent-color); }

/* --------------------------------------------------------------------------
   Fixed Page (page.php)
   -------------------------------------------------------------------------- */
.page-entry {
  background: var(--content-bg);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  padding: 28px 32px 20px;
  border-bottom: 2px solid var(--main-color);
  margin: 0;
}
.page-content {
  padding: 28px 32px 32px;
}
@media (max-width: 768px) {
  .page-title { padding: 20px; font-size: 20px; }
  .page-content { padding: 20px; }
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs {
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent-color); }
.breadcrumbs .sep { color: var(--border-color); }

/* --------------------------------------------------------------------------
   FV Substack Button
   -------------------------------------------------------------------------- */
.fv-substack-wrap {
  margin-top: 28px;
}

.fv-substack-btn {
  display: inline-block;
  padding: 12px 32px;
  background: #ff6719;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 30px;
  letter-spacing: 0.06em;
  transition: opacity var(--transition), transform var(--transition);
  text-decoration: none;
}

.fv-substack-btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Single entry / Page entry – card bg variable
   -------------------------------------------------------------------------- */
.single-entry,
.page-entry {
  background: var(--card-bg, #fff);
  color: var(--card-text, var(--text-color));
}

.single-title,
.single-content,
.page-title,
.page-content {
  color: var(--card-text, var(--text-color));
}

/* --------------------------------------------------------------------------
   Widget – card bg variable
   -------------------------------------------------------------------------- */
.widget {
  background: var(--card-bg, #fff);
}

/* --------------------------------------------------------------------------
   Calendar Widget
   -------------------------------------------------------------------------- */
.widget_calendar table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.widget_calendar caption {
  font-weight: 700;
  font-size: 0.9rem;
  padding: 4px 0 8px;
  color: var(--main-color);
  letter-spacing: 0.04em;
}

.widget_calendar th {
  background: var(--main-color);
  color: var(--nav-text-color);
  padding: 4px 2px;
  text-align: center;
  font-weight: 600;
  font-size: 0.78rem;
}

.widget_calendar td {
  padding: 4px 2px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.widget_calendar td a {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  border-radius: 50%;
  background: var(--accent-color);
  color: var(--badge-text);
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  transition: opacity var(--transition);
}

.widget_calendar td a:hover {
  opacity: 0.8;
  color: var(--badge-text);
}

.widget_calendar #today {
  background: rgba(0, 0, 0, 0.05);
  font-weight: 700;
}

.widget_calendar tfoot td {
  padding: 6px 2px;
  border: none;
}

.widget_calendar tfoot a {
  color: var(--main-color);
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   SNS Share Buttons
   -------------------------------------------------------------------------- */
.sns-share-wrap {
  padding: 24px 40px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.sns-share-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  flex-shrink: 0;
}

.sns-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sns-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), opacity var(--transition);
  font-weight: 700;
  line-height: 1;
}

.sns-share-btn:hover {
  transform: scale(1.1);
  opacity: 0.9;
  color: #fff;
}

.sns-share-twitter  { background: #000000; }
.sns-share-facebook { background: #1877F2; }
.sns-share-line     { background: #06C755; }
.sns-share-pocket   { background: #EF4056; }
.sns-share-hatena   { background: #00A4DE; font-size: 13px; }
.sns-share-feedly   { background: #2BB24C; }
.sns-share-copy     { background: #666666; }

@media (max-width: 768px) {
  .sns-share-wrap {
    padding: 20px 20px 0;
  }
}

/* ==========================================================================
   Shortcode Blocks – AW-Base Cocoon Compatible
   ========================================================================== */

/* ----------------------------------------------------------
   Shortcode Section Wrapper (new_list / popular_list)
   ---------------------------------------------------------- */
.awb-shortcode-section {
  background-color: var(--card-bg, #fff);
  border-radius: var(--card-radius, 6px);
  padding: 24px 28px 20px;
  margin: 2em 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

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

.awb-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--main-color);
  padding-left: 12px;
  border-left: 4px solid var(--accent-color);
  line-height: 1.4;
  margin: 0;
}

.awb-section-more {
  font-size: 0.82rem;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s;
}

.awb-section-more:hover {
  background-color: var(--accent-color);
  color: var(--badge-text);
  opacity: 1;
}

.awb-section-btn-wrap {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.awb-section-btn {
  display: inline-block;
  padding: 10px 32px;
  background: var(--main-color);
  color: var(--nav-text-color);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 30px;
  letter-spacing: 0.05em;
  transition: background-color 0.25s, transform 0.25s;
}

.awb-section-btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  opacity: 1;
  color: var(--badge-text);
}

/* ----------------------------------------------------------
   [btn] Button Block
   ---------------------------------------------------------- */
.awb-btn-wrap {
  text-align: center;
  margin: 1.5em 0;
}

.awb-btn {
  display: inline-block;
  padding: 12px 36px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
  letter-spacing: 0.04em;
}

.awb-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.awb-btn-primary {
  background-color: var(--accent-color);
  color: var(--badge-text);
  border-color: var(--accent-color);
}

.awb-btn-secondary {
  background-color: var(--main-color);
  color: var(--nav-text-color);
  border-color: var(--main-color);
}

.awb-btn-success { background-color: #28a745; color: #fff; border-color: #28a745; }
.awb-btn-danger  { background-color: #dc3545; color: #fff; border-color: #dc3545; }
.awb-btn-warning { background-color: #ffc107; color: #212529; border-color: #ffc107; }

.awb-btn-outline {
  background-color: transparent;
}

.awb-btn-primary.awb-btn-outline  { color: var(--accent-color); }
.awb-btn-secondary.awb-btn-outline { color: var(--main-color); }

.awb-btn-large  { padding: 16px 48px; font-size: 1.1rem; }
.awb-btn-small  { padding: 7px 20px;  font-size: 0.85rem; }

/* ボタン形状 */
.awb-btn.awb-btn-circle  { border-radius: 99px !important; }
.awb-btn.awb-btn-rounded { border-radius: 50px !important; } /* 後方互換 */
.awb-btn.awb-btn-square  { border-radius: 0 !important; }    /* 後方互換 */

/* ボタン幅（Cocoon互換: 25/50/75/100%） */
.awb-btn-wrap { text-align: center; }
.awb-btn-wrap.awb-width-25  .awb-btn { width: 25%; }
.awb-btn-wrap.awb-width-50  .awb-btn { width: 50%; }
.awb-btn-wrap.awb-width-75  .awb-btn { width: 75%; }
.awb-btn-wrap.awb-width-100 .awb-btn { display: block; width: 100%; box-sizing: border-box; }

/* ----------------------------------------------------------
   [card] / [blogcard] Blog Card Block
   ---------------------------------------------------------- */
.awb-blogcard {
  margin: 1.5em 0;
}

.awb-blogcard-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--card-bg, #fff);
  border: 0px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: var(--card-text);
  position: relative;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.30);
  transition: box-shadow 0.2s, transform 0.2s;
}

.awb-blogcard-inner:hover {
  box-shadow: none;
  background-color: var(--heading-bg);
  transform: none;
  opacity: 1;
  color: var(--card-text);
}

.awb-blogcard-img {
  width: 160px;
  aspect-ratio: 16 / 9;
  min-height: unset;
  flex-shrink: 0;
  align-self: flex-start;
  overflow: hidden;
  background: #fff;
  border-right: 1px solid var(--border-color);
}

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

.awb-blogcard-body {
  flex: 1;
  padding: 14px 60px 14px 16px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.awb-blogcard-title {
  font-size: 1em;
  font-weight: 700;
  line-height: 1.4em;
  margin: 0 0 6px;
  padding: .2em .2em 0;
  color: var(--card-text);
  text-align: justify;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.awb-blogcard-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 6px;
  padding: 0 .5em;
  text-align: justify;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.awb-blogcard-url {
  font-size: 0.72rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  padding: 0 .5em;
}

/* 詳細リンク風バッジ */
.awb-blogcard-inner::after {
  content: "詳細 ≫";
  position: absolute;
  bottom: 0.7em;
  right: 1em;
  font-size: 0.7em;
  background-color: var(--main-color);
  padding: .4em 1.2em;
  font-weight: bold;
  color: var(--nav-text-color);
  border-radius: 2px;
}

@media (max-width: 600px) {
  .awb-blogcard-inner { flex-direction: column; }
  .awb-blogcard-img   { width: 100%; height: 160px; min-height: unset; border-right: none; border-bottom: 1px solid var(--border-color); }
  .awb-blogcard-body  { padding: 12px 12px 40px; }
}

/* ----------------------------------------------------------
   [faq] FAQ Block
   ---------------------------------------------------------- */
.awb-faq {
  margin: 2em 0;
}

.awb-faq-item {
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius, 6px);
  overflow: hidden;
}

.awb-faq-q {
  display: flex;
  align-items: baseline;
  gap: 12px;
  background: var(--main-color);
  color: var(--nav-text-color);
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.975rem;
  line-height: 1.5;
}

.awb-faq-q-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent-color);
  color: var(--badge-text);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
  line-height: 1;
}

.awb-faq-a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 18px;
  background: var(--card-bg, #fff);
}

.awb-faq-a-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent-color);
  color: var(--badge-text);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 900;
  flex-shrink: 0;
  line-height: 1;
}

.awb-faq-a-body {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.7;
}

.awb-faq-a-body p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------
   [timeline] Timeline Block
   ---------------------------------------------------------- */
.awb-timeline {
  margin: 2em 0;
  padding-left: 20px;
  border-left: 3px solid var(--accent-color);
}

.awb-timeline-item {
  position: relative;
  padding: 0 0 28px 28px;
}

.awb-timeline-item::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--timeline-color, var(--accent-color));
  border: 3px solid var(--card-bg, #fff);
  box-shadow: 0 0 0 2px var(--timeline-color, var(--accent-color));
}

.awb-timeline-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.awb-timeline-content {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius, 6px);
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.awb-timeline-content p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------
   [accordion] Accordion Block
   ---------------------------------------------------------- */
.awb-accordion {
  margin: 2em 0;
}

.awb-accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius, 6px);
  margin-bottom: 6px;
  overflow: hidden;
}

.awb-accordion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--heading-bg);
  font-weight: 600;
  font-size: 0.975rem;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s;
  gap: 12px;
}

.awb-accordion-head::-webkit-details-marker { display: none; }
.awb-accordion-head::marker { display: none; }

.awb-accordion-head:hover {
  background: var(--border-color);
}

.awb-accordion-item[open] .awb-accordion-head {
  background: var(--main-color);
  color: var(--nav-text-color);
}

.awb-accordion-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  position: relative;
  margin-left: auto;
}

.awb-accordion-icon::before,
.awb-accordion-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.25s;
}

.awb-accordion-icon::before { width: 12px; height: 2px; }
.awb-accordion-icon::after  { width: 2px; height: 12px; }

.awb-accordion-item[open] .awb-accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.awb-accordion-body {
  padding: 16px 18px;
  background: var(--card-bg, #fff);
  font-size: 0.95rem;
  line-height: 1.7;
}

.awb-accordion-body p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------
   [sitemap] Sitemap Block
   ---------------------------------------------------------- */
.awb-sitemap {
  margin: 1em 0;
}

.awb-sitemap-section {
  margin-bottom: 2em;
}

.awb-sitemap-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--main-color);
  padding: 8px 0 8px 14px;
  border-left: 4px solid var(--accent-color);
  margin-bottom: 10px;
}

.awb-sitemap-heading a { color: inherit; }
.awb-sitemap-heading a:hover { color: var(--accent-color); opacity: 1; }

.awb-sitemap-cat-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 8px;
}

.awb-sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
}

.awb-sitemap-item {
  width: 100%;
  border-bottom: 1px dashed var(--border-color);
  padding: 6px 0 6px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.awb-sitemap-item a {
  color: var(--text-color);
  font-size: 0.9rem;
}

.awb-sitemap-item a:hover { color: var(--accent-color); opacity: 1; }

.awb-sitemap-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  margin-left: auto;
}

.awb-sitemap-children {
  list-style: none;
  padding: 4px 0 4px 20px;
  width: 100%;
}

.awb-sitemap-children li {
  padding: 3px 0;
  font-size: 0.875rem;
}

.awb-sitemap-children li::before {
  content: '└ ';
  color: var(--text-muted);
}

/* ----------------------------------------------------------
   Breadcrumbs – now outside site-main-wrap (full-width)
   ---------------------------------------------------------- */
.site-container > .breadcrumbs {
  padding: 12px 0 4px;
  margin-bottom: 0;
}

/* ----------------------------------------------------------
   [balloon] Balloon / Chat Bubble Block
   ---------------------------------------------------------- */
.balloon-wrap {
  display: flex;
  align-items: flex-start;
  margin: 1.5em 0;
  gap: 12px;
}

.balloon-right {
  flex-direction: row-reverse;
}

.balloon-icon {
  text-align: center;
  width: 64px;
  flex-shrink: 0;
}

.balloon-icon img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.balloon-name {
  font-size: 10px;
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  line-height: 1.3;
}

.balloon-text {
  position: relative;
  padding: 14px 16px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  max-width: calc(100% - 88px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  font-size: 0.95rem;
  line-height: 1.7;
}

.balloon-text::before {
  content: "";
  position: absolute;
  top: 16px;
  border: 9px solid transparent;
}

.balloon-left .balloon-text::before {
  left: -18px;
  border-right-color: var(--border-color);
}

.balloon-left .balloon-text::after {
  content: "";
  position: absolute;
  top: 17px;
  left: -16px;
  border: 8px solid transparent;
  border-right-color: var(--card-bg, #fff);
}

.balloon-right .balloon-text::before {
  right: -18px;
  border-left-color: var(--border-color);
}

.balloon-right .balloon-text::after {
  content: "";
  position: absolute;
  top: 17px;
  right: -16px;
  border: 8px solid transparent;
  border-left-color: var(--card-bg, #fff);
}

.balloon-text p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------
   Cocoon ブロック互換 CSS
   Cocoonテーマから移行したページ内の btn/popular-list ブロック用
   ---------------------------------------------------------- */
.wp-block-cocoon-blocks-button-1 {
  margin: 1.2em 0;
}
.wp-block-cocoon-blocks-button-1.aligncenter {
  text-align: center;
}
.wp-block-cocoon-blocks-button-1 .btn {
  display: inline-block;
  padding: 10px 32px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: opacity 0.2s, transform 0.2s;
  background-color: var(--cocoon-custom-background-color, var(--accent-color));
  color: #fff;
}
.wp-block-cocoon-blocks-button-1 .btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.cocoon-block-button__width-50 { min-width: 50%; }
.cocoon-block-button__width-40 { min-width: 40%; }
.cocoon-block-button__width-30 { min-width: 30%; }
