﻿@charset "UTF-8";
/* =============================================================
   日枝神社 新年法人祈祷 LP — 単一ソース・レスポンシブ版
   - 現行 LP（shinnen.hiejinja.net）の assets/style.css を KTW へ移植（T1-1b）
   - 配色は旧デザインを踏襲（金 #c49f4f / 焦茶金 #8a5e00 / 生成り）
   - ブレークポイント: 〜799px(モバイル) / 800px〜(タブレット) / 1280px〜(PC)
   - 背景は CSS グラデーションのまま維持（画像へ戻さないこと）
   ============================================================= */

:root {
  --gold: #c49f4f;
  --gold-deep: #8a5e00;
  --gold-soft: rgba(196, 159, 79, 0.25);
  --gold-faint: rgba(196, 159, 79, 0.08);
  --ink: #2f2f2f;
  --cream: #f7f3ec;
  --paper: #fffdf9;
  --line: #e3d7bd;
  --red: #d40000;
  --shadow: 0 2px 12px rgba(70, 50, 0, 0.10);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); text-decoration: none; }
a:hover { opacity: 0.8; }
a:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
table { border-collapse: collapse; }
summary { cursor: pointer; }

body {
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  color: var(--ink);
  /* 旧 background-2-1.png(約3.5MB) のグラデーションをCSSで再現 */
  background: linear-gradient(160deg, #f2ebdc 0%, #f9f5eb 45%, #ebe1cb 100%) fixed;
  font-size: 15px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

section[id] { scroll-margin-top: 130px; }
@media (min-width: 800px) {
  body { font-size: 16px; }
  section[id] { scroll-margin-top: 90px; }
}

.note   { color: var(--red); }
.em     { color: var(--gold-deep); font-weight: 700; }
.center { text-align: center; }

/* ---------- 電話リンク: モバイルのみタップ可（Q&A A10） ---------- */
.tel-link { color: inherit; text-decoration: underline; text-decoration-color: var(--gold-soft); }
@media (min-width: 800px) {
  .tel-link { pointer-events: none; text-decoration: none; }
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 253, 247, 0.96);
  border-bottom: 1px solid var(--gold-soft);
  backdrop-filter: blur(4px);
}
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding-top: 10px; padding-bottom: 10px;
}
.header-logo img { height: 34px; width: auto; }
.header-nav { order: 3; width: 100%; }
.header-nav ul { display: flex; flex-wrap: wrap; gap: 2px 14px; justify-content: center; list-style: none; margin: 0; padding: 0; }
.header-nav a { font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.header-nav a:hover { color: var(--gold-deep); opacity: 1; }
.header-cta { margin-left: auto; }
@media (min-width: 1280px) {
  .header-nav { order: 0; width: auto; margin-left: auto; }
  .header-nav a { font-size: 14px; }
  .header-cta { margin-left: 0; }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block; text-align: center;
  border-radius: 999px; font-weight: 700; line-height: 1.4;
  padding: 0.7em 1.6em;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: #fff; box-shadow: var(--shadow);
}
.btn:hover { opacity: 0.9; }
.btn-small { font-size: 13px; padding: 0.5em 1.2em; }
.btn-large { font-size: 17px; padding: 0.9em 2.2em; }
@media (min-width: 800px) { .btn-large { font-size: 20px; } }
.btn-ghost {
  background: #fff; color: var(--gold-deep);
  border: 1.5px solid var(--gold); box-shadow: none;
}

/* ---------- 受付終了バナー（data/site-data.json の reception.closed で表示制御） ---------- */
.closed-banner {
  background: #a50f1d; color: #fff; text-align: center;
  font-weight: 700; padding: 0.7em 1em; letter-spacing: 0.1em;
}

/* ---------- ヒーロー ---------- */
.hero { padding: 24px 0 8px; }
.hero-inner { display: grid; gap: 14px; }
.hero-title {
  font-weight: 900; color: var(--ink); text-align: center;
  font-size: 26px; letter-spacing: 0.18em; line-height: 1.5;
}
.hero-title .hero-year { color: var(--gold-deep); }
.hero-inner img { border-radius: 8px; box-shadow: var(--shadow); object-fit: cover; width: 100%; }
@media (min-width: 800px) {
  .hero { padding: 36px 0 12px; }
  .hero-inner { grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 20px; }
  .hero-inner img { height: 100%; }
  /* 縦書き: ブロック流（右→左）で 日枝神社→令和八年→新年法人祈祷 の伝統的な列順にする */
  .hero-title {
    writing-mode: vertical-rl; font-size: 34px;
    padding: 0 6px; margin: auto 0; max-height: 100%;
  }
  .hero-title .hero-line { display: block; margin: 0 0.35em; }
}
@media (min-width: 1280px) { .hero-title { font-size: 42px; } }

.hero-notice {
  text-align: center; font-weight: 700; margin-top: 18px;
  font-size: 15px; color: var(--ink);
}
@media (min-width: 800px) { .hero-notice { font-size: 18px; } }
.hero-cta { text-align: center; margin: 18px 0 6px; }

/* ---------- セクション共通 ---------- */
.section { padding: 48px 0; }
@media (min-width: 800px) { .section { padding: 64px 0; } }
.section-alt { background: rgba(255, 255, 255, 0.55); }
.section-title {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font-size: 21px; font-weight: 700; letter-spacing: 0.12em;
  margin-bottom: 10px; color: var(--ink);
}
.section-title::before, .section-title::after {
  content: ""; height: 1px; flex: 1; max-width: 150px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-title::after { background: linear-gradient(90deg, var(--gold), transparent); }
@media (min-width: 800px) { .section-title { font-size: 26px; } }
.section-lead { text-align: center; margin-bottom: 28px; }

/* ---------- 新年法人祈祷とは ---------- */
.about-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 800px) { .about-grid { grid-template-columns: 1.1fr 1fr; } }
.about-text { background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.about-grid img { border-radius: 10px; box-shadow: var(--shadow); }

/* ---------- 日程について ---------- */
.schedule-cards { display: grid; gap: 16px; margin-bottom: 28px; }
@media (min-width: 800px) { .schedule-cards { grid-template-columns: repeat(3, 1fr); } }
.schedule-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px; text-align: center; box-shadow: var(--shadow);
}
.schedule-card h3 {
  font-size: 15px; color: var(--gold-deep); letter-spacing: 0.1em;
  margin-bottom: 8px; font-weight: 700;
}
.schedule-card p, .schedule-card li { font-weight: 700; }
.schedule-card ul { list-style: none; margin: 0; padding: 0; }
.schedule-card ul li + li { margin-top: 4px; }

.deadline-wrap { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); }
.deadline-wrap h3 { text-align: center; font-size: 17px; margin-bottom: 4px; letter-spacing: 0.1em; }
.deadline-note { text-align: center; font-size: 13px; margin-bottom: 14px; }
.deadline-table { width: 100%; font-size: 14px; }
.deadline-table th, .deadline-table td { border: 1px solid var(--line); padding: 10px 8px; text-align: center; }
.deadline-table thead th { background: var(--gold); color: #fff; letter-spacing: 0.08em; }
.deadline-table tbody th { background: var(--gold-faint); font-weight: 700; }
.deadline-table td { font-weight: 700; color: var(--gold-deep); }
@media (min-width: 800px) { .deadline-table { font-size: 16px; } }

/* ---------- 申し込み方法 ---------- */
.info-box {
  display: flex; align-items: center; gap: 14px; justify-content: center;
  background: var(--gold-faint); border: 1.5px solid var(--gold);
  border-radius: 12px; padding: 14px 18px; margin-bottom: 32px; font-weight: 700;
}
.info-box img { width: 42px; flex: none; }

.step-num {
  font-size: 30px; font-weight: 900; color: var(--gold);
  line-height: 1; letter-spacing: 0.05em;
}
.step-head { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--gold-soft); padding-bottom: 8px; margin-bottom: 12px; }
.step-head h3, .step-head h4 { font-size: 18px; letter-spacing: 0.08em; }
@media (min-width: 800px) { .step-head h3, .step-head h4 { font-size: 21px; } }

.method-grid { display: grid; gap: 18px; margin: 20px 0; }
@media (min-width: 800px) { .method-grid { grid-template-columns: 1fr 1fr; } }
.method-card {
  background: #fff; border: 1.5px solid var(--gold); border-radius: 12px;
  padding: 20px; box-shadow: var(--shadow);
}
.method-card h4 {
  text-align: center; font-size: 19px; letter-spacing: 0.2em;
  color: var(--gold-deep); border-bottom: 1px solid var(--line);
  padding-bottom: 8px; margin-bottom: 12px;
}
.method-card .note { font-size: 13.5px; display: block; margin-top: 8px; }

.substep-title {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  font-size: 18px; font-weight: 700; letter-spacing: 0.15em;
  margin: 40px 0 20px; color: var(--ink);
}
.substep-title::before, .substep-title::after {
  content: ""; height: 1px; flex: 1; max-width: 110px; background: var(--gold);
}

.steps { display: grid; gap: 20px; }
@media (min-width: 800px) { .steps { grid-template-columns: 1fr 1fr; } }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; box-shadow: var(--shadow);
}
.step figure { margin-top: 14px; }
.step figure img { border: 1px solid var(--line); border-radius: 6px; }
.step figcaption { font-size: 12px; color: #777; margin-top: 4px; text-align: center; }

/* ---------- 注意事項 ---------- */
.notes-grid { display: grid; gap: 16px; margin-bottom: 36px; }
@media (min-width: 800px) { .notes-grid { grid-template-columns: 1fr 1fr; } }
.note-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); }
.note-card h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 8px; color: var(--gold-deep); }
.note-card h3 img { width: 26px; }

.subsection-title {
  text-align: center; font-size: 19px; font-weight: 700; letter-spacing: 0.12em;
  margin: 44px 0 18px; padding-bottom: 8px;
  border-bottom: 2px solid var(--gold-soft);
}
.sinrei-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 800px) { .sinrei-grid { grid-template-columns: auto 1fr; } }
.sinrei-grid .sinrei-img { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; justify-self: center; }
.screenshot-row { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 800px) { .screenshot-row { grid-template-columns: 1fr 1fr; } }
.screenshot-row img { border: 1px solid var(--line); border-radius: 8px; background: #fff; }

.norito-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: grid; gap: 16px; }
@media (min-width: 800px) { .norito-box { grid-template-columns: auto 1fr; align-items: center; } }
.norito-box img { width: 110px; margin: 0 auto; }
.yomiage-sample {
  display: block; margin: 10px 0; padding: 10px 14px;
  background: var(--gold-faint); border-left: 4px solid var(--gold);
  color: var(--gold-deep); font-weight: 700;
}

/* 神札・祝詞　サンプル（一例）: 御祈願の対象ごとのアコーディオン（FAQ と同じ details/summary） */
.sample-wrap { margin-top: 18px; }
.sample-list { display: grid; gap: 12px; max-width: 920px; margin: 0 auto; }
.sample-acc { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.sample-acc summary {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; font-weight: 700; font-size: 16px; list-style: none; cursor: pointer;
}
.sample-acc summary::-webkit-details-marker { display: none; }
.sample-acc summary::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.sample-body { margin: 0 18px; padding: 6px 0 20px; border-top: 1px dashed var(--line); }
.sample-note { font-size: 13px; color: var(--red); margin: 12px 0 4px; }
.sample-step { margin-top: 18px; text-align: center; }
.sample-step h4 {
  text-align: left; font-size: 15px; font-weight: 700; letter-spacing: 0.06em;
  border-left: 4px solid var(--gold); padding-left: 10px; margin-bottom: 12px;
}
.sample-step a.js-lightbox { display: inline-block; line-height: 0; }
.sample-step a.js-lightbox img {
  max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff;
  transition: box-shadow .15s;
}
.sample-step a.js-lightbox:hover img, .sample-step a.js-lightbox:focus-visible img { box-shadow: 0 0 0 3px var(--gold-soft); }
/* 祝詞の読み上げ例（.norito-box）はアコーディオン内の手順として置くため、.sample-step の中央寄せを解除する */
.sample-step .norito-box { text-align: left; }
.sample-zoom { font-size: 12px; color: #777; margin-top: 6px; }
.sample-zoom::before { content: "🔍 "; }
/* 神札は実物と同じ並び（左＝為書き、右＝祈 願意）で横並び。原寸は幅 90px 前後・高さ 1500px 超の細長い画像のため、
   文字が読める程度（原寸の 40〜50%）の高さで揃え、拡大は lightbox に任せる */
.sample-fuda { display: flex; justify-content: center; align-items: flex-start; gap: 24px; padding: 12px 0; background: var(--gold-faint); border-radius: 8px; }
.sample-fuda a.js-lightbox img { width: auto; height: 600px; }
@media (min-width: 800px) {
  .sample-acc summary { font-size: 17px; }
  .sample-step h4 { font-size: 16px; }
  .sample-fuda a.js-lightbox img { height: 760px; }
}
.sample-caption { font-size: 13px; text-align: left; max-width: 920px; margin: 14px auto 0; }

/* 画像拡大表示（dialog） */
.lightbox {
  border: none; border-radius: 10px; padding: 44px 16px 16px; background: #fff;
  max-width: min(96vw, 1400px); max-height: 96vh; overflow: auto; box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox img { display: block; max-width: 92vw; max-height: 78vh; width: auto; height: auto; margin: 0 auto; }
/* 神札のような縦長画像は高さで潰さず原寸で表示し、dialog 内をスクロールして読めるようにする */
.lightbox.lightbox--tall img { max-height: none; }
.lightbox-caption { font-size: 12px; color: #555; text-align: center; margin-top: 10px; max-width: 92vw; }
.lightbox-close {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: var(--gold-faint); }

/* ---------- 必読条件サマリ（Q&A A20: アコーディオン外の常時表示） ---------- */
.must-read {
  background: #fff; border: 2px solid var(--gold); border-radius: 12px;
  padding: 22px; margin: 0 0 34px; box-shadow: var(--shadow);
}
.must-read h3 { text-align: center; color: var(--gold-deep); font-size: 18px; letter-spacing: 0.12em; margin-bottom: 12px; }
.must-read ul { display: grid; gap: 8px; }
@media (min-width: 800px) { .must-read ul { grid-template-columns: 1fr 1fr; gap: 10px 26px; } }
.must-read li { padding-left: 1.3em; position: relative; font-weight: 700; font-size: 14px; }
.must-read li::before { content: "※"; position: absolute; left: 0; color: var(--red); }

/* ---------- 祈祷当日までの流れ ---------- */
.flow-list { display: grid; gap: 0; max-width: 860px; margin: 0 auto; }
.flow-step {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 22px; box-shadow: var(--shadow);
}
.flow-arrow { text-align: center; color: var(--gold); font-size: 22px; line-height: 2.2; }
.flow-step .flow-body { display: grid; gap: 16px; }
@media (min-width: 800px) {
  .flow-step .flow-body { grid-template-columns: 1.3fr 1fr; align-items: center; }
}
.flow-step figure img { border: 1px solid var(--line); border-radius: 8px; }
.flow-final { border: 2px solid var(--gold); text-align: center; }
.flow-final .step-head { justify-content: center; }
.flow-final img { border-radius: 8px; margin: 0 auto; }

.access-box { text-align: center; margin: 36px 0 0; }
.access-box .addr { font-size: 14px; margin-top: 6px; }

/* ---------- 当日の受付場所 ---------- */
.place-list { display: grid; gap: 26px; margin-top: 18px; }
.place { text-align: center; }
.place figcaption { font-weight: 700; letter-spacing: 0.08em; margin-bottom: 10px; }
.place img { margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; max-width: 720px; width: 100%; }
.place-note { text-align: center; font-weight: 700; margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq-lead { text-align: center; margin-bottom: 26px; }
.faq-list { display: grid; gap: 12px; max-width: 920px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.faq-item summary {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 18px; font-weight: 700; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-badge {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold); color: #fff; font-weight: 900; font-size: 15px;
  font-family: Georgia, serif;
}
.faq-a .faq-badge { background: var(--gold-deep); }
.faq-toggle {
  margin-left: auto; flex: none; color: var(--gold-deep);
  font-weight: 900; font-size: 20px; line-height: 32px;
}
.faq-toggle::before { content: "＋"; }
.faq-item[open] .faq-toggle::before { content: "－"; }
.faq-a {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 0 18px; padding: 14px 0 18px;
  border-top: 1px dashed var(--line);
}
/* 回答が手順＋画像で構成される FAQ（予約内容を変更したい）。画像はサムネイル＋lightbox（.sample-step と同じ扱い） */
.faq-a-body { flex: 1; min-width: 0; }
.faq-steps { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: faqstep; display: grid; gap: 18px; }
.faq-steps li { counter-increment: faqstep; }
.faq-steps li h4 {
  font-size: 15px; font-weight: 700; letter-spacing: 0.06em;
  border-left: 4px solid var(--gold); padding-left: 10px; margin-bottom: 6px;
}
.faq-steps li h4::before { content: counter(faqstep) ". "; color: var(--gold-deep); }
.faq-steps li p { margin-bottom: 10px; }
.faq-steps a.js-lightbox { display: inline-block; line-height: 0; }
.faq-steps a.js-lightbox img {
  max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff;
  transition: box-shadow .15s;
}
.faq-steps a.js-lightbox:hover img, .faq-steps a.js-lightbox:focus-visible img { box-shadow: 0 0 0 3px var(--gold-soft); }
.faq-steps .sample-zoom { margin-bottom: 0; }
.faq-steps-note { margin-top: 16px; color: var(--red); font-size: 14px; }
/* 手順内の注意書き（赤字）。直前の画像に続けて置き、後続の説明とは余白で区切る */
.faq-steps .faq-step-caution { margin: 10px 0 18px; color: var(--red); font-size: 14px; }
@media (min-width: 800px) { .faq-steps li h4 { font-size: 16px; } }

/* ---------- CTAブロック ---------- */
.cta-block { text-align: center; padding: 34px 16px; }
.cta-block .pre { font-weight: 700; margin-bottom: 14px; }
.cta-block .post { font-size: 13.5px; margin-top: 14px; }
.cta-faq-link { margin: 26px 0 6px; }

/* ---------- フッター ---------- */
.site-footer {
  margin-top: 30px;
  background: rgba(255, 255, 255, 0.75);
  border-top: 2px solid var(--gold-soft);
  padding: 40px 0 90px;
}
.footer-contact { text-align: center; margin-bottom: 26px; }
.footer-contact .label { letter-spacing: 0.2em; font-weight: 700; color: var(--gold-deep); }
.footer-contact .phone { font-size: 26px; font-weight: 900; letter-spacing: 0.06em; }
@media (min-width: 800px) { .footer-contact .phone { font-size: 30px; } }
.footer-contact .hours { font-size: 13.5px; }
.footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 0 0 18px; padding: 0; list-style: none; }
.footer-nav a { font-size: 13px; color: var(--ink); }
.footer-nav a:hover { color: var(--gold-deep); opacity: 1; }
.copyright { text-align: center; font-size: 12px; color: #6f6a5e; }

/* ---------- TOPへ戻る ---------- */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: #fff; font-size: 11px; font-weight: 700; line-height: 1.3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(70, 50, 0, 0.3);
}
.to-top:hover { opacity: 0.9; }
.to-top .arrow { font-size: 16px; line-height: 1; }

/* ---------- 下層ページ（プライバシーポリシー等） ---------- */
.subpage-main { padding: 40px 0 60px; }
.subpage-main .container { max-width: 820px; }
.subpage-main h1 { font-size: 24px; text-align: center; letter-spacing: 0.1em; margin-bottom: 8px; }
.subpage-main .established { text-align: center; font-size: 13px; color: #6f6a5e; margin-bottom: 30px; }
.policy-section { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-bottom: 16px; }
.policy-section h2 { font-size: 17px; color: var(--gold-deep); margin-bottom: 8px; }
.policy-section ul { padding-left: 1.4em; }

/* ---------- アクセシビリティ ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}



.place-view {
    display:none !important;
}
