/* ===== Zen Theme — 墨黒×金×縦書き ===== */
/* Palette
   bg:        #0F0F0F
   bg-alt:    #1A1A1A
   heading:   #C9B074  (gold)
   body:      #E8E0D0
   line:      #C9B074
   muted:     #4A4030
*/

/* ===== Reset & Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Serif JP', 'Shippori Mincho', serif;
  color: #E8E0D0;
  background: #0F0F0F;
  line-height: 1.95;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a {
  color: #C9B074;
  text-decoration: none;
  transition: color .3s, opacity .3s;
}
a:hover { color: #E8D58A; }

h1, h2, h3, h4 {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  color: #C9B074;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}
.container.narrow { max-width: 780px; }

/* ===== Header ===== */
.site-header {
  background: rgba(15,15,15,0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid #4A4030;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.logo {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #C9B074;
  letter-spacing: 0.18em;
}
.nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.nav a {
  color: #E8E0D0;
  font-family: 'Noto Serif JP', serif;
  font-weight: 400;
  font-size: 0.94rem;
  letter-spacing: 0.12em;
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: #C9B074;
  transition: width .4s ease;
}
.nav a:hover { color: #C9B074; }
.nav a:hover::after { width: 100%; }

/* ===== Hero Video Section ===== */
.hero-video-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #0F0F0F;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* fallback: poster shows when video unavailable */
  background: url('images/hero_poster.jpg') center/cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 8vw 0 6vw;
}
.hero-vertical-area {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 32px;
  height: 70%;
  margin-right: 4vw;
}
.hero-vertical-catch {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-weight: 700;
  color: #C9B074;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 0.3em;
  line-height: 1.9;
  text-shadow: 0 2px 18px rgba(0,0,0,0.55);
  margin: 0;
}
.hero-vertical-sub {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: 'Noto Serif JP', serif;
  font-weight: 400;
  color: #E8E0D0;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  letter-spacing: 0.22em;
  line-height: 2.0;
  align-self: flex-end;
  max-height: 60%;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}
.hero-cta-area {
  position: absolute;
  left: 6vw;
  bottom: 8vh;
}
.hero-enso {
  position: absolute;
  left: 5vw;
  top: 12vh;
  width: 120px;
  height: 120px;
  z-index: 2;
  opacity: 0.55;
}

/* ===== Page Hero ===== */
.page-hero {
  min-height: 280px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #E8E0D0;
  text-align: center;
  border-bottom: 1px solid #4A4030;
}
.page-hero .container { width: 100%; }
.page-hero-eyebrow {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.9rem;
  letter-spacing: 0.32em;
  color: #C9B074;
  margin-bottom: 14px;
}
.page-hero h1 {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #C9B074;
  text-shadow: 0 2px 14px rgba(0,0,0,0.55);
}
.page-hero-plain {
  background: #1A1A1A;
  min-height: 220px;
  border-top: 1px solid #C9B074;
  border-bottom: 1px solid #C9B074;
}
.page-hero-plain h1 { text-shadow: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 44px;
  font-family: 'Noto Serif JP', serif;
  font-weight: 400;
  font-size: 0.98rem;
  letter-spacing: 0.18em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .35s ease;
  border-radius: 0;
}
.btn-primary {
  background: transparent;
  color: #C9B074;
  border-color: #C9B074;
}
.btn-primary:hover {
  background: #C9B074;
  color: #0F0F0F;
}
.btn-outline {
  background: transparent;
  color: #E8E0D0;
  border-color: #4A4030;
}
.btn-outline:hover {
  border-color: #C9B074;
  color: #C9B074;
}

/* ===== Sections ===== */
.section {
  padding-block: 120px;
  background: #0F0F0F;
}
.section-alt {
  background: #1A1A1A;
}

.section-eyebrow {
  font-family: 'Noto Serif JP', serif;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  color: #C9B074;
  margin-bottom: 18px;
}

.section-title {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  text-align: center;
  margin-bottom: 56px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #C9B074;
  position: relative;
  padding-top: 28px;
}
.section-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: #C9B074;
}
.section-title-left {
  text-align: left;
}
.section-title-left::before {
  left: 0;
  transform: none;
}

.lead {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  line-height: 2.2;
  text-align: center;
  color: #E8E0D0;
  font-weight: 400;
  max-width: 720px;
  margin: 0 auto;
}

.body-text {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  line-height: 2.1;
  color: #E8E0D0;
  margin-bottom: 18px;
}
.body-text.note {
  font-size: 0.92rem;
  color: #BDB39C;
  border-left: 1px solid #4A4030;
  padding-left: 18px;
  margin-top: 28px;
}

.section-cta {
  text-align: center;
  margin-top: 48px;
}
.cta-double {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.address-line {
  text-align: center;
  color: #E8E0D0;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  font-family: 'Noto Serif JP', serif;
}

/* ===== Greeting body ===== */
.greeting-body p {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.02rem;
  line-height: 2.2;
  color: #E8E0D0;
  margin-bottom: 22px;
  text-indent: 1em;
}
.enso-small {
  display: block;
  width: 80px;
  height: 80px;
  margin: 56px auto 0;
  opacity: 0.7;
}

/* ===== About row ===== */
.about-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-row-reverse .about-text { order: 2; }
.about-row-reverse .about-image { order: 1; }
.about-image img {
  width: 100%;
  height: auto;
  border: 1px solid #4A4030;
  filter: saturate(0.85) brightness(0.92);
}
.about-text .section-eyebrow { text-align: left; }

/* ===== Events grid ===== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.event-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.event-card {
  background: transparent;
  border: 1px solid #4A4030;
  padding: 32px;
  transition: border-color .35s ease;
}
.event-card:hover { border-color: #C9B074; }
.event-month {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: 1.3rem;
  color: #C9B074;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}
.event-name {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: 1.2rem;
  color: #E8E0D0;
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}
.event-desc {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.95rem;
  line-height: 2.0;
  color: #BDB39C;
}
.event-card-full {
  min-height: 200px;
}

.events-image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.events-image-frame {
  height: 320px;
  background-size: cover;
  background-position: center;
  border: 1px solid #4A4030;
  filter: saturate(0.85) brightness(0.9);
}

/* ===== Memorial ===== */
.memorial-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 48px;
}
.memorial-item {
  background: transparent;
  border: 1px solid #4A4030;
  padding: 32px;
  border-left-width: 2px;
  border-left-color: #C9B074;
}
.memorial-name {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: 1.2rem;
  color: #C9B074;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}
.memorial-desc {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.98rem;
  color: #E8E0D0;
  line-height: 2.0;
}
.memorial-note {
  text-align: center;
  margin-top: 36px;
  font-size: 0.9rem;
  color: #BDB39C;
  letter-spacing: 0.06em;
}

/* ===== Access ===== */
.access-info {
  margin-top: 40px;
}
.info-list {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px 32px;
  background: transparent;
  border-top: 1px solid #C9B074;
  border-bottom: 1px solid #C9B074;
  padding: 36px 8px;
}
.info-list dt {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-weight: 700;
  color: #C9B074;
  border-right: 1px solid #4A4030;
  padding-right: 16px;
  letter-spacing: 0.12em;
}
.info-list dd {
  color: #E8E0D0;
  font-family: 'Noto Serif JP', serif;
}
.access-tel {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: 1.4rem;
  color: #C9B074;
  letter-spacing: 0.08em;
}
.access-note {
  margin-top: 24px;
  text-align: center;
  color: #BDB39C;
  font-size: 0.92rem;
}

/* ===== Contact ===== */
.contact-tel {
  text-align: center;
}
.tel-label {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: #BDB39C;
  letter-spacing: 0.18em;
}
.tel-number {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #C9B074;
  letter-spacing: 0.1em;
}
.contact-form {
  background: transparent;
  padding: 44px;
  border: 1px solid #4A4030;
  border-top: 1px solid #C9B074;
}
.form-row {
  margin-bottom: 26px;
}
.form-row label {
  display: block;
  font-family: 'Noto Serif JP', serif;
  font-weight: 400;
  margin-bottom: 10px;
  color: #C9B074;
  letter-spacing: 0.08em;
}
.req {
  display: inline-block;
  background: #4A4030;
  color: #C9B074;
  font-size: 0.72rem;
  padding: 2px 10px;
  border-radius: 0;
  margin-left: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  vertical-align: middle;
  font-family: 'Noto Sans JP', sans-serif;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #4A4030;
  font-family: inherit;
  font-size: 1rem;
  background: #0F0F0F;
  color: #E8E0D0;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #C9B074;
}
.form-submit { text-align: center; margin-top: 16px; }

/* ===== Footer ===== */
.site-footer {
  background: #0A0A0A;
  color: #BDB39C;
  padding: 64px 0 36px;
  font-size: 0.9rem;
  line-height: 2.0;
  border-top: 1px solid #C9B074;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.footer-name {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: 1.15rem;
  color: #C9B074;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.footer-temple p { color: #E8E0D0; }
.footer-temple p.footer-name { color: #C9B074; }
.footer-disclaimer p {
  font-size: 0.82rem;
  color: #8A8270;
}
.footer-credits {
  grid-column: 1 / -1;
  border-top: 1px solid #4A4030;
  padding-top: 22px;
  margin-top: 8px;
  font-size: 0.78rem;
  color: #8A8270;
}
.footer-credits a { color: #C9B074; }
.footer-credits a:hover { color: #E8D58A; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  body { line-height: 1.85; }
  .header-inner {
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
  }
  .nav {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
  }
  .nav a { font-size: 0.9rem; }

  /* Hero: mobile uses poster image and horizontal text */
  .hero-video-section {
    height: 80vh;
    min-height: 520px;
    background: url('images/hero_poster.jpg') center/cover no-repeat;
  }
  .hero-video { display: none; }
  .hero-overlay { background: rgba(0,0,0,0.5); }
  .hero-content {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 24px;
    text-align: center;
  }
  .hero-vertical-area {
    flex-direction: column;
    align-items: center;
    height: auto;
    gap: 24px;
    margin-right: 0;
  }
  .hero-vertical-catch {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: clamp(1.6rem, 7vw, 2.4rem);
    letter-spacing: 0.18em;
    line-height: 1.7;
    text-align: center;
  }
  .hero-vertical-sub {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 0.92rem;
    letter-spacing: 0.1em;
    line-height: 1.9;
    max-height: none;
    text-align: center;
  }
  .hero-cta-area {
    position: static;
    margin-top: 36px;
  }
  .hero-enso { width: 80px; height: 80px; left: 4vw; top: 8vh; opacity: 0.4; }

  .page-hero { min-height: 200px; }
  .page-hero h1 { font-size: 1.5rem; letter-spacing: 0.12em; }

  .section { padding-block: 72px; }
  .section-title { font-size: 1.4rem; margin-bottom: 36px; letter-spacing: 0.12em; }

  .about-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-row-reverse .about-text { order: 0; }
  .about-row-reverse .about-image { order: 0; }

  .events-grid,
  .event-preview-grid { grid-template-columns: 1fr; }
  .events-image-row { grid-template-columns: 1fr; }
  .events-image-frame { height: 220px; }

  .memorial-item { padding: 24px; }

  .info-list {
    grid-template-columns: 1fr;
    padding: 24px 12px;
  }
  .info-list dt {
    border-right: none;
    border-bottom: 1px solid #4A4030;
    padding-right: 0;
    padding-bottom: 4px;
  }
  .access-tel { font-size: 1.2rem; }

  .tel-number { font-size: 1.9rem; }
  .contact-form { padding: 28px 22px; }

  .cta-double { flex-direction: column; align-items: center; }

  .site-footer .container { grid-template-columns: 1fr; }
}
