/* ==========================================================================
   t02-visual｜月影山 清瀧寺
   写真フルスクリーン型。100vhクロスフェードヒーロー、
   透過→白背景に変化するナビ、Masonry風フォトギャラリーを主役に、
   文字は少なく余白を大胆に取る構成。
   ========================================================================== */

:root {
  --c-main: #0E1B2C;
  --c-accent: #C9A227;
  --c-bg: #FFFFFF;
  --c-text: #1A1A1A;
  --c-main-rgb: 14, 27, 44;
  --c-card-bg: #FFFFFF;
  --c-border: rgba(14, 27, 44, 0.14);
  --f-heading: 'Shippori Mincho', serif;
  --f-body: 'Noto Sans JP', sans-serif;
  --section-py: 96px;
  --header-h: 76px;
}

@media (max-width: 767px) {
  :root { --section-py: 56px; --header-h: 64px; }
}

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
}

h1, h2, h3, h4 { font-family: var(--f-heading); font-weight: 700; }

a { transition: opacity 0.2s ease, color 0.2s ease; }

/* 見出し(英字ラベル＋和文) */
.c-section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.c-section-head__label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: var(--c-accent);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.c-section-head__title {
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.1rem);
  color: var(--c-main);
  letter-spacing: 0.04em;
}
.c-section-head--left { text-align: left; }

.l-section { padding-block: var(--section-py); }
.l-section--alt { background: #FAFAF9; }

/* --------------------------------------------------------------------------
   ヘッダー（透過→白背景の切り替え。position:fixedで常時オーバーレイ）
   -------------------------------------------------------------------------- */
.l-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: transparent;
  color: #fff;
  transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}
.l-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  color: var(--c-text);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
  backdrop-filter: blur(6px);
}
.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.l-header__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  color: inherit;
}
.l-header__brand-en {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--c-accent);
}
.l-header__brand-ja {
  font-family: var(--f-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: inherit;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}
.l-header.is-scrolled .l-header__brand-ja { text-shadow: none; }

.l-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.l-nav__list {
  display: flex;
  gap: 1.6rem;
  font-size: 0.9rem;
}
.l-nav__list a {
  position: relative;
  padding-block: 0.3rem;
  color: inherit;
}
.l-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.l-nav__list a:hover::after,
.l-nav__list a.is-current::after { transform: scaleX(1); }
.l-nav__list a.is-current { font-weight: 700; }

.l-header__tel {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: inherit;
  font-size: 0.98rem;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}
.l-header.is-scrolled .l-header__tel { text-shadow: none; }
.l-header__tel small {
  display: block;
  font-size: 0.63rem;
  font-weight: 400;
}

.l-header__toggle {
  display: none;
  width: 40px;
  height: 32px;
  position: relative;
  flex-shrink: 0;
}
.l-header__toggle span,
.l-header__toggle span::before,
.l-header__toggle span::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.l-header__toggle span { top: 15px; }
.l-header__toggle span::before { top: -9px; }
.l-header__toggle span::after { top: 9px; }
.l-header__toggle[aria-expanded="true"] span { background: transparent; }
.l-header__toggle[aria-expanded="true"] span::before { transform: translateY(9px) rotate(45deg); background: var(--c-main); }
.l-header__toggle[aria-expanded="true"] span::after { transform: translateY(-9px) rotate(-45deg); background: var(--c-main); }

@media (max-width: 1023px) {
  .l-header__toggle { display: block; }
  .l-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    color: var(--c-text);
    border-bottom: 1px solid var(--c-border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    padding: 1rem 1.25rem 1.5rem;
  }
  .l-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .l-nav__list { flex-direction: column; gap: 0; }
  .l-nav__list a {
    display: block;
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--c-border);
  }
  .l-header__tel { margin-top: 1rem; font-size: 1.05rem; text-shadow: none; }
}

/* ページ内側（ヒーローを持たないページ）は常に白背景ヘッダーの分だけ余白を確保 */
body.page-inner { padding-top: var(--header-h); }

/* --------------------------------------------------------------------------
   ヒーロー（100vh クロスフェードスライダー）
   -------------------------------------------------------------------------- */
.c-hero {
  position: relative;
  height: 100vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--c-main);
}
.c-hero__slides { position: absolute; inset: 0; }
.c-hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.c-hero__slide.is-active { opacity: 1; }
.c-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(14, 27, 44, 0.42) 0%, rgba(14, 27, 44, 0.12) 45%, rgba(14, 27, 44, 0.6) 100%);
}
.c-hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
  padding-block: 2rem;
}
.c-hero__label {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  color: var(--c-accent);
  margin-bottom: 1.25rem;
}
.c-hero__catch {
  font-family: var(--f-heading);
  font-size: clamp(1.9rem, 1.1rem + 3.6vw, 3.6rem);
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  max-width: 16ch;
}
.c-hero__sub {
  margin-top: 1.5rem;
  font-size: 0.92rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.85);
}
.c-hero__dots {
  position: absolute;
  right: 1.5rem;
  bottom: 2rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.c-hero__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.3s ease, transform 0.3s ease;
}
.c-hero__dot.is-active { background: var(--c-accent); transform: scale(1.3); }
.c-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.85);
}
.c-hero__scroll span {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  padding-bottom: 1.4rem;
  position: relative;
}
.c-hero__scroll span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 1.1rem;
  background: rgba(255, 255, 255, 0.7);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0.2); opacity: 0.3; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
  100% { transform: scaleY(0.2); opacity: 0.3; transform-origin: bottom; }
}

@media (max-width: 767px) {
  .c-hero { height: 100svh; min-height: 460px; }
  .c-hero__dots { right: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .c-hero__scroll span::after { animation: none; opacity: 0.7; }
}

/* --------------------------------------------------------------------------
   参拝案内テーブル
   -------------------------------------------------------------------------- */
.c-visit { margin-top: 3rem; margin-bottom: 1rem; }
.c-info-table {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
}
.c-info-table table { font-size: 0.95rem; }
.c-info-table th, .c-info-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--c-border);
  text-align: left;
  vertical-align: top;
}
.c-info-table tr:last-child th,
.c-info-table tr:last-child td { border-bottom: none; }
.c-info-table th {
  width: 9.5em;
  background: #F5F6F4;
  color: var(--c-main);
  font-weight: 700;
  font-family: var(--f-heading);
}
.c-info-table__note { font-size: 0.8rem; color: #666; margin-top: 0.4rem; }

/* --------------------------------------------------------------------------
   お知らせ
   -------------------------------------------------------------------------- */
.c-news-list { border-top: 1px solid var(--c-border); }
.news-item {
  padding: 1.1rem 0.25rem;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
}
.news-item:hover { color: var(--c-main); }
.news-item__date { font-size: 0.85rem; color: #777; width: 6.5em; flex-shrink: 0; }
.news-item__title { flex: 1; min-width: 60%; }
.news-badge--important { background: #F4E3D7; color: #8C4A1F; }
.news-badge--info { background: #E7ECEF; color: var(--c-main); }
.news-badge--event { background: #F1E7CF; color: #7A5B1E; }

.c-news-more { text-align: center; margin-top: 2rem; }

/* --------------------------------------------------------------------------
   ボタン・CTA
   -------------------------------------------------------------------------- */
.c-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--c-main);
  color: var(--c-main);
  background: transparent;
}
.c-btn:hover { background: var(--c-main); color: #fff; }
.c-btn--solid { background: var(--c-main); color: #fff; }
.c-btn--solid:hover { background: #060d16; }
.c-btn--accent { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.c-btn--accent:hover { background: #a8841e; }

/* --------------------------------------------------------------------------
   カード共通
   -------------------------------------------------------------------------- */
.c-card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
}
.c-card__body { padding: 1.1rem 1.25rem 1.4rem; }
.c-card__label { font-size: 0.72rem; color: var(--c-accent); font-weight: 700; letter-spacing: 0.08em; }
.c-card__title { font-family: var(--f-heading); font-size: 1.05rem; margin-block: 0.35rem 0.5rem; color: var(--c-main); }
.c-card__text { font-size: 0.9rem; color: #4a4a4a; }

.c-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.c-grid--3 { grid-template-columns: repeat(3, 1fr); }
.c-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) {
  .c-grid--3, .c-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .c-grid--3, .c-grid--4 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   清瀧寺について
   -------------------------------------------------------------------------- */
.c-about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.c-about__text p + p { margin-top: 1rem; }
@media (max-width: 1023px) {
  .c-about { grid-template-columns: 1fr; gap: 2rem; }
}

/* --------------------------------------------------------------------------
   四季の清瀧寺（季節タブ）
   -------------------------------------------------------------------------- */
.c-season-tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.c-season-tab {
  padding: 0.6rem 1.6rem;
  border: 1px solid var(--c-border);
  background: #fff;
  font-family: var(--f-heading);
  font-size: 0.98rem;
  color: var(--c-text);
}
.c-season-tab.is-active { background: var(--c-main); color: #fff; border-color: var(--c-main); }
.c-season-tab:hover:not(.is-active) { border-color: var(--c-accent); color: var(--c-main); }

.c-season-panel { display: none; }
.c-season-panel.is-active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.c-season-panel p { font-size: 1rem; line-height: 1.9; }
@media (max-width: 767px) {
  .c-season-panel.is-active { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* --------------------------------------------------------------------------
   境内フォトギャラリー（Masonry風 / CSS columns）
   -------------------------------------------------------------------------- */
.c-gallery {
  columns: 2;
  column-gap: 1.25rem;
  margin-bottom: var(--section-py);
}
@media (min-width: 768px) {
  .c-gallery { columns: 3; }
}
.c-gallery__item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
}
.c-gallery__item figcaption {
  font-size: 0.8rem;
  color: #555;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   ライブカメラ枠
   -------------------------------------------------------------------------- */
.c-livecam { max-width: 640px; margin-inline: auto; text-align: center; }
.c-livecam__frame { position: relative; }
.c-livecam__badge {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 27, 44, 0.55);
  color: #fff;
  font-family: var(--f-heading);
  font-size: 1.05rem;
  letter-spacing: 0.2em;
}
.c-livecam__note { font-size: 0.85rem; color: #666; margin-top: 1.1rem; }

/* --------------------------------------------------------------------------
   ご祈祷・ご供養 料金表／FAQ
   -------------------------------------------------------------------------- */
.c-price-table { width: 100%; background: var(--c-card-bg); border: 1px solid var(--c-border); }
.c-price-table th, .c-price-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--c-border);
  text-align: left;
  font-size: 0.92rem;
}
.c-price-table thead th {
  background: var(--c-main);
  color: #fff;
  font-family: var(--f-heading);
}
.c-price-table tbody tr:last-child td { border-bottom: none; }
.c-price-table td.c-price-table__price { color: var(--c-accent); font-weight: 700; white-space: nowrap; }

.c-faq { border-top: 1px solid var(--c-border); margin-top: 3rem; }
.c-faq__item { border-bottom: 1px solid var(--c-border); }
.c-faq__item summary {
  padding: 1.1rem 0.25rem;
  font-weight: 700;
  color: var(--c-main);
  cursor: pointer;
  display: flex;
  gap: 0.75rem;
  list-style: none;
}
.c-faq__item summary::-webkit-details-marker { display: none; }
.c-faq__item summary::before { content: "Q"; color: var(--c-accent); font-family: var(--f-heading); }
.c-faq__item[open] summary { color: var(--c-main); }
.c-faq__answer { padding: 0 0.25rem 1.25rem 2rem; font-size: 0.92rem; color: #4a4a4a; position: relative; }
.c-faq__answer::before { content: "A"; position: absolute; left: 0.25rem; color: var(--c-main); font-family: var(--f-heading); font-weight: 700; }

/* --------------------------------------------------------------------------
   永代供養・お墓
   -------------------------------------------------------------------------- */
.c-ohaka-card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.c-ohaka-card__title { font-family: var(--f-heading); color: var(--c-main); margin-bottom: 0.6rem; font-size: 1.05rem; }
.c-ohaka-card__text { font-size: 0.9rem; color: #4a4a4a; margin-bottom: 1.1rem; }

/* --------------------------------------------------------------------------
   アクセス
   -------------------------------------------------------------------------- */
.c-access {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.c-access__map { border: 1px solid var(--c-border); overflow: hidden; }
.c-access__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
@media (max-width: 1023px) {
  .c-access { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   フッター
   -------------------------------------------------------------------------- */
.l-footer {
  background: var(--c-main);
  color: #eef1f4;
  padding-block: 3.5rem 6.5rem;
}
@media (min-width: 768px) {
  .l-footer { padding-bottom: 3.5rem; }
}
.l-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
}
.l-footer__brand { font-family: var(--f-heading); font-size: 1.2rem; margin-bottom: 0.75rem; }
.l-footer h3 { font-size: 0.85rem; letter-spacing: 0.1em; color: var(--c-accent); margin-bottom: 1rem; }
.l-footer address { font-style: normal; font-size: 0.9rem; line-height: 1.9; }
.l-footer__nav a, .l-footer__sns a { display: block; font-size: 0.9rem; padding-block: 0.35rem; opacity: 0.9; }
.l-footer__sns { display: flex; gap: 1rem; }
.l-footer__sns a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.l-footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.78rem;
  opacity: 0.75;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
@media (max-width: 767px) {
  .l-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* --------------------------------------------------------------------------
   スマホ固定バー
   -------------------------------------------------------------------------- */
.sticky-actions a {
  background: var(--c-main);
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}
.sticky-actions a:last-child { border-right: none; background: var(--c-accent); }

/* --------------------------------------------------------------------------
   news.html / page.html 専用
   -------------------------------------------------------------------------- */
.c-breadcrumb { font-size: 0.82rem; color: #666; padding-block: 1rem; border-bottom: 1px solid var(--c-border); }
.c-breadcrumb a { color: var(--c-main); }
.c-breadcrumb span[aria-hidden] { margin-inline: 0.4rem; }

.c-page-title {
  background: var(--c-main);
  color: #fff;
  padding-block: 3rem;
  text-align: center;
}
.c-page-title__en { font-size: 0.8rem; letter-spacing: 0.28em; color: var(--c-accent); }
.c-page-title h1 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); margin-top: 0.5rem; }

.c-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.news-tab {
  padding: 0.55rem 1.3rem;
  border: 1px solid var(--c-border);
  font-size: 0.88rem;
  background: #fff;
  color: var(--c-text);
}
.news-tab.is-active { background: var(--c-main); color: #fff; border-color: var(--c-main); }

.news-detail__meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.news-detail__date { color: #777; font-size: 0.9rem; }
.news-detail__title { font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--c-main); }
.news-detail__image { margin-bottom: 1.5rem; border: 1px solid var(--c-border); }
.news-detail__body { font-size: 1rem; line-height: 1.9; white-space: normal; }
.news-detail__back {
  margin-top: 2.5rem;
  display: inline-block;
  color: var(--c-main);
  font-weight: 700;
  border-bottom: 1px solid var(--c-main);
  padding-bottom: 0.15rem;
}
.news-detail--notfound { text-align: center; padding-block: 3rem; }

/* --------------------------------------------------------------------------
   境内マップ（簡易SVG）／ 見どころカード
   -------------------------------------------------------------------------- */
.c-spotmap { max-width: 640px; margin-inline: auto; text-align: center; }
.c-spotmap svg { width: 100%; height: auto; }
.c-spotmap__pin circle {
  fill: var(--c-accent);
  stroke: #fff;
  stroke-width: 2;
}
.c-spotmap__pin text {
  fill: #fff;
  font-family: var(--f-heading);
  font-size: 13px;
  font-weight: 700;
  text-anchor: middle;
}
.c-spotmap__note { font-size: 0.78rem; color: #777; margin-top: 1rem; }

.c-spot-card { flex-direction: row; align-items: flex-start; gap: 1rem; padding: 1.4rem 1.4rem 1.4rem 1.1rem; }
.c-spot-card__num {
  flex-shrink: 0;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: var(--c-main);
  color: #fff;
  font-family: var(--f-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.c-spot-card .c-card__body { padding: 0; }

/* --------------------------------------------------------------------------
   汎用ユーティリティ
   -------------------------------------------------------------------------- */
.u-text-center { text-align: center; }
.u-mt-lg { margin-top: 2.5rem; }
@media (max-width: 767px) {
  .u-hide-mobile { display: none; }
}
@media (min-width: 768px) {
  .u-hide-desktop { display: none; }
}
