@charset "utf-8";

/* ==========================================
   1. 共通リセット・全体設定 (Reset & Base)
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
    color: #2b2b2b;
    background-color: #fbfaf5; /* 落ち着いた和紙のような生成り色 */
    line-height: 1.8;
}

a {
    color: inherit;
    text-decoration: none;
}

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


/* ==========================================
   2. 共通ヘッダー・グローバルナビ (Header & Nav)
   ========================================== */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e0d8;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a1a1a;
    letter-spacing: 0.1em;
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.site-nav a {
    font-size: 0.95rem;
    color: #444;
    transition: color 0.2s;
}

.site-nav a:hover {
    color: #b22222; /* 鳥居の朱色アクセント */
}

/* 予約ボタンの強調 */
.nav-btn-reserve {
    background-color: #8b0000;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.nav-btn-reserve:hover {
    background-color: #a52a2a;
}


/* ==========================================
   3. トップページ専用 (Index Page)
   ========================================== */
/* --- ヒーロースライダー --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 65vh;
    min-height: 420px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* 1.5秒かけてふわっと切り替え */
    z-index: 1;
}

/* activeが付いている画像だけ表示 */
.hero-slider .slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-text-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35); /* 写真を引き立たせる暗幕 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-align: center;
    z-index: 10; /* テキストを一番上に */
}
/* .hero-section {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
} */

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-align: center;
}

.hero-title {
    font-size: 3.4rem;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
}

.top-intro-section {
    padding: 60px 0;
    text-align: center;
}

.section-heading {
    text-align: center;
    margin-bottom: 30px;
}

.section-heading h3 {
    font-size: 1.8rem;
    letter-spacing: 0.1em;
}

.heading-en {
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 0.2em;
    margin-top: 4px;
}

.intro-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #555;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.quick-card {
    background: #ffffff;
    border: 1px solid #eae5dc;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.quick-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.quick-card h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #222;
}

.quick-card p {
    font-size: 0.85rem;
    color: #777;
}

/* ==========================================
     奈古神社について about.html
   ========================================== */
.sub-title {
    margin-top: 1rem;
}
.note {
    display: flex;
    background: #fff;
    padding: 7px;
    border: 2px solid #eae5dc;
    margin-block: 10px 20px;
    width: 80%;
}

.legend-card,
.history-block {
    margin-left: 2rem; 
}
.shintoku-tags {
   margin: 0.5rem 0 0.5rem 2rem;
}


/* ==========================================
   4. ご祈願・カード用スタイル (Prayer Section)
   ========================================== */
/* --- トップページ 4枚カードの横並び設定 --- */
.top-nav-cards-section {
    padding: 50px 0 80px;
}

.top-cards-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PCで綺麗に4等分 */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.quick-card {
    background: #ffffff;
    border: 1px solid #eae5dc;
    border-radius: 8px;
    padding: 30px 15px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.quick-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: #8b0000;
}

.quick-card h4 {
    font-size: 1.1rem;
    color: #222222;
    margin-bottom: 8px;
    font-weight: bold;
}

.quick-card p {
    font-size: 0.8rem;
    color: #777777;
    line-height: 1.5;
    margin: 0;
}

/*==============================================
    祖霊殿　soreiden.html
  ==============================================*/
  .title {
    margin-top: 20px; 
    margin-bottom: 5px ;
  }

  p.explain {
    margin-left: 20px;
    text-indent: 1rem;
  }

  .price {
    width: 540.469px;
    border: solid thin silver;
  }

  table {
    margin-left: 40px;
    margin-bottom: 10px;
    width: 80%;

  }

  table th {
    text-align: center;
  }

  table td {
    padding: 2px 3px;
  }
  
  table,
  table th,
  table tr,
  table td {
    border: solid thin silver;
    border-collapse: collapse;
  }

.attention {
  text-align: center;
  color: #2b2b2b;
}

/* 画面幅に応じたレスポンシブ対応 */
@media (max-width: 992px) {
    .top-cards-grid-4 {
        grid-template-columns: repeat(2, 1fr); /* タブレットは2列×2段 */
    }
}

ul, li {
  padding-left: 0;
  list-style: none;
}

@media (max-width: 576px) {
    .top-cards-grid-4 {
        grid-template-columns: 1fr; /* スマホは1列 */
    }
}
/* --- YouTube動画セクション --- */
.video-section {
    padding: 40px 20px 60px;
}

/* スマホでもPCでも崩れない16:9のアスペクト比保持ラッパー */
.youtube-responsive-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 の比率 (9 / 16 = 56.25%) */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    background: #000;
}

.youtube-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================
   5. 共通フッター (Footer)
   ========================================== */
.site-footer {
    background-color: #222222;
    color: #e0e0e0;
    padding: 40px 0 20px;
    margin-top: 80px;
    text-align: center;
}

.footer-info p {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.footer-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px !important;
}

.copyright {
    margin-top: 30px;
    font-size: 0.75rem;
    color: #888;
}
