:root {
  color-scheme: light;
  --background: #f7f8fc;
  --surface: #ffffff;
  --surface-container: #eef2ff;
  --ink: #1a1b1f;
  --muted: #62656d;
  --line: #e1e3e8;
  --accent: #3159c7;
  --accent-dark: #1d419f;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-card: 0 1px 2px rgba(22, 28, 45, 0.08), 0 2px 8px rgba(22, 28, 45, 0.05);
  --shadow-hover: 0 8px 24px rgba(21, 28, 48, 0.13);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

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

.site-header {
  display: flex;
  width: min(1180px, calc(100% - 64px));
  height: 76px;
  margin: 0 auto;
  align-items: center;
  justify-content: flex-start;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 56px;
  height: 46px;
  flex: 0 0 auto;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand-name strong {
  font-weight: 800;
}

main {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.hero {
  padding: 46px 0 28px;
}

h1 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.4;
  letter-spacing: -0.03em;
}

.services-section {
  padding: 20px 0 96px;
}

.section-heading {
  display: flex;
  margin-bottom: 22px;
  align-items: end;
  justify-content: space-between;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.04em;
}

.service-count {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
}

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

.service-card {
  display: flex;
  min-height: 310px;
  padding: 22px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  border-color: color-mix(in srgb, var(--card-color, var(--accent)) 32%, white);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.service-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--card-color, var(--accent)) 45%, transparent);
  outline-offset: 3px;
}

.service-card[aria-disabled="true"] {
  cursor: default;
}

.service-card[aria-disabled="true"]:hover {
  border-color: var(--line);
  box-shadow: var(--shadow-card);
  transform: none;
}

.card-top,
.card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--card-color, var(--accent)) 12%, white);
  color: var(--card-color, var(--accent));
}

.service-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.status-badge {
  padding: 6px 9px;
  border-radius: 999px;
  background: #edf7f0;
  color: #23703e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.service-card[aria-disabled="true"] .status-badge {
  background: #f0f1f3;
  color: #73777d;
}

.card-content {
  display: flex;
  margin-top: 22px;
  flex-direction: column;
}

.service-name {
  margin-top: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.service-description {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.card-action {
  margin-top: auto;
  min-height: 44px;
  padding: 0 15px;
  border: 0;
  border-radius: 12px;
  background: var(--card-color, var(--accent));
  color: #fff;
  box-shadow: 0 1px 3px color-mix(in srgb, var(--card-color, var(--accent)) 26%, transparent);
}

.action-label {
  font-size: 13px;
  font-weight: 700;
}

.card-action svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 180ms ease;
}

.service-card:hover .card-action svg {
  transform: translate(2px, -2px);
}

.service-card[aria-disabled="true"] .card-action {
  background: #e4e6ea;
  color: #72757d;
  box-shadow: none;
}

.service-card[aria-disabled="true"] .card-action svg {
  display: none;
}

.empty-state {
  padding: 72px 24px;
  border: 1px dashed #c9ccd2;
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
}

.empty-state p {
  margin: 0;
}

.error-message {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px solid #f0c9c9;
  border-radius: var(--radius-md);
  background: #fff7f7;
  color: #8d2d2d;
  font-size: 14px;
}

.site-footer {
  display: flex;
  width: min(1180px, calc(100% - 64px));
  min-height: 88px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.05em;
}

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

@media (max-width: 620px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 36px, 1180px);
  }

  .site-header {
    height: 68px;
  }

  .brand-mark {
    width: 50px;
    height: 40px;
  }

  .hero {
    padding: 34px 0 22px;
  }

  h1 {
    font-size: clamp(16px, 5.2vw, 22px);
    white-space: nowrap;
  }

  .section-heading {
    margin-bottom: 18px;
  }

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

  .service-card {
    min-height: 248px;
    padding: 14px;
    border-radius: 16px;
  }

  .service-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .service-icon svg {
    width: 22px;
    height: 22px;
  }

  .status-badge {
    padding: 5px 6px;
    font-size: 8px;
    letter-spacing: 0.02em;
  }

  .card-content {
    margin-top: 18px;
  }

  .service-name {
    font-size: 17px;
    line-height: 1.35;
  }

  .service-description {
    margin-top: 7px;
    font-size: 11px;
    line-height: 1.55;
  }

  .card-action {
    min-height: 40px;
    padding: 0 10px;
    border-radius: 10px;
  }

  .action-label {
    font-size: 11px;
  }

  .card-action svg {
    width: 16px;
    height: 16px;
  }

  .services-section {
    padding: 18px 0 72px;
  }

  .site-footer {
    min-height: 92px;
  }

}

@media (max-width: 360px) {
  .status-badge,
  .card-action svg {
    display: none;
  }

  .card-action {
    justify-content: center;
  }
}

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

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