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

:root {
  --color-navy: #1e3a5f;
  --color-blue: #2563eb;
  --color-blue-light: #eff6ff;
  --color-text: #334155;
  --color-text-muted: #64748b;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-border: #e2e8f0;
  --max-width: 1080px;
  --header-height: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo img {
  height: 36px;
  width: auto;
}

.nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav a {
  color: var(--color-navy);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-navy);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Hero */
.hero {
  padding: 6rem 0 5rem;
  background: linear-gradient(160deg, var(--color-blue-light) 0%, var(--color-bg) 60%);
}

.hero__content {
  max-width: 840px;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--color-navy);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}

.hero__cta:hover {
  background: var(--color-blue);
  text-decoration: none;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.section__lead {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 640px;
  margin-bottom: 2.5rem;
}

/* Message */
.message-layout {
  display: grid;
  grid-template-columns: min(240px, 32%) 1fr;
  gap: 3rem;
  align-items: start;
}

.message-photo {
  margin: 0;
}

.message-photo img {
  width: 100%;
  height: auto;
}

.message-body {
  max-width: none;
}

.message-body p {
  font-size: 1.0625rem;
  color: var(--color-text);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.message-signature {
  margin-top: 2rem;
  margin-bottom: 0;
  text-align: right;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
}

/* About */
.table-wrap {
  padding: 2rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow-x: auto;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 0.875rem 0;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--color-border);
}

.company-table tr:first-child th,
.company-table tr:first-child td {
  border-top: none;
  padding-top: 0;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  padding-bottom: 0;
}

.company-table th[scope="row"] {
  width: min(220px, 36%);
  padding-right: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.company-table td {
  font-size: 0.9375rem;
  color: var(--color-navy);
}

.company-table td a {
  word-break: break-all;
}

.external-link {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  font-weight: 600;
  color: var(--color-blue);
  text-decoration: none;
}

.external-link:hover {
  text-decoration: underline;
}

.external-link__icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.external-link__site {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.external-link:hover .external-link__site {
  color: var(--color-blue);
}

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

/* Services */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  list-style: none;
}

.service-item {
  padding: 2rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.service-item:hover {
  border-color: var(--color-blue);
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.08);
}

.service-item__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-blue-light);
  border-radius: 8px;
  margin-bottom: 1rem;
  color: var(--color-blue);
  font-weight: 700;
  font-size: 1.125rem;
}

.service-item__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.service-item__desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* Contact */
.contact-box {
  padding: 3rem;
  background: var(--color-navy);
  border-radius: 16px;
  color: #fff;
  text-align: center;
}

.contact-box__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.contact-box__desc {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-inline: auto;
}

.contact-box__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: #fff;
  color: var(--color-navy);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.contact-box__phone:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* Footer */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__logo img {
  height: 28px;
  opacity: 0.85;
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Mobile nav */
@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 0;
  }

  .nav.is-open {
    display: flex;
  }

  .nav li a {
    display: block;
    padding: 0.875rem 1.5rem;
  }

  .header__inner {
    position: relative;
  }

  .hero {
    padding: 4rem 0 3.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .contact-box {
    padding: 2rem 1.5rem;
  }

  .message-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .message-photo {
    max-width: 280px;
    margin-inline: auto;
  }

  .table-wrap {
    padding: 1.5rem;
  }

  .company-table,
  .company-table tbody,
  .company-table tr,
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table th[scope="row"] {
    width: 100%;
    padding-right: 0;
    padding-bottom: 0.25rem;
    border-top: none;
  }

  .company-table td {
    padding-top: 0;
    padding-bottom: 0.875rem;
    border-top: none;
  }

  .company-table tr {
    padding-top: 0.875rem;
    border-top: 1px solid var(--color-border);
  }

  .company-table tr:first-child {
    padding-top: 0;
    border-top: none;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
