﻿/*
Theme Name: nanashi
Theme URI: https://gamers-labo.com
Author: gamers-labo
Author URI: https://gamers-labo.com
Description: ゲームまとめサイト用オリジナルWordPressテーマ。2カラム・レスポンシブ・SEO対応。
Version: 0.0.110
License: Private
Text Domain: matome-theme
*/

/* =============================================================
   CSS Variables
   ============================================================= */
:root {
  --color-primary:     #2271b1;   /* リンク色（本文・カテゴリリンク等） */
  --color-primary-dk:  #1a5a90;
  --color-theme:       #7f7f7f;  /* THE THOR: fit_bsStyle_themeColor — ページネーション・検索ボタン等 */
  --color-accent:      #dd3333;   /* THE THOR: fit_archiveList_ribbonColor */
  --color-bg:          #eaeaea;   /* THE THOR: fit_bsStyle_bgColor */
  --color-bg-card:     #ffffff;
  --color-header-bg:   #333333;   /* THE THOR: fit_conHeader_color */
  --color-header-text: #ffffff;
  --color-footer-bg:   #333333;
  --color-footer-text: #ffffff;
  --color-text:        #191919;   /* THE THOR: body color */
  --color-text-muted:  rgba(0,0,0,0.5);  /* THE THOR: dateList__item color */
  --color-border:      rgba(0,0,0,0.10); /* THE THOR: border style */
  --color-hr:          #8cb4db;

  --font-base: "Lato", "游ゴシック体", "Yu Gothic", YuGothic,
               "ヒラギノ角ゴシック Pro", "Hiragino Kaku Gothic Pro",
               "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  --font-size-base: 14px;          /* THE THOR: body 1.4rem @ 10px root = 14px */
  --line-height-base: 1.85;        /* THE THOR: .phrase line-height */

  --width-content: 1170px;         /* THE THOR: .l-wrapper max-width */
  --width-main:    calc(70% - 30px); /* THE THOR: .l-main width */
  --width-sidebar: 30%;              /* THE THOR: .l-sidebar width */

  --radius: 4px;
  --shadow: 0px 1px 3px 0px rgba(0,0,0,0.15); /* THE THOR: archive__item-shadow */

  /* ===== サイト全体の統一値 ===== */
  --section-gap:  32px;   /* セクション間のマージン（統一）*/
  --section-line: 2px solid var(--color-primary);  /* セクションタイトル下のライン（統一）*/
  --item-line:    1px solid rgba(0,0,0,0.15);       /* アイテム区切りライン（統一: RSS・関連記事）*/
}

/* =============================================================
   Reset / Base
   ============================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: var(--color-bg);
  word-break: break-word;
  overflow-wrap: break-word;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  opacity: .85;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

ul, ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* =============================================================
   Layout Container
   ============================================================= */
.container {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 0 16px;
}

/* =============================================================
   Header
   ============================================================= */
.site-header {
  background: var(--color-header-bg);
  color: var(--color-header-text);
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 18px 16px;
}

/* Logo — grid中央列に配置・中央揃え */
.site-logo {
  grid-column: 2;
  text-align: center;
}
.site-logo a {
  color: var(--color-header-text);
  font-size: 1.8rem;
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  letter-spacing: .03em;
}
.site-logo img {
  max-height: 52px;
  width: auto;
}

/* Global Navigation (PC) — grid右列 */
.global-nav {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
}
.global-nav ul {
  display: flex;
  gap: 4px;
}
.global-nav a {
  color: var(--color-header-text);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: .9rem;
  text-decoration: none;
  display: block;
}
.global-nav a:hover {
  background: rgba(255,255,255,.15);
  text-decoration: none;
  opacity: 1;
}


/* =============================================================
   Breadcrumb
   ============================================================= */
.breadcrumb-wrap {
  background: #f0f0f0;
  border-bottom: 1px solid #ddd;
}
.breadcrumb {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 7px 16px;
  font-size: .88rem;
  color: #555;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.breadcrumb a {
  color: #444;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb .sep {
  color: #777;
}

/* =============================================================
   Main Layout (2 column)
   ============================================================= */
.l-wrapper {
  max-width: var(--width-content);
  margin: 40px auto;      /* THE THOR: margin: 40px 15px → auto centering equivalent */
  padding: 0 15px;        /* THE THOR: 15px side margin */
  display: flex;
  gap: 0;
  align-items: flex-start;
  justify-content: space-between;  /* THE THOR: justify-content: space-between */
}

.l-main {
  width: var(--width-main);   /* THE THOR: calc(70% - 30px) */
  min-width: 0;
}

.l-sidebar {
  width: var(--width-sidebar);  /* THE THOR: 30% */
  flex-shrink: 0;
}

/* =============================================================
   Page Title (archive/search header)
   ============================================================= */
.page-title-wrap {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
  border-left: 4px solid var(--color-primary);
  box-shadow: var(--shadow);
}
.page-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-text);
}
.page-title .cat-label {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: .75rem;
  padding: 2px 8px;
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
}

/* =============================================================
   Article Card (Archive list)
   全記事を1つの白いコンテナに入れ、dotted border で区切る
   → 個々のカードにボックス・影なし、隙間なし
   ============================================================= */
.post-list {
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-card {
  /* サムネイルなし・テキスト主体レイアウト */
  display: block;
  padding: 15px;
  border-bottom: 1px dotted rgba(0,0,0,0.10);
}
.post-card:last-child {
  border-bottom: none;
}
.post-card:hover {
  background: #fafafa;
}

.post-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* 一覧タイトル：サムネイルなしのため大きく・目立つように */
.post-card__title {
  font-size: 1.35rem;
  font-weight: bold;
  line-height: 1.45;
  margin-bottom: 10px;
}
.post-card__title a {
  color: var(--color-text);
  text-decoration: none;
}
.post-card__title a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* THE THOR: .phrase = excerpt text below title */
.post-card__excerpt {
  font-size: 12px;       /* THE THOR: 1.2rem = 12px */
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
  /* 3行でクランプ（THE THOR準拠） */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.post-card__excerpt p { margin: 0; }

/* THE THOR: dateList__item = display:inline-block; color:rgba(0,0,0,0.5); font-size:1.2rem(12px) */
.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;             /* THE THOR: dateList__item margin-right: 5px */
  font-size: 12px;      /* THE THOR: 1.2rem = 12px */
  color: var(--color-text-muted);
  align-items: center;
}
.post-card__meta .icon {
  margin-right: 2.5px;  /* THE THOR: ::before margin-right: 2.5px */
}
.post-card__meta a {
  color: var(--color-text-muted);
  text-decoration: none;
}
/* THE THOR child CSS: li.dateList__item.icon-bubble2 { font-size:13px; font-weight:bold; color:#2271b1 } */
.post-card__meta .comment-count {
  font-size: 13px;
  font-weight: bold;
  color: #2271b1;
}

/* =============================================================
   Infeed Ad Slot
   ============================================================= */
.infeed-ad {
  margin: 12px 0;
  text-align: center;
}

/* =============================================================
   Home Top Block（RSS を post-list と同じ白カードで囲む）
   ============================================================= */
.home-top-block {
  background: #fff;
  box-shadow: var(--shadow);
  margin-top: var(--section-gap);
  margin-bottom: 20px;
  overflow: hidden;
}
.nanashi-ad--home_top_pc,
.nanashi-ad--home_top_sp,
.nanashi-ad--post_top_pc,
.nanashi-ad--post_top_sp {
  margin: 16px 0;
}
/* 記事下部・トップ下部の広告は RSSブロックと十分な間隔を確保 */
.nanashi-ad--post_bottom_pc,
.nanashi-ad--post_bottom_sp,
.nanashi-ad--post_bottom_sp2,
.nanashi-ad--home_bottom_pc,
.nanashi-ad--home_bottom_sp {
  margin: 16px 0 var(--section-gap);
}
.home-top-block:empty {
  display: none;
}
.home-top-block div.rss-site {
  margin: 0;
}
.home-top-block div.rss-site .rss-site-item a {
  padding: 12px 15px;
}
.home-top-block div.rss-site hr {
  margin: 0 15px;
}

.home-description {
  background: #fff;
  box-shadow: var(--shadow);
  margin-top: var(--section-gap);
  margin-bottom: 20px;
  padding: 16px 18px;
  font-size: .95rem;
  line-height: 1.8;
  color: var(--color-text);
}
.home-description p {
  margin: 0;
}

.axis-link-block {
  background: #fff;
  box-shadow: var(--shadow);
  margin: var(--section-gap) 0 20px;
  padding: 16px 18px;
}
.axis-link-title {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 10px;
}
.axis-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.axis-link-list a {
  display: inline-block;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 5px 9px;
  color: var(--color-text);
  text-decoration: none;
  font-size: .88rem;
}
.axis-link-list a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
}

/* =============================================================
   Home Top / Bottom Widget (トップページ専用広告エリア)
   ============================================================= */
.home-top-widget,
.home-bottom-widget {
  margin: 16px 0;
  text-align: left;
  overflow: hidden;   /* 固定幅ウィジェットのはみ出しを防ぐ */
  max-width: 100%;
}

/* ウィジェット内の iframe・img・embed が親幅を超えないようにする */
.home-top-widget iframe,
.home-top-widget img,
.home-top-widget embed,
.home-top-widget object,
.home-bottom-widget iframe,
.home-bottom-widget img,
.home-bottom-widget embed,
.home-bottom-widget object {
  max-width: 100%;
}

/* =============================================================
   YouTube 本文内再生
   ============================================================= */
.nanashi-youtube-embed {
  margin: 20px 0;
  max-width: 100%;
}
.nanashi-youtube-embed-frame {
  aspect-ratio: 16 / 9;
  background: #000;
}
.nanashi-youtube-embed-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =============================================================
   Pagination
   THE THOR: .page-numbers → color:#a83f3f; background:#fff; border:rgba(0,0,0,0.10) 1px solid;
             font-size:1.2rem(12px); padding:10px; margin-left:-1px; transition:.15s
             prev/next: position:relative; padding-left/right:20px; CSS chevron via ::before
   ============================================================= */
.pagination {
  text-align: center;
  font-size: 0;                 /* inline-block の隙間除去 */
  margin-top: 24px;
}
.pagination a,
.pagination .current,
.pagination .dots {
  display: inline-block;
  font-size: 12px;              /* THE THOR: 1.2rem = 12px */
  color: #7f7f7f;               /* THE THOR: fit_bsStyle_themeColor = #7f7f7f */
  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
  padding: 10px;
  min-width: calc(12px + 20px);
  text-align: center;
  text-decoration: none;
  margin-left: -1px;            /* THE THOR: ボーダー重ね */
  vertical-align: middle;
}
.pagination a:hover,
.pagination .current {
  color: #fff;
  background: #7f7f7f;
  border-color: #7f7f7f;
  text-decoration: none;
  opacity: 1;
  transition: .15s;
}
.pagination .current {
  font-weight: bold;
}
.pagination .dots {
  background: #fff;
  color: rgba(0,0,0,0.5);
}
/* prev/next: CSS chevron arrow（THE THOR: .page-numbers.prev/next::before） */
.pagination a.prev,
.pagination a.next  { position: relative; }
.pagination a.prev  { padding-left: 20px; }
.pagination a.next  { padding-right: 20px; }
.pagination a.prev::before,
.pagination a.next::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 5px; height: 5px;
  margin: auto;
  border-top: 1px solid;
}
.pagination a.prev::before {
  left: 10px;
  border-left: 1px solid;
  transform: rotate(-45deg);
}
.pagination a.next::before {
  right: 10px;
  border-right: 1px solid;
  transform: rotate(45deg);
}

/* =============================================================
   Single Post
   ============================================================= */
.post-header {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.post-eyecatch {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
}
.post-eyecatch img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.post-header__body {
  padding: 20px 24px 16px;
}

.post-header__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.post-header__cat-link {
  background: var(--color-primary);
  color: #fff;
  font-size: .75rem;
  padding: 3px 10px;
  border-radius: 3px;
  text-decoration: none;
}
.post-header__cat-link:hover {
  background: var(--color-primary-dk);
  text-decoration: none;
  opacity: 1;
  color: #fff;
}

.post-title {
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.5;
  margin-bottom: 12px;
  color: var(--color-text);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .9rem;
  color: #555;
  align-items: center;
}
.post-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.post-meta .meta-icon {
  font-size: 1.05em;
}
.post-meta a {
  color: #444;
  text-decoration: none;
}
.post-meta a:hover {
  text-decoration: underline;
}
.post-meta .comment-count {
  color: var(--color-primary);
  font-weight: bold;
}
.post-meta .comment-count a {
  color: var(--color-primary);
}

/* =============================================================
   Article Ad Slots (top / bottom)
   ============================================================= */
.post-ad {
  margin: 16px 0;
  text-align: center;
}
.post-ad--double {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.post-ad--double > * {
  flex: 1;
  min-width: 280px;
  text-align: center;
}
.ad-label {
  font-size: .7rem;
  color: #aaa;
  text-align: center;
  display: block;
  margin-bottom: 4px;
}

/* =============================================================
   Post Content (article body)
   ============================================================= */
.post-content {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.85;
}

/* Content typography */
.post-content h2 {
  font-size: 1.3rem;
  font-weight: bold;
  margin: 1.8em 0 .7em;
  padding: .45em .75em;
  border-left: 4px solid var(--color-primary);
  background: #f0f5fb;
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.4;
}
.post-content h3 {
  font-size: 1.15rem;
  font-weight: bold;
  margin: 1.5em 0 .6em;
  padding-bottom: .3em;
  border-bottom: 2px solid var(--color-border);
  line-height: 1.4;
}
.post-content h4 {
  font-size: 1.05rem;
  font-weight: bold;
  margin: 1.2em 0 .5em;
}
.post-content p {
  margin: 0 0 1em;
}
.post-content ul,
.post-content ol {
  margin: 0 0 1em 1.5em;
}
.post-content ul {
  list-style: disc;
}
.post-content ol {
  list-style: decimal;
}
.post-content li {
  margin-bottom: .3em;
}
.post-content blockquote {
  margin: 1em 0;
  padding: .75em 1em;
  background: #f8f8f8;
  border-left: 4px solid var(--color-hr);
  color: #555;
  font-size: .95em;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-content blockquote p:last-child {
  margin-bottom: 0;
}
.post-content table {
  margin: 1em 0;
  font-size: .95em;
}
.post-content table th,
.post-content table td {
  border: 1px solid var(--color-border);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
.post-content table th {
  background: #f0f5fb;
  font-weight: bold;
}
.post-content table tr:nth-child(even) td {
  background: #fafafa;
}
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
  margin: .5em auto;
}
.post-content a {
  color: var(--color-primary);
  text-decoration: underline;
}
.post-content a:hover {
  opacity: .8;
}
.post-content hr {
  border: none;
  border-top: 1px solid var(--color-hr);
  margin: 1.5em 0;
}
.post-content strong, .post-content b {
  font-weight: bold;
}
.post-content em, .post-content i {
  font-style: italic;
}
.post-content code {
  background: #f0f0f0;
  padding: .1em .4em;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  font-size: .9em;
}
.post-content pre {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 1em;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: .88em;
  margin: 1em 0;
}
.post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* WordPress core blocks compat */
.post-content .wp-block-image {
  margin: 1em 0;
}
.post-content .wp-block-image figcaption {
  text-align: center;
  font-size: .82em;
  color: var(--color-text-muted);
  margin-top: .3em;
}

/* =============================================================
   5ch Thread Style (まとめサイト引用レス)
   ============================================================= */
.matome-res {
  background: #f8f9fa;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin: .6em 0;
  font-size: .95em;
  line-height: 1.7;
}
.matome-res .res-num {
  color: var(--color-primary);
  font-weight: bold;
  font-size: .82em;
  display: block;
  margin-bottom: 4px;
}
.matome-res .res-name {
  color: #888;
  font-size: .8em;
}
.matome-res .res-body {
  margin-top: 4px;
  overflow-wrap: anywhere;
}

/* =============================================================
   Post Navigation (prev/next)
   ============================================================= */
.post-nav {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.post-nav__item {
  flex: 1;
  background: var(--color-bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.post-nav__item a {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: bold;
  line-height: 1.6;
}
.post-nav__item a:hover {
  background: #f5f8fb;
  text-decoration: none;
  opacity: 1;
}
.post-nav__dir {
  font-size: .9rem;
  color: var(--color-primary);
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

/* =============================================================
   Related Posts
   ============================================================= */
.related-posts {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.related-posts__title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: var(--section-line);
  color: var(--color-text);
}
.related-posts__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.related-post {
  border-bottom: var(--item-line);
  padding: 12px 0;
}
.related-post:last-child {
  border-bottom: none;
}
.related-post__title {
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0;
}
.related-post__title a {
  color: var(--color-text);
  text-decoration: none;
}
.related-post__title a:hover {
  color: var(--color-primary);
}

/* =============================================================
   Comments
   ============================================================= */
.comments-area {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  padding: 22px 24px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  clear: both;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.comments-title {
  font-size: 1.15rem;
  font-weight: bold;
  margin-bottom: 14px;
  padding-bottom: 9px;
  border-bottom: var(--section-line);
}
.comments-count {
  font-size: .9rem;
  font-weight: normal;
  color: var(--color-text-muted);
  margin-left: 6px;
}

/* Comment list */
.comment-list {
  margin-bottom: 24px;
  padding: 0;
  list-style: none;
  --comment-reply-offset: 37px;
}
.comment-list li {
  list-style: none;
}

.comment-item {
  display: block;
  padding: 12px 10px 14px;
  border-bottom: 1px solid #d6d6d6;
  background: #fff;
}
.comment-item:last-child {
  border-bottom: none;
}

.comment-main {
  min-width: 0;
}
.comment-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: .95rem;
  line-height: 1.5;
}
.comment-number {
  color: #111;
  font-weight: 400;
  text-decoration: none;
}
.comment-author-name {
  font-weight: bold;
  font-size: .95rem;
  color: #008000;
}
.comment-date {
  font-size: .88rem;
  color: #777;
  text-decoration: none;
}
.comment-edit {
  font-size: .88rem;
}
.comment-body {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--color-text);
  padding-left: 1.2em;
}
.comment-body p {
  margin: 0 0 .5em;
}
.comment-body p:last-child {
  margin-bottom: 0;
}
.comment-reply {
  margin-top: 8px;
  padding-left: 1.2em;
}
.comment-reply a {
  font-size: .9rem;
  color: #555;
  text-decoration: none;
  border: 1px solid #cfcfcf;
  padding: 3px 10px;
  border-radius: 3px;
  background: #f8f8f8;
}
.comment-reply a:hover {
  background: #eee;
  text-decoration: none;
  opacity: 1;
}

/* Awaiting moderation */
.comment-awaiting-moderation {
  font-size: .9rem;
  color: #e67e22;
  font-style: italic;
  margin-bottom: 4px;
}

/* Nested comments (replies) */
.comment-list .children {
  padding-left: 24px;
  margin: 0;
  border-left: 3px solid #e0e0e0;
}

/* Comment form */
.comment-form-wrap {
  margin-top: 22px;
  padding: 18px;
  background: #f6f6f6;
  border: 1px solid #d8d8d8;
  border-radius: var(--radius);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.comment-form-wrap,
.comment-list .comment-respond {
  position: relative;
}
.comment-form-wrap {
  overflow: visible;
}
.comment-form-wrap::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  border-top: 1px solid #d6d6d6;
}
.comment-list .comment-respond::after {
  content: "";
  position: absolute;
  left: calc(0px - var(--comment-reply-offset));
  right: 0;
  bottom: -12px;
  border-top: 1px solid #d6d6d6;
}
.comment-list .comment-respond {
  display: block;
}
.comments-area .comment-respond,
.comments-area .comment-form {
  width: 100%;
  max-width: 100%;
}
.comments-area .comment-form p,
.comments-area .comment-form div,
.comments-area .comment-form label,
.comments-area .comment-form input,
.comments-area .comment-form textarea {
  max-width: 100%;
}
.comments-area .comment-reply-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 0 12px;
}
.comment-list .comment-respond {
  margin: 16px 0 8px var(--comment-reply-offset);
  width: calc(100% - var(--comment-reply-offset));
  max-width: calc(100% - var(--comment-reply-offset));
  padding: 18px;
  background: #f3f4f6;
  border: 1px solid #d2d6dc;
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.comment-form-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 16px;
}
.comment-form label {
  display: block;
  font-size: .95rem;
  font-weight: bold;
  margin-bottom: 6px;
  color: #333;
}
.comment-form input[type="text"],
.comment-form textarea {
  width: 100% !important;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #c9c9c9;
  border-radius: 3px;
  font-size: 1rem;
  font-family: var(--font-base);
  background: #fff;
  transition: border-color .2s;
}
.comment-form input[type="text"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
}
.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}
.comment-form-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}
.comment-form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}
.comment-form .submit-btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 11px 28px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: bold;
  cursor: pointer;
  font-family: var(--font-base);
  transition: background .2s;
}
.comment-form .submit-btn:hover {
  background: var(--color-primary-dk);
}
.comment-form .comment-notes {
  font-size: .95rem;
  color: #555;
  margin-bottom: 12px;
}
.comment-form .form-submit {
  margin-top: 12px;
}
.comment-form .cf-turnstile,
.comment-form .h-captcha,
.comment-form .g-recaptcha,
.comment-form iframe {
  max-width: 100%;
}
.comments-area .cf-turnstile,
.comments-area .cf-turnstile > div,
.comments-area .h-captcha,
.comments-area .h-captcha > div,
.comments-area .g-recaptcha,
.comments-area .g-recaptcha > div {
  max-width: 100% !important;
  overflow: hidden;
}

/* =============================================================
   Sidebar / Widgets
   THE THOR プレーンスタイル: ウィジェット自体にはボックスなし
   ダーク見出し + コンテンツが直接 eaeaea 背景上に並ぶ
   THE THOR: .widget { margin: 0 auto 40px auto; }
   ============================================================= */
.l-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;    /* 白カードウィジェット間のスペース */
}

.widget {
  /* THE THOR: 白カード + タイトルを負マージンで全幅に伸ばすスタイル */
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 15px;   /* コンテンツのパディング（タイトルは負マージンで全幅へ） */
  overflow: hidden;
}
.widget-title {
  font-size: 15px;     /* THE THOR: 1.5rem = 15px */
  font-weight: bold;
  background: #333333; /* THE THOR: fit_conWidget_color */
  color: #fff;
  padding: 10px 15px;
  margin: -15px -15px 15px -15px;  /* THE THOR方式: 負マージンで全幅に伸ばす */
}

/* Sticky widget */
.widget-sticky {
  position: sticky;
  top: 72px;
}

/* Recent posts widget */
.widget ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 1.05rem;
  font-weight: 500;
  list-style: none;
}
.widget ul li:last-child {
  border-bottom: none;
}
.widget ul li a {
  color: #222;
  text-decoration: none;
  line-height: 1.7;
  display: block;
}
.widget ul li a:hover {
  color: var(--color-primary);
}

/* Category widget */
.widget_categories ul li {
  display: flex;
  justify-content: space-between;
}
.widget_categories ul li a {
  color: var(--color-text);
}

/* =============================================================
   Footer
   ============================================================= */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  margin-top: var(--section-gap);
}

.footer-widgets {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 28px 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ============================================================
   広告 PC/SP 出し分け
   タブレット = SP扱い（〜1023px）, PC = 1024px〜
   ============================================================ */

/* SP/タブレット専用: PCでは非表示 */
.nanashi-ad--sidebar_sp,
.nanashi-inarticle-ad { display: none; }

/* PC専用: デフォルト表示 */
.nanashi-ad--sidebar_pc1,
.nanashi-ad--sidebar_pc2,
.nanashi-ad--sidebar_keep { display: block; }

/* 広告の PC/SP 出し分けは wp_is_mobile() でサーバーサイドに完全移行。
   CSS による display 制御は廃止（同一タグ重複出力防止のため）。
   サイドバー広告は sidebar.php の wp_is_mobile() 条件で制御済み。 */

/* 記事内広告スタイル */
.nanashi-inarticle-ad {
  margin: 20px 0;
  text-align: center;
}

/* サイドバー: カテゴリーリスト */
.sidebar-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-cat-list li {
  border-bottom: 1px dotted rgba(0,0,0,0.10);
  padding: 10px 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.7;
}
.sidebar-cat-list li:last-child {
  border-bottom: none;
}
.widget .sidebar-cat-list a {
  display: inline;
  color: #222;
  text-decoration: none;
}
.sidebar-cat-list a:hover {
  color: var(--color-primary);
}

/* サイドバー: アンテナサイト リンク集（CSV連携予定） */
.sidebar-links a {
  display: block;
  color: #222;
  text-decoration: none;
  padding: 9px 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.7;
}
.sidebar-links a:hover {
  color: var(--color-primary);
}
.sidebar-links hr {
  margin: 0;
  padding: 0;
  border: none;
  border-top: 1px dotted rgba(0,0,0,0.10);
}

/* サイドバー: 最近のコメント */
.sidebar-comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-comment-list li {
  border-bottom: 1px dotted rgba(0,0,0,0.10);
  padding: 10px 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.7;
}
.sidebar-comment-list li:last-child {
  border-bottom: none;
}
.sidebar-comment-list a {
  color: #222;
  text-decoration: none;
}
.sidebar-comment-list a:hover {
  color: var(--color-primary);
}
.sidebar-comment-text {
  display: block;
}
.sidebar-comment-post {
  display: block;
  margin-top: 3px;
  color: var(--color-text-muted);
  font-size: .82rem;
  font-weight: 400;
}

/* お問い合わせフォーム [nanashi_contact] */
.nanashi-contact-form{max-width:640px}
.nanashi-contact-field{margin-bottom:20px}
.nanashi-contact-field label{display:block;font-weight:bold;margin-bottom:6px}
.nanashi-contact-field input[type="text"],.nanashi-contact-field input[type="email"],.nanashi-contact-field input[type="tel"],.nanashi-contact-field input[type="number"],.nanashi-contact-field textarea{width:100%;padding:10px 12px;border:1px solid #ccc;border-radius:4px;font-size:14px;box-sizing:border-box;background:#f5f5f5}
.nanashi-contact-field input:focus,.nanashi-contact-field textarea:focus{outline:none;border-color:var(--color-primary);background:#fff}
.nanashi-contact-row{display:flex;gap:12px}
.nanashi-contact-row>div{flex:1}
.nanashi-contact-row span{display:block;font-size:12px;color:#666;margin-bottom:4px}
.nanashi-contact-field small{display:block;font-size:12px;color:#888;margin-top:4px}
.required{background:#dc3545;color:#fff;font-size:11px;padding:2px 6px;border-radius:3px;margin-left:6px;font-weight:normal}
.nanashi-contact-buttons{margin-top:24px;display:flex;gap:12px}
.nanashi-contact-buttons button{padding:12px 32px;border:none;border-radius:4px;cursor:pointer;font-size:15px;background:#333;color:#fff}
.nanashi-contact-buttons .btn-back{background:#888}
.nanashi-contact-buttons button:hover{opacity:.85}
.nanashi-contact-error{background:#fff3f3;border-left:4px solid #dc3545;padding:12px;margin-bottom:16px;color:#dc3545}
.nanashi-contact-result{background:#f0fff4;border-left:4px solid #28a745;padding:16px}
.nanashi-contact-table{width:100%;border-collapse:collapse;margin:16px 0}
.nanashi-contact-table th,.nanashi-contact-table td{padding:10px 12px;border-bottom:1px solid #eee;text-align:left;vertical-align:top}
.nanashi-contact-table th{width:160px;font-weight:bold;background:#f9f9f9}

/* サイドバー: ランキングプレースホルダー */
.widget-placeholder {
    font-size: 1.05rem;
    color: #333;
    font-weight: 500;
    margin: 0;
    padding: 12px 0;
    line-height: 1.7;
  }

  /* サイドバー: 人気記事ランキング */
  .nanashi-ranking-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .nanashi-ranking-list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 8px;
    align-items: start;
    border-bottom: 1px dotted rgba(0,0,0,0.10);
    padding: 10px 0;
  }
  .nanashi-ranking-list li:last-child {
    border-bottom: none;
  }
  .nanashi-ranking-rank {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1;
    padding-top: 2px;
    text-align: center;
  }
  .nanashi-ranking-list li:nth-child(1) .nanashi-ranking-rank {
    background: #e7c84c;
    color: #fff;
  }
  .nanashi-ranking-list li:nth-child(2) .nanashi-ranking-rank {
    background: #9fb7c5;
    color: #fff;
  }
  .nanashi-ranking-list li:nth-child(3) .nanashi-ranking-rank {
    background: #c78954;
    color: #fff;
  }
  .nanashi-ranking-list li:nth-child(n+4) .nanashi-ranking-rank {
    background: #c7ccd1;
    color: #fff;
  }
  .nanashi-ranking-list a {
    color: #222;
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.65;
    text-decoration: none;
  }
  .nanashi-ranking-list a:hover {
    color: var(--color-primary);
  }

  .footer-widgets .widget {
  background: none;
  box-shadow: none;
  padding: 0;
}
.footer-widgets .widget-title {
  background: rgba(255,255,255,.1);
  color: var(--color-footer-text);
  font-size: .9rem;
}
.footer-widgets .widget ul li {
  border-bottom-color: rgba(255,255,255,.1);
}
.footer-widgets .widget ul li a {
  color: rgba(255,255,255,.8);
}
.footer-widgets .widget ul li a:hover {
  color: #fff;
}

/* THE THOR: .bottomFooter { background:#191919; padding:40px 0; } */
.footer-bottom {
  background: #191919;  /* THE THOR: .bottomFooter background（#333333 より暗い） */
}
.footer-bottom-inner {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 40px 16px 100px; /* top:40px / bottom:100px → オーバーレイ広告（約80px）の上にコンテンツを確保 */
  text-align: center;
}
/* THE THOR: .bottomFooter__navi { margin-bottom:20px } */
.footer-nav {
  margin-bottom: 20px;
}
/* THE THOR: .bottomFooter__list li { display:inline-block; font-size:1.4rem(14px); font-weight:700 }
             .bottomFooter__list li a { margin:0 10px; border-bottom:2px solid transparent } */
.footer-nav a {
  display: inline-block;
  margin: 0 10px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  line-height: 1.5;
  transition: .15s;
}
.footer-nav a:hover {
  border-color: #ffffff;
  opacity: 1;
}
/* THE THOR: .bottomFooter__copyright { text-align:center; color:#BFBFBF; letter-spacing:0.5px; line-height:1.75 } */
.footer-copyright {
  color: #BFBFBF;
  letter-spacing: 0.5px;
  line-height: 1.75;
  font-size: 13px;
}
.footer-copyright a {
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
}
.footer-copyright a:hover {
  opacity: .8;
}

/* Back to top
   THE THOR: .bottomFooter__topBtn { position:fixed; bottom:0; right:0; width:40px; height:40px;
             background-color:#a83f3f; color:#fff; z-index:999; }
*/
.back-to-top {
  position: fixed;
  bottom: 85px;          /* オーバーレイ広告（約80px）の上に出す */
  right: 0;              /* THE THOR: right:0（画面端） */
  width: 40px;
  height: 40px;
  background: #888;
  color: #fff;
  border-radius: 0;      /* THE THOR: 角丸なし（正方形） */
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 999;          /* THE THOR: z-index:999 */
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  opacity: .75;          /* THE THOR: .bottomFooter__topBtn:hover { opacity:0.75 } */
  text-decoration: none;
}

/* =============================================================
   404 / No results
   ============================================================= */
.not-found {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.not-found h1 {
  font-size: 3rem;
  color: var(--color-border);
  margin-bottom: 12px;
}
.not-found p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}
.not-found .home-link {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: bold;
}
.not-found .home-link:hover {
  background: var(--color-primary-dk);
  text-decoration: none;
  opacity: 1;
}

/* =============================================================
   Search form (page / sidebar)
   ============================================================= */
.search-form {
  display: flex;
  gap: 0;
}
.search-form input[type="search"] {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: 0;            /* THE THOR: 角丸なし */
  font-size: .95rem;
  font-family: var(--font-base);
  background: #fafafa;
}
.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--color-theme);  /* THE THOR: fit_bsStyle_themeColor */
  background: #fff;
}
.search-form button {
  background: var(--color-theme);    /* THE THOR: fit_bsStyle_themeColor = #7f7f7f */
  color: #fff;
  border: none;
  padding: 0 16px;
  border-radius: 0;                  /* THE THOR: 角丸なし */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.search-form button:hover {
  background: #696969;               /* #7f7f7f より少し暗め */
  opacity: 1;
}

/* =============================================================
   Utility
   ============================================================= */
.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.text-muted {
  color: var(--color-text-muted);
}

/* =============================================================
   Responsive
   ============================================================= */

/* Tablet (768px–1024px) */
@media (max-width: 1024px) {
  :root {
    --width-main:    64%;
    --width-sidebar: 32%;
  }
  .l-sidebar {
    width: 260px;
  }
  .footer-widgets {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (max 767px) → single column */
@media (max-width: 767px) {
  :root {
    --font-size-base: 14px;
  }

  /* Header */
  .header-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 12px 16px;
  }
  .site-logo {
    grid-column: 1;
  }
  .site-logo a {
    font-size: 1.2rem;
  }
  .global-nav {
    display: none;
  }

  /* Layout: stack to single column */
  .l-wrapper {
    flex-direction: column;
    margin: 20px auto;
    gap: 0;
  }
  .l-main {
    width: 100%;
    margin-bottom: 20px;
  }
  .l-sidebar {
    width: 100%;
    gap: 20px;   /* モバイルは間隔を縮小 */
  }

  /* Post card: モバイルは padding を縮小 */
  .post-card {
    padding: 10px;
  }
  /* Post title */
  .post-title {
    font-size: 1.5rem;
  }
  /* 一覧タイトル: モバイルでも大きく */
  .post-card__title {
    font-size: 1.25rem;
  }

  /* Related posts */

  /* Post nav */
  .post-nav {
    flex-direction: column;
  }

  /* Footer widgets */
  .footer-widgets {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    gap: 16px;
  }

  /* Footer bottom: THE THOR child CSS → margin-bottom: 120px for overlay ad clearance */
  .footer-bottom-inner {
    padding-bottom: 120px;  /* THE THOR child CSS: 120px mobile */
  }
  /* back-to-top: モバイル広告（約110px）の上に出す */
  .back-to-top {
    bottom: 115px;
  }

  /* Comment nested */
  .comment-list {
    --comment-reply-offset: 33px;
  }
  .comment-list .children {
    padding-left: 20px;
  }
  .comment-list .comment-respond {
    padding: 14px;
  }

  /* Post ad double: stack */
  .post-ad--double {
    flex-direction: column;
  }

  /* Page title */
  .page-title {
    font-size: 1rem;
  }
}



/* =============================================================
   Axis Page (軸ページ)
   ============================================================= */
.axis-page {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.axis-page-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 12px;
  line-height: 1.4;
  border-left: 4px solid var(--color-primary);
  padding-left: 12px;
}

.axis-page-content {
  margin-bottom: 16px;
  line-height: 1.8;
}

.axis-updated {
  font-size: .8rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

/* カテゴリ別セクション */
.axis-categories-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.axis-category-section {
  border-top: 2px solid var(--color-border);
  padding-top: 20px;
}

.axis-category-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 14px;
}
.axis-category-title a {
  color: var(--color-text);
  text-decoration: none;
}
.axis-category-title a:hover {
  color: var(--color-primary);
}

/* 記事リスト */
.axis-post-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.axis-post-item {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
}
.axis-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.axis-post-link {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--color-text);
  text-decoration: none;
}
.axis-post-link:hover {
  text-decoration: none;
  opacity: 1;
}
.axis-post-link:hover .axis-post-title {
  color: var(--color-primary);
}

.axis-post-thumb {
  width: 100px;
  height: 56px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  background: #ddd;
  display: block;
}
.axis-post-thumb.no-image {
  background: #e8ecf0;
}

.axis-post-info {
  flex: 1;
  min-width: 0;
}

.axis-post-title {
  display: block;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.5;
  margin-bottom: 4px;
  transition: color .15s;
}

.axis-post-date {
  font-size: .78rem;
  color: var(--color-text-muted);
}

/* もっと見るリンク */
.axis-more-link {
  display: inline-block;
  margin-top: 8px;
  font-size: .85rem;
  color: var(--color-primary);
  text-decoration: none;
  border: 1px solid var(--color-primary);
  padding: 5px 14px;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
}
.axis-more-link:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  opacity: 1;
}

/* カテゴリ未設定メッセージ */
.axis-no-categories {
  color: var(--color-text-muted);
  font-size: .9rem;
  border: 1px dashed var(--color-border);
  padding: 16px;
  border-radius: var(--radius);
}

/* 404ページ: 最新記事 */
.not-found-recent {
  margin-top: 28px;
  text-align: left;
}
.not-found-recent-title {
  font-size: .95rem;
  font-weight: bold;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  text-align: center;
}
.not-found-post-list {
  list-style: none;
  border-top: 1px solid var(--color-border);
}
.not-found-post-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: .88rem;
}
.not-found-post-item a {
  color: var(--color-text);
  text-decoration: none;
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}
.not-found-post-item a:hover {
  color: var(--color-primary);
}
.not-found-post-date {
  font-size: .78rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Responsive: Axis Page */
@media (max-width: 767px) {
  .axis-page {
    padding: 16px;
  }
  .axis-page-title {
    font-size: 1.2rem;
  }
  .axis-post-thumb {
    width: 80px;
    height: 45px;
  }
}

/* =============================================================
   RSS アンテナ表示（rss-antenna-site 互換・プラグイン不要）
   ============================================================= */
div.rss-site {
  margin: 0 2px;
  text-align: left;
}
div.rss-site .rss-site-item a {
  text-decoration: none;
  display: block;
  padding: 10px 0;
  overflow: hidden;
  color: var(--color-text);
}
div.rss-site .rss-site-item a:hover {
  background-color: #f5f5f5;
}
div.rss-site .rss-site-item p {
  margin: 2px 0 0;
  line-height: 1.2;
}
div.rss-site .rss-site-item .title {
  font-weight: bold;
  line-height: 1.5;
  padding: 0 5px;
}
div.rss-site hr {
  margin: 0;
  padding: 0;
  border: none;
  border-top: var(--item-line);
}
span.newmark {
  font-size: 74%;
  padding: 0 5px 1px;
  margin: 0 5px 0 0;
  vertical-align: middle;
  position: relative;
  top: -1px;
  color: #fff;
  background-color: #ff4500;
  border-radius: 3px;
}
@media (max-width: 768px) {
  div.rss-site .rss-site-item .title {
    font-size: 14px;
  }
}

/* =============================================================
   RSS Widget [matome_rss]
   ============================================================= */
.matome-rss-widget {
  margin: 12px 0;
  text-align: left;
}

.matome-rss-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
  padding: 4px 8px;
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg-sub, #f5f5f5);
}

.matome-rss-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.matome-rss-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border, #e0e0e0);
  font-size: .9rem;
  line-height: 1.4;
}

.matome-rss-item:last-child {
  border-bottom: none;
}

.matome-rss-link {
  flex: 1;
  color: var(--color-text);
  text-decoration: none;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.matome-rss-link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.matome-rss-date {
  font-size: .75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .matome-rss-item {
    flex-direction: column;
    gap: 2px;
  }
  .matome-rss-date {
    font-size: .7rem;
  }
}

/* MatomeBot article blocks */
.matomebot-article {
  margin: 1.5rem 0;
}
.matomebot-res {
  margin: .6em 0;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #f8fafc;
  font-size: .95em;
  line-height: 1.7;
}
.matomebot-res-meta {
  margin-bottom: 0.45rem;
  color: var(--color-primary);
  font-size: .82em;
  font-weight: 700;
}
.matomebot-res-body {
  line-height: 1.8;
  overflow-wrap: anywhere;
  word-break: normal;
}
.matomebot-source {
  margin-top: 1.5rem;
  color: #526070;
  font-size: 0.9rem;
}
.matomebot-source a {
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .matomebot-article {
    margin: 1rem 0;
  }
  .matomebot-res {
    padding: 0.8rem 0.85rem;
  }
  .matomebot-res-meta {
    font-size: 0.82rem;
  }
}
