/* ===========================
   最勝寺 デモサイト — style.css
   =========================== */

@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 {
  --bg:        #faf8f3;
  --bg2:       #f2ebe0;
  --bg3:       #e8dfd0;
  --gold:      #9e7a3a;
  --gold-lt:   #c9a06a;
  --text:      #1e1a14;
  --text2:     #6b5f4e;
  --white:     #ffffff;
  --red:       #7a1515;
  --border:    rgba(158,122,58,0.2);
  --radius:    6px;
}

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(--gold); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── ヘッダー ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,248,243,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.header-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.header-logo .en { font-size: 0.65rem; color: var(--text2); letter-spacing: 0.12em; }
.header-logo .ja { font-family: 'Noto Serif JP', serif; font-size: 1rem; color: var(--text); letter-spacing: 0.1em; }

/* ── PCナビ ── */
nav.pc-nav {
  display: none;
}
nav.pc-nav a {
  color: var(--text2);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  transition: color 0.2s;
}
nav.pc-nav a:hover { color: var(--gold); }

/* ── ハンバーガーボタン ── */
.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); }

/* ── スライドダウンメニュー ── */
.mobile-menu {
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  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: var(--text);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { background: var(--bg3); color: var(--gold); }

/* ── フローティングCTA（スマホ固定下部） ── */
.fixed-cta {
  display: flex;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 98;
  height: 58px;
}
.fixed-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.fixed-cta .cta-tel { background: var(--red); color: var(--white); }
.fixed-cta .cta-tel:hover { background: #a01f1f; }
.fixed-cta .cta-form { background: var(--gold); color: var(--white); }
.fixed-cta .cta-form:hover { background: var(--gold-lt); }

/* ── メインコンテンツ余白 ── */
main { padding-top: 60px; padding-bottom: 72px; }

/* ── ヒーローセクション ── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 100px;
  background:
    linear-gradient(160deg, #faf5ec 0%, #f5ede0 40%, #ede3d4 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='120' height='120' viewBox='0 0 120 120'%3E%3Ccircle cx='60' cy='60' r='50' stroke='%239e7a3a' stroke-width='1' fill='none' opacity='0.08'/%3E%3Ccircle cx='60' cy='60' r='35' stroke='%239e7a3a' stroke-width='1' fill='none' opacity='0.05'/%3E%3C/svg%3E") center/280px repeat;
  opacity: 0.5;
}
.hero-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 16px;
  position: relative;
}
.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 12px;
  position: relative;
}
.hero-sub {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: var(--text2);
  letter-spacing: 0.1em;
  margin-bottom: 40px;
  position: relative;
}
.hero-divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 40px;
  position: relative;
}
.hero-catch {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  color: var(--text);
  letter-spacing: 0.08em;
  line-height: 2;
  margin-bottom: 48px;
  position: relative;
}
.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 320px;
  position: relative;
}
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #a01f1f; transform: translateY(-1px); color: var(--white); }
.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 24px;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--gold); color: var(--bg); }

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

.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.section-desc {
  color: var(--text2);
  font-size: 0.9rem;
  line-height: 1.9;
  margin-bottom: 36px;
}
.section-divider {
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin: 0 0 36px;
}

/* ── お困りですか？カード ── */
.concern-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.concern-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: border-color 0.2s;
}
.concern-card:hover { border-color: var(--gold); }
.concern-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
}
.concern-card h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.concern-card p {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.7;
}

/* ── できること（3カラム） ── */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.service-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.service-card .icon { font-size: 2.2rem; margin-bottom: 14px; }
.service-card h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  color: var(--gold-lt);
}
.service-card p { font-size: 0.82rem; color: var(--text2); line-height: 1.7; }
.service-card .link-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}

/* ── ご相談の流れ ── */
.flow-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.flow-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.flow-item:last-child { border-bottom: none; }
.flow-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif JP', serif;
  font-size: 0.85rem;
  color: var(--gold);
  flex-shrink: 0;
}
.flow-content h3 {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.flow-content p { font-size: 0.82rem; color: var(--text2); }

/* ── お寺の紹介 ── */
.about-body {
  font-size: 0.9rem;
  line-height: 2;
  color: var(--text2);
  margin-bottom: 24px;
}
.about-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.data-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.data-item .label {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.data-item .value {
  font-size: 0.88rem;
  color: var(--text);
}

/* ── アクセスセクション ── */
.access-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}
.access-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.access-row:last-child { border-bottom: none; }
.access-row .label {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  min-width: 50px;
  padding-top: 2px;
}
.access-row .val {
  font-size: 0.88rem;
  line-height: 1.7;
}
.btn-map {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  transition: border-color 0.2s;
}
.btn-map:hover { border-color: var(--gold); color: var(--gold); }

/* ── ページヒーロー（内部ページ用） ── */
.page-hero {
  padding: 60px 24px 40px;
  text-align: center;
  background: linear-gradient(160deg, #faf5ec 0%, #ede3d4 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero .section-label { justify-content: center; display: block; }
.page-hero .section-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.faq-q:hover { background: rgba(201,160,106,0.05); }
.faq-q .q-mark {
  font-family: 'Noto Serif JP', serif;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1.6;
}
.faq-q .q-text { font-size: 0.9rem; line-height: 1.6; }
.faq-a {
  padding: 0 20px 18px 20px;
  padding-left: 44px;
  font-size: 0.83rem;
  color: var(--text2);
  line-height: 1.8;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* ── 法要テーブル ── */
.hoyo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.hoyo-table th {
  background: var(--bg3);
  color: var(--gold);
  padding: 12px 14px;
  text-align: left;
  font-weight: 400;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
}
.hoyo-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
  vertical-align: top;
  line-height: 1.6;
}
.hoyo-table tr:last-child td { border-bottom: none; }
.hoyo-table td:first-child { color: var(--text); font-size: 0.92rem; }

/* ── フッター ── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px 24px 80px;
  text-align: center;
}
.footer-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: var(--text);
  margin-bottom: 6px;
}
.footer-sub {
  font-size: 0.72rem;
  color: var(--text2);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.footer-tel {
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.footer-address {
  font-size: 0.78rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 24px;
}
.footer-note {
  font-size: 0.7rem;
  color: var(--text2);
  margin-top: 28px;
}

/* ── PC対応（768px以上） ── */
@media (min-width: 768px) {
  .hamburger { display: none; }
  nav.pc-nav { display: flex; gap: 4px; }
  .fixed-cta { display: none; }
  main { padding-bottom: 0; }

  .concern-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(3, 1fr); }

  .hero-btns {
    flex-direction: row;
    max-width: 500px;
  }
  .hero-btns a { flex: 1; }

  section { padding: 80px 5vw; }
  .section-inner { max-width: 900px; margin: 0 auto; }

  footer { padding-bottom: 48px; }
}

@media (min-width: 1024px) {
  section { padding: 100px 0; }
  .section-inner { max-width: 860px; margin: 0 auto; padding: 0 40px; }
  .page-hero { padding: 80px 40px 56px; }
}
