@charset "UTF-8";
/*
Theme Name: Yatsuba Network Universal Theme
Theme URI: https://yatsuba.com
Author: Makoto Suzuki
Description: 9つの特化型メディアネットワークを共通化・運用するための万能自作WordPressテーマ。
Version: 1.0.0
*/

/* ==========================================================================
   1. CSS Reset & Base Setting
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-base, 'Inter', 'Noto Sans JP', -apple-system, sans-serif);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-main, #334155);
  background-color: var(--color-bg-base, #ffffff);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-link, #0284c7);
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

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

/* ==========================================================================
   2. Header & Layout Container
   ========================================================================== */
.l-container {
  width: 100%;
  max-width: var(--container-width, 1140px);
  margin-right: auto;
  margin-left: auto;
  padding-right: 20px;
  padding-left: 20px;
}

.l-header {
  background-color: var(--color-bg-header, #ffffff);
  border-bottom: 1px solid var(--color-border, #e2e8f0);
  position: sticky;
  top: 0;
  z-index: 100;
}

.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* ロゴ表示のコンパクト化調整 */
.c-logo {
  display: flex;
  align-items: center;
}

.c-logo__image {
  max-height: 36px;  /* ヘッダー内で圧迫感のないコンパクトな高さ */
  width: auto;       /* アスペクト比を維持 */
  display: block;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.c-logo__image:hover {
  opacity: 0.8;
}
.c-global-nav {
  display: flex;
  gap: 24px;
  list-style: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.c-global-nav a {
  color: var(--color-text-main, #334155);
}

.c-global-nav a:hover {
  color: var(--color-brand-accent, #10b981);
}

/* ==========================================================================
   3. Hero Area (Upgraded Compact Search View)
   ========================================================================== */
.c-hero {
  position: relative;
  background: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 60px 0 70px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.c-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
}

.c-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
}

/* 上部コンパクト検索フォーム */
.c-hero__compact-search {
  display: inline-block;
  margin-bottom: 28px;
}

.c-compact-search-form {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  padding: 4px 6px 4px 16px;
  border-radius: 30px;
  width: 420px;
  max-width: 100%;
  transition: all 0.2s ease;
}

.c-compact-search-form:focus-within {
  background: rgba(255, 255, 255, 0.15);
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.c-compact-search-form__icon {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-right: 10px;
}

.c-compact-search-form__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #ffffff;
  font-size: 0.875rem;
}

.c-compact-search-form__input::placeholder {
  color: #94a3b8;
}

.c-compact-search-form__button {
  background: #38bdf8;
  color: #0f172a;
  border: none;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.c-compact-search-form__button:hover {
  background: #7dd3fc;
}

/* メインキャッチコピー */
.c-hero__title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.u-highlight {
  background: linear-gradient(120deg, #38bdf8 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.c-hero__sub {
  font-size: 1rem;
  color: #94a3b8;
  margin-bottom: 28px;
  line-height: 1.7;
}

/* 人気タグ */
.c-hero__tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
}

.c-hero__tags-label {
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.c-hero__tag {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.c-hero__tag:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* 下層ページ パンくずバー ＆ サブ検索 */
.c-breadcrumb-bar {
  background-color: #f8fafc;
  border-bottom: 1px solid var(--color-border, #e2e8f0);
  padding: 10px 0;
  font-size: 0.85rem;
}

.c-breadcrumb-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.c-breadcrumb {
  color: var(--color-text-sub, #64748b);
}

.c-sub-search-form {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 4px;
  padding: 2px 8px;
}

.c-sub-search-form__input {
  border: none;
  outline: none;
  font-size: 0.8rem;
  padding: 4px;
}

.c-sub-search-form__button {
  background: transparent;
  border: none;
  cursor: pointer;
}

/* ==========================================================================
   4. Front Page (Categories Grid & Recent Posts)
   ========================================================================== */
.l-main {
  padding-top: 50px;
  padding-bottom: 80px;
}

.p-front-section__title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.05em;
  color: var(--color-text-heading, #0f172a);
}

.p-front-section__sub {
  font-size: 0.9rem;
  text-align: center;
  color: var(--color-text-sub, #64748b);
  margin-bottom: 40px;
}

.p-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.c-category-card {
  background-color: var(--color-bg-card, #f8fafc);
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: var(--border-radius-base, 8px);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.c-category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.c-category-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.c-category-card__icon {
  font-size: 1.5rem;
}

.c-category-card__title {
  font-size: 1.25rem;
  color: var(--color-text-heading, #0f172a);
}

.c-category-card__desc {
  font-size: 0.85rem;
  color: var(--color-text-sub, #64748b);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--color-border, #e2e8f0);
}

.c-category-card__list {
  list-style: none;
}

.c-category-card__list li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  position: relative;
  padding-left: 16px;
}

.c-category-card__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-brand-accent, #10b981);
}

.p-recent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.c-entry-card {
  background-color: var(--color-bg-base, #ffffff);
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: var(--border-radius-base, 6px);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.c-entry-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.c-entry-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-text-sub, #64748b);
  margin-bottom: 8px;
}

.c-entry-card__title {
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--color-text-heading, #0f172a);
  margin-bottom: 8px;
}

.c-entry-card__excerpt {
  font-size: 0.85rem;
  color: var(--color-text-sub, #64748b);
  line-height: 1.6;
}

/* ==========================================================================
   5. Single Entry & TOC & Spoke Links
   ========================================================================== */
.p-entry__header {
  margin-bottom: 40px;
  border-bottom: 2px solid var(--color-brand-primary, #0f172a);
  padding-bottom: 20px;
}

.p-entry__meta {
  display: flex;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--color-text-sub, #64748b);
  margin-bottom: 12px;
}

.p-entry__title {
  font-size: 2rem;
  line-height: 1.4;
  color: var(--color-text-heading, #0f172a);
}

.p-entry__body-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

.p-entry__toc-sidebar {
  position: sticky;
  top: 90px;
}

.c-sticky-toc {
  background-color: var(--color-bg-card, #f8fafc);
  padding: 20px;
  border-radius: var(--border-radius-base, 6px);
  border: 1px solid var(--color-border, #e2e8f0);
}

.c-sticky-toc__title {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text-sub, #64748b);
  margin-bottom: 12px;
}

.c-toc-list {
  list-style: none;
  font-size: 0.85rem;
  line-height: 1.5;
}

.c-toc-list__item {
  margin-bottom: 8px;
}

.c-toc-list__item--h3 {
  padding-left: 12px;
  font-size: 0.8rem;
}

.c-toc-list__link {
  color: var(--color-text-sub, #64748b);
  display: inline-block;
  transition: color 0.2s ease;
}

.c-toc-list__link:hover {
  color: var(--color-brand-primary, #0f172a);
  font-weight: 600;
}

.p-entry__content h2 {
  font-size: 1.5rem;
  margin: 40px 0 20px;
  padding-left: 12px;
  border-left: 4px solid var(--color-brand-primary, #0f172a);
  color: var(--color-text-heading, #0f172a);
}

.p-entry__content h3 {
  font-size: 1.25rem;
  margin: 30px 0 16px;
  color: var(--color-text-heading, #0f172a);
}

.p-entry__content p {
  margin-bottom: 24px;
}

.c-spoke-links {
  margin-top: 60px;
  padding: 24px;
  background-color: var(--color-bg-card, #f8fafc);
  border-radius: var(--border-radius-base, 8px);
  border: 1px solid var(--color-brand-accent, #10b981);
}

.c-spoke-links__title {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--color-text-heading, #0f172a);
}

.c-spoke-links__list {
  list-style: none;
}

.c-spoke-links__list li {
  margin-bottom: 8px;
}

/* ==========================================================================
   6. Footer Styles
   ========================================================================== */
.l-footer {
  background-color: var(--color-text-heading, #0f172a);
  color: #94a3b8;
  padding-top: 60px;
  margin-top: 80px;
  font-size: 0.9rem;
}

.l-footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid #1e293b;
}

.c-logo--footer {
  color: #ffffff;
  font-size: 1.3rem;
  display: inline-block;
  margin-bottom: 12px;
}

.l-footer__desc {
  line-height: 1.6;
  font-size: 0.85rem;
}

.l-footer__nav-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.l-footer__nav-title {
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.l-footer__nav-list {
  list-style: none;
}

.l-footer__nav-list li {
  margin-bottom: 10px;
}

.l-footer__nav-list a {
  color: #94a3b8;
  transition: color 0.2s ease;
}

.l-footer__nav-list a:hover {
  color: #ffffff;
}

.l-footer__bottom {
  background-color: #020617;
  padding: 20px 0;
  font-size: 0.8rem;
}

.l-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.c-copyright {
  color: #64748b;
}

.c-pagetop {
  color: #94a3b8;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  background-color: #1e293b;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.c-pagetop:hover {
  background-color: var(--color-brand-accent, #10b981);
  color: #ffffff;
}

/* ==========================================================================
   7. Responsive Breakdown
   ========================================================================== */
@media (max-width: 896px) {
  .p-entry__body-wrapper {
    grid-template-columns: 1fr;
  }
  .p-recent-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .p-category-grid,
  .l-footer__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .c-hero {
    padding: 40px 0 50px;
  }
  .c-hero__title {
    font-size: 1.85rem;
  }
  .c-compact-search-form {
    width: 100%;
  }
  .p-recent-grid {
    grid-template-columns: 1fr;
  }
}