/* ==========================================================================
   t06-minimal｜白山院
   ミニマル・小規模型。ワンページ完結・最大幅860pxの1カラム・
   極細ボーダーと余白のみで構成し、装飾やカードの箱組みを持たない。
   ========================================================================== */

:root {
  --c-main: #3E3A39;
  --c-accent: #9E7A38;
  --c-bg: #FFFFFF;
  --c-text: #333333;
  --c-line: rgba(62, 58, 57, 0.16);
  --c-line-soft: rgba(62, 58, 57, 0.1);
  --f-serif: 'Noto Serif JP', serif;
  --content-max: 860px;
  --section-py: 88px;
  --header-h: 68px;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--f-serif);
  font-weight: 700;
  color: var(--c-main);
}

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

/* アンカー先が固定ヘッダーに隠れないための余白 */
section[id] { scroll-margin-top: var(--header-h); }

/* --------------------------------------------------------------------------
   共通ラッパー(最大幅860pxの1カラム)
   -------------------------------------------------------------------------- */
.l-wrap {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.l-section {
  padding-block: var(--section-py);
  border-top: 1px solid var(--c-line-soft);
}
.l-section:first-of-type { border-top: none; }

.c-section-head { margin-bottom: 2rem; }
.c-section-head__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--c-accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.c-section-head__title {
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem);
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   ヘッダー(細いバー・アンカーナビ・MENUテキストトグル)
   -------------------------------------------------------------------------- */
.l-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(2px);
  border-bottom: 1px solid var(--c-line);
}
.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}
.l-header__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  flex-shrink: 0;
}
.l-header__brand-ja {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-main);
}
.l-header__brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: var(--c-accent);
}

.l-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.l-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.84rem;
}
.l-nav__list a {
  position: relative;
  padding-block: 0.2rem;
  color: var(--c-text);
}
.l-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  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 { color: var(--c-main); font-weight: 700; }

.l-header__tel {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--c-main);
  white-space: nowrap;
}

.l-header__toggle {
  display: none;
  font-family: var(--f-serif);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--c-main);
  border: 1px solid var(--c-main);
  padding: 0.4rem 0.9rem;
  background: transparent;
  flex-shrink: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  .l-nav { transition: none; }
}

/* --------------------------------------------------------------------------
   ヒーロー(画像→下に静かなキャッチ。オーバーレイなし)
   -------------------------------------------------------------------------- */
.c-hero__body {
  padding-block: 2.25rem 1rem;
}
.c-hero__catch {
  font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2rem);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.c-hero__lead {
  font-size: 1rem;
  line-height: 1.9;
  max-width: 34em;
  margin-bottom: 1.1rem;
}
.c-hero__link {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--c-accent);
  border-bottom: 1px solid var(--c-accent);
  padding-bottom: 2px;
}
.c-hero__link:hover { opacity: 0.7; }

/* --------------------------------------------------------------------------
   参拝案内テーブル
   -------------------------------------------------------------------------- */
.c-info-table { width: 100%; border-top: 1px solid var(--c-line); }
.c-info-table th, .c-info-table td {
  padding: 0.9rem 0.4rem;
  border-bottom: 1px solid var(--c-line);
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
}
.c-info-table th {
  width: 10em;
  color: var(--c-main);
  font-weight: 700;
}
.c-info-table__note { font-size: 0.8rem; color: #777; margin-top: 0.6rem; }

/* --------------------------------------------------------------------------
   お知らせ(共通news-itemに配色のみ付与)
   -------------------------------------------------------------------------- */
.c-news-list { border-top: 1px solid var(--c-line); }
.news-item { padding: 1rem 0; border-bottom: 1px solid var(--c-line); color: var(--c-text); }
.news-item:hover { color: var(--c-main); }
.news-item__date { font-size: 0.82rem; color: #777; width: 6em; flex-shrink: 0; }
.news-item__title { flex: 1; min-width: 55%; }
.news-badge--important { background: #F1E6D6; color: #7A5522; }
.news-badge--info { background: #EFEDEA; color: var(--c-main); }
.news-badge--event { background: #ECE4CF; color: #7A5B1E; }

.c-news-more { margin-top: 1.75rem; }

/* --------------------------------------------------------------------------
   フラットな行リスト(年中行事・御朱印など。箱組み・影を持たせない)
   -------------------------------------------------------------------------- */
.c-line-list { border-top: 1px solid var(--c-line); }
.c-line-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--c-line);
}
.c-line-list__label {
  font-size: 0.82rem;
  color: var(--c-accent);
  font-weight: 700;
  width: 5.5em;
  flex-shrink: 0;
}
.c-line-list__title {
  font-weight: 700;
  color: var(--c-main);
  flex-shrink: 0;
  max-width: 11em;
}
.c-line-list__text {
  flex: 1;
  min-width: 60%;
  font-size: 0.92rem;
  color: #4a4a4a;
}
.c-line-list__price {
  margin-left: auto;
  font-weight: 700;
  color: var(--c-accent);
  white-space: nowrap;
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   ボタン
   -------------------------------------------------------------------------- */
.c-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  font-weight: 700;
  font-size: 0.92rem;
  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: #242120; }

/* --------------------------------------------------------------------------
   お墓相談(3枠カードではなく1ブロック)
   -------------------------------------------------------------------------- */
.c-ohaka-box {
  border: 1px solid var(--c-line);
  padding: 2rem 1.5rem;
  text-align: center;
}
.c-ohaka-box__title { font-size: 1.1rem; margin-bottom: 0.75rem; }
.c-ohaka-box__text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #4a4a4a;
  max-width: 34em;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   アクセス
   -------------------------------------------------------------------------- */
.c-access { display: flex; flex-direction: column; gap: 1.5rem; }
.c-access__map { border: 1px solid var(--c-line); overflow: hidden; }
.c-access__map iframe { width: 100%; min-height: 280px; border: 0; display: block; }

/* --------------------------------------------------------------------------
   フッター
   -------------------------------------------------------------------------- */
.l-footer {
  border-top: 1px solid var(--c-line);
  padding-block: 3rem 6.5rem;
}
@media (min-width: 768px) {
  .l-footer { padding-bottom: 3rem; }
}
.l-footer__brand { font-size: 1.05rem; margin-bottom: 0.75rem; }
.l-footer address { font-style: normal; font-size: 0.88rem; line-height: 1.9; color: #555; }
.l-footer__nav {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.85rem;
}
.l-footer__sns { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.l-footer__sns a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-line);
  font-size: 0.72rem;
}
.l-footer__bottom {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-line-soft);
  font-size: 0.75rem;
  color: #777;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   スマホ固定バー
   -------------------------------------------------------------------------- */
.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.78rem; color: #777; padding-block: 0.9rem; border-bottom: 1px solid var(--c-line-soft); }
.c-breadcrumb a { color: var(--c-main); }
.c-breadcrumb span[aria-hidden] { margin-inline: 0.4rem; }

.c-page-title { padding-block: 2.5rem 2rem; border-bottom: 1px solid var(--c-line); }
.c-page-title__en { font-size: 0.72rem; letter-spacing: 0.22em; color: var(--c-accent); }
.c-page-title h1 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.8rem); margin-top: 0.5rem; }

.c-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.news-tab {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--c-line);
  font-size: 0.85rem;
  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.88rem; }
.news-detail__title { font-size: 1.3rem; margin-bottom: 1.4rem; }
.news-detail__image { margin-bottom: 1.4rem; border: 1px solid var(--c-line); }
.news-detail__body { font-size: 1rem; line-height: 1.9; }
.news-detail__back {
  margin-top: 2.25rem;
  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; }

/* 由緒ページ */
.c-history__text p + p { margin-top: 1rem; }
.c-history__photo { margin-block: 2rem; }
ul.c-history__timeline { border-top: 1px solid var(--c-line); margin-top: 0.5rem; }
.c-history__back { margin-top: 2.5rem; }

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