:root {
  --ink: #152028;
  --muted: #5a6670;
  --paper: #f3f1ec;
  --line: #d5d1c8;
  --sea: #101c28;
  /* 和文ロック: Hiragino（2026-09-17 Keisuke）。Windows は游ゴシック等にフォールバック */
  --jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "游ゴシック", Meiryo, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
}

html[lang="ja"] body {
  font-family: var(--jp);
  font-weight: 500;
}

html[lang="ja"] body {
  word-break: auto-phrase;
  line-break: strict;
}

html[lang="ja"] .lead,
html[lang="ja"] .how strong,
html[lang="ja"] .proof strong {
  text-wrap: balance;
}

html[lang="ja"] .hero-body p {
  text-wrap: pretty;
}

html[lang="ja"] .copy,
html[lang="ja"] .anno,
html[lang="ja"] .how p,
html[lang="ja"] .proof span,
html[lang="ja"] .privacy {
  text-wrap: pretty;
}

.hero {
  position: relative;
  min-height: 86vh;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(12, 24, 32, 0.22) 0%, rgba(12, 24, 32, 0.42) 45%, rgba(12, 24, 32, 0.78) 100%),
    url("../assets/photos/photo-yokohama-day.jpg") center / cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 36px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  position: relative;
}

.brand {
  margin-right: auto;
  flex: 1 1 auto;
  min-width: 0;
}

.brand img {
  display: block;
  width: auto;
  height: auto;
  max-height: 28px;
  max-width: 100%;
  object-fit: contain;
}

.links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.links a {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
  font-family: "Stack Sans Notch", var(--jp), sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 12px;
  white-space: nowrap;
}

html[lang="ja"] .links a {
  font-family: var(--jp);
  letter-spacing: 0.04em;
  font-size: 13px;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.lang {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-family: "Stack Sans Notch", var(--jp), sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 12px;
  color: inherit;
  opacity: 0.85;
  white-space: nowrap;
  flex-shrink: 0;
}

.lang .on { opacity: 1; }
.lang .off { opacity: 0.45; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: -8px -6px -8px 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 14px;
}

.nav-toggle-bars span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav.is-open .nav-toggle-bars span:nth-child(1) {
  transform: translateY(6.25px) rotate(45deg);
}

.nav.is-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }

.nav.is-open .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-6.25px) rotate(-45deg);
}

.hero-body {
  padding: 14vh 36px 64px;
  max-width: 720px;
}

.hero-body h1 {
  margin: 0 0 20px;
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-family: Newsreader, Georgia, serif;
}

.hero-body p {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 480px;
}

html[lang="ja"] .hero-body p {
  font-size: 15px;
  line-height: 1.9;
  max-width: 22.5em;
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: normal;
}

.cta {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  text-decoration: none;
  font-family: "Stack Sans Notch", var(--jp), sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

html[lang="ja"] .cta {
  font-family: var(--jp);
  text-transform: none;
  letter-spacing: 0.06em;
  font-size: 13px;
  font-weight: 700;
}

section {
  padding: 80px 36px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  font-weight: 600;
  font-family: "Stack Sans Notch", sans-serif;
}

html[lang="ja"] .kicker {
  font-family: var(--jp);
  text-transform: none;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
}

.lead {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.45;
  max-width: 640px;
  margin: 0 0 18px;
  font-weight: 500;
}

html[lang="ja"] .lead {
  font-family: var(--jp);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.copy {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 560px;
  margin: 0;
}

html[lang="ja"] .copy {
  font-size: 15px;
  line-height: 1.95;
  max-width: 36em;
}

.anno {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 36em;
  margin: -8px 0 0;
  font-weight: 400;
}

html[lang="ja"] .anno {
  font-family: var(--jp);
  font-size: 12.5px;
  line-height: 1.85;
}

.how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(21, 32, 40, 0.22);
}

.how article {
  position: relative;
  padding: 28px 8px 0 0;
  background: none;
  border: 0;
}

.how article::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

.how em {
  display: block;
  font-style: normal;
  font-family: "Stack Sans Notch", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin: 0 0 12px;
}

.how strong {
  display: block;
  font-size: 17px;
  margin-bottom: 10px;
  font-weight: 600;
}

html[lang="ja"] .how strong {
  font-family: var(--jp);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.how p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 28em;
}

html[lang="ja"] .how p {
  font-size: 13.5px;
  line-height: 1.85;
}

#work { background: var(--paper); }

.proof {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 28px;
  max-width: 720px;
}

.proof article {
  display: block;
  padding: 28px 0;
  background: none;
  border: 0;
  border-top: 1px solid rgba(21, 32, 40, 0.14);
}

.proof article:last-child {
  border-bottom: 1px solid rgba(21, 32, 40, 0.14);
}

.proof strong {
  display: block;
  font-size: 17px;
  margin: 0 0 10px;
  font-weight: 600;
  max-width: 28em;
}

html[lang="ja"] .proof strong {
  font-family: var(--jp);
  font-weight: 700;
  line-height: 1.45;
}

.proof span {
  display: block;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 40em;
}

html[lang="ja"] .proof span {
  font-size: 13.5px;
  line-height: 1.85;
}

.principal {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}

.principal .name-jp {
  margin: -6px 0 8px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  font-family: var(--jp), sans-serif;
}

.principal .role {
  margin: 0 0 20px;
  font-family: "Stack Sans Notch", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.principal-photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper);
}

.principal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact {
  background: var(--sea);
  color: #fff;
  border-top: 0;
}

.contact .kicker { color: rgba(255, 255, 255, 0.55); }
.contact .lead { color: #fff; }
.contact .copy { color: rgba(255, 255, 255, 0.75); }

.contact-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-top: 28px;
  max-width: 640px;
}

.contact-form .full { grid-column: 1 / -1; }

.contact-form label {
  display: block;
  font-family: "Stack Sans Notch", var(--jp), sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
}

html[lang="ja"] .contact-form label {
  font-family: var(--jp);
  text-transform: none;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font: 400 15px / 1.5 "DM Sans", var(--jp), sans-serif;
  padding: 12px 14px;
  border-radius: 0;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.16);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button[type="submit"] {
  justify-self: start;
  margin-top: 4px;
  background: #fff;
  color: var(--sea);
  border: 0;
  font-family: "Stack Sans Notch", var(--jp), sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 26px;
  cursor: pointer;
}

html[lang="ja"] .contact-form button[type="submit"] {
  font-family: var(--jp);
  text-transform: none;
  letter-spacing: 0.06em;
  font-size: 13px;
}

.contact-form .hint,
.contact-form .privacy {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.contact-form .privacy { margin-top: -4px; }

.contact-form .hint.is-error {
  color: #ffb4b4;
}

.contact-form .hint.is-ok {
  color: #b8e0c8;
}

.contact-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: wait;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a1218;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  gap: 16px;
}

footer img {
  height: 22px;
  width: auto;
  max-width: none;
  opacity: 0.9;
  flex-shrink: 0;
  object-fit: contain;
}

footer span { text-align: right; }

@media (max-width: 800px) {
  .how,
  .principal,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .hero { min-height: auto; }

  .nav {
    flex-wrap: wrap;
    gap: 0 16px;
    padding: 18px 20px;
    align-items: center;
  }

  .brand {
    margin-right: auto;
    max-width: calc(100% - 108px);
  }

  .brand img {
    max-height: 23px;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .nav-toggle { display: flex; }

  .links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    flex-basis: 100%;
    order: 3;
    margin-top: 8px;
    padding: 12px 0 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .nav.is-open .links { display: flex; }

  .links a {
    display: block;
    padding: 14px 4px;
    font-size: 14px;
    opacity: 0.92;
    white-space: normal;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .links a:last-child { border-bottom: 0; }

  html[lang="ja"] .links a { font-size: 15px; }

  .hero-body {
    padding: 48px 20px 72px;
  }

  .hero-body h1 {
    font-size: clamp(30px, 8.2vw, 40px);
    line-height: 1.18;
    margin-bottom: 22px;
  }

  .hero-body p { margin-bottom: 32px; }

  section { padding: 64px 20px; }

  .lead { margin-bottom: 22px; }
  .kicker { margin-bottom: 22px; }
  .proof { margin-top: 36px; }
  .proof article { padding: 32px 0; }
  .contact-form { margin-top: 36px; gap: 18px 16px; }

  footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    padding: 28px 20px;
  }

  footer span { text-align: left; }

  .how {
    border-top: 0;
    border-left: 1px solid rgba(21, 32, 40, 0.22);
    margin-top: 40px;
    gap: 0;
  }

  .how article { padding: 0 0 36px 22px; }
  .how article:last-child { padding-bottom: 0; }
  .how article::before { top: 6px; left: -4px; }
  .principal { gap: 36px; }
}
