/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   店じまい計画室 — 和の終い支度
   生成り(和紙) × 藍 × 朱印
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
:root {
  --kinari: #f6f1e7;        /* 生成り（地） */
  --kinari-deep: #ece4d3;   /* 生成り濃 */
  --ai: #1c2b4a;            /* 藍 */
  --ai-deep: #131e35;       /* 藍濃 */
  --shu: #c33d2e;           /* 朱 */
  --sumi: #2b2722;          /* 墨（本文） */
  --sumi-soft: #5c554b;     /* 墨薄 */
  --line: #c9bda5;          /* 罫線 */
  --serif: "Shippori Mincho", serif;
  --sans: "Zen Kaku Gothic New", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--sumi);
  background: var(--kinari);
  line-height: 1.9;
  letter-spacing: 0.04em;
  font-size: 16px;
}

/* 和紙の粒子 */
.washi-grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.5;
  background-image:
    radial-gradient(rgba(120,100,60,0.06) 1px, transparent 1px),
    radial-gradient(rgba(120,100,60,0.04) 1px, transparent 1px);
  background-size: 7px 7px, 13px 13px;
  background-position: 0 0, 4px 6px;
}

main, .site-header, .site-footer { position: relative; z-index: 2; }

em { font-style: normal; color: var(--shu); font-weight: 700; }

/* ━━━ ヘッダー ━━━ */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(20px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  background: var(--shu); color: var(--kinari);
  font-family: var(--serif); font-weight: 800; font-size: 20px;
  border-radius: 6px;
  transform: rotate(-3deg);
  box-shadow: 2px 2px 0 rgba(43,39,34,0.18);
}
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 18px; letter-spacing: 0.12em; }
.header-cta {
  font-size: 13px; font-weight: 700; text-decoration: none;
  color: var(--ai); border: 1.5px solid var(--ai);
  padding: 8px 18px; border-radius: 999px;
  transition: background 0.25s, color 0.25s;
}
.header-cta:hover { background: var(--ai); color: var(--kinari); }

/* ━━━ HERO ━━━ */
.hero {
  position: relative;
  padding: clamp(64px, 12vh, 140px) clamp(20px, 5vw, 56px) clamp(72px, 12vh, 140px);
  max-width: 1100px; margin: 0 auto;
}
.hero-vertical {
  position: absolute; top: 56px; right: clamp(16px, 4vw, 48px);
  writing-mode: vertical-rl;
  font-family: var(--serif); font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.5em; color: var(--sumi-soft);
  border-right: 1px solid var(--line); padding-right: 14px;
  animation: fadein 1.2s ease 0.6s both;
}
.hero-kicker {
  font-size: 14px; font-weight: 700; color: var(--shu);
  letter-spacing: 0.28em; margin-bottom: 22px;
  animation: fadein 0.8s ease 0.1s both;
}
.hero-title {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(40px, 7.2vw, 76px);
  line-height: 1.35; letter-spacing: 0.06em;
  margin-bottom: 32px;
  animation: fadein 0.9s ease 0.25s both;
}
.hero-lead {
  font-size: clamp(15px, 1.6vw, 17px); color: var(--sumi-soft);
  margin-bottom: 40px; max-width: 620px;
  animation: fadein 0.9s ease 0.45s both;
}
.hero-lead strong { color: var(--sumi); }
.hero-actions { animation: fadein 0.9s ease 0.6s both; }
.hero-privacy {
  margin-top: 16px; font-size: 12.5px; color: var(--sumi-soft);
  animation: fadein 0.9s ease 0.7s both;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ━━━ ボタン ━━━ */
.btn-primary {
  display: inline-block;
  background: var(--ai); color: var(--kinari);
  font-weight: 700; font-size: clamp(15px, 1.7vw, 17px);
  text-decoration: none; text-align: center;
  padding: 18px 36px; border: none; border-radius: 8px;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(28,43,74,0.22);
  transition: transform 0.18s, box-shadow 0.18s;
}
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 rgba(28,43,74,0.22); }
.btn-note { display: block; font-size: 12px; font-weight: 500; opacity: 0.75; margin-top: 4px; }
.btn-secondary {
  display: inline-block;
  background: var(--shu); color: var(--kinari);
  font-weight: 700; font-size: 15px;
  padding: 14px 30px; border: none; border-radius: 8px;
  cursor: pointer; font-family: var(--sans);
  box-shadow: 3px 3px 0 rgba(43,39,34,0.2);
  transition: transform 0.18s, box-shadow 0.18s;
}
.btn-secondary:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 rgba(43,39,34,0.2); }
.btn-ghost {
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  color: var(--sumi-soft); text-decoration: underline; text-underline-offset: 4px;
}

/* ━━━ セクション見出し ━━━ */
.sec-title {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(26px, 4vw, 38px); line-height: 1.5;
  letter-spacing: 0.06em;
  margin-bottom: 36px;
}
.sec-title span {
  background: linear-gradient(transparent 72%, rgba(195,61,46,0.22) 72%);
  padding: 0 2px;
}
.sec-title-light { color: var(--kinari); }
.sec-title-light span { background: linear-gradient(transparent 72%, rgba(246,241,231,0.25) 72%); }

/* ━━━ 共感 ━━━ */
.empathy { padding: clamp(56px, 10vh, 110px) clamp(20px, 5vw, 56px); border-top: 1px solid var(--line); }
.empathy-inner { max-width: 1100px; margin: 0 auto; }
.empathy-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px; margin-bottom: 44px;
}
.empathy-card {
  background: rgba(255,253,248,0.7);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 26px 24px;
  box-shadow: 3px 3px 0 rgba(43,39,34,0.06);
}
.empathy-q {
  font-family: var(--serif); font-weight: 600; font-size: 16.5px;
  margin-bottom: 12px; line-height: 1.7;
}
.empathy-a { font-size: 14px; color: var(--sumi-soft); }
.empathy-note {
  text-align: center; font-size: clamp(14px, 1.6vw, 16px);
  border-top: 1px dashed var(--line); padding-top: 32px;
}

/* ━━━ 診断 ━━━ */
.shindan {
  background: var(--ai); color: var(--kinari);
  padding: clamp(64px, 10vh, 120px) clamp(20px, 5vw, 56px);
}
.shindan-inner { max-width: 760px; margin: 0 auto; }
.shindan-lead { color: rgba(246,241,231,0.8); margin-bottom: 44px; }

.q { border: none; margin-bottom: 36px; }
.q legend {
  font-family: var(--serif); font-weight: 600; font-size: 19px;
  margin-bottom: 14px; letter-spacing: 0.08em;
}
.q-no {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; margin-right: 12px;
  background: var(--shu); color: var(--kinari);
  font-size: 15px; border-radius: 50%;
  vertical-align: middle;
}
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opts label { cursor: pointer; }
.opts input { position: absolute; opacity: 0; }
.opts span {
  display: inline-block;
  padding: 11px 22px;
  border: 1.5px solid rgba(246,241,231,0.45);
  border-radius: 999px;
  font-size: 14.5px; font-weight: 500;
  transition: all 0.2s;
}
.opts input:checked + span {
  background: var(--kinari); color: var(--ai-deep);
  border-color: var(--kinari); font-weight: 700;
}
.opts input:focus-visible + span { outline: 2px solid var(--shu); outline-offset: 2px; }
.opts-date select {
  font-family: var(--sans); font-size: 16px;
  padding: 12px 18px; border-radius: 8px;
  border: 1.5px solid rgba(246,241,231,0.45);
  background: var(--kinari); color: var(--sumi);
  cursor: pointer;
}
.btn-generate { width: 100%; margin-top: 12px; background: var(--shu); box-shadow: 4px 4px 0 rgba(0,0,0,0.25); }

/* ━━━ 結果（工程表） ━━━ */
.result { margin-top: 56px; background: var(--kinari); color: var(--sumi); border-radius: 12px; padding: clamp(28px, 5vw, 48px); }
.result-head { position: relative; margin-bottom: 36px; }
.result-stamp {
  position: absolute; top: -10px; right: 0;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border: 3px solid var(--shu); color: var(--shu); border-radius: 50%;
  font-family: var(--serif); font-weight: 800; font-size: 20px;
  transform: rotate(8deg); opacity: 0.85;
}
.result-title { font-family: var(--serif); font-weight: 800; font-size: clamp(22px, 3.4vw, 30px); letter-spacing: 0.08em; }
.result-sub { font-size: 13.5px; color: var(--sumi-soft); margin-top: 8px; }

.phase { margin-bottom: 30px; }
.phase-label {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--serif); font-weight: 800; font-size: 19px;
  color: var(--ai); border-bottom: 2px solid var(--ai);
  padding-bottom: 8px; margin-bottom: 14px;
}
.phase-date { font-size: 13px; font-weight: 500; color: var(--shu); font-family: var(--sans); }
.task { display: flex; gap: 12px; padding: 11px 4px; border-bottom: 1px dashed var(--line); }
.task-check {
  flex: none; width: 19px; height: 19px; margin-top: 5px;
  border: 1.6px solid var(--sumi-soft); border-radius: 4px;
}
.task-body { font-size: 14.5px; }
.task-name { font-weight: 700; }
.task-deadline {
  display: inline-block; margin-left: 8px;
  font-size: 12px; font-weight: 700; color: var(--shu);
  border: 1px solid var(--shu); border-radius: 4px;
  padding: 1px 8px; vertical-align: 1px;
}
.task-note { font-size: 13px; color: var(--sumi-soft); }
.result-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 36px; }
.result-disclaimer {
  margin-top: 28px; font-size: 12px; color: var(--sumi-soft);
  border-top: 1px solid var(--line); padding-top: 18px;
}

/* ━━━ キット ━━━ */
.kit { padding: clamp(56px, 10vh, 110px) clamp(20px, 5vw, 56px); }
.kit-inner { max-width: 760px; margin: 0 auto; }
.kit-text p { margin-bottom: 18px; }
.kit-list { list-style: none; margin: 22px 0; }
.kit-list li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px dashed var(--line); font-size: 15px; }
.kit-list li::before {
  content: "印"; position: absolute; left: 0; top: 12px;
  width: 22px; height: 22px; display: grid; place-items: center;
  background: var(--shu); color: var(--kinari);
  font-size: 11px; font-family: var(--serif); border-radius: 4px;
  transform: rotate(-4deg);
}
.kit-cta-note { font-size: 13.5px; color: var(--sumi-soft); }

/* ━━━ 約束 ━━━ */
.policy { background: var(--kinari-deep); padding: clamp(56px, 10vh, 110px) clamp(20px, 5vw, 56px); }
.policy-inner { max-width: 1000px; margin: 0 auto; }
.policy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; }
.policy-item {
  background: var(--kinari); border: 1px solid var(--line); border-radius: 10px;
  padding: 28px 24px; font-size: 14.5px;
}
.policy-no {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; margin-bottom: 14px;
  border: 2px solid var(--ai); color: var(--ai); border-radius: 50%;
  font-family: var(--serif); font-weight: 800; font-size: 17px;
}

/* ━━━ フッター ━━━ */
.site-footer {
  background: var(--ai-deep); color: rgba(246,241,231,0.85);
  text-align: center; padding: 56px 20px;
}
.footer-brand { font-family: var(--serif); font-weight: 600; font-size: 18px; letter-spacing: 0.14em; }
.footer-note { font-family: var(--serif); font-size: 13px; margin-top: 10px; opacity: 0.7; }
.footer-legal { font-size: 11.5px; margin-top: 22px; opacity: 0.5; }

/* ━━━ 印刷 ━━━ */
@media print {
  .washi-grain, .site-header, .hero, .empathy, .kit, .policy, .site-footer,
  .shindan-form, .shindan-lead, .sec-title-light, .result-actions { display: none !important; }
  body, .shindan { background: #fff !important; color: #000; padding: 0; }
  .result { box-shadow: none; border-radius: 0; padding: 0; }
  .task { break-inside: avoid; }
}

/* ━━━ レスポンシブ ━━━ */
@media (max-width: 640px) {
  .hero-vertical { display: none; }
  .header-cta { font-size: 11.5px; padding: 7px 12px; }
  .sp { display: inline; }
}
@media (min-width: 641px) { .sp { display: none; } }
