/* =============================================
   壮栄寺 共通スタイルシート
   ============================================= */

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

:root {
  --gold: #b8974a;
  --gold-light: #d4b06a;
  --gold-dark: #8a6e30;
  --ink: #1a1208;
  --ink-mid: #3d2f12;
  --ink-light: #6b5630;
  --cream: #faf7f0;
  --cream-dark: #f0ead8;
  --white: #ffffff;
  --gray: #888070;
  --red-temple: #8b1a1a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Serif JP', 'Yu Mincho', '游明朝', serif;
  background-color: var(--cream);
  color: var(--ink);
  line-height: 1.8;
}

/* ===================== HEADER ===================== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26, 18, 8, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gold-dark);
  transition: box-shadow 0.3s;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.header-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
}

.header-logo .sub {
  font-size: 0.62rem;
  color: var(--gold-light);
  letter-spacing: 0.2em;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
}

.header-logo .main {
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.15em;
  font-weight: 600;
}

nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
}

nav a {
  color: var(--cream-dark);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  transition: color 0.3s;
  position: relative;
  white-space: nowrap;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s;
}

nav a:hover,
nav a.active { color: var(--gold-light); }
nav a:hover::after,
nav a.active::after { transform: scaleX(1); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===================== PAGE HERO (inner pages) ===================== */
.page-hero {
  padding-top: 70px;
  height: 280px;
  background: linear-gradient(160deg, #1a1208 0%, #2d200a 50%, #1a0e06 100%);
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 30% 50%, rgba(184,151,74,0.07) 0%, transparent 70%),
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(184,151,74,0.025) 40px, rgba(184,151,74,0.025) 41px);
}

.page-hero-deco {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
}

.page-hero-content {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 2.5rem;
  width: 100%;
}

.page-hero-label {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.page-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.15em;
}

.breadcrumb {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.68rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
}

.breadcrumb a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { color: var(--gold); }

/* ===================== SECTIONS ===================== */
section { padding: 5rem 2rem; }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.section-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 1.5rem;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--gray);
  letter-spacing: 0.08em;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.9;
}

/* ===================== TABLES ===================== */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr { border-bottom: 1px solid var(--cream-dark); }

.info-table th {
  text-align: left;
  padding: 1rem 1.5rem 1rem 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
  font-weight: 500;
  width: 38%;
  font-family: 'Noto Sans JP', sans-serif;
  vertical-align: top;
}

.info-table td {
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.8;
}

/* ===================== CARDS ===================== */
.card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  transition: border-color 0.3s, transform 0.3s;
}

.card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

/* ===================== MANTRA BOX ===================== */
.mantra-box {
  background: var(--ink);
  color: var(--gold-light);
  padding: 1.5rem 2rem;
  text-align: center;
}

.mantra-box .label {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  font-family: 'Noto Sans JP', sans-serif;
  display: block;
  margin-bottom: 0.6rem;
}

.mantra-box p { font-size: 0.9rem; letter-spacing: 0.2em; }

/* ===================== WAKA BOX ===================== */
.waka-box {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 1.5rem 2rem;
}

.waka-box .label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-family: 'Noto Sans JP', sans-serif;
  margin-bottom: 0.8rem;
}

.waka-box p {
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--ink);
  line-height: 2;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  text-decoration: none;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  font-weight: 400;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--gold-light);
}

.btn-primary:hover { background: var(--gold-dark); color: var(--white); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover { background: var(--gold); color: var(--ink); }

/* ===================== DARK SECTION ===================== */
.section-dark {
  background: var(--ink);
  color: var(--white);
}

.section-dark .section-title { color: var(--white); }
.section-dark .section-desc { color: rgba(255,255,255,0.5); }

/* ===================== FOOTER ===================== */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 3rem 2rem 2rem;
}

.footer-inner { max-width: 1100px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(184,151,74,0.2);
}

.footer-brand .name {
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.footer-brand .sub {
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  margin-bottom: 1.2rem;
}

.footer-brand p {
  font-size: 0.78rem;
  line-height: 1.9;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
}

.footer-col h4 {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(184,151,74,0.2);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }

.footer-col a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.8rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  letter-spacing: 0.08em;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--gold-light); }

.footer-col address {
  font-style: normal;
  font-size: 0.8rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  line-height: 2;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  letter-spacing: 0.08em;
}

.footer-badge {
  display: inline-block;
  border: 1px solid rgba(184,151,74,0.4);
  padding: 0.3rem 0.8rem;
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.2em;
}

/* ===================== UTILITY ===================== */
.gold { color: var(--gold); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.note {
  font-size: 0.78rem;
  color: var(--gray);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.9;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  nav { display: none; }

  nav.open {
    display: flex;
    position: fixed;
    top: 70px; left: 0; right: 0; bottom: 0;
    background: rgba(26,18,8,0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
  }

  nav.open ul {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  nav.open a { font-size: 1.1rem; }

  .hamburger { display: flex; }

  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  .breadcrumb { display: none; }
}

@media (max-width: 600px) {
  section { padding: 3.5rem 1.2rem; }
  .page-hero { height: 220px; }
}
