/* ============================================================
   クリニックウェブ工房 — 静謐な医療編集デザイン
   白 × ミスト緑 / 深青緑ドミナント / 明朝見出し × ゴシック本文
   ============================================================ */

:root {
  --ink: #1c2b29;
  --ink-soft: #46605c;
  --teal: #0c5f57;
  --teal-deep: #073d38;
  --teal-pale: #e4efed;
  --mist: #f4f8f7;
  --line: #d5e2df;
  --white: #ffffff;
  --accent: #b7822e;
  --font-display: "Zen Old Mincho", serif;
  --font-body: "Zen Kaku Gothic New", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.9;
  font-size: 16px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }
.pc-only { display: inline; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem; color: var(--teal-deep);
  letter-spacing: 0.06em;
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5em; height: 1.5em; margin-right: 0.5em;
  background: var(--teal); color: var(--white);
  border-radius: 6px; font-family: var(--font-body); font-weight: 700;
  vertical-align: -0.3em;
}
.header-cta {
  font-size: 0.88rem; font-weight: 700; text-decoration: none;
  color: var(--white); background: var(--teal);
  padding: 9px 22px; border-radius: 999px;
  transition: background 0.25s;
}
.header-cta:hover { background: var(--teal-deep); }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--white) 0%, var(--mist) 55%, var(--teal-pale) 100%);
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(12, 95, 87, 0.07) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M34 30h4v-8h-4v8h-8v4h8v8h4v-8h8v-4z' fill='%230c5f57' fill-opacity='0.03'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(105deg, transparent 0%, rgba(0,0,0,0.35) 45%, #000 100%);
  mask-image: linear-gradient(105deg, transparent 0%, rgba(0,0,0,0.35) 45%, #000 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1080px; margin: 0 auto;
  padding: 96px 24px 88px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.22em;
  color: var(--teal);
  border: 1px solid var(--teal); border-radius: 999px;
  padding: 5px 18px; margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 28px;
}
.hero-title span { display: block; }
.hero-title em {
  font-style: normal; color: var(--teal);
  border-bottom: 3px solid rgba(12, 95, 87, 0.25);
}
.hero-lead { color: var(--ink-soft); max-width: 620px; margin-bottom: 40px; }

.hero-facts {
  display: flex; gap: 0; margin-bottom: 44px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  max-width: 640px;
}
.fact {
  flex: 1; text-align: center; padding: 20px 8px;
  display: flex; flex-direction: column; gap: 2px;
}
.fact + .fact { border-left: 1px solid var(--line); }
.fact-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--teal-deep);
  line-height: 1.2;
}
.fact-num small { font-size: 0.45em; margin-left: 2px; }
.fact-label { font-size: 0.78rem; color: var(--ink-soft); letter-spacing: 0.1em; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  font-weight: 700; font-size: 1rem;
  padding: 15px 44px; border-radius: 999px;
  transition: transform 0.2s, background 0.25s, box-shadow 0.25s;
  cursor: pointer; border: none; font-family: var(--font-body);
}
.btn-primary {
  color: var(--white); background: var(--teal);
  box-shadow: 0 8px 24px rgba(12, 95, 87, 0.28);
}
.btn-primary:hover { background: var(--teal-deep); transform: translateY(-2px); }
.btn-ghost {
  color: var(--teal); background: transparent;
  border: 1.5px solid var(--teal);
}
.btn-ghost:hover { background: var(--teal-pale); }

/* ---------- セクション共通 ---------- */
.section { padding: 96px 0; }
.section-tinted { background: var(--mist); }

.section-num {
  font-family: var(--font-display);
  font-size: 0.9rem; letter-spacing: 0.3em; color: var(--accent);
  margin-bottom: 8px;
}
.section-num::after {
  content: ""; display: inline-block;
  width: 48px; height: 1px; background: var(--accent);
  vertical-align: middle; margin-left: 14px;
}
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  letter-spacing: 0.05em; margin-bottom: 48px; color: var(--ink);
}
.section-title em { font-style: normal; color: var(--teal); }
.title-sub { font-size: 0.55em; color: var(--ink-soft); font-weight: 400; }

/* ---------- 理由 ---------- */
.reason-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.reason-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 36px 30px;
  box-shadow: 0 2px 12px rgba(28, 43, 41, 0.04);
  transition: transform 0.3s, box-shadow 0.3s;
}
.reason-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(12, 95, 87, 0.12);
}
.reason-index {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em;
  color: var(--accent); margin-bottom: 14px;
}
.reason-card h3 {
  font-family: var(--font-display); font-size: 1.3rem;
  letter-spacing: 0.04em; margin-bottom: 14px; line-height: 1.5;
}
.reason-card h3 em { font-style: normal; color: var(--teal); }
.reason-card p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- 実績 ---------- */
.works-body { max-width: 760px; }
.works-lead { margin-bottom: 28px; }
.works-note {
  background: var(--white); border-left: 4px solid var(--teal);
  border-radius: 0 12px 12px 0; padding: 26px 30px;
  box-shadow: 0 2px 12px rgba(28, 43, 41, 0.05);
}
.works-note-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.1rem; color: var(--teal-deep); margin-bottom: 8px;
}
.works-note p:last-child { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- 料金 ---------- */
.price-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 36px;
}
.price-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 40px 36px;
  box-shadow: 0 2px 12px rgba(28, 43, 41, 0.04);
}
.price-card-monthly { border-top: 4px solid var(--teal); }
.price-plan {
  font-weight: 700; font-size: 0.92rem; letter-spacing: 0.14em;
  color: var(--ink-soft); margin-bottom: 10px;
}
.price-amount {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.2rem); color: var(--teal-deep);
  line-height: 1.2; margin-bottom: 24px;
}
.price-amount small { font-size: 0.5em; margin-right: 2px; }
.price-tax { font-size: 0.32em; color: var(--ink-soft); font-family: var(--font-body); font-weight: 500; margin-left: 10px; }
.price-list { list-style: none; }
.price-list li {
  padding: 10px 0 10px 30px; position: relative;
  font-size: 0.94rem; border-bottom: 1px dashed var(--line);
}
.price-list li::before {
  content: "＋"; position: absolute; left: 2px; top: 10px;
  color: var(--teal); font-weight: 700;
}
.price-caution { font-size: 0.82rem; color: var(--ink-soft); margin-top: 18px; }
.price-footnote {
  background: var(--teal-pale); border-radius: 12px;
  padding: 20px 28px; font-size: 0.95rem;
}
.price-footnote strong { color: var(--teal-deep); }

/* ---------- 流れ ---------- */
.flow { list-style: none; max-width: 720px; position: relative; }
.flow::before {
  content: ""; position: absolute; left: 23px; top: 12px; bottom: 12px;
  width: 2px; background: var(--line);
}
.flow-step {
  display: flex; gap: 26px; align-items: flex-start;
  position: relative; padding-bottom: 36px;
}
.flow-step:last-child { padding-bottom: 0; }
.flow-num {
  flex: 0 0 48px; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  border-radius: 50%; position: relative; z-index: 1;
  box-shadow: 0 0 0 6px var(--mist);
}
.section:not(.section-tinted) .flow-num { box-shadow: 0 0 0 6px var(--white); }
.flow-step h3 {
  font-family: var(--font-display); font-size: 1.15rem;
  letter-spacing: 0.05em; margin-bottom: 4px;
}
.flow-step p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 20px 56px 20px 24px; font-weight: 700;
  position: relative; transition: background 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q. "; color: var(--accent); font-family: var(--font-display); }
.faq-item summary::after {
  content: "＋"; position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  color: var(--teal); font-size: 1.2rem; transition: transform 0.25s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { background: var(--mist); }
.faq-item p {
  padding: 4px 24px 22px 24px; font-size: 0.94rem; color: var(--ink-soft);
}

/* ---------- 問い合わせ ---------- */
.section-contact {
  background: linear-gradient(180deg, var(--white) 0%, var(--teal-pale) 100%);
}
.contact-lead { margin-bottom: 40px; color: var(--ink-soft); }

.contact-form {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: 44px 40px;
  box-shadow: 0 8px 40px rgba(12, 95, 87, 0.08);
}
.form-row { margin-bottom: 24px; }
.form-row label {
  display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 8px;
}
.req {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  color: var(--white); background: var(--accent);
  border-radius: 4px; padding: 1px 8px; margin-left: 8px;
  vertical-align: 0.1em; letter-spacing: 0.08em;
}
.form-row input, .form-row textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--mist); color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--teal); background: var(--white);
}
.form-row textarea { resize: vertical; }
.form-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.btn-submit { width: 100%; font-size: 1.05rem; }
.btn-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.form-status { margin-top: 16px; font-size: 0.94rem; text-align: center; min-height: 1.5em; }
.form-status.ok { color: var(--teal-deep); font-weight: 700; }
.form-status.err { color: #b3261e; font-weight: 700; }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--teal-deep); color: rgba(255, 255, 255, 0.85);
  padding: 48px 0; text-align: center;
}
.footer-brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--white); margin-bottom: 10px; letter-spacing: 0.08em;
}
.site-footer .brand-mark { background: rgba(255, 255, 255, 0.15); }
.footer-note { font-size: 0.85rem; margin-bottom: 20px; }
.footer-copy { font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); }

/* ---------- スクロールリビール ---------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }
.d6 { transition-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .reason-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pc-only { display: none; }
  .section { padding: 64px 0; }
  .hero-inner { padding: 64px 24px 60px; }
  .hero-facts { flex-direction: row; }
  .fact { padding: 14px 4px; }
  .hero-actions .btn { width: 100%; }
  .contact-form { padding: 32px 22px; }
  .flow::before { left: 19px; }
  .flow-num { flex-basis: 40px; width: 40px; height: 40px; font-size: 1rem; }
  .flow-step { gap: 18px; }
}
