/* ===== 基本設定 ===== */
:root {
  --green: #95ab68;       /* ロゴの色 */
  --green-dark: #5f7340;  /* 文字・ボタン用の濃い緑 */
  --green-pale: #f3f6ee;  /* 背景用の薄い緑 */
  --text: #2b2b2b;
  --text-sub: #666;
  --line: #e2e6da;
  --bg: #fff;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--green-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

.sp-only { display: none; }

/* ===== ヘッダー ===== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header__inner {
  max-width: 1200px; height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.header__logo img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--text); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--green-dark); }
.nav .nav__cta {
  background: var(--green-dark); color: #fff;
  padding: 8px 20px; border-radius: 999px;
}
.nav .nav__cta:hover { background: var(--green); color: #fff; }

.nav-toggle { display: none; }

/* ===== トップ ===== */
.hero {
  position: relative; overflow: hidden;
  min-height: 88vh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 24px 80px;
}
.hero__mark {
  position: absolute; right: -6%; top: 50%;
  width: min(820px, 75vw);
  transform: translateY(-45%);
  opacity: 0.14;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 1080px; width: 100%; margin: 0 auto; }
.hero__label {
  display: inline-block; margin: 0 0 20px;
  color: var(--green-dark); font-size: 14px; font-weight: 500;
  border-bottom: 2px solid var(--green); padding-bottom: 4px;
}
.hero__title {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.5; letter-spacing: 0.08em;
}
.hero__lead { margin: 28px 0 24px; color: var(--text-sub); }
.hero__now {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 36px; font-size: 14px; font-weight: 500;
}
.hero__now span {
  background: var(--green-dark); color: #fff; font-size: 12px;
  padding: 2px 10px; border-radius: 999px;
}
.hero__now span::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px;
  border-radius: 50%; background: #c9e39a; vertical-align: middle;
}

.btn {
  display: inline-block;
  background: var(--green-dark); color: #fff; text-decoration: none;
  padding: 14px 36px; border-radius: 999px; font-weight: 500;
  transition: background 0.2s;
}
.btn:hover { background: var(--green); }

/* ===== セクション共通 ===== */
.section { padding: 100px 0; }
.section--tint { background: var(--green-pale); }
.section__title {
  text-align: center; font-size: clamp(24px, 3.5vw, 32px);
  letter-spacing: 0.12em; margin-bottom: 48px;
}
.section__title span {
  display: block; margin-bottom: 4px;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: var(--green); letter-spacing: 0.2em; text-transform: uppercase;
}
.section__lead { text-align: center; margin: -16px 0 48px; color: var(--text-sub); }

/* ===== 事業内容 ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--green);
  padding: 32px 28px; border-radius: 4px;
}
.card__num { font-family: var(--serif); color: var(--green); font-size: 28px; line-height: 1; }
.card__title { font-size: 22px; margin: 12px 0 16px; }
.card p { margin: 0; font-size: 15px; color: var(--text-sub); }
.card .card__tag {
  margin-top: 16px; padding: 8px 12px; border-radius: 4px;
  background: var(--green-pale); color: var(--green-dark);
  font-size: 13px; font-weight: 500;
}

/* ===== 強み ===== */
.points {
  list-style: none; margin: 0 auto 64px; padding: 0; max-width: 860px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.points li {
  background: #fff; border-radius: 4px; padding: 24px 12px; text-align: center;
  font-size: 14px; color: var(--text-sub);
}
.points strong {
  display: block; font-family: var(--serif); font-weight: 500;
  font-size: 38px; line-height: 1.3; color: var(--green-dark);
}
.points small { font-size: 18px; margin-left: 2px; }

.sub-title {
  text-align: center; font-size: 22px; letter-spacing: 0.12em; margin: 0 0 32px;
}
.sub-title::after {
  content: ""; display: block; width: 32px; height: 2px; margin: 12px auto 0; background: var(--green);
}

/* 年表 */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; }
.timeline li {
  position: relative; display: flex; gap: 28px;
  padding: 0 0 36px 0;
}
.timeline li::before {
  content: ""; position: absolute; left: 39px; top: 80px; bottom: 0;
  width: 2px; background: var(--green); opacity: 0.4;
}
.timeline li:last-child::before { display: none; }
.timeline__years {
  flex: 0 0 80px; height: 80px; border-radius: 50%;
  background: #fff; border: 2px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 18px; color: var(--green-dark);
}
.timeline li:last-child .timeline__years { background: var(--green-dark); color: #fff; border-color: var(--green-dark); font-size: 16px; }
.timeline__body { padding-top: 14px; }
.timeline__body h3 { font-size: 20px; }
.timeline__body p { margin: 6px 0 0; color: var(--text-sub); font-size: 15px; }

.timeline { margin-bottom: 72px; }
.history { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
.history dt { color: var(--green-dark); font-weight: 500; white-space: nowrap; }
.history dd { margin: 0; color: var(--text-sub); }

/* 保有資格 */
.licenses { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.licenses__group { background: #fff; border-radius: 4px; padding: 24px; }
.licenses__group h4 {
  margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-weight: 500; font-size: 17px; color: var(--green-dark);
}
.licenses__group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.licenses__group li {
  font-size: 13px; padding: 3px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--green-pale);
}

/* ===== 代表挨拶 ===== */
.message p { margin: 0 0 1.4em; }
.message__sign { text-align: right; margin-top: 2.4em !important; font-size: 14px; color: var(--text-sub); }
.message__sign span { font-family: var(--serif); font-size: 22px; color: var(--text); letter-spacing: 0.2em; }

/* ===== 会社概要 ===== */
.company { width: 100%; border-collapse: collapse; background: #fff; }
.company th, .company td {
  text-align: left; vertical-align: top;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
}
.company th { width: 28%; font-weight: 500; color: var(--green-dark); white-space: nowrap; }

/* ===== お問い合わせ ===== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact__item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 32px 20px; border: 1px solid var(--line); border-radius: 4px;
  text-decoration: none; color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.contact__item:hover { border-color: var(--green); background: var(--green-pale); }
.contact__label { font-size: 14px; color: var(--green-dark); font-weight: 500; }
.contact__value { font-family: var(--serif); font-size: 26px; margin: 6px 0; letter-spacing: 0.06em; }
.contact__value--mail { font-size: 18px; word-break: break-all; }
.contact__note { font-size: 13px; color: var(--text-sub); }

.form-placeholder {
  margin-top: 32px; padding: 48px 20px; text-align: center;
  border: 2px dashed var(--line); border-radius: 4px; color: var(--text-sub);
}
.form-placeholder p { margin: 0; }
.form-embed { width: 100%; height: 900px; border: 0; margin-top: 32px; }

/* ===== フッター ===== */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 24px 32px; text-align: center;
}
.footer__logo { width: 240px; margin: 0 auto 16px; }
.footer__addr { margin: 0; font-size: 13px; color: var(--text-sub); }
.footer__copy { margin: 16px 0 0; font-size: 12px; color: var(--text-sub); }

/* ===== スマホ対応 ===== */
@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .header__inner { padding: 0 16px; }
  .header__logo img { height: 30px; }

  .nav-toggle {
    display: block; position: relative; width: 40px; height: 40px;
    background: none; border: 0; padding: 0; cursor: pointer;
  }
  .nav-toggle span {
    position: absolute; left: 9px; width: 22px; height: 2px; background: var(--text);
    transition: transform 0.25s, opacity 0.25s;
  }
  .nav-toggle span:nth-child(1) { top: 13px; }
  .nav-toggle span:nth-child(2) { top: 19px; }
  .nav-toggle span:nth-child(3) { top: 25px; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { width: 100%; padding: 16px; text-align: center; border-top: 1px solid var(--line); font-size: 15px; }
  .nav .nav__cta { border-radius: 0; }

  .container { padding: 0 16px; }
  .sp-only { display: inline; }
  .pc-only { display: none; }

  .hero { min-height: auto; padding: calc(var(--header-h) + 56px) 16px 64px; }
  .hero__mark { width: 110vw; right: -30%; top: 30%; opacity: 0.1; }
  .hero__lead { font-size: 15px; }

  .section { padding: 72px 0; }
  .section__title { margin-bottom: 36px; }
  .section__lead { text-align: left; font-size: 15px; }

  .cards { grid-template-columns: 1fr; }

  .points { gap: 8px; margin-bottom: 48px; }
  .points li { padding: 16px 4px; font-size: 12px; }
  .points strong { font-size: 26px; }
  .points small { font-size: 14px; }
  .licenses { grid-template-columns: 1fr; }
  .history { grid-template-columns: 1fr; gap: 0; }
  .history dd { margin-bottom: 8px; }

  .timeline li { gap: 16px; }
  .timeline__years { flex-basis: 64px; height: 64px; font-size: 15px; }
  .timeline li:last-child .timeline__years { font-size: 14px; }
  .timeline li::before { left: 31px; top: 64px; }
  .timeline__body { padding-top: 6px; }
  .timeline__body h3 { font-size: 18px; }

  .company th, .company td { display: block; width: 100%; padding: 12px 16px; }
  .company th { border-bottom: 0; padding-bottom: 0; }

  .contact { grid-template-columns: 1fr; }
  .contact__value { font-size: 24px; }
}
