.office-page {
  background: #e4e4e4;
  color: #1f1f1f;
}

.office-shell {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

.office-section-heading {
  width: min(741px, 100%);
  display: grid;
  gap: 26px;
}

.office-section-heading__kicker {
  margin: 0;
  color: #1f1f1f;
  font-family: var(--tomato-latin-heading-font);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.4em;
}

.office-section-heading__title {
  margin: 0;
  color: #1f1f1f;
  font-family: var(--tomato-heading-font);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.2em;
}

.office-origin {
  padding: clamp(88px, 9vw, 132px) 0 clamp(88px, 9vw, 130px);
  background: #e4e4e4;
}

.office-origin__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.office-origin__body {
  margin-top: -50px;
  display: grid;
  gap: 0;
}

.office-origin__lead {
  display: block;
}

.office-origin__body p {
  margin: 0;
  color: #1f1f1f;
  font-family: var(--tomato-heading-font);
  font-size: 24px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.05em;
}

.office-origin__spacer {
  height: 48px;
}

.office-origin__logo {
  flex: 0 0 240px;
  width: 240px;
  height: 240px;
}

.office-origin__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.office-origin__logo--portrait {
  display: none;
}

.office-info {
  position: relative;
  padding: 160px 0 200px;
  background: #c0c2c7;
  overflow: hidden;
  overflow: clip;
}

.office-info::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(220px, 34vw, 594px);
  aspect-ratio: 594 / 427;
  background-image: url("../../../../images/decorations/section-divider-corner-leaves-left.png");
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.office-info__shell {
  position: relative;
  z-index: 1;
}

.office-info__layout {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 480px minmax(0, 1fr);
  gap: 80px;
}

.office-info__photo {
  width: 100%;
  height: 298px;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(62, 123, 86, 0.45), rgba(62, 123, 86, 0)),
    linear-gradient(20deg, rgba(234, 115, 57, 0.78), rgba(234, 115, 57, 0.22)),
    linear-gradient(180deg, #f3ede7, #e6ddd5);
}

.office-info__photo img,
.office-info__photo span {
  display: block;
  width: 100%;
  height: 100%;
}

.office-info__photo img {
  object-fit: cover;
}

.office-info__table {
  margin: 0;
  display: grid;
  gap: 0;
}

.office-info__row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 0;
  padding: 24px 0;
  border-bottom: 1px solid #1f1f1f;
}

.office-info__row dt,
.office-info__row dd {
  margin: 0;
  color: #1f1f1f;
  font-family: var(--tomato-heading-font);
  font-size: 24px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.05em;
}

.office-info__row a {
  color: inherit;
  text-decoration: underline;
}

.office-access {
  padding: clamp(88px, 9vw, 120px) 0 clamp(96px, 10vw, 140px);
  background: #e4e4e4;
}

.office-access__layout {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 480px minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.office-access__address {
  margin: 0;
  color: #1f1f1f;
  font-family: var(--tomato-heading-font);
  font-size: 24px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.05em;
}

.office-access__transport-list {
  margin-top: 40px;
  display: grid;
  gap: 24px;
}

.office-access__transport-item {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.office-access__badge {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 220px;
  min-height: 48px;
  padding: 0 8px;
  border-radius: 8px;
  background: #3a6da8;
}

.office-access__badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.office-access__badge-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.office-access__badge-icon--text {
  color: #fffaf3;
  font-family: var(--tomato-heading-font);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.05em;
}

.office-access__badge-label {
  color: #fffaf3;
  font-family: var(--tomato-heading-font);
  font-size: 24px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.05em;
}

.office-access__transport-copy {
  margin: 0;
  color: #1f1f1f;
  font-family: var(--tomato-heading-font);
  font-size: 24px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.05em;
}

.office-access__map {
  width: 100%;
  height: 465px;
  border-radius: 12px;
  overflow: hidden;
  background: #d9d9d9;
}

.office-access__map iframe,
.office-access__map span {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.office-parking {
  position: relative;
  padding: clamp(88px, 9vw, 132px) 0 clamp(96px, 10vw, 140px);
  background: #e4e4e4;
  overflow: hidden;
  overflow: clip;
}

.office-parking::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(260px, 36vw, 598px);
  aspect-ratio: 598 / 427;
  background-image: url("../../../../images/decorations/section-divider-corner-leaves-right.png");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;
  pointer-events: none;
}

.office-parking .office-shell {
  position: relative;
  z-index: 1;
}

.office-parking__steps {
  margin-top: 80px;
  display: grid;
  gap: 40px;
}

.office-parking__step {
  display: grid;
  grid-template-columns: 480px minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.office-parking__photo {
  width: 100%;
  height: 298px;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(62, 123, 86, 0.45), rgba(62, 123, 86, 0)),
    linear-gradient(20deg, rgba(234, 115, 57, 0.78), rgba(234, 115, 57, 0.22)),
    linear-gradient(180deg, #f3ede7, #e6ddd5);
}

.office-parking__photo img,
.office-parking__photo span {
  display: block;
  width: 100%;
  height: 100%;
}

.office-parking__photo img {
  object-fit: cover;
}

.office-parking__step-number,
.office-parking__step-description {
  margin: 0;
  color: #1f1f1f;
  font-family: var(--tomato-heading-font);
  font-size: 24px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.05em;
}

.office-parking__step-description {
  margin-top: 0;
}

.office-page .index-contact,
.office-page .index-contact__inner {
  min-height: 723px;
}

@media (max-width: 1199px) {
  .office-origin__header {
    gap: 32px;
  }

  .office-origin__logo {
    width: 220px;
    height: 220px;
    flex-basis: 220px;
  }

  .office-info__layout,
  .office-access__layout,
  .office-parking__step {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .office-info__photo,
  .office-parking__photo {
    width: min(100%, 720px);
  }
}

@media (max-width: 767px) {
  .office-shell {
    width: min(100%, calc(100% - 32px));
  }

  .office-section-heading {
    gap: 18px;
  }

  .office-section-heading__kicker {
    font-size: 18px;
    letter-spacing: 0.24em;
  }

  .office-section-heading__title {
    font-size: 34px;
    letter-spacing: 0.1em;
  }

  .office-origin,
  .office-access,
  .office-parking {
    padding-top: 88px;
    padding-bottom: 96px;
  }

  .office-origin__body,
  .office-info__layout,
  .office-access__layout,
  .office-parking__steps {
    margin-top: 48px;
  }

  .office-origin__body p,
  .office-info__row dt,
  .office-info__row dd,
  .office-access__address,
  .office-access__badge-label,
  .office-access__transport-copy,
  .office-parking__step-number,
  .office-parking__step-description {
    font-size: 18px;
    line-height: 1.75;
  }

  .office-origin__spacer {
    height: 18px;
  }

  .office-origin__header {
    display: grid;
    gap: 24px;
  }

  .office-origin__logo {
    margin-left: auto;
  }

  .office-info {
    padding-top: 96px;
    padding-bottom: 128px;
  }

  .office-info__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 18px 0;
  }

  .office-access__transport-item {
    flex-direction: column;
    gap: 10px;
  }

  .office-access__map {
    height: 420px;
  }

  .office-parking__step {
    gap: 24px;
  }

  .office-parking::after {
    width: clamp(220px, 42vw, 420px);
  }

  .office-page .index-contact,
  .office-page .index-contact__inner {
    min-height: 560px;
  }
}

@media (max-width: 720px) {
  .office-shell {
    width: min(100%, calc(100% - 24px));
  }

  .office-section-heading {
    gap: 14px;
  }

  .office-section-heading__kicker {
    font-size: 14px;
    letter-spacing: 0.2em;
  }

  .office-section-heading__title {
    font-size: 28px;
    letter-spacing: 0.06em;
  }

  .office-origin,
  .office-access,
  .office-parking {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .office-origin__body,
  .office-info__layout,
  .office-access__layout,
  .office-parking__steps {
    margin-top: 32px;
    gap: 24px;
  }

  .office-origin__body p,
  .office-info__row dt,
  .office-info__row dd,
  .office-access__address,
  .office-access__badge-label,
  .office-access__transport-copy,
  .office-parking__step-number,
  .office-parking__step-description {
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.03em;
  }

  .office-origin__logo {
    width: 180px;
    height: 180px;
  }

  .office-info {
    padding-top: 72px;
    padding-bottom: 96px;
  }

  .office-info__photo,
  .office-parking__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 480 / 298;
  }

  .office-info__row {
    padding: 14px 0;
  }

  .office-access__badge {
    width: auto;
    max-width: 100%;
    min-height: 40px;
    padding-inline: 12px;
  }

  .office-access__map {
    height: 320px;
  }

  .office-info::after {
    width: clamp(180px, 52vw, 320px);
  }

  .office-parking::after {
    width: clamp(180px, 52vw, 320px);
  }

  .office-page .index-contact,
  .office-page .index-contact__inner {
    min-height: 440px;
  }
}

@media (max-width: 1024px) and (orientation: portrait) {
  .office-info {
    padding-bottom: 220px;
  }

  .office-origin__header .office-origin__logo {
    display: none;
  }

  .office-origin__lead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }

  .office-origin__lead > p {
    flex: 1 1 auto;
    min-width: 0;
  }

  .office-origin__logo--portrait {
    display: block;
    margin-left: 0;
    width: 180px;
    height: 180px;
    flex: 0 0 180px;
  }
}

@media (max-width: 767px) and (orientation: portrait) {
  .office-info {
    padding-bottom: 190px;
  }

  .office-origin__lead {
    gap: 16px;
  }

  .office-origin__logo--portrait {
    width: 128px;
    height: 128px;
    flex-basis: 128px;
  }
}

@media (max-width: 480px) and (orientation: portrait) {
  .office-info {
    padding-bottom: 170px;
  }

  .office-origin__lead {
    gap: 12px;
  }

  .office-origin__logo--portrait {
    width: 96px;
    height: 96px;
    flex-basis: 96px;
  }
}
