@charset "UTF-8";

:root {
  --text: #202b3c;
  --muted: #657184;
  --line: #dfe5ec;
  --bg: #f6f8fb;
  --white: #ffffff;
  --navy: #173a63;
  --blue: #2563a7;
  --pale-blue: #edf5fc;
  --shadow: 0 12px 30px rgba(28, 52, 78, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.header-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero {
  padding: 76px 0 58px;
  background: linear-gradient(180deg, #f4f8fc 0%, #ffffff 100%);
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.lead {
  max-width: 820px;
  margin: 24px auto 0;
  color: #4d5a6b;
  font-size: 1.05rem;
}

.notice-section {
  padding: 16px 0 58px;
}

.notice-box {
  max-width: 920px;
  margin: 0 auto;
  padding: 30px 34px;
  border: 1px solid #cddded;
  border-left: 5px solid var(--blue);
  border-radius: 10px;
  background: var(--pale-blue);
}

.notice-box h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 1.25rem;
}

.notice-box p {
  margin: 8px 0;
}

.notice-box a {
  color: #145c9e;
  font-weight: 700;
}

.services {
  padding: 68px 0 80px;
  background: var(--bg);
}

.section-heading {
  margin-bottom: 30px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-3px);
  border-color: #9bbbdc;
  box-shadow: 0 16px 38px rgba(28, 52, 78, 0.12);
}

.service-card.featured {
  border-top: 4px solid var(--blue);
  padding-top: 25px;
}

.card-label {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.service-card h3 {
  margin: 10px 0 9px;
  color: var(--navy);
  font-size: 1.25rem;
}

.service-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-link {
  margin-top: auto;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 800;
}

.company-section {
  padding: 70px 0;
}

.company-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 38px 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.company-box h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.45rem;
}

.company-box p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.company-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 7px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.company-button:hover,
.company-button:focus-visible {
  opacity: 0.9;
}

.site-footer {
  padding: 28px 0;
  background: #162b44;
  color: #dbe5ef;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.84rem;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container,
  .header-inner {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    min-height: 64px;
  }

  .header-note {
    font-size: 0.78rem;
  }

  .hero {
    padding: 54px 0 42px;
  }

  .lead br {
    display: none;
  }

  .notice-section {
    padding-bottom: 42px;
  }

  .notice-box {
    padding: 24px 22px;
  }

  .services {
    padding: 52px 0 58px;
  }

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

  .service-card {
    min-height: auto;
  }

  .company-section {
    padding: 48px 0;
  }

  .company-box {
    padding: 28px 24px;
  }

  .company-button {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    gap: 4px;
  }
}
