/* =====================================================
   Base
===================================================== */

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont,
               "Hiragino Kaku Gothic ProN",
               "Yu Gothic", Meiryo, sans-serif;
  color: #222;
  background: #f7f7f5;
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

/* グローバルhoverは使わない（重要） */
a:hover {
  text-decoration: none;
}

/* ==========================
   Intro Zone（思想ゾーン）
========================== */

.intro-zone {
  background: #f7f7f3; /* 落ち着いたベージュ */
}

/* =====================================================
   Side Navigation (Base)
===================================================== */

:root {
  --side-nav-width: 72px;
}

.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 100vh;
  z-index: 100;
  padding: 0;
  background: transparent;
}

@media (min-width: 768px) {
  .side-nav {
    
    width: var(--side-nav-width);
    padding: 3rem 0;
    background: #efece4;
  }
}

/* =====================================================
   Mobile First Navigation & Toggle
===================================================== */

/* --- Toggle (mobile) --- */

.menu-toggle {
  position: fixed;
  top: calc(var(--admin-bar-height, 0px) + 1.2rem);
  right: 1.2rem;
  left: auto;

  z-index: 200;

  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  border: none;
  padding: 10;
  box-sizing: content-box;

  font-size: 1.4rem;
  line-height: 1;

  cursor: pointer;
  opacity: 0.6;

  transition:
    opacity 0.2s ease,
    transform 0.25s ease;
}

.menu-toggle:focus-visible {
  outline: 2px solid rgba(0,0,0,0.4);
  outline-offset: 4px;
}

/* 👇 スクロール後の位置調整 */
body.scrolled .menu-toggle {
  opacity: 0.3;
  transform: translateY(-0.4rem);
}

/* 開閉アイコン */
.menu-toggle .icon-close {
  display: none;
}

body.menu-open .menu-toggle .icon-open {
  display: none;
}

body.menu-open .menu-toggle .icon-close {
  display: inline;
}

body.admin-bar {
  --admin-bar-height: 32px;
}

@media (max-width: 782px) {
  body.admin-bar {
    --admin-bar-height: 46px;
  }
}

/* =====================================================
   Nav
===================================================== */

.side-nav-list {
  position: fixed;
  inset: 0;

  padding: 18vh 0 0;
  margin: 0;
  list-style: none;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;

  background: rgba(255, 255, 255, 0.45); /* 通常時は薄く */
  opacity: 0;
  pointer-events: none;

  transform: translateY(-6px);

  transition:
    opacity 260ms ease,
    transform 520ms cubic-bezier(.22,1,.36,1),
    background-color 420ms ease,
    backdrop-filter 420ms ease;
}

body.menu-open .side-nav-list {
  opacity: 1;
  pointer-events: auto;

  transform: translateY(0);

  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.admin-bar .side-nav-list {
  padding-top: calc(clamp(96px, 18vh, 160px) + 46px);
}

body.menu-open {
  overflow: hidden;
}

/* メニュー項目（初期状態） */
.side-nav-list li {
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 320ms ease,
    transform 420ms cubic-bezier(.22,1,.36,1);
}

body.menu-open .side-nav-list li {
  opacity: 1;
  transform: translateY(0);
  will-change: opacity, transform;
}

body.menu-open .side-nav-list li:nth-child(1) {
  transition-delay: 60ms;
}
body.menu-open .side-nav-list li:nth-child(2) {
  transition-delay: 120ms;
}
body.menu-open .side-nav-list li:nth-child(3) {
  transition-delay: 180ms;
}
body.menu-open .side-nav-list li:nth-child(4) {
  transition-delay: 240ms;
}
body.menu-open .side-nav-list li:nth-child(5) {
  transition-delay: 300ms;
}

/* =====================================================
   PC Layout (Enhancement)
===================================================== */

@media (min-width: 768px) {

  .menu-toggle {
    display: none;
  }

  .side-nav a {
    writing-mode: vertical-rl;
    text-orientation: mixed;

    opacity: 0.65;
    font-size: 0.75rem;
    letter-spacing: 0.05em;

    transition: opacity 0.2s ease,
                transform 0.25s ease;
  }

  .side-nav-list {
    position: static;
    inset: auto;

    padding: 0;          /* ← これが最重要 */
    margin: 0;

    height: 100vh;

    background: transparent;
    backdrop-filter: none;

    opacity: 1;
    pointer-events: auto;
    filter: none;

    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  body.admin-bar .side-nav-list {
    padding: 0;          /* ← admin-bar も必ず潰す */
  }

  .side-nav {
    display: flex;
    justify-content: center; /* 横中央 */
  }

  .side-nav a:hover {
    opacity: 1;
    transform: translateY(-2px);
  }

  .side-nav .current-menu-item a {
  opacity: 1;
  font-weight: 500;
  transform: translateY(-2px);
  }

  .side-nav-list li {
    opacity: 1;
    transform: none;
    transition: none;
  }

}

/* =====================================================
   Layout Adjustment
===================================================== */

#main-content {
  margin-left: 0;
}

@media (min-width: 768px) {
  #main-content {
    margin-left: var(--side-nav-width);
  }
}

/* =====================================================
   Hero
===================================================== */

.hero {
  position: relative;
  background-image: url("../img/hero5.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  color: rgba(255, 255, 255, 0.95);
  /* スマホ基準：やや右寄り */
  background-position: 60% center;

  display: flex;
  align-items: flex-start;

  min-height: 70svh;

  overflow: hidden;
}

/* オーバーレイ（可読性＋静けさ） */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to bottom,
    rgba(245, 242, 234, 0.03) 0%,
    rgba(245, 242, 234, 0.30) 50%,
    rgba(245, 242, 234, 0.65) 80%,
    rgba(245, 242, 234, 0.75) 90%,
    rgba(245, 242, 234, 0.85) 95%,
    rgba(245, 242, 234, 0.95) 100%
  );

  backdrop-filter: saturate(0.95);
}

/* 下端フェード（次セクションへの余韻） */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;

  background: linear-gradient(
    to bottom,
    rgba(247, 247, 245, 0),
    #f7f7f3
  );
}

/* 中身 */
.hero-inner {
  position: relative;
  z-index: 1;

  max-width: 640px;

  padding: 3vh 7vw 10vh;

}

/* アイブロウ */
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
  opacity: 0.9;
}

/* メインコピー */
.hero-title {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1.4;
  margin: 0.6em 0 1rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

/* サブコピー */
.hero-subtitle {
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.85;
}

/* =====================================================
   PC Adjustment
===================================================== */

@media (min-width: 768px) {

  .hero {
    min-height: min(90vh, 900px);

  }

  .hero-inner {
    padding: 10vh 8vw 14vh;
    margin-top: 0;
  }

  .hero::after {
    height: 80px;
  }

}


/* =====================================================
   Sections
===================================================== */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {

  .section {
    padding: 6rem 8vw;
  }
}

/* =====================================================
   Intro
===================================================== */

.section-intro {
  padding: 3.5rem 1.25rem 3rem;
}

.section-intro p {
  max-width: 42em;
  font-size: 1rem;
  line-height: 1.9;
  color: #222;
}

@media (min-width: 768px) {
  .section-intro {
    padding: 4.5rem 8vw 4rem;
  }
}

/* =========================
   Featured
========================= */

.featured-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.featured-item {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-item h3 {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.featured-item a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.featured-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.featured-item a:hover {
  opacity: 0.75;
}

.featured-lead {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
}

.featured-item:first-child h3 {
  font-size: 1.25rem;
}

.featured-item:first-child .featured-lead {
  font-size: 0.95rem;
}

@media (min-width: 768px) {

  .featured-list {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 中間幅では差をつけない */
  .featured-item:first-child {
    grid-column: auto;
  }

}

@media (min-width: 768px) and (max-width: 1199px) {
  .featured-lead {
    display: -webkit-box;
    -webkit-line-clamp: 6; /* ← 5〜7で好み調整 */
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .featured-item:first-child .featured-lead {
    -webkit-line-clamp: 8;
  }

}

/* ===== 大画面PC ===== */
@media (min-width: 1200px) {
  .featured-list {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .featured-item:first-child {
    grid-column: 1 / 2;
  }
}

/* =========================
   Category-entry
========================= */

.category-entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 720px;
}

.category-entry-list li + li {
  margin-top: .25rem;
}

.category-entry-list a {
  display: block;
  padding: .75rem 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: 1rem;
}

.category-entry-list a:hover {
  background: rgba(0,0,0,.025);
}

/* =========================
   Latest Posts
========================= */


.section.latest {
  background: #f7f7f5;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}

.post-card {
  transition: opacity 0.2s ease;
  padding: 1.2rem 1.2rem;
}

.post-card:hover a {
  opacity: 0.75; 
}

.post-card h3 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.post-card time {
  font-size: 0.75rem;
  color: #777;
}

/* PC */
@media (min-width: 768px) {

  .post-card {
    padding: 1.4rem 1.4rem;
  }

}


/* =====================================================
   News Section
===================================================== */

/* セクション全体 */
.news-section {
  background: #fff;
  padding: 3.5rem 8vw;
}

/* 掲示板的な外枠 */
.news-box {
  border: 1px solid #e0e0dc;
  background: #fff;
  padding: 1.25rem 1rem;
}

/* スクロール領域（モバイル基準） */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;

  max-height: 10rem;      /* モバイルではやや低め */
  overflow-y: auto;
}

/* 1件分 */
.news-item {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  padding: 0.6rem 0;
}

.news-item + .news-item {
  border-top: 1px dotted #e6e6e0;
}

/* 日付 */
.news-date {
  font-size: 0.7rem;
  color: #888;
  white-space: nowrap;
}

/* タイトル */
.news-title {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #222;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

/* hoverは“控えめ” */
.news-title:hover {
  opacity: 1;
}

/* 空の場合 */
.news-item.is-empty {
  font-size: 0.85rem;
  color: #777;
}

/* 一覧リンク */
.news-more {
  margin-top: 0.8rem;
  text-align: right;
}

.news-more a {
  font-size: 0.8rem;
  color: #444;
  opacity: 0.65;
}

.news-more a:hover {
  opacity: 1;
}

/* =====================================================
   Tablet / PC Enhancement
===================================================== */

@media (min-width: 768px) {

  .news-section {
    padding: 4rem 8vw;
  }

  .news-box {
    padding: 1.5rem 1.25rem;
  }

  .news-list {
    max-height: 12rem;   /* PCでは3〜4件見える */
  }

  .news-date {
    font-size: 0.75rem;
  }

  .news-title {
    font-size: 0.9rem;
  }

  .news-more a {
    font-size: 0.85rem;
  }
}

/* =====================================================
   News Page (一覧ページ専用)
===================================================== */

.page-news .news-box {
  border: none;
  padding: 0;
}

.page-news .news-list {
  max-height: none;
  overflow: visible;
}

.page-news .news-item + .news-item {
  border-top: 1px solid #eee;
}

.page-news .news-date {
  font-size: 0.75rem;
}

.page-news .news-title {
  font-size: 0.95rem;
  opacity: 1;
}

/* =====================================================
   Profile Mini（Top）
===================================================== */

.profile-mini {
  background: #fff;
  padding: 4rem 8vw 5rem;
}

.profile-mini-inner {
  max-width: 640px;
}

/* 肩書 */
.profile-role {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #777;
  margin: 0 0 0.4rem;
}

/* 名前 */
.profile-name {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 0.8rem;
}

/* 場所 */
.profile-location {
  font-size: 0.85rem;
  color: #555;
  margin: 0 0 1.2rem;
}

/* スタンス */
.profile-stance {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
  margin: 0 0 1.6rem;
}

/* リンク */
.profile-link a {
  font-size: 0.85rem;
  color: #444;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.profile-link a:hover {
  opacity: 1;
}

/* =====================================================
   Tablet / PC
===================================================== */

@media (min-width: 768px) {
  .profile-mini {
    padding: 5rem 8vw 6rem;
  }

  .profile-name {
    font-size: 1.3rem;
  }

  .profile-stance {
    font-size: 0.9rem;
  }
}

/* =========================
   Footer
========================= */

.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 1.5rem;
  background-color: #f8f8f8;
  color: #333;
  font-size: 0.875rem;
  line-height: 1.8;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- 共通カラム --- */

.footer-column {
  margin-bottom: 2.5rem;
}

/* --- 左：書き手の立ち位置 --- */

.footer-office-name {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.footer-office-meta {
  margin: 0.25rem 0;
  color: #555;
}

/* 「宣言文」は少しだけ間を空ける */
.footer-office-meta:last-of-type {
  margin-top: 0.75rem;
}

/* --- 中・右：ナビ・制度（沈める） --- */

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin: 0.25rem 0;
}

.footer-menu a {
  color: #666;
  text-decoration: none;
}

.footer-menu a:hover {
  text-decoration: underline;
}

.footer-office-address {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #777;
  line-height: 1.6;
}

/* --- フッターボトム --- */

.footer-bottom {
  border-top: 1px solid #ddd;
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  color: #999;
  font-size: 0.75rem;
}

@media (min-width: 768px) {
  .site-footer{
    margin-left: var(--side-nav-width);
  }

  .footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 3rem;

    padding: 0 8vw;   /* ← ここがキモ */
  }

  .footer-column {
    margin-bottom: 0;
  }

  .footer-office {
    flex: 2;
  }

  .footer-nav,
  .footer-legal {
    flex: 1;
  }
}
/* =====================================================
   カテゴリー別トップページ
===================================================== */

.category-intro {
  max-width: 720px;
}

.category-lead {
  line-height: 1.8;
}

.category-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-links li a {
  display: block;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.category-links li a:hover {
  background: rgba(0,0,0,.03);
}

.category-page .category-latest .post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-page .category-latest .post-list li + li {
  margin-top: .4rem;
}

.category-page .category-latest .post-list a {
  color: #666;
  text-decoration: none;
  transition: color 0.15s ease;
}

.category-page .category-latest .post-list a:hover {
  color: #000;
}

.category-empty {
  margin: 3rem 0;
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

.category-footer-space {
  padding: 3rem 0 4rem;
}

/* =====================================================
   広告の存在感消し
===================================================== */

.adsense {
  margin: 3rem 0;
  text-align: center;
}

.adsense-mid {
  margin: 2.5rem 0;
}

.adsense-bottom {
  margin-top: 4rem;
}

/* =====================================================
   Single Article (Content)
===================================================== */

.single-body {
  padding: 6rem 8vw;
  background-color: #f7f7f5;
}

.single-header {
  max-width: 720px;
  margin: 0 auto 4rem;
}

.single-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 2rem;
}

.single-eyecatch {
  margin-top: 2.5rem;
}

.single-eyecatch img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- 本文（最重要） --- */

.single-content {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.9;
  font-size: 1.05rem;
}

.single-content p {
  margin: 1.2rem 0;
}

.single-content a {
  color: #555;
  text-decoration: none;
  transition: color 0.15s ease;
}

.single-content a:hover {
  color: #000;
}

.single-content h2 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 3rem 0 1.2rem;
  color: #111;
}

.single-content h3 {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 2rem 0 .8rem;
  color: #111;
}

.single-content h2 + p,
.single-content h3 + p {
  margin-top: 0.8em;
}

.single-content ul,
.single-content ol {
  margin: 1.5rem 0;
  padding-left: 1.2rem;
}

.single-content strong {
  font-weight: 600;
  color: #222;
}

.single-content em {
  font-style: italic;
  color: #444;
}

.single-content small {
  font-size: 0.85em;
  color: #666;
}

.single-content sup {
  font-size: 0.7em;
  color: #777;
  vertical-align: super;
}

.single-content code {
  font-family: monospace;
  font-size: 0.9em;
  background: rgba(0,0,0,.04);
  padding: 0 .25em;
  border-radius: 2px;
}

.single-content li {
  margin-bottom: .5rem;
  line-height: 1.8;
}

.single-content li p {
  margin: .4rem 0;
}

.single-content blockquote {
  margin: 2rem 0;
  padding-left: 1rem;
  border-left: 3px solid #ddd;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .single-content {
    font-size: 1rem;
    line-height: 1.85;
  }

  .single-content h2 {
    margin-top: 3.5rem;
  }

  .single-content h3 {
    margin-top: 2.5rem;
  }
}

/* --- Single Bottom Ad --- */

.single-bottom-ad {
  max-width: 720px;
  margin: 3rem auto 0;
  text-align: center;
  opacity: 0.85;
}

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

.single-footer {
  max-width: 720px;
  margin: 5rem auto 0;
  font-size: 0.85rem;
  color: #666;
}

.single-header time,
.single-footer time {
  display: block;
  font-size: 0.8rem;
  color: #888;
  margin-top: .5rem;
}

/* --- フッター直後の広告枠 --- */

.post-footer-space {
  padding: 3rem 0 4rem;
}

.single-bottom-ad {
  text-align: center;
}

/* --- 関連記事 --- */

.related-articles {
  max-width: 720px;
  margin: 0 auto 0;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.related-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 1.5rem;
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-item {
  margin-bottom: 1.25rem;
}

.related-item + .related-item {
  margin-top: 1.2rem;
}

.related-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related-item-title {
  display: block;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #222;
  margin-bottom: 0.25rem;
}

.related-item-excerpt {
  display: block;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #777;
}

.related-item a:hover .related-item-title {
  opacity: 0.8;
}

/* =========================
   固定ページ共通（page.php）
   ========================= */

/* ページ全体の器 */
.page-body {
  padding: 0 1.25rem 4rem;
}

/* タイトル周り */
.page-header {
  max-width: 680px;
  margin: 0 auto;
}

.page-title {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 2.5rem 0 2rem;
}

/* 本文エリア */
.page-content {
  max-width: 680px;
  margin: 0 auto;
}

/* 段落 */
.page-content p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #222;
  margin: 0 0 1.6em;
}

/* 見出し（h2：章の区切り） */
.page-content h2 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 3.2rem 0 1.2rem;
}

/* 見出し（h3：補助） */
.page-content h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 2.2rem 0 0.8rem;
}

/* リスト */
.page-content ul,
.page-content ol {
  margin: 0 0 1.8em 1.2em;
  padding: 0;
}

.page-content li {
  line-height: 1.8;
  margin-bottom: 0.6em;
}

/* リンク（本文と一体） */
.page-content a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.page-content a:hover {
  opacity: 0.7;
}

/* 強調 */
.page-content strong {
  font-weight: 600;
}

.page-content em {
  font-style: italic;
}

/* =========================
   PCサイズ（768px以上）
   ========================= */

@media (min-width: 768px) {
  .page-body {
    padding: 0 2rem 5rem;
  }

  .page-title {
    font-size: 1.6rem;
    margin-top: 3.5rem;
  }

  .page-content p {
    font-size: 1rem;
  }

  .page-content h2 {
    font-size: 1.2rem;
  }
}

/* =========================
   articlesページ
   ========================= */
.intro-core{
  font-size: 1rem;
  font-weight: 600;
}

.articles-category {
  margin-top: 4rem;
}

.articles-category-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 1.5rem;
}

.articles-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.articles-category-list li {
  margin-bottom: 0.75rem;
}

.articles-category-list a::before {
  content: "› ";
  color: #aaa;
}

.articles-category-list a {
  font-size: 0.9rem;
  color: #333;
  text-decoration: none;
}

.articles-category-list a:hover {
  text-decoration: underline;
}

.articles-inner {
  max-width: 680px;
  margin: 0 auto;
}

.articles-footer-space {
  padding: 3rem 0 4rem;
  text-align: center;
}

/* =========================
   servicesページ
   ========================= */

/* 分野ごとの「記事を読む」リンク */

.service-link {
  margin-top: 0.2rem;      /* 本文直後として自然な間 */
  margin-bottom: 2.2rem;   /* 次の分野との区切り */
}

.service-link a {
  font-size: 0.85rem;
  color: #444;
  opacity: 0.65;
  transition: opacity 0.2s ease;
}

.service-link a:hover {
  opacity: 1;
}

/* service-link直前の本文pの下余白を詰める */
.page-content p:has(+ .service-link) {
  margin-bottom: 0.3rem;
}

/* =========================
   404 page
========================= */

.error-404 {
  text-align: center;
}

.error-404 p {
  color: #666;
}

/* リンクリスト */
.error-link-list {
  list-style: none;          /* 点を消す */
  padding: 0;
  margin: 2rem 0 0;
}

.error-link-list li {
  margin: 0.75rem 0;
}

/* リンク本体 */
.error-link-list a {
  display: inline-block;     /* hoverを確実に効かせる */
  color: #333;
  text-decoration: none;
  position: relative;
}

/* hover 表現（控えめ） */
.error-link-list a:hover {
  text-decoration: underline;
}


/* =========================
   プロフィールページの画像
========================= */
.profile-photo, .profile-photo img {
  max-width: 240px;
  width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto 3rem;
  border-radius: 56px;
  filter: saturate(0.9) brightness(0.97) contrast(0.98);
}


/* =========================
   archive
========================= */
.archive {
  background: #f7f7f3;
}

.archive-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 8vh 6vw 12vh;
}

.archive-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 6vh 6vw 0;
}

.archive-title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.archive-box {
  padding: 0 0 3rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 3.5rem;
}

.archive-box:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.archive-box h2 {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.archive-excerpt {
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0.75;
}

.archive-box a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.archive-box a:hover h2 {
  text-decoration: underline;
}

.archive-meta {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.8rem;
  font-size: 0.75rem;
  opacity: 0.6;
}

.archive-tags span {
  margin-right: 0.4em;
}

.archive-empty {
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.6;
  margin: 6rem 0;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .archive-body {
    padding: 10vh 0 14vh;
  }

  .archive-header {
    padding-top: 8vh;
  }
}

/* =========================
   tag.php用
========================= */
.archive-tag .archive-header {
  max-width: 640px;
  margin: 0 auto 4rem;
  text-align: center;
}

.archive-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  opacity: 0.6;
  margin-bottom: 0.8rem;
}

.archive-description {
  margin-top: 1.6rem;
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0.85;
}

/* =========================
   404.php
========================= */
.error-404 {
  padding: 5rem 0 6rem;
  text-align: left;
}

.error-404-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .error-404 {
    margin-left: var(--side-nav-width);
  }

  .error-404-inner {
    padding: 0 8vw;
  }
}