/* shima会計 — design system */

:root {
  /* tweakable */
  --c-primary: #7cb992;
  --c-primary-soft: #c8e6c9;
  --c-primary-mist: #e8f5e9;
  --c-accent: #fff59d;
  --c-accent-soft: #fffbe5;
  --c-ink: #2a3a2e;
  --c-ink-2: #5a6b5e;
  --c-ink-3: #8a9a8e;
  --c-paper: #fafdfa;
  --c-white: #ffffff;
  --c-line: #e3ece5;

  --font-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --font-body: "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Menlo", monospace;
  --font-en: "DM Sans", "Hiragino Sans", system-ui, sans-serif;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgba(42, 58, 46, 0.04), 0 6px 18px rgba(42, 58, 46, 0.06);
  --shadow-2: 0 1px 2px rgba(42, 58, 46, 0.05), 0 12px 36px rgba(42, 58, 46, 0.08);

  --maxw: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-ink);
  line-height: 1.4;
  margin: 0;
  text-wrap: pretty;
}

p { margin: 0; text-wrap: pretty; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--c-primary);
}

/* ─── Header ─── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 253, 250, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700;
  white-space: nowrap;
  font-size: 22px; letter-spacing: 0.02em;
  color: var(--c-ink);
  line-height: 1;
}
.logo__mark {
  width: 36px; height: 36px;
  object-fit: contain;
  display: inline-block;
  flex-shrink: 0;
}
.logo__sub {
  font-family: var(--font-en); font-size: 11px;
  color: var(--c-ink-2); letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 22px; list-style: none; padding: 0; margin: 0; }
.nav__list a {
  font-size: 13px; color: var(--c-ink); font-weight: 500;
  position: relative; padding: 6px 0; white-space: nowrap;
}
.nav__list a:hover { color: var(--c-primary); }
.nav__list a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 6px; background: var(--c-accent); z-index: -1; border-radius: 4px;
}

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-tel {
  display: flex; flex-direction: column; align-items: flex-end;
  font-family: var(--font-en); font-weight: 600;
  line-height: 1.1;
}
.header-tel small { font-size: 11px; color: var(--c-ink-2); letter-spacing: 0.05em; white-space: nowrap; line-height: 1.4; }
.header-tel strong { font-size: 18px; color: var(--c-ink); white-space: nowrap; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  border: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--c-primary); color: white;
  box-shadow: 0 6px 18px rgba(124, 185, 146, 0.35);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(124, 185, 146, 0.45); }
.btn--ghost {
  background: white; color: var(--c-ink); border: 1px solid var(--c-line);
}
.btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn--accent {
  background: var(--c-accent); color: var(--c-ink);
}
.btn--accent:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn--lg { padding: 18px 32px; font-size: 15px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ─── Hand-drawn underline ─── */
.hl {
  background-image: linear-gradient(transparent 60%, var(--c-accent) 60%);
  padding: 0 4px;
}
.hl-green {
  background-image: linear-gradient(transparent 65%, var(--c-primary-soft) 65%);
  padding: 0 4px;
}

/* squiggle underline (svg) */
.squig {
  position: relative; display: inline-block;
}
.squig::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -10px;
  height: 8px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8' preserveAspectRatio='none'><path d='M0 4 Q15 0 30 4 T60 4 T90 4 T120 4' stroke='%237cb992' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: repeat-x;
  background-size: 120px 8px;
}

/* ─── Sections ─── */
section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-head {
  display: flex; flex-direction: column; gap: 14px;
  max-width: 720px; margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.4;
}

/* ─── Mobile Sticky CTA ─── */
.mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: none;
  background: white; border-top: 1px solid var(--c-line);
  padding: 10px 12px;
  gap: 8px;
  box-shadow: 0 -8px 24px rgba(42, 58, 46, 0.06);
}
.mobile-cta a {
  flex: 1; padding: 14px;
  border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14px;
}
.mobile-cta__tel { background: var(--c-accent); color: var(--c-ink); }
.mobile-cta__form { background: var(--c-primary); color: white; }

/* ─── Footer ─── */
.footer {
  background: var(--c-ink);
  color: rgba(255,255,255,0.85);
  padding: 80px 0 40px;
}
.footer h4 {
  color: white;
  font-size: 14px;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 22px;
  color: white;
  margin-bottom: 12px;
}
.footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.footer__list a:hover { color: var(--c-accent); }
.footer__small { font-size: 12px; line-height: 1.8; color: rgba(255,255,255,0.6); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 12px;
  display: flex; justify-content: space-between;
  color: rgba(255,255,255,0.5);
}

/* ─── Placeholder image (striped) ─── */
.ph {
  background:
    repeating-linear-gradient(135deg,
      var(--c-primary-mist) 0 14px,
      var(--c-paper) 14px 28px);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute; inset: 12px;
  border: 1px dashed rgba(124, 185, 146, 0.4);
  border-radius: 12px;
  pointer-events: none;
}
.ph__label {
  background: var(--c-paper);
  padding: 6px 12px;
  border-radius: 4px;
  position: relative;
  z-index: 1;
}

/* ─── Responsive ─── */
@media (max-width: 1280px) {
  .header-tel { display: none; }
  .logo__sub { display: none; }
}
@media (max-width: 1180px) {
  .nav__list { display: none; }
}
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 76px; }
}
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* utilities */
.center { text-align: center; }
.flex { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }

/* dot pattern */
.dots {
  background-image: radial-gradient(var(--c-primary-soft) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
}

/* ─── Final CTA (shared across pages) ─── */
.final-cta {
  background: var(--c-primary);
  color: white;
  padding: clamp(48px, 6vw, 80px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.final-cta h2 {
  color: white;
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 20px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.final-cta p {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  margin-bottom: 36px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta__row {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  position: relative;
  margin-bottom: 8px;
}
.final-cta .btn--primary { background: white; color: var(--c-ink); }
.final-cta .btn--primary:hover { background: var(--c-accent); }
.final-cta .btn--ghost {
  background: transparent; color: white; border-color: rgba(255,255,255,0.4);
}
.final-cta .btn--ghost:hover { border-color: white; color: white; }
.final-cta__tel {
  margin-top: 24px;
  font-family: var(--font-en);
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  position: relative;
  line-height: 1.6;
}
.final-cta__tel strong {
  display: block;
  font-size: 32px;
  color: white;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-top: 6px;
}
