/* ===== トークン ===== */
:root {
  --bg: #fbfaf7;
  --bg-alt: #f1efe8;
  --ink: #1f2a2e;
  --ink-soft: #55615f;
  --line: #ddd8cc;
  --accent: #1f6f5c;      /* 深い緑：信頼・地域 */
  --accent-ink: #ffffff;
  --accent-soft: #e3efe9;
  --warm: #c8682c;        /* 差し色：行動ボタン */
  --radius: 14px;
  --max: 1080px;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}

/* ===== ベース ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.4; margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.sr, .skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.sp { display: none; }

/* ===== ヘッダー ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-size: 15px; letter-spacing: 0;
}
.brand-sub { font-size: 12px; font-weight: 500; margin-left: 2px; color: var(--ink-soft); }
.site-nav { display: flex; gap: 22px; align-items: center; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.site-nav a:hover { color: var(--accent); }
.nav-cta { background: var(--warm); color: #fff !important; padding: 6px 16px; border-radius: 999px; }
.nav-toggle { display: none; }

/* ===== ボタン ===== */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  text-decoration: none; font-weight: 700; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.btn-primary { background: var(--warm); color: #fff; }
.btn-ghost { border: 1.5px solid var(--accent); color: var(--accent); }
.btn-lg { padding: 16px 40px; font-size: 18px; }

/* ===== ヒーロー ===== */
/* 背景は「葉陰の月」。左側を明るい膜で覆って文字を読みやすくし、
   画像を拡大・位置調整して、月が文字の右側の空いた場所に来るようにしている */
.hero {
  background:
    linear-gradient(90deg, rgba(251,250,247,.94) 0%, rgba(251,250,247,.86) 45%, rgba(251,250,247,.15) 68%, rgba(251,250,247,0) 100%),
    url("/assets/img/hero.jpg") 16% 37% / 150% auto no-repeat,
    var(--bg);
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--line);
}
.eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; margin: 0 0 12px; }
.hero h1 { font-size: clamp(32px, 5.4vw, 56px); letter-spacing: .04em; }
.lead { max-width: 640px; color: var(--ink-soft); font-size: 17px; margin: 24px 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== セクション共通 ===== */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 20px; display: flex; align-items: baseline; gap: 14px; }
.num { font-size: 14px; color: var(--accent); font-weight: 700; letter-spacing: .1em; }
.section-lead { color: var(--ink-soft); max-width: 720px; margin: 0 0 36px; }

/* ===== 会社概要 ===== */
.info-table { margin: 0; border-top: 1px solid var(--line); }
.info-table > div { display: grid; grid-template-columns: 180px 1fr; border-bottom: 1px solid var(--line); }
.info-table dt { padding: 16px 8px; font-weight: 700; }
.info-table dd { padding: 16px 8px; margin: 0; }

/* ===== 業務カード ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 19px; margin-bottom: 10px; padding-left: 12px; border-left: 4px solid var(--accent); }
.card p { margin: 0; color: var(--ink-soft); }

/* ===== 料金 ===== */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.price { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; }
.price.featured { border: 2px solid var(--accent); }
.price .tag {
  position: absolute; top: -12px; left: 20px; margin: 0;
  background: var(--accent); color: #fff; font-size: 12px; padding: 2px 12px; border-radius: 999px;
}
.price h3 { font-size: 18px; }
.amount { font-size: 26px; font-weight: 700; margin: 12px 0 0; color: var(--accent); }
.amount span { font-size: 14px; margin-left: 2px; color: var(--ink-soft); }
.unit { font-size: 13px; color: var(--ink-soft); margin: 0 0 14px; }
.price ul { margin: 0; padding-left: 1.2em; font-size: 14px; }
.price-note { margin: 18px 0 0; font-size: 14px; color: var(--ink-soft); }

/* ===== 代表紹介 ===== */
.profile { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.profile-photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--line); aspect-ratio: 5 / 6; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 26px; font-weight: 700; margin: 0; }
.profile-name span { display: block; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.profile-role { color: var(--accent); font-weight: 700; margin: 6px 0 18px; }
.facts { padding-left: 1.2em; }

/* ===== リンク ===== */
.more { font-weight: 700; }

/* ===== 無料相談 ===== */
.consult { background: var(--accent); color: #fff; }
.consult .section-lead, .consult .num { color: #d8ebe4; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { counter-increment: s; background: rgba(255,255,255,.1); border-radius: var(--radius); padding: 22px 18px; font-size: 14px; }
.steps li::before { content: "STEP " counter(s); display: block; font-size: 12px; font-weight: 700; color: #ffd9bf; }
.steps strong { display: block; font-size: 17px; margin-bottom: 4px; }
.consult-actions { text-align: center; }
.note { font-size: 13px; color: #d8ebe4; }
.consult .note a { color: #fff; }

/* ===== フッター ===== */
.site-footer { background: #1a2326; color: #c9d0ce; padding: 40px 0; font-size: 14px; }
.footer-inner p { margin: 0 0 4px; }
.footer-name { color: #fff; font-weight: 700; }
.site-footer nav { display: flex; gap: 18px; margin: 12px 0; flex-wrap: wrap; }
.site-footer a { color: #c9d0ce; }
.copy { font-size: 12px; opacity: .7; }

/* ===== タブレット ===== */
@media (max-width: 960px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .profile { grid-template-columns: 260px 1fr; gap: 32px; }
  /* タブレット・スマホは文字が横いっぱいになるため、上を明るい膜で覆い、月はボタン右横の空きに出す */
  .hero {
    background:
      linear-gradient(180deg, rgba(251,250,247,.93) 0%, rgba(251,250,247,.86) 58%, rgba(251,250,247,.25) 74%, rgba(251,250,247,0) 100%),
      url("/assets/img/hero.jpg") 53% 4% / auto 206% no-repeat,
      var(--bg);
  }
}

/* ===== スマホ ===== */
@media (max-width: 720px) {
  .sp { display: inline; }
  .nav-toggle {
    display: block; width: 44px; height: 44px; border: 0; background: transparent; position: relative; cursor: pointer;
  }
  .nav-toggle .bar, .nav-toggle .bar::before, .nav-toggle .bar::after {
    content: ""; position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); transition: .2s;
  }
  .nav-toggle .bar { top: 21px; }
  .nav-toggle .bar::before { left: 0; top: -7px; }
  .nav-toggle .bar::after { left: 0; top: 7px; }
  .nav-toggle[aria-expanded="true"] .bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bar::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar::after { top: 0; transform: rotate(-45deg); }

  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 16px; border-top: 1px solid var(--line); }
  .nav-cta { margin: 12px 16px; text-align: center; border-radius: 999px; }

  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .info-table > div { grid-template-columns: 1fr; }
  .info-table dt { padding-bottom: 0; }
  .info-table dd { padding-top: 4px; }
  .price-grid, .steps { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; }
  .profile-photo { max-width: 280px; }
  .btn-lg { width: 100%; }
}

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