@charset "UTF-8";
:root {
  --color-primary: var(--theme-primary-color, #1a73e8);
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg: #f5f5f5;
  --color-white: #ffffff;
  --color-border: #dddddd;
  --font-family-base: Noto Sans JP, sans-serif;
  --breakpoint-mobile: 767px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: #333333;
  line-height: 1.6;
  margin: 0;
  background-color: var(--theme-bg-color, #f5f5f5);
}

a {
  color: var(--theme-primary-color, #1a73e8);
  text-decoration: none;
  transition: opacity 0.3s;
}
a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.l-header {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 100;
}
.l-header__top {
  background-color: var(--theme-header-bg, #ffffff);
  background-image: var(--theme-header-bg-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}
.l-header__top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--theme-header-overlay-color, #000000);
  opacity: var(--theme-header-overlay-opacity, 0);
  pointer-events: none;
  z-index: 1;
}
.l-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}
.l-header__nav {
  background: var(--theme-nav-bg, #ffffff);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s;
}
.l-header__nav.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.l-header--custom {
  box-shadow: none;
}
.l-header--custom .l-header__top {
  background-color: var(--theme-header-bg, #2d4a2d);
  background-image: var(--theme-header-bg-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: none;
  padding: 15px 0;
}
.l-header--custom .l-header__inner {
  padding: 25px 20px;
}
.l-header--custom .l-header__nav {
  background: var(--theme-nav-bg, #243d24);
  border-bottom: none;
}
.l-header--custom .c-logo a {
  color: var(--theme-header-text, #fff);
}
.l-header--custom .c-hamburger__line {
  background-color: var(--theme-header-text, #fff);
}
.l-header--custom .c-global-nav__list > li > a {
  color: var(--theme-nav-text, #fff);
}

/* --- カテゴリースライダー --- */
.c-slider {
  margin-bottom: 32px;
  width: 100%;
}
.c-slider__inner {
  position: relative;
  padding: 0 48px;
}
.c-slider__track-wrapper {
  overflow: hidden;
  width: 100%;
}
.c-slider__track {
  display: flex;
  gap: 0;
  padding: 8px 0;
  transition: transform 0.4s ease-in-out;
}
.c-slider__item {
  flex: 0 0 auto;
  position: relative;
  width: calc((100vw - 96px - 48px) / 3.5);
  margin-right: 16px;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: visible;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.c-slider__item:last-child {
  margin-right: 0;
}
.c-slider__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.c-slider__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #e9e9e9;
  border-radius: 8px 8px 0 0;
}
.c-slider__thumb img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.c-slider__no-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #ccc;
}
.c-slider__body {
  padding: 12px 14px 16px;
}
.c-slider__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.c-slider__cat {
  background: var(--theme-primary-color, #1a73e8);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  line-height: 1.4;
}
.c-slider__date {
  font-size: 12px;
  color: var(--color-text-light, #666666);
}
.c-slider__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--color-text, #333333);
}
.c-slider__rank {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
  background: #888;
  z-index: 3;
}
.c-slider__rank--1 {
  background: linear-gradient(135deg, #ffd700, #ffb300);
  box-shadow: 0 2px 6px rgba(255, 179, 0, 0.4);
}
.c-slider__rank--2 {
  background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
  box-shadow: 0 2px 6px rgba(160, 160, 160, 0.4);
}
.c-slider__rank--3 {
  background: linear-gradient(135deg, #cd7f32, #a0522d);
  box-shadow: 0 2px 6px rgba(160, 82, 45, 0.4);
}
.c-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.c-slider__arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}
.c-slider__arrow--prev {
  left: 6px;
}
.c-slider__arrow--next {
  right: 6px;
}

@media (max-width: 767px) {
  .c-slider__inner {
    padding: 0 36px;
  }
  .c-slider__item {
    width: 260px;
  }
  .c-slider__arrow {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
}
.l-main {
  padding: 40px 20px;
}

.l-footer {
  background-color: var(--theme-footer-bg, #222);
  color: var(--theme-footer-text, #ffffff);
  text-align: center;
  margin-top: 60px;
}
.l-footer__widgets {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px 20px;
  text-align: left;
}
.l-footer__widgets-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.l-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}
.l-footer a {
  color: var(--theme-footer-text, #ffffff);
  opacity: 0.8;
}
.l-footer a:hover {
  opacity: 1;
}

/* --- フッターウィジェット --- */
.c-footer-widget {
  flex: 1;
  min-width: 250px;
}
.c-footer-widget__title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--theme-footer-text, #ffffff);
}
.c-footer-widget__text {
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
  opacity: 0.85;
}
.c-footer-widget--category {
  flex: 1.5;
}

.c-footer-category {
  display: flex;
  gap: 40px;
}
.c-footer-category__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.c-footer-category__item {
  margin-bottom: 8px;
}
.c-footer-category__item a {
  font-size: 14px;
  opacity: 0.85;
  display: inline-block;
}
.c-footer-category__item a::before {
  content: "・";
  margin-right: 4px;
}
.c-footer-category__item a:hover {
  opacity: 1;
}

@media (max-width: 767px) {
  .l-footer__widgets-inner {
    flex-direction: column;
    gap: 32px;
  }
  .c-footer-widget {
    min-width: 100%;
  }
  .c-footer-category {
    gap: 24px;
  }
}
/* --- フッターメニュー --- */
.c-footer-nav {
  margin-bottom: 24px;
}
.c-footer-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.c-footer-nav__list li {
  position: relative;
}
.c-footer-nav__list li:not(:last-child)::after {
  content: "|";
  margin: 0 12px;
  opacity: 0.3;
}
.c-footer-nav__list li a {
  color: var(--theme-footer-text, #ffffff);
  font-size: 14px;
  opacity: 0.85;
  transition: opacity 0.2s;
  text-decoration: none;
}
.c-footer-nav__list li a:hover {
  opacity: 1;
  text-decoration: underline;
}

.l-container {
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .l-container--2col {
    display: flex;
    gap: 40px;
  }
}
.l-container--page {
  max-width: 800px;
}
.l-container__main {
  flex: 1;
  min-width: 0;
}

.l-sidebar {
  width: 100%;
  margin-top: 40px;
}
@media (min-width: 768px) {
  .l-sidebar {
    width: 300px;
    margin-top: 0;
    flex-shrink: 0;
  }
}

/* --- Logo (中央配置) --- */
.c-logo {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}
.c-logo a {
  color: var(--theme-header-text, #333333);
  display: inline-block;
}
.c-logo__img {
  max-width: var(--theme-logo-width-sp, 150px);
  height: auto;
  display: block;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .c-logo__img {
    max-width: var(--theme-logo-width, 200px);
  }
}
.c-logo__desc {
  font-size: 11px;
  font-weight: 400;
  margin: 8px 0 0;
  color: var(--theme-header-desc-color, #666666);
  line-height: 1.5;
  max-width: 100%;
  word-break: break-word;
}
@media (min-width: 768px) {
  .c-logo__desc {
    font-size: 12px;
  }
}

/* --- SPバランス用スペーサー --- */
.c-header-spacer {
  display: none;
}

/* --- Hamburger Menu (SP用) --- */
.c-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: var(--theme-hamburger-bg, #ffffff);
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  padding: 10px;
  z-index: 9999;
  position: fixed;
  right: 10px;
  top: 10px;
}
@media (min-width: 768px) {
  .c-hamburger {
    display: none;
  }
}
.c-hamburger__line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--theme-hamburger-line, #333333);
  margin: 3px 0;
  transition: transform 0.3s, opacity 0.3s;
}
.c-hamburger[aria-expanded=true] .c-hamburger__line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.c-hamburger[aria-expanded=true] .c-hamburger__line:nth-child(2) {
  opacity: 0;
}
.c-hamburger[aria-expanded=true] .c-hamburger__line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Global Navigation (下段カテゴリーバー) --- */
.c-global-nav {
  display: none;
  background: var(--theme-nav-bg, #ffffff);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.c-global-nav.is-active {
  display: block;
}
@media (min-width: 768px) {
  .c-global-nav {
    display: block;
    box-shadow: none;
  }
}
.c-global-nav__list {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .c-global-nav__list {
    flex-direction: row;
    justify-content: center;
  }
}
.c-global-nav__list > li {
  position: relative;
  /* --- Dropdown Style (子カテゴリー) --- */
  /* PC時：Hoverで子カテゴリーのドロップダウンを表示 */
}
.c-global-nav__list > li:not(:last-child) {
  border-right: 1px solid #dddddd;
}
.c-global-nav__list > li > a {
  display: block;
  padding: 12px 20px;
  color: var(--theme-nav-text, #333333);
  font-weight: 500;
  font-size: 20px;
}
.c-global-nav__list > li > a:hover {
  background-color: rgba(26, 115, 232, 0.05);
}
.c-global-nav__list > li ul.sub-menu,
.c-global-nav__list > li ul.children {
  display: none;
  background: #fafafa;
}
@media (min-width: 768px) {
  .c-global-nav__list > li ul.sub-menu,
.c-global-nav__list > li ul.children {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 200;
    /* CSS Animation: フェードイン */
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  }
}
.c-global-nav__list > li ul.sub-menu li a,
.c-global-nav__list > li ul.children li a {
  display: block;
  padding: 10px 20px;
  color: #333333;
  font-size: 14px;
  border-bottom: 1px solid #dddddd;
}
.c-global-nav__list > li ul.sub-menu li a:hover,
.c-global-nav__list > li ul.children li a:hover {
  background-color: rgba(26, 115, 232, 0.05);
  color: var(--theme-primary-color, #1a73e8);
}
@media (min-width: 768px) {
  .c-global-nav__list > li:hover ul.sub-menu,
.c-global-nav__list > li:hover ul.children {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Cards Grid (トップページ等) --- */
.l-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .l-card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}
@media (min-width: 768px) {
  .l-card-grid--archive {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Card Component --- */
.c-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.c-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.c-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}
.c-card__link:hover {
  opacity: 1;
}
.c-card__thumbnail {
  position: relative;
  padding-top: 56.25%;
  /* 16:9 Aspect Ratio */
  background: #eee;
}
.c-card__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.c-card__img--placeholder {
  -o-object-fit: contain;
     object-fit: contain;
  padding: 20px;
  opacity: 0.5;
}
.c-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.c-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.c-card__badge {
  background: var(--theme-primary-color, #1a73e8);
  color: #ffffff;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 4px;
}
.c-card__date {
  font-size: 13px;
  color: #666666;
  font-weight: 500;
}
.c-card__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.4;
}
.c-card__excerpt {
  font-size: 14px;
  color: #666666;
  margin-top: auto;
}

/* --- Single Post Component --- */
.c-single-post {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
@media (min-width: 768px) {
  .c-single-post {
    padding: 40px;
  }
}
.c-single-post__header {
  margin-bottom: 30px;
}
.c-single-post__category {
  margin-bottom: 15px;
}
.c-single-post__title {
  font-size: 24px;
  margin: 0 0 15px;
  line-height: 1.4;
}
@media (min-width: 768px) {
  .c-single-post__title {
    font-size: 32px;
  }
}
.c-single-post__meta {
  color: #666666;
  font-size: 14px;
}
.c-single-post__thumbnail {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}
.c-single-post__thumbnail img {
  width: 100%;
}
.c-single-post__content h2 {
  font-size: 22px;
  border-left: 4px solid var(--theme-primary-color, #1a73e8);
  padding-left: 10px;
  margin: 40px 0 20px;
}
.c-single-post__content h3 {
  font-size: 18px;
  margin: 30px 0 15px;
}
.c-single-post__content p {
  margin-bottom: 20px;
}
.c-single-post__content img {
  border-radius: 4px;
}
.c-single-post__content iframe {
  display: block;
  max-width: 100%;
  margin: 20px 0;
}
.c-single-post__content .wp-block-embed {
  margin: 20px 0;
  max-width: 100%;
}
.c-single-post__content .wp-block-embed__wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.c-single-post__content .wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
.c-single-post__content .wp-block-embed figcaption {
  font-size: 13px;
  color: #666;
  text-align: center;
  margin-top: 8px;
}
.c-single-post__content > iframe,
.c-single-post__content p > iframe {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16/9;
}

/* --- Page Component --- */
.c-page {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
@media (min-width: 768px) {
  .c-page {
    padding: 40px;
  }
}
.c-page__header {
  margin-bottom: 30px;
}
.c-page__title {
  font-size: 24px;
  margin: 0;
  line-height: 1.4;
}
@media (min-width: 768px) {
  .c-page__title {
    font-size: 32px;
  }
}
.c-page__content h2 {
  font-size: 22px;
  border-left: 4px solid var(--theme-primary-color, #1a73e8);
  padding-left: 10px;
  margin: 40px 0 20px;
}
.c-page__content h3 {
  font-size: 18px;
  margin: 30px 0 15px;
}
.c-page__content p {
  margin-bottom: 20px;
}
.c-page__content img {
  border-radius: 4px;
}

/* --- Related Posts --- */
.c-related-posts {
  margin-top: 60px;
}
.c-related-posts__title {
  font-size: 22px;
  margin: 0 0 20px;
  text-align: center;
}

.c-badge {
  display: inline-block;
  background: var(--theme-primary-color, #1a73e8);
  color: #ffffff;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 4px;
  margin-right: 8px;
}
.c-badge:hover {
  color: #ffffff;
}

/* --- Sidebar / Widget --- */
.c-widget {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  /* Search Form Style (WPデフォルトウィジェット用フォールバック) */
}
.c-widget__title {
  font-size: 18px;
  border-bottom: 2px solid var(--theme-primary-color, #1a73e8);
  padding-bottom: 10px;
  margin: 0 0 20px;
}
.c-widget ul li {
  border-bottom: 1px dashed #dddddd;
  padding: 10px 0;
}
.c-widget ul li:last-child {
  border-bottom: none;
}
.c-widget ul li a {
  color: #333333;
}
.c-widget ul li a:hover {
  color: var(--theme-primary-color, #1a73e8);
}
.c-widget .search-form {
  display: flex;
}
.c-widget .search-form .search-field {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #dddddd;
  border-radius: 4px 0 0 4px;
  outline: none;
}
.c-widget .search-form .search-field:focus {
  border-color: var(--theme-primary-color, #1a73e8);
}
.c-widget .search-form .search-submit {
  background: var(--theme-primary-color, #1a73e8);
  color: #ffffff;
  border: none;
  padding: 8px 15px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

/* ブロックウィジェット（メインサイドバー） */
.l-sidebar .widget_block {
  color: #333333;
  font-size: 14px;
  line-height: 1.6;
}
.l-sidebar .widget_block a {
  color: var(--theme-primary-color, #1a73e8);
}
.l-sidebar .widget_block .wp-block-latest-posts,
.l-sidebar .widget_block .wp-block-archives,
.l-sidebar .widget_block .wp-block-categories,
.l-sidebar .widget_block .wp-block-page-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.l-sidebar .widget_block .wp-block-latest-posts li,
.l-sidebar .widget_block .wp-block-archives li,
.l-sidebar .widget_block .wp-block-categories li,
.l-sidebar .widget_block .wp-block-page-list li {
  border-bottom: 1px dashed #dddddd;
  padding: 10px 0;
}
.l-sidebar .widget_block .wp-block-latest-posts li:last-child,
.l-sidebar .widget_block .wp-block-archives li:last-child,
.l-sidebar .widget_block .wp-block-categories li:last-child,
.l-sidebar .widget_block .wp-block-page-list li:last-child {
  border-bottom: none;
}
.l-sidebar .widget_block .wp-block-search__input {
  border: 1px solid #dddddd;
  border-radius: 4px;
  padding: 8px 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* --- スタイリッシュな検索フォーム --- */
.c-search-form__inner {
  display: flex;
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 50px;
  padding: 4px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.c-search-form__inner:focus-within {
  border-color: var(--theme-primary-color, #1a73e8);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}
.c-search-form__input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
  font-family: "Noto Sans JP", sans-serif;
  color: #333333;
}
.c-search-form__input::-moz-placeholder {
  color: #aaa;
}
.c-search-form__input::placeholder {
  color: #aaa;
}
.c-search-form__btn {
  background: var(--theme-primary-color, #1a73e8);
  color: #ffffff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s;
  flex-shrink: 0;
}
.c-search-form__btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}
.c-search-form__btn svg {
  width: 18px;
  height: 18px;
}

/* --- サムネイル付き最近の投稿 --- */
.c-recent-posts {
  list-style: none;
  margin: 0;
  padding: 0;
}
.c-recent-posts__item {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}
.c-recent-posts__item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.c-recent-posts__link {
  display: flex;
  gap: 12px;
  color: #333333;
  align-items: flex-start;
  transition: opacity 0.3s;
}
.c-recent-posts__link:hover {
  opacity: 0.7;
}
.c-recent-posts__thumb {
  width: 70px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f0f0;
}
.c-recent-posts__img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.c-recent-posts__noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #bbb;
}
.c-recent-posts__info {
  flex: 1;
  min-width: 0;
}
.c-recent-posts__post-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.c-recent-posts__date {
  font-size: 11px;
  color: #666666;
  margin-top: 4px;
  display: block;
}

/* --- カテゴリーリスト（アイコン・件数付き） --- */
.c-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.c-category-list__item {
  margin-bottom: 2px;
}
.c-category-list__item.is-active .c-category-list__link {
  background: rgba(26, 115, 232, 0.08);
  color: var(--theme-primary-color, #1a73e8);
  font-weight: 600;
}
.c-category-list__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #333333;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.c-category-list__link:hover {
  background: #f5f5f5;
  color: var(--theme-primary-color, #1a73e8);
}
.c-category-list__icon {
  flex-shrink: 0;
  opacity: 0.5;
}
.c-category-list__name {
  flex: 1;
  font-size: 14px;
}
.c-category-list__count {
  background: #f0f0f0;
  color: #666666;
  font-size: 11px;
  font-weight: 600;
  min-width: 24px;
  height: 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

/* --- タグリスト（フレックス横並び） --- */
.c-tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.c-tag-list__item {
  border-bottom: none !important;
  padding: 0 !important;
  margin: 0;
}
.c-tag-list__item.is-active .c-tag-list__link {
  background: var(--theme-primary-color, #1a73e8);
  color: #fff;
  border-color: var(--theme-primary-color, #1a73e8);
}
.c-tag-list__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 13px;
  color: #333333;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.c-tag-list__link:hover {
  background: var(--theme-primary-color, #1a73e8);
  color: #fff !important;
  border-color: var(--theme-primary-color, #1a73e8);
}
.c-tag-list__count {
  font-size: 11px;
  opacity: 0.7;
}

/* --- アーカイブリスト（アイコン・件数付き） --- */
.c-archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.c-archive-list__item {
  margin-bottom: 2px;
}
.c-archive-list__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #333333;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.c-archive-list__link:hover {
  background: #f5f5f5;
  color: var(--theme-primary-color, #1a73e8);
}
.c-archive-list__icon {
  flex-shrink: 0;
  opacity: 0.5;
}
.c-archive-list__label {
  flex: 1;
  font-size: 14px;
}
.c-archive-list__count {
  background: #f0f0f0;
  color: #666666;
  font-size: 11px;
  font-weight: 600;
  min-width: 24px;
  height: 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

/* --- Utilities --- */
.t-center {
  text-align: center;
}

.c-page-title {
  font-size: 28px;
  text-align: center;
  margin: 0 0 40px;
}

/* --- Pagination --- */
.c-pagination {
  margin-top: 40px;
  text-align: center;
}
.c-pagination .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.c-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: #ffffff;
  color: #333333;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: background 0.3s, color 0.3s;
  font-weight: bold;
}
.c-pagination .page-numbers.current {
  background: var(--theme-primary-color, #1a73e8);
  color: #ffffff;
}
.c-pagination .page-numbers:hover:not(.current) {
  background: rgba(26, 115, 232, 0.1);
  color: var(--theme-primary-color, #1a73e8);
}

/* --- 投稿メタ（公開日・更新日） --- */
.c-single-post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--color-text-light, #666666);
}

.c-single-post__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.c-single-post__date i {
  font-size: 14px;
  opacity: 0.7;
}
.c-single-post__date time {
  font-size: 14px;
}
.c-single-post__date--updated {
  color: #e67e22;
}
.c-single-post__date--updated i {
  color: #e67e22;
  opacity: 0.85;
}

/* --- タグ表示 --- */
.c-single-post__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.c-single-post__tags > i {
  font-size: 14px;
  color: var(--color-text-light, #666666);
  opacity: 0.6;
}

.c-single-post__tag {
  display: inline-block;
  padding: 3px 12px;
  font-size: 12px;
  color: var(--color-text-light, #666666);
  background: #f0f0f0;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.c-single-post__tag:hover {
  background: var(--theme-primary-color, #1a73e8);
  color: #fff;
}

/* --- 記事コンテンツ内の見出し --- */
/* --- SNSシェアボタン --- */
.c-sns-share {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border, #dddddd);
  display: block;
}
.c-sns-share__label {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--color-text, #333333);
}
.c-sns-share__label i {
  margin-right: 4px;
}
.c-sns-share__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.c-sns-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.c-sns-share__btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  color: #fff;
}
.c-sns-share__btn i,
.c-sns-share__btn .c-sns-share__icon-hatena {
  font-size: 16px;
}
.c-sns-share__btn--facebook {
  background-color: #1877f2;
}
.c-sns-share__btn--x {
  background-color: #000;
}
.c-sns-share__btn--line {
  background-color: #06c755;
}
.c-sns-share__btn--hatena {
  background-color: #00a4de;
}
.c-sns-share__icon-hatena {
  font-weight: 900;
  font-size: 16px;
  font-family: "Verdana", sans-serif;
}

@media (max-width: 767px) {
  .c-sns-share__btns {
    flex-direction: column;
  }
  .c-sns-share__btn {
    justify-content: center;
  }
}
/* --- パンくずリスト --- */
.c-breadcrumb {
  max-width: 1200px;
  margin: 0 auto 24px;
  font-size: 13px;
  line-height: 1.5;
}
.c-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
.c-breadcrumb__item {
  display: flex;
  align-items: center;
}
.c-breadcrumb__item a {
  color: var(--theme-primary-color, #1a73e8);
  text-decoration: none;
  transition: opacity 0.2s;
}
.c-breadcrumb__item a:hover {
  opacity: 0.7;
  text-decoration: underline;
}
.c-breadcrumb__item--current {
  color: #666666;
}
.c-breadcrumb__item--current span {
  display: inline-block;
}
.c-breadcrumb__sep {
  display: inline-flex;
  align-items: center;
  margin: 0 6px;
  color: #ccc;
}

@media (max-width: 767px) {
  .c-breadcrumb {
    padding: 8px 12px;
    font-size: 12px;
  }
}
/* --- Ranking Component (Top Page) --- */
.c-ranking {
  margin-top: 48px;
  margin-bottom: 48px;
  padding: 32px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.c-ranking__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--theme-primary-color, #1a73e8);
}
.c-ranking__heading-icon {
  color: #ffc107;
  font-size: 24px;
}
.c-ranking__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.c-ranking__card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: #f9f9f9;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.c-ranking__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 1;
}
.c-ranking__rank {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
  background: #888;
  z-index: 1;
}
.c-ranking__rank--1 {
  background: linear-gradient(135deg, #ffd700, #ffb300);
  box-shadow: 0 2px 6px rgba(255, 179, 0, 0.4);
}
.c-ranking__rank--2 {
  background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
  box-shadow: 0 2px 6px rgba(160, 160, 160, 0.4);
}
.c-ranking__rank--3 {
  background: linear-gradient(135deg, #cd7f32, #a0522d);
  box-shadow: 0 2px 6px rgba(160, 82, 45, 0.4);
}
.c-ranking__thumb {
  flex: 0 0 100px;
  width: 100px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  background: #e9e9e9;
}
.c-ranking__thumb img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.c-ranking__no-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #ccc;
}
.c-ranking__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.c-ranking__meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.c-ranking__cat {
  background: var(--theme-primary-color, #1a73e8);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  line-height: 1.4;
}
.c-ranking__date {
  font-size: 11px;
  color: #666666;
}
.c-ranking__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #333333;
}
.c-ranking__views {
  font-size: 11px;
  color: #666666;
}
.c-ranking__views i {
  margin-right: 4px;
}

@media (max-width: 767px) {
  .c-ranking {
    margin-top: 32px;
    margin-bottom: 32px;
    padding: 20px;
  }
  .c-ranking__heading {
    font-size: 18px;
  }
  .c-ranking__grid {
    grid-template-columns: 1fr;
  }
}
/* --- Ranking List (Sidebar) --- */
.c-ranking-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.c-ranking-list__item {
  border-bottom: 1px solid #eee;
}
.c-ranking-list__item:last-child {
  border-bottom: none;
}
.c-ranking-list__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s;
  position: relative;
}
.c-ranking-list__link:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.02);
}
.c-ranking-list__rank {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
  background: #888;
}
.c-ranking-list__rank--1 {
  background: linear-gradient(135deg, #ffd700, #ffb300);
}
.c-ranking-list__rank--2 {
  background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
}
.c-ranking-list__rank--3 {
  background: linear-gradient(135deg, #cd7f32, #a0522d);
}
.c-ranking-list__thumb {
  flex: 0 0 60px;
  width: 60px;
  height: 45px;
  border-radius: 4px;
  overflow: hidden;
  background: #eee;
}
.c-ranking-list__img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.c-ranking-list__noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 10px;
  color: #aaa;
  background: #f5f5f5;
}
.c-ranking-list__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.c-ranking-list__post-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #333333;
}
.c-ranking-list__views {
  font-size: 11px;
  color: #666666;
}
.c-ranking-list__views i {
  margin-right: 3px;
}

.c-widget--ranking .c-widget__title i {
  color: #ffc107;
  margin-right: 6px;
}

/* --- Category Section Component --- */
.c-cat-section {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0;
}
.c-cat-section__heading {
  margin: 0 0 16px;
  padding: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 2px solid var(--theme-primary-color, #1a73e8);
}
.c-cat-section__heading-link {
  display: inline-block;
  padding: 6px 16px;
  background: var(--theme-primary-color, #1a73e8);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.2s;
}
.c-cat-section__heading-link:hover {
  opacity: 0.8;
}
.c-cat-section__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.c-cat-section__main {
  padding: 20px;
}
.c-cat-section__main-link {
  display: block;
  position: relative;
  color: inherit;
  text-decoration: none;
  height: 100%;
}
.c-cat-section__main-link:hover {
  opacity: 1;
}
.c-cat-section__main-link:hover .c-cat-section__main-thumb img {
  transform: scale(1.03);
}
.c-cat-section__main-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #e9e9e9;
  border-radius: 8px;
}
.c-cat-section__main-thumb img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.3s;
}
.c-cat-section__no-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #ccc;
}
.c-cat-section__rank {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
  z-index: 2;
}
.c-cat-section__rank--1 {
  background: linear-gradient(135deg, #ffd700, #ffb300);
  box-shadow: 0 2px 8px rgba(255, 179, 0, 0.5);
}
.c-cat-section__rank--2 {
  background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
  box-shadow: 0 2px 8px rgba(160, 160, 160, 0.5);
}
.c-cat-section__rank--3 {
  background: linear-gradient(135deg, #cd7f32, #a0522d);
  box-shadow: 0 2px 8px rgba(160, 82, 45, 0.5);
}
.c-cat-section__main-body {
  padding: 20px;
}
.c-cat-section__main-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 10px;
  color: #333333;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.c-cat-section__main-meta {
  margin-bottom: 10px;
}
.c-cat-section__main-date {
  font-size: 13px;
  color: #666666;
}
.c-cat-section__main-excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: #666666;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.c-cat-section__sub {
  padding: 16px 20px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.c-cat-section__sub-item {
  border-bottom: 1px solid #eee;
}
.c-cat-section__sub-item:last-child {
  border-bottom: none;
}
.c-cat-section__sub-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s;
}
.c-cat-section__sub-link:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.02);
}
.c-cat-section__sub-link:hover .c-cat-section__sub-title {
  color: var(--theme-primary-color, #1a73e8);
}
.c-cat-section__sub-thumb {
  position: relative;
  flex: 0 0 120px;
  width: 120px;
  height: 90px;
  border-radius: 4px;
  overflow: visible;
  background: #eee;
}
.c-cat-section__sub-thumb img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 4px;
}
.c-cat-section__sub-rank {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
  background: #888;
  z-index: 2;
}
.c-cat-section__sub-rank--2 {
  background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
}
.c-cat-section__sub-rank--3 {
  background: linear-gradient(135deg, #cd7f32, #a0522d);
}
.c-cat-section__sub-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 10px;
  color: #aaa;
  background: #f5f5f5;
}
.c-cat-section__sub-body {
  flex: 1;
  min-width: 0;
}
.c-cat-section__sub-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 6px;
  color: #333333;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  transition: color 0.2s;
}
.c-cat-section__sub-date {
  font-size: 12px;
  color: #666666;
}

@media (max-width: 767px) {
  .c-cat-section {
    margin-bottom: 32px;
  }
  .c-cat-section__heading {
    font-size: 16px;
  }
  .c-cat-section__content {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .c-cat-section__main-body {
    padding: 16px;
  }
  .c-cat-section__main-title {
    font-size: 16px;
  }
  .c-cat-section__main-excerpt {
    display: none;
  }
  .c-cat-section__sub {
    padding: 0 16px 16px;
  }
  .c-cat-section__sub-thumb {
    flex: 0 0 70px;
    width: 70px;
    height: 50px;
  }
  .c-cat-section__sub-title {
    font-size: 13px;
  }
}