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

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-alt: #eef3f9;
  --text: #1d2733;
  --muted: #5f6b7a;
  --line: #d9e2ec;
  --accent: #214a72;
  --accent-soft: #dfeaf5;
  --shadow: 0 10px 30px rgba(20, 35, 52, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  padding: 88px 0 72px;
  background:
    linear-gradient(135deg, rgba(33, 74, 114, 0.95), rgba(44, 96, 145, 0.88)),
    linear-gradient(180deg, #315b88, #20384f);
  color: #fff;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.site-header h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.2;
}

.lead {
  max-width: 760px;
  margin: 0;
  font-size: 1.08rem;
  color: rgba(255,255,255,0.92);
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--surface-alt);
}

h2 {
  margin: 0 0 28px;
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  line-height: 1.3;
}

h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.15rem;
  line-height: 1.4;
}

p {
  margin: 0 0 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.grid-two {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}

.profile {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}

.service-grid,
.area-grid {
  display: grid;
  gap: 20px;
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
}

.area-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-card p:last-child,
.card p:last-child {
  margin-bottom: 0;
}

.profile-name {
  margin-bottom: 6px;
  font-size: 1.5rem;
  font-weight: 700;
}

.profile-title {
  color: var(--accent);
  font-weight: 600;
}

.tag-list,
.book-list {
  margin: 0;
  padding-left: 1.2em;
}

.tag-list li,
.book-list li {
  margin-bottom: 10px;
}

.area-grid .card {
  text-align: center;
  font-weight: 600;
  padding: 22px 16px;
}

.contact-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

@media (max-width: 920px) {
  .grid-two,
  .profile,
  .service-grid,
  .area-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 640px) {
  .site-header {
    padding: 72px 0 56px;
  }

  .section {
    padding: 56px 0;
  }

  .grid-two,
  .profile,
  .area-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 20px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
