/* 西栢山日枝神社 氏子まつり — 共通スタイル
   色や文字サイズは :root の変数だけ変えれば全体に反映される */

:root {
  --shu: #c8202b;        /* 赤（タオル） */
  --shu-dark: #a3151f;
  --sumi: #1d2433;       /* 墨紺（本文） */
  --kinari: #ffffff;       /* 白（背景） */
  --washi: #eef1f6;        /* 薄い藍白（帯・カード） */
  --matsu: #1e2b4d;       /* 鉄紺（半纏） */
  --line: #cfd6e3;
  --base: 18px;          /* 高齢の方にも読みやすい基本サイズ */
}

* { box-sizing: border-box; }

html { font-size: var(--base); scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--sumi);
  background: var(--kinari);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
  line-height: 1.4;
  margin: 0;
}

a { color: var(--shu-dark); }
img { max-width: 100%; height: auto; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* ---------- ヘッダー ---------- */
.site-header {
  background: var(--kinari);
  border-bottom: 3px solid var(--shu);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px;
}
.site-title {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 700; font-size: 1rem; color: var(--sumi); text-decoration: none;
  line-height: 1.3;
}
.site-title small { display: block; font-size: .72rem; font-weight: 400; color: #5a6478; }

.menu-toggle {
  appearance: none; border: 2px solid var(--shu); background: #fff; color: var(--shu-dark);
  font: inherit; font-size: .9rem; font-weight: 700;
  padding: 6px 14px; border-radius: 6px; cursor: pointer; min-height: 44px;
}
.global-nav { display: none; background: var(--washi); border-bottom: 1px solid var(--line); }
.global-nav.open { display: block; }
.global-nav ul { list-style: none; margin: 0; padding: 8px 0; }
.global-nav a {
  display: block; padding: 12px 16px; color: var(--sumi); text-decoration: none;
  border-bottom: 1px solid var(--line); font-weight: 700;
}

/* ---------- ヒーロー ---------- */
.hero {
  background:
    linear-gradient(180deg, rgba(15,22,42,.62), rgba(15,22,42,.5) 55%, rgba(15,22,42,.55)),
    url("img/top.jpg") center 42% / cover no-repeat,
    var(--matsu);
  color: #fff; text-align: center; padding: 72px 0 64px; min-height: 420px;
}
.hero h1 { font-size: 1.7rem; letter-spacing: .08em; }
.hero h1, .hero p { text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.hero p { margin: 14px 0 0; font-size: 1rem; }
.hero .note { font-size: .85rem; opacity: .85; }

/* ---------- 各セクション ---------- */
section { padding: 40px 0; }
section:nth-of-type(even) { background: var(--washi); }

.sec-title {
  font-size: 1.35rem; margin-bottom: 20px; padding-left: 12px;
  border-left: 6px solid var(--shu);
}

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; margin-bottom: 14px;
}
.card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.card p { margin: 0; }

.news { list-style: none; margin: 0; padding: 0; }
.news li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.news time { flex: none; color: #5a6478; font-size: .9rem; }
.tag {
  display: inline-block; font-size: .75rem; font-weight: 700; color: #fff;
  background: var(--shu); border-radius: 4px; padding: 0 8px; margin-right: 6px;
}
.tag.info { background: var(--matsu); }

.placeholder {
  border: 2px dashed var(--line); border-radius: 10px; background: #fff;
  padding: 28px 16px; text-align: center; color: #5a6478;
}

.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 16px; }
.album-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; }
.album-grid div {
  aspect-ratio: 1; background: var(--line); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; color: #7a869b; font-size: .8rem;
}

.hashtags { font-weight: 700; color: var(--shu-dark); word-break: break-all; }

.btn {
  display: block; text-align: center; text-decoration: none; font-weight: 700;
  background: var(--shu); color: #fff; padding: 14px 18px; border-radius: 8px; margin-top: 14px;
  min-height: 48px;
}
.btn.sub { background: #fff; color: var(--shu-dark); border: 2px solid var(--shu); }

/* ---------- フッター ---------- */
.site-footer { background: var(--sumi); color: #dfe5f0; padding: 32px 0; font-size: .9rem; }
.site-footer a { color: #ffd6d9; }
.site-footer p { margin: 0 0 8px; }

@media (min-width: 720px) {
  .hero h1 { font-size: 2.2rem; }
  .menu-toggle { display: none; }
  .global-nav { display: block; background: transparent; border: 0; }
  .global-nav ul { display: flex; gap: 4px; padding: 0; }
  .global-nav a { border: 0; padding: 8px 10px; font-size: .85rem; }
  .site-header .wrap { max-width: 1000px; }
  .site-header { position: static; }
}
