@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;600;700&family=Noto+Sans+JP:wght@300;400;500&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --navy:      #1a2744;
  --navy2:     #243159;
  --navy-light:#2e4080;
  --gold:      #b8882a;
  --gold2:     #d4a843;
  --gold-light:#e8c97a;
  --ivory:     #faf7f2;
  --smoke:     #f0ece3;
  --smoke2:    #e5e0d6;
  --text:      #1e1e1e;
  --text2:     #444;
  --gray:      #777;
  --white:     #ffffff;

  --font-serif: 'Noto Serif JP', '游明朝', YuMincho, serif;
  --font-sans:  'Noto Sans JP', 'ヒラギノ角ゴ Pro', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   HEADER
   ============================================================ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
  padding: 0;
}

header.transparent { background: transparent; }
header.scrolled {
  background: rgba(26, 39, 68, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
/* fallback for non-hero pages */
header.solid { background: var(--navy); box-shadow: 0 2px 12px rgba(0,0,0,0.25); }

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Logo */
.site-title {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  flex-shrink: 0;
}

.logo-mark {
  width: 50px; height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  animation: logoShimmer 4s ease-in-out infinite;
}

@keyframes logoShimmer {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,168,67,0); }
  50% { box-shadow: 0 0 12px 2px rgba(212,168,67,0.35); }
}

.logo-mark::before {
  content: '';
  display: block;
  width: 36px; height: 36px;
  background: url('../images/logo_mark.png') center / contain no-repeat;
}

.logo-mark::after {
  content: none;
}

.site-title-text { display: flex; flex-direction: column; line-height: 1.3; }
.site-title-text .sect { font-size: 0.65rem; opacity: 0.7; letter-spacing: 0.12em; color: rgba(255,255,255,0.85); }
.site-title-text .name { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; letter-spacing: 0.14em; color: #fff; }

/* Nav */
nav ul { display: flex; }

nav ul li a {
  display: block;
  padding: 10px 15px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.06em;
  position: relative;
  transition: color 0.25s;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 1.5px;
  background: var(--gold2);
  transition: width 0.3s var(--ease-out);
}

nav ul li a:hover { color: #fff; }
nav ul li a:hover::after { width: 70%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,39,68,0.98);
  z-index: 999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: 0.15em;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.mobile-nav a:hover { opacity: 1; color: var(--gold2); }
.mobile-nav-close {
  position: absolute;
  top: 24px; right: 28px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 2rem;
  line-height: 1;
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: #111;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
}

.slides { display: flex; transition: transform 1s var(--ease-in-out); height: 100%; }

.slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 8s linear;
}

.slide.active { transform: scale(1.06); }

.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    125deg,
    rgba(10, 18, 45, 0.72) 0%,
    rgba(10, 18, 45, 0.3) 60%,
    rgba(10, 18, 45, 0.55) 100%
  );
  display: flex;
  align-items: center;
  padding: 0 10% 8%;
}

.slide-text { color: #fff; max-width: 580px; }

.slide-label {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--gold-light);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s 0.3s, transform 0.8s 0.3s var(--ease-out);
}

.slide.active .slide-label { opacity: 1; transform: translateY(0); }

.slide-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s 0.5s var(--ease-out), transform 0.9s 0.5s var(--ease-out);
}

.slide.active .slide-text h2 { opacity: 1; transform: translateY(0); }

.slide-text p {
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s 0.8s, transform 0.8s 0.8s var(--ease-out);
  padding-left: 14px;
  border-left: 2px solid var(--gold2);
  color: rgba(255,255,255,0.9);
}

.slide.active .slide-text p { opacity: 1; transform: translateY(0); }

/* Slider controls */
.slider-btn {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  border-radius: 50%;
  transition: background 0.25s, transform 0.25s;
}

.slider-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev { left: 28px; }
.slider-btn.next { right: 28px; }

.slider-dots {
  position: absolute;
  bottom: 28px; right: 40px;
  display: flex; gap: 8px;
}

.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  transition: all 0.35s;
}

.dot.active {
  background: var(--gold2);
  width: 28px;
  border-radius: 3px;
}

/* Scroll indicator */
.scroll-down {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
}

.scroll-down span {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  background: var(--smoke);
  padding: 12px 32px;
  font-size: 0.78rem;
  color: var(--gray);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--smoke2);
}
.breadcrumb a { color: var(--navy); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }

/* ============================================================
   INTRO STRIP
   ============================================================ */
.intro {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 72px 32px 80px;
  position: relative;
  overflow: hidden;
}

/* 和柄パターン（青海波） */
.intro::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 100% 100%, transparent 60%, rgba(255,255,255,0.025) 60.5%, rgba(255,255,255,0.025) 62%, transparent 62.5%),
    radial-gradient(circle at 0% 100%, transparent 60%, rgba(255,255,255,0.025) 60.5%, rgba(255,255,255,0.025) 62%, transparent 62.5%),
    radial-gradient(circle at 100% 0%, transparent 60%, rgba(255,255,255,0.025) 60.5%, rgba(255,255,255,0.025) 62%, transparent 62.5%),
    radial-gradient(circle at 0% 0%, transparent 60%, rgba(255,255,255,0.025) 60.5%, rgba(255,255,255,0.025) 62%, transparent 62.5%);
  background-size: 40px 40px;
  opacity: 0.6;
  pointer-events: none;
}

.intro-deco {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.intro-deco::before,
.intro-deco::after {
  content: '';
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold2));
}

.intro-deco::after { background: linear-gradient(90deg, var(--gold2), transparent); }

.intro-deco-icon {
  font-size: 1.2rem;
  color: var(--gold2);
}

.intro p {
  max-width: 680px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 2.3;
  letter-spacing: 0.08em;
  opacity: 0.93;
  position: relative;
}

/* ============================================================
   SECTION TITLE
   ============================================================ */
.section-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.12em;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 1.8em;
  background: linear-gradient(to bottom, var(--gold), var(--gold2));
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title-center {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.12em;
  text-align: center;
  margin-bottom: 12px;
}

.section-title-center + .section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  margin-bottom: 44px;
}

.section-title-center::after {
  content: '';
  display: block;
  width: 48px; height: 2px;
  background: var(--gold);
  margin: 14px auto 0;
}

/* ============================================================
   NAV BUTTONS (TOPページ)
   ============================================================ */
.nav-buttons {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--smoke2);
  border-radius: 4px;
  text-align: center;
  transition: all 0.35s var(--ease-out);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.nav-btn::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  transform: scaleX(0);
  transition: transform 0.35s var(--ease-out);
}

.nav-btn:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--smoke2);
}

.nav-btn:hover::before { transform: scaleX(1); }

.nav-btn .icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  transition: transform 0.35s var(--ease-out);
}

.nav-btn:hover .icon { transform: scale(1.15); }
.nav-btn .label { font-size: 0.9rem; font-weight: 500; letter-spacing: 0.05em; }

/* ============================================================
   NEWS
   ============================================================ */
.news-section {
  max-width: 860px;
  margin: 0 auto 96px;
  padding: 0 32px;
}

.news-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--smoke2);
  transition: padding-left 0.25s;
}

.news-list li:hover { padding-left: 8px; }

.news-list .date {
  font-size: 0.8rem;
  color: var(--gray);
  min-width: 115px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.news-list .badge {
  background: var(--gold);
  color: #fff;
  font-size: 0.62rem;
  padding: 2px 9px;
  border-radius: 2px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.news-list a { color: var(--navy); font-size: 0.9rem; transition: color 0.2s; }
.news-list a:hover { color: var(--gold); }

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--navy);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  transition: color 0.2s, gap 0.2s;
}
.more-link:hover { color: var(--gold); gap: 12px; }

/* ============================================================
   PAGE HERO (内ページ)
   ============================================================ */
.page-hero {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 120px 32px 80px; /* 80px for fixed header */
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  filter: brightness(0.5);
}

.page-hero-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 100% 100%, transparent 60%, rgba(255,255,255,0.02) 60.5%, rgba(255,255,255,0.02) 62%, transparent 62.5%),
    radial-gradient(circle at 0% 100%, transparent 60%, rgba(255,255,255,0.02) 60.5%, rgba(255,255,255,0.02) 62%, transparent 62.5%);
  background-size: 40px 40px;
}

.page-hero-inner { position: relative; z-index: 1; }

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.page-hero h1::after {
  content: '';
  display: block;
  width: 40px; height: 2px;
  background: var(--gold2);
  margin: 18px auto 0;
}

.page-hero-sub {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.6);
  margin-top: 14px;
  text-transform: uppercase;
}

/* ============================================================
   CONTENT WRAP
   ============================================================ */
.content-wrap {
  max-width: 960px;
  margin: 64px auto;
  padding: 0 32px;
}

/* ============================================================
   TABS
   ============================================================ */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 44px;
  border-bottom: 2px solid var(--smoke2);
}

.tab-btn {
  background: none;
  border: none;
  padding: 12px 28px;
  font-size: 0.88rem;
  font-family: var(--font-sans);
  letter-spacing: 0.06em;
  color: var(--gray);
  cursor: pointer;
  position: relative;
  transition: color 0.25s;
  border-radius: 4px 4px 0 0;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out);
}

.tab-btn.active { color: var(--navy); font-weight: 500; }
.tab-btn.active::after { transform: scaleX(1); }
.tab-btn:hover:not(.active) { color: var(--navy2); background: var(--smoke); }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s ease; }

/* koueiji ページ：ダーク背景上のevent-body テキスト */
.tab-content .event-body p { color: rgba(255,255,255,0.85); }
.tab-content .event-body h3 { color: #fff; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro {
  font-family: var(--font-serif);
  line-height: 2.3;
  font-size: 0.97rem;
  color: #fff;
  margin-bottom: 24px;
}

/* Image Grid with hover zoom */
.keidai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.keidai-item {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--smoke);
}

.keidai-item-img {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.keidai-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), filter 0.4s;
  filter: brightness(0.95) saturate(1.05);
}

.keidai-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.02) saturate(1.1);
}

.keidai-item p {
  font-size: 0.78rem;
  color: var(--text2);
  padding: 10px 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* Lightbox */
.lb-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lb-overlay.open { display: flex; }
.lb-overlay img {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 0 80px rgba(0,0,0,0.5);
}
.lb-close {
  position: fixed; top: 20px; right: 28px;
  color: rgba(255,255,255,0.7); font-size: 2.4rem;
  background: none; border: none;
  transition: color 0.2s;
  z-index: 9001;
}
.lb-close:hover { color: #fff; }

/* ============================================================
   EVENT PAGE
   ============================================================ */
.event-list { display: flex; flex-direction: column; }

.event-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  padding: 40px 0;
  border-bottom: 1px solid var(--smoke2);
  align-items: start;
  transition: background 0.25s;
}

.event-item-img {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 3/2;
  box-shadow: var(--shadow-sm);
}

.event-item-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), filter 0.4s;
  filter: brightness(0.96) saturate(1.05);
}

.event-item:hover .event-item-img img {
  transform: scale(1.06);
  filter: brightness(1.0) saturate(1.1);
}

.event-date {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--white);
  background: var(--gold);
  padding: 3px 12px;
  border-radius: 2px;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.event-body h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.event-body p {
  font-size: 0.9rem;
  line-height: 2;
  color: var(--text2);
}

/* ============================================================
   SANPAI PAGE
   ============================================================ */
.sanpai-box {
  background: var(--ivory);
  border-left: 3px solid var(--gold);
  padding: 28px 32px;
  margin-bottom: 28px;
  border-radius: 0 6px 6px 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}

.sanpai-box:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(3px);
}

.sanpai-box h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  margin-bottom: 14px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.sanpai-box p, .sanpai-box ul {
  font-size: 0.9rem;
  line-height: 2.1;
  color: var(--text2);
}

.sanpai-box ul {
  padding-left: 1.2em;
  list-style: none;
}

.sanpai-box ul li::before {
  content: '◆ ';
  color: var(--gold);
  font-size: 0.7em;
}

/* ============================================================
   KOTSU PAGE
   ============================================================ */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
  border-radius: 6px;
  overflow: hidden;
}

.info-table th,
.info-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--smoke2);
  font-size: 0.9rem;
}

.info-table th {
  background: var(--navy);
  color: #fff;
  width: 140px;
  text-align: left;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.info-table td { background: var(--white); color: var(--text); }
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }

.map-wrap {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16/7;
}

.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ============================================================
   OSHIRASE PAGE
   ============================================================ */
.news-article-list li {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--smoke2);
  transition: padding-left 0.25s;
}

.news-article-list li:hover { padding-left: 8px; }

.news-article-list .date {
  color: var(--gray);
  font-size: 0.8rem;
  min-width: 115px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.news-article-list a {
  color: var(--navy);
  font-size: 0.92rem;
  transition: color 0.2s;
}

.news-article-list a:hover { color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy);
  color: #fff;
  padding: 64px 32px 28px;
  position: relative;
  margin-top: 0;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 25%, var(--gold2) 50%, var(--gold) 75%, transparent 100%);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 80px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.footer-logo-mark {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-logo-mark::before {
  content: '';
  display: block;
  width: 32px; height: 32px;
  background: url('../images/logo_mark.png') center / contain no-repeat;
}

.footer-info h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.footer-info p {
  font-size: 0.84rem;
  line-height: 2.2;
  color: rgba(255,255,255,0.65);
  margin-top: 10px;
}

.footer-related {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-related p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}

.footer-related a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.footer-related a::before { content: '›'; color: var(--gold2); }
.footer-related a:hover { color: rgba(255,255,255,0.9); }

.footer-nav h3 {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.footer-nav ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.footer-nav ul li { margin-bottom: 0; }

.footer-nav ul li a {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s, gap 0.2s;
}

.footer-nav ul li a::before { content: '›'; color: var(--gold2); font-size: 1rem; }
.footer-nav ul li a:hover { color: rgba(255,255,255,0.95); gap: 12px; }

.copyright {
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  padding-top: 24px;
  letter-spacing: 0.08em;
}

/* ============================================================
   PLACEHOLDER
   ============================================================ */
.placeholder {
  background: var(--ivory);
  border: 2px dashed var(--smoke2);
  border-radius: 6px;
  padding: 40px;
  text-align: center;
  color: var(--gray);
  font-size: 0.85rem;
  line-height: 2;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .keidai-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-buttons { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: flex; }

  .header-inner { padding: 0 20px; height: 68px; }

  .hero { height: 75vh; min-height: 440px; }
  .slide-overlay { padding: 0 24px 44px; }
  .slide-text h2 { font-size: 1.5rem; }
  .slider-btn { display: none; }
  .scroll-down { display: none; }

  .intro { padding: 52px 24px; }
  .intro p { font-size: 0.93rem; }

  .nav-buttons { margin: 52px 20px; gap: 12px; }
  .nav-btn { padding: 28px 10px; }
  .nav-btn .icon { font-size: 1.8rem; margin-bottom: 10px; }

  .news-section { padding: 0 20px; margin-bottom: 64px; }

  .page-hero { padding: 100px 24px 60px; }
  .page-hero h1 { font-size: 1.7rem; }

  .content-wrap { margin: 44px auto; padding: 0 20px; }

  .event-item { grid-template-columns: 1fr; gap: 20px; }
  .event-item-img { aspect-ratio: 16/9; }

  .section-title { font-size: 1.3rem; }
  .section-title-center { font-size: 1.3rem; }

  .footer-inner { gap: 32px; }
  footer { padding: 48px 20px 24px; }

  .breadcrumb { padding: 10px 20px; }
  .tabs { overflow-x: auto; }
  .tab-btn { padding: 10px 18px; white-space: nowrap; }
}

@media (max-width: 480px) {
  .hero { height: 65vh; min-height: 380px; }
  .slide-text h2 { font-size: 1.3rem; }
  .keidai-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .nav-buttons { grid-template-columns: 1fr 1fr; }
}

/* POSITIONS START */
img[src*="ぼけ封じ観音.jpg"] { object-position: 51% 9%; }
img[src*="ご本尊_中山不動尊_不動明王.png"] { object-position: 48% 4%; }
img[src*="千手観世音菩薩_お持ち物マップ.jpg"] { object-position: 51% 3%; }
img[src*="写経会_案内.jpg"] { object-position: 50% 18%; }
img[src*="興栄寺_紹介イラスト.jpg"] { object-position: 48% 3%; }
img[src*="瓦奉納_案内.jpg"] { object-position: 48% 4%; }
/* POSITIONS END */
