/* 夢読みの扉 — トップページ */
:root {
  --bg-deep: #1a1a40;
  --bg-violet: #2a1f5c;
  --purple: #4b0082;
  --purple-light: #6b2ca0;
  --gold: #ffd700;
  --gold-soft: rgba(255, 215, 0, 0.45);
  --pink: #ffb6c1;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.82);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.22);
  --font-serif: "Noto Serif JP", "Yu Mincho", serif;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --radius-pill: 999px;
  --shadow-glow: 0 0 28px rgba(147, 112, 219, 0.45), 0 0 64px rgba(75, 0, 130, 0.35);
  --page-bg-image: url("../assets/hero-bg.png");
  --header-height: 88px;
  --sticky-toc-top: 88px;
  --scroll-anchor-padding: 168px;
  --toc-sidebar-width: 260px;
  /* カテゴリカード背景（assets/categories/）。不要時は none に戻す。人間関係用ファイル名は peaple.png */
  --cat-card-bg-love: url("../assets/categories/love.png");
  --cat-card-bg-work: url("../assets/categories/work.png");
  --cat-card-bg-people: url("../assets/categories/peaple.png");
  --cat-card-bg-money: url("../assets/categories/money.png");
  --cat-card-bg-animal: url("../assets/categories/animal.png");
  --cat-card-bg-nature: url("../assets/categories/nature.png");
  --cat-card-bg-building: url("../assets/categories/building.png");
  --cat-card-bg-body: url("../assets/categories/body.png");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-anchor-padding, 168px);
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--text);
  background: transparent;
  overflow-x: hidden;
}

.page-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 0;
  background-color: var(--bg-deep);
  background-image: var(--page-bg-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.stars {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 30% 75%, rgba(255, 215, 0, 0.35), transparent),
    radial-gradient(1px 1px at 90% 10%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 45% 55%, rgba(255, 255, 255, 0.4), transparent);
  background-size: 100% 100%;
  opacity: 0;
  z-index: 1;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 64, 0.35),
    rgba(26, 26, 64, 0.12),
    transparent
  );
  backdrop-filter: blur(8px);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  flex-shrink: 0;
}

.logo__moon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff9e6, var(--gold) 45%, #b8860b);
  box-shadow: 0 0 16px var(--gold-soft);
  position: relative;
}

.logo__moon::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-deep);
  top: 3px;
  left: 8px;
  opacity: 0.9;
}

.nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 20px;
}

.nav__list > li {
  display: flex;
  align-items: center;
}

.nav__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a.nav__link {
  display: inline-flex;
  align-items: center;
}

.nav__link:hover {
  color: var(--text);
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
}

.nav__link--active {
  color: var(--text);
}

.nav__link--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--gold-soft);
}

button.nav__link--theme {
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  padding: 6px 2px;
  display: inline-flex;
  align-items: center;
}

.nav__link--theme[aria-expanded="true"] {
  color: var(--text);
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ヘッダー内クイック検索（虫眼鏡の右＝入力欄） */
.header-search {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  max-width: min(280px, 32vw);
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  flex-shrink: 1;
}

.header-search__submit {
  flex-shrink: 0;
  border-radius: 0;
  border: none;
  border-right: 1px solid var(--glass-border);
  width: 42px;
  min-width: 42px;
}

.header-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  padding: 0 12px 0 10px;
  outline: none;
}

.header-search__input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.icon-btn:hover {
  box-shadow: var(--shadow-glow);
  border-color: rgba(255, 215, 0, 0.55);
  transform: translateY(-1px);
}

.pill-btn {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  cursor: pointer;
  white-space: nowrap;
  transition: box-shadow 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.pill-btn:hover {
  box-shadow: var(--shadow-glow);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.pill-btn--gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill-btn__star {
  color: var(--gold);
  font-size: 0.9rem;
  filter: drop-shadow(0 0 6px var(--gold-soft));
}

@media (max-width: 1024px) {
  .header__inner {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
  }

  .nav__list {
    gap: 8px 14px;
  }

  .header__actions {
    margin-left: auto;
  }

  .header-search {
    max-width: min(220px, 36vw);
  }

  .header__actions .pill-btn:not(#search-history-toggle) {
    display: none;
  }
}

/* 検索履歴パネル（ヘッダー直下に固定） */
.search-history-panel {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-height, 88px);
  z-index: 48;
  max-height: min(48vh, 320px);
  overflow-y: auto;
  padding: 14px 0 16px;
  background: rgba(22, 22, 52, 0.94);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.search-history-panel__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-history-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.search-history-panel__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.search-history-panel__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.search-history-panel__close:hover {
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold);
}

.search-history-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.search-history-panel__empty {
  flex: 0 0 100%;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.search-history-panel__item {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.search-history-panel__item:hover {
  border-color: rgba(255, 215, 0, 0.45);
  background: rgba(255, 215, 0, 0.12);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.15);
}

.search-history-panel__clear {
  align-self: flex-start;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.search-history-panel__clear:hover {
  color: var(--gold);
}

/* テーマ別ドロップダウン（ヘッダー直下） */
.theme-dropdown-panel {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-height, 88px);
  z-index: 48;
  max-height: min(52vh, 360px);
  overflow-y: auto;
  padding: 14px 0 18px;
  background: rgba(22, 22, 52, 0.94);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.theme-dropdown-panel__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.theme-dropdown-panel__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.theme-dropdown-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.theme-dropdown-panel__item-wrap {
  list-style: none;
  margin: 0;
  padding: 0;
}

.theme-dropdown-panel__item {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.theme-dropdown-panel__item:hover {
  border-color: rgba(255, 215, 0, 0.45);
  background: rgba(255, 215, 0, 0.14);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.15);
}

/* 詳細表示時：左固定の項目ナビ */

.result-toc-sidebar {
  position: fixed;
  left: 0;
  top: var(--header-height, 88px);
  width: var(--toc-sidebar-width);
  max-width: min(var(--toc-sidebar-width), 36vw);
  max-height: calc(100vh - var(--header-height, 88px));
  overflow-y: auto;
  z-index: 46;
  padding: 16px 14px 20px;
  box-sizing: border-box;
  /* すりガラス：半透明＋背景ぼかし（背面が透ける量の調整） */
  background: linear-gradient(
    180deg,
    rgba(24, 20, 52, 0.52) 0%,
    rgba(18, 14, 44, 0.46) 50%,
    rgba(14, 12, 38, 0.55) 100%
  );
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.1),
    4px 0 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
}

@supports not ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  .result-toc-sidebar {
    background: linear-gradient(
      180deg,
      rgba(18, 18, 48, 0.94) 0%,
      rgba(14, 14, 40, 0.92) 100%
    );
  }
}

.result-toc-sidebar__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-toc-sidebar__heading--desktop {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 224, 160, 0.85);
}

.result-toc-sidebar__toggle {
  display: none;
}

.result-toc-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.result-toc-sidebar__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-toc-sidebar__grouplabel {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
}

.result-toc-sidebar__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-toc-sidebar__link {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.28);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.result-toc-sidebar__link:hover {
  background: rgba(255, 215, 0, 0.22);
  border-color: rgba(255, 215, 0, 0.45);
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.12);
}

.result-toc-sidebar__link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

body.has-toc-sidebar main {
  padding-left: var(--toc-sidebar-width);
  box-sizing: border-box;
}

@media (max-width: 720px) {
  .result-toc-sidebar {
    position: sticky;
    top: var(--header-height, 88px);
    left: auto;
    right: auto;
    width: 100%;
    max-width: none;
    max-height: none;
    overflow: visible;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
    z-index: 45;
  }

  .result-toc-sidebar__inner {
    gap: 0;
  }

  .result-toc-sidebar__heading--desktop {
    display: none;
  }

  .result-toc-sidebar__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    font: inherit;
    text-align: left;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 215, 0, 0.15);
    touch-action: manipulation;
  }

  .result-toc-sidebar__toggle:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
  }

  .result-toc-sidebar__toggle-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 224, 160, 0.9);
  }

  .result-toc-sidebar__chevron {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    display: grid;
    place-items: center;
    opacity: 0.9;
  }

  .result-toc-sidebar__chevron::before {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    border-right: 2px solid rgba(255, 224, 160, 0.9);
    border-bottom: 2px solid rgba(255, 224, 160, 0.9);
    transform: rotate(-135deg);
    margin-top: -0.15rem;
    transition: transform 0.2s ease;
  }

  .result-toc-sidebar--collapsed .result-toc-sidebar__chevron::before {
    transform: rotate(45deg);
    margin-top: 0.12rem;
  }

  .result-toc-sidebar__panel {
    padding: 12px 14px 16px;
    max-height: min(52vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .result-toc-sidebar--collapsed .result-toc-sidebar__panel {
    display: none;
  }

  .result-toc-sidebar--collapsed .result-toc-sidebar__toggle {
    border-bottom: none;
  }

  body.has-toc-sidebar main {
    padding-left: 0;
  }

  .result-toc-sidebar__link {
    font-size: 0.8rem;
    padding: 6px 8px;
  }
}

@media (max-width: 640px) {
  .nav__list {
    justify-content: flex-start;
  }
}

/* Hero（全面背景＋右側コピー） */
.hero {
  display: block;
  padding: clamp(28px, 6vh, 72px) 0 56px;
}

.hero__content {
  margin-left: auto;
  max-width: min(36rem, 100%);
  padding: 8px 0 16px;
  text-align: left;
}

.hero__title {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.6vw, 2.65rem);
  line-height: 1.22;
  letter-spacing: 0.04em;
  color: #f3e8c8;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 0 32px rgba(255, 220, 160, 0.3);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__title {
    color: transparent;
    background: linear-gradient(
      180deg,
      #ffffff 0%,
      #f7f4ff 18%,
      #f0ebd8 45%,
      #e5cf9a 72%,
      #c9a848 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 28px rgba(255, 240, 200, 0.35));
  }
}

.hero__lead {
  margin: 0 0 28px;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.75;
  max-width: 36em;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.45);
}

.search-bar {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 6px 6px 6px 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(230, 220, 255, 0.88));
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  max-width: 100%;
}

.search-bar__icon {
  display: grid;
  place-items: center;
  color: var(--purple);
  opacity: 0.65;
  padding-right: 8px;
}

.search-bar__input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: #2d1b4e;
  min-width: 0;
  outline: none;
}

.search-bar__input::placeholder {
  color: rgba(45, 27, 78, 0.45);
}

.search-bar__submit {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  background: linear-gradient(135deg, var(--purple-light), var(--purple) 55%, #3d0f6b);
  box-shadow:
    0 4px 20px rgba(75, 0, 130, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.search-bar__submit:hover {
  transform: translateY(-1px);
  box-shadow:
    0 8px 28px rgba(75, 0, 130, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.highlights {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  max-width: 100%;
}

.highlights__item {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 8px 22px;
}

.highlights__item:first-child {
  padding-left: 0;
}

.highlights__item:last-child {
  padding-right: 0;
}

.highlights__item:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.28);
}

.highlights__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
  min-width: 0;
}

.highlights__line {
  display: block;
  line-height: 1.45;
}

.highlights__line--lead {
  font-family: var(--font-sans);
  font-size: clamp(0.88rem, 1.35vw, 0.98rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.35), 0 1px 3px rgba(0, 0, 0, 0.45);
}

.highlights__line--sub {
  font-family: var(--font-sans);
  font-size: clamp(0.76rem, 1.2vw, 0.84rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.highlights__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.45),
    0 0 28px rgba(255, 255, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-size: 1.05rem;
  color: #fff;
}

.highlights__icon--moon {
  position: relative;
}

.highlights__icon--moon::before {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, #ffffff, #fff8e0 45%, #e8c86a 90%);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 18px rgba(255, 215, 0, 0.45);
}

.highlights__icon--moon::after {
  content: "";
  position: absolute;
  top: 11px;
  right: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.95);
}

.highlights__icon--spark {
  color: #fff;
  font-size: 1.12rem;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.85), 0 0 22px rgba(255, 215, 0, 0.45);
}

.highlights__icon--heart {
  color: #fff;
  font-size: 1.05rem;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.75), 0 0 18px rgba(255, 182, 193, 0.5);
  filter: none;
}

@media (max-width: 960px) {
  .hero__content {
    margin-left: 0;
    text-align: center;
  }

  .hero__lead {
    margin-inline: auto;
  }

  /* モバイル：1列で入力欄→検索の順。flex-wrap だと行高さ計算が崩れやすいため column に統一 */
  .search-bar {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
  }

  .search-bar__icon {
    display: none;
  }

  .search-bar__input {
    flex: none;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    box-sizing: border-box;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 16px; /* 16px 未満だと iOS Safari がフォーカス時に拡大することがある */
    -webkit-appearance: none;
    appearance: none;
  }

  .search-bar__submit {
    flex: none;
    width: 100%;
    margin: 0;
    padding: 14px 24px;
    border-radius: 14px;
  }

  .highlights {
    flex-direction: column;
    align-items: stretch;
    margin-top: 24px;
  }

  .highlights__item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    padding: 16px 0;
    justify-content: flex-start;
  }

  .highlights__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .highlights__item:first-child {
    padding-top: 0;
  }
}

@media (min-width: 961px) and (max-width: 1100px) {
  .highlights__item {
    padding: 8px 16px;
  }

  .highlights__item:first-child {
    padding-left: 0;
  }

  .highlights__item:last-child {
    padding-right: 0;
  }
}

/* Category cards */
.categories {
  padding-bottom: 80px;
}

.categories__heading {
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  color: #f3e8c8;
  text-shadow:
    0 1px 10px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(255, 240, 200, 0.25);
}

.categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.45),
    0 0 32px rgba(255, 255, 255, 0.22),
    0 0 64px rgba(255, 255, 255, 0.1),
    0 16px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-align: center;
  overflow: hidden;
  min-height: 200px;
}

.cat-card[data-category] {
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 215, 0, 0.18);
  touch-action: manipulation;
}

.cat-card[data-category]:focus {
  outline: none;
}

.cat-card[data-category]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 80% 55% at 50% 35%, rgba(255, 215, 0, 0.07), transparent 65%);
  pointer-events: none;
}

/* タイトル・説明のグロー背後に暗幕（上下）。中央はイラストを透かす */
.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.14) 22%,
    transparent 40%,
    transparent 60%,
    rgba(0, 0, 0, 0.12) 72%,
    rgba(0, 0, 0, 0.52) 100%
  );
}

.cat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.75),
    0 0 44px rgba(255, 255, 255, 0.48),
    0 0 88px rgba(255, 255, 255, 0.22),
    0 20px 48px rgba(0, 0, 0, 0.28);
}

.cat-card__title {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: calc(1.1rem * 1.7);
  font-weight: 700;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.9),
    0 0 18px rgba(255, 255, 255, 0.65),
    0 0 32px rgba(255, 255, 255, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 2px 12px rgba(0, 0, 0, 0.35);
}

.cat-card__art {
  position: relative;
  height: 110px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* PNG 背景：カード全体に cover。読みやすさ用の暗幕は ::after（全カード共通）で上下に敷く */
.cat-card:has(.cat-card__art--png) {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cat-card:has(.cat-card__art--png)::before {
  display: none;
}

.cat-card:has(.cat-card__art--png)::after {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.32) 16%,
    rgba(0, 0, 0, 0.08) 34%,
    transparent 48%,
    transparent 56%,
    rgba(0, 0, 0, 0.12) 70%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

.cat-card[data-category="恋愛"]:has(.cat-card__art--png) {
  background-image: var(--cat-card-bg-love);
}

.cat-card[data-category="仕事"]:has(.cat-card__art--png) {
  background-image: var(--cat-card-bg-work);
}

.cat-card[data-category="人間関係"]:has(.cat-card__art--png) {
  background-image: var(--cat-card-bg-people);
}

.cat-card[data-category="金運"]:has(.cat-card__art--png) {
  background-image: var(--cat-card-bg-money);
}

.cat-card[data-category="動物"]:has(.cat-card__art--png) {
  background-image: var(--cat-card-bg-animal);
}

.cat-card[data-category="空・自然"]:has(.cat-card__art--png) {
  background-image: var(--cat-card-bg-nature);
}

.cat-card[data-category="建物・場所"]:has(.cat-card__art--png) {
  background-image: var(--cat-card-bg-building);
}

.cat-card[data-category="身体・健康"]:has(.cat-card__art--png) {
  background-image: var(--cat-card-bg-body);
}

.cat-card__art.cat-card__art--png {
  height: 0;
  margin: 0 0 10px;
  min-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.cat-card__art.cat-card__art--png > * {
  visibility: hidden;
}

.cat-card:has(.cat-card__art--png) .cat-card__title {
  text-shadow:
    0 0 4px rgba(255, 255, 255, 1),
    0 0 12px rgba(255, 255, 255, 0.95),
    0 0 24px rgba(255, 255, 255, 0.75),
    0 0 40px rgba(255, 255, 255, 0.45),
    0 0 2px rgba(0, 0, 0, 0.9),
    0 1px 3px rgba(0, 0, 0, 0.75),
    0 3px 14px rgba(0, 0, 0, 0.45);
}

.cat-card:has(.cat-card__art--png) .cat-card__desc {
  color: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.95),
    0 0 10px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(255, 255, 255, 0.5),
    0 0 36px rgba(255, 255, 255, 0.28),
    0 0 1px rgba(0, 0, 0, 0.85),
    0 1px 4px rgba(0, 0, 0, 0.65),
    0 2px 10px rgba(0, 0, 0, 0.4);
}

.cat-card__desc {
  margin: 0;
  margin-top: auto;
  padding: 0 4px 2px;
  font-size: calc(0.72rem * 1.5);
  line-height: 1.6;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.96);
  position: relative;
  z-index: 2;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.85),
    0 0 14px rgba(255, 255, 255, 0.55),
    0 0 26px rgba(255, 255, 255, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.35);
}

.cat-card__facade {
  width: 52px;
  height: 56px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(120, 100, 180, 0.45));
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
  position: relative;
}

.cat-card__facade::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 14px;
  height: 10px;
  border-radius: 2px;
  background: rgba(15, 10, 40, 0.35);
}

.cat-card__pulse {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffc8dc, #e85d8c 55%, #6b2040);
  box-shadow: 0 0 24px rgba(255, 160, 190, 0.55);
  position: relative;
}

.cat-card__pulse::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 182, 193, 0.45);
  animation: cat-card-pulse 2.4s ease-out infinite;
}

@keyframes cat-card-pulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.15);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* Card illustration primitives */
.cat-card__orb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--pink) 45%, #c71585);
  box-shadow: 0 0 28px rgba(255, 182, 193, 0.75), inset 0 -8px 16px rgba(139, 0, 80, 0.35);
}

.cat-card__art--love::after {
  content: "";
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid rgba(255, 182, 193, 0.35);
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.25);
}

.cat-card__lamp {
  width: 38px;
  height: 52px;
  background: linear-gradient(to bottom, #5c4033, #3d2817);
  border-radius: 4px 4px 8px 8px;
  position: relative;
  box-shadow: 0 8px 0 #2a1a10;
}

.cat-card__lamp::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 28px;
  background: radial-gradient(ellipse at center, #fff9e0, var(--gold) 60%, transparent 72%);
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.95;
  box-shadow: 0 0 24px var(--gold-soft);
}

.cat-card__book {
  position: absolute;
  width: 44px;
  height: 32px;
  background: linear-gradient(135deg, #8b6914, #d4a84b);
  border-radius: 2px;
  right: 18%;
  bottom: 18%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transform: rotate(-8deg);
}

.cat-card__silhouette {
  width: 72px;
  height: 40px;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.25), transparent 70%),
    linear-gradient(transparent 45%, rgba(30, 20, 60, 0.85) 45%);
  border-radius: 40px 40px 0 0;
  position: relative;
}

.cat-card__silhouette::before,
.cat-card__silhouette::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 14px;
  height: 28px;
  background: rgba(15, 10, 35, 0.9);
  border-radius: 8px 8px 0 0;
}

.cat-card__silhouette::before {
  left: 18px;
}

.cat-card__silhouette::after {
  right: 18px;
}

.cat-card__chest {
  width: 56px;
  height: 40px;
  background: linear-gradient(180deg, #8b4513, #5c2e0a);
  border-radius: 4px;
  position: relative;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.35);
}

.cat-card__chest::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 18px;
  background: radial-gradient(ellipse at center, var(--gold), #daa520 40%, transparent 72%);
  border-radius: 50%;
}

.cat-card__unicorn {
  width: 56px;
  height: 48px;
  background: linear-gradient(135deg, #f8e8ff, #e8dcff);
  border-radius: 50% 50% 40% 40%;
  position: relative;
  box-shadow: 0 0 20px rgba(200, 180, 255, 0.5);
}

.cat-card__unicorn::before {
  content: "";
  position: absolute;
  top: 6px;
  right: -4px;
  width: 22px;
  height: 8px;
  background: var(--gold);
  border-radius: 4px;
  transform: rotate(-25deg);
  box-shadow: 0 0 12px var(--gold-soft);
}

.cat-card__island {
  width: 64px;
  height: 48px;
  background: radial-gradient(ellipse at 50% 80%, #4a7c59, #2d4a35);
  border-radius: 50% 50% 45% 45%;
  position: relative;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.2);
}

.cat-card__island::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 4px;
  right: 4px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 100, 180, 0.35), rgba(100, 200, 255, 0.35), transparent);
  opacity: 0.85;
}

@media (max-width: 1100px) {
  .categories__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-card__desc {
    font-size: calc(0.68rem * 1.5);
  }
}

/* 検索結果 */
.search-results {
  padding-bottom: 48px;
  scroll-margin-top: calc(var(--header-height, 88px) + 12px);
}

.search-results__heading {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.search-results__meta {
  margin: 0 0 20px;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.search-results__empty {
  margin: 0;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  color: var(--text-muted);
  font-size: 1.05rem;
}

.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* 詳細表示（戻る＋1カード）は読みやすさのため1列のまま */
.result-list:not(.result-list--index) {
  grid-template-columns: minmax(0, 1fr);
}

.result-list--index {
  gap: 12px 14px;
}

@media (max-width: 960px) {
  .result-list.result-list--index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .result-list.result-list--index {
    grid-template-columns: minmax(0, 1fr);
  }
}

.result-list__index-hint {
  list-style: none;
  grid-column: 1 / -1;
  margin: 0 0 4px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.32);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.result-list__index-row {
  list-style: none;
  margin: 0;
  padding: 0;
}

.result-list__index-btn {
  width: 100%;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px) saturate(1.12);
  -webkit-backdrop-filter: blur(12px) saturate(1.12);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease,
    backdrop-filter 0.2s ease,
    -webkit-backdrop-filter 0.2s ease;
}

.result-list__index-btn:hover {
  background: rgba(255, 215, 0, 0.16);
  border-color: rgba(255, 215, 0, 0.45);
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.2);
  transform: translateY(-2px);
}

.result-list__index-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.result-list__item--back {
  list-style: none;
  grid-column: 1 / -1;
  padding: 0 !important;
  margin: 0 0 -8px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.result-list__back {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--gold);
  padding: 10px 16px 10px 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.result-list__back:hover {
  color: #fff9e0;
  text-shadow: 0 0 12px var(--gold-soft);
}

.result-list__back:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.result-list__item {
  margin: 0;
  padding: 22px 22px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.result-list__cat {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.28);
}

.result-list__title {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.5vw, 1.75rem);
  font-weight: 700;
}

.result-list__summary {
  margin: 0 0 14px;
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.result-list__kw {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
}

.result-list__block {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--glass-border);
}

.result-list__subhead {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffe8a8;
}

.result-list__anchor-target {
  scroll-margin-top: var(--scroll-anchor-padding, 108px);
}

.result-list__anchor-target:target {
  animation: result-anchor-flash 1.2s ease-out;
}

@keyframes result-anchor-flash {
  0% {
    background-color: rgba(255, 215, 0, 0.22);
  }
  100% {
    background-color: transparent;
  }
}

.result-list__detail {
  margin: 0;
  padding-left: 1.2em;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.result-list__detail li {
  margin-bottom: 14px;
}

.result-list__detail li:last-child {
  margin-bottom: 0;
}

.result-list__detail-body {
  margin-top: 12px;
  padding-left: 0;
}

.result-list__detail-p {
  margin: 0 0 10px;
  font-size: 1.06rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.82);
  text-align: justify;
  text-justify: inter-ideograph;
}

.result-list__detail-p:last-child {
  margin-bottom: 0;
}

.result-list__detail strong {
  color: var(--text);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.45;
}

.result-list__detail--traits {
  list-style-type: decimal;
}

#db-count {
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 12px var(--gold-soft);
}

/* フッター（SEO用の補助テキスト・内部リンク） */
.site-footer {
  margin-top: 8px;
  padding: 36px 0 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.2));
}

.site-footer__inner {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.site-footer__lead {
  margin: 0 0 18px;
  font-size: 0.92rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer__lead strong {
  color: rgba(255, 248, 230, 0.98);
  font-weight: 600;
}

.site-footer__nav {
  margin-bottom: 16px;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
}

.site-footer__list a {
  color: rgba(255, 230, 190, 0.94);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__list a:hover {
  color: #fff;
}

.site-footer__copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .site-footer__list {
    flex-direction: column;
    align-items: center;
  }
}
