/* =========================================================
   shima会計 — site stylesheet
   町医者 × 対話。暖かみのあるニュートラル + 深緑 + テラコッタ
   ========================================================= */

:root {
  /* palette */
  --bg:           oklch(0.975 0.014 200);  /* fresh pale sky */
  --bg-elev:     oklch(0.990 0.008 200);
  --bg-deep:     oklch(0.940 0.022 200);
  --bg-peach:    oklch(0.950 0.030 55);    /* warm sunrise accent */
  --bg-leaf:     oklch(0.950 0.030 170);   /* mint accent */
  --ink:          oklch(0.228 0.030 230);  /* cool dark slate */
  --ink-2:       oklch(0.385 0.025 225);
  --ink-3:       oklch(0.530 0.018 220);
  --line:         oklch(0.880 0.016 210);
  --line-2:      oklch(0.820 0.018 210);

  --moss:         oklch(0.470 0.080 200);  /* primary — marine teal */
  --moss-2:      oklch(0.560 0.080 200);
  --moss-soft:   oklch(0.935 0.030 200);

  --clay:         oklch(0.640 0.110 38);   /* secondary — warm coral */
  --clay-soft:   oklch(0.950 0.026 50);

  --gold:         oklch(0.700 0.090 85);

  /* type */
  --serif:  "Klee One", "Yusei Magic", "Zen Kurenaido", "Kaisei Decol", "Zen Old Mincho", "Noto Serif JP", serif;
  --sans:   "Zen Maru Gothic", "M PLUS Rounded 1c", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --hand:   "Klee One", "Yusei Magic", "Zen Kurenaido", cursive;
  --mono:   "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;

  /* layout */
  --maxw: 1180px;
  --pad: clamp(20px, 4vw, 48px);
  --radius: 4px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  font-feature-settings: "palt";
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- typographic primitives ---------- */
.serif   { font-family: var(--serif); font-weight: 600; }
.mono    { font-family: var(--mono); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; font-size: 12px; color: var(--ink-3); }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--moss);
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.35; letter-spacing: 0.02em; margin: 0; }
h1 { font-size: clamp(28px, 4.4vw, 52px); }
h2 { font-size: clamp(24px, 3.2vw, 38px); }
h3 { font-size: clamp(18px, 1.9vw, 22px); }
p { margin: 0 0 1em; color: var(--ink-2); }

.lead { font-size: clamp(16px, 1.4vw, 18px); color: var(--ink-2); line-height: 1.9; }

/* ---------- warm utilities ---------- */
.hand { font-family: var(--hand); font-weight: 500; letter-spacing: 0.04em; }
.marker { background: linear-gradient(transparent 55%, oklch(0.92 0.10 88) 55% 92%, transparent 92%); padding: 0 4px; }
.marker--green { background: linear-gradient(transparent 55%, oklch(0.92 0.08 145) 55% 92%, transparent 92%); }
.marker--clay { background: linear-gradient(transparent 55%, oklch(0.92 0.08 50) 55% 92%, transparent 92%); }
.underline-wave { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 8'><path d='M0 5 Q 10 1 20 5 T 40 5 T 60 5 T 80 5' stroke='%2367a479' stroke-width='1.8' fill='none' stroke-linecap='round'/></svg>"); background-repeat: repeat-x; background-position: 0 100%; background-size: 80px 8px; padding-bottom: 10px; }
.circle-mark { display: inline-block; position: relative; padding: 0 6px; }
.circle-mark::before { content: ""; position: absolute; inset: -6px -2px -4px -2px; border: 2px solid var(--clay); border-radius: 50%; transform: rotate(-3deg); opacity: 0.7; pointer-events: none; }

.polaroid { background: var(--bg-elev); padding: 14px 14px 56px; box-shadow: 0 18px 40px -22px oklch(0.30 0.05 60 / 0.30), 0 2px 6px oklch(0.30 0.05 60 / 0.06); border-radius: 2px; position: relative; }
.polaroid__photo { aspect-ratio: 4/5; background: repeating-linear-gradient(135deg, oklch(0.86 0.024 70) 0 14px, oklch(0.91 0.022 70) 14px 28px); display: grid; place-items: center; }
.polaroid__photo span { background: var(--bg); padding: 5px 10px; border: 1px solid var(--line); font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--ink-3); }
.polaroid__caption { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-family: var(--hand); font-size: 16px; color: var(--ink); }
.polaroid__tape { position: absolute; top: -14px; left: 50%; transform: translateX(-50%) rotate(-2deg); width: 100px; height: 26px; background: oklch(0.92 0.04 80 / 0.78); border-left: 1px dashed oklch(0.78 0.04 80); border-right: 1px dashed oklch(0.78 0.04 80); }
.polaroid--tilt-l { transform: rotate(-2deg); }
.polaroid--tilt-r { transform: rotate(2deg); }

.bubble { position: relative; background: var(--bg-elev); border: 1.5px solid var(--ink); border-radius: 20px; padding: 14px 18px; font-family: var(--hand); font-size: 15px; line-height: 1.6; color: var(--ink); display: inline-block; }
.bubble::after { content: ""; position: absolute; bottom: -10px; left: 28px; width: 14px; height: 14px; background: var(--bg-elev); border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); }
.bubble--right::after { left: auto; right: 28px; }
.bubble--clay { border-color: var(--clay); }
.bubble--clay::after { border-color: var(--clay); }
.bubble--moss { background: var(--moss-soft); border-color: var(--moss); }
.bubble--moss::after { background: var(--moss-soft); border-color: var(--moss); }

.stamp { display: inline-flex; align-items: center; justify-content: center; width: 92px; height: 92px; border: 2px solid var(--clay); border-radius: 50%; transform: rotate(-8deg); font-family: var(--hand); font-size: 14px; line-height: 1.2; text-align: center; color: var(--clay); padding: 8px; }
.stamp::before { content: ""; position: absolute; inset: 4px; border: 1px dashed var(--clay); border-radius: 50%; opacity: 0.5; }

.scribble-arrow { display: inline-block; width: 70px; height: 30px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 30'><path d='M2 18 Q 20 4 40 14 T 65 16 M 58 10 L 65 16 L 58 22' stroke='%23a8643c' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain; }

/* ---------- container & sections ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
section { padding: clamp(56px, 9vw, 112px) 0; }
.section-head { display: grid; gap: 14px; margin-bottom: 48px; }
.section-head h2 { max-width: 40ch; }

/* ---------- top header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 700; font-size: 22px;
  color: var(--ink);
  white-space: nowrap;
}
.logo__mark {
  width: 34px; height: 34px;
  background: transparent;
  display: inline-block;
  object-fit: contain;
}
.logo small { font-family: var(--sans); font-weight: 400; font-size: 11px; color: var(--ink-3); margin-left: 4px; }

.nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: nowrap; }
.nav a { font-size: 14px; color: var(--ink-2); position: relative; padding: 6px 0; white-space: nowrap; }
.nav a:hover { color: var(--moss); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after { content:""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--moss); }

.header-cta { display: flex; align-items: center; gap: 14px; margin-left: 8px; }
.header-tel { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--ink); white-space: nowrap; }
.header-tel small { display:block; font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: .14em; }
.btn-menu { display: none; background: none; border: 0; width: 40px; height: 40px; }
.btn-menu span { display:block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px auto; }

@media (max-width: 1180px) {
  .nav, .header-tel { display: none; }
  .btn-menu { display: block; margin-left: auto; }
  .header-cta .btn { padding: 10px 14px; font-size: 13px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-size: 14px; font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--moss); color: var(--bg); }
.btn--primary:hover { background: var(--moss-2); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--clay { background: var(--clay); color: var(--bg); }
.btn--lg { padding: 18px 30px; font-size: 15px; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- generic image placeholder ---------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      oklch(0.91 0.012 80) 0 12px,
      oklch(0.95 0.012 80) 12px 24px);
  border-radius: var(--radius-lg);
  color: var(--ink-3);
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  display: grid; place-items: center;
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  background: var(--bg);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.ph--tall { aspect-ratio: 3/4; }
.ph--wide { aspect-ratio: 16/9; }
.ph--sq   { aspect-ratio: 1/1; }

/* ---------- shared: pain points ---------- */
.pain {
  background: var(--bg-deep);
}
.pain__list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.pain__item {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 22px 24px;
  border-radius: var(--radius);
  display: flex; gap: 16px; align-items: flex-start;
  font-size: 15px;
}
.pain__num {
  font-family: var(--mono); font-size: 11px; color: var(--clay);
  letter-spacing: .14em; padding-top: 4px;
}
.pain__check {
  width: 22px; height: 22px; flex-shrink: 0;
  border: 1.5px solid var(--clay);
  border-radius: 50%;
  display: grid; place-items: center;
  margin-top: 2px;
}
.pain__check::after {
  content: ""; width: 8px; height: 4px;
  border-left: 1.5px solid var(--clay);
  border-bottom: 1.5px solid var(--clay);
  transform: rotate(-45deg) translate(1px, -1px);
}
@media (max-width: 700px) { .pain__list { grid-template-columns: 1fr; } }

/* ---------- shared: strengths cards ---------- */
.strengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.strength {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 320px;
  position: relative;
  transition: border-color .2s, transform .2s;
}
.strength:hover { border-color: var(--moss); transform: translateY(-2px); }
.strength__num { font-family: var(--serif); font-size: 40px; color: var(--moss); line-height: 1; }
.strength h3 { margin-top: 12px; }
.strength p { font-size: 14.5px; line-height: 1.85; color: var(--ink-2); }
.strength__tag {
  position: absolute; top: 28px; right: 28px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  color: var(--ink-3);
}
@media (max-width: 900px) { .strengths { grid-template-columns: 1fr; } }

/* ---------- shared: service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card {
  display: flex; flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.svc-card:hover { transform: translateY(-3px); border-color: var(--moss); }
.svc-card .ph { border-radius: 0; aspect-ratio: 5/3; }
.svc-card__body { padding: 26px 28px 30px; display:flex; flex-direction: column; gap: 12px; flex: 1; }
.svc-card__price { font-family: var(--serif); font-size: 22px; color: var(--moss); }
.svc-card__price small { font-family: var(--sans); font-size: 12px; color: var(--ink-3); font-weight: 400; }
.svc-card__more { margin-top: auto; padding-top: 12px; font-size: 13px; color: var(--moss); display: inline-flex; gap: 6px; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: oklch(0.250 0.018 60); color: oklch(0.85 0.01 70); padding: 64px 0 32px; margin-top: 80px; }
.site-footer h4 { color: var(--bg); font-size: 14px; margin-bottom: 14px; font-weight: 600; }
.site-footer a { color: oklch(0.78 0.01 70); font-size: 13px; }
.site-footer a:hover { color: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-logo { font-family: var(--serif); font-size: 22px; color: var(--bg); margin-bottom: 18px; display:flex; align-items: center; gap: 10px; }
.foot-logo .logo__mark { background: var(--bg); color: oklch(0.25 0.018 60); }
.foot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-info { font-size: 13px; line-height: 1.9; color: oklch(0.78 0.01 70); }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid oklch(0.35 0.015 60); display: flex; justify-content: space-between; font-size: 12px; color: oklch(0.65 0.01 70); }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .foot-grid { grid-template-columns: 1fr; } .foot-bottom { flex-direction: column; gap: 8px; } }

/* ---------- sticky mobile CTA ---------- */
.mob-cta {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: none;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
  z-index: 60;
}
.mob-cta a { flex: 1; padding: 14px; text-align: center; border-radius: 8px; font-size: 14px; font-weight: 600; }
.mob-cta a.tel { background: var(--clay-soft); color: var(--clay); }
.mob-cta a.form { background: var(--moss); color: var(--bg); }
@media (max-width: 700px) {
  .mob-cta { display: flex; }
  body { padding-bottom: 80px; }
}

/* ---------- breadcrumbs ---------- */
.crumbs { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .12em; padding: 24px 0 0; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--moss); }
.crumbs span { margin: 0 8px; }

/* ---------- page hero (sub pages) ---------- */
.page-hero { padding: 60px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); margin-top: 12px; max-width: 22ch; }
.page-hero .lead { margin-top: 16px; max-width: 56ch; }

/* ---------- final CTA band ---------- */
.cta-band {
  background: var(--moss);
  color: var(--bg);
  padding: clamp(60px, 8vw, 100px) 0;
}
.cta-band h2, .cta-band p { color: var(--bg); }
.cta-band p { color: oklch(0.88 0.02 150); }
.cta-band__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cta-band__tel {
  font-family: var(--serif); font-size: clamp(28px, 3.6vw, 40px);
  display: flex; align-items: baseline; gap: 14px;
}
.cta-band__tel small { font-family: var(--mono); font-size: 11px; color: oklch(0.88 0.02 150); letter-spacing: .16em; }
.cta-band__btns { display: flex; flex-direction: column; gap: 12px; }
.cta-band .btn--primary { background: var(--bg); color: var(--moss); }
.cta-band .btn--ghost { border-color: oklch(0.7 0.04 150); color: var(--bg); }
@media (max-width: 800px) { .cta-band__inner { grid-template-columns: 1fr; } }

/* ---------- decorative rule ---------- */
.rule { width: 36px; height: 1px; background: var(--moss); margin: 0 0 16px; }

/* ---------- utility ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }
.muted { color: var(--ink-3); }
.center { text-align: center; }
