/* ============================================================
   マチマルLP 共通スタイル
   カラー設計（3色＋ニュートラル）
   - メイン: グリーン (#4a7c46 / 濃 #2e4a2a / 淡 #eef5ea)
   - アクセント: オレンジ (#c05621) … CTA専用
   - ニュートラル: #2b2b28(文字) / #f7f7f4(背景) / #fff
   余白は8pxの倍数で統一
   ============================================================ */
:root {
  --green: #4a7c46;
  --green-dark: #2e4a2a;
  --green-pale: #eef5ea;
  --accent: #c05621;
  --accent-dark: #a34715;
  --ink: #2b2b28;
  --ink-soft: #5a5a54;
  --paper: #f7f7f4;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(46, 74, 42, .10);
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .03em;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
p + p { margin-top: 20px; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e4e4de;
}
.site-header .inner {
  max-width: 1080px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; }
.brand .name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.brand .name small { display: block; font-weight: 400; font-size: 11px; color: var(--ink-soft); }
.header-cta {
  display: inline-block; background: var(--accent); color: var(--white);
  text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 12px 24px; border-radius: 999px; white-space: nowrap;
  min-height: 44px; display: inline-flex; align-items: center;
}
.header-cta:hover { background: var(--accent-dark); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--green-dark); }
.hero .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .42;
}
.hero .inner {
  position: relative; max-width: 1080px; margin: 0 auto;
  padding: 96px 20px 104px; color: var(--white);
}
.hero .badge {
  display: inline-block; background: var(--white); color: var(--green-dark);
  font-size: 13px; font-weight: 700; padding: 6px 16px; border-radius: 999px;
  margin-bottom: 24px; letter-spacing: .06em;
}
.hero h1 {
  font-size: 44px; font-weight: 700; line-height: 1.35;
  letter-spacing: .04em; text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.hero .lead {
  margin-top: 24px; font-size: 17px; max-width: 620px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}
.hero .cta-row { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 16px 44px; border-radius: 999px;
  font-size: 17px; font-weight: 700; text-decoration: none;
  transition: transform .15s, background .15s;
}
.btn-primary { background: var(--accent); color: var(--white); box-shadow: 0 4px 20px rgba(192, 86, 33, .4); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, .14); color: var(--white); border: 1.5px solid rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: rgba(255, 255, 255, .26); }

/* ---------- stats bar ---------- */
.stats { background: var(--green); color: var(--white); }
.stats .inner {
  max-width: 1080px; margin: 0 auto; padding: 32px 20px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center;
}
.stats .num { font-size: 34px; font-weight: 700; line-height: 1.3; }
.stats .num small { font-size: 16px; font-weight: 700; }
.stats .label { font-size: 13px; opacity: .92; margin-top: 4px; }
.stats .note { grid-column: 1 / -1; font-size: 11px; opacity: .75; text-align: right; margin-top: -8px; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--paper); }
.section-label {
  color: var(--green); font-size: 14px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px;
}
.section h2 {
  font-size: 32px; font-weight: 700; line-height: 1.4; letter-spacing: .03em;
  color: var(--green-dark); margin-bottom: 24px;
}
.section .desc { max-width: 720px; color: var(--ink-soft); margin-bottom: 48px; }

/* 2カラム（画像＋テキスト） */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .visual img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split h3 { font-size: 20px; font-weight: 700; color: var(--green-dark); margin-bottom: 8px; }
.split p + h3 { margin-top: 32px; }

/* カードグリッド */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow);
}
.card .icon { font-size: 30px; line-height: 1; margin-bottom: 16px; }
.card h3 { font-size: 18px; font-weight: 700; color: var(--green-dark); margin-bottom: 8px; line-height: 1.5; }
.card p { font-size: 15px; color: var(--ink-soft); line-height: 1.8; }

/* 番号付きリスト（メリット・流れ） */
.numlist { counter-reset: n; display: grid; gap: 16px; }
.numlist .item {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 32px; display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start;
}
.numlist .item::before {
  counter-increment: n; content: counter(n, decimal-leading-zero);
  font-size: 26px; font-weight: 700; color: var(--green);
  border-right: 2px solid var(--green-pale); padding-right: 16px; line-height: 1.4;
}
.numlist h3 { font-size: 18px; font-weight: 700; color: var(--green-dark); margin-bottom: 4px; }
.numlist p { font-size: 15px; color: var(--ink-soft); }

/* 流れ（横ステップ） */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 24px; position: relative;
}
.step::before {
  counter-increment: s; content: "STEP " counter(s);
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  color: var(--white); background: var(--green); border-radius: 999px;
  padding: 4px 14px; margin-bottom: 16px;
}
.step h3 { font-size: 17px; font-weight: 700; color: var(--green-dark); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--ink-soft); line-height: 1.75; }

/* テーブル */
.spec-table { width: 100%; border-collapse: collapse; background: var(--white); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { padding: 18px 24px; text-align: left; border-bottom: 1px solid #e9e9e2; font-size: 15px; }
.spec-table th { background: var(--green-pale); color: var(--green-dark); font-weight: 700; width: 32%; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }

/* 料金プラン */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 40px 28px; display: flex; flex-direction: column; border: 2px solid transparent;
}
.plan.featured { border-color: var(--green); position: relative; }
.plan .tag {
  position: absolute; top: -14px; left: 32px; background: var(--green); color: var(--white);
  font-size: 12px; font-weight: 700; padding: 4px 16px; border-radius: 999px; letter-spacing: .06em;
}
.plan h3 { font-size: 20px; font-weight: 700; color: var(--green-dark); }
.plan .term { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.plan .price { margin: 20px 0 4px; font-size: 40px; font-weight: 700; color: var(--green-dark); line-height: 1.2; }
.plan .price small { font-size: 16px; font-weight: 700; }
.plan .monthly { font-size: 14px; color: var(--accent); font-weight: 700; margin-bottom: 20px; }
.plan ul { list-style: none; margin-top: 8px; }
.plan li { padding: 10px 0 10px 30px; border-bottom: 1px solid #efefe9; font-size: 15px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 700; }
.plan li:last-child { border-bottom: none; }

/* 図版 */
.figure-center { max-width: 720px; margin: 48px auto 0; }
.figure-center img { border-radius: var(--radius); box-shadow: var(--shadow); }
.visual-narrow { max-width: 420px; margin: 0 auto; }
.visual-slim { max-width: 340px; margin: 0 auto; }

/* 注意書き */
.notes {
  background: var(--green-pale); border-radius: var(--radius); padding: 28px 32px;
  font-size: 14px; color: var(--ink-soft); margin-top: 32px;
}
.notes ul { margin-top: 8px; padding-left: 20px; }
.notes li + li { margin-top: 8px; }

/* ブリッジ（視線誘導） */
.bridge { text-align: center; padding: 0 0 8px; }
.bridge .arrow {
  display: inline-block; color: var(--green); font-size: 26px; line-height: 1;
  animation: float 1.8s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- CTAセクション ---------- */
.cta-section { position: relative; overflow: hidden; background: var(--green-dark); }
.cta-section .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .3; }
.cta-section .inner {
  position: relative; max-width: 800px; margin: 0 auto;
  padding: 96px 20px; text-align: center; color: var(--white);
}
.cta-section h2 { font-size: 32px; font-weight: 700; line-height: 1.5; margin-bottom: 16px; }
.cta-section p { opacity: .95; margin-bottom: 40px; }
.cta-section .contact-lines { margin-top: 32px; font-size: 14px; opacity: .9; line-height: 2; }
.cta-section .contact-lines a { color: var(--white); font-weight: 700; }

/* ---------- 会社概要 ---------- */
.company-table { width: 100%; max-width: 640px; border-collapse: collapse; }
.company-table th, .company-table td { padding: 14px 8px; border-bottom: 1px solid #e9e9e2; text-align: left; font-size: 15px; vertical-align: top; }
.company-table th { color: var(--green-dark); font-weight: 700; width: 130px; white-space: nowrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--green-dark); color: rgba(255, 255, 255, .85); }
.site-footer .inner { max-width: 1080px; margin: 0 auto; padding: 48px 20px 32px; }
.site-footer .brandrow { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.site-footer .brandrow img { width: 36px; height: 36px; background: var(--white); border-radius: 8px; padding: 3px; }
.site-footer .brandrow strong { color: var(--white); }
.site-footer nav { margin: 16px 0 24px; display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.site-footer nav a { color: rgba(255, 255, 255, .85); }
.site-footer .copy { font-size: 12px; opacity: .6; }

/* ---------- モバイル ---------- */
@media (max-width: 820px) {
  .section { padding: 64px 0; }
  .hero .inner { padding: 64px 20px 72px; }
  .hero h1 { font-size: 30px; }
  .hero .lead { font-size: 15.5px; }
  .section h2 { font-size: 24px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .stats .inner { grid-template-columns: 1fr; gap: 16px; padding: 28px 20px; }
  .stats .note { text-align: center; margin-top: 0; }
  .header-cta { font-size: 13px; padding: 10px 18px; }
  .brand .name { font-size: 13px; }
  .cta-section h2 { font-size: 24px; }
  .numlist .item { grid-template-columns: 44px 1fr; padding: 24px 20px; gap: 16px; }
  .numlist .item::before { font-size: 20px; padding-right: 12px; }
  .spec-table th, .spec-table td { padding: 14px 16px; font-size: 14px; }
  .spec-table th { white-space: nowrap; width: auto; }
}
