/* ===========================
   豊栄稲荷神社 デモサイト — style.css
   カラー・ナビ構成は公式サイト（toyosakainari.com）を継承
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;600&family=Noto+Sans+JP:wght@300;400;500&display=swap');

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

:root {
  /* 公式サイトの実測カラーをそのまま使用 */
  --purple:    #542c5b;   /* ボタン・見出しアクセント（公式ボタンカラー） */
  --purple-dk: #54004a;   /* サブメニュー背景（公式ドロップダウンカラー） */
  --purple-lt: #7a4f85;
  --orange:    #f47703;   /* スライダー矢印・差し色 */
  --bg:        #ffffff;
  --bg2:       #faf7f4;
  --bg3:       #f2ebe5;
  --dark:      #151515;   /* 公式モバイルメニュー背景色 */
  --text:      #2c2c2c;   /* 公式dividerカラーから */
  --text2:     #5a5a5a;
  --border:    rgba(84, 44, 91, 0.15);
  --radius:    4px;
  --white:     #ffffff;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--purple); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── ヘッダー ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--purple-dk);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.header-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 2px;
}
.header-logo .tagline {
  font-size: 0.58rem;
  color: var(--purple);
  letter-spacing: 0.16em;
}
.header-logo .name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.1em;
}

nav.pc-nav { display: none; }
nav.pc-nav a {
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  transition: color 0.2s;
}
nav.pc-nav a:hover { color: var(--purple); }
nav.pc-nav a.nav-cta {
  background: var(--purple);
  color: var(--white);
  border-radius: var(--radius);
  padding: 7px 14px;
}
nav.pc-nav a.nav-cta:hover { background: var(--purple-dk); color: var(--white); }

/* ── ハンバーガー ── */
.hamburger {
  background: none; border: none; cursor: pointer;
  padding: 8px; display: flex; flex-direction: column; gap: 5px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── モバイルメニュー（公式の #151515 に合わせた暗色） ── */
.mobile-menu {
  position: fixed; top: 64px; left: 0; right: 0;
  background: var(--dark);
  z-index: 99; max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
}
.mobile-menu.open { max-height: 400px; }
.mobile-menu a {
  display: block; padding: 16px 24px; color: #c0c0c0;
  font-size: 0.9rem; letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255,255,255,0.08); transition: color 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--white); }
.mobile-menu a.nav-cta-sp {
  background: var(--purple);
  color: var(--white);
  text-align: center;
}

/* ── フローティングCTA ── */
.fixed-cta {
  display: flex; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 98; height: 56px;
}
.fixed-cta a {
  flex: 1; display: flex; align-items: center;
  justify-content: center; gap: 6px;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em;
}
.fixed-cta .cta-pray { background: var(--purple); color: var(--white); }
.fixed-cta .cta-pray:hover { background: var(--purple-dk); }
.fixed-cta .cta-tel { background: var(--dark); color: var(--white); }
.fixed-cta .cta-tel:hover { background: #2a2a2a; }

main { padding-top: 64px; padding-bottom: 60px; }

/* ── ヒーロー ── */
.hero {
  min-height: 92svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 60px 24px 80px;
  background: linear-gradient(170deg, #f8f4f0 0%, #f0e8e0 50%, #e8ddd5 100%);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
/* 公式サイトの稲荷らしい幾何紋をイメージした背景パターン */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Crect x='25' y='2' width='10' height='10' fill='none' stroke='%23542c5b' stroke-width='0.6' opacity='0.12'/%3E%3Crect x='25' y='48' width='10' height='10' fill='none' stroke='%23542c5b' stroke-width='0.6' opacity='0.12'/%3E%3Crect x='2' y='25' width='10' height='10' fill='none' stroke='%23542c5b' stroke-width='0.6' opacity='0.12'/%3E%3Crect x='48' y='25' width='10' height='10' fill='none' stroke='%23542c5b' stroke-width='0.6' opacity='0.12'/%3E%3C/svg%3E") center/120px repeat;
}
.hero-eyecatch {
  font-size: 0.65rem; letter-spacing: 0.3em; color: var(--purple);
  margin-bottom: 20px; position: relative;
}
.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.9rem, 6.5vw, 3rem); font-weight: 300;
  letter-spacing: 0.18em; line-height: 1.4; color: var(--text);
  margin-bottom: 12px; position: relative;
}
.hero-tagline {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(0.95rem, 3.2vw, 1.2rem);
  color: var(--purple); letter-spacing: 0.22em;
  margin-bottom: 8px; position: relative;
}
.hero-sub {
  font-size: 0.72rem; color: var(--text2);
  letter-spacing: 0.15em; margin-bottom: 40px; position: relative;
}
.hero-rule {
  width: 40px; height: 2px; background: var(--purple);
  margin: 0 auto 36px; position: relative;
}
.hero-desc {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(0.92rem, 3vw, 1.1rem); color: var(--text);
  letter-spacing: 0.06em; line-height: 2.1;
  margin-bottom: 44px; position: relative;
  max-width: 480px;
}
.hero-btns {
  display: flex; flex-direction: column; gap: 12px;
  width: 100%; max-width: 300px; position: relative;
}

/* ── ボタン ── */
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 24px; background: var(--purple); color: var(--white);
  border-radius: var(--radius); font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.06em; transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--purple-dk); transform: translateY(-1px); color: var(--white); }
.btn-secondary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; background: transparent; color: var(--purple);
  border: 1px solid var(--purple); border-radius: var(--radius);
  font-size: 0.88rem; letter-spacing: 0.06em; transition: all 0.2s;
}
.btn-secondary:hover { background: var(--purple); color: var(--white); }

/* ── セクション共通 ── */
section { padding: 64px 24px; }
section:nth-child(even) { background: var(--bg2); }

.section-label {
  font-size: 0.62rem; letter-spacing: 0.3em; color: var(--purple);
  text-transform: uppercase; margin-bottom: 8px;
}
.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.35rem, 4vw, 1.85rem); font-weight: 400;
  letter-spacing: 0.12em; margin-bottom: 12px; color: var(--text);
}
.section-rule {
  width: 32px; height: 2px; background: var(--purple); margin: 0 0 32px;
}
.section-desc { color: var(--text2); font-size: 0.87rem; line-height: 1.9; margin-bottom: 32px; }

/* ── お知らせリスト ── */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.news-item:first-child { border-top: 1px solid var(--border); }
.news-date { color: var(--text2); white-space: nowrap; font-size: 0.78rem; min-width: 90px; padding-top: 2px; }
.news-new {
  font-size: 0.65rem; background: var(--orange); color: var(--white);
  padding: 2px 7px; border-radius: 2px; white-space: nowrap; align-self: flex-start;
  margin-top: 3px;
}
.news-title { color: var(--text); line-height: 1.6; }

/* ── 3カラムカード ── */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card {
  background: var(--bg3); border: 1px solid var(--border);
  border-top: 3px solid var(--purple);
  border-radius: var(--radius); padding: 24px 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--purple); transform: translateY(-2px); }
.card .icon { font-size: 1.6rem; margin-bottom: 12px; }
.card h3 {
  font-family: 'Noto Serif JP', serif; font-size: 1rem;
  letter-spacing: 0.08em; margin-bottom: 8px; color: var(--purple);
}
.card p { font-size: 0.82rem; color: var(--text2); line-height: 1.7; }
.card .link-more {
  display: inline-block; margin-top: 12px; font-size: 0.78rem;
  color: var(--purple); border-bottom: 1px solid var(--border); padding-bottom: 2px;
}

/* ── 御祈祷の流れ ── */
.flow-list { display: flex; flex-direction: column; }
.flow-item {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 22px 0; border-bottom: 1px solid var(--border);
}
.flow-item:last-child { border-bottom: none; }
.flow-num {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--purple); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Serif JP', serif; font-size: 0.85rem; flex-shrink: 0;
}
.flow-content h3 { font-size: 0.95rem; letter-spacing: 0.06em; margin-bottom: 4px; color: var(--text); }
.flow-content .ruby { font-size: 0.72rem; color: var(--purple); letter-spacing: 0.04em; margin-bottom: 4px; }
.flow-content p { font-size: 0.82rem; color: var(--text2); line-height: 1.7; }

/* ── インフォバナー ── */
.info-box {
  background: var(--bg3); border: 1px solid var(--border);
  border-left: 4px solid var(--purple); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 28px;
  font-size: 0.86rem; line-height: 1.9; color: var(--text2);
}
.info-box strong { color: var(--text); }

/* ── 御祈祷種別テーブル ── */
.pray-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.pray-table th {
  background: var(--purple); color: var(--white);
  padding: 10px 14px; text-align: left; font-weight: 400;
  letter-spacing: 0.06em; font-size: 0.78rem;
}
.pray-table td {
  padding: 13px 14px; border-bottom: 1px solid var(--border);
  color: var(--text2); vertical-align: top; line-height: 1.6;
}
.pray-table tr:last-child td { border-bottom: none; }
.pray-table td:first-child { color: var(--text); font-weight: 500; }
.pray-table tr:nth-child(even) td { background: var(--bg2); }

/* ── アクセス ── */
.access-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.access-table tr { border-bottom: 1px solid var(--border); }
.access-table tr:first-child { border-top: 1px solid var(--border); }
.access-table th {
  width: 80px; padding: 14px 12px; text-align: left;
  font-size: 0.75rem; color: var(--purple); font-weight: 400;
  letter-spacing: 0.08em; vertical-align: top; background: var(--bg3);
}
.access-table td { padding: 14px 12px; font-size: 0.87rem; line-height: 1.7; }

.btn-map {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 0.87rem;
  letter-spacing: 0.04em; transition: all 0.2s;
}
.btn-map:hover { border-color: var(--purple); color: var(--purple); }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.faq-q {
  padding: 16px 20px; display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer; transition: background 0.2s; background: var(--bg3);
}
.faq-q:hover { background: var(--bg2); }
.faq-q .q-mark {
  font-family: 'Noto Serif JP', serif; color: var(--purple);
  font-size: 1rem; flex-shrink: 0; line-height: 1.5;
}
.faq-q .q-text { font-size: 0.88rem; line-height: 1.6; }
.faq-a {
  padding: 0 20px 16px 44px; font-size: 0.82rem;
  color: var(--text2); line-height: 1.8; display: none;
  background: var(--bg);
}
.faq-item.open .faq-a { display: block; }

/* ── ページヒーロー ── */
.page-hero {
  padding: 56px 24px 36px; text-align: center;
  background: linear-gradient(170deg, #f8f4f0 0%, #ede5e0 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero .section-label { display: block; }
.page-hero .section-title { font-size: clamp(1.55rem, 5vw, 2.1rem); }

/* ── CTAセクション ── */
.cta-section {
  background: var(--purple-dk); padding: 48px 24px; text-align: center;
}
.cta-section .cta-lead {
  color: rgba(255,255,255,0.75); font-size: 0.72rem;
  letter-spacing: 0.22em; margin-bottom: 10px;
}
.cta-section h2 {
  font-family: 'Noto Serif JP', serif; color: var(--white);
  font-size: clamp(1.1rem, 4vw, 1.5rem); font-weight: 300;
  letter-spacing: 0.12em; margin-bottom: 24px;
}
.cta-section .btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--purple-dk);
  padding: 14px 28px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.04em;
  transition: opacity 0.2s;
}
.cta-section .btn-white:hover { opacity: 0.9; }

/* ── フッター ── */
footer {
  background: var(--dark); color: rgba(255,255,255,0.6);
  padding: 40px 24px 80px; text-align: center;
}
.footer-name {
  font-family: 'Noto Serif JP', serif; font-size: 1rem;
  color: var(--white); letter-spacing: 0.14em; margin-bottom: 4px;
}
.footer-tagline { font-size: 0.7rem; color: rgba(255,255,255,0.5); letter-spacing: 0.16em; margin-bottom: 20px; }
.footer-tel { font-size: 1.1rem; color: var(--white); letter-spacing: 0.06em; margin-bottom: 6px; }
.footer-address { font-size: 0.78rem; line-height: 1.7; margin-bottom: 24px; }
.footer-note { font-size: 0.68rem; color: rgba(255,255,255,0.35); margin-top: 28px; line-height: 1.7; }

/* ── PC対応 ── */
@media (min-width: 768px) {
  .hamburger { display: none; }
  nav.pc-nav { display: flex; align-items: center; gap: 2px; }
  .fixed-cta { display: none; }
  main { padding-bottom: 0; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-btns { flex-direction: row; max-width: 480px; }
  .hero-btns a { flex: 1; }
  section { padding: 80px 5vw; }
  .section-inner { max-width: 880px; margin: 0 auto; }
  footer { padding-bottom: 48px; }
}
@media (min-width: 1024px) {
  section { padding: 96px 0; }
  .section-inner { max-width: 840px; margin: 0 auto; padding: 0 40px; }
  .page-hero { padding: 72px 40px 48px; }
}
