/* =============================================
   奥田神社 共通スタイル
   - 高齢者・初参拝者向け：大文字・高コントラスト・余白重視
   ============================================= */

/* --- CSS 変数 --- */
:root {
  --green:      #2a5230;
  --green-dk:   #1b3820;
  --green-lt:   #e8f0e9;
  --gold:       #8a6820;
  --gold-lt:    #f0e8d4;
  --bg:         #faf8f4;
  --white:      #ffffff;
  --text:       #1a1a1a;
  --text-sub:   #4a4a3a;
  --border:     #c8c0b0;
  --radius:     8px;
  --shadow:     0 2px 10px rgba(0,0,0,.10);
  --max-w:      700px;
}

/* --- リセット --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 18px; /* 高齢者向けに大きめ */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Noto Serif JP', 'Yu Mincho', 'YuMincho', '游明朝', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  min-height: 100vh;
}

a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- 中央寄せラッパー --- */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* =============================================
   ヘッダー・ナビゲーション
   ハンバーガーなし — 常時表示でシンプルに
   ============================================= */

.site-header {
  background: var(--green-dk);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.2rem .8rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.site-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: #fff;
  text-align: center;
  line-height: 1.4;
}
.site-title small {
  display: block;
  font-size: .6rem;
  font-weight: 400;
  letter-spacing: .25em;
  color: #c8d8c8;
  margin-top: .15rem;
}

/* ナビ — 常時表示、2列グリッド（スマホ） */
.site-nav {
  background: var(--green);
  border-top: 1px solid rgba(255,255,255,.15);
}
.site-nav ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--max-w);
  margin: 0 auto;
}
.site-nav li a {
  display: block;
  text-align: center;
  padding: .75rem .5rem;
  color: #e8f0e8;
  font-size: .82rem;
  letter-spacing: .06em;
  border-right: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: background .15s;
}
.site-nav li:nth-child(even) a { border-right: none; }
.site-nav li:nth-child(3) a,
.site-nav li:nth-child(4) a { border-bottom: none; }
.site-nav li a:hover,
.site-nav li a.current {
  background: rgba(255,255,255,.15);
  color: #f0e8c8;
}

/* =============================================
   ヒーロー（トップのみ）
   ============================================= */

.hero {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 3rem 1.2rem 2.5rem;
}

.hero-crest {
  font-size: 3rem;
  margin-bottom: .75rem;
  opacity: .85;
  display: block;
}

.hero-name {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.3;
}
.hero-ruby {
  display: block;
  font-size: .72rem;
  letter-spacing: .28em;
  color: #b8d0b8;
  margin-top: .3rem;
  font-weight: 400;
}

.hero-line {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--gold);
  margin: 1.5rem auto 1.2rem;
}

.hero-tagline {
  font-size: 1rem;
  color: rgba(255,255,255,.88);
  letter-spacing: .06em;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* CTAボタン — 大きく・目立つ */
.hero-btns {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  max-width: 320px;
  margin: 0 auto;
}

.btn {
  display: block;
  text-align: center;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  transition: opacity .15s;
  line-height: 1.4;
}
.btn:hover { opacity: .88; }

.btn-primary {
  background: #fff;
  color: var(--green);
  border: 2px solid #fff;
}
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.7);
}

/* =============================================
   共通セクション
   ============================================= */

.section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.section:last-child { border-bottom: none; }

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .1em;
  margin-bottom: 1.4rem;
  padding-bottom: .65rem;
  border-bottom: 2px solid var(--green-lt);
  display: flex;
  align-items: center;
  gap: .55rem;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
}

/* =============================================
   ご祈祷カテゴリ一覧（トップ）
   ============================================= */

.kito-simple {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
}
.kito-simple-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem .75rem;
  text-align: center;
  font-size: .88rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .06em;
  box-shadow: var(--shadow);
}
.kito-simple-item span {
  display: block;
  font-size: 1.3rem;
  margin-bottom: .3rem;
}

/* =============================================
   予約バナー（重要）
   ============================================= */

.reservation-banner {
  background: #fff8e8;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.2rem 1.1rem;
  margin: .5rem 0 1.2rem;
}
.reservation-banner p {
  font-size: .9rem;
  line-height: 1.85;
  color: #5a3a00;
}
.reservation-banner strong {
  font-size: 1rem;
  display: block;
  color: #3a2000;
  margin-bottom: .4rem;
}

/* =============================================
   ページヒーロー（サブページ共通）
   ============================================= */

.page-hero {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 2rem 1.2rem 1.75rem;
}
.page-hero-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .16em;
}
.page-hero-sub {
  font-size: .72rem;
  letter-spacing: .22em;
  color: #b8d0b8;
  margin-top: .4rem;
}

/* パンくず */
.breadcrumb {
  font-size: .78rem;
  color: var(--text-sub);
  padding: .75rem 1.2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  letter-spacing: .04em;
}
.breadcrumb a { color: var(--green); text-decoration: underline; }
.breadcrumb span { margin: 0 .35em; }

/* =============================================
   ステップリスト（参拝・ご祈祷の流れ）
   ============================================= */

.step-list { counter-reset: step-c; }

.step-item {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px dashed var(--border);
  align-items: flex-start;
}
.step-item:first-child { border-top: 1px dashed var(--border); }

.step-num {
  counter-increment: step-c;
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 700;
  margin-top: .1rem;
}
.step-num::before { content: counter(step-c); }

.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: .35rem;
  letter-spacing: .05em;
}
.step-desc {
  font-size: .88rem;
  color: var(--text-sub);
  line-height: 1.85;
}

/* =============================================
   よくある質問（アコーディオン・CSS only）
   ============================================= */

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-item input[type="checkbox"] { display: none; }

.faq-label {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: 1.1rem 0;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  user-select: none;
  line-height: 1.6;
}
.faq-q {
  flex-shrink: 0;
  width: 1.6em;
  height: 1.6em;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  margin-top: .1rem;
}
.faq-arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--text-sub);
  font-size: .8rem;
  padding-top: .2rem;
  transition: transform .2s;
}
.faq-answer {
  display: none;
  padding: .2rem 0 1.1rem 2.3rem;
  font-size: .9rem;
  color: var(--text-sub);
  line-height: 1.9;
}
.faq-a {
  font-weight: 700;
  color: var(--gold);
  margin-right: .4em;
}
.faq-item input:checked ~ .faq-label .faq-arrow { transform: rotate(180deg); }
.faq-item input:checked ~ .faq-answer { display: block; }

/* =============================================
   注意書きボックス
   ============================================= */

.note-box {
  background: var(--green-lt);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.1rem;
  font-size: .88rem;
  line-height: 1.85;
  color: var(--text-sub);
  margin: 1rem 0;
}
.note-box strong {
  display: block;
  color: var(--green);
  margin-bottom: .35rem;
  font-size: .92rem;
}

/* =============================================
   ご祈祷種類カード（prayer.html）
   ============================================= */

.prayer-list {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.prayer-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
}
.prayer-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 2.6rem;
  text-align: center;
}
.prayer-body {}
.prayer-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .06em;
  margin-bottom: .2rem;
}
.prayer-who {
  font-size: .82rem;
  color: var(--text-sub);
  line-height: 1.7;
}

/* 料金ボックス */
.price-box {
  background: var(--green);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.4rem;
  text-align: center;
  margin: 1.2rem 0;
}
.price-box p { font-size: .82rem; color: rgba(255,255,255,.75); margin-bottom: .4rem; }
.price-box strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: #f0e8b8;
}
.price-box small {
  display: block;
  font-size: .76rem;
  color: rgba(255,255,255,.65);
  margin-top: .4rem;
  line-height: 1.7;
}

/* =============================================
   アクセス
   ============================================= */

.address-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem;
  margin-bottom: 1.3rem;
  box-shadow: var(--shadow);
  font-size: .95rem;
  line-height: 2;
}
.address-label {
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--text-sub);
  margin-bottom: .3rem;
}
.address-main {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .03em;
}

/* 地図 */
.map-wrap {
  position: relative;
  width: 100%;
  padding-top: 65%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1.4rem;
  border: 1px solid var(--border);
}
.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* アクセス方法リスト */
.access-items {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.access-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  box-shadow: var(--shadow);
}
.access-item-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.access-item-body strong {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: .25rem;
}
.access-item-body span {
  font-size: .88rem;
  color: var(--text-sub);
  line-height: 1.8;
}

/* 電話 */
.tel-box {
  background: var(--green);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem;
  text-align: center;
  margin: 1.2rem 0;
}
.tel-box p { font-size: .82rem; color: rgba(255,255,255,.75); margin-bottom: .5rem; }
.tel-box a {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: #f0e8b8;
  letter-spacing: .04em;
}
.tel-box small {
  display: block;
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  margin-top: .45rem;
  line-height: 1.7;
}

/* Googleマップリンクボタン */
.map-link-btn {
  display: block;
  text-align: center;
  background: var(--white);
  border: 2px solid var(--green);
  color: var(--green);
  border-radius: var(--radius);
  padding: .9rem;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

/* =============================================
   フッター
   ============================================= */

.site-footer {
  background: var(--green-dk);
  color: rgba(255,255,255,.75);
  text-align: center;
  padding: 2.2rem 1.2rem 2rem;
  margin-top: 3rem;
  font-size: .82rem;
  line-height: 2;
}
.footer-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .14em;
  margin-bottom: .4rem;
}
.footer-line {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  margin: .85rem auto;
}
.footer-tel a {
  color: #c8e0c8;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: underline;
}
.footer-copy {
  font-size: .7rem;
  color: rgba(255,255,255,.35);
  margin-top: .8rem;
}

/* =============================================
   テーブル（汎用）
   ============================================= */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  margin-top: .5rem;
}
.data-table th,
.data-table td {
  padding: .8rem .9rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}
.data-table th {
  background: var(--green);
  color: #fff;
  font-weight: 600;
  letter-spacing: .06em;
  white-space: nowrap;
  width: 8em;
}
.data-table tr:nth-child(even) td { background: rgba(0,0,0,.02); }

/* =============================================
   ページリンクボタン（汎用）
   ============================================= */

.page-link-btn {
  display: block;
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin: .6rem 0;
  box-shadow: var(--shadow);
}
.page-link-btn:hover { opacity: .88; }

/* =============================================
   レスポンシブ（タブレット以上）
   ============================================= */

@media (min-width: 600px) {
  html { font-size: 18px; }

  .site-nav ul {
    grid-template-columns: repeat(4, 1fr);
  }
  .site-nav li a {
    border-bottom: none;
    padding: .7rem 1rem;
    font-size: .85rem;
  }
  .site-nav li:nth-child(3) a,
  .site-nav li:nth-child(4) a { border-bottom: none; }

  .hero-name  { font-size: 2.4rem; }
  .hero-btns  { flex-direction: row; justify-content: center; max-width: none; }
  .btn        { min-width: 220px; }

  .kito-simple      { grid-template-columns: repeat(3, 1fr); }
  .prayer-list      { display: grid; grid-template-columns: 1fr 1fr; }
}
