:root {
  --ink: #162033;
  --muted: #5d6879;
  --line: #dce3eb;
  --surface: #ffffff;
  --surface-soft: #f4f7fa;
  --brand: #0878b8;
  --brand-dark: #075985;
  --brand-soft: #e7f6fd;
  --accent: #1ec5e5;
  --shadow: 0 18px 50px rgba(22, 32, 51, 0.09);
  --radius-lg: 24px;
  --radius-md: 16px;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brand-dark);
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand-dark);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 227, 235, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 760;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: transparent;
  background: #fff url("/favicon.png") center / cover no-repeat;
  font-family: Georgia, serif;
  font-size: 0;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(8, 120, 184, 0.22);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: #3c4859;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 88px;
  background:
    radial-gradient(circle at 86% 12%, rgba(30, 197, 229, 0.18), transparent 25%),
    radial-gradient(circle at 8% 70%, rgba(8, 120, 184, 0.13), transparent 27%),
    linear-gradient(180deg, #f5fbff 0%, #fff 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(8, 120, 184, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(8, 120, 184, 0.04), 0 0 0 88px rgba(8, 120, 184, 0.025);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(27px, 4vw, 38px);
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
}

.hero-copy {
  max-width: 680px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 22px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-weight: 720;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  color: #fff;
  background: var(--brand-dark);
  box-shadow: 0 10px 24px rgba(8, 120, 184, 0.22);
  transform: translateY(-2px);
}

.button.secondary {
  color: var(--brand);
  background: #fff;
  border-color: var(--line);
}

.button.secondary:hover {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.hero-panel {
  padding: 30px;
  border: 1px solid rgba(8, 120, 184, 0.13);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.hero-panel-title {
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.stat:first-of-type {
  border-top: 0;
}

.stat strong {
  color: var(--brand);
  font-family: Georgia, serif;
  font-size: 28px;
}

.stat span {
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.section {
  padding: 88px 0;
}

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

.section-heading {
  max-width: 690px;
  margin-bottom: 40px;
}

.section-heading p,
.lead {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 10px 35px rgba(22, 32, 51, 0.055);
}

.service-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 14px;
  color: var(--brand);
  background: var(--brand-soft);
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 700;
}

.service-card p {
  color: var(--muted);
}

.service-meta {
  margin: auto 0 22px;
  padding: 15px 0 0;
  border-top: 1px solid var(--line);
  color: #697587;
  font-size: 13px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 720;
  text-decoration: none;
}

.text-link::after {
  content: "\2192";
  transition: transform 0.2s ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

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

.value-item {
  padding-top: 21px;
  border-top: 3px solid var(--brand);
}

.value-item p {
  margin: 0;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 70px;
}

.about-copy p {
  color: var(--muted);
}

.info-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.info-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.info-row dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.info-row dd {
  margin: 0;
}

.page-hero {
  padding: 68px 0 54px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f3faff 0%, #fff 100%);
}

.page-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 6vw, 52px);
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.content-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  align-items: start;
  justify-content: space-between;
  gap: 72px;
}

.side-nav {
  position: sticky;
  top: 104px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.side-nav strong {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.side-nav a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.side-nav a:hover {
  color: var(--brand);
}

.prose {
  min-width: 0;
}

.prose section {
  padding: 0 0 42px;
  margin: 0 0 42px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}

.prose section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.prose h2 {
  margin-bottom: 18px;
  font-size: 27px;
}

.prose h3 {
  margin-top: 28px;
  font-size: 19px;
}

.prose p,
.prose li {
  color: #485568;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li + li {
  margin-top: 7px;
}

.updated {
  display: inline-block;
  margin-top: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 13px;
}

.notice {
  padding: 22px 24px;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: #eefaff;
}

.notice p {
  margin: 0;
}

.contact-card {
  padding: 32px;
  border: 1px solid rgba(8, 120, 184, 0.22);
  border-radius: var(--radius-lg);
  background: var(--brand-soft);
}

.contact-card h2 {
  font-size: 27px;
}

.contact-card p {
  color: #355d73;
}

.site-footer {
  padding: 54px 0 26px;
  color: #d8ebf5;
  background: #082d44;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(2, minmax(150px, 0.55fr));
  gap: 50px;
  padding-bottom: 42px;
}

.footer-brand {
  color: #fff;
}

.footer-description {
  max-width: 430px;
  margin: 16px 0 0;
  color: #aecbd9;
  font-size: 14px;
}

.footer-heading {
  margin: 0 0 13px;
  color: #fff;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #c8deea;
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #91b4c7;
  font-size: 12px;
}

@media (max-width: 860px) {
  .site-nav {
    gap: 14px;
  }

  .site-nav a:nth-child(2) {
    display: none;
  }

  .hero {
    padding: 74px 0 66px;
  }

  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-panel {
    max-width: 520px;
  }

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

  .content-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .side-nav {
    position: static;
    display: none;
  }
}

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

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

  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 18px;
  }

  .site-nav a:not(:last-child) {
    display: none;
  }

  .site-nav a:last-child {
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
  }

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

  .hero-grid {
    gap: 34px;
  }

  h1 {
    font-size: 40px;
  }

  .section {
    padding: 62px 0;
  }

  .services-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
    padding: 26px;
  }

  .service-meta {
    margin-top: 20px;
  }

  .page-hero {
    padding: 48px 0 38px;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .footer-grid {
    gap: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
