/* =============================================================================
 * 大椎城 御城印プロジェクト — スタイル（スタイリッシュ和モダン）
 * 配色: 朱 (vermilion) / 金 (gold) / 墨 (ink) を基調
 * ===========================================================================*/

:root {
  --ink: #1a1714;          /* 墨 */
  --ink-soft: #2c2723;
  --paper: #f7f3ea;        /* 和紙 */
  --paper-2: #efe7d6;
  --vermilion: #b3361f;    /* 朱 */
  --vermilion-deep: #8c2517;
  --gold: #c4a14a;         /* 金 */
  --gold-light: #e0c878;
  --text: #2a2520;
  --text-inv: #f4efe4;
  --muted: #6f6457;
  --line: rgba(196, 161, 74, 0.28);
  --shadow: 0 18px 50px rgba(26, 23, 20, 0.18);

  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;

  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.4; }

a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 和紙テクスチャ的な背景パターン ---------- */
.washi {
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(196, 161, 74, 0.05) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(179, 54, 31, 0.04) 0, transparent 45%);
}

/* ============================== ヘッダー ============================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(26, 23, 20, 0.0);
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
.site-header.scrolled {
  background: rgba(26, 23, 20, 0.92);
  padding: 10px 24px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-inv); font-family: var(--serif); font-weight: 700;
  font-size: 1.05rem; text-decoration: none; letter-spacing: 0.08em;
}
.brand .seal {
  width: 38px; height: 38px; border-radius: 6px;
  display: grid; place-items: center;
  background: var(--vermilion); color: #fff;
  font-family: var(--serif); font-size: 0.78rem; line-height: 1.1;
  box-shadow: 0 4px 14px rgba(140, 37, 23, 0.5);
}
.header-cta {
  display: inline-block; padding: 9px 20px; border-radius: 999px;
  background: var(--gold); color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 0.86rem; letter-spacing: 0.06em;
  transition: transform 0.2s, box-shadow 0.2s;
}
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(196, 161, 74, 0.4); }

/* ============================== ヒーロー ============================== */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: center;
  color: var(--text-inv);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: url("../assets/images/hero.jpg");
  background-size: cover; background-position: center;
  transform: scale(1.05);
  animation: kenburns 18s ease-out forwards;
}
@keyframes kenburns { to { transform: scale(1.15) translateY(-2%); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 13, 11, 0.55) 0%, rgba(15, 13, 11, 0.35) 40%, rgba(15, 13, 11, 0.85) 100%);
}
.hero-inner { padding: 120px 0 80px; max-width: 880px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); letter-spacing: 0.18em;
  font-size: 0.9rem; color: var(--gold-light);
  border: 1px solid rgba(224, 200, 120, 0.5);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 26px;
  background: rgba(26, 23, 20, 0.3);
}
.hero h1 {
  font-size: clamp(1.9rem, 5.2vw, 3.4rem);
  margin: 0 0 22px; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}
.hero h1 .accent { color: var(--gold-light); }
.hero .lead {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  max-width: 680px; color: #eae3d6; margin-bottom: 38px;
  font-family: var(--serif);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================== ボタン ============================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 34px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  letter-spacing: 0.05em; cursor: pointer; border: none;
  transition: transform 0.2s, box-shadow 0.25s, background 0.25s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--vermilion), var(--vermilion-deep));
  color: #fff; box-shadow: 0 12px 30px rgba(140, 37, 23, 0.45);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(140, 37, 23, 0.55); }
.btn-ghost {
  background: rgba(247, 243, 234, 0.1); color: var(--text-inv);
  border: 1.5px solid rgba(244, 239, 228, 0.5);
}
.btn-ghost:hover { background: rgba(247, 243, 234, 0.2); transform: translateY(-3px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--ink); box-shadow: 0 12px 30px rgba(196, 161, 74, 0.4);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(196, 161, 74, 0.5); }

/* ============================== 進捗バー ============================== */
.progress-band {
  background: var(--ink); color: var(--text-inv);
  padding: 56px 0;
  border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold);
}
.progress-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
}
.stat-row { display: flex; gap: 36px; flex-wrap: wrap; margin-bottom: 22px; }
.stat .num {
  font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--gold-light); font-weight: 700; line-height: 1;
}
.stat .label { font-size: 0.82rem; color: #cfc6b6; letter-spacing: 0.08em; }
.bar-track {
  height: 16px; border-radius: 999px; background: rgba(244, 239, 228, 0.14);
  overflow: hidden; margin: 8px 0 10px;
}
.bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--vermilion));
  border-radius: 999px; transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.progress-meta { display: flex; justify-content: space-between; font-size: 0.86rem; color: #cfc6b6; }
.progress-side { text-align: center; }
.progress-side .big {
  font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 4rem);
  color: var(--gold-light); line-height: 1;
}
.progress-side .days-label { font-size: 0.9rem; color: #cfc6b6; }
.progress-side .btn { margin-top: 18px; }

/* ============================== セクション共通 ============================== */
section.block { padding: 96px 0; }
.section-tag {
  font-family: var(--serif); color: var(--vermilion);
  letter-spacing: 0.2em; font-size: 0.82rem; font-weight: 700;
  display: inline-block; margin-bottom: 14px;
}
.section-tag::before { content: "—  "; color: var(--gold); }
h2.section-title {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin: 0 0 28px; color: var(--ink);
}
.block p { color: var(--text); margin: 0 0 18px; }
.lead-large { font-size: 1.12rem; font-family: var(--serif); }

/* 2カラム（テキスト＋画像） */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.media {
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
  position: relative;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(196, 161, 74, 0.3);
  border-radius: 14px; pointer-events: none;
}

/* ============================== はじめに ============================== */
.intro { background: var(--paper-2); }
.intro .lead-large { max-width: 760px; }

/* ============================== ストーリー（背景） ============================== */
.story-card {
  background: #fff; border-radius: 16px; padding: 40px;
  box-shadow: var(--shadow); border-top: 4px solid var(--vermilion);
  margin-bottom: 28px;
}
.story-card .kicker {
  font-family: var(--serif); color: var(--vermilion); font-weight: 700;
  font-size: 1.15rem; margin-bottom: 10px; display: flex; align-items: baseline; gap: 12px;
}
.story-card .kicker .no {
  font-size: 2rem; color: var(--gold); line-height: 1;
}

/* 3つの目的 */
.purpose-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 12px; }
.purpose {
  background: #fff; border-radius: 14px; padding: 30px 26px;
  box-shadow: 0 10px 30px rgba(26, 23, 20, 0.08);
  border-bottom: 3px solid var(--gold); text-align: center;
}
.purpose .ico {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.5rem;
  background: linear-gradient(135deg, var(--vermilion), var(--vermilion-deep)); color: #fff;
}
.purpose h3 { font-size: 1.1rem; margin: 0 0 10px; color: var(--ink); }
.purpose p { font-size: 0.94rem; color: var(--muted); margin: 0; }

/* ============================== 資金の使い道 ============================== */
.funds { background: var(--ink); color: var(--text-inv); }
.funds .section-title, .funds h3 { color: var(--text-inv); }
.funds .section-tag { color: var(--gold-light); }
.funds p { color: #ddd5c6; }
.invest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.invest {
  background: rgba(247, 243, 234, 0.05); border: 1px solid rgba(196, 161, 74, 0.3);
  border-radius: 14px; padding: 28px 24px;
}
.invest h3 { font-size: 1.05rem; color: var(--gold-light); margin: 0 0 10px; }
.invest p { font-size: 0.92rem; margin: 0; }

/* ============================== リターン ============================== */
.returns { background: var(--paper-2); }
.return-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.return-card {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s; position: relative;
}
.return-card:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(26, 23, 20, 0.22); }
.return-card.featured { border: 2px solid var(--vermilion); }
.return-card.featured::before {
  content: "定番"; position: absolute; top: 18px; right: -34px;
  background: var(--vermilion); color: #fff; font-size: 0.74rem; font-weight: 700;
  padding: 5px 44px; transform: rotate(45deg); letter-spacing: 0.1em;
}
.return-head {
  padding: 28px 30px 18px; border-bottom: 1px dashed var(--line);
}
.return-head .name { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); margin-bottom: 8px; }
.return-head .price {
  font-family: var(--serif); font-size: 2rem; color: var(--vermilion); font-weight: 700;
}
.return-head .price small { font-size: 0.95rem; color: var(--muted); font-weight: 400; }
.return-body { padding: 22px 30px 28px; flex: 1; display: flex; flex-direction: column; }
.return-body ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.return-body li {
  padding: 8px 0 8px 28px; position: relative; font-size: 0.96rem; color: var(--text);
}
.return-body li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  color: var(--gold); font-weight: 700;
}
.return-note { font-size: 0.82rem; color: var(--muted); margin: -10px 0 16px; }

/* ============================== スケジュール ============================== */
.timeline { position: relative; margin-top: 30px; padding-left: 8px; }
.timeline::before {
  content: ""; position: absolute; left: 18px; top: 6px; bottom: 6px;
  width: 3px; background: linear-gradient(var(--gold), var(--vermilion)); border-radius: 2px;
}
.tl-item { position: relative; padding: 0 0 38px 56px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item .dot {
  position: absolute; left: 8px; top: 4px; width: 24px; height: 24px;
  border-radius: 50%; background: #fff; border: 4px solid var(--vermilion);
  box-shadow: 0 0 0 4px rgba(179, 54, 31, 0.15);
}
.tl-item .when { font-family: var(--serif); color: var(--vermilion); font-weight: 700; font-size: 1.05rem; }
.tl-item h3 { margin: 4px 0 6px; font-size: 1.1rem; color: var(--ink); }
.tl-item p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* ============================== 結び ============================== */
.closing {
  position: relative; color: var(--text-inv); text-align: center;
  padding: 120px 0;
}
.closing-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: url("../assets/images/future.jpg");
  background-size: cover; background-position: center;
}
.closing::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,13,11,0.82), rgba(15,13,11,0.7));
}
.closing h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 24px; }
.closing p { color: #eee6d8; max-width: 720px; margin: 0 auto 18px; font-family: var(--serif); font-size: 1.08rem; }
.closing .btn { margin-top: 28px; }
.closing .sign { margin-top: 36px; font-family: var(--serif); color: var(--gold-light); letter-spacing: 0.1em; }

/* ============================== お問い合わせ / フッター ============================== */
.contact { background: var(--paper-2); text-align: center; }
.org-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 720px; margin: 30px auto 0; }
.org-card { background: #fff; border-radius: 12px; padding: 26px; box-shadow: 0 10px 30px rgba(26,23,20,0.08); }
.org-card .role { font-size: 0.8rem; color: var(--vermilion); letter-spacing: 0.1em; }
.org-card .org-name { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); margin-top: 6px; }

.site-footer {
  background: var(--ink); color: #b8af9f; text-align: center;
  padding: 40px 24px; font-size: 0.85rem;
}
.site-footer .brand-foot { font-family: var(--serif); color: var(--gold-light); font-size: 1.1rem; margin-bottom: 10px; }
.site-footer a { color: var(--gold-light); text-decoration: none; }

/* ============================== スティッキー支援バー（モバイル） ============================== */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: rgba(26, 23, 20, 0.96);
  box-shadow: 0 -6px 24px rgba(0,0,0,0.3); backdrop-filter: blur(6px);
}
.sticky-cta .mini { color: var(--text-inv); font-size: 0.78rem; line-height: 1.3; }
.sticky-cta .mini b { color: var(--gold-light); font-family: var(--serif); font-size: 1rem; }
.sticky-cta .btn { padding: 12px 22px; font-size: 0.92rem; white-space: nowrap; }

/* ============================== スクロール演出 ============================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-bg { animation: none; }
}

/* ============================== レスポンシブ ============================== */
@media (max-width: 860px) {
  .split, .progress-grid, .purpose-grid, .invest-grid, .return-grid, .org-grid { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse { direction: ltr; }
  section.block { padding: 70px 0; }
  .hero-inner { padding: 110px 0 90px; }
  .header-cta { display: none; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 72px; }
  .story-card { padding: 28px 22px; }
  .return-card.featured::before { right: -38px; }
}
