:root {
  --color-text: #222;
  --color-muted: #777;
  --color-border: #e5e5e5;
  --color-accent: #2f5fb3;
  --color-bg: #fff;

  --font-sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --container: 1040px;
  --gutter: clamp(16px, 4vw, 28px);
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-accent);
}

.skip-link:focus {
  top: 8px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 2px solid var(--color-accent);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
}

.site-logo {
  color: var(--color-text);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-logo:hover {
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  column-gap: 24px;
}

.site-nav a {
  color: var(--color-muted);
  font-size: 13px;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--color-text);
  text-decoration: none;
}

/* Hero */

.hero {
  padding: clamp(72px, 12vw, 140px) 0 clamp(64px, 10vw, 120px);
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(32px, 6.4vw, 60px);
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.hero__title span {
  display: inline-block;
}

.hero__lead {
  margin-top: 20px;
  font-size: clamp(15px, 1.8vw, 17px);
}

/* Section */

.section {
  padding: clamp(64px, 10vw, 112px) 0;
  border-top: 1px solid var(--color-border);
}

.section__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 32px);
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.section__lead {
  margin-top: 20px;
}

/* Services */

.services {
  margin-top: 40px;
  border-top: 1px solid var(--color-border);
}

.service {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 8px 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
}

.service__label {
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.service__body p {
  font-size: 14px;
}

.service__name {
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.service__link {
  margin-top: 16px;
}

.service__link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(47, 95, 179, 0.4);
}

.service__link a:hover {
  text-decoration-color: currentColor;
}

.icon-external {
  flex: none;
}

/* Profile (company / contact) */

.profile {
  margin-top: 40px;
  border-top: 1px solid var(--color-border);
}

.profile__row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 4px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.profile dt {
  color: var(--color-muted);
  font-size: 13px;
}

.profile--contact .profile__row {
  padding: 24px 0;
}

/* Footer */

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 12px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  row-gap: 4px;
}

.site-footer__links li + li::before {
  content: "｜";
  margin: 0 0.6em;
  color: #ccc;
}

.site-footer__links a {
  color: var(--color-muted);
}

.site-footer__copy small {
  font-size: inherit;
}

/* Small screens */

@media (max-width: 600px) {
  body {
    font-size: 14px;
  }

  .site-header__inner {
    min-height: 56px;
  }

  .site-logo {
    font-size: 14px;
  }

  .site-nav ul {
    column-gap: 14px;
  }

  .site-nav a {
    font-size: 12px;
  }

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

  .service {
    padding: 28px 0;
  }

  .profile__row {
    padding: 14px 0;
  }

  .site-footer__links {
    column-gap: 20px;
  }

  .site-footer__links li + li::before {
    content: none;
  }
}

@media (max-width: 360px) {
  .site-nav {
    display: none;
  }
}
