:root {
  --brand-primary: #8a252c;
  --brand-primary-light: #d35d62;
  --brand-primary-soft: #eee8df;
  --brand-ink: #2e2b2a;
  --brand-muted: #625a56;
  --brand-line: #d1cac6;
  --brand-bg: #fcfbf9;
  --brand-surface: #f6f5f1;
  --brand-surface-low: #faf9f6;
  --card-surface: #fffdf9;
  --card-border: rgba(196, 185, 174, 0.62);
  --card-accent: #6f655d;
  --card-accent-soft: #eee8df;
  --selection-surface: #f3f7ef;
  --selection-border: rgba(123, 143, 105, 0.72);
  --selection-accent: #6f835c;
  --brand-dark: #1c1a19;
  --shadow-soft: 0 18px 50px rgba(46, 43, 42, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--brand-dark);
  color: var(--brand-ink);
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
}

html[lang="ko"] body {
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Helvetica Neue", Arial, sans-serif;
  word-break: keep-all;
}

html[lang="ko"] .brand-title,
html[lang="ko"] .page-title,
html[lang="ko"] .section-title,
html[lang="ko"] .card h3,
html[lang="ko"] .footer-title {
  font-family: "Noto Serif KR", "Noto Serif JP", Georgia, serif;
  letter-spacing: 0.01em;
}

html[lang="ko"] .brand-title {
  font-size: clamp(1.05rem, 1.75vw, 1.34rem);
  line-height: 1.32;
}

html[lang="ko"] .page-copy,
html[lang="ko"] .section-copy,
html[lang="ko"] .lead-text,
html[lang="ko"] .card p,
html[lang="ko"] .card li,
html[lang="ko"] .footer-copy,
html[lang="ko"] .footer-list {
  letter-spacing: 0;
  line-height: 1.88;
}

html[lang="ko"] .desktop-nav,
html[lang="ko"] .mobile-nav,
html[lang="ko"] .button,
html[lang="ko"] .language-link {
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--brand-bg);
}

.site-shell > main {
  flex: 1;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(209, 202, 198, 0.42);
  background: rgba(252, 251, 249, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(209, 202, 198, 0.7);
  object-fit: cover;
  box-shadow: 0 5px 16px rgba(46, 43, 42, 0.1);
}

.brand-title {
  display: block;
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand-primary);
  line-height: 1.25;
}

.brand-subtitle {
  display: block;
  margin-top: 3px;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--brand-muted);
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.35vw, 18px);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand-muted);
  white-space: nowrap;
}

.desktop-nav a,
.mobile-nav a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"],
.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  color: var(--brand-primary);
}

.desktop-instagram-link,
.mobile-instagram-link {
  color: inherit;
}

.desktop-instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  margin-left: 2px;
  border-radius: 999px;
}

.desktop-instagram-link svg,
.mobile-instagram-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.desktop-instagram-link:focus-visible,
.mobile-instagram-link:focus-visible,
.footer-instagram-link:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}

.language-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(138, 37, 44, 0.24);
  border-radius: 999px;
  color: var(--brand-primary);
  background: rgba(255, 253, 249, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.language-link:hover {
  background: #f7f1e8;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(209, 202, 198, 0.7);
  border-radius: 999px;
  background: var(--brand-bg);
  color: var(--brand-primary);
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.menu-button:hover,
.menu-button[aria-expanded="true"] {
  border-color: rgba(138, 37, 44, 0.36);
  background: #fffdf9;
  box-shadow: 0 8px 22px rgba(46, 43, 42, 0.08);
}

.menu-button[aria-expanded="true"] {
  transform: rotate(90deg);
}

.mobile-nav {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  border-top: 1px solid rgba(209, 202, 198, 0);
  padding: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height 0.48s ease, opacity 0.34s ease, transform 0.48s ease, padding 0.48s ease, border-color 0.48s ease, visibility 0s linear 0.48s;
}

.mobile-nav.open {
  max-height: 520px;
  visibility: visible;
  border-top-color: rgba(209, 202, 198, 0.42);
  padding: 10px 0 16px;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 0.55s ease, opacity 0.42s ease, transform 0.55s ease, padding 0.55s ease, border-color 0.55s ease, visibility 0s;
}

.mobile-nav .container {
  display: grid;
  gap: 4px;
  transform: translateY(-6px);
  transition: transform 0.48s ease;
}

.mobile-nav.open .container {
  transform: translateY(0);
}

.mobile-nav a {
  padding: 10px 0;
  color: var(--brand-muted);
  font-weight: 600;
  opacity: 0;
  transform: translateY(-4px);
  transition: color 0.2s ease, opacity 0.34s ease, transform 0.34s ease;
}

.mobile-instagram-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-nav.open a {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1181px) {
  .mobile-nav {
    display: none;
  }
}

main {
  flex: 1;
}

.hero {
  position: relative;
  min-height: clamp(420px, 62vh, 680px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--brand-surface);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(252, 251, 249, 0.9), rgba(252, 251, 249, 0.06) 68%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 0 52px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--brand-primary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--brand-primary);
}

.hero-title,
.page-title {
  margin: 0;
  font-family: "Noto Serif JP", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.28;
}

.hero-title {
  max-width: 760px;
  font-size: clamp(2rem, 5vw, 4.2rem);
}

.hero-copy {
  max-width: 690px;
  margin: 20px 0 0;
  color: var(--brand-muted);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 2;
}

.home-banner {
  position: relative;
  height: clamp(260px, 50vw, 600px);
  overflow: hidden;
  background: var(--brand-surface);
  transition: transform 0.65s ease, box-shadow 0.65s ease;
}

.home-banner-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
  transform: translateX(100%);
  transition: transform 1.35s cubic-bezier(0.72, 0, 0.22, 1);
  will-change: transform;
}

.home-banner-slide.is-active {
  z-index: 1;
  transform: translateX(0);
}

.home-banner-slide.is-before {
  transform: translateX(-100%);
}

.home-banner-slide.is-after {
  transform: translateX(100%);
}

.home-banner.is-preparing-slide .home-banner-slide {
  transition: none;
}

.home-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.93);
  transform-origin: center;
  transition: transform 7.5s ease, filter 0.8s ease;
  transform: scale(1.025);
  will-change: transform;
}

.home-banner-slide.is-active img {
  transform: scale(1.065);
}

.home-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(252, 251, 249, 0.45), rgba(252, 251, 249, 0.02) 62%);
  pointer-events: none;
}

.home-banner-caption {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 5vw, 48px);
  z-index: 3;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 720px);
  text-align: center;
}

.home-banner-caption span {
  display: inline-block;
  border: 1px solid rgba(209, 202, 198, 0.52);
  border-radius: 999px;
  background: rgba(252, 251, 249, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(46, 43, 42, 0.08);
  padding: 11px 22px;
  color: var(--brand-primary);
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: clamp(0.78rem, 2vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.7;
}

@media (min-width: 1081px) {
  .home-banner {
    height: clamp(300px, calc(100vh - 275px), 560px);
    height: clamp(300px, calc(100svh - 275px), 560px);
  }
}

.home-scripture {
  border-block: 1px solid rgba(209, 202, 198, 0.5);
  background: var(--brand-surface-low);
}

.home-scripture-inner {
  padding-block: 34px;
  text-align: center;
}

.home-scripture blockquote {
  display: none;
  margin: 0;
}

.home-scripture blockquote.is-active {
  display: block;
}

.home-scripture blockquote[hidden] {
  display: none;
}

.home-scripture p {
  max-width: 760px;
  margin: 0;
  margin-inline: auto;
  color: var(--brand-ink);
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: clamp(1.08rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.8;
  text-wrap: balance;
}

html[lang="ko"] .home-scripture p {
  font-family: "Noto Serif KR", "Noto Serif JP", Georgia, serif;
  letter-spacing: 0.01em;
}

.home-scripture cite {
  display: block;
  margin-top: 8px;
  color: var(--brand-muted);
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.08em;
}

.page-hero {
  padding: 74px 0 54px;
  background: linear-gradient(180deg, var(--brand-surface) 0%, var(--brand-bg) 100%);
  border-bottom: 1px solid rgba(209, 202, 198, 0.34);
}

.page-title {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.page-copy {
  max-width: 100%;
  margin: 18px 0 0;
  color: var(--brand-muted);
  line-height: 2;
}

.section {
  padding: 74px 0;
}

.home-welcome {
  padding-top: 48px;
}

.section.surface {
  background: var(--brand-surface);
}

.section-header {
  margin-bottom: 34px;
}

.section-title {
  margin: 0;
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: 0.08em;
}

.section-copy {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--brand-muted);
  line-height: 1.9;
}

.section-copy--fluid {
  width: 100%;
  max-width: none;
}

.lead-text {
  display: grid;
  gap: 18px;
  color: var(--brand-muted);
  font-size: clamp(0.98rem, 1.7vw, 1.06rem);
  line-height: 2;
}

.lead-text p {
  margin: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  height: 100%;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--card-surface);
  padding: 26px;
  box-shadow: 0 12px 30px rgba(46, 43, 42, 0.045);
}

.home-link-card {
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.home-link-card:hover,
.home-link-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(111, 101, 93, 0.85);
  background: #fffefb;
  box-shadow: 0 18px 42px rgba(46, 43, 42, 0.085);
}

.home-link-card:active {
  transform: translateY(-2px);
}

.detail-link-card {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.detail-link-card:hover,
.detail-link-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(111, 101, 93, 0.82);
  background: #fffefb;
  box-shadow: 0 18px 42px rgba(46, 43, 42, 0.085);
  outline: none;
}

.detail-link-card:active {
  transform: translateY(-2px);
}

.card-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--card-accent-soft);
  color: var(--card-accent);
  margin-bottom: 18px;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.home-link-card:hover .card-icon,
.home-link-card:focus-within .card-icon {
  background: #e5ded2;
  transform: translateY(-1px);
}

.card h3 {
  margin: 0;
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: 1.12rem;
  letter-spacing: 0.06em;
}

.card p,
.card li {
  color: var(--brand-muted);
  line-height: 1.85;
  font-size: 0.95rem;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.visit-guide {
  height: auto;
  align-self: start;
  margin-top: 113px;
}

.first-time-family {
  padding-top: 48px;
}

.image-frame {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(209, 202, 198, 0.52);
  box-shadow: var(--shadow-soft);
  transition: transform 0.55s ease, border-color 0.55s ease, box-shadow 0.55s ease, opacity 1s ease;
}

.image-frame img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  transform-origin: center;
  transition: transform 1.15s ease, opacity 1s ease, filter 0.8s ease;
  will-change: transform, opacity;
}

.history-image img {
  object-fit: cover;
  object-position: center center;
}

.history-section-visual {
  margin: 0 0 26px;
  background: var(--card-surface);
}

.history-section-visual img {
  height: clamp(170px, 24vw, 280px);
  object-fit: cover;
  object-position: center center;
  filter: grayscale(1);
}

.history-section-visual-current img {
  filter: none;
  object-position: center 42%;
}

.has-js .image-reveal {
  opacity: 0;
  transform: translateY(22px);
}

.has-js .image-reveal:not(.home-banner) img {
  opacity: 0;
  transform: scale(1.045);
}

.has-js .image-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.has-js .image-reveal.is-visible:not(.home-banner) img {
  opacity: 1;
  transform: scale(1);
}

.image-frame:hover,
.image-frame:focus-within {
  transform: translateY(-8px);
  border-color: rgba(196, 185, 174, 0.82);
  box-shadow: 0 20px 48px rgba(46, 43, 42, 0.12);
}

.home-banner:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(46, 43, 42, 0.08);
}

.image-frame:hover img,
.image-frame:focus-within img {
  filter: brightness(0.98);
  transform: translateY(-8px) scale(1.045);
}

.home-banner:hover .home-banner-slide.is-active img {
  filter: brightness(0.98);
  transform: scale(1.08);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 999px;
  padding: 10px 17px;
  border: 1px solid var(--brand-primary);
  background: var(--brand-primary);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  background: #701c22;
}

.button.secondary {
  background: transparent;
  border-color: var(--card-accent);
  color: var(--card-accent);
}

.button.secondary:hover {
  background: #f1ece4;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(128px, 0.18fr) minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--card-surface);
}

.timeline-year {
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--brand-primary);
  line-height: 1.35;
}

.timeline-item h3 {
  margin: 0;
  font-family: "Noto Serif JP", Georgia, serif;
}

.timeline-item p + h3 {
  margin-top: 24px;
}

.timeline-item p {
  margin: 8px 0 0;
  color: var(--brand-muted);
  line-height: 1.85;
}

.schedule-list {
  display: grid;
  gap: 16px;
}

.filter-panel {
  margin-bottom: 34px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--card-surface);
  padding: 24px;
  box-shadow: 0 12px 30px rgba(46, 43, 42, 0.045);
}

.filter-panel-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--brand-primary);
  font-family: "Noto Serif JP", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.filter-panel p {
  margin: 0;
  color: var(--brand-muted);
  line-height: 1.85;
  font-size: 0.92rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.filter-button {
  min-height: 36px;
  border: 1px solid rgba(209, 202, 198, 0.72);
  border-radius: 999px;
  background: var(--brand-bg);
  color: var(--brand-muted);
  padding: 7px 13px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-button:hover {
  border-color: var(--card-accent);
  color: var(--card-accent);
  transform: translateY(-1px);
}

.filter-button[aria-pressed="true"] {
  border-color: var(--card-accent);
  background: var(--card-accent);
  color: white;
}

.filter-info {
  display: none;
  margin-top: 18px;
  border-top: 1px solid rgba(209, 202, 198, 0.45);
  padding-top: 16px;
  color: var(--brand-muted);
  line-height: 1.8;
  font-size: 0.92rem;
}

.filter-info.open {
  display: block;
}

.schedule-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--card-surface);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.filterable-card {
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.schedule-row.is-muted,
.filterable-card.is-muted {
  opacity: 0.35;
  transform: scale(0.985);
}

.schedule-row.is-highlighted,
.filterable-card.is-highlighted {
  border-color: var(--selection-border);
  background: var(--selection-surface);
  box-shadow: inset 4px 0 0 rgba(111, 131, 92, 0.48), 0 14px 34px rgba(65, 76, 55, 0.08);
}

.filterable-card.is-highlighted .card-icon {
  background: #e1ebd8;
  color: var(--selection-accent);
}

.schedule-time {
  color: var(--brand-primary);
  font-family: "Noto Serif JP", Georgia, serif;
  font-weight: 700;
}

.schedule-time small {
  display: inline-block;
  margin-top: 4px;
  color: var(--brand-muted);
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
}

.schedule-row h3 {
  margin: 0;
  font-family: "Noto Serif JP", Georgia, serif;
}

.schedule-row h3 small {
  display: inline-block;
  margin-left: 0.35em;
  color: var(--brand-muted);
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78em;
  font-weight: 500;
}

.schedule-row p {
  margin: 8px 0 0;
  color: var(--brand-muted);
  line-height: 1.85;
}

.note-box {
  border-left: 4px solid var(--brand-primary);
  background: #f1ece4;
  padding: 20px 22px;
  border-radius: 8px;
  color: var(--brand-muted);
  line-height: 1.85;
}

.detail-section-list {
  display: grid;
  gap: 28px;
}

.gathering-detail {
  scroll-margin-top: 120px;
}

.gathering-detail-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  padding: 26px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--card-surface);
  box-shadow: 0 12px 30px rgba(46, 43, 42, 0.045);
}

.gathering-detail-image {
  min-height: 230px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--card-accent-soft);
}

.gathering-detail-image img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  transition: transform 1.1s ease, filter 0.8s ease;
}

.gathering-detail:hover .gathering-detail-image img {
  transform: scale(1.035);
  filter: brightness(0.98);
}

.gathering-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.gathering-detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid rgba(111, 101, 93, 0.22);
  border-radius: 999px;
  color: var(--card-accent);
  background: #f7f1e8;
  font-size: 0.82rem;
  font-weight: 700;
}

.gathering-detail h2 {
  margin: 0 0 12px;
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: clamp(1.5rem, 2.3vw, 2.05rem);
  letter-spacing: 0.04em;
}

.gathering-detail p {
  color: var(--brand-muted);
  line-height: 1.9;
}

.gathering-note {
  display: grid;
  gap: 5px;
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid rgba(111, 101, 93, 0.18);
  border-radius: 8px;
  background: #f7f1e8;
  color: var(--brand-muted);
  line-height: 1.75;
}

.gathering-note strong {
  color: var(--card-accent);
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: 0.96rem;
}

.gathering-detail-actions {
  margin-top: 18px;
}

.profile-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.pastor-list {
  display: grid;
  gap: 34px;
}

.profile-photo,
.profile-photo-placeholder {
  min-height: 420px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--card-surface);
  color: var(--card-accent);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.profile-photo {
  aspect-ratio: 4 / 5;
  min-height: 0;
  width: 100%;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.profile-photo:hover img,
.profile-photo:focus-within img {
  filter: brightness(0.98);
  transform: scale(1.035);
}

.profile-photo-placeholder {
  display: grid;
  place-items: center;
}

.profile-photo-placeholder svg {
  width: 72px;
  height: 72px;
  stroke-width: 1.4;
}

.profile-content {
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--card-surface);
  padding: clamp(28px, 4vw, 46px);
  box-shadow: 0 12px 30px rgba(46, 43, 42, 0.045);
}

.profile-content p {
  color: var(--brand-muted);
  line-height: 1.95;
}

.profile-name-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 0.32em;
  row-gap: 0.08em;
}

.profile-reading {
  color: var(--brand-muted);
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(0.88rem, 1.45vw, 1.08rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.profile-message {
  margin: 28px 0 0;
  border-left: 2px solid var(--card-accent);
  padding: 2px 0 2px 20px;
}

.profile-message-label {
  display: block;
  margin-bottom: 10px;
  color: var(--card-accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.profile-message p {
  margin: 0;
  color: var(--brand-text);
  font-family: "Noto Serif JP", Georgia, serif;
  line-height: 2;
}

.profile-meta {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.profile-meta div {
  display: grid;
  gap: 5px;
  border-top: 1px solid rgba(209, 202, 198, 0.52);
  padding-top: 12px;
}

.profile-meta span,
.sermon-meta {
  color: var(--brand-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.profile-meta strong {
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: 1.02rem;
}

.sermon-paper {
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--card-surface);
  padding: clamp(28px, 5vw, 58px);
  box-shadow: var(--shadow-soft);
}

.sermon-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 20px;
}

.sermon-paper h2 {
  margin: 0;
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.sermon-scripture {
  margin: 18px 0 0;
  color: var(--brand-primary);
  font-weight: 700;
}

.sermon-body {
  margin-top: 30px;
  color: var(--brand-muted);
  font-size: 1rem;
  line-height: 2.05;
}

.sermon-body p {
  margin: 0 0 1.3em;
}

.sermon-board {
  display: grid;
  gap: 16px;
}

.sermon-card {
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--card-surface);
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(46, 43, 42, 0.04);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.sermon-card:hover {
  transform: translateY(-4px);
  border-color: rgba(111, 101, 93, 0.72);
  box-shadow: 0 16px 36px rgba(46, 43, 42, 0.075);
}

.sermon-card-toggle {
  display: flex;
  width: 100%;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 24px;
  text-align: left;
}

.sermon-card-toggle:focus-visible {
  outline: 2px solid rgba(111, 101, 93, 0.36);
  outline-offset: -5px;
}

.sermon-card-main {
  display: grid;
  gap: 8px;
}

.sermon-card-main .sermon-scripture {
  margin: 0;
}

.sermon-card time {
  display: inline-flex;
  color: var(--card-accent);
  font-size: 0.86rem;
  font-weight: 700;
}

.sermon-card-preacher {
  color: var(--brand-muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.sermon-card > time:first-child {
  margin: 24px 24px 10px;
}

.sermon-card-title,
.sermon-card h3 {
  margin: 0;
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sermon-card-summary,
.sermon-card p {
  margin: 10px 0 0;
  color: var(--brand-muted);
  line-height: 1.85;
}

.sermon-card > h3,
.sermon-card > p {
  margin-left: 24px;
  margin-right: 24px;
}

.sermon-card > p:last-child {
  margin-bottom: 24px;
}

.sermon-card-summary {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.sermon-card-action {
  flex: 0 0 auto;
  border: 1px solid var(--card-accent);
  border-radius: 999px;
  color: var(--card-accent);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  padding: 8px 11px;
  transition: background 0.2s ease, color 0.2s ease;
}

.sermon-card-toggle[aria-expanded="true"] .sermon-card-action {
  background: var(--card-accent);
  color: white;
}

.sermon-card-detail {
  border-top: 1px solid rgba(209, 202, 198, 0.52);
  color: var(--brand-muted);
  line-height: 2;
  padding: 0 24px 24px;
}

.sermon-card-detail p {
  margin: 18px 0 0;
}

/* CMS output remains fully readable before progressive enhancement runs. */
.cms-sermon-page .sermon-card-main {
  display: block;
  padding: 0;
}

.cms-sermon-page .sermon-card-main time {
  margin: 24px 24px 10px;
}

.cms-sermon-page .sermon-card-preacher {
  display: none;
}

.cms-sermon-page .sermon-card-title {
  display: block;
  margin: 0 24px;
}

.cms-sermon-page .sermon-card-main .sermon-scripture {
  display: block;
  margin: 10px 24px 0;
}

.cms-sermon-page .sermon-card-summary {
  display: block;
  margin: 10px 24px 24px;
  overflow: visible;
  -webkit-line-clamp: unset;
  max-height: none;
  white-space: pre-line;
}

.cms-sermon-page .sermon-card-summary.cms-sermon-summary.is-collapsed {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.cms-sermon-page .cms-sermon-summary-toggle {
  margin: 0 24px 24px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--card-accent);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 2px 0;
}

.cms-sermon-page .cms-sermon-summary-toggle:focus-visible {
  outline: 2px solid rgba(111, 101, 93, 0.5);
  outline-offset: 4px;
}

/* Keep the test sermon page's latest message and archive visually connected. */
.cms-sermon-page main > .section:has(.sermon-layout) {
  padding-bottom: 52px;
}

.cms-sermon-page main > .section:has(.sermon-board) {
  padding-top: 52px;
}

.access-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: stretch;
}

.access-parking-note {
  margin: 18px 0 0;
  padding: 14px 16px;
}

.reido-intro {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: center;
}

.reido-photo {
  margin: 0;
}

.reido-photo-figure {
  margin: 0;
}

.reido-photo img {
  height: clamp(440px, 52vw, 590px);
  object-fit: cover;
  object-position: center center;
}

.reido-intro-copy {
  max-width: 680px;
}

.reido-intro-copy .section-title {
  margin-bottom: 22px;
}

.reido-legacy {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: center;
}

.reido-legacy-figure {
  margin: 0;
}

.reido-legacy-photo img {
  height: clamp(260px, 32vw, 380px);
  object-fit: cover;
  object-position: center center;
}

.reido-photo-figure figcaption,
.reido-legacy-figure figcaption {
  margin-top: 10px;
  color: var(--brand-muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.reido-guide-grid {
  align-items: stretch;
}

.reido-visit-contact {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  margin-top: 28px;
}

.reido-visit-contact p {
  margin: 5px 0 0;
}

.reido-visit-contact .button-row {
  flex: 0 0 auto;
  margin-top: 0;
}

.guide-link-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  height: auto;
}

.guide-link-card .card-icon {
  margin: 0;
}

.guide-link-card h3 {
  margin-bottom: 6px;
}

.guide-link-card p {
  margin: 0;
}

.guide-link-card > svg {
  width: 22px;
  height: 22px;
  color: var(--card-accent);
}

.guide-link-card[href="heian-reido.html"] {
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.map-embed {
  min-height: 0;
  border: 1px solid rgba(209, 202, 198, 0.52);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
  border: 0;
}

.related-organizations {
  padding: 36px 0;
  border-top: 1px solid rgba(209, 202, 198, 0.52);
  background: var(--brand-bg);
}

.related-organizations-inner {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.35fr);
  align-items: center;
  gap: 48px;
}

.related-organizations-heading,
.related-organizations-copy {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.related-organizations-heading h2 {
  margin: 5px 0 8px;
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: 1.42rem;
}

.related-organizations-heading p {
  margin: 0;
  color: var(--brand-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.related-organizations-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 70px;
  align-items: center;
  column-gap: 28px;
  row-gap: 10px;
}

.related-organization-link {
  position: relative;
  min-width: 0;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  opacity: 0.9;
  transition: transform 320ms ease, opacity 320ms ease;
}

.related-organization-link:nth-child(even)::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 1px;
  background: rgba(209, 202, 198, 0.72);
}

.related-organization-link:nth-child(n + 3)::after {
  content: "";
  position: absolute;
  top: -5px;
  right: 12px;
  left: 12px;
  height: 1px;
  background: rgba(209, 202, 198, 0.72);
}

.related-organization-link:hover,
.related-organization-link:focus-visible {
  opacity: 1;
  transform: translateY(-3px);
}

.related-organization-link:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 4px;
}

.related-organization-logo {
  width: min(260px, 100%);
  max-width: 100%;
  height: 58px;
  object-fit: contain;
  object-position: center;
}

.related-organization-logo--district {
  height: 70px;
}

.site-footer {
  background: var(--brand-dark);
  color: #efece5;
  padding: 50px 0 calc(26px + env(safe-area-inset-bottom));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1fr;
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(239, 236, 229, 0.12);
}

.footer-title {
  display: block;
  font-family: "Noto Serif JP", Georgia, serif;
  color: var(--brand-primary-light);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.footer-copy,
.footer-list {
  color: rgba(239, 236, 229, 0.75);
  font-size: 0.88rem;
  line-height: 1.85;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.footer-grid > div:nth-child(2) .footer-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 20px;
}

.footer-list a {
  text-decoration: none;
}

.footer-list a:hover {
  color: var(--brand-primary-light);
  text-decoration: underline;
}

.footer-social-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(239, 236, 229, 0.2);
  border-radius: 999px;
  color: rgba(239, 236, 229, 0.82);
}

.footer-social-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(239, 236, 229, 0.55);
  font-size: 0.76rem;
}

@media (max-width: 1180px) {
  .desktop-nav,
  .language-switcher {
    display: none;
  }

  .mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1;
    width: 100%;
    background: rgba(252, 251, 249, 0.98);
    backdrop-filter: blur(14px);
  }

  .menu-button {
    display: grid;
  }

  .header-inner {
    min-height: 72px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 1080px) {
  .desktop-nav {
    display: none;
  }

  .language-switcher {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .header-inner {
    min-height: 72px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .grid-2,
  .grid-3,
  .access-layout,
  .footer-grid,
  .profile-panel,
  .gathering-detail-inner,
  .reido-intro,
  .reido-legacy,
  .related-organizations-inner {
    grid-template-columns: 1fr;
  }

  .related-organizations-heading,
  .related-organizations-copy {
    min-height: 0;
  }

  .visit-guide {
    margin-top: 0;
  }

  .first-time-family {
    padding-top: 40px;
  }

  .related-organizations-inner {
    gap: 28px;
  }

  .related-organizations-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 56px 0;
  }

  .timeline-item,
  .schedule-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .image-frame img {
    height: 280px;
  }

  .map-embed,
  .map-embed iframe {
    min-height: 320px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .profile-photo,
  .profile-photo-placeholder {
    min-height: 260px;
  }

  .reido-photo img {
    height: clamp(380px, 90vw, 560px);
  }

  .reido-visit-contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .reido-visit-contact .button-row {
    flex: 1 1 auto;
  }

  .sermon-card-toggle {
    flex-direction: column;
  }

}

@media (min-width: 561px) and (max-width: 700px) {
  .related-organization-logo {
    width: min(240px, calc(100% - 20px));
    height: 54px;
  }

  .related-organization-logo--district {
    width: min(240px, calc(100% - 12px));
    height: 64px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    gap: 12px;
  }

  .brand-link {
    min-width: 0;
    gap: 10px;
  }

  .brand-link > span {
    min-width: 0;
  }

  .brand-subtitle {
    font-size: 0.52rem;
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .home-scripture-inner {
    padding-block: 26px;
  }

  .home-scripture p {
    font-size: 1rem;
    line-height: 1.75;
  }

  .home-scripture cite {
    margin-top: 6px;
    font-size: 0.74rem;
  }

  .home-welcome {
    padding-top: 38px;
  }

  .site-footer {
    padding: 30px 0 max(8px, env(safe-area-inset-bottom));
  }

  .footer-grid {
    gap: 20px;
    padding-bottom: 18px;
  }

  .footer-grid > div:nth-child(2) .footer-list {
    gap: 6px 18px;
  }

  .footer-bottom {
    gap: 8px;
    padding-top: 14px;
  }

  .related-organizations {
    padding: 26px 0;
  }

  .related-organizations-list {
    grid-template-columns: 1fr;
    grid-auto-rows: 58px;
    gap: 8px;
  }

  .related-organization-link {
    height: 58px;
    padding: 4px 8px;
  }

  .related-organization-logo {
    width: min(240px, 100%);
    height: 52px;
  }

  .related-organization-logo--district {
    height: 58px;
  }

  .related-organization-link:nth-child(n + 2)::before {
    content: "";
    position: absolute;
    top: 0;
    right: 8px;
    bottom: auto;
    left: 8px;
    width: auto;
    height: 1px;
    background: rgba(209, 202, 198, 0.72);
  }

  .related-organization-link:nth-child(n + 3)::after {
    content: none;
  }

  .guide-link-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .guide-link-card > svg {
    display: none;
  }

  .reido-photo img {
    height: 440px;
  }
}

@media (max-width: 360px) {
  .brand-subtitle {
    font-size: 0.46rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
