/*
Theme Name: nn-none-mu
Theme URI: https://none-mu.jp/
Author: nn-none-mu
Description: ウィジェット中心のレイアウト構成と、カスタマイザーによるカラー / フォント / ヒーロー / ヘッダー&フッター背景 / 任意SNSリンク等の設定に対応した WordPress テーマ。
Version: 2.3.2
Requires at least: 6.2
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nn-none-mu
Tags: blog, custom-colors, custom-menu, featured-images, threaded-comments, widgets, block-patterns, custom-logo, translation-ready
*/

/* ===== Design Tokens ===== */

:root {
  /* Paper & ink — brighter pastel base */
  --paper: #fdfaf0;
  --paper-rgb: 253, 250, 240;
  --paper-2: #faf3e2;
  --paper-3: #f5ecd6;
  --paper-edge: #ebe0c4;
  --ink: #4a3f2e;
  --ink-rgb: 74, 63, 46;
  --ink-2: #7a6c54;
  --ink-3: #ad9f86;

  /* Accents (soft pastel palette) */
  --salmon: #f4a8a0;
  --salmon-rgb: 232, 138, 122;
  --salmon-soft: #fbcfc7;
  --salmon-deep: #e88a7a;
  --mustard: #f2c97a;
  --mustard-rgb: 242, 201, 122;
  --mustard-soft: #fae3b4;
  --sage: #a8d0b8;
  --sage-rgb: 168, 208, 184;
  --sage-soft: #cfe5d3;
  --sky: #a4c8e0;
  --sky-soft: #d3e3ee;
  --rose: #efbacb;
  --rose-soft: #f7d8e1;

  /* Semantic */
  --bg: var(--paper);
  --card: #fffbf2;
  --card-shadow: 0 6px 18px rgba(83, 62, 30, 0.08);
  --card-shadow-hover: 0 14px 36px rgba(83, 62, 30, 0.16);
  --border-soft: #e6dcc4;

  /* Type (Customizer の選択で動的に上書きされる) */
  --font-base: "Kosugi Maru", "Hiragino Sans", system-ui, sans-serif;
  --font-display: "Klee One", "Kosugi Maru", serif;
  --font-script: "Caveat", "Klee One", cursive;

  /* Per-element fonts — デフォルトでは display/base を継承。Customizer で個別上書き可 */
  --font-logo: var(--font-display);
  --font-hero: var(--font-display);
  --font-section: var(--font-display);
  --font-card-title: var(--font-display);
  --font-menu: var(--font-base);
  --font-button: var(--font-base);
  --font-meta: var(--font-script);
  --font-footer: var(--font-base);

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-base);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Layout ===== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(var(--paper-rgb), 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 0;
  box-shadow: none;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: 1180px;
  margin: 0 auto;
  gap: 24px;
}

/* ===== Header design variants ===== */

/* Classic: ロゴ左 / ナビ右 (デフォルト) */
.site-header.header-classic .header-inner { justify-content: space-between; }

/* Centered: ロゴをセンター、ナビを下段センター */
.site-header.header-centered .header-inner {
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 28px;
}
.site-header.header-centered .logo { font-size: 28px; }
.site-header.header-centered .nav { width: 100%; justify-content: center; }
.site-header.header-centered .wp-nav { justify-content: center; }

/* Stacked: ロゴ左 / ナビが下段フル幅 */
.site-header.header-stacked .header-inner {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.site-header.header-stacked .nav {
  width: 100%;
  justify-content: flex-start;
  border-top: 1px dashed var(--border-soft);
  padding-top: 8px;
}

/* Minimal: 区切り線なし・薄背景 */
.site-header.header-minimal {
  background-color: transparent;
  backdrop-filter: none;
  border-bottom: 0;
}
.site-header.header-minimal .header-inner { padding: 18px 28px; }

/* Banner: 大型 (ロゴ + サブタイトル + ナビ) */
.site-header.header-banner {
  position: static;
}
.site-header.header-banner .header-inner {
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 36px 28px 22px;
  text-align: center;
}
.site-header.header-banner .logo { font-size: 34px; }
.site-header.header-banner .logo .logo-sub { font-size: 20px; }
.site-header.header-banner .nav { width: 100%; justify-content: center; }
.site-header.header-banner .wp-nav { justify-content: center; }

/* Compact: ロゴ小・パディング控えめ */
.site-header.header-compact .header-inner {
  padding: 8px 28px;
}
.site-header.header-compact .logo { font-size: 20px; }
.site-header.header-compact .logo-image { width: 30px; height: 30px; flex-basis: 30px; }
.site-header.header-compact .wp-nav a,
.site-header.header-compact .nav-item { padding: 4px 10px; min-height: 32px; }

/* Header divider variants */
.site-header.header-divider-line { border-bottom: 1px solid var(--border-soft); }
.site-header.header-divider-dashed { border-bottom: 1px dashed var(--border-soft); }
.site-header.header-divider-soft-shadow { box-shadow: 0 4px 14px rgba(var(--ink-rgb), 0.08); }
.site-header.header-divider-shadow { box-shadow: 0 8px 24px rgba(var(--ink-rgb), 0.13); }
.site-header.header-divider-none { border-bottom: 0; box-shadow: none; }
.site-header.header-divider-image {
  border-bottom: 0;
  box-shadow: none;
  margin-bottom: var(--header-divider-height, 18px);
}
.site-header.header-divider-image::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(-1 * var(--header-divider-height, 18px));
  height: var(--header-divider-height, 18px);
  pointer-events: none;
  z-index: 3;
  background-image: var(--header-divider-image, none);
  background-repeat: var(--header-divider-repeat, repeat-x);
  background-size: var(--header-divider-size, auto 100%);
  background-position: var(--header-divider-position, center);
}
.logo {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  white-space: nowrap;
}
.logo .logo-sub {
  font-family: var(--font-script);
  font-size: 18px;
  color: var(--salmon);
  margin-left: 4px;
  white-space: nowrap;
}
.logo-image {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(var(--paper-rgb), 0.86);
  box-shadow: 0 2px 8px rgba(var(--ink-rgb), 0.12);
  flex: 0 0 38px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.wp-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.wp-nav .menu-item {
  margin: 0;
  padding: 0;
}
.wp-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  font-family: var(--font-menu);
  font-size: 12px;
  color: var(--ink-2);
  border-radius: var(--r-md);
  transition: transform .2s ease, background .2s ease, color .2s ease;
  position: relative;
}
.wp-nav a:hover {
  transform: translateY(-2px);
  background: rgba(var(--salmon-rgb), 0.08);
  color: var(--ink);
}
.wp-nav .current-menu-item > a,
.wp-nav .current-menu-ancestor > a,
.wp-nav .current_page_item > a {
  color: var(--salmon-deep);
}
.wp-nav .current-menu-item > a::after,
.wp-nav .current-menu-ancestor > a::after,
.wp-nav .current_page_item > a::after {
  content: "";
  position: absolute;
  left: 18%; right: 18%;
  bottom: -8px;
  height: 4px;
  border-radius: 3px;
  background: var(--salmon-deep);
  box-shadow: 0 2px 0 rgba(var(--salmon-rgb), 0.25);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 14px;
  font-family: var(--font-menu);
  font-size: 12px;
  color: var(--ink-2);
  border-radius: var(--r-md);
  transition: transform .2s ease, background .2s ease, color .2s ease;
  position: relative;
}
.nav-item:hover {
  transform: translateY(-2px);
  background: rgba(var(--salmon-rgb), 0.08);
  color: var(--ink);
}
.nav-item.active { color: var(--salmon-deep); }
.nav-item.active::after {
  content: "";
  position: absolute;
  left: 18%; right: 18%;
  bottom: -8px;
  height: 4px;
  border-radius: 3px;
  background: var(--salmon-deep);
  box-shadow: 0 2px 0 rgba(var(--salmon-rgb), 0.25);
}
.nav-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
}

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px 16px;
  }
  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

@media (max-width: 620px) {
  .container {
    padding: 0 18px;
  }
  .header-inner {
    padding: 10px 16px;
  }
  .logo {
    min-width: 0;
    font-size: 20px;
    max-width: 100%;
    overflow: hidden;
  }
  .logo > span:not(.logo-sub) {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .logo .logo-sub {
    display: none;
  }
  .logo-image {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .nav {
    justify-content: flex-start;
  }
  .nav-item,
  .wp-nav a {
    padding: 6px 10px;
    font-size: 11px;
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-family: var(--font-button);
  font-size: 14px;
  border: 1.5px dashed transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--salmon-deep);
  color: white;
  box-shadow: 0 4px 0 rgba(var(--salmon-rgb), 0.65), 0 8px 16px rgba(var(--salmon-rgb), 0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(var(--salmon-rgb), 0.65), 0 12px 22px rgba(var(--salmon-rgb), 0.28); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(var(--salmon-rgb), 0.65), 0 4px 8px rgba(var(--salmon-rgb), 0.22); }

.btn-soft {
  background: var(--paper-2);
  color: var(--ink);
  border: 1.5px dashed var(--border-soft);
}
.btn-soft:hover { background: var(--paper-3); transform: translateY(-1px); }

.btn-sage {
  background: var(--sage);
  color: white;
  box-shadow: 0 4px 0 rgba(var(--sage-rgb), 0.65), 0 8px 16px rgba(var(--sage-rgb), 0.22);
}
.btn-sage:hover { transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border-soft);
}
.btn-outline:hover { background: var(--paper-2); }

/* Accent: アクセント色の塗りボタン (差し色) */
.btn-accent {
  background: var(--mustard);
  color: var(--ink);
  box-shadow: 0 4px 0 rgba(var(--mustard-rgb), 0.7), 0 8px 16px rgba(var(--mustard-rgb), 0.22);
}
.btn-accent:hover { transform: translateY(-2px); }

/* Ghost: 背景なし・線なしで色だけ */
.btn-ghost {
  background: transparent;
  color: var(--salmon-deep);
  border: 1.5px solid transparent;
  padding: 12px 10px;
}
.btn-ghost:hover { color: var(--ink); background: rgba(var(--salmon-rgb), 0.08); }

/* Sketch: 手描き風の二重線ボタン */
.btn-sketch {
  background: transparent;
  color: var(--ink);
  border: 1.5px dashed var(--salmon-deep);
  position: relative;
  box-shadow: inset 0 0 0 3px rgba(var(--paper-rgb), 0.6);
}
.btn-sketch:hover {
  background: var(--rose-soft);
  border-style: solid;
  transform: translateY(-2px);
}

/* Solid dark: 墨色の塗り */
.btn-dark {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 4px 0 rgba(var(--ink-rgb), 0.72), 0 8px 16px rgba(var(--ink-rgb), 0.2);
}
.btn-dark:hover { transform: translateY(-2px); }

.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Cards ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--card-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
  position: relative;
}
.card:hover {
  transform: translateY(-8px) rotate(-0.6deg);
  box-shadow: var(--card-shadow-hover);
}
.card::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(135deg, transparent 0 8px, rgba(var(--ink-rgb), 0.025) 8px 9px);
  border-radius: inherit;
  z-index: 1;
}
.card > * { position: relative; z-index: 2; }
.card .ph, .card .body { z-index: 2; }
.ph {
  background-color: var(--paper-3);
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.page-header {
  margin: 28px 0 8px;
  padding: 36px 32px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.page-header h1 {
  font-family: var(--font-section);
  font-size: 32px;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.5;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.post-card .ph {
  aspect-ratio: 4/3;
  position: relative;
}
.post-card .body {
  padding: 16px 18px 18px;
}
.post-card h3 {
  font-family: var(--font-card-title);
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--salmon);
  line-height: 1.5;
}
.post-card .excerpt {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.7;
  margin: 0 0 10px;
}
.post-card .meta {
  font-family: var(--font-meta);
  font-size: 14px;
  color: var(--mustard);
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 36px 0 0;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--card);
  font-family: var(--font-base);
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  transition: all .15s ease;
}
.pagination .current {
  background: var(--sage);
  color: var(--paper);
  border-color: var(--sage);
}
.pagination a:hover { background: var(--paper-2); }
@media (max-width: 900px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-grid { grid-template-columns: 1fr; } }

/* Section heading */
.section-title {
  font-family: var(--font-section);
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--ink);
}

/* Tag chip */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: var(--paper-2);
  color: var(--ink-2);
  border-radius: var(--r-pill);
  font-size: 12px;
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition: all .15s ease;
}
.tag:hover { background: var(--mustard-soft); color: var(--ink); transform: translateY(-1px); }
.tag.active { background: var(--salmon); color: var(--paper); border-color: var(--salmon); }
.tag .hash { opacity: 0.7; }

/* Category badge on card */
.cat-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--salmon);
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 10px rgba(var(--salmon-rgb), 0.4);
}
.cat-badge.life { background: var(--sky); box-shadow: 0 4px 10px rgba(var(--sage-rgb), 0.34); }
.cat-badge.guild { background: var(--sage); box-shadow: 0 4px 10px rgba(var(--sage-rgb), 0.4); }
.cat-badge.event { background: var(--mustard); box-shadow: 0 4px 10px rgba(var(--mustard-rgb), 0.4); }

/* Polaroid */
.polaroid {
  background: var(--card);
  padding: 10px 10px 32px;
  box-shadow: 0 8px 22px rgba(var(--ink-rgb), 0.18);
  position: relative;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.polaroid::after {
  content: attr(data-caption);
  position: absolute;
  bottom: 8px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-meta);
  color: var(--ink-2);
  font-size: 16px;
}
.polaroid:hover {
  transform: translateY(-6px) rotate(0deg) !important;
  z-index: 5;
  box-shadow: 0 22px 36px rgba(var(--ink-rgb), 0.28);
}
.polaroid .ph {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 2px;
}

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(14px) rotate(-1deg);
  transition: opacity .55s ease, transform .55s ease;
}
.stagger.in > * { opacity: 1; transform: translateY(0) rotate(0); }
.stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
.stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
.stagger.in > *:nth-child(4) { transition-delay: 0.35s; }
.stagger.in > *:nth-child(5) { transition-delay: 0.45s; }
.stagger.in > *:nth-child(6) { transition-delay: 0.55s; }
.stagger.in > *:nth-child(7) { transition-delay: 0.65s; }
.stagger.in > *:nth-child(8) { transition-delay: 0.75s; }

/* Footer */
.site-footer {
  margin-top: 80px;
  background: transparent;
  position: relative;
  padding: 80px 0 30px;
  font-family: var(--font-footer);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}
.footer-logo {
  margin-bottom: 8px;
}
.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.wp-footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav a {
  color: var(--ink-2);
  font-size: 13px;
  position: relative;
  transition: color .15s ease;
}
.footer-nav a:hover { color: var(--salmon); }
.footer-nav a.active,
.wp-footer-nav .current-menu-item > a,
.wp-footer-nav .current_page_item > a { color: var(--salmon); }
.social-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--border-soft);
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.social-btn:hover {
  transform: translateY(-3px) rotate(-6deg);
  background: var(--salmon-deep);
  color: var(--paper);
  border-color: var(--salmon-deep);
}
.copyright {
  font-size: 11px;
  color: var(--ink-3);
  text-align: center;
  margin-top: 10px;
}

/* Footer divider variants */
.site-footer.footer-divider-line {
  border-top: 1px solid var(--border-soft);
}
.site-footer.footer-divider-dashed {
  border-top: 1px dashed var(--border-soft);
}
.site-footer.footer-divider-soft-shadow {
  box-shadow: 0 -8px 22px rgba(var(--ink-rgb), 0.08);
}
.site-footer.footer-divider-image {
  margin-top: calc(80px + var(--footer-divider-height, 24px));
}
.site-footer.footer-divider-image::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(-1 * var(--footer-divider-height, 24px));
  height: var(--footer-divider-height, 24px);
  pointer-events: none;
  background-image: var(--footer-divider-image, none);
  background-repeat: var(--footer-divider-repeat, repeat-x);
  background-size: var(--footer-divider-size, auto 100%);
  background-position: var(--footer-divider-position, center);
}

/* Footer design variants */
.site-footer.footer-split .footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  justify-items: stretch;
  gap: 16px 32px;
}
.site-footer.footer-split .footer-logo { justify-self: start; margin-bottom: 0; }
.site-footer.footer-split .footer-nav,
.site-footer.footer-split .wp-footer-nav,
.site-footer.footer-split .social-row { justify-content: flex-end; }
.site-footer.footer-split .social-row {
  grid-column: 2;
  justify-self: end;
}
.site-footer.footer-split .copyright {
  grid-column: 1 / -1;
  justify-self: end;
  text-align: right;
}

.site-footer.footer-stacked {
  padding-top: 96px;
}
.site-footer.footer-stacked .footer-inner {
  gap: 24px;
}

.site-footer.footer-banner {
  padding: 110px 0 44px;
  background: linear-gradient(180deg, transparent 0%, var(--paper-2) 100%);
}
.site-footer.footer-banner .footer-logo {
  font-size: 32px;
}
.site-footer.footer-banner .footer-nav a {
  font-size: 14px;
}

.site-footer.footer-minimal {
  padding: 44px 0 24px;
}
.site-footer.footer-minimal .footer-logo,
.site-footer.footer-minimal .social-row {
  display: none;
}
.site-footer.footer-minimal .footer-inner {
  gap: 12px;
}

.site-footer.footer-compact {
  margin-top: 48px;
  padding: 38px 0 22px;
}
.site-footer.footer-compact.footer-divider-image {
  margin-top: calc(48px + var(--footer-divider-height, 24px));
}
.site-footer.footer-compact .footer-inner {
  gap: 10px;
}
.site-footer.footer-compact .footer-logo {
  font-size: 20px;
  margin-bottom: 0;
}
.site-footer.footer-compact .logo-image {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}
.site-footer.footer-compact .social-btn {
  width: 34px;
  height: 34px;
}

@media (max-width: 720px) {
  .site-footer.footer-split .footer-inner {
    display: flex;
    align-items: center;
  }
  .site-footer.footer-split .footer-logo,
  .site-footer.footer-split .copyright {
    justify-self: auto;
    text-align: center;
  }
  .site-footer.footer-split .footer-nav,
  .site-footer.footer-split .wp-footer-nav,
  .site-footer.footer-split .social-row {
    justify-content: center;
  }
}

/* ===== Front Page Composition ===== */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  margin-top: 8px;
}
.home-main,
.sidebar { min-width: 0; }
.main-single { margin-top: 8px; }
@media (max-width: 900px) {
  .main-grid { grid-template-columns: 1fr; }
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  margin-top: 24px;
}
@media (max-width: 900px) {
  .layout-with-sidebar { grid-template-columns: 1fr; }
}

.home-main > .widget,
.home-main > section {
  position: relative;
}
.home-main > .widget + .widget,
.home-main > section + section,
.home-main > section + .widget,
.home-main > .widget + section { margin-top: var(--section-gap, 48px); }

body.section-divider-none .home-main > .widget + .widget,
body.section-divider-none .home-main > section + section,
body.section-divider-none .home-main > section + .widget,
body.section-divider-none .home-main > .widget + section {
  margin-top: 0;
}

body.section-divider-line .home-main > .widget + .widget::before,
body.section-divider-line .home-main > section + section::before,
body.section-divider-line .home-main > section + .widget::before,
body.section-divider-line .home-main > .widget + section::before,
body.section-divider-dashed .home-main > .widget + .widget::before,
body.section-divider-dashed .home-main > section + section::before,
body.section-divider-dashed .home-main > section + .widget::before,
body.section-divider-dashed .home-main > .widget + section::before,
body.section-divider-dots .home-main > .widget + .widget::before,
body.section-divider-dots .home-main > section + section::before,
body.section-divider-dots .home-main > section + .widget::before,
body.section-divider-dots .home-main > .widget + section::before,
body.section-divider-image .home-main > .widget + .widget::before,
body.section-divider-image .home-main > section + section::before,
body.section-divider-image .home-main > section + .widget::before,
body.section-divider-image .home-main > .widget + section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

body.section-divider-line .home-main > .widget + .widget::before,
body.section-divider-line .home-main > section + section::before,
body.section-divider-line .home-main > section + .widget::before,
body.section-divider-line .home-main > .widget + section::before {
  top: var(--section-divider-offset, -24px);
  height: 1px;
  background: var(--border-soft);
}

body.section-divider-dashed .home-main > .widget + .widget::before,
body.section-divider-dashed .home-main > section + section::before,
body.section-divider-dashed .home-main > section + .widget::before,
body.section-divider-dashed .home-main > .widget + section::before {
  top: var(--section-divider-offset, -24px);
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--border-soft) 0 8px, transparent 8px 14px);
}

body.section-divider-dots .home-main > .widget + .widget::before,
body.section-divider-dots .home-main > section + section::before,
body.section-divider-dots .home-main > section + .widget::before,
body.section-divider-dots .home-main > .widget + section::before {
  top: var(--section-divider-offset, -24px);
  height: 4px;
  background: radial-gradient(circle, var(--border-soft) 2px, transparent 2.5px) repeat-x center / 14px 4px;
}

body.section-divider-image .home-main > .widget + .widget,
body.section-divider-image .home-main > section + section,
body.section-divider-image .home-main > section + .widget,
body.section-divider-image .home-main > .widget + section {
  margin-top: calc(var(--section-gap, 48px) + var(--section-divider-height, 22px));
}
body.section-divider-image .home-main > .widget + .widget::before,
body.section-divider-image .home-main > section + section::before,
body.section-divider-image .home-main > section + .widget::before,
body.section-divider-image .home-main > .widget + section::before {
  top: var(--section-divider-image-top, -46px);
  height: var(--section-divider-height, 22px);
  background-image: var(--section-divider-image, none);
  background-repeat: var(--section-divider-repeat, repeat-x);
  background-size: var(--section-divider-size, auto 100%);
  background-position: var(--section-divider-position, center);
}

/* ===== Hero (widget / customizer 共通) ===== */
.hero {
  position: relative;
  margin: 18px 0 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  isolation: isolate;
}

/* 全幅モード: コンテナを抜けて画面いっぱい */
.hero.hero-full {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;
  border-radius: 0;
  box-shadow: none;
}

.main-grid .hero.hero-full,
.layout-with-sidebar .hero.hero-full {
  left: auto;
  right: auto;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  max-width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--card-shadow);
}

.hero-art {
  width: 100%;
  height: 460px;
  background:
    radial-gradient(circle at 20% 25%, rgba(var(--salmon-rgb), 0.35), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(var(--mustard-rgb), 0.35), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(var(--sage-rgb), 0.35), transparent 50%),
    radial-gradient(circle at 25% 80%, var(--sky-soft), transparent 45%),
    linear-gradient(135deg, var(--salmon-soft) 0%, var(--mustard-soft) 35%, var(--sage-soft) 70%, var(--sky-soft) 100%);
  background-position: center;
  background-size: cover;
  position: relative;
}

/* ===== Hero Overlay ===== */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-overlay-color { background: var(--hero-overlay-color, rgba(0,0,0,0.3)); }
.hero-overlay-blur {
  backdrop-filter: blur(var(--hero-overlay-blur, 6px));
  -webkit-backdrop-filter: blur(var(--hero-overlay-blur, 6px));
  background: var(--hero-overlay-color, rgba(255,255,255,0.05));
}
.hero-overlay-dots {
  background-color: var(--hero-overlay-color, rgba(0,0,0,0.15));
  background-image: radial-gradient(rgba(0,0,0,0.35) 1px, transparent 1.4px);
  background-size: 6px 6px;
}
.hero-overlay-grid {
  background-color: var(--hero-overlay-color, rgba(0,0,0,0.18));
  background-image:
    linear-gradient(rgba(255,255,255,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 24px 24px;
}
.hero-overlay-vignette {
  background: radial-gradient(ellipse at center,
    transparent 40%,
    var(--hero-overlay-color, rgba(0,0,0,0.55)) 100%);
}
.hero-overlay-gradient {
  background: linear-gradient(180deg,
    transparent 0%,
    var(--hero-overlay-color, rgba(0,0,0,0.5)) 100%);
}
.hero-overlay-paper {
  background-color: var(--hero-overlay-color, rgba(253,250,240,0.55));
  background-image: repeating-linear-gradient(45deg, transparent 0 6px, rgba(120,90,60,0.05) 6px 7px);
}

.hero-content {
  position: absolute;
  inset: 0;
  padding: 64px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
}
.hero h1 {
  font-family: var(--font-hero);
  font-size: 54px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 20px;
  color: var(--ink);
  text-shadow: 0 2px 0 rgba(var(--paper-rgb), 0.7);
  max-width: 600px;
}
.hero h1 .accent { color: var(--salmon-deep); }
.hero p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 2;
  max-width: 480px;
  margin: 0 0 28px;
}

/* Hero alignment (text + button) */
.hero.hero-align-center .hero-content {
  align-items: center;
  text-align: center;
}
.hero.hero-align-center h1,
.hero.hero-align-center p { max-width: 720px; }
.hero.hero-align-center .btn { align-self: center; }
.hero.hero-align-right .hero-content {
  align-items: flex-end;
  text-align: right;
}
.hero.hero-align-right h1,
.hero.hero-align-right p { margin-left: auto; }
.hero.hero-align-right .btn { align-self: flex-end; }
.hero.hero-align-left .hero-content { align-items: flex-start; text-align: left; }
.hero.hero-align-left .btn { align-self: flex-start; }

/* オーバーレイ使用時の文字色フォールバック */
.hero.hero-has-overlay h1 { text-shadow: 0 1px 4px rgba(0,0,0,0.35); }

@media (max-width: 900px) {
  .hero-content { padding: 32px 28px; }
  .hero h1 { font-size: 36px; }
}

/* ===== Category cards (widget) ===== */
.categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding: 36px 24px;
  margin: 28px 0;
  background: linear-gradient(180deg, transparent, rgba(var(--paper-rgb), 0.5));
  border-top: 1px dashed var(--border-soft);
  border-bottom: 1px dashed var(--border-soft);
  position: relative;
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 8px;
  position: relative;
  transition: transform .2s ease;
  color: inherit;
  text-decoration: none;
}
.cat-card:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 25%;
  bottom: 25%;
  border-right: 1px dashed var(--border-soft);
}
.cat-card:hover { transform: translateY(-4px); }
.cat-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.cat-icon.c-note,
.cat-icon.c-shot,
.cat-icon.c-art,
.cat-icon.c-fav,
.cat-icon.c-other { color: var(--ink); }
.cat-icon.c-note { background: var(--mustard-soft); }
.cat-icon.c-shot  { background: var(--salmon-soft); }
.cat-icon.c-art   { background: var(--rose-soft); }
.cat-icon.c-fav   { background: var(--salmon-soft); }
.cat-icon.c-other { background: var(--sage-soft); }
.cat-card h3 {
  font-family: var(--font-card-title);
  font-size: 16px;
  margin: 4px 0 0;
}
.cat-card p {
  font-size: 11px;
  color: var(--ink-3);
  margin: 0;
}
@media (max-width: 900px) { .categories { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .categories { grid-template-columns: repeat(2, 1fr); } }

/* ===== Diary grid ===== */
.cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 720px) { .cards-row { grid-template-columns: 1fr; } }

/* ===== Sidebar pieces ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.profile-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 22px 18px 18px;
  text-align: center;
  position: relative;
}
.ribbon {
  position: relative;
  display: inline-block;
  background: var(--sage-soft);
  color: var(--ink);
  font-family: var(--font-meta);
  font-size: 13px;
  padding: 6px 22px;
  border-radius: 4px;
  margin: -32px auto 14px;
}
.ribbon::before, .ribbon::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12px;
  background: var(--sage-soft);
  filter: brightness(0.85);
}
.ribbon::before { left: -10px; clip-path: polygon(0 0, 100% 0, 60% 50%, 100% 100%, 0 100%); }
.ribbon::after  { right: -10px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 40% 50%); }
.profile-card .avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mustard-soft), var(--salmon-soft));
  margin: 0 auto 14px;
  position: relative;
  border: 3px solid var(--card);
  box-shadow: 0 4px 12px rgba(var(--ink-rgb), 0.08);
  background-size: cover;
  background-position: center;
}
.profile-card .avatar::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px dashed var(--salmon);
  opacity: 0.5;
  pointer-events: none;
}
.profile-name {
  font-family: var(--font-card-title);
  font-size: 15px;
  margin: 0 0 8px;
}
.profile-bio {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.8;
  margin: 0 0 16px;
}

/* ===== Polaroid row (widget) ===== */
.shots-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 22px 6px 30px;
}
@media (max-width: 720px) { .shots-row { grid-template-columns: repeat(2, 1fr); } }
.shots-row .polaroid:nth-child(1) { transform: rotate(-3deg); }
.shots-row .polaroid:nth-child(2) { transform: rotate(2deg); }
.shots-row .polaroid:nth-child(3) { transform: rotate(-1.5deg); }
.shots-row .polaroid:nth-child(4) { transform: rotate(2.5deg); }

/* ===== Feature trio ===== */
.three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 12px;
  position: relative;
}
@media (max-width: 720px) { .three-up { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 18px;
  position: relative;
}
.feature-card h3 {
  font-family: var(--font-card-title);
  font-size: 14px;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.feature-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.feature-row .ph {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--card);
  box-shadow: 0 2px 8px rgba(var(--ink-rgb), 0.08);
  background-size: cover;
  background-position: center;
}
.feature-row .info {
  font-size: 12px;
  line-height: 1.7;
}
.feature-row .info b {
  font-family: var(--font-card-title);
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
}

/* ===== Note box ===== */
.note-box {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 16px;
  font-size: 13px;
  line-height: 2;
  position: relative;
  background-image: repeating-linear-gradient(transparent 0 27px, rgba(var(--ink-rgb), 0.12) 27px 28px);
  font-family: var(--font-base);
}

/* ===== Block (section wrapper) ===== */
.block { margin-top: 56px; }
.see-more-row {
  display: flex;
  justify-content: center;
  margin-top: 22px;
  position: relative;
}

/* ===== Header top (お知らせ) ===== */
.header-top {
  background: var(--notice-bg, var(--paper-2));
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.08);
  color: var(--notice-color, var(--ink));
  font-size: 12.5px;
}
.notice-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 28px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}
.notice-text {
  line-height: 1.5;
}
.notice-text-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.notice-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--notice-button-bg, var(--salmon-deep));
  color: var(--notice-button-text, var(--paper));
  font-family: var(--font-button);
  font-size: 12px;
  line-height: 1.2;
}
@media (max-width: 620px) {
  .notice-inner {
    padding: 8px 16px;
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }
}

/* ===== Footer widgets ===== */
.footer-widgets {
  background: transparent;
  padding: 56px 0 24px;
}
.footer-widgets-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
@media (max-width: 720px) { .footer-widgets-inner { grid-template-columns: 1fr; gap: 24px; } }
.footer-widgets .widget-title { font-size: 18px; margin: 0 0 12px; }

/* ===== Widget の見出しは section-title を継承 ===== */
.widget-title.section-title { font-size: 22px; margin: 0 0 18px; }

/* Archive description */
.archive-desc {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 10px;
  line-height: 1.8;
}

/* ===== Media gallery widget ===== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(var(--media-cols, 4), 1fr);
  gap: 14px;
}
@media (max-width: 720px) {
  .media-grid { grid-template-columns: repeat(2, 1fr); }
}
.media-tile {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-3);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.media-tile:hover { transform: translateY(-3px) rotate(-0.4deg); box-shadow: var(--card-shadow-hover); }
.media-tile .ph {
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
}
.media-tile.polaroid { padding: 0; background: var(--card); }

/* ===== Modular post list / media pickup widgets ===== */
.module-empty {
  margin: 0;
  padding: 24px;
  text-align: center;
  color: var(--ink-3);
  background: var(--paper-2);
  border-radius: var(--r-md);
}
.module-post-list.post-list-cards {
  display: grid;
  grid-template-columns: repeat(var(--module-cols, 3), minmax(0, 1fr));
  gap: 18px;
}
.module-post-list.post-list-list,
.module-post-list.post-list-compact {
  display: grid;
  gap: 12px;
}
.post-list-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  box-shadow: var(--card-shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-list-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--salmon-soft);
}
.post-list-thumb {
  display: block;
  width: 96px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: var(--paper-3);
  background-position: center;
  background-size: cover;
}
.post-list-compact .post-list-item {
  grid-template-columns: 56px minmax(0, 1fr);
  padding: 9px 10px;
}
.post-list-compact .post-list-thumb {
  width: 56px;
  aspect-ratio: 1 / 1;
}
.post-list-body {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.post-list-title {
  font-family: var(--font-card-title);
  color: var(--ink);
  line-height: 1.5;
}
.post-list-excerpt {
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.6;
}
.post-list-meta {
  color: var(--mustard);
  font-family: var(--font-meta);
  font-size: 14px;
}
.media-pickup {
  display: grid;
  grid-template-columns: repeat(var(--pickup-cols, 4), minmax(0, 1fr));
  gap: 14px;
}
.media-pickup-item {
  display: block;
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--card-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.media-pickup-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}
.media-pickup-item .ph {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-position: center;
  background-size: cover;
}
.media-pickup-caption {
  display: block;
  padding: 8px 10px 10px;
  color: var(--ink-2);
  font-family: var(--font-meta);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}
.media-pickup-feature {
  grid-template-columns: 1.35fr repeat(2, minmax(0, 1fr));
}
.media-pickup-feature .media-pickup-item:first-child {
  grid-row: span 2;
}
.media-pickup-feature .media-pickup-item:first-child .ph {
  height: 100%;
  min-height: 330px;
  aspect-ratio: auto;
}
.media-pickup-strip {
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  grid-template-columns: none;
  overflow-x: auto;
  padding-bottom: 6px;
}
.media-pickup-strip .media-pickup-item .ph {
  aspect-ratio: 16 / 10;
}
@media (max-width: 900px) {
  .module-post-list.post-list-cards,
  .media-pickup,
  .media-pickup-feature {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .media-pickup-feature .media-pickup-item:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}
@media (max-width: 620px) {
  .module-post-list.post-list-cards,
  .media-pickup,
  .media-pickup-feature {
    grid-template-columns: 1fr;
  }
  .post-list-item,
  .post-list-compact .post-list-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .post-list-thumb,
  .post-list-compact .post-list-thumb {
    width: 72px;
  }
}

/* ===== General purpose main-column modules ===== */
.module-intro {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.9;
  max-width: 760px;
  margin: -6px 0 20px;
}
.module-intro > :first-child,
.module-body > :first-child { margin-top: 0; }
.module-intro > :last-child,
.module-body > :last-child { margin-bottom: 0; }

.module-shell,
.stats-module {
  border-radius: var(--r-lg);
  position: relative;
}
.module-shell {
  padding: 30px;
  overflow: hidden;
}
.module-bg-transparent { background: transparent; }
.module-bg-paper       { background: var(--paper-2); }
.module-bg-card        { background: var(--card); border: 1px solid var(--border-soft); box-shadow: var(--card-shadow); }
.module-bg-sage        { background: var(--sage-soft); }
.module-bg-rose        { background: var(--rose-soft); }
.module-bg-mustard     { background: var(--mustard-soft); }
.module-bg-sky         { background: var(--sky-soft); }
.module-bg-ink         { background: var(--ink); color: var(--paper); }
.module-bg-ink .section-title,
.module-bg-ink .module-eyebrow,
.module-bg-ink .module-body,
.module-bg-ink a { color: inherit; }
.module-bg-ink .btn-ghost { color: var(--paper); }

.module-align-left { text-align: left; }
.module-align-center { text-align: center; }
.module-align-right { text-align: right; }
.module-align-center .section-title { justify-content: center; }
.module-align-right .section-title { justify-content: flex-end; }
.module-align-center .module-actions { justify-content: center; }
.module-align-right .module-actions { justify-content: flex-end; }
.module-align-center .btn { align-self: center; }
.module-align-right .btn { align-self: flex-end; }

.module-eyebrow {
  color: var(--salmon-deep);
  font-family: var(--font-meta);
  font-size: 15px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.module-body {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.9;
}
.module-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}

.text-media-module {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.78fr);
  gap: 28px;
  align-items: center;
}
.text-media-left {
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1fr);
}
.text-media-module .module-copy { order: 1; }
.text-media-module .module-media { order: 2; }
.text-media-left .module-media { order: 1; }
.text-media-left .module-copy { order: 2; }
.text-media-top .module-media { order: 1; }
.text-media-top .module-copy { order: 2; }
.text-media-top {
  grid-template-columns: 1fr;
}
.text-media-background {
  min-height: 320px;
  display: flex;
  align-items: center;
}
.text-media-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(var(--paper-rgb), 0.9), rgba(var(--paper-rgb), 0.68));
  z-index: 1;
}
.text-media-background.module-align-center::before {
  background: rgba(var(--paper-rgb), 0.78);
}
.text-media-background.module-align-right::before {
  background: linear-gradient(270deg, rgba(var(--paper-rgb), 0.9), rgba(var(--paper-rgb), 0.68));
}
.text-media-bg-art {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.text-media-module .module-copy,
.text-media-module .module-media {
  position: relative;
  z-index: 2;
}
.module-media-frame {
  width: 100%;
  min-height: 220px;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  background-color: var(--paper-3);
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(var(--ink-rgb), 0.08);
  box-shadow: var(--card-shadow);
}

.cta-module {
  min-height: 190px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 26px;
  align-items: center;
}
.cta-module .module-copy { order: 1; }
.cta-module .section-title {
  font-size: 26px;
}
.cta-visual {
  order: 2;
  justify-self: end;
  width: 180px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--paper-3);
  background-position: center;
  background-size: cover;
  border: 4px solid rgba(var(--paper-rgb), 0.72);
  box-shadow: 0 12px 28px rgba(var(--ink-rgb), 0.14);
}

.link-card-module {
  display: grid;
  grid-template-columns: repeat(var(--module-cols, 3), minmax(0, 1fr));
  gap: 14px;
}
.link-card-list {
  grid-template-columns: 1fr;
}
.module-link-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  box-shadow: var(--card-shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.module-link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--salmon-soft);
}
.module-card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper-2);
}
.module-link-card:nth-child(3n+1) .module-card-icon { background: var(--salmon-soft); }
.module-link-card:nth-child(3n+2) .module-card-icon { background: var(--sage-soft); }
.module-link-card:nth-child(3n) .module-card-icon { background: var(--mustard-soft); }
.module-card-body {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.module-card-title {
  font-family: var(--font-card-title);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
}
.module-card-text {
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.65;
}
.module-card-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--salmon-deep);
  font-family: var(--font-meta);
  font-size: 14px;
  margin-top: 4px;
}

.steps-module {
  display: grid;
  gap: 14px;
}
.step-item {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
}
.steps-timeline .step-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 56px;
  bottom: -18px;
  border-left: 1px dashed var(--border-soft);
}
.step-number {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--mustard-soft);
  border: 2px solid var(--card);
  box-shadow: 0 4px 12px rgba(var(--ink-rgb), 0.08);
  font-family: var(--font-meta);
  font-size: 18px;
}
.step-copy {
  min-width: 0;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
}
.step-meta {
  color: var(--salmon-deep);
  font-family: var(--font-meta);
  font-size: 14px;
  margin-bottom: 2px;
}
.step-copy h3 {
  font-family: var(--font-card-title);
  font-size: 16px;
  margin: 0 0 6px;
}
.step-body {
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.75;
}
.step-body > :first-child { margin-top: 0; }
.step-body > :last-child { margin-bottom: 0; }
.steps-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.steps-cards .step-item {
  grid-template-columns: 1fr;
}
.steps-cards .step-copy {
  min-height: 100%;
}

.faq-module {
  display: grid;
  gap: 10px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq-plain .faq-item {
  background: transparent;
  box-shadow: none;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  font-family: var(--font-card-title);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--salmon-deep);
  font-family: var(--font-base);
}
.faq-item[open] summary::after { content: "-"; }
.faq-answer {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.8;
  padding: 0 18px 16px;
}
.faq-answer > :first-child { margin-top: 0; }
.faq-answer > :last-child { margin-bottom: 0; }

.stats-module {
  display: grid;
  grid-template-columns: repeat(var(--module-cols, 4), minmax(0, 1fr));
  gap: 14px;
}
.stats-module:not(.module-bg-transparent) {
  padding: 20px;
}
.stat-card {
  min-width: 0;
  padding: 18px 14px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  box-shadow: var(--card-shadow);
}
.module-bg-ink .stat-card {
  background: rgba(var(--paper-rgb), 0.08);
  border-color: rgba(var(--paper-rgb), 0.22);
}
.stat-value {
  font-family: var(--font-section);
  font-size: 30px;
  line-height: 1.2;
  color: var(--salmon-deep);
}
.module-bg-ink .stat-value { color: var(--mustard-soft); }
.stat-label {
  font-family: var(--font-card-title);
  font-size: 14px;
  margin-top: 4px;
}
.stat-card p {
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.65;
  margin: 8px 0 0;
}
.module-bg-ink .stat-card p { color: rgba(var(--paper-rgb), 0.78); }

.module-separator {
  min-height: var(--sep-space, 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--ink-3);
  font-family: var(--font-meta);
  font-size: 14px;
}
.separator-line::before,
.separator-dashed::before,
.separator-dots::before,
.separator-label::before,
.separator-label::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: var(--border-soft);
}
.separator-dashed::before {
  background: repeating-linear-gradient(90deg, var(--border-soft) 0 8px, transparent 8px 14px);
}
.separator-dots::before {
  height: 4px;
  background: radial-gradient(circle, var(--border-soft) 2px, transparent 2.5px) repeat-x center / 14px 4px;
}
.separator-image {
  min-height: var(--sep-space, 40px);
  background-image: var(--sep-image, none);
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: center;
}
.separator-label span {
  flex: 0 0 auto;
  padding: 0 14px;
}

@media (max-width: 900px) {
  .text-media-module,
  .text-media-left,
  .cta-module {
    grid-template-columns: 1fr;
  }
  .cta-visual {
    width: min(220px, 70vw);
    justify-self: center;
  }
  .link-card-module,
  .steps-cards,
  .stats-module {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .module-shell {
    padding: 22px 18px;
  }
  .link-card-module,
  .steps-cards,
  .stats-module {
    grid-template-columns: 1fr;
  }
  .step-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .step-number {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }
  .steps-timeline .step-item:not(:last-child)::before {
    left: 20px;
    top: 44px;
  }
}

/* ===== Free module widget ===== */
.free-module {
  border-radius: var(--r-lg);
  position: relative;
}
.free-pad-none   { padding: 0; }
.free-pad-small  { padding: 14px 18px; }
.free-pad-normal { padding: 24px 28px; }
.free-pad-large  { padding: 44px 36px; }
.free-align-left   { text-align: left; }
.free-align-center { text-align: center; }
.free-align-right  { text-align: right; }
.free-align-center .section-title { justify-content: center; }
.free-align-right  .section-title { justify-content: flex-end; }
.free-bg-transparent { background: transparent; }
.free-bg-paper       { background: var(--paper-2); }
.free-bg-card        { background: var(--card); border: 1px solid var(--border-soft); box-shadow: var(--card-shadow); }
.free-bg-sage        { background: var(--sage-soft); }
.free-bg-rose        { background: var(--rose-soft); }
.free-bg-mustard     { background: var(--mustard-soft); }
.free-bg-sky         { background: var(--sky-soft); }
.free-bg-ink         { background: var(--ink); color: var(--paper); }
.free-bg-ink .section-title,
.free-bg-ink a { color: inherit; }
.free-module-body > :first-child { margin-top: 0; }
.free-module-body > :last-child  { margin-bottom: 0; }
