:root {
  --bg: #0C0A07;
  --bg2: #16120D;
  --bg3: #1E1910;
  --bgw: #fafafa;
  --main: #C9A84C;
  --main-dim: #7A6428;
  --accent: #E8D080;
  --vermillion: #A63D2F;
  --text: #E2D9C8;
  --text-muted: #8A8272;
  --border: #2E2518;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  background:
    linear-gradient(90deg, rgba(201, 168, 76, .045) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(rgba(201, 168, 76, .035) 1px, transparent 1px) 0 0 / 64px 64px,
    radial-gradient(circle at 18% 20%, rgba(82, 107, 77, .14), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: 'Shippori Mincho B1', 'Noto Serif JP', serif;
  overflow-x: hidden;
  line-height: 1.8;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: .5;
}

.en {
  font-family: 'EB Garamond', Georgia, serif;
}

.vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/*アニメ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kenburns {
  0% {
    transform: scale(1) translateX(0);
  }

  100% {
    transform: scale(1.08) translateX(-1.5%);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/*なび*/
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
  height: 70px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
}

nav.scrolled {
  background: rgba(12, 10, 7, .92);
  border-bottom-color: var(--border);
  backdrop-filter: blur(16px);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
}

.nav-logo .kanji {
  font-family: 'Shippori Mincho B1', serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .12em;
  color: var(--main);
}

.nav-logo .romaji {
  font-family: 'EB Garamond', serif;
  font-size: .62rem;
  letter-spacing: .22em;
  color: var(--text-muted);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: clamp(1.2rem, 2.5vw, 2.4rem);
}

.nav-links a {
  text-decoration: none;
  font-size: .78rem;
  letter-spacing: .18em;
  color: var(--text-muted);
  transition: color .3s;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 100%;
  height: 1px;
  background: var(--main);
  transition: right .3s cubic-bezier(.16, 1, .3, 1);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--main);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  right: 0;
}

/*ハンバーガー*/
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text);
  transition: transform .3s, opacity .3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* スマホ */
.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 850;
  background: rgba(12, 10, 7, .97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), opacity .4s;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  list-style: none;
  padding: 1.5rem clamp(1.5rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu ul li a {
  display: block;
  padding: 1rem 0;
  font-size: 1.1rem;
  letter-spacing: .2em;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color .3s, padding-left .3s;
}

.mobile-menu ul li a:hover {
  color: var(--main);
  padding-left: .5rem;
}

/* ヒーロー */
#hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(6rem, 10vw, 8rem) clamp(1.5rem, 6vw, 5rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg2);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 14s ease-in-out infinite alternate;
  filter: brightness(.65) saturate(.8);
}

.hero-slice {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 42%;
  pointer-events: none;
  background: linear-gradient(to right, transparent 0%, rgba(12, 10, 7, .75) 100%);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(12, 10, 7, .88) 0%, rgba(12, 10, 7, .18) 55%, transparent 100%);
}

.hero-content {
  writing-mode: vertical-rl;
  position: relative;
  z-index: 5;
  padding: clamp(1rem, 10vw, 8rem) clamp(1.5rem, 6vw, 5rem);
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .28em;
  color: var(--main);
  padding: .35rem 1rem;
  margin-bottom: 2rem;
  animation: fadeUp .8s .3s both;
}

.hero-title {
  font-family: 'Shippori Mincho B1', serif;
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1.1;
  letter-spacing: .04em;
  color: var(--text);
  animation: fadeUp .9s .5s both;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .6);
}

.hero-title .gold {
  color: var(--main);
  display: block;
  font-size: clamp(3.8rem, 10vw, 8.5rem);
}

.hero-sub {
  margin-top: 1.8rem;
  font-size: clamp(.85rem, 1.5vw, 1.05rem);
  line-height: 2.1;
  color: rgba(226, 217, 200, .75);
  letter-spacing: .08em;
  animation: fadeUp .9s .7s both;
  max-width: 480px;
}

.notice-bar {
  display: flex;
  align-items: baseline;
  gap: 1.8rem;
  padding: .9rem clamp(1.5rem, 6vw, 5rem);
  background: rgba(14, 11, 7, .96);
  border-top: 1px solid rgba(201, 168, 76, .18);
  border-bottom: 1px solid rgba(201, 168, 76, .10);
}

.notice-label {
  flex-shrink: 0;
  font-size: .68rem;
  letter-spacing: .22em;
  color: var(--main);
  padding-right: 1.8rem;
  border-right: 1px solid rgba(201, 168, 76, .22);
  white-space: nowrap;
}

.notice-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.notice-item {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.notice-date {
  font-size: .75rem;
  letter-spacing: .1em;
  color: rgba(232, 208, 128, .82);
  white-space: nowrap;
}

.notice-text {
  font-size: .78rem;
  letter-spacing: .08em;
  color: rgba(226, 217, 200, .62);
}

@media (max-width: 600px) {
  .notice-bar {
    flex-direction: column;
    gap: .6rem;
  }

  .notice-label {
    border-right: none;
    border-bottom: 1px solid rgba(201, 168, 76, .22);
    padding-right: 0;
    padding-bottom: .4rem;
  }
}

.chapter-break {
  min-height: clamp(10rem, 18vh, 13rem);
  margin-top: calc(clamp(10rem, 18vh, 13rem) * -1);
  background:
    radial-gradient(circle at 72% 42%, rgba(201, 168, 76, .075), transparent 16rem),
    linear-gradient(180deg, rgba(12, 10, 7, .08), rgba(12, 10, 7, .72) 48%, rgba(12, 10, 7, .96));
  position: relative;
  z-index: 10;
  overflow: hidden;
  border-top: 1px solid rgba(201, 168, 76, .08);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.chapter-break::before {
  content: '';
  position: absolute;
  right: clamp(2rem, 12vw, 12rem);
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(201, 168, 76, .22), transparent);
  pointer-events: none;
}

.chapter-break::after {
  content: '';
  position: absolute;
  left: clamp(1.5rem, 6vw, 5rem);
  right: clamp(1.5rem, 6vw, 5rem);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(166, 61, 47, .72) 18%, rgba(201, 168, 76, .42) 50%, rgba(166, 61, 47, .72) 82%, transparent);
  box-shadow: 0 0 24px rgba(166, 61, 47, .22);
}

.cb-prayer {
  position: absolute;
  right: clamp(2rem, 12vw, 12rem);
  top: 60%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  height: 7.2em;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  line-height: 1.75;
  letter-spacing: .22em;
  white-space: nowrap;
  color: rgba(226, 217, 200, .72);
  text-shadow: 0 0 32px rgba(0, 0, 0, .8);
}

.cb-seal {
  position: absolute;
  left: clamp(1.5rem, 6vw, 5rem);
  bottom: -5px;
  width: 10px;
  height: 10px;
  border: 1px solid var(--vermillion);
  background: var(--bg2);
  transform: rotate(45deg);
  box-shadow: 0 0 0 8px rgba(12, 10, 7, .72), 0 0 24px rgba(166, 61, 47, .22);
}


section {
  padding: clamp(16rem, 10vw, 8rem) clamp(1.5rem, 6vw, 5rem);
}

.chapter-title {
  position: absolute;
  z-index: 4;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: 'Shippori Mincho B1', serif;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .18em;
  color: rgba(201, 168, 76, .31);
  pointer-events: none;
  user-select: none;
}

.chapter-title::before {
  content: '';
  display: block;
  width: 1px;
  height: clamp(56px, 8vw, 104px);
  margin: 0 auto 1.2rem;
  background: linear-gradient(to bottom, transparent, var(--main), transparent);
}

.chapter-title::after {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  margin: 1rem auto 0;
  border: 1px solid var(--vermillion);
  transform: rotate(45deg);
  opacity: .9;
}

.section-label {
  display: block;
  font-family: 'EB Garamond', serif;
  font-size: .7rem;
  letter-spacing: .35em;
  color: var(--main);
  margin-bottom: .8rem;
  text-transform: uppercase;
}

.section-title {
  font-family: 'Shippori Mincho B1', serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.8rem);
  letter-spacing: .06em;
  line-height: 1.2;
  color: var(--text);
}

.section-title::first-letter {
  color: var(--accent);
}

.section-divider {
  width: 48px;
  height: 1px;
  background: var(--main-dim);
  margin: 1.4rem 0 2rem;
}

.section-body {
  font-size: .9rem;
  line-height: 2.1;
  color: rgba(226, 217, 200, .7);
  max-width: 480px;
}


#about {
  background: var(--bgw);
  padding: 20px 0;
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 85vh;
  position: relative;
  align-items: start;
}

#about .section-label {
  color: rgba(122, 100, 40, .92);
}

#about .section-title {
  color: #3b2d1b;
}

#about .section-title::first-letter {
  color: #8f6a2d;
}

#about .section-divider {
  background: rgba(122, 100, 40, .55);
}

#about .section-body {
  color: rgba(58, 44, 25, .84);
}

.chapter-title-about {
  left: clamp(1.2rem, 3vw, 2.8rem);
  top: clamp(6rem, 12vw, 10rem);
  font-size: clamp(4rem, 9vw, 8.8rem);
  color: rgba(201, 168, 76, .51);
}

.about-img-col {
  position: sticky;
  top: 70px;
  overflow: hidden;
  height: calc(100vh - 70px);
}

.about-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.8) saturate(.85);
}

.about-text-col::after {
  content: '社宮寺';
  position: absolute;
  right: -1rem;
  height: 100vh;
  top: 33%;
  writing-mode: vertical-rl;
  font-family: 'Shippori Mincho B1', serif;
  font-size: clamp(6rem, 14vw, 12rem);
  font-weight: 800;
  color: rgba(94, 71, 34, .08);
  letter-spacing: .1em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}


.about-num {
  position: absolute;
  left: clamp(1rem, 3vw, 2.5rem);
  bottom: clamp(1.5rem, 4vh, 3rem);
  z-index: 3;
  font-family: 'EB Garamond', serif;
  font-weight: 400;
  font-size: clamp(5rem, 12vw, 10rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 168, 76, .5);
  letter-spacing: -.02em;
  pointer-events: none;
}

.about-text-col {
  padding: clamp(5rem, 8vw, 7rem) clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 5;
}

.about-text-col::before {
  content: '';
  position: absolute;
  left: -4rem;
  top: 0;
  bottom: 0;
  width: 5rem;
  background: linear-gradient(to right, transparent, rgba(250, 250, 250, .96));
  pointer-events: none;
}

.about-text-col .history-steps::after {
  content: '';
  display: block;
  width: 1px;
  height: clamp(72px, 9vw, 128px);
  margin: clamp(2rem, 4vw, 3.5rem) 0 calc(clamp(5rem, 8vw, 7rem) * -1) 72px;
  background: linear-gradient(to bottom, rgba(143, 106, 45, .55), rgba(128, 80, 52, .28), transparent);
}

.history-steps {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.h-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.2rem;
  align-items: start;
  position: relative;
}

.h-step::before {
  content: '';
  position: absolute;
  left: 72px;
  top: .7rem;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(128, 80, 52, .72);
  background: var(--bgw);
  transform: translateX(-50%) rotate(45deg);
}

.h-step .year {
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  color: rgba(122, 100, 40, .96);
  letter-spacing: .06em;
  padding-top: .1rem;
}

.h-step .desc {
  font-size: .86rem;
  line-height: 2;
  color: rgba(58, 44, 25, .78);
  border-left: 1px solid rgba(94, 71, 34, .18);
  padding-left: 1.2rem;
}


#goshuin {
  background:
    radial-gradient(circle at 84% 42%, rgba(232, 208, 128, .08), transparent 16rem),
    linear-gradient(90deg, var(--bg) 0 18%, rgba(12, 10, 7, .98) 36%, rgba(12, 10, 7, .86) 58%, rgba(12, 10, 7, .34) 82%, rgba(12, 10, 7, 0) 100%),
    radial-gradient(circle at 0 0, transparent 29px, rgba(201, 168, 76, .055) 29px, rgba(201, 168, 76, .055) 30px, transparent 30px) 0 0 / 64px 64px,
    radial-gradient(circle at 32px 32px, transparent 29px, rgba(201, 168, 76, .04) 29px, rgba(201, 168, 76, .04) 30px, transparent 30px) 0 0 / 64px 64px,
    radial-gradient(circle at 0 32px, transparent 29px, rgba(201, 168, 76, .028) 29px, rgba(201, 168, 76, .028) 30px, transparent 30px) 0 0 / 64px 64px,
    radial-gradient(circle at 32px 0, transparent 29px, rgba(201, 168, 76, .028) 29px, rgba(201, 168, 76, .028) 30px, transparent 30px) 0 0 / 64px 64px,
    linear-gradient(135deg, transparent 0 46%, rgba(166, 61, 47, .08) 46% 46.2%, transparent 46.2%),
    var(--bg);
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 6vw, 5rem);
  position: relative;
  overflow: visible;
  z-index: 1;
}

.chapter-title-goshuin {
  right: clamp(1rem, 5vw, 6rem);
  top: clamp(3rem, 7vw, 6rem);
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  color: rgba(232, 208, 128, .22);
}

#goshuin::before {
  content: '印';
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(14rem, 32vw, 28rem);
  font-weight: 800;
  color: rgba(201, 168, 76, .03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

#goshuin::after {
  content: '';
  position: absolute;
  left: clamp(0rem, 10vw, 2rem);
  bottom: clamp(-14rem, -10vw, -21rem);
  z-index: 1;
  width: clamp(260px, 32vw, 520px);
  aspect-ratio: 1;
  background: url('img/hasu2.png') center / contain no-repeat;
  opacity: .145;
  pointer-events: none;
  filter: sepia(1) saturate(5) hue-rotate(5deg) brightness(.95);
}

.goshuin-layout {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.goshuin-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  writing-mode: horizontal-tb;
  padding: clamp(1rem, 3vw, 2rem) 0;
}

.goshuin-note {
  display: block;
  margin-top: 2rem;
  font-size: .68rem;
  letter-spacing: .22em;
  color: var(--text-muted);
  border-left: 1px solid var(--main-dim);
  padding-left: 1rem;
}

#goshuin .section-divider {
  width: 72px;
  height: 1px;
}

.goshuin-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.goshuin-stamp::before {
  content: '';
  position: absolute;
  inset: 10% 4%;
  border: 1px solid rgba(201, 168, 76, .18);
  transform: rotate(-4deg);
  z-index: -1;
  transition: transform 1.4s cubic-bezier(.16, 1, .3, 1);
}

.goshuin-stamp.visible::before {
  transform: rotate(0deg);
}

.goshuin-stamp img {
  width: min(380px, 90%);
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, .7));
  transform: rotate(-3deg);
  transition: transform 1.3s cubic-bezier(.16, 1, .3, 1), filter 1.3s;
}

.goshuin-stamp.visible img {
  transform: rotate(0deg);
  filter: drop-shadow(0 12px 52px rgba(201, 168, 76, .26));
}

.goshuin-stamp:hover img {
  filter: drop-shadow(0 16px 60px rgba(201, 168, 76, .38));
  transform: rotate(0deg) scale(1.04);
}

.goshuin-caption {
  font-size: .9rem;
  letter-spacing: .3em;
  color: var(--main);
  font-weight: 600;
}

/* 朱印アニメ*/
.goshuin-bg-light {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 42% 48%, rgba(232, 208, 128, .22) 0%, transparent 52%);
  opacity: 0;
  transform: translateZ(0);
  will-change: opacity;
  transition: opacity 0.8s ease;
  pointer-events: none;
  z-index: 0;
}

.goshuin-bg-light.visible {
  opacity: .6;
  width: clamp(480px, 64vw, 720px);
  height: clamp(480px, 64vw, 720px);
  transition: opacity 2.2s ease;
}

@media (hover: none) and (pointer: coarse) {
  .goshuin-bg-light {
    transition: opacity 0.1s ease;
  }

  .goshuin-bg-light.visible {
    transition: opacity 0.1s 0.4s ease;
  }
}

.goshuin-stamp.reveal {
  transform: rotate(-10deg) translateY(32px);
  transition: opacity 1.1s cubic-bezier(.16, 1, .3, 1),
    transform 1.4s cubic-bezier(.16, 1, .3, 1);
}

.goshuin-stamp.reveal.visible {
  transform: rotate(0deg) translateY(0);
}

.goshuin-text.reveal {
  transform: rotate(6deg) translateY(28px);
  transition: opacity 1.1s cubic-bezier(.16, 1, .3, 1) .18s,
    transform 1.4s cubic-bezier(.16, 1, .3, 1) .18s;
}

.goshuin-text.reveal.visible {
  transform: rotate(0deg) translateY(0);
}

@media(max-width:768px) {
  .goshuin-layout {
    grid-template-columns: 1fr;
  }

  .goshuin-stamp img {
    width: min(280px, 80%);
  }
}

#honzon {
  padding: 0;
  position: relative;
  overflow: visible;
  min-height: 98vh;
  display: grid;
  grid-template-columns: 1fr;
}

#honzon::before {
  content: '';
  position: absolute;
  left: clamp(-6rem, -4vw, -2rem);
  bottom: clamp(-11rem, -13vw, -6rem);
  z-index: 2;
  width: clamp(360px, 42vw, 760px);
  aspect-ratio: 1;
  background: url('img/hasu2.png') center / contain no-repeat;
  opacity: .06;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle, black 44%, transparent 72%);
  mask-image: radial-gradient(circle, black 44%, transparent 72%);
  filter: sepia(1) saturate(5) hue-rotate(5deg) brightness(.95);
  mix-blend-mode: screen;
}

.chapter-title-honzon {
  left: clamp(1.3rem, 4vw, 4rem);
  bottom: clamp(3rem, 8vw, 7rem);
  font-size: clamp(3.5rem, 9vw, 8rem);
  color: rgba(201, 168, 76, .18);
}

.honzon-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.honzon-bg img {
  width: 54%;
  height: 100%;
  object-fit: cover;
  object-position: right -294px;
  filter: brightness(.45) saturate(.7);
  margin-left: auto;
  display: block;
}

.honzon-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(201, 168, 76, .1) 0%, transparent 60%),
    linear-gradient(to right, rgba(12, 10, 7, .8) 0%, transparent 60%);
}

.honzon-content {
  position: relative;
  z-index: 5;
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 6vw, 3rem) clamp(5rem, 10vw, 8rem) clamp(5rem, 12vw, 10rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
}

.honzon-spec {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.spec-item {
  background: rgba(12, 10, 7, .52);
  border: 1px solid var(--border);
  padding: 1.3rem 1.2rem;
  backdrop-filter: blur(8px);
}

.spec-item .label {
  font-size: .63rem;
  letter-spacing: .22em;
  color: var(--main-dim);
  display: block;
  margin-bottom: .4rem;
}

.spec-item .value {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .05em;
}

.honzon-kanji-bg {
  position: absolute;
  right: clamp(-1rem, 3vw, 4rem);
  top: clamp(2rem, 18vw, 28rem);
  font-family: 'Shippori Mincho B1', serif;
  font-weight: 800;
  font-size: clamp(5rem, 14vw, 15rem);
  line-height: 1;
  color: rgba(201, 168, 76, .05);
  letter-spacing: .88em;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  z-index: 1;
}


#ceremony {
  background:
    linear-gradient(90deg, rgba(82, 107, 77, .12), transparent 42%),
    var(--bgw);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  min-height: clamp(760px, 92vh, 980px);
  position: relative;
  overflow: visible;
  z-index: 2;
  isolation: isolate;
}

#ceremony .section-label {
  color: rgba(122, 100, 40, .92);
}

#ceremony .section-title {
  color: #3b2d1b;
}

#ceremony .section-title::first-letter {
  color: #8f6a2d;
}

#ceremony .section-divider {
  background: rgba(122, 100, 40, .55);
}

#ceremony .section-body {
  color: rgba(58, 44, 25, .84);
}

#ceremony::before {
  content: '80';
  position: absolute;
  right: clamp(1rem, 5vw, 5rem);
  top: clamp(1.5rem, 4vw, 4rem);
  z-index: 1;
  font-family: 'EB Garamond', serif;
  font-size: clamp(11rem, 24vw, 22rem);
  font-weight: 400;
  color: rgba(201, 168, 76, .075);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -.04em;
}

#ceremony::after {
  content: '';
  position: absolute;
  right: clamp(-5rem, 2vw, 3rem);
  bottom: clamp(-22rem, -22vw, -12rem);
  z-index: 0;
  width: clamp(420px, 46vw, 820px);
  aspect-ratio: 1;
  background: url('img/hasu2.png') center / contain no-repeat;
  opacity: .155;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle, black 45%, transparent 75%);
  mask-image: radial-gradient(circle, black 45%, transparent 75%);
  filter: sepia(1) saturate(5) hue-rotate(5deg) brightness(.95);
  mix-blend-mode: darken;
}

.chapter-title-ceremony {
  right: clamp(1rem, 4vw, 4rem);
  top: clamp(4rem, 8vw, 7rem);
  font-size: clamp(3.2rem, 8vw, 7rem);
  color: rgba(143, 106, 45, .2);
}

.ceremony-header {
  max-width: 700px;
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  padding-right: clamp(1.5rem, 4vw, 3rem);
  position: relative;
  z-index: 5;
}

.ceremony-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.2rem;
}

.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .78rem 1.3rem;
  border: 1px solid rgba(201, 168, 76, .36);
  color: #3b2d1b;
  text-decoration: none;
  letter-spacing: .12em;
  font-size: .8rem;
  background: linear-gradient(135deg, rgba(201, 168, 76, .12), rgba(250, 248, 242, .92));
  transition: transform .35s ease, border-color .35s ease, background .35s ease, color .35s ease;
}

.section-link:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 208, 128, .62);
  background: linear-gradient(135deg, rgba(201, 168, 76, .2), rgba(255, 252, 244, .98));
  color: #2d2114;
}

.ceremony-note {
  color: rgba(58, 44, 25, .58);
  font-size: .76rem;
  letter-spacing: .14em;
}

.ceremony-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 380px 280px;
  gap: 8px;
  max-width: 1200px;
  grid-column: 1;
  grid-row: 1;
  margin-right: auto;
  padding-bottom: clamp(3.5rem, 6vw, 6rem);
  position: relative;
  z-index: 5;
}

.c-card {
  position: relative;
  overflow: hidden;
  background: var(--bg3);
}

.c-card.hero-card {
  grid-column: 1;
  grid-row: 1 / 3;
}

.c-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.75) saturate(.75);
  transition: transform .7s ease, filter .7s ease;
}

.c-card:hover img {
  transform: scale(1.05);
  filter: brightness(.9) saturate(.9);
}

.c-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 10, 7, .85) 0%, transparent 55%);
}

.c-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.5rem 1.2rem;
  font-size: .76rem;
  letter-spacing: .18em;
  color: var(--text-muted);
}

.c-card.hero-card .c-card-label {
  font-size: .9rem;
  color: var(--text);
}

.c-card.hero-card::after {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 40px;
  height: 1px;
  background: var(--main);
}

.c-card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(226, 217, 200, .13);
  z-index: 2;
  pointer-events: none;
}

#gallery {
  background:
    radial-gradient(circle at 84% 26%, rgba(232, 208, 128, .075), transparent 18rem),
    linear-gradient(90deg, var(--bg) 0 22%, rgba(12, 10, 7, .98) 42%, rgba(12, 10, 7, .86) 62%, rgba(12, 10, 7, .34) 84%, rgba(12, 10, 7, 0) 100%),
    linear-gradient(180deg,
      rgba(12, 10, 7, 0) 0,
      rgba(12, 10, 7, .28) clamp(3rem, 5vw, 4rem),
      rgba(12, 10, 7, .82) clamp(6rem, 8vw, 8rem),
      var(--bg) clamp(10rem, 14vw, 12rem)),
    radial-gradient(circle at 0 0, transparent 29px, rgba(201, 168, 76, .05) 29px, rgba(201, 168, 76, .05) 30px, transparent 30px) 0 0 / 64px 64px,
    radial-gradient(circle at 32px 32px, transparent 29px, rgba(201, 168, 76, .036) 29px, rgba(201, 168, 76, .036) 30px, transparent 30px) 0 0 / 64px 64px,
    radial-gradient(circle at 0 32px, transparent 29px, rgba(201, 168, 76, .026) 29px, rgba(201, 168, 76, .026) 30px, transparent 30px) 0 0 / 64px 64px,
    radial-gradient(circle at 32px 0, transparent 29px, rgba(201, 168, 76, .026) 29px, rgba(201, 168, 76, .026) 30px, transparent 30px) 0 0 / 64px 64px;
  margin-top: 0;
  padding: clamp(5rem, 8vw, 7rem) 0;
  overflow: hidden;
  position: relative;
  min-height: 80vh;
  z-index: 4;
  isolation: isolate;
}

#gallery::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(4rem, 6vw, 6rem);
  z-index: 1;
  pointer-events: none;
}


.chapter-title-gallery {
  left: 50%;
  top: clamp(13rem, 4vw, 3rem);
  transform: translateX(-50%);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  color: rgba(201, 168, 76, .16);
}

.gallery-top {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, .8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  padding: 12rem clamp(1.5rem, 6vw, 5rem);
  position: relative;
  margin: 0 auto;
  z-index: 2;
}

.gallery-intro {
  max-width: 560px;
  padding-top: clamp(4.5rem, 8vw, 7rem);
}

.gallery-aside {
  justify-self: end;
  width: min(100%, 440px);
  padding-top: clamp(4rem, 7vw, 6rem);
}

.gallery-guide-card {
  position: relative;
  background: none;
  border: none;
  padding: .25rem 0 .25rem 1.5rem;
  backdrop-filter: none;
  box-shadow: none;
}

.gallery-guide-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: .4rem;
  bottom: .4rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(201, 168, 76, .16), rgba(201, 168, 76, .72), rgba(201, 168, 76, .16));
}

#gallery .gallery-guide-card .info-row {
  padding: .8rem 0;
  border-bottom-color: rgba(201, 168, 76, .12);
}

#gallery .gallery-guide-card .key {
  color: rgba(232, 208, 128, .62);
}

#gallery .gallery-guide-card .val {
  color: rgba(244, 238, 226, .82);
}

@keyframes galleryLoop {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.gallery-loop-wrap {
  overflow: hidden;
  padding: clamp(3rem, 5vw, 4rem) 0 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.gallery-loop-wrap:hover .gallery-strip {
  animation-play-state: paused;
}

.gallery-strip {
  display: flex;
  gap: 12px;
  width: max-content;
  align-items: center;
  animation: galleryLoop 50s linear infinite;
}

.g-item {
  flex: none;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  transition: transform .4s;
}

.g-item:nth-child(odd) {
  height: 280px;
  width: 220px;
  margin-top: -30px;
}

.g-item:nth-child(even) {
  height: 340px;
  width: 260px;
}

.g-item:nth-child(3n) {
  height: 240px;
  width: 200px;
  margin-top: 20px;
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.8) saturate(.7);
  transition: transform .6s ease, filter .6s ease;
}

.g-item:hover img {
  transform: scale(1.07);
  filter: brightness(.95) saturate(.9);
}

.g-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(201, 168, 76, 0);
  transition: background .4s;
}

.g-item:hover .g-item-overlay {
  background: rgba(201, 168, 76, .06);
}

#info {
  background:
    radial-gradient(circle at 14% 18%, rgba(201, 168, 76, .08), transparent 20rem),
    linear-gradient(180deg, rgba(255, 252, 245, .82), rgba(246, 240, 230, .96)),
    var(--bgw);
  display: block;
  align-items: start;
  position: relative;
  overflow: hidden;
}

.chapter-title-info {
  left: clamp(1rem, 3vw, 3rem);
  top: clamp(4rem, 8vw, 7rem);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  color: rgba(143, 106, 45, .17);
}

#info .section-label {
  color: rgba(122, 100, 40, .92);
}

#info .section-title {
  color: #3b2d1b;
}

#info .section-title::first-letter {
  color: #8f6a2d;
}

#info .section-divider {
  background: rgba(122, 100, 40, .55);
}

#info .section-body {
  color: rgba(58, 44, 25, .84);
}

.info-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 30vw);
  column-gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.info-header .section-label,
.info-header .section-title,
.info-header .section-divider,
.info-header .section-body {
  grid-column: 1;
}

.info-header .section-body {
  max-width: 28rem;
}

.info-header>.info-box {
  grid-column: 2;
  grid-row: 1 / span 4;
}

.info-layout {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
}

.info-column {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.info-box {
  border: 1px solid rgba(143, 106, 45, .14);
  padding: 2.2rem 2rem;
  position: relative;
  z-index: 1;
}

.info-box h3 {
  font-size: 1rem;
  letter-spacing: .2em;
  color: rgba(122, 100, 40, .92);
  margin-bottom: 1.5rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid rgba(94, 71, 34, .14);
}

.info-row {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: .8rem;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(94, 71, 34, .1);
  font-size: .86rem;
}

.info-row .key {
  color: rgba(94, 71, 34, .62);
  letter-spacing: .08em;
}

.info-row .val {
  color: rgba(58, 44, 25, .84);
  line-height: 1.7;
}

.info-box-secondary {
  background: rgba(249, 244, 235, .84);
}

.access-map {
  margin-top: 1.8rem;
}

.map-paper {
  position: relative;
  min-height: 550px;
  padding: 1rem 1rem .9rem;
  background:
    radial-gradient(circle at 18% 18%, rgba(201, 168, 76, .08), transparent 10rem),
    linear-gradient(180deg, rgba(255, 253, 248, .96), rgba(244, 237, 226, .96));
  border: 1px solid rgba(143, 106, 45, .16);
  box-shadow: inset 0 0 0 1px rgba(201, 168, 76, .06), 0 14px 36px rgba(46, 33, 20, .08);
  overflow: hidden;
}

.map-paper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(94, 71, 34, .06) 0, transparent 28%),
    radial-gradient(circle at 72% 72%, rgba(166, 61, 47, .04) 0, transparent 24%);
  pointer-events: none;
}

.map-svg {
  display: block;
  width: 100%;
  height: auto;
}

.map-road-minor path {
  fill: none;
  stroke: rgba(150, 148, 142, .76);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-road-onbashira path {
  fill: none;
  stroke: rgba(123, 184, 116, 0.737);
  stroke-width: 22;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-road-onbashira-stripe path {
  fill: none;
  stroke: rgba(247, 246, 245, .88);
  stroke-width: 3;
  stroke-linecap: round;
}

.map-express-shadow,
.map-express-line {
  fill: none;
  stroke-linecap: round;
}

.map-express-shadow {
  stroke: rgba(20, 50, 20, .16);
  stroke-width: 32;
}

.map-express-line {
  stroke: #2dc84a;
  stroke-width: 22;
}

.map-area-park {
  fill: rgba(154, 211, 165, .42);
  stroke: rgba(121, 173, 127, .24);
}

.map-area-hospital {
  fill: rgba(245, 205, 197, .46);
  stroke: rgba(214, 165, 151, .26);
}

.map-marker {
  stroke: rgba(255, 253, 248, .92);
  stroke-width: 6;
}

.map-marker-park {
  fill: rgba(83, 137, 96, .95);
}

.map-marker-hospital {
  fill: rgba(200, 117, 110, .95);
}

.map-marker-seven {
  fill: rgba(136, 114, 73, .95);
}

.map-marker-daily {
  fill: rgba(121, 176, 92, .95);
}

.map-marker-temple-body {
  fill: rgba(196, 52, 38, .95);
  stroke: rgba(255, 253, 248, .9);
  stroke-width: 3;
}

.map-marker-kominkan {
  fill: rgba(142, 120, 183, .92);
}

.map-marker-inari {
  fill: rgba(122, 100, 40, .94);
}

.map-text {
  font-family: 'Shippori Mincho B1', serif;
  font-size: 18px;
  fill: rgba(88, 68, 32, .92);
}

.map-text-seven {
  font-size: 16px;
}

.map-text-daily {
  font-size: 16px;
}

.map-text-road {
  font-size: 20px;
  fill: rgba(58, 44, 25, .94);
}

.map-text-temple {
  font-weight: 700;
}

.map-text-temple,
.map-text-kominkan,
.map-text-inari {
  font-size: 16px;
}

.map-text-drive,
.map-text-express {
  font-size: 17px;
  fill: rgba(118, 92, 42, .88);
}

.map-north {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: .7rem;
  letter-spacing: .16em;
  color: rgba(94, 71, 34, .54);
  writing-mode: vertical-rl;
}

.map-note {
  position: absolute;
  font-size: .74rem;
  line-height: 1.8;
  color: rgba(94, 71, 34, .7);
}

.map-note-drive {
  left: 8%;
  right: 8%;
  bottom: 1rem;
}

.map-note-guide {
  left: 8%;
  right: 8%;
  bottom: 1rem;
}

.map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: .9rem;
  padding: .76rem 1.2rem;
  border: 1px solid rgba(143, 106, 45, .32);
  color: #6a5125;
  text-decoration: none;
  letter-spacing: .12em;
  font-size: .8rem;
  background: rgba(255, 252, 245, .72);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.map-link:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 168, 76, .56);
  background: rgba(255, 252, 245, .92);
}

.info-box-contact {
  min-height: 100%;
}

.info-contact-copy {
  color: rgba(58, 44, 25, .78);
  line-height: 1.95;
  margin-bottom: 1.5rem;
}

.info-inline-contacts {
  display: grid;
  grid-template-columns: 1fr;
  gap: .8rem;
  margin-bottom: 1.6rem;
}

.info-inline-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: .8rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid rgba(94, 71, 34, .1);
}

.info-inline-item .key {
  color: rgba(94, 71, 34, .62);
  letter-spacing: .08em;
}

.info-inline-item .val {
  color: rgba(58, 44, 25, .86);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.form-group label {
  font-size: .72rem;
  letter-spacing: .22em;
  color: rgba(122, 100, 40, .88);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255, 252, 245, .92);
  border: 1px solid rgba(143, 106, 45, .16);
  color: rgba(58, 44, 25, .88);
  padding: .9rem 1rem;
  font-family: 'Shippori Mincho B1', serif;
  font-size: .9rem;
  outline: none;
  transition: border-color .3s, box-shadow .3s;
  width: 100%;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(143, 106, 45, .42);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, .1);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.form-submit {
  background: transparent;
  border: 1px solid rgba(143, 106, 45, .5);
  color: #6a5125;
  padding: 1rem 2.8rem;
  font-family: 'Shippori Mincho B1', serif;
  font-size: .84rem;
  letter-spacing: .28em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color .35s;
  white-space: nowrap;
  min-height: 44px;
}

.form-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(201, 168, 76, .92);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
  z-index: -1;
}

.form-submit:hover {
  color: #1f160c;
}

.form-submit:hover::before {
  transform: scaleX(1);
}

.form-submit:disabled {
  opacity: .55;
  cursor: default;
  pointer-events: none;
}

.form-status {
  font-size: .8rem;
  letter-spacing: .06em;
  min-height: 1.4em;
  color: rgba(94, 71, 34, .8);
}

footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 4rem clamp(1.5rem, 6vw, 5rem) 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  left: 5%;
  bottom: clamp(-38rem, -16vw, -12rem);
  width: clamp(520px, 54vw, 750px);
  aspect-ratio: 1;
  background: url('img/kaenhoju.png') center / contain no-repeat;
  opacity: .07;
  filter: sepia(1) saturate(4) hue-rotate(350deg) brightness(1.05) drop-shadow(0 0 36px rgba(201, 168, 76, .12));
  mix-blend-mode: screen;
  transform: translateX(-50%);
  pointer-events: none;
}

footer>* {
  position: relative;
  z-index: 1;
}

.footer-logo .kanji {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--main);
  letter-spacing: .1em;
}

.footer-logo .sub {
  font-size: .68rem;
  letter-spacing: .22em;
  color: var(--text-muted);
  margin-top: .4rem;
}

.footer-copy {
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-top: 1.8rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  text-align: right;
}

.footer-links a {
  font-size: .74rem;
  letter-spacing: .12em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .3s;
}

.footer-links a:hover {
  color: var(--main);
}


#hero::before {
  content: '';
  position: absolute;
  bottom: 150px;
  left: clamp(-6rem, 0vw, -1rem);
  width: clamp(480px, 62vw, 1079px);
  aspect-ratio: 1;
  background: url('img/kannon.webp') center -6% / contain no-repeat;
  opacity: .10;
  pointer-events: none;
  z-index: 4;
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}

.kaen-overlay {
  display: none;
}

/* res */
@media(max-width:1000px) {
  #about {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .about-img-col {
    position: relative;
    top: 0;
    height: 60vw;
  }

  .about-num {
    font-size: clamp(4rem, 10vw, 7rem);
  }

  .honzon-content {
    padding-left: clamp(2rem, 7vw, 5rem);
  }

  .honzon-spec {
    grid-template-columns: 1fr;
  }

  .honzon-bg img {
    width: 100%;
    height: auto;
  }

  #info {
    padding-left: clamp(3rem, 8vw, 5rem);
  }

  .gallery-top,
  .info-layout {
    grid-template-columns: 1fr;
  }

  .info-header {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .info-header>.info-box {
    grid-column: 1;
    grid-row: auto;
    margin-top: 1.5rem;
  }

  .gallery-aside {
    justify-self: start;
    width: 100%;
    padding-top: 0;
  }
}

@media(max-width:768px) {
  .chapter-title {
    font-size: clamp(2.4rem, 10vw, 4.8rem);
    opacity: .75;
  }

  .chapter-title::before {
    height: 48px;
  }

  .chapter-title-about,
  .chapter-title-honzon,
  .chapter-title-info {
    left: auto;
    right: 1rem;
  }

  .chapter-title-ceremony,
  .chapter-title-goshuin {
    right: 1rem;
  }

  #ceremony {
    display: block;
  }

  .ceremony-header {
    margin-left: 0;
    margin-bottom: clamp(3rem, 5vw, 4rem);
    padding-right: 3.5rem;
  }

  .ceremony-actions {
    align-items: flex-start;
  }

  .ceremony-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .c-card.hero-card {
    grid-column: 1;
    grid-row: 1;
  }

  .c-card {
    height: 260px;
  }

  footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    text-align: left;
  }
}

@media(max-width:640px) {

  html,
  body {
    overflow-x: hidden;
  }

  #about,
  #goshuin,
  #honzon,
  #ceremony,
  #gallery,
  #info {
    overflow-x: clip;
    overflow-y: visible;
  }

  nav {
    height: 58px;
  }

  .mobile-menu {
    display: block;
    top: 58px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  #hero {
    min-height: 100svh;
  }

  .hero-title {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }

  .hero-title .gold {
    font-size: clamp(2.8rem, 11vw, 4rem);
  }

  .hero-slice {
    display: none;
  }

  .chapter-break {
    min-height: 8.5rem;
    margin-top: -8.5rem;
    background:
      radial-gradient(circle at 76% 44%, rgba(201, 168, 76, .08), transparent 12rem),
      linear-gradient(180deg, rgba(12, 10, 7, .04), rgba(12, 10, 7, .62) 48%, rgba(12, 10, 7, .94));
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
  }

  .chapter-break::before {
    right: clamp(1.5rem, 10vw, 4rem);
  }

  .chapter-break::after {
    left: 1.5rem;
    right: 1.5rem;
  }

  .cb-prayer {
    right: clamp(1.5rem, 10vw, 4rem);
    height: 7.2em;
    font-size: .95rem;
    line-height: 1.65;
  }

  .cb-seal {
    left: 1.5rem;
  }

  #hero::before,
  #hero::after {
    opacity: .18;
    left: clamp(-5.5rem, -1vw, -2.5rem);
    bottom: 0;
  }

  .chapter-title {
    z-index: 1;
    opacity: .85;
  }

  .section-link {
    width: 100%;
    justify-content: center;
  }

  .chapter-title::before {
    height: 32px;
    margin-bottom: .8rem;
  }

  .chapter-title::after {
    width: 5px;
    height: 5px;
  }

  .chapter-title-about {
    top: 5rem;
    right: 1.9rem;
  }

  .chapter-title-honzon,
  .chapter-title-goshuin,
  .chapter-title-ceremony,
  .chapter-title-info {
    top: 2.2rem;
    right: 1.9rem;
  }

  .chapter-title-gallery {
    top: 5rem;
  }

  .about-img-col {
    position: relative;
    top: 45px;
    height: 75vw;
  }

  .about-img-col img {
    object-fit: cover;
    width: 100%;
    height: 150%;
  }

  #about:before {
    background: unset;
  }

  .about-text-col::before,
  .about-text-col::after,
  .about-img-col::after,
  .about-num {
    display: none;
  }

  .about-text-col,
  #goshuin,
  #ceremony,
  #info {
    padding-right: clamp(1.5rem, 6vw, 2rem);
    padding-left: clamp(1.5rem, 6vw, 2rem);
    padding-bottom: 0;
    padding-top: 10rem;
  }

  .about-text-col .history-steps::after {
    height: 64px;
    margin-bottom: 0.5rem;
    margin-left: 72px;
  }

  #honzon::before {
    left: -3.5rem;
    top: auto;
    bottom: -8rem;
    width: min(340px, 78vw);
    opacity: .065;
    z-index: 4;
    mix-blend-mode: plus-lighter;
  }

  .honzon-kanji-bg {
    display: none;
  }

  .honzon-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center -429px;
  }

  .honzon-content {
    padding: clamp(5rem, 14vw, 6rem) clamp(1.5rem, 6vw, 2rem);
  }

  #honzon .chapter-title-honzon {
    font-size: clamp(3rem, 10vw, 5rem);
    opacity: .85;
    color: rgba(201, 168, 76, .31);
  }

  #ceremony::after {
    display: block;
    right: -4.5rem;
    bottom: -7rem;
    width: min(336px, 76vw);
    opacity: .14;
    z-index: 0;
    mix-blend-mode: darken;
  }

  #ceremony::before {
    display: none;
  }


  .gallery-top {
    gap: 1.5rem;
    padding: 0 clamp(1.5rem, 6vw, 2rem);
    margin-top: 0;
  }

  .gallery-intro,
  .gallery-aside {
    padding-top: 0;
  }

  .g-item:nth-child(odd),
  .g-item:nth-child(even),
  .g-item:nth-child(3n) {
    height: 220px;
    width: 180px;
    margin-top: 0;
  }

  #goshuin {
    background:
      radial-gradient(circle at 82% 35%, rgba(232, 208, 128, .075), transparent 10rem),
      linear-gradient(90deg, var(--bg) 0 24%, rgba(12, 10, 7, .97) 42%, rgba(12, 10, 7, .82) 62%, rgba(12, 10, 7, .28) 84%, rgba(12, 10, 7, 0) 100%),
      radial-gradient(circle at 0 0, transparent 22px, rgba(201, 168, 76, .044) 22px, rgba(201, 168, 76, .044) 23px, transparent 23px) 0 0 / 48px 48px,
      radial-gradient(circle at 24px 24px, transparent 22px, rgba(201, 168, 76, .03) 22px, rgba(201, 168, 76, .03) 23px, transparent 23px) 0 0 / 48px 48px,
      radial-gradient(circle at 0 24px, transparent 22px, rgba(201, 168, 76, .022) 22px, rgba(201, 168, 76, .022) 23px, transparent 23px) 0 0 / 48px 48px,
      radial-gradient(circle at 24px 0, transparent 22px, rgba(201, 168, 76, .022) 22px, rgba(201, 168, 76, .022) 23px, transparent 23px) 0 0 / 48px 48px,
      linear-gradient(135deg, transparent 0 46%, rgba(166, 61, 47, .08) 46% 46.2%, transparent 46.2%),
      var(--bg);
  }

  #goshuin::after {
    left: .75rem;
    bottom: -8rem;
    width: min(320px, 72vw);
    opacity: .15;
  }

  .goshuin-layout {
    gap: 2rem;
  }

  .goshuin-stamp img {
    width: min(260px, 75vw);
  }

  #gallery {
    background:
      radial-gradient(circle at 82% 24%, rgba(232, 208, 128, .07), transparent 10rem),
      linear-gradient(90deg, var(--bg) 0 26%, rgba(12, 10, 7, .97) 44%, rgba(12, 10, 7, .82) 64%, rgba(12, 10, 7, .28) 84%, rgba(12, 10, 7, 0) 100%),
      linear-gradient(180deg,
        rgba(12, 10, 7, 0) 0,
        rgba(12, 10, 7, .34) 2.4rem,
        rgba(12, 10, 7, .82) 5rem,
        var(--bg) 7.25rem),
      radial-gradient(circle at 0 0, transparent 22px, rgba(201, 168, 76, .044) 22px, rgba(201, 168, 76, .044) 23px, transparent 23px) 0 0 / 48px 48px,
      radial-gradient(circle at 24px 24px, transparent 22px, rgba(201, 168, 76, .03) 22px, rgba(201, 168, 76, .03) 23px, transparent 23px) 0 0 / 48px 48px,
      radial-gradient(circle at 0 24px, transparent 22px, rgba(201, 168, 76, .022) 22px, rgba(201, 168, 76, .022) 23px, transparent 23px) 0 0 / 48px 48px,
      radial-gradient(circle at 24px 0, transparent 22px, rgba(201, 168, 76, .022) 22px, rgba(201, 168, 76, .022) 23px, transparent 23px) 0 0 / 48px 48px;
    margin-top: 3.5rem;
  }

  #gallery::before {
    height: 3.5rem;
    background: linear-gradient(180deg, rgba(12, 10, 7, 0), rgba(12, 10, 7, .58));
  }

  .gallery-guide-card {
    padding-left: 1.1rem;
  }




  .form-row {
    grid-template-columns: 1fr;
  }

  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .form-submit {
    text-align: center;
  }

  .info-box,
  .gallery-guide-card {
    padding: 1.6rem 1.4rem;
  }

  .map-paper {
    min-height: 327px;
    padding: 1.1rem .9rem .9rem;
  }

  .map-text {
    font-size: 20px;
  }

  .map-text-seven {
    font-size: 18px;
  }

  .map-note-guide {
    left: .9rem;
    right: .9rem;
    bottom: .8rem;
  }

  .pc-br {
    display: none;
  }

  footer {
    grid-template-columns: 1fr;
  }
}