/*
Theme Name: Zennoji
Theme URI: https://zennoji.com/
Author: Custom Theme
Description: 松栄山 善應寺（日蓮宗・福岡県嘉麻市）のオリジナルWordPressテーマ。納骨堂・いきもの供養・永代経供養・祈祷・年回表・お知らせ・ブログ機能を備えています。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: All Rights Reserved
Text Domain: zennoji
*/

:root {
  --white:    #FAFAF6;
  --cream:    #F2EDE4;
  --tan:      #C8A96E;
  --tan-lt:   #E8D9BC;
  --brown:    #6B4F2A;
  --brown-dk: #3C2A14;
  --green:    #4A6741;
  --green-dk: #2E4228;
  --text:     #2C1F0E;
  --text-mid: #6B5C44;
  --text-lt:  #9A8A74;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans JP', sans-serif; background: var(--white); color: var(--text); overflow-x: hidden; }

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,250,246,0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--tan-lt);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 64px;
}
.header-logo { font-family: 'Noto Serif JP', serif; font-weight: 300; font-size: 17px; letter-spacing: 4px; color: var(--brown-dk); text-decoration: none; line-height: 1.25; display: inline-block; }
.header-logo .hl-sect { display: block; font-family: 'Noto Serif JP', serif; font-size: 10px; font-weight: 400; letter-spacing: 4px; color: var(--green); margin-bottom: 3px; }
.site-nav { display: flex; gap: 2px; }
.site-nav a { font-family: 'Noto Serif JP', serif; font-size: 12px; font-weight: 300; letter-spacing: 2px; color: var(--text-mid); text-decoration: none; padding: 8px 12px; transition: color 0.2s; }
.site-nav a:hover { color: var(--green); }
.nav-cta { background: var(--green) !important; color: #fff !important; padding: 8px 16px !important; }
.nav-cta:hover { background: var(--green-dk) !important; color: #fff !important; }

/* ===== HERO ===== */
.hero { height: 100vh; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding-top: 64px; }
.hero-img { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(20,12,4,0.65) 0%, rgba(20,12,4,0.55) 50%, rgba(20,12,4,0.78) 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 20px; }
.hero-content::before { content: ''; position: absolute; inset: -40px -60px; background: radial-gradient(ellipse at center, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 70%); z-index: -1; pointer-events: none; }
.hero-title { font-family: 'Noto Serif JP', serif; font-weight: 200; font-size: clamp(40px, 6vw, 72px); letter-spacing: 12px; color: #FFFFFF; line-height: 1.4; margin-bottom: 20px; opacity: 0; animation: fadeUp 0.9s 0.3s forwards; text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 0 32px rgba(0,0,0,0.5); }
.hero-sub { font-family: 'Noto Serif JP', serif; font-weight: 300; font-size: 15px; letter-spacing: 5px; color: #FFFFFF; margin-bottom: 40px; opacity: 0; animation: fadeUp 0.9s 0.5s forwards; text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 0 20px rgba(0,0,0,0.5); }
.hero-divider { width: 50px; height: 1px; background: var(--tan); margin: 0 auto 40px; opacity: 0; animation: fadeUp 0.9s 0.6s forwards; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.9s 0.8s forwards; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #fff; font-family: 'Noto Serif JP', serif; font-size: 13px; font-weight: 300; letter-spacing: 3px; padding: 14px 28px; text-decoration: none; transition: background 0.2s, transform 0.2s; }
.btn-primary:hover { background: var(--green-dk); transform: translateY(-2px); }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(200,169,110,0.6); color: var(--tan); font-family: 'Noto Serif JP', serif; font-size: 13px; font-weight: 300; letter-spacing: 3px; padding: 14px 28px; text-decoration: none; transition: all 0.2s; }
.btn-outline:hover { border-color: var(--tan); background: rgba(200,169,110,0.1); }
.hero-scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2; font-family: 'Cormorant Garamond', serif; font-size: 11px; letter-spacing: 4px; color: rgba(200,169,110,0.6); text-transform: uppercase; animation: bounce 2s infinite; }

/* ===== INFO BAR ===== */
.info-bar { background: var(--brown-dk); padding: 18px 40px; display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.info-bar-item { display: flex; align-items: center; gap: 12px; }
.info-bar-label { font-family: 'Cormorant Garamond', serif; font-size: 10px; letter-spacing: 3px; color: rgba(200,169,110,0.5); text-transform: uppercase; }
.info-bar-value { font-family: 'Noto Serif JP', serif; font-weight: 300; font-size: 13px; color: rgba(240,234,224,0.85); letter-spacing: 1px; }
.info-bar-sep { width: 1px; height: 28px; background: rgba(200,169,110,0.15); }

/* ===== SECTION BASE ===== */
.section { padding: 88px 80px; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-dark { background: var(--brown-dk); }
.section-green { background: var(--green); }
.sec-en { font-family: 'Cormorant Garamond', serif; font-size: 11px; font-style: italic; letter-spacing: 6px; color: var(--green); text-transform: uppercase; margin-bottom: 10px; }
.sec-en-lt { color: rgba(200,169,110,0.65); }
.sec-title { font-family: 'Noto Serif JP', serif; font-weight: 300; font-size: clamp(22px, 3vw, 30px); letter-spacing: 6px; color: var(--text); margin-bottom: 16px; }
.sec-title-lt { color: var(--white); }
.sec-rule { display: flex; align-items: center; gap: 10px; margin-bottom: 48px; }
.sec-rule-line { width: 32px; height: 1px; background: var(--green); }
.sec-rule-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.sec-rule-lt .sec-rule-line, .sec-rule-lt .sec-rule-dot { background: rgba(200,169,110,0.5); }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== NEWS SECTION ===== */
.news-section { background: var(--cream); padding: 56px 80px; }
.news-wrap { max-width: 960px; margin: 0 auto; }
.news-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--tan-lt); flex-wrap: wrap; gap: 12px; }
.news-head-titles { display: flex; align-items: center; gap: 20px; }
.news-head-titles .news-en { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 12px; letter-spacing: 6px; color: var(--green); text-transform: uppercase; }
.news-head-titles .news-title { font-family: 'Noto Serif JP', serif; font-weight: 400; font-size: 20px; letter-spacing: 5px; color: var(--text); }
.news-more { font-family: 'Cormorant Garamond', serif; font-size: 12px; letter-spacing: 3px; color: var(--green); text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.news-more:hover { border-color: var(--green); }
.news-row { display: grid; grid-template-columns: 120px 90px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid rgba(200,169,110,0.25); align-items: center; text-decoration: none; color: inherit; transition: background 0.2s; }
.news-row:last-child { border-bottom: none; }
.news-row:hover { background: rgba(74,103,65,0.04); }
.news-row .news-date { font-family: 'Cormorant Garamond', serif; font-size: 14px; color: var(--text-mid); letter-spacing: 1px; }
.news-row .news-cat { justify-self: start; padding: 3px 10px; font-family: 'Cormorant Garamond', serif; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; text-align: center; min-width: 62px; }
.news-cat.cat-new { background: var(--green); color: #fff; }
.news-cat.cat-event { background: var(--brown); color: #fff; }
.news-cat.cat-info { background: var(--tan-lt); color: var(--text); }
.news-row .news-headline { font-family: 'Noto Serif JP', serif; font-weight: 400; font-size: 14px; letter-spacing: 2px; color: var(--text); transition: color 0.2s; }
.news-row:hover .news-headline { color: var(--green); }
.news-empty { padding: 40px 0; text-align: center; color: var(--text-lt); font-family: 'Noto Serif JP', serif; font-size: 14px; letter-spacing: 2px; }

/* ===== GREETING ===== */
.greeting-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.greeting-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.greeting-text { font-family: 'Noto Serif JP', serif; font-weight: 300; font-size: 14px; line-height: 2.6; color: var(--text); letter-spacing: 1px; margin-bottom: 28px; }
.greeting-attr { font-family: 'Cormorant Garamond', serif; font-size: 13px; font-style: italic; letter-spacing: 3px; color: var(--text-lt); }
.greeting-stats { display: flex; flex-direction: column; gap: 18px; margin-top: 32px; }
.g-stat { border-left: 3px solid var(--tan); padding-left: 18px; }
.g-stat-label { font-family: 'Cormorant Garamond', serif; font-size: 10px; letter-spacing: 4px; color: var(--text-lt); text-transform: uppercase; margin-bottom: 4px; }
.g-stat-value { font-family: 'Noto Serif JP', serif; font-weight: 300; font-size: 13px; color: var(--text); letter-spacing: 1px; line-height: 1.8; }

/* ===== PHOTO SLIDER (境内) ===== */
.grounds-slider { position: relative; max-width: 960px; margin: 0 auto; }
.grounds-slides { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--brown-dk); }
.grounds-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease; pointer-events: none; }
.grounds-slide.active { opacity: 1; pointer-events: auto; }
.grounds-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grounds-slide-info { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(30,18,6,0.85)); padding: 48px 28px 28px; }
.grounds-slide-title { font-family: 'Noto Serif JP', serif; font-weight: 300; font-size: 22px; letter-spacing: 6px; color: rgba(240,234,224,0.95); }
.grounds-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; background: rgba(250,250,246,0.85); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 3; transition: background 0.2s; border-radius: 50%; font-size: 22px; color: var(--brown-dk); line-height: 1; }
.grounds-arrow:hover { background: rgba(250,250,246,1); }
.grounds-arrow-prev { left: 16px; }
.grounds-arrow-next { right: 16px; }
.grounds-dots { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.grounds-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(74,103,65,0.25); border: none; cursor: pointer; padding: 0; transition: all 0.25s; }
.grounds-dot.active { background: var(--green); width: 28px; border-radius: 4px; }

/* ===== SERVICES ===== */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.svc-card { background: var(--white); border: 1px solid var(--tan-lt); border-top: 4px solid var(--green); padding: 32px 28px; transition: transform 0.25s, box-shadow 0.25s; text-decoration: none; color: inherit; display: block; }
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(44,31,14,0.1); }
.svc-num { font-family: 'Cormorant Garamond', serif; font-size: 38px; font-weight: 300; font-style: italic; color: rgba(74,103,65,0.15); margin-bottom: 12px; }
.svc-title { font-family: 'Noto Serif JP', serif; font-weight: 400; font-size: 16px; letter-spacing: 4px; color: var(--text); margin-bottom: 12px; }
.svc-desc { font-size: 13px; color: var(--text-mid); line-height: 2.1; letter-spacing: 0.5px; margin-bottom: 14px; }
.svc-price { font-family: 'Cormorant Garamond', serif; font-size: 14px; letter-spacing: 2px; color: var(--brown); border-top: 1px solid var(--tan-lt); padding-top: 12px; }
.svc-link { font-family: 'Cormorant Garamond', serif; font-size: 11px; letter-spacing: 4px; color: var(--green); text-transform: uppercase; display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.svc-link::after { content: '→'; }

/* ===== EVENTS ===== */
.events-grid { display: flex; flex-direction: column; border: 1px solid var(--tan-lt); background: var(--white); }
.event-item { display: grid; grid-template-columns: 220px 1fr auto; align-items: center; column-gap: 28px; padding: 24px 32px; border-bottom: 1px solid var(--tan-lt); transition: background 0.2s; }
.event-item:last-child { border-bottom: none; }
.event-item:hover { background: rgba(74,103,65,0.04); }
.event-date { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; letter-spacing: 1.5px; color: var(--green); line-height: 1.4; }
.event-body { min-width: 0; }
.event-name { font-family: 'Noto Serif JP', serif; font-weight: 400; font-size: 16px; letter-spacing: 3px; color: var(--text); margin-bottom: 4px; line-height: 1.6; }
.event-note { font-size: 12px; color: var(--text-lt); line-height: 1.8; letter-spacing: 0.5px; }
.events-monthly { margin-top: 16px; background: rgba(74,103,65,0.06); border: 1px solid var(--tan-lt); padding: 24px 32px; display: grid; grid-template-columns: 220px 1fr; align-items: center; column-gap: 28px; }
.em-date { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-style: italic; color: var(--green); white-space: nowrap; letter-spacing: 1.5px; }
.em-text { font-family: 'Noto Serif JP', serif; font-weight: 400; font-size: 16px; letter-spacing: 3px; color: var(--text); }
.em-note { font-size: 12px; color: var(--text-lt); margin-top: 4px; letter-spacing: 0.5px; }

/* ===== ACCESS ===== */
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.access-table { width: 100%; border-collapse: collapse; }
.access-table tr { border-bottom: 1px solid var(--tan-lt); }
.access-table tr:first-child { border-top: 1px solid var(--tan-lt); }
.access-table td { padding: 16px 0; font-family: 'Noto Serif JP', serif; font-weight: 300; vertical-align: top; }
.atd-l { font-family: 'Cormorant Garamond', serif; font-size: 11px; letter-spacing: 3px; color: var(--text-lt); text-transform: uppercase; width: 90px; }
.atd-v { font-size: 13px; color: var(--text); letter-spacing: 1px; line-height: 1.9; }
.map-box { background: var(--cream); border: 1px solid var(--tan-lt); height: 360px; overflow: hidden; padding: 0; }
.map-link { font-family: 'Cormorant Garamond', serif; font-size: 11px; letter-spacing: 4px; color: var(--green); text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--green); padding-bottom: 2px; display: inline-block; margin-top: 12px; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact-desc { font-family: 'Noto Serif JP', serif; font-weight: 300; font-size: 14px; line-height: 2.4; color: rgba(240,234,224,0.65); margin-top: 28px; }
.contact-methods { display: flex; flex-direction: column; gap: 14px; }
.contact-method { display: flex; align-items: center; gap: 16px; background: rgba(240,234,224,0.06); border: 1px solid rgba(200,169,110,0.18); padding: 20px 22px; text-decoration: none; color: inherit; transition: background 0.2s; }
.contact-method:hover { background: rgba(240,234,224,0.1); }
.cm-icon { font-size: 20px; width: 36px; text-align: center; flex-shrink: 0; }
.cm-label { font-family: 'Cormorant Garamond', serif; font-size: 10px; letter-spacing: 4px; color: var(--tan); text-transform: uppercase; margin-bottom: 3px; }
.cm-val { font-family: 'Noto Serif JP', serif; font-weight: 300; font-size: 14px; color: var(--white); letter-spacing: 2px; }
.cm-note { font-size: 11px; color: rgba(240,234,224,0.45); margin-top: 2px; letter-spacing: 1px; }
.line-method { background: #06C755 !important; border-color: #06C755 !important; }
.line-method .cm-label { color: rgba(255,255,255,0.7); }
.line-method .cm-val { color: #fff; }

/* ===== FOOTER ===== */
.site-footer { background: var(--brown-dk); padding: 44px 80px 28px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 28px; border-bottom: 1px solid rgba(200,169,110,0.12); margin-bottom: 20px; }
.footer-logo { font-family: 'Noto Serif JP', serif; font-weight: 200; font-size: 20px; letter-spacing: 5px; color: var(--tan-lt); line-height: 1.3; }
.footer-logo .fl-sect { display: block; font-family: 'Noto Serif JP', serif; font-size: 11px; font-weight: 400; letter-spacing: 4px; color: rgba(200,169,110,0.7); margin-bottom: 6px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-family: 'Noto Serif JP', serif; font-weight: 300; font-size: 12px; letter-spacing: 2px; color: rgba(200,169,110,0.4); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--tan); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-addr { font-family: 'Noto Serif JP', serif; font-weight: 300; font-size: 12px; letter-spacing: 1px; color: rgba(200,169,110,0.35); line-height: 1.9; }
.footer-copy { font-family: 'Cormorant Garamond', serif; font-size: 11px; letter-spacing: 3px; color: rgba(200,169,110,0.22); }

/* ===== NOKOTSU PAGE ===== */
.nokotsu-hero { position: relative; height: 380px; overflow: hidden; margin-top: 64px; }
.nokotsu-hero img { width: 100%; height: 100%; object-fit: cover; }
.nokotsu-hero-overlay { position: absolute; inset: 0; background: rgba(30,18,6,0.55); display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; gap: 12px; }
.nokotsu-hero-title { font-family: 'Noto Serif JP', serif; font-weight: 200; font-size: 36px; letter-spacing: 10px; color: var(--white); }
.nokotsu-hero-sub { font-family: 'Cormorant Garamond', serif; font-size: 12px; font-style: italic; letter-spacing: 5px; color: var(--tan); text-transform: uppercase; }

.nokotsu-tabs { display: flex; background: var(--brown-dk); overflow-x: auto; }
.nokotsu-tab { flex: 1; font-family: 'Noto Serif JP', serif; font-size: 12px; font-weight: 300; letter-spacing: 2px; color: rgba(200,169,110,0.6); padding: 16px 12px; text-align: center; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s; white-space: nowrap; }
.nokotsu-tab.active { color: var(--tan); border-bottom-color: var(--tan); }
.nokotsu-tab small { display: block; font-family: 'Cormorant Garamond', serif; font-size: 11px; margin-top: 4px; letter-spacing: 1px; }

.nokotsu-panel { display: none; }
.nokotsu-panel.active { display: grid; grid-template-columns: 1fr 1fr; }
.nokotsu-panel-img { aspect-ratio: 4/5; overflow: hidden; position: relative; background: var(--cream); }
.panel-slider { position: relative; width: 100%; height: 100%; }
.panel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; display: flex; align-items: center; justify-content: center; background: var(--cream); }
.panel-slide.active { opacity: 1; z-index: 1; }
.panel-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.panel-slide .mockup-tag { position: absolute; bottom: 16px; right: 28px; background: rgba(255,255,255,0.85); color: var(--text); font-family: 'Noto Serif JP', serif; font-size: 11px; font-weight: 400; letter-spacing: 2px; padding: 4px 10px; z-index: 4; backdrop-filter: blur(2px); }
.panel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.85); border: 1px solid var(--tan-lt); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px; color: var(--brown); z-index: 5; backdrop-filter: blur(4px); transition: all 0.2s; padding: 0; }
.panel-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.panel-arrow-prev { left: 12px; }
.panel-arrow-next { right: 12px; }
.panel-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.panel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.5); cursor: pointer; padding: 0; transition: all 0.25s; }
.panel-dot.active { background: var(--green); border-color: var(--green); width: 24px; border-radius: 4px; }
.panel-counter { position: absolute; top: 14px; right: 14px; font-family: 'Cormorant Garamond', serif; font-size: 12px; letter-spacing: 2px; color: var(--white); background: rgba(30,18,6,0.5); padding: 4px 10px; border-radius: 2px; z-index: 5; backdrop-filter: blur(4px); }
.nokotsu-panel-info { background: var(--cream); padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.nokotsu-panel-title { font-family: 'Noto Serif JP', serif; font-weight: 300; font-size: 22px; letter-spacing: 5px; color: var(--text); margin-bottom: 8px; }
.nokotsu-panel-price { font-family: 'Cormorant Garamond', serif; font-size: 28px; letter-spacing: 3px; color: var(--brown); margin-bottom: 24px; }
.nokotsu-panel-desc { font-family: 'Noto Serif JP', serif; font-weight: 300; font-size: 14px; line-height: 2.3; color: var(--text-mid); margin-bottom: 28px; }
.nokotsu-panel table { width: 100%; border-collapse: collapse; }
.nokotsu-panel td { padding: 12px 0; border-bottom: 1px solid var(--tan-lt); font-family: 'Noto Serif JP', serif; font-weight: 300; font-size: 13px; }
.nokotsu-panel .td-label { font-family: 'Cormorant Garamond', serif; font-size: 10px; letter-spacing: 3px; color: var(--text-lt); text-transform: uppercase; width: 90px; }

/* ===== IKIMONO PAGE ===== */
.ikimono-slider-wrap { max-width: 600px; margin: 0 auto 40px; }
.ikimono-slider { position: relative; aspect-ratio: 4/5; background: var(--cream); overflow: hidden; border: 1px solid var(--tan-lt); }
.ik-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.ik-slide.active { opacity: 1; z-index: 1; }
.ik-slide img { width: 100%; height: 100%; object-fit: contain; background: var(--cream); display: block; }
.ik-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.85); border: 1px solid var(--tan-lt); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px; color: var(--brown); z-index: 5; backdrop-filter: blur(4px); transition: all 0.2s; padding: 0; }
.ik-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.ik-arrow-prev { left: 12px; }
.ik-arrow-next { right: 12px; }
.ik-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.ik-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.5); cursor: pointer; padding: 0; transition: all 0.25s; }
.ik-dot.active { background: var(--green); border-color: var(--green); width: 24px; border-radius: 4px; }
.ik-counter { position: absolute; top: 14px; right: 14px; font-family: 'Cormorant Garamond', serif; font-size: 12px; letter-spacing: 2px; color: var(--white); background: rgba(30,18,6,0.5); padding: 4px 10px; border-radius: 2px; z-index: 5; backdrop-filter: blur(4px); }
.ikimono-desc { font-family: 'Noto Serif JP', serif; font-weight: 300; font-size: 14px; line-height: 2.4; color: var(--text-mid); margin-bottom: 28px; }
.ikimono-prices { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; }
.ikimono-price-card { background: var(--white); border: 1px solid var(--tan-lt); padding: 24px 28px; }
.ikimono-price-type { font-family: 'Noto Serif JP', serif; font-size: 14px; letter-spacing: 3px; color: var(--text); margin-bottom: 10px; }
.ikimono-price-val { font-family: 'Cormorant Garamond', serif; font-size: 22px; letter-spacing: 2px; color: var(--brown); }

/* ===== KITO PAGE ===== */
.kito-toc { max-width: 720px; margin: 0 auto 60px; background: var(--cream); border: 1px solid var(--tan-lt); padding: 32px 40px; }
.kito-toc-title { font-family: 'Cormorant Garamond', serif; font-size: 12px; font-style: italic; letter-spacing: 5px; color: var(--green); text-transform: uppercase; text-align: center; margin-bottom: 20px; }
.kito-toc ul { list-style: none; padding: 0; margin: 0; }
.kito-toc li { border-bottom: 1px solid rgba(200,169,110,0.3); }
.kito-toc li:last-child { border-bottom: none; }
.kito-toc a { display: flex; align-items: center; justify-content: space-between; padding: 14px 8px; font-family: 'Noto Serif JP', serif; font-weight: 400; font-size: 15px; letter-spacing: 3px; color: var(--text); text-decoration: none; transition: color 0.2s, padding 0.2s; }
.kito-toc a::after { content: '↓'; font-family: 'Cormorant Garamond', serif; font-size: 14px; color: var(--green); }
.kito-toc a:hover { color: var(--green); padding-left: 14px; }
.kito-item { max-width: 960px; margin: 0 auto 72px; scroll-margin-top: 90px; }
.kito-item-header { text-align: center; margin-bottom: 32px; }
.kito-item-num { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 22px; color: rgba(74,103,65,0.5); letter-spacing: 3px; margin-bottom: 6px; }
.kito-item-title { font-family: 'Noto Serif JP', serif; font-weight: 400; font-size: 24px; letter-spacing: 6px; color: var(--text); margin-bottom: 12px; }
.kito-item-rule { width: 40px; height: 1px; background: var(--green); margin: 0 auto; }
.kito-item-body { display: grid; grid-template-columns: 5fr 6fr; gap: 40px; align-items: start; }
.kito-item-imgs { display: flex; flex-direction: column; gap: 12px; }
.kito-item-imgs img { width: 100%; height: auto; display: block; border: 1px solid var(--tan-lt); background: var(--cream); }
.kito-item-desc { font-family: 'Noto Serif JP', serif; font-weight: 300; font-size: 14px; line-height: 2.3; color: var(--text); letter-spacing: 0.5px; }
.kito-item-desc p { margin-bottom: 14px; }
.kito-item-desc p:last-child { margin-bottom: 0; }
.kito-list-items { font-family: 'Noto Serif JP', serif; font-weight: 400; font-size: 13px; line-height: 2.1; color: var(--brown); letter-spacing: 1px; background: var(--cream); padding: 14px 18px; margin: 10px 0; }

/* ===== NENKAI PAGE ===== */
.nk-table-wrap { max-width: 720px; margin: 0 auto; border: 1px solid var(--tan-lt); background: var(--white); }
.nk-table { width: 100%; border-collapse: collapse; }
.nk-table th { font-family: 'Noto Serif JP', serif; font-weight: 400; font-size: 13px; letter-spacing: 4px; color: var(--white); background: var(--brown-dk); padding: 16px; text-align: center; }
.nk-table td { padding: 18px 24px; border-bottom: 1px solid var(--tan-lt); font-family: 'Noto Serif JP', serif; font-weight: 300; font-size: 15px; }
.nk-table tr:last-child td { border-bottom: none; }
.nk-table tr:hover { background: rgba(74,103,65,0.04); }
.nk-kaiki { color: var(--green); font-weight: 400; letter-spacing: 4px; width: 40%; }
.nk-year { color: var(--text); letter-spacing: 1px; }
.nk-year .nk-seireki { color: var(--text-lt); font-size: 13px; margin-left: 4px; font-family: 'Cormorant Garamond', serif; letter-spacing: 1px; }
.nk-calc { max-width: 720px; margin: 0 auto; background: var(--cream); padding: 40px 32px; }
.nk-calc-title { font-family: 'Noto Serif JP', serif; font-weight: 400; font-size: 18px; letter-spacing: 4px; color: var(--text); text-align: center; margin-bottom: 8px; }
.nk-calc-desc { font-family: 'Noto Sans JP', sans-serif; font-size: 13px; color: var(--text-mid); text-align: center; margin-bottom: 28px; line-height: 1.8; }
.nk-form { display: flex; gap: 12px; justify-content: center; align-items: flex-end; flex-wrap: wrap; margin-bottom: 24px; }
.nk-field { display: flex; flex-direction: column; gap: 6px; }
.nk-field label { font-family: 'Cormorant Garamond', serif; font-size: 10px; letter-spacing: 3px; color: var(--text-lt); text-transform: uppercase; }
.nk-field select { padding: 10px 14px; font-family: 'Noto Serif JP', serif; font-size: 14px; border: 1px solid var(--tan); background: var(--white); color: var(--text); min-width: 90px; cursor: pointer; }
.nk-field select:focus { outline: 2px solid var(--green); }
.nk-calc-btn { font-family: 'Noto Serif JP', serif; font-size: 13px; letter-spacing: 3px; color: #fff; background: var(--green); padding: 12px 28px; border: none; cursor: pointer; transition: background 0.2s; }
.nk-calc-btn:hover { background: var(--green-dk); }
.nk-result { display: none; margin-top: 24px; background: var(--white); border: 1px solid var(--tan-lt); padding: 24px; }
.nk-result.visible { display: block; }
.nk-result-title { font-family: 'Noto Serif JP', serif; font-weight: 400; font-size: 14px; letter-spacing: 3px; color: var(--text-mid); margin-bottom: 16px; text-align: center; }
.nk-result-meibi { font-family: 'Cormorant Garamond', serif; font-size: 15px; color: var(--text); text-align: center; margin-bottom: 18px; letter-spacing: 1px; }
.nk-result-table { width: 100%; border-collapse: collapse; }
.nk-result-table td { padding: 11px 16px; border-bottom: 1px solid var(--tan-lt); font-family: 'Noto Serif JP', serif; font-size: 14px; }
.nk-result-table tr:last-child td { border-bottom: none; }
.nk-result-table .nk-rk { color: var(--green); letter-spacing: 3px; width: 35%; }
.nk-result-table .nk-ry { color: var(--text); letter-spacing: 1px; }
.nk-result-table .nk-ry .nk-seireki { color: var(--text-lt); font-size: 12px; margin-left: 4px; font-family: 'Cormorant Garamond', serif; }
.nk-result-table tr.nk-next td { background: rgba(74,103,65,0.08); font-weight: 400; }
.nk-result-table tr.nk-next .nk-rk::before { content: '◎ '; color: var(--green); }
.nk-error { color: #B85042; font-size: 13px; text-align: center; margin-top: 8px; }

/* ===== SVC ACTIONS (for card 05) ===== */
.svc-card-multi { cursor: default; }
.svc-card-multi:hover { transform: none; box-shadow: none; }
.svc-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.svc-action-link { font-family: 'Noto Serif JP', serif; font-size: 12px; font-weight: 400; letter-spacing: 2px; color: var(--green); text-decoration: none; padding: 10px 16px; border: 1px solid rgba(74,103,65,0.4); text-align: center; transition: all 0.2s; }
.svc-action-link:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* ===== BACK LINK SECTION ===== */
.back-to-home { text-align: center; padding: 48px 20px; background: var(--cream); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ===== MOBILE MENU ===== */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--brown-dk); transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: rgba(250,250,246,0.98); backdrop-filter: blur(12px); z-index: 99; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: 'Noto Serif JP', serif; font-size: 18px; font-weight: 300; letter-spacing: 5px; color: var(--text); text-decoration: none; padding: 16px 32px; transition: color 0.2s; }
.mobile-menu a:hover { color: var(--green); }
.mobile-menu .m-cta { background: var(--green); color: #fff !important; margin-top: 16px; padding: 16px 40px !important; }

/* ===== TABLET ===== */
@media (max-width: 1024px) {
  .section { padding: 72px 48px; }
  .event-item { grid-template-columns: 180px 1fr auto; column-gap: 20px; padding: 20px 24px; }
  .events-monthly { grid-template-columns: 180px 1fr; column-gap: 20px; padding: 20px 24px; }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .site-header { padding: 0 20px; height: 56px; }
  .header-logo { font-size: 14px; letter-spacing: 2px; }
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .hero { height: 100svh; }
  .hero-title { font-size: clamp(28px, 8vw, 44px); letter-spacing: 6px; }
  .hero-sub { font-size: 13px; letter-spacing: 3px; }
  .hero-scroll { display: none; }
  .info-bar { padding: 16px 20px; gap: 14px; flex-direction: column; align-items: flex-start; }
  .info-bar-sep { display: none; }
  .info-bar-item { gap: 8px; }
  .section { padding: 56px 20px; }
  .news-section { padding: 40px 20px; }
  .news-row { grid-template-columns: 90px 1fr; gap: 12px; padding: 14px 0; }
  .news-row .news-cat { grid-row: 1; grid-column: 2; justify-self: start; margin-bottom: 4px; }
  .news-row .news-headline { grid-column: 1 / -1; font-size: 13px; letter-spacing: 1.5px; line-height: 1.7; }
  .news-head-titles { gap: 12px; }
  .news-head-titles .news-title { font-size: 16px; letter-spacing: 3px; }
  .greeting-grid { grid-template-columns: 1fr; gap: 28px; }
  .greeting-img { aspect-ratio: 16/9; }
  .greeting-text { font-size: 14px; line-height: 2.4; }
  .greeting-stats { gap: 14px; }
  .grounds-slides { aspect-ratio: 4/3; }
  .grounds-slide-info { padding: 36px 20px 20px; }
  .grounds-slide-title { font-size: 18px; letter-spacing: 4px; }
  .grounds-arrow { width: 38px; height: 38px; font-size: 18px; }
  .grounds-arrow-prev { left: 10px; }
  .grounds-arrow-next { right: 10px; }
  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .svc-card { padding: 24px 20px; }
  .event-item { grid-template-columns: 1fr; row-gap: 8px; padding: 20px; }
  .event-date { font-size: 18px; letter-spacing: 1px; }
  .event-name { font-size: 14px; letter-spacing: 2px; }
  .events-monthly { grid-template-columns: 1fr; row-gap: 8px; padding: 20px; }
  .em-date { font-size: 18px; }
  .em-text { font-size: 14px; letter-spacing: 2px; }
  .access-grid { grid-template-columns: 1fr; gap: 28px; }
  .map-box { height: 260px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-desc { font-size: 13px; }
  .cm-val { font-size: 13px; }
  .site-footer { padding: 32px 20px 20px; }
  .footer-top { flex-direction: column; gap: 20px; }
  .footer-links { gap: 12px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer-logo { font-size: 16px; }
}

@media (max-width: 768px) {
  /* Nokotsu page */
  .nokotsu-hero { height: 240px; }
  .nokotsu-hero-title { font-size: 26px; letter-spacing: 6px; }
  .nokotsu-tab { font-size: 11px; padding: 12px 8px; }
  .nokotsu-panel.active { grid-template-columns: 1fr; }
  .nokotsu-panel-img { aspect-ratio: 4/5; max-height: 70vh; }
  .panel-arrow { width: 36px; height: 36px; font-size: 16px; }
  .panel-arrow-prev { left: 8px; }
  .panel-arrow-next { right: 8px; }
  .nokotsu-panel-info { padding: 32px 20px; }
  .nokotsu-panel-price { font-size: 22px; }
  /* Ikimono page */
  .ikimono-slider-wrap { max-width: 100%; }
  .ik-arrow { width: 36px; height: 36px; font-size: 16px; }
  /* Kito page */
  .kito-toc { padding: 24px 20px; }
  .kito-item-body { grid-template-columns: 1fr; gap: 24px; }
  .kito-item-title { font-size: 20px; letter-spacing: 4px; }
  /* Nenkai */
  .nk-table th, .nk-table td { padding: 14px 16px; font-size: 13px; }
  .nk-kaiki { letter-spacing: 3px; }
  .nk-calc { padding: 28px 20px; }
  .nk-field select { min-width: 80px; font-size: 13px; }
}
@media (max-width: 380px) {
  .hero-title { font-size: 26px; letter-spacing: 4px; }
  .sec-title { font-size: 20px; letter-spacing: 4px; }
}
</content>
</invoke>