/* 夢読みの扉 — トップページ */
: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("../images/common/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("../images/categories/card-love.png");
  --cat-card-bg-work: url("../images/categories/card-work.png");
  --cat-card-bg-people: url("../images/categories/card-people.webp");
  --cat-card-bg-money: url("../images/categories/card-money.png");
  --cat-card-bg-animal: url("../images/categories/card-animal.png");
  --cat-card-bg-nature: url("../images/categories/card-nature.png");
  --cat-card-bg-building: url("../images/categories/card-building.png");
  --cat-card-bg-body: url("../images/categories/card-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;
}

/* トップ：固定背景写真をフェードさせない（下端のマスクによる白みを防ぐ） */
body.home .page-bg {
  background-position: center top;
}

/* 楕円の装飾ブロブ（左カラム）を出さず、レイアウトは本文1列へ */
body.home .hero__visual {
  display: none;
}

body.home .hero--home__inner {
  grid-template-columns: 1fr;
  justify-items: center;
}

body.home .hero__content {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* 視覚的に隠すが読み上げ対象に残す（アクセシビリティ） */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 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));
}

.pill-btn--header-history {
  flex-shrink: 0;
  padding: 8px 12px;
  font-size: 0.76rem;
  font-weight: 600;
}

@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);
  }
}

@media (max-width: 440px) {
  .pill-btn--header-history {
    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--home {
  padding-top: clamp(12px, 3vh, 36px);
}

.hero--home__inner {
  display: grid;
  grid-template-columns: minmax(140px, 1.08fr) minmax(260px, 520px);
  gap: clamp(16px, 3.5vw, 44px);
  align-items: center;
}

.hero__visual {
  position: relative;
  min-height: min(340px, 44vw);
  border-radius: 28px;
  isolation: isolate;
}

.hero__moonscape {
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 90% 80% at 78% 18%, rgba(255, 250, 220, 0.45), transparent 52%),
    radial-gradient(circle at 22% 28%, rgba(180, 200, 255, 0.35), transparent 58%),
    radial-gradient(circle at 40% 100%, rgba(120, 80, 200, 0.25), transparent 55%);
  filter: blur(0.5px);
  opacity: 0.95;
}

.hero__sleeper {
  position: absolute;
  left: 50%;
  bottom: 14%;
  width: min(260px, 46vw);
  height: min(148px, 28vw);
  transform: translateX(-52%);
  background:
    radial-gradient(ellipse 95% 70% at 50% 100%, rgba(255, 255, 255, 0.32), transparent 72%),
    radial-gradient(circle at 35% 45%, rgba(255, 255, 255, 0.45), transparent 62%),
    radial-gradient(circle at 52% 35%, rgba(255, 255, 255, 0.22), transparent 48%);
  border-radius: 50% 50% 42% 42%;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 20, 0.45));
}

.hero__sleeper::before {
  content: "";
  position: absolute;
  right: -6%;
  top: -12%;
  width: 72%;
  height: 112%;
  border-radius: 50% 52% 48% 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(120, 100, 200, 0.12));
  transform: rotate(-8deg);
  box-shadow:
    inset 0 4px 16px rgba(255, 255, 255, 0.12),
    0 0 24px rgba(255, 220, 200, 0.15);
}

.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--stack {
  position: relative;
  overflow: visible;
}

.highlights__icon--stack::before,
.highlights__icon--stack::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.85) 8%,
    rgba(230, 220, 255, 0.55) 40%,
    rgba(147, 112, 219, 0.45) 100%
  );
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.highlights__icon--stack::before {
  width: 26px;
  height: 15px;
  top: 8px;
  opacity: 0.95;
}

.highlights__icon--stack::after {
  width: 30px;
  height: 16px;
  top: 16px;
  opacity: 0.78;
}

.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--home__inner {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: 2;
    min-height: 200px;
    max-width: 360px;
    margin-inline: auto;
    margin-bottom: 8px;
  }

  .hero__content {
    order: 1;
    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;
}

.home .categories__heading {
  margin-bottom: clamp(18px, 3vw, 28px);
}

.home .cat-card {
  min-height: 236px;
}

.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: 991px) {
  .categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .categories__grid {
    grid-template-columns: 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;
  }
}


/* 静的記事ページ・ギャラリー拡張（ビルドで styles.css と結合） */

.breadcrumbs {
  margin: calc(var(--header-height, 88px) + 8px) 0 24px;
  padding: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumbs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: rgba(255, 215, 0, 0.45);
}

.breadcrumbs__item a {
  color: rgba(255, 230, 190, 0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs [aria-current="page"] {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-decoration: none;
}

/* 夢個別ページ：目次サイドバー（見出しラベルを折り返し） */
.dream-article .result-toc-sidebar__link {
  word-break: break-word;
}

/* ジャンプリンク時、固定ヘッダーに見出しが隠れにくくする */
.dream-article .article--dream-sheet .article-h2,
.dream-article .article--dream-sheet .article-h3,
.dream-article .article--dream-sheet .faq-q {
  scroll-margin-top: calc(var(--header-height, 88px) + 12px);
}

.dream-article .article--dream-sheet .article-header {
  scroll-margin-top: calc(var(--header-height, 88px) + 12px);
}

/* サイドバーと本文の横並び：トラック幅を確保し、説明文が視野の右側に寄って見えるのを防ぐ */
body.dream-article.has-toc-sidebar main#main-content {
  padding-left: 0;
}

.dream-page-shell {
  display: grid;
  grid-template-columns: var(--toc-sidebar-width) minmax(0, 1fr);
  width: 100%;
  align-items: start;
  gap: 0;
}

.dream-toc-spacer {
  grid-column: 1;
  pointer-events: none;
}

.dream-page-primary {
  grid-column: 2;
  min-width: 0;
}

/* 関連記事の下：内部回遊（キーワードを含む自然なアンカー） */
.article-end-nav {
  margin: clamp(1.75rem, 4vw, 2.75rem) auto clamp(2rem, 5vw, 3.5rem);
  padding: clamp(1rem, 2.5vw, 1.5rem) 0;
  border-top: 1px solid rgba(255, 215, 0, 0.14);
}

.article-end-nav .home-section__h2 {
  margin-bottom: 0.85rem;
}

.article-end-nav__list {
  margin: 0.5rem 0 0;
  padding-inline-start: 1.35rem;
  line-height: 1.75;
}

.article-end-nav__list a {
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .dream-page-shell {
    grid-template-columns: 1fr;
  }

  .dream-toc-spacer {
    display: none;
  }

  .dream-page-primary {
    grid-column: 1;
  }
}

.article {
  padding-bottom: 72px;
}

.article-header {
  margin-bottom: 22px;
}

.article-meta {
  margin: -4px 0 14px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 248, 220, 0.62);
}

.article-meta time {
  color: rgba(255, 230, 185, 0.78);
}

.homepage-theme-links {
  padding: 8px 0 48px;
  text-align: center;
}

.homepage-theme-links__h2 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  font-weight: 700;
  color: #f3e9d4;
}

.homepage-theme-links__lead {
  margin: 0 auto 18px;
  max-width: 46rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.homepage-theme-links__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: center;
  max-width: 52rem;
  margin: 0 auto;
}

.article-h1 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3.8vw, 2.05rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: #f8f0d8;
  text-shadow:
    0 1px 14px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(255, 220, 160, 0.22);
}

.article-lede {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.92;
  color: var(--text-muted);
}

.hero-figure {
  margin: 0 0 28px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow:
    0 12px 42px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.hero-figure__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 630;
}

.hero-figure__inner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-figure__caption {
  margin: 0;
  padding: 12px 16px;
  font-size: 0.9rem;
  line-height: 1.66;
  color: rgba(255, 250, 230, 0.88);
  background: linear-gradient(to top, rgba(10, 6, 30, 0.65), transparent);
}

.article-h2 {
  margin: 38px 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.35vw, 1.42rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffe8b0;
}

.article-h3 {
  margin: 22px 0 10px;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

.article-p {
  margin: 0 0 14px;
  font-size: 1.035rem;
  line-height: 1.94;
  color: rgba(255, 255, 255, 0.86);
}

.article-note {
  margin: 26px 0;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 215, 0, 0.25);
  background: rgba(255, 215, 0, 0.07);
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.76;
}

.inline-figure {
  margin: 24px auto;
  max-width: min(760px, 100%);
}

.inline-figure__inner {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  aspect-ratio: 16 / 9;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.25);
}

.inline-figure__inner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.inline-figure__caption {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.image-gallery {
  margin: 18px 0 6px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.image-gallery__card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.image-gallery__img {
  position: relative;
  aspect-ratio: 4 / 3;
}

.image-gallery__img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.image-gallery__cap {
  margin: 0;
  padding: 10px;
  font-size: 0.82rem;
  line-height: 1.52;
  color: rgba(255, 250, 240, 0.86);
}

.faq-item {
  margin: 14px 0;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.faq-q {
  margin: 0 0 10px;
  font-weight: 700;
}

.faq-a {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.76;
}

.related-grid {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.related-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

.related-card:hover {
  border-color: rgba(255, 215, 0, 0.45);
}

.related-card a {
  text-decoration: none;
  color: inherit;
}

.related-card__thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.related-card__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.related-card__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.related-card__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.02rem;
}

.related-card__desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* トップ拡張 */
.home-section {
  padding: clamp(18px, 3vh, 40px) 0 52px;
}

.home-section__h2 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  color: #f3e8c8;
}

.card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.article-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 28px rgba(255, 215, 0, 0.18);
}

.article-card__link {
  display: grid;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.article-card--text-only .article-card__link {
  grid-template-columns: 1fr;
}

.article-card--text-only .article-card__body {
  padding-top: 16px;
}

.article-card__img {
  position: relative;
  aspect-ratio: 16 / 10;
}

.article-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-card__cat {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.28);
}

.article-card__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
}

.article-card__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.74);
}

.search-hit__cat {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 215, 0, 0.85);
  letter-spacing: 0.04em;
}

/* 検索結果（個別ページ遷移型） */
.search-hit {
  padding: 16px;
  gap: 14px;
}

.search-hit,
.search-hit .search-hit__row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
}

.search-hit .search-hit__row {
  align-items: center;
}

.search-hit .search-hit__row {
  padding: 0;
}

@media (max-width: 640px) {
  .search-hit,
  .search-hit .search-hit__row {
    grid-template-columns: 1fr;
  }
}

.search-hit__thumb {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.search-hit__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-hit__body {
  min-width: 0;
}

.search-hit__title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
}

.search-hit__text {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.74;
}

.pill-btn--small {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 14px;
}

/* gallery page */
.gallery-page__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 22px;
}

.filter-chip {
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 14px;
  color: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip[aria-pressed="true"] {
  border-color: rgba(255, 215, 0, 0.45);
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.gallery-mosaic__item {
  display: grid;
}

.gallery-mosaic__link {
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.gallery-mosaic__img {
  position: relative;
  aspect-ratio: 3 / 4;
}

.gallery-mosaic__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-mosaic__caption {
  padding: 12px;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* サイトマップ一覧 */
.static-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.static-list__item a {
  color: rgba(255, 230, 190, 0.95);
}

.nav-link-btn {
  display: inline-flex;
  align-items: center;
}

.site-footer__nav + .site-footer__nav {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(147, 112, 219, 0.18);
}

/* 夢のキーワード個別ページ：本文を読みやすく＋記事ビューを曇りガラス風 */
.article.article--dream-sheet {
  margin-top: clamp(8px, 2vh, 20px);
  margin-bottom: clamp(28px, 5vh, 56px);
  padding: clamp(20px, 3.5vw, 42px);
  border-radius: 22px;
  background: rgba(18, 14, 42, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 4px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.article.article--dream-sheet .article-meta {
  font-size: clamp(0.86rem, 1.85vw, 1.05rem);
}

.article.article--dream-sheet .article-h1 {
  font-size: clamp(1.55rem, 4vw, 2.5rem);
}

.article.article--dream-sheet .article-lede,
.article.article--dream-sheet .article-lede .article-p,
.article.article--dream-sheet .article-p {
  font-size: clamp(1.1rem, 2.95vw, 2.08rem);
  line-height: 1.82;
}

.article.article--dream-sheet .article-h2 {
  font-size: clamp(1.28rem, 2.95vw, 1.92rem);
  margin-top: clamp(28px, 4vh, 44px);
}

.article.article--dream-sheet .article-h3 {
  font-size: clamp(1.08rem, 2.35vw, 1.52rem);
}

.article.article--dream-sheet .faq-q {
  font-size: clamp(1.06rem, 2.35vw, 1.38rem);
}

.article.article--dream-sheet .faq-a,
.article.article--dream-sheet .faq-a .article-p {
  font-size: clamp(1.05rem, 2.7vw, 1.95rem);
  line-height: 1.8;
}

.article.article--dream-sheet .inline-figure__caption {
  font-size: clamp(0.95rem, 2vw, 1.35rem);
}

.related-card.related-card--text-only {
  display: flex;
  padding: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.related-card--text-only:hover {
  border-color: rgba(255, 215, 0, 0.45);
  box-shadow: 0 0 22px rgba(255, 215, 0, 0.12);
}

.related-card--text-only .related-card__link {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 15px 17px;
  min-height: 100%;
}

.related-card--text-only .related-card__title {
  font-size: clamp(1rem, 2.2vw, 1.12rem);
}

.related-card--text-only .related-card__desc {
  font-size: clamp(0.88rem, 1.95vw, 1rem);
  line-height: 1.65;
}

.site-footer__list--multi {
  column-count: 2;
  column-gap: 1.25rem;
}

@media (max-width: 640px) {
  .site-footer__list--multi {
    column-count: 1;
  }
}

/* フッター：運営会社（リンクはホバー時のみ下線） */
.site-footer__operator {
  margin: clamp(1.25rem, 3vw, 1.75rem) 0 0;
  padding-top: clamp(1rem, 2.5vw, 1.35rem);
  border-top: 1px solid rgba(255, 215, 0, 0.14);
  text-align: center;
}

.site-footer__operator-line {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
}

.site-footer__operator-tagline {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.55;
}

.site-footer__operator-link {
  color: rgba(255, 230, 190, 0.96);
  text-decoration: none;
  text-underline-offset: 3px;
}

.site-footer__operator-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Google AdSense（レイアウトシフト対策として枠と最低高さを確保） */
.adsense-wrap {
  margin: 28px auto 52px;
  min-height: 280px;
  text-align: center;
}

.adsense-wrap ins.adsbygoogle {
  display: block;
  margin-inline: auto;
  min-height: 260px;
  width: min(100%, 1200px);
}

/* 夢個別ページ：記事ブロックごとの広告スロット */
.adsense-wrap--dream-inline {
  margin: clamp(22px, 3.2vh, 40px) 0;
  min-height: 160px;
  text-align: center;
}

.adsense-wrap--dream-inline ins.adsbygoogle {
  min-height: 220px;
  width: min(100%, 100%);
}

/* トップ：ピラー（読み方ガイド）への自然な内部リンクブロック */
.home-guide-promo {
  margin: 0 auto clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1rem, 2vw, 1.35rem) clamp(1rem, 3vw, 1.75rem);
  max-width: 52rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 215, 0, 0.18);
  background: radial-gradient(circle at 12% -20%, rgba(147, 112, 219, 0.16), transparent 54%),
    rgba(26, 10, 46, 0.35);
}

.home-guide-promo__h {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.home-guide-promo__p {
  margin: 0;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.9);
}

.home-guide-promo__p a {
  text-underline-offset: 3px;
}

.contact-form__input,
.contact-form__textarea {
  width: min(100%, 36rem);
  margin-top: 0.35rem;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  font-family: inherit;
}

.contact-form__textarea {
  resize: vertical;
}

.contact-form__btn {
  margin-top: 0.25rem;
}

.contact-form__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
  }

  .article-card:hover {
    transform: none;
  }
}

