:root {
  --base: #fafaf8;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e5e4df;
  --indigo: #1b3a5b;
  --max-width: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 4px;
}

.wrap {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-inline: 32px;
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  border-bottom: 1px solid transparent;
  background: rgb(250 250 248 / 82%);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease;
}

.site-header.scrolled,
.site-header.menu-active {
  border-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  font-family: "Inter", sans-serif;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 40px;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--indigo);
}

.menu-btn {
  display: none;
  width: 32px;
  height: 32px;
  padding: 6px 3px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 5px 0;
  background: var(--ink);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero,
.profile-hero {
  display: flex;
  min-height: 100svh;
  align-items: center;
}

.hero-inner,
.profile-hero-inner {
  padding-block: 120px 80px;
}

.eyebrow {
  margin-bottom: 34px;
  color: var(--indigo);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 40px;
  font-family: "Inter", sans-serif;
  font-size: clamp(52px, 9vw, 120px);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1;
}

.lead {
  max-width: 30em;
  font-size: clamp(15px, 2.4vw, 19px);
}

.hero-line {
  width: 1px;
  height: 80px;
  margin-top: 64px;
  background: var(--indigo);
  opacity: 0.5;
}

main > section:not(.hero, .profile-hero) {
  padding-block: 120px;
  scroll-margin-top: 72px;
}

.sec-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
  color: var(--indigo);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.sec-label::before {
  width: 28px;
  height: 1px;
  background: var(--indigo);
  content: "";
}

.sec-label.centered {
  justify-content: center;
}

.sec-label.centered::before {
  display: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.service {
  padding: 48px 40px;
  background: var(--base);
  transition: background 0.3s ease;
}

.service:hover {
  background: var(--surface);
}

.service .num {
  margin-bottom: 28px;
  color: var(--indigo);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.service h3 {
  margin-bottom: 6px;
  font-size: 19px;
  font-weight: 500;
}

.service .en {
  margin-bottom: 24px;
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.service > p:last-child {
  color: var(--muted);
  font-size: 14px;
}

.about-intro {
  max-width: 20em;
  margin-bottom: 72px;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.7;
}

.about-intro strong {
  color: var(--indigo);
  font-weight: 400;
}

.table-scroll {
  overflow-x: auto;
}

.info {
  width: 100%;
  border-collapse: collapse;
}

.info th,
.info td {
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.info th {
  width: 180px;
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.info td {
  min-width: 360px;
  font-size: 15px;
}

.info a,
.profile-list a {
  color: var(--indigo);
  text-decoration-color: var(--line);
  text-underline-offset: 5px;
  transition: text-decoration-color 0.25s ease;
}

.info a:hover,
.profile-list a:hover {
  text-decoration-color: var(--indigo);
}

.contact {
  text-align: center;
}

.contact h2 {
  margin-bottom: 36px;
  font-family: "Inter", sans-serif;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 300;
}

.contact .mail {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  color: var(--indigo);
  font-family: "Inter", sans-serif;
  font-size: clamp(22px, 4vw, 38px);
  font-weight: 400;
  text-decoration: none;
  transition: border-color 0.3s ease;
}

.contact .mail:hover {
  border-color: var(--indigo);
}

.site-footer {
  padding-block: 48px;
  border-top: 1px solid var(--line);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.fname {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.addr {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.copy {
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.profile-hero {
  min-height: 88svh;
}

.profile-kicker {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
}

.profile-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.25;
}

.profile-reading {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.16em;
}

.profile-en {
  margin-top: 26px;
  color: var(--indigo);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
}

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

.profile-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}

.profile-row dt {
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-row dd {
  font-size: 16px;
}

.text-link span {
  display: inline-block;
  margin-left: 4px;
  font-size: 12px;
  text-decoration: none;
}

@media (max-width: 768px) {
  .wrap {
    padding-inline: 24px;
  }

  .menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 72px 0 auto;
    display: flex;
    max-height: 0;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border-bottom: 1px solid transparent;
    background: rgb(250 250 248 / 98%);
    opacity: 0;
    visibility: hidden;
    transition:
      max-height 0.3s ease,
      opacity 0.2s ease,
      visibility 0.2s ease,
      border-color 0.3s ease;
  }

  .nav-links.is-open {
    max-height: 260px;
    border-color: var(--line);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    border-top: 1px solid var(--line);
  }

  .nav-links a {
    display: block;
    padding: 18px 24px;
  }

  .hero-inner,
  .profile-hero-inner {
    padding-block: 112px 64px;
  }

  main > section:not(.hero, .profile-hero) {
    padding-block: 88px;
  }

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

  .service {
    padding: 40px 32px;
  }

  .info th {
    width: 120px;
    font-size: 11px;
  }

  .profile-row {
    grid-template-columns: 120px 1fr;
  }

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

@media (max-width: 480px) {
  .profile-hero h1 {
    font-size: clamp(40px, 14vw, 62px);
  }

  .profile-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .info th,
  .info td {
    display: block;
    width: auto;
    min-width: 0;
  }

  .info th {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .info td {
    padding-top: 6px;
  }
}

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

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