@charset "UTF-8";
/* ============================================================
   福ふくだるま (fukudaruma) - Theme Stylesheet
   Mobile first / Single breakpoint: 768px
   実測基準: PC完成見本SVG 1920px（コンテナ1500 / メイン1050 / 余白130 / サイド315）
   ============================================================ */

/* ------------------------------------------------------------
   1. Design tokens (custom properties)
------------------------------------------------------------ */
:root {
  /* Brand colors */
  --c-primary: #741625;        /* ボルドー */
  --c-primary-dark: #5E1220;   /* hover（推定値） */
  --c-logo-red: #A50319;       /* ロゴ・アクセント赤 */
  --c-bg: #FBF5EF;             /* ベージュ背景 */
  --c-white: #FFFFFF;
  --c-text: #353535;
  --c-text-sub: #353535;
  --c-footer: #212121;
  --c-border: #353535;         /* タグピル枠 */
  --c-line: #E7DFD5;           /* 罫線 */
  --c-gold: #DABB76;           /* カルーセルのドット活性色 */

  /* Typography */
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;

  /* Layout (見本実測) */
  --container: 1500px;
  --gutter: 16px;
  --aside-w: 315px;
  --col-gap: 130px;

  --radius: 10px;
  --shadow-card: 0 1px 4px rgba(0, 0, 0, .05);
  --shadow-hover: 0 10px 24px rgba(0, 0, 0, .10);
  --transition: .25s ease;

  /* Media aspect ratios (見本実測) */
  --ratio-hero: 480 / 260;
  --ratio-thumb: 2 / 1;        /* カードサムネ 295x150 */
  --ratio-popular: 282 / 170;  /* サイドバー人気記事サムネ */
}

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

html { font-size: 17px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4, p { margin: 0; }

button { font-family: inherit; cursor: pointer; }

/* ------------------------------------------------------------
   3. Utilities
------------------------------------------------------------ */
.l-container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.u-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 50%; top: -60px;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--c-primary);
  color: #fff;
  padding: .6em 1.2em;
  border-radius: 0 0 6px 6px;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }

/* ------------------------------------------------------------
   4. Layout : columns (content + aside)
------------------------------------------------------------ */
.l-columns { margin-block: 44px 8px; }
.l-content { min-width: 0; }
.l-aside { min-width: 0; margin-top: 48px; }

/* ------------------------------------------------------------
   5. Header
------------------------------------------------------------ */
.site-header {
  background: var(--c-bg);
  position: sticky;
  top: 0;
  z-index: 80;
}
/* 初回ロード時に一度だけ上から降りてくる（以降は常時固定表示） */
.has-js .site-header { animation: header-drop .5s ease both; }
@keyframes header-drop {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}
/* WP管理バー表示時のオフセット */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* スクロールで下からフェードイン（has-js時のみ・no-jsは常時表示） */
.has-js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.has-js .reveal.is-inview {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .has-js .reveal { opacity: 1; transform: none; transition: none; }
  .has-js .site-header { animation: none; }
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-block: 10px;
}
.site-header__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.2;
}
.site-header__logo { width: 170px; height: auto; }
.site-header__tagline {
  font-size: .6875rem;
  color: #353535;
  font-weight: 700;
  letter-spacing: .02em;
}

.global-nav { display: none; }
.global-nav__list { display: flex; align-items: center; gap: 34px; }
.global-nav__link {
  font-size: .9375rem;
  letter-spacing: .04em;
}
.global-nav__link:hover { color: var(--c-primary); }

/* ------------------------------------------------------------
   6. Hamburger
------------------------------------------------------------ */
.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px; height: 40px;
  padding: 8px;
  background: none;
  border: 0;
}
.hamburger__line {
  display: block;
  width: 100%; height: 2px;
  background: var(--c-text);
}

/* ------------------------------------------------------------
   7. Drawer (SP)
------------------------------------------------------------ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 90;
  opacity: 0;
  transition: opacity var(--transition);
}
.drawer-overlay.is-open { opacity: 1; }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--c-bg);
  padding: 20px 24px 48px;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
}
.drawer.is-open { transform: translateY(0); opacity: 1; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.drawer__logo { width: 170px; height: auto; }
.drawer__close {
  position: relative;
  width: 40px; height: 40px;
  background: none; border: 0;
}
.drawer__close-bar {
  position: absolute;
  left: 8px; top: 19px;
  width: 24px; height: 2px;
  background: var(--c-text);
}
.drawer__close-bar:nth-child(1) { transform: rotate(45deg); }
.drawer__close-bar:nth-child(2) { transform: rotate(-45deg); }

.drawer__search { margin-bottom: 32px; }

.drawer-nav__list { margin-bottom: 20px; }
.drawer-nav__item + .drawer-nav__item { margin-top: 18px; }
.drawer-nav__link,
.drawer-nav__summary,
.drawer-nav__label {
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.drawer-nav__summary {
  display: flex;
  align-items: center;
  gap: .4em;
  list-style: none;
  cursor: pointer;
}
.drawer-nav__summary::-webkit-details-marker { display: none; }
.drawer-nav__summary::after {
  content: "";
  width: 12px; height: 12px;
  margin-left: 4px;
  border-right: 2px solid var(--c-text);
  border-bottom: 2px solid var(--c-text);
  transform: rotate(45deg) translateY(-4px);
  transition: transform var(--transition);
}
.drawer-nav__acc[open] .drawer-nav__summary::after { transform: rotate(-135deg) translateY(-4px); }
.drawer-nav__sub { margin: 12px 0 0 4px; }
.drawer-nav__sub li + li { margin-top: 8px; }
.drawer-nav__sub-link {
  font-size: 1rem;
  color: var(--c-text-sub);
}
.drawer-nav__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.drawer-nav__tags .tag { font-size: .875rem; padding: .5em 1.4em; }

/* ------------------------------------------------------------
   8. Hero carousel (Swiper)
------------------------------------------------------------ */
.hero {
  background: var(--c-primary);
  padding-block: 22px;
  overflow: hidden;
}
.hero__swiper { overflow: hidden; }
.hero__slide { opacity: 1; }
.hero__link { display: block; }
.hero__img {
  display: block;
  width: 100%;
  aspect-ratio: var(--ratio-hero);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 6px 7px 0 var(--c-gold), 0 8px 20px rgba(0, 0, 0, .22);
}
@media (min-width: 768px) {
  .hero__img { box-shadow: 12px 14px 0 var(--c-gold), 0 12px 32px rgba(0, 0, 0, .28); }
}

/* pagination dots（自前生成） */
.hero__pagination {
  position: static;
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 14px;
}
.hero__dot {
  width: 14px; height: 14px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #D9D9D9;
  cursor: pointer;
  transition: background var(--transition);
}
.hero__dot.is-active { background: var(--c-gold); }

/* ------------------------------------------------------------
   9. Topics bar
------------------------------------------------------------ */
.topics {
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.topics__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 8px;
}
.topics__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: .9375rem;
  color: #353535;
  font-weight: 700;
}
.topics__icon { color: #353535; }
.topics__tags {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.topics__tags::-webkit-scrollbar { display: none; }
.topics__tag {
  font-size: .8125rem;
  color: #353535;
  font-weight: 700;
  letter-spacing: .02em;
}
.topics__tag:hover { color: var(--c-primary); }

/* ------------------------------------------------------------
   10. Section heading
------------------------------------------------------------ */
.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.75rem;         /* SP。PCで36pxへ */
  font-weight: 900;
  color: var(--c-primary);
  letter-spacing: .02em;
  line-height: 1;
}
.section-heading__mark {
  display: inline-block;
  width: .82em; height: .82em;   /* 文字の高さと同程度 */
  background: var(--c-primary);
  flex-shrink: 0;
}
.section-heading--sm {
  font-size: 1.375rem;        /* SP。PCで30pxへ */
  font-weight: 700;
  gap: 12px;
}

/* ------------------------------------------------------------
   11. Tags (pill)
------------------------------------------------------------ */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.c-tag {
  display: inline-block;
  padding: .18em .8em;
  font-size: .6875rem;
  line-height: 1.6;
  color: var(--c-text-sub);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  white-space: nowrap;
}
.c-tag:hover { color: var(--c-primary); border-color: var(--c-primary); }

/* ------------------------------------------------------------
   12. Article card (shared component)
------------------------------------------------------------ */
.card {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 15px 18px 18px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card__media {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
}
.card__img {
  width: 100%;
  aspect-ratio: var(--ratio-thumb);
  object-fit: cover;
}
.card__body { padding-top: 12px; }
.card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .02em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.card__title-link:hover { color: var(--c-primary); }
.card__date {
  display: block;
  margin-top: 10px;
  font-size: .75rem;
  color: var(--c-text-sub);
  letter-spacing: .04em;
}
.card__tags { margin-top: 8px; }

/* card variant : aside popular (mobile = horizontal) */
.card--aside {
  display: flex;
  gap: 12px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 16px;
}
.card--aside:hover { transform: none; box-shadow: none; }
.card--aside .card__media {
  flex-shrink: 0;
  width: 128px;
  border-radius: 5px;
}
.card--aside .card__img { aspect-ratio: auto; height: auto; object-fit: contain; border-radius: 5px; }
.card--aside .card__body { padding-top: 0; flex: 1; min-width: 0; }
.card--aside .card__title { -webkit-line-clamp: 2; }

/* ------------------------------------------------------------
   13. Pick up section
------------------------------------------------------------ */
.pickup { margin-top: 40px; margin-bottom: 20px; }
.pickup__list {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* SP: 1枚の白カード（画像を余白付きで内包） / PC: 画像と白パネルが分離 */
.pickup-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.pickup-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
/* カード全体をクリック可能に（タイトルリンクをカード全面へ拡張） */
.pickup-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.pickup-card__media,
.pickup-card__tags { position: relative; z-index: 2; }
.pickup-card__media {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
.pickup-card__img {
  width: 100%;
  aspect-ratio: var(--ratio-thumb);
  object-fit: cover;
}
.pickup-card__body { padding-top: 18px; }
.pickup-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .02em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.pickup-card__title a:hover { color: var(--c-primary); }
.pickup-card__excerpt {
  margin-top: 14px;
  font-size: .8125rem;
  line-height: 1.9;
  color: var(--c-text-sub);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.pickup-card__tags { margin-top: 16px; }
.pickup-card__date {
  display: block;
  margin-top: 16px;
  font-size: .75rem;
  color: var(--c-text-sub);
  letter-spacing: .04em;
}

/* ------------------------------------------------------------
   14. CTA banner (image)
------------------------------------------------------------ */
.cta {
  display: block;
  transition: opacity var(--transition);
}
.cta:hover { opacity: .85; }
.cta__img {
  display: block;
  width: 100%;
  height: auto;
}

.cta--wide { margin-top: 40px; }
.cta--drawer { margin-top: 8px; }
.l-aside .cta--aside + * { margin-top: 40px; }
.l-aside .popular + .cta--aside { margin-top: 80px; }
.popular__more { margin-top: 18px; text-align: right; }

/* 人気の記事セクション（上マージンは .cta--aside + * に一本化） */
.popular .section-heading {
  padding-bottom: 14px;
  border-bottom: 1px solid #353535;
}
.popular__list { margin-top: 20px; }
.popular__list .card--aside { border-bottom: 1px solid #353535; }
.popular__list .card--aside + .card--aside { margin-top: 16px; }
.popular__more { margin-top: 24px; }

/* ------------------------------------------------------------
   15. Category block / card grid / more link
------------------------------------------------------------ */
.category-block {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
}
.category-block:first-child { margin-top: 0; }
/* SP: 見出しとリンクを分解し、リンクをカード群の下・右端へ */
.category-block__head { display: contents; }
.category-block .section-heading--sm { margin-bottom: 18px; }
.category-block__head .more-link {
  order: 1;
  align-self: flex-end;
  margin-top: 14px;
  font-size: .75rem;
  color: var(--c-text);
}
.more-link {
  flex-shrink: 0;
  font-size: .8125rem;
  color: var(--c-text-sub);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.more-link:hover { color: var(--c-primary); }
.more-link__arrow { font-size: .9em; }

.card-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* SP: 右端まで全幅で見せる（コンテナ右余白を突き抜け） */
  margin-right: calc(-1 * var(--gutter));
  padding-right: var(--gutter);
}
.card-grid::-webkit-scrollbar { display: none; }
.card-grid .card { scroll-snap-align: start; }

/* ------------------------------------------------------------
   16. Buttons
------------------------------------------------------------ */
.content-more { margin-top: 40px; text-align: center; }
.btn {
  display: inline-block;
  padding: .95em 2.4em;
  font-size: .9375rem;
  border-radius: 4px;
  text-align: center;
  transition: background var(--transition);
}
.btn--primary {
  background: var(--c-primary);
  color: #fff;
  letter-spacing: .06em;
}
.btn--primary:hover { background: var(--c-primary-dark); }

/* ------------------------------------------------------------
   17. Search band & search box
------------------------------------------------------------ */
.search-band {
  background: var(--c-primary);
  padding-block: 34px;
  margin-top: 48px;
}
.search-box { width: 100%; }
.search-box__input {
  width: 100%;
  padding: .85em 1.4em;
  font-family: inherit;
  font-size: .9375rem;
  color: var(--c-text);
  background: #fff;
  border: 0;
  border-radius: 10px;
  outline: none;
}
.search-box__input::placeholder { color: #9d968c; }
.search-box--band,
.search-band .search-box {
  max-width: 466px;
  margin-inline: auto;
}

/* ------------------------------------------------------------
   18. Footer
------------------------------------------------------------ */
.site-footer {
  background: var(--c-footer);
  color: #fff;
  padding-top: 40px;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.site-footer__logo { width: 190px; height: auto; }
.footer-nav__title {
  font-size: .8125rem;
  letter-spacing: .12em;
  margin-bottom: 12px;
}
.footer-nav__list,
.footer-sub__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer-nav__link,
.footer-sub__link {
  font-size: .8125rem;
  color: #d7d5d3;
}
.footer-nav__link:hover,
.footer-sub__link:hover { color: #fff; }
.site-footer__copy {
  margin-top: 32px;
  padding-block: 18px;
  text-align: center;
  font-size: .6875rem;
  color: #9a9a9a;
  letter-spacing: .04em;
}

/* ============================================================
   19. Desktop  ( >= 768px )  — single breakpoint
   ============================================================ */
@media (min-width: 768px) {

  :root { --gutter: 24px; }

  /* Header (見本: 高さ98px, ロゴ238px) */
  .site-header__inner { min-height: 98px; }
  .site-header__logo { width: 238px; }
  .site-header__tagline { font-size: .75rem; }
  .global-nav { display: block; }
  .hamburger { display: none; }
  .drawer, .drawer-overlay { display: none !important; }

  /* Columns (見本: メイン1050 / 余白130 / サイド315) */
  .l-columns {
    display: flex;
    align-items: flex-start;
    gap: var(--col-gap);
    margin-block: 84px 16px;
  }
  .l-content { flex: 1 1 auto; }
  .l-aside {
    flex: 0 0 var(--aside-w);
    width: var(--aside-w);
    margin-top: 60px;
  }
  .home .l-aside { margin-top: 8px; }

  /* Hero (見本: 帯448px / スライド480x260 / 間隔50) */
  .hero { padding-block: 63px 43px; }
  .hero__slide { width: 480px; }
  .hero__pagination { margin-top: 56px; }

  /* Topics */
  .topics__inner { padding-block: 9px; gap: 24px; }
  .topics__tags { flex-wrap: wrap; overflow: visible; white-space: normal; }

  /* Section heading (Figma: 36px/900 line-height100% / sub 30px/700) */
  .section-heading { font-size: 2.25rem; letter-spacing: .02em; }
  .section-heading--sm { font-size: 1.875rem; letter-spacing: .02em; }

  /* Pick up (見本: 画像689 / 間47 / 白パネル757, 高さ339で分離) */
  .pickup { margin-top: 56px; margin-bottom: 28px; }
  .pickup__list { gap: 51px; margin-top: 48px; }
  .pickup-card {
    flex-direction: row;
    align-items: stretch;
    gap: 47px;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
  }
  .pickup-card:hover { transform: none; box-shadow: none; }
  .pickup-card__media {
    flex: 0 0 46.1%;
    max-width: 46.1%;
  }
  .pickup-card__img {
    height: 100%;
    aspect-ratio: var(--ratio-thumb);
  }
  .pickup-card__body {
    flex: 1;
    min-width: 0;
    background: var(--c-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 32px 40px;
  }
  .pickup-card__title { font-size: 1.25rem; }

  /* CTA */
  .cta--wide { margin-top: 48px; }

  /* Category grid : 3 columns (330px x3 / gap30) */
  .category-block { margin-top: 48px; display: block; }
  .category-block__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
  }
  .category-block .section-heading--sm { margin-bottom: 0; }
  .category-block__head .more-link {
    margin-top: 0;
    font-size: .8125rem;
    color: #353535;
  }
  .l-aside .popular + .cta--aside { margin-top: 40px; }
  .card-grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: auto;
    gap: 30px;
    overflow: visible;
    margin-right: 0;
    padding-right: 0;
  }

  /* Aside popular : vertical card (サムネ282x170) */
  .card--aside {
    display: block;
    padding-bottom: 20px;
  }
  .card--aside .card__media { width: 100%; border-radius: var(--radius); }
  .card--aside .card__img { aspect-ratio: auto; height: auto; object-fit: contain; border-radius: var(--radius); }
  .card--aside .card__body { padding-top: 12px; }
  .card--aside .card__title { -webkit-line-clamp: 1; }

  .popular__more { margin-top: 18px; text-align: right; }

  /* Search band (見本: 帯120px / 入力466x51) */
  .search-band { padding-block: 34px; margin-top: 56px; }

  /* Footer (見本: 181px) */
  .site-footer { padding-top: 44px; }
  .site-footer__inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
  }
  .site-footer__brand { flex-shrink: 0; }
  .footer-nav { flex: 0 1 auto; }
  .footer-sub { flex-shrink: 0; }
  .site-footer__logo { width: 238px; }
  .site-footer__copy { margin-top: 36px; }
}

/* ------------------------------------------------------------
   20. Reduced motion
------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ------------------------------------------------------------
   21. Archive / list (暫定・次工程でカンプ精査)
------------------------------------------------------------ */
.page-title {
  display: flex;
  align-items: center;
  gap: .4em;
  font-size: 1.375rem;
  font-weight: 900;
  color: var(--c-primary);
  letter-spacing: .02em;
  line-height: 1;
  margin-bottom: 24px;
}
.page-title .section-heading__mark { width: .82em; height: .82em; }
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 20px;
}
.no-posts { color: var(--c-text-sub); }

/* WP pagination (< 1 2 3 … >) */
.pagination { margin-top: 56px; }
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 22px;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 1rem;
  line-height: 1;
  color: #353535;
  background: transparent;
  transition: color var(--transition);
}
.pagination .page-numbers.current {
  background: transparent;
  border: 0;
  color: #353535;
  font-weight: 700;
}
.pagination .page-numbers.dots {
  border: 0;
  background: transparent;
  color: var(--c-text-sub);
}
.pagination .page-numbers.prev,
.pagination .page-numbers.next { color: #353535; font-size: 1.05rem; }
.pagination a.page-numbers:hover {
  border: 0;
  color: var(--c-primary);
  background: transparent;
}

@media (min-width: 768px) {
  .page-title { font-size: 2.25rem; margin-bottom: 32px; }
  .post-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }
}

/* ------------------------------------------------------------
   22. Breadcrumb
------------------------------------------------------------ */
.breadcrumb {
  margin: 14px 0;
  font-size: .75rem;
  line-height: 1.6;
  color: var(--c-text-sub);
}
.breadcrumb__list {
  display: flex;
  flex-wrap: nowrap;      /* SP: 折り返さず1行に収める */
  align-items: center;
  overflow: hidden;
}
.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;         /* TOP・カテゴリーは縮めない */
  min-width: 0;
}
/* 最終項目（現在ページ）だけを縮めて省略表示にする */
.breadcrumb__item[aria-current="page"] {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
}
.breadcrumb__item[aria-current="page"] .breadcrumb__text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.breadcrumb__item:not(:first-child)::before {
  content: "\003E";      /* > */
  margin: 0 .7em;
  color: var(--c-border);
  flex-shrink: 0;
}
.breadcrumb__link:hover { color: var(--c-primary); }
.breadcrumb__item[aria-current="page"] { color: var(--c-text); }

/* PC: 折り返しを許可し、省略しない */
@media (min-width: 768px) {
  .breadcrumb__list { flex-wrap: wrap; overflow: visible; }
  .breadcrumb__item[aria-current="page"] .breadcrumb__text {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
}

/* ------------------------------------------------------------
   23. Single post
------------------------------------------------------------ */
.single__header { margin-bottom: 24px; }
.single__category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 14px;
}
.single__category .section-heading__mark { width: 11px; height: 11px; }
.single__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--c-text);
  margin-bottom: 16px;
}
.single__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.single__date {
  font-size: .8125rem;
  color: var(--c-text-sub);
  letter-spacing: .04em;
}
.single__thumb {
  margin: 0 0 32px;
  border-radius: var(--radius);
  overflow: hidden;
}
.single__thumb-img { display: block; width: 100%; height: auto; }

.single__body {
  font-size: .9375rem;
  line-height: 2;
  color: var(--c-text);
}
.single__body > * + * { margin-top: 1.6em; }
.single__body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  background: var(--c-primary);
  padding: .7em 1em;
  border-radius: 4px;
  line-height: 1.5;
  margin-top: 2.4em;
}
.single__body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-primary);
  padding-bottom: .35em;
  line-height: 1.5;
  margin-top: 2em;
}
.single__body h4 { font-size: 1.0625rem; font-weight: 700; margin-top: 1.8em; }
.single__body p { line-height: 2; }
.single__body a { color: var(--c-primary); text-decoration: underline; }
.single__body a:hover { text-decoration: none; }
.single__body img { border-radius: var(--radius); }
.single__body ul,
.single__body ol { padding-left: 1.4em; }
.single__body ul { list-style: disc; }
.single__body ol { list-style: decimal; }
.single__body li + li { margin-top: .5em; }
.single__body blockquote {
  border-left: 4px solid var(--c-line);
  padding: .4em 0 .4em 1.2em;
  color: var(--c-text-sub);
}
.single__pagelinks { margin-top: 2em; display: flex; gap: 8px; flex-wrap: wrap; }

.single__back { margin-top: 48px; text-align: center; }
.single__back .btn { min-width: 280px; }

.related { max-width: 1080px; margin: 64px auto 0; }
.related .section-heading { justify-content: center; }
.related .card-grid { margin-top: 28px; }
@media (min-width: 768px) {
  .related { margin-top: 104px; }
}

/* ------------------------------------------------------------
   23b. 目次（H2/H3から自動生成・フラット連番）
------------------------------------------------------------ */
.toc {
  margin: 32px 0;
  border: 2px solid #353535;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}
.toc__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  font-weight: 700;
  color: #353535;
  cursor: pointer;
  list-style: none;
  background: transparent;
}
.toc[open] .toc__summary { border-bottom: 2px solid #353535; }
.toc[open] .toc__body { animation: toc-open .28s ease; }
@keyframes toc-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.toc__summary::-webkit-details-marker { display: none; }
.toc__summary::after {
  content: "";
  width: 11px; height: 11px;
  flex-shrink: 0;
  border-right: 2px solid #353535;
  border-bottom: 2px solid #353535;
  transform: rotate(-135deg) translateY(2px);   /* 閉：上向き∧ */
  transition: transform var(--transition);
}
.toc[open] .toc__summary::after { transform: rotate(45deg) translateY(-2px); } /* 開：下向き∨ */
.toc__body { padding: 20px 24px 22px; }
.toc__list { counter-reset: toc-n; }
.toc__item { counter-increment: toc-n; line-height: 2; }
.toc__link { color: #353535; display: inline; }
.toc__link::before {
  content: counter(toc-n) ".";
  color: #353535;
  margin-right: .2em;
}
/* 本文（.single__body ol/a）の装飾継承を打ち消す */
.single__body .toc ol { list-style: none; padding-left: 0; margin: 0; }
.single__body .toc li { margin: 0; }
.single__body .toc li + li { margin-top: 0; }
.single__body .toc a { color: #353535; text-decoration: none; }
.single__body .toc a:hover { color: var(--c-primary); }

/* ------------------------------------------------------------
   24. Page (固定ページ)
------------------------------------------------------------ */
.l-page { margin-block: 40px 8px; max-width: 1000px; }
.page-article__title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--c-primary);
  letter-spacing: .02em;
  margin-bottom: 32px;
}
.page-article__title .section-heading__mark { width: 14px; height: 14px; }
.page-article__body {
  font-size: .9375rem;
  line-height: 2;
  color: var(--c-text);
}
.page-article__body > * + * { margin-top: 1.4em; }
.page-article__body h2 {
  font-size: 1.1875rem;
  font-weight: 700;
  margin-top: 2em;
}
.page-article__body h3 { font-size: 1.0625rem; font-weight: 700; margin-top: 1.6em; }
.page-article__body a { color: var(--c-primary); text-decoration: underline; }

/* ------------------------------------------------------------
   25. 404 / search fallback
------------------------------------------------------------ */
.error-404 { padding: 8px 0 24px; }
.error-404__lead { margin-bottom: 24px; }
.error-404__search { max-width: 466px; margin-bottom: 24px; }
.error-404__search .search-box__input { border: 1px solid var(--c-border); }
.search-again { max-width: 466px; margin-top: 24px; }
.search-again .search-box__input { border: 1px solid var(--c-border); }

@media (min-width: 768px) {
  .single__title { font-size: 1.875rem; }
  .single__body h2 { font-size: 1.375rem; }
  .page-article__title { font-size: 2.25rem; }
}

/* ------------------------------------------------------------
   26. Legal page (利用規約 等・PDF準拠)
------------------------------------------------------------ */
.l-page--narrow { max-width: 920px; }
.legal__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--c-primary);
  letter-spacing: .04em;
  line-height: 1.2;
  margin: 8px 0 40px;
}
.legal__title .section-heading__mark { width: .82em; height: .82em; }
.legal__body {
  font-size: .9375rem;
  line-height: 2;
  color: var(--c-text);
}
.legal__body > * + * { margin-top: 1.1em; }
.legal__heading {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--c-text);
  margin-top: 2.2em;
}
.legal__list {
  padding-left: 1.5em;
  list-style: decimal;
}
.legal__list li { margin-top: .4em; }
.legal__list--nested {
  margin-top: .4em;
  padding-left: 1.5em;
}
.legal__date { margin-top: 2.4em; color: var(--c-text-sub); }

@media (min-width: 768px) {
  .legal__title { font-size: 2.25rem; margin-bottom: 48px; }
}
