/* ===== 基本設定 ===== */
:root {
  --navy: #14305a;
  --navy-dark: #0c2143;
  --green: #4caf3a;
  --green-dark: #3a8f2b;
  --green-light: #eaf6e6;
  --text: #2b2f36;
  --text-sub: #5b6270;
  --line: #e1e5eb;
  --gray-bg: #f5f7fa;
  --white: #fff;
  --header-h: 72px;
  --radius: 12px;
  --en: "Montserrat", sans-serif;
}

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

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

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.9;
  letter-spacing: .03em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 40px); }

.pc-only { display: none; }
@media (min-width: 768px) { .pc-only { display: inline; } }

/* ===== ボタン ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); }
.btn--ghost { border: 1px solid rgba(255,255,255,.6); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.1); }

/* ===== ヘッダー ===== */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 2px 12px rgba(20,48,90,.08); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  font-size: 15px;
}
.header__logo img { width: 40px; }

.nav ul { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  transition: color .2s;
}
.nav a:hover { color: var(--green-dark); }
.nav .nav__cta {
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
}
.nav .nav__cta:hover { background: var(--navy-dark); color: var(--white); }

.menu-btn { display: none; }

@media (max-width: 860px) {
  .menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .menu-btn span {
    display: block;
    height: 2px;
    background: var(--navy);
    transition: transform .25s, opacity .25s;
  }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 8px 16px rgba(20,48,90,.08);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; }
  .nav li a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .nav__cta { margin-top: 16px; text-align: center; border-bottom: 0; }
}

/* ===== メインビジュアル ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(720px, 100svh);
  padding: calc(var(--header-h) + 60px) 0 80px;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 20%, rgba(76,175,58,.35), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(76,175,58,.18), transparent 40%),
    linear-gradient(135deg, var(--navy-dark), var(--navy) 60%, #1d4a7a);
  overflow: hidden;
}
.hero::after {
  /* 装飾用の細い格子 */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; width: min(1120px, 100% - 40px); margin-inline: auto; }
.hero__label {
  font-family: var(--en);
  font-weight: 600;
  letter-spacing: .2em;
  font-size: 13px;
  color: #9fdc8f;
  text-transform: uppercase;
}
.hero__title {
  margin-top: 16px;
  margin-left: -.5em; /* 先頭の『を左にぶら下げて本文と揃える */
  font-size: clamp(24px, 6.8vw, 56px);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.hero__text {
  margin-top: 28px;
  max-width: 640px;
  font-size: clamp(15px, 1.8vw, 17px);
  color: rgba(255,255,255,.88);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* ===== セクション共通 ===== */
.section { padding: 100px 0; }
.section--gray { background: var(--gray-bg); }
.section--navy { background: var(--navy); color: var(--white); }
@media (max-width: 767px) { .section { padding: 72px 0; } }

.section__head { text-align: center; margin-bottom: 56px; }
.section__en {
  font-family: var(--en);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.section__title {
  margin-top: 6px;
  font-size: clamp(26px, 3.5vw, 34px);
  color: var(--navy);
}
.section__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin: 18px auto 0;
  background: var(--green);
  border-radius: 2px;
}
.section__head--light .section__en { color: #9fdc8f; }
.section__head--light .section__title { color: var(--white); }

/* ===== 事業内容 ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; } }

.card {
  position: relative;
  padding: 40px 32px 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(20,48,90,.06);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
}
.card__icon svg { width: 32px; height: 32px; }
.card__num {
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: var(--en);
  font-size: 36px;
  font-weight: 600;
  color: #e6ebf2;
  line-height: 1;
}
.card__title { margin-top: 24px; font-size: 20px; color: var(--navy); }
.card__text { margin-top: 14px; font-size: 15px; color: var(--text-sub); }
.card__tag {
  display: inline-block;
  margin-top: 20px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  background: var(--gray-bg);
  border-radius: 999px;
}
.scope { margin-top: 20px; display: grid; gap: 8px; }
.scope li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text); }
.scope span {
  flex-shrink: 0;
  width: 72px;
  padding: 2px 0;
  text-align: center;
  font-family: var(--en);
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  background: var(--navy);
  border-radius: 4px;
}

/* ===== 会社概要 ===== */
.about {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: center;
  padding: 48px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(20,48,90,.06);
}
.about__logo img { width: 100%; max-width: 260px; margin-inline: auto; }
.about__table > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.about__table > div:first-child { border-top: 1px solid var(--line); }
.about__table dt { font-weight: 700; color: var(--navy); }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 32px; padding: 32px 20px; }
  .about__logo img { max-width: 180px; }
  .about__table > div { grid-template-columns: 80px 1fr; gap: 12px; font-size: 15px; }
}

/* ===== ニュース ===== */
.news { border-top: 1px solid var(--line); }
.news li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}
.news time { font-family: var(--en); font-weight: 500; color: var(--green-dark); }
@media (max-width: 600px) { .news li { grid-template-columns: 1fr; gap: 4px; } }

/* ===== お問い合わせ ===== */
.contact-tel {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
}
.contact-tel__lead, .contact-form__lead { font-weight: 700; }
.contact-tel__num {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--en);
  font-size: clamp(30px, 6vw, 42px);
  font-weight: 600;
  letter-spacing: .05em;
  text-decoration: none;
  color: var(--white);
}
.contact-tel__num::before {
  content: "";
  display: inline-block;
  width: .7em;
  height: .7em;
  margin-right: .3em;
  background: #9fdc8f;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.contact-tel__hours { margin-top: 4px; font-size: 14px; color: rgba(255,255,255,.8); }

.contact-form { margin-top: 40px; text-align: center; }
.contact-form__frame {
  display: block;
  margin-top: 16px;
  background: #f0ebf8; /* Googleフォームの背景色に合わせる */
  border-radius: var(--radius);
}
.contact-form__alt { margin-top: 12px; font-size: 13px; color: rgba(255,255,255,.75); }
.contact-form__alt a { color: #9fdc8f; }

/* ===== フッター ===== */
.footer { background: var(--navy-dark); color: rgba(255,255,255,.75); padding: 28px 0; font-size: 13px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer__name { color: var(--white); font-weight: 500; }
.footer__copy { font-family: var(--en); }
