:root {
  --soot-black: #0b0b0b;
  --text-main: #e6e1dc;
  --gold: /*#c8a24a;#b8975a;*/#7c2e34;
  --line: #4a2a2a;
}

/* 背景 */
body {
  margin: 0;
  background-color: var(--soot-black);
  /*background-image: url("images/bg2025.png"), url("images/bg002.png"), url("images/bg000.png");*/
  background-image: url("images/bg000.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-attachment: fixed;
  background-size: cover;
  color: var(--text-main);
  font-family: 'Noto Serif JP', serif;
	padding-bottom: 120px;
}

/* 煙 */
body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}
body::before {
  background: radial-gradient(circle at 50% 70%, rgba(180,180,180,0.06), transparent 70%);
  animation: smokeBack 22s infinite ease-in-out;
}
body::after {
  background: radial-gradient(circle at 40% 60%, rgba(220,220,220,0.10), transparent 65%);
  animation: smokeFront 14s infinite ease-in-out;
}
@keyframes smokeBack {
  0% { transform: translateY(0); opacity: .15; }
  50% { transform: translateY(-30px) scale(1.08); opacity: .28; }
  100% { transform: translateY(0); opacity: .15; }
}
@keyframes smokeFront {
  0% { transform: translateY(0); opacity: .2; }
  50% { transform: translateY(-20px) scale(1.05); opacity: .35; }
  100% { transform: translateY(0); opacity: .2; }
}

/* コンテナ */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ヘッダー */
header {
  text-align: center;
  margin-bottom: 36px;
}
.epigraph {
  font-family: 'Cinzel', serif;
  font-family: 'Goldenbook Regular', serif;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: #c9b3b3;
  opacity: 0.85;
}
.title {
  font-family: 'Cinzel', serif;
  font-family: 'Goldenbook Regular', serif;
  font-size: 48px;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-top: 12px;
  text-shadow: 0 0 18px rgba(200,162,74,0.25);
}
.divider {
  width: auto;
  height: 1px;
  margin: 22px auto 10px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.55;
}

/* カテゴリメニュー */
.category-menu.fixed {
  position: sticky;
  top: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(3px);
  border-bottom: 1px solid rgba(200,162,74,.25);
  z-index: 10;
}
.category-menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 10px;
  margin: 0;
  list-style: none;
}
.category-menu a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  transition: all .3s ease;
}
.category-menu a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* グリッド配置 */
.grid-hall { margin-top: 24px;}
.grid-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0 36px;
	margin-bottom: 100px;
}
.section-title {
  font-family: 'Cinzel', serif;
  font-family: 'Goldenbook Regular', serif;
  font-size: 1rem;
  color: var(--gold);
  margin: 8px 0;
}

/* カード */
.card {
  background: rgba(0,0,0,.35);
  border: 1px solid var(--line);
  box-shadow: 0 4px 10px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
  padding: 8px;
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
}
.card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--line);
}
.name {
  font-family: 'Cinzel', serif;
  font-family: 'Goldenbook Regular', serif;
  color: var(--gold);
  font-size: 18px;
  margin-top: 6px;
}
.note {
  font-size: 14px;
  color: #cfc9c4;
  margin: 4px 0 8px;
}
.ritual {
  display: inline-block;
  font-size: 13px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  color: var(--text-main);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ritual:hover {
  transform: translateY(-2px) rotate(0.5deg);
  box-shadow: 0 0 12px rgba(200,162,74,.45);
  background: linear-gradient(180deg, #5a2a2b 0%, #3a1a1b 100%);
}

/* BASEリンク */
.base-link {
  /*background: linear-gradient(180deg, #c8a24a 0%, #9b7a2f 100%);*/
  background: linear-gradient(180deg, #792b30 0%, #6c2327 100%);
  color: #0b0b0b;
  font-weight: bold;
  border: 1px solid var(--gold);
}
.base-link:hover {
  box-shadow: 0 0 12px rgba(200,162,74,.6);
}

/* キャンドル装飾 */
.candle00 {
  position: absolute;
  top: 40%;
  left: 20%;
  transform: translateX(-50%);
  width: 80px;
  opacity: 0.6;
  mix-blend-mode: normal;
  z-index: 5;
}
.candle-deco {
  position: absolute;
  right: -20px;
  top: -100px;
  width: 20px;
  height: 330px;
  opacity: 0.7;
  z-index: 3;
  border: none;
}
.card img.deco {
  width: 20%;
  aspect-ratio: 1/3;
  object-fit: cover;
  border: none;
}






.ornament-layer {
  position: relative;
  width: 80%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  padding-bottom: 40px;
  z-index: 10;
  pointer-events: none; /* 装飾がクリックを邪魔しないように */
}

.ornament-layer img.symbols {
  width: 20px;
  height: auto;
  opacity: 0.8;
  transform: translateY(10px); /* 少し浮かせる演出 */
}

.ornament-layer img.candle00 {
  height: 300px;
  opacity: 0.9;
  filter: drop-shadow(0 0 6px var(--gold)); /* 炎の光を演出 */
}

.ornament-layer img.spires {
  height: 40px;
  opacity: 0.7;
  transform: translateY(-6px); /* 少し沈ませて奥行き感 */
}







/* フッター */
.prayer-header {
  position: fixed;
  bottom: 40px;
  width: 100%;          /* 横幅いっぱいに広げる方が中央揃えしやすい */
  text-align: center;
  height: 80px;         /* 高さを固定 */
  padding-top: 20px;    /* 内側余白で調整 */
}

.prayer-title {
  font-family: 'Goldenbook Regular', 'Cinzel', serif;
  font-size: 22px;
  letter-spacing: 0.12em;
  color: var(--gold);
  opacity: 0.9;
}

.echo {
  font-size: 13px;
  color: #c9c2bd;
  margin-top: 12px;
  letter-spacing: 0.06em;
  opacity: 0.75;
  font-style: italic;
}

/* スクロール演出 */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  filter: blur(6px);
  transition: opacity 1200ms ease-out, transform 1200ms ease-out, filter 1200ms ease-out;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* ライトボックス */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  text-align: center;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox-img {
  max-width: 70%;
  max-height: 70%;
  margin-top: 5%;
  box-shadow: 0 0 16px rgba(200,162,74,.5);
  border: 2px solid rgba(200,162,74,.4);
}
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
}
.controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  color: #fff;
  font-size: 40px;   /* ←ここが抜けていた */
  cursor: pointer;
}


/

@media (max-width: 768px) {
  .lightbox-img {
    max-width: 80%;
    max-height: 60%;
  }
}


