/* 圓通寺 仮LP 共通スタイル */
:root {
  --ground: #F5F1E8;
  --paper: #FFFDF8;
  --sand: #EDE6D7;
  --ink: #22201C;
  --text: #3A342D;
  --muted: #5E564A;
  --line: #E2D9C6;
  --rule: #D8CDB6;
  --accent: #8A3324;
  --accent-dark: #6B2519;
  --ph: #E6DFD0;
  --ph-line: #B9AE98;
  --mincho: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --gothic: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 17px;
  line-height: 1.9;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.section { padding: 64px 0; }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }

.section-label { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 10px; }
.section-title { font-family: var(--mincho); font-size: clamp(24px, 3.2vw, 34px); line-height: 1.55; margin-bottom: 28px; }
.lead { color: var(--text); margin-bottom: 28px; }
.note { font-size: 14px; line-height: 1.8; color: var(--muted); }
.draft { font-size: 13px; color: var(--muted); }
.stack > * + * { margin-top: 1em; }

/* 写真プレースホルダー */
.ph {
  background: var(--ph);
  border: 1px dashed var(--ph-line);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 16px;
  color: var(--muted); font-size: 14px; line-height: 1.7;
}

/* ボタン */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 56px; padding: 6px 28px; border-radius: 8px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-size: 17px; font-weight: 700; line-height: 1.4; border: 0; font-family: inherit; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn small { font-size: 12px; font-weight: 400; }
.btn--outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(245, 241, 232, 0.96); border-bottom: 1px solid var(--line); }
.site-header .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; flex-direction: column; line-height: 1.2; color: var(--ink); text-decoration: none; }
.brand small { font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }
.brand span { font-family: var(--mincho); font-size: 21px; font-weight: 700; letter-spacing: 0.12em; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-tel { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.header-tel .icon { width: 44px; height: 44px; border: 1px solid #CFC4AE; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.header-tel .num { display: none; line-height: 1.3; }
.header-tel .num strong { display: block; font-size: 19px; letter-spacing: 0.04em; }
.header-tel .num small { font-size: 12px; color: var(--muted); }
.header-cta { display: none; min-height: 48px; padding: 4px 22px; font-size: 15px; }

/* ヒーロー */
.hero { padding: 24px 0 56px; }
.hero .wrap { display: grid; gap: 28px; }
.hero-photo { min-height: 240px; }
.hero-kicker { font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: 0.06em; margin-bottom: 14px; }
.hero h1 { font-family: var(--mincho); font-size: clamp(32px, 4.8vw, 54px); line-height: 1.4; letter-spacing: 0.04em; margin-bottom: 20px; }
.hero-sub { color: var(--text); margin-bottom: 12px; }
.hero-meta { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.hero-actions { display: none; gap: 12px; flex-wrap: wrap; }

/* こんな方へ */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; line-height: 1.7; }
.checks svg { flex-shrink: 0; margin-top: 3px; }

/* 意味がわかる葬儀 */
.features { display: grid; gap: 14px; margin-top: 8px; }
.feature { padding: 22px; background: var(--ground); border-radius: 10px; }
.feature-num { font-family: var(--mincho); color: var(--accent); font-size: 15px; margin-bottom: 6px; }
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: 16px; line-height: 1.85; color: var(--text); }

/* 葬儀の流れ */
.flow { list-style: none; margin: 0 0 24px; padding: 0; }
.flow li { display: flex; gap: 16px; padding-bottom: 24px; position: relative; }
.flow li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 1px; background: var(--rule); }
.flow-num { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--mincho); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.flow h3 { margin-bottom: 4px; }
.flow h3 small { font-size: 13px; font-weight: 400; color: var(--muted); }
.flow p { font-size: 16px; line-height: 1.85; color: var(--text); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* 会場 */
.venues { display: grid; gap: 12px; margin-bottom: 28px; }
.venue { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.venue h3 { font-size: 17px; margin-bottom: 4px; }
.venue p { font-size: 15px; line-height: 1.8; color: var(--text); }
.temple-box { padding: 24px 20px; background: var(--ground); border-radius: 10px; display: grid; gap: 18px; }
.temple-box h3 { font-family: var(--mincho); font-size: 21px; }
.temple-box .ph { min-height: 180px; }
.spec { margin: 0; border-top: 1px solid var(--rule); }
.spec div { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.spec dt { width: 96px; flex-shrink: 0; font-size: 14px; font-weight: 700; line-height: 1.7; }
.spec dd { margin: 0; font-size: 15px; line-height: 1.7; }

/* 僧侶紹介 */
.priest { display: grid; gap: 20px; }
.priest + .priest { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--rule); }
.priest .ph { min-height: 300px; }
.priest--sub .ph { min-height: 240px; }
.priest-role { font-size: 14px; color: var(--muted); }
.priest-name { font-family: var(--mincho); font-size: 24px; font-weight: 700; line-height: 1.5; }
.priest-name small { font-family: var(--gothic); font-size: 14px; font-weight: 400; color: var(--muted); }
.priest-career { font-size: 15px; color: var(--muted); }
.priest h3 { font-family: var(--mincho); font-size: 22px; line-height: 1.6; margin-top: 8px; }
.priest .message p { line-height: 2; color: var(--text); }

/* お布施 */
.promise { padding: 20px; background: var(--ground); border-radius: 8px; margin: 8px 0 20px; }
.promise strong { display: block; line-height: 1.7; margin-bottom: 6px; }

/* 事前相談 */
.badges { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { padding: 4px 14px; border: 1px solid var(--ink); border-radius: 999px; font-size: 14px; }
.steps { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 12px; }
.steps li { padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.step-no { font-size: 13px; font-weight: 700; color: var(--accent); }
.steps h3 { margin: 2px 0 6px; }
.steps p { font-size: 15px; line-height: 1.8; color: var(--text); }
.night { padding: 24px 22px; background: var(--ink); color: var(--ground); border-radius: 10px; margin-bottom: 28px; }
.night h3 { font-family: var(--mincho); font-size: 20px; margin-bottom: 8px; }
.cta-center { text-align: center; }
.cta-center .btn { width: 100%; max-width: 420px; }

/* 永代供養 */
.pending { display: inline-block; margin-left: 10px; padding: 2px 10px; background: var(--paper); border-radius: 999px; font-size: 12px; color: var(--text); letter-spacing: 0; font-weight: 400; vertical-align: middle; }
.section--sand .section-label { color: var(--text); }

/* 圓通寺について */
.about { display: grid; gap: 24px; }
.about .ph { min-height: 220px; }
.map { min-height: 220px; margin-top: 24px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 700; line-height: 1.6; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 14px; font-size: 24px; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; font-size: 16px; line-height: 1.85; color: var(--text); }

/* フォーム */
.form { display: grid; gap: 22px; max-width: 640px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: 15px; font-weight: 700; }
.req { font-size: 12px; color: var(--accent); margin-left: 4px; }
.opt { font-size: 12px; color: var(--muted); margin-left: 4px; font-weight: 400; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; min-height: 52px; padding: 10px 14px; font-size: 17px; font-family: inherit;
  border: 1px solid var(--ph-line); border-radius: 6px; background: #fff; color: var(--ink);
}
.form textarea { line-height: 1.7; resize: vertical; }
fieldset.field { margin: 0; padding: 0; border: 0; }
fieldset.field legend { padding: 0; margin-bottom: 4px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; cursor: pointer; }
.choice input { width: 22px; height: 22px; accent-color: var(--accent); flex-shrink: 0; }
.turnstile { min-height: 66px; }
.form .btn { width: 100%; font-size: 18px; min-height: 58px; }
.demo-note { font-size: 14px; color: var(--muted); }

/* フッター */
.site-footer { background: var(--ink); color: var(--ground); padding: 44px 0 48px; }
.site-footer .brand { color: var(--ground); }
.site-footer .brand small { color: #CFC4AE; }
.site-footer p { font-size: 14px; line-height: 1.9; margin-top: 14px; }
.site-footer a { color: var(--ground); display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; }
.copy { font-size: 12px; color: #CFC4AE; }

/* スマホ下部固定ボタン */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: 10px;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--paper); border-top: 1px solid var(--line);
}
.sticky-cta .btn { flex: 1; padding: 6px 12px; }
.sticky-cta .btn--outline { flex: 0 0 128px; font-size: 15px; }
.has-sticky { padding-bottom: 96px; }

/* ===== PC ===== */
@media (min-width: 900px) {
  .section { padding: 96px 0; }
  .header-tel .num { display: block; }
  .header-cta { display: inline-flex; }
  .hero { padding: 48px 0 96px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; }
  .hero-photo { order: 2; min-height: 520px; }
  .hero-actions { display: flex; }
  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .venues { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .temple-box { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); padding: 36px; gap: 20px 36px; }
  .temple-box h3 { grid-column: 1 / -1; }
  .temple-box .ph { min-height: 100%; }
  .temple-box .note { grid-column: 1 / -1; }
  .priest { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
  .priest .ph { min-height: 440px; }
  .priest--sub .ph { min-height: 320px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .about .ph { min-height: 360px; }
  .form { margin: 0 auto; }
  .sticky-cta { display: none; }
  .has-sticky { padding-bottom: 0; }
}
