:root {
  --page-width: 1120px;
  --page-serif: "Noto Serif JP", serif;
  --page-sans: "Noto Sans JP", sans-serif;
}

.subpage-container {
  width: min(var(--page-width), calc(100% - 80px));
  margin-inline: auto;
}

.subpage-eyebrow,
.subpage-side-label {
  margin: 0;
  font-family: var(--page-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
}

.subpage-hero {
  padding: 155px 0 110px;
}

.subpage-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 90px;
}

.subpage-hero__title {
  margin: 25px 0 0;
  font-family: var(--page-serif);
  font-size: clamp(70px, 8vw, 112px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.subpage-hero__lead {
  margin: 0 0 15px;
  font-family: var(--page-serif);
  font-size: 17px;
  line-height: 1.8;
}

/* Company */
.company-profile {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  padding-bottom: 140px;
}

.company-profile__table {
  margin: 0;
}

.company-profile__table div {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 30px;
  min-height: 112px;
  align-items: center;
  border-bottom: 1px solid #e1e1e1;
}

.company-profile__table dt {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
}

.company-profile__table dd {
  margin: 0;
  font-family: var(--page-serif);
  font-size: 16px;
  line-height: 2;
}

.company-leader {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 70px;
  padding-bottom: 150px;
}

.company-leader__label h2 {
  margin: 15px 0 0;
  font-family: var(--page-serif);
  font-size: 38px;
  font-weight: 400;
}

.company-leader__content {
  max-width: 630px;
}

.company-leader__content img {
  display: block;
  width: 100%;
  margin-bottom: 45px;
  filter: grayscale(100%);
}

.company-leader__content h3 {
  margin: 0 0 40px;
  font-family: var(--page-serif);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.5;
}

.company-leader__content p {
  margin: 0 0 25px;
  font-family: var(--page-serif);
  line-height: 2.1;
}

.company-history {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  padding-bottom: 140px;
}

.company-history ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.company-history li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 35px;
  margin-bottom: 65px;
  font-family: var(--page-serif);
  font-size: 34px;
  line-height: 1.2;
}

.company-history strong {
  font-weight: 500;
}

.company-team {
  padding: 110px 0 120px;
  color: #fff;
  background: #000;
}

.company-team__inner {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 110px;
}

.company-team h2 {
  margin: 35px 0 0;
  font-family: var(--page-serif);
  font-size: 54px;
  font-weight: 500;
  line-height: 1.35;
}

.company-team h3 {
  margin: 15px 0 35px;
  font-family: var(--page-serif);
  font-size: 38px;
  font-weight: 400;
}

.company-team p {
  color: #bbb;
  line-height: 2;
}

.company-team__roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 55px;
  padding-top: 35px;
  border-top: 1px solid #333;
}

.company-team__roles span {
  font-size: 9px;
  letter-spacing: .16em;
}

.company-team__roles p {
  font-size: 12px;
}

/* Services */
.services-page__hero {
  padding-bottom: 80px;
}

.services-page__heading {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: end;
  gap: 70px;
}

.services-page__characters {
  display: block;
  width: min(760px, 85%);
  margin: 70px auto 0;
}

.services-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 65px;
  padding: 20px 0 140px;
}

.services-overview__card {
  padding-top: 55px;
  border-top: 1px solid #ddd;
}

.services-overview__number {
  display: block;
  margin-bottom: 28px;
  color: #ececec;
  font-family: var(--page-serif);
  font-size: 90px;
  line-height: 1;
}

.services-overview h2 {
  margin: 0 0 30px;
  font-family: var(--page-serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.15;
}

.services-overview p {
  min-height: 140px;
  margin: 0;
  color: #777;
  font-family: var(--page-serif);
  line-height: 2;
}

.services-overview a {
  display: inline-block;
  margin-top: 30px;
  color: #111;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-decoration: none;
}

/* Service detail */
.service-detail-hero {
  padding: 140px 0 110px;
  border-bottom: 1px solid #e5e5e5;
}

.service-detail-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 70px;
}

.service-detail-hero h1 {
  margin: 15px 0 10px;
  font-family: var(--page-serif);
  font-size: clamp(72px, 8vw, 110px);
  font-weight: 500;
  line-height: 1;
}

.service-detail-hero__tagline {
  margin: 0;
  font-family: var(--page-serif);
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1.5;
}

.service-detail-hero img {
  width: 230px;
  height: 260px;
  object-fit: contain;
}

.service-capabilities {
  padding: 120px 0 145px;
}

.service-capabilities__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 75px;
  padding-bottom: 28px;
  border-bottom: 1px solid #777;
}

.service-capabilities__head h2 {
  margin: 0;
  font-family: var(--page-serif);
  font-size: 42px;
  font-weight: 400;
}

.service-capabilities__head span {
  font-size: 9px;
  letter-spacing: .16em;
}

.service-capabilities__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px 55px;
}

.service-capabilities__grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
}

.service-capabilities__grid h3 {
  margin: 22px 0 10px;
  font-family: var(--page-serif);
  font-size: 20px;
  font-weight: 500;
}

.service-capabilities__grid p {
  margin: 0;
  color: #777;
  font-family: var(--page-serif);
  line-height: 1.9;
}

.service-philosophy {
  padding: 125px 0 145px;
  color: #fff;
  background: #000;
  text-align: center;
}

.service-philosophy__kicker {
  margin: 0 0 45px;
  color: #888;
  font-size: 9px;
  letter-spacing: .35em;
}

.service-philosophy h2 {
  margin: 0;
  font-family: var(--page-serif);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 400;
  line-height: 1.45;
}

.service-philosophy__line {
  width: 75px;
  margin: 45px auto;
  border-top: 1px solid #777;
}

.service-philosophy p:last-child {
  width: min(800px, 100%);
  margin: 0 auto;
  color: #bbb;
  font-family: var(--page-serif);
  line-height: 2.2;
}

.service-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 90px;
  padding: 130px 0 150px;
}

.service-values article {
  padding-top: 40px;
  border-top: 1px solid #777;
}

.service-values h2 {
  margin: 0 0 35px;
  font-family: var(--page-serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.5;
}

.service-values p {
  margin: 0;
  color: #666;
  font-family: var(--page-serif);
  line-height: 2;
}

/* Contact */
.contact-page__hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  gap: 80px;
  min-height: 540px;
  padding-top: 130px;
  padding-bottom: 80px;
}

.contact-page__hero h1 {
  margin: 20px 0 0;
  font-family: var(--page-serif);
  font-size: clamp(72px, 9vw, 118px);
  font-weight: 500;
  line-height: 1.1;
}

.contact-page__hero > p {
  margin: 0 0 15px;
  color: #777;
  font-family: var(--page-serif);
  font-size: 17px;
  line-height: 2;
}

.contact-page__hero img {
  position: absolute;
  top: 80px;
  right: 20px;
  width: 180px;
  height: 220px;
  object-fit: contain;
}

.contact-form-section {
  padding: 35px 0 130px;
}

.contact-form-message {
  margin: 0 0 35px;
  padding: 18px 22px;
  border: 1px solid;
}

.contact-form-message--success {
  color: #176b38;
  border-color: #176b38;
}

.contact-form-message--error {
  color: #a62828;
  border-color: #a62828;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: center;
  gap: 30px;
  min-width: 0;
  margin: 0;
  padding: 42px 0;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
  font-family: var(--page-serif);
}

.contact-form__row > span:first-child {
  font-size: 18px;
}

.contact-form__row b {
  display: inline-grid;
  min-width: 64px;
  min-height: 48px;
  margin-right: 14px;
  place-items: center;
  border-radius: 8px;
  background: #ddd;
  font-size: 15px;
  font-weight: 400;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 19px 22px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 35px;
}

.contact-form__privacy > span:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-form__notice {
  margin: 45px 0;
  font-family: var(--page-serif);
  text-align: center;
}

.contact-form__notice a {
  color: inherit;
}

.contact-form button {
  display: block;
  width: min(500px, 100%);
  min-height: 82px;
  margin: 0 auto;
  border: 0;
  color: #fff;
  background: #000;
  font-family: var(--page-serif);
  font-size: 18px;
  cursor: pointer;
}

.page-contact-cta {
  margin-top: 0;
}

@media (max-width: 768px) {
  .subpage-container {
    width: min(100% - 40px, var(--page-width));
  }

  .subpage-hero {
    padding: 105px 0 75px;
  }

  .subpage-hero__inner,
  .services-page__heading {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .subpage-hero__title {
    font-size: 58px;
  }

  .company-profile,
  .company-leader,
  .company-history {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-bottom: 90px;
  }

  .company-profile__table div {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding: 25px 0;
  }

  .company-leader__content h3 {
    font-size: 30px;
  }

  .company-history li {
    grid-template-columns: 105px 1fr;
    gap: 15px;
    margin-bottom: 40px;
    font-size: 22px;
  }

  .company-team {
    padding: 80px 0;
  }

  .company-team__inner {
    grid-template-columns: 1fr;
    gap: 65px;
  }

  .company-team h2 {
    font-size: 42px;
  }

  .company-team__roles {
    grid-template-columns: 1fr;
  }

  .services-page__characters {
    width: 100%;
    margin-top: 35px;
  }

  .services-overview {
    grid-template-columns: 1fr;
    gap: 55px;
    padding-bottom: 90px;
  }

  .services-overview p {
    min-height: 0;
  }

  .service-detail-hero {
    padding: 100px 0 70px;
  }

  .service-detail-hero__inner {
    gap: 20px;
  }

  .service-detail-hero h1 {
    font-size: 60px;
  }

  .service-detail-hero__tagline {
    font-size: 22px;
  }

  .service-detail-hero img {
    width: 135px;
    height: 170px;
  }

  .service-capabilities {
    padding: 80px 0 95px;
  }

  .service-capabilities__head {
    margin-bottom: 45px;
  }

  .service-capabilities__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .service-philosophy {
    padding: 90px 0 100px;
  }

  .service-philosophy h2 {
    font-size: 34px;
  }

  .service-values {
    grid-template-columns: 1fr;
    gap: 65px;
    padding: 90px 0 100px;
  }

  .service-values h2 {
    font-size: 28px;
  }

  .contact-page__hero {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: 470px;
    padding-top: 110px;
  }

  .contact-page__hero h1 {
    font-size: 58px;
  }

  .contact-page__hero img {
    top: 70px;
    right: 0;
    width: 120px;
    height: 150px;
  }

  .contact-form-section {
    padding-bottom: 90px;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 0;
  }

  .contact-form__row > span:first-child {
    font-size: 16px;
  }
}
