/* ===== リセット・基本 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #2e7d52;
  --green-light: #4caf50;
  --green-pale: #e8f5e9;
  --blue: #1565c0;
  --blue-light: #42a5f5;
  --blue-pale: #e3f2fd;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --text: #1f2937;
  --text-light: #6b7280;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== ボタン ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-primary:hover { background: #1b5e37; border-color: #1b5e37; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(46,125,82,0.35); }
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.btn-full { width: 100%; }

/* ===== セクション共通 ===== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--green);
  background: var(--green-pale);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--gray-800);
  margin-bottom: 16px;
}
.section-desc {
  color: var(--text-light);
  font-size: 1rem;
}

/* ===== ヘッダー ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo { display: flex; flex-direction: column; gap: 1px; }
.logo-main {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.logo-sub { font-size: 0.65rem; color: var(--text-light); letter-spacing: 0.1em; }
.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s;
}
.nav a:hover { color: var(--green); }
.header-cta {
  background: var(--green);
  color: #fff;
  padding: 8px 22px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.25s;
  white-space: nowrap;
}
.header-cta:hover { background: #1b5e37; }

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a5c38 0%, #1565c0 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/hero.jpg') center/cover no-repeat;
  opacity: 0.28;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,92,56,0.85) 0%, rgba(21,101,192,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}
.hero-tagline {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.3);
}
.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: #fff;
  line-height: 1.4;
  margin-bottom: 24px;
}
.hero-desc {
  color: rgba(255,255,255,0.85);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  margin-bottom: 40px;
  max-width: 560px;
}
.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== サービス ===== */
.services {
  padding: 100px 0;
  background: var(--white);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-light);
  background: #fff;
}
.service-icon { font-size: 2.4rem; margin-bottom: 16px; }
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 12px;
}
.service-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }
.service-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  transition: color 0.2s;
}
.service-link:hover { color: #1b5e37; }

/* ===== 特徴 ===== */
.features {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--green-pale) 0%, var(--blue-pale) 100%);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.feature-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  position: relative;
}
.feature-num {
  font-size: 3rem;
  font-weight: 700;
  color: var(--green-pale);
  font-family: 'Noto Serif JP', serif;
  line-height: 1;
  margin-bottom: 8px;
}
.feature-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
}
.feature-item p { font-size: 0.9rem; color: var(--text-light); line-height: 1.8; }

/* ===== 事務所 ===== */
.office {
  padding: 100px 0;
  background: var(--gray-50);
}
.office-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 12px;
}
.office-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.office-sub {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 12px;
}
.office-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.office-grid img {
  transition: transform 0.3s;
}
.office-grid img:hover {
  transform: scale(1.02);
  z-index: 1;
  position: relative;
}

/* ===== スタッフ ===== */
.staff {
  padding: 100px 0;
  background: var(--white);
}
.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 860px;
  margin: 0 auto;
}
.staff-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--gray-200);
}
.staff-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--green-pale);
}
.staff-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.staff-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.staff-role {
  font-size: 0.75rem;
  background: var(--green-pale);
  color: var(--green);
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 500;
  vertical-align: middle;
  margin-left: 8px;
}
.staff-career {
  font-size: 0.82rem;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 8px;
}
.staff-bio { font-size: 0.875rem; color: var(--text-light); line-height: 1.75; }

/* ===== アクセス ===== */
.access {
  padding: 80px 0;
  background: var(--gray-50);
}
.access-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.access-table { width: 100%; border-collapse: collapse; }
.access-table th, .access-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9rem;
  text-align: left;
}
.access-table th {
  color: var(--text-light);
  font-weight: 500;
  width: 30%;
  white-space: nowrap;
}
.access-table a { color: var(--green); }
.access-note { font-size: 0.82rem; color: var(--text-light); margin-top: 16px; }
.map-placeholder {
  background: var(--gray-200);
  border-radius: var(--radius);
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1rem;
}

/* ===== お問い合わせ ===== */
.contact {
  padding: 100px 0;
  background: linear-gradient(135deg, #1a5c38 0%, #1565c0 100%);
}
.contact .section-label { background: rgba(255,255,255,0.2); color: #fff; }
.contact .section-title { color: #fff; }
.contact .section-desc { color: rgba(255,255,255,0.8); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}
.contact-tel {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  color: #fff;
}
.tel-label { font-size: 0.85rem; margin-bottom: 12px; opacity: 0.85; }
.tel-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  transition: opacity 0.2s;
}
.tel-number:hover { opacity: 0.8; }
.tel-hours { font-size: 0.8rem; opacity: 0.75; line-height: 1.6; }
.contact-form-wrap {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}
.required {
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s;
  background: #fff;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,125,82,0.1);
}
.form-group textarea { resize: vertical; }

/* ===== フッター ===== */
.footer {
  background: var(--gray-800);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 32px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer .logo-main { color: #fff; font-size: 1.2rem; }
.footer .logo-sub { color: rgba(255,255,255,0.5); }
.footer-links, .footer-sns {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a, .footer-sns a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-links a:hover, .footer-sns a:hover { color: #fff; }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.4); text-align: center; }

/* ===== アニメーション ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
}

/* ===== ハンバーガーメニュー ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .header-cta { display: none; }
  .office-grid { grid-template-columns: 1fr; }
  .office-sub { grid-template-rows: unset; grid-template-columns: repeat(3, 1fr); }
  .nav {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    z-index: 99;
  }
  .nav.open { display: flex; }
  .nav a {
    font-size: 1rem;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-800);
  }
  .nav a:last-child { border-bottom: none; }
  .header-inner { gap: 16px; }
  .hero-btns { flex-direction: column; }
  .features-grid { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: 1fr; }
  .access-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .staff-card { flex-direction: column; align-items: center; text-align: center; }
  .contact-form-wrap { padding: 24px; }
}
