: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;
  text-align: left;
}

.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;
}

.service-detail-page--operation .service-values article {
  padding-top: 0;
  border-top: 0;
}

.service-detail-page--operation .service-values h2 {
  margin-bottom: 24px;
}

.service-detail-page--operation .service-values h2::after {
  display: block;
  width: 38px;
  height: 3px;
  margin-top: 18px;
  background: #111;
  content: "";
}

.service-values__subtitle {
  margin: 0 0 24px;
  font-family: var(--page-serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.8;
}

/* Privacy policy */
.privacy-page__hero {
  padding-bottom: 85px;
  border-bottom: 1px solid #e5e5e5;
}

.privacy-page__hero .subpage-hero__title {
  font-size: clamp(54px, 7vw, 92px);
}

.privacy-page__content {
  width: min(920px, calc(100% - 80px));
  padding: 95px 0 145px;
  font-family: var(--page-serif);
  font-size: 16px;
  line-height: 2.1;
}

.privacy-page__content > *:first-child {
  margin-top: 0;
}

.privacy-page__content > *:last-child {
  margin-bottom: 0;
}

.privacy-page__content h2,
.privacy-page__content h3,
.privacy-page__content h4 {
  color: #111;
  font-family: var(--page-serif);
  font-weight: 500;
  line-height: 1.6;
}

.privacy-page__content h2 {
  margin: 85px 0 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
  font-size: 30px;
}

.privacy-page__content h3 {
  margin: 75px 0 25px;
  padding-bottom: 18px;
  border-bottom: 1px solid #ddd;
  font-size: 26px;
}

.privacy-page__content h4 {
  margin: 55px 0 20px;
  font-size: 21px;
}

.privacy-page__content p {
  margin: 0 0 28px;
}

.privacy-page__content ul,
.privacy-page__content ol {
  margin: 25px 0 45px;
  padding-left: 1.6em;
}

.privacy-page__content li + li {
  margin-top: 10px;
}

.privacy-page__content a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: .25em;
}

.privacy-page__content a:hover {
  opacity: .55;
}

.privacy-page__content .ez-toc-container,
.privacy-page__content #ez-toc-container {
  width: 100%;
  margin: 0 0 75px;
  padding: 30px 35px;
  border: 1px solid #ddd;
  border-radius: 0;
  background: #fafafa;
  box-shadow: none;
}

.privacy-page__content .ez-toc-title {
  margin: 0 0 18px;
  font-family: var(--page-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
}

.privacy-page__content .ez-toc-list {
  margin: 0;
}

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

.contact-page__hero_r {
  margin-top: -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 .sub_txt {
  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;
  display: block;
  margin-left: auto;
}

.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: 340px 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;
}

p.contact-form__notice {
  margin: 45px 0 0 !important;
}

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

.contact-form__notice a {
  color: inherit;
}

.contact-form button,
.contact-form input[type="submit"],
.excellent-cf7-flow .wpcf7-submit {
  display: block;
  width: min(500px, 100%);
  min-height: 74px;
  margin: 50px auto 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: #000;
  font-family: var(--page-serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  letter-spacing: 0;
  cursor: pointer;
  transition: opacity .2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.contact-form button:hover,
.contact-form input[type="submit"]:hover,
.excellent-cf7-flow .wpcf7-submit:hover {
  opacity: .78;
}

.excellent-cf7-flow.is-confirming .wpcf7,
.excellent-cf7-flow.is-complete .wpcf7 {
  display: none;
}

.excellent-cf7-flow .wpcf7-form p {
  margin: 0;
}

.excellent-cf7-flow .wpcf7-form-control-wrap {
  display: block;
  min-width: 0;
}

.excellent-cf7-flow .wpcf7-list-item {
  margin: 0 26px 0 0;
}

.excellent-cf7-flow .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.excellent-cf7-flow .wpcf7-not-valid-tip {
  margin-top: 8px;
  color: #a62828;
  font-size: 14px;
}

.excellent-cf7-flow .wpcf7-response-output {
  margin: 30px 0 0;
  padding: 16px 20px;
  border-radius: 0;
  font-family: var(--page-serif);
}

.contact-confirm,
.contact-complete {
  padding: 46px 52px;
  border: 1px solid #e5e5e5;
  background: #fff;
  font-family: var(--page-serif);
}

.contact-confirm h2,
.contact-complete h2 {
  margin: 0 0 16px;
  font-size: 30px;
  font-weight: 500;
}

.contact-confirm p,
.contact-complete p {
  margin: 0 0 34px;
  color: #555;
  line-height: 1.9;
}

.contact-confirm__list {
  display: grid;
  grid-template-columns: 260px 1fr;
  margin: 0;
  border-top: 1px solid #e5e5e5;
}

.contact-confirm__list dt,
.contact-confirm__list dd {
  margin: 0;
  padding: 24px 0;
  border-bottom: 1px solid #e5e5e5;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.contact-confirm__list dt {
  color: #555;
}

.contact-confirm__buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 240px));
  justify-content: center;
  gap: 18px;
  margin-top: 44px;
}

.contact-confirm__buttons button,
.contact-complete a {
  display: inline-grid;
  min-height: 66px;
  place-items: center;
  border: 1px solid #000;
  border-radius: 0;
  font-family: var(--page-serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s ease;
}

.contact-confirm__buttons button:hover,
.contact-complete a:hover {
  opacity: .78;
}

.contact-confirm__back {
  color: #000;
  background: #fff;
}

.contact-confirm__send,
.contact-complete a {
  color: #fff;
  background: #000;
  padding: 0 20px;
}

.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: 18px;
  }

  .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: 28px;
  }

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

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

  .privacy-page__hero {
    padding-bottom: 65px;
  }

  .privacy-page__hero .subpage-hero__title {
    font-size: 45px;
  }

  .privacy-page__content {
    width: min(100% - 40px, 920px);
    padding: 70px 0 95px;
    font-size: 15px;
    line-height: 2;
  }

  .privacy-page__content h2,
  .privacy-page__content h3 {
    margin-top: 60px;
    font-size: 23px;
  }

  .privacy-page__content .ez-toc-container,
  .privacy-page__content #ez-toc-container {
    margin-bottom: 55px;
    padding: 25px 22px;
  }

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

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

  .contact-page__hero img {
    top: 70px;
    right: 0;
    width: 120px;
    height: 150px;
  }
    
  .contact-page__hero_r{
    margin-top: -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;
  }

  .contact-confirm,
  .contact-complete {
    padding: 30px 22px;
  }

  .contact-confirm h2,
  .contact-complete h2 {
    font-size: 24px;
  }

  .contact-confirm__list {
    grid-template-columns: 1fr;
  }

  .contact-confirm__list dt {
    padding-bottom: 6px;
    border-bottom: 0;
  }

  .contact-confirm__list dd {
    padding-top: 0;
  }

  .contact-confirm__buttons {
    grid-template-columns: 1fr;
  }
  .contact-form__notice{
    text-align: left;
  }
}
