@charset "UTF-8";

/* ==========================================================================
   SPERoad Mitaka — Corporate Site
   ========================================================================== */

/* Design tokens
   ------------------------------------------------------------------------- */
:root {
  --color-brand: #659746;        /* logo green */
  --color-brand-dark: #476d30;   /* text-safe green (AA on white) */
  --color-brand-tint: #f2f7ee;
  --color-text: #1f2a24;
  --color-text-sub: #5b6660;
  --color-line: #e3e8e4;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f9f7;

  --font-base: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-latin: "Inter", var(--font-base);

  --width-content: 1080px;
  --gutter: 24px;
  --radius: 8px;
  --header-height: 72px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text);
  background: var(--color-bg);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--color-brand-dark);
}

a:hover {
  text-decoration: none;
}

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

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

:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--color-text);
  color: #fff;
}

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

.container {
  width: 100%;
  max-width: calc(var(--width-content) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  text-decoration: none;
}

.logo__image {
  width: auto;
  height: 32px;
}

.global-nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.global-nav__link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}

.global-nav__link:hover {
  color: var(--color-brand-dark);
}

.global-nav__lang {
  padding: 4px 12px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  font-family: var(--font-latin);
  font-size: .8125rem;
  color: var(--color-text-sub);
  text-decoration: none;
}

.global-nav__lang:hover {
  border-color: var(--color-brand);
  color: var(--color-brand-dark);
}

/* Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(720px, calc(100svh - var(--header-height)));
  padding: 96px 0;
  overflow: hidden;
  background: var(--color-brand-tint);
}

.hero__image {
  position: absolute;
  inset: 0;
}

/* Keeps the copy readable regardless of the photo */
.hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, .94) 0%,
    rgba(255, 255, 255, .86) 38%,
    rgba(255, 255, 255, .2) 72%,
    rgba(255, 255, 255, 0) 100%);
}

/* Subject sits on the right; keep it in frame when cropped */
.hero__image img {
  object-position: 70% center;
}

.hero__inner {
  position: relative;
}

.hero__content {
  max-width: 600px;
}

.hero__image img,
.business-card__image img,
.detail__image img,
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__eyebrow {
  margin-bottom: 20px;
  font-family: var(--font-latin);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--color-brand-dark);
  text-transform: uppercase;
}

.hero__title {
  font-size: clamp(1.625rem, 3.4vw, 2.375rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
}

.phrase {
  display: inline-block;
}

.hero__lead {
  max-width: 640px;
  margin-top: 28px;
  color: var(--color-text-sub);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

/* Button
   ------------------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 14px 28px;
  border: 1px solid var(--color-brand-dark);
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}

.button--primary {
  background: var(--color-brand-dark);
  color: #fff;
}

.button--primary:hover {
  background: var(--color-text);
  border-color: var(--color-text);
}

.button--secondary {
  background: transparent;
  color: var(--color-brand-dark);
}

.button--secondary:hover {
  background: var(--color-brand-tint);
}

/* Section
   ------------------------------------------------------------------------- */
.section {
  padding: 104px 0;
}

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

.section__header {
  margin-bottom: 56px;
}

.section__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-latin);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--color-brand-dark);
  text-transform: uppercase;
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.5;
}

.section__desc {
  max-width: 720px;
  margin-top: 16px;
  color: var(--color-text-sub);
}

/* Business
   ------------------------------------------------------------------------- */
.business-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.business-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.business-card__image {
  aspect-ratio: 3 / 2;
}

.business-card__body {
  padding: 32px;
}

.business-card__num {
  font-family: var(--font-latin);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--color-brand);
}

.business-card__title {
  margin-top: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
}

.business-card__text {
  margin-top: 16px;
  font-size: .9375rem;
  color: var(--color-text-sub);
}

.business-card__list {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-line);
  font-size: .875rem;
}

.business-card__list li {
  position: relative;
  padding-left: 18px;
}

.business-card__list li + li {
  margin-top: 6px;
}

.business-card__list li::before {
  content: "";
  position: absolute;
  top: .78em;
  left: 0;
  width: 8px;
  height: 2px;
  background: var(--color-brand);
}

/* Business detail
   ------------------------------------------------------------------------- */
.detail {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding: 64px 0;
  border-top: 1px solid var(--color-line);
}

.detail:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.detail__num {
  font-family: var(--font-latin);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--color-brand);
}

.detail__title {
  margin-top: 8px;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.5;
}

.detail__image {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.detail__body > * + * {
  margin-top: 32px;
}

.detail__heading {
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 700;
}

.detail__text {
  color: var(--color-text-sub);
}

.detail__text + .detail__text {
  margin-top: 12px;
}

.detail__heading--with-logo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.brand-logo {
  width: auto;
  height: 28px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.photo-grid li {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list--spaced {
  margin-top: 16px;
}

.tag-list li {
  padding: 4px 14px;
  background: var(--color-brand-tint);
  border-radius: 999px;
  font-size: .8125rem;
  color: var(--color-brand-dark);
}

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

.achievement-list li {
  position: relative;
  padding: 14px 0 14px 20px;
  border-bottom: 1px solid var(--color-line);
  font-size: .9375rem;
  font-weight: 500;
}

.achievement-list li::before {
  content: "";
  position: absolute;
  top: calc(14px + .9em);
  left: 0;
  width: 8px;
  height: 2px;
  background: var(--color-brand);
}

.note {
  margin-top: 12px;
  font-size: .8125rem;
  color: var(--color-text-sub);
}

/* Company
   ------------------------------------------------------------------------- */
.company-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--color-line);
}

.company-table th,
.company-table td {
  padding: 22px 0;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
  font-size: .9375rem;
}

.company-table th {
  width: 200px;
  padding-right: 24px;
  font-weight: 600;
  color: var(--color-text-sub);
}

.company-list {
  padding-left: 1.5em;
  list-style: decimal;
}

.company-list li + li {
  margin-top: 4px;
}

/* Contact
   ------------------------------------------------------------------------- */
.contact {
  padding: 64px 48px;
  background: var(--color-text);
  border-radius: var(--radius);
  color: #fff;
  text-align: center;
}

.contact .section__label {
  color: #a9cf8f;
}

.contact__text {
  margin-top: 16px;
  color: rgba(255, 255, 255, .78);
}

.contact .button {
  margin-top: 36px;
  border-color: #fff;
  background: #fff;
  color: var(--color-text);
}

.contact .button:hover {
  background: var(--color-brand-tint);
}

/* Page (privacy etc.)
   ------------------------------------------------------------------------- */
.page {
  padding: 88px 0 104px;
}

.page__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.page__body {
  max-width: 800px;
  margin-top: 48px;
}

.page__body h2 {
  margin-top: 40px;
  font-size: 1.0625rem;
  font-weight: 700;
}

.page__body p,
.page__body ul {
  margin-top: 12px;
  font-size: .9375rem;
}

.page__body ul {
  padding-left: 1.4em;
  list-style: disc;
}

.page__date {
  margin-top: 48px;
  font-size: .875rem;
  color: var(--color-text-sub);
  text-align: right;
}

/* Footer
   ------------------------------------------------------------------------- */
.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--color-line);
  font-size: .8125rem;
  color: var(--color-text-sub);
}

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

.site-footer__nav {
  display: flex;
  gap: 24px;
}

.site-footer__nav a {
  color: var(--color-text-sub);
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--color-brand-dark);
}

.site-footer__copy {
  font-family: var(--font-latin);
}

/* Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .business-list {
    grid-template-columns: 1fr;
  }

  .detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 16px;
    --header-height: 60px;
  }

  .global-nav__item:not(.global-nav__item--lang) {
    display: none;
  }

  .logo__image {
    height: 26px;
  }

  .hero {
    min-height: auto;
    padding: 72px 0 64px;
  }

  .hero__image::after {
    background: rgba(255, 255, 255, .86);
  }

  .photo-grid {
    gap: 8px;
  }

  .section {
    padding: 72px 0;
  }

  .section__header {
    margin-bottom: 40px;
  }

  .business-card__body {
    padding: 28px 24px;
  }

  .detail {
    padding: 48px 0;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
  }

  .company-table th {
    padding-top: 18px;
    font-size: .8125rem;
  }

  .company-table td {
    padding: 2px 0 18px;
    border-bottom: 1px solid var(--color-line);
  }

  .contact {
    padding: 48px 24px;
  }

  .button {
    width: 100%;
  }

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

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