@charset "UTF-8";
/*
Theme Name: 柳原建興Base
Theme URI: https://yanagihara-kenkou.jp/
Description: 柳原建興　ベーステーマ
Author: バズ部
Author URI: https://lucy.ne.jp/bazubu/
Version: 0.7.3
Text Domain: xeory_base
Tested up to: 6.8
Requires PHP: 7.0
Tags:blog,one-column,two-columns,right-sidebar,theme-options
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Copyright: Copyright (c) バズ部
*/

/* all display
-------------------------------------------------- */

:root {
  --red: #c91020;
  --red-dark: #a90e1c;
  --ink: #171d22;
  --muted: #52606a;
  --line: #e1e5e8;
  --paper: #fff;
  --fog: #f5f7f8;
  --dark: #1c2731;
  --serif:
    "Noto Serif CJK JP", "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN",
    "MS PMincho", serif;
  --sans:
    "Noto Sans CJK JP", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, sans-serif;
  --header-height: 98px;
  --container: 1200px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.menu-open {
  overflow: hidden;
}
img {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #fa6871;
  outline-offset: 4px;
}
::selection {
  background: #e9adb3;
  color: #141a1f;
}
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.container {
  width: min(calc(100% - 96px), var(--container));
  margin-inline: auto;
}
.container--wide {
  --container: 1440px;
}
.section {
  padding-block: 104px;
}
.accent {
  color: var(--red);
}
.accent-light {
  color: #fff;
}
.section-kicker {
  margin: 0 0 6px;
  font-family: Arial, sans-serif;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--red);
}
.section-title {
  margin: 0;
  font: 700 clamp(32px, 3.5vw, 51px)/1.33 var(--serif);
  letter-spacing: 0.045em;
}
.section-title--mid {
  font-size: clamp(29px, 3.1vw, 43px);
}
.heading-line {
  height: 2px;
  width: 51px;
  background: var(--red);
  margin-block: 21px 24px;
}
.body-copy {
  margin: 0;
  line-height: 2.15;
  letter-spacing: 0.035em;
  color: #48525c;
}
.desktop-only {
  display: initial;
}
.mobile-only {
  display: none;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--red);
  color: white;
}
.skip-link:focus {
  top: 12px;
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 27px;
  min-height: 53px;
  padding: 13px 22px 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  font-weight: 700;
  text-align: center;
  transition:
    background 0.25s,
    border-color 0.25s,
    color 0.25s,
    transform 0.25s var(--ease);
}
.btn .icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
  transition: transform 0.25s var(--ease);
}
.btn:hover .icon:last-child {
  transform: translateX(5px);
}
.btn:active {
  transform: translateY(1px);
}
.btn--red {
  background: var(--red);
  color: white;
  border-color: var(--red);
  box-shadow: 0 9px 24px #ba142125;
}
.btn--red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}
.btn--outline {
  background: #fffffff2;
  border-color: #7b858e;
  color: var(--ink);
}
.btn--outline:hover {
  border-color: var(--red);
  color: var(--red);
  background: white;
}
.btn--small {
  min-height: 48px;
  padding: 12px 20px;
  font-size: 12px;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  height: var(--header-height);
  background: #fff;
  border-bottom: 1px solid #e8ebed;
  transition: box-shadow 0.25s;
}
.site-header.is-scrolled {
  box-shadow: 0 7px 35px #17202a12;
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.brand__mark {
  width: 67px;
  height: 67px;
  object-fit: contain;
}
.brand__type {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.22;
}
.brand__type strong {
  font-size: clamp(15px, 1.7vw, 23px);
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: 0.045em;
}
.brand__type small {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
}
.desktop-nav {
  display: flex;
  align-items: stretch;
  gap: clamp(16px, 2.2vw, 33px);
  height: 100%;
  margin-left: auto;
}
.desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  white-space: nowrap;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: 25px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--red);
}
.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
}
.header-contact {
  flex: 0 0 auto;
  min-height: 54px;
  padding-inline: 20px;
  gap: 11px;
}
.header-contact .icon {
  width: 20px;
  height: 20px;
}
.header-contact .icon--arrow {
  display: none;
}
.menu-toggle {
  display: none;
}
.mobile-nav,
.menu-scrim {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  height: clamp(565px, 48vw, 705px);
  isolation: isolate;
  overflow: hidden;
  background: #dfeaf2;
}
.hero__picture,
.hero__picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__picture {
  z-index: -3;
}
.hero__picture img {
  object-fit: cover;
  object-position: 50% center;
}
.hero__veil {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.13) 46%,
    rgba(255, 255, 255, 0) 77%
  );
}
.hero__inner {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}
.hero__body {
  position: relative;
  max-width: 760px;
  margin-top: -12px;
}
.hero__eyebrow {
  display: none;
}
.hero h1 {
  margin: 0;
  font: 700 clamp(41px, 4.2vw, 66px)/1.58 var(--serif);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 1px #ffffff55;
}
.hero h1 em {
  font-style: normal;
  color: var(--red);
}
.hero__description {
  margin: 0 0 27px;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 500;
  line-height: 2.1;
  letter-spacing: 0.045em;
}
.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.hero__actions .btn {
  min-width: 212px;
}
.hero__vertical {
  position: absolute;
  bottom: 47px;
  right: -22px;
  font:
    700 9px Arial,
    sans-serif;
  color: white;
  letter-spacing: 0.28em;
  writing-mode: vertical-rl;
  text-shadow: 0 1px 4px #0008;
}
.hero__scroll {
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font:
    700 10px Arial,
    sans-serif;
  letter-spacing: 0.26em;
  color: var(--ink);
}
.hero__scroll span {
  width: 1px;
  height: 52px;
  background: var(--ink);
}
.hero__bottom-trim {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: #ffffff99;
}

/* Concept and services */
.concept {
  position: relative;
  isolation: isolate;
  padding-top: 96px;
  padding-bottom: 101px;
  background: linear-gradient(180deg, #fff 0%, #f7f9fa 100%);
}
.concept__mist {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 435px;
  background:
    radial-gradient(ellipse at 65% 35%, #dce6eb6e, transparent 64%),
    linear-gradient(145deg, transparent 36%, #ccd7dd26 55%, transparent 80%);
  pointer-events: none;
}
.concept__layout {
  display: grid;
  grid-template-columns: 56% 44%;
  min-height: 325px;
  align-items: start;
}
.concept__copy {
  padding-top: 5px;
}
.concept__lead {
  margin: 0 0 16px;
  font: 700 clamp(18px, 2vw, 25px)/1.6 var(--serif);
  letter-spacing: 0.07em;
}
.concept__copy .body-copy {
  max-width: 600px;
  padding-right: 30px;
}
.concept__art {
  position: relative;
  min-height: 280px;
  background:
    linear-gradient(90deg, #f9fafb00 0%, #eef3f690 60%),
    url("./images/mountain-peaks.webp") center 62% / cover no-repeat;
  clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%);
}
.concept__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #f9fafbe8, transparent 62%),
    linear-gradient(0deg, #f7f9fa, transparent 45%);
}
.concept__circle {
  position: absolute;
  width: 175px;
  height: 225px;
  left: 28%;
  top: 23%;
  transform: rotate(-17deg);
  border: 18px solid #dae2e685;
  opacity: 0.75;
  clip-path: polygon(50% 0, 100% 17%, 75% 95%, 27% 100%, 0 42%);
}
.concept__handwriting {
  position: absolute;
  top: 15%;
  left: 11%;
  z-index: 1;
  margin: 0;
  font: italic 700 20px/1.45 var(--serif);
  letter-spacing: 0.05em;
  transform: rotate(-11deg);
}
.concept__handwriting i {
  display: block;
  width: 126px;
  height: 3px;
  margin: 8px 0 0 37px;
  background: var(--red);
  transform: rotate(-7deg);
}
.concept__vertical {
  position: absolute;
  z-index: 1;
  right: 8%;
  bottom: 20px;
  margin: 0;
  writing-mode: vertical-rl;
  font: 500 12px/2 var(--serif);
  letter-spacing: 0.2em;
}
.concept__english {
  position: absolute;
  z-index: 1;
  right: 3%;
  bottom: 4px;
  font:
    700 9px/1.7 Arial,
    sans-serif;
  letter-spacing: 0.18em;
  color: #8c989f;
}
.business-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 48px 0 26px;
  scroll-margin-top: 130px;
}
.business-heading__aside {
  margin: 0 0 5px;
  font: 700 14px/1.75 var(--serif);
  letter-spacing: 0.09em;
}
.business-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}
.service-card {
  display: block;
  background: #fff;
  min-width: 0;
  box-shadow: 0 9px 30px #263d4d0c;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 33px #263d4d1c;
}
.service-card__photo {
  aspect-ratio: 1.43;
  overflow: hidden;
}
.service-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.service-card:hover .service-card__photo img {
  transform: scale(1.06);
}
.service-card__body {
  position: relative;
  min-height: 188px;
  padding: 30px 20px 39px;
}
.service-card__icon {
  position: absolute;
  top: -30px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--red);
  border-radius: 50%;
  box-shadow: 0 2px 9px #00000011;
}
.service-card__icon .icon {
  width: 29px;
  height: 29px;
  stroke-width: 1.5;
}
.service-card__body h3 {
  margin: 5px 0 14px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.service-card__body p {
  margin: 0;
  color: #4c5964;
  font-size: 12px;
  line-height: 2;
}
.service-card__arrow {
  position: absolute;
  right: 17px;
  bottom: 13px;
  color: var(--red);
}
.service-card__arrow .icon {
  width: 20px;
  height: 20px;
}
.business-footnote {
  margin: 21px 0 0;
  color: #89959d;
  font-size: 11px;
  text-align: right;
}

/* Strength */
.strength {
  color: #fff;
  background:
    linear-gradient(90deg, #14202be8, #14202be0),
    url("../images/concrete-texture.webp") center/cover;
}
.strength__inner {
  min-height: 238px;
  display: grid;
  grid-template-columns: 30% 70%;
  align-items: center;
  padding-block: 42px;
}
.strength__intro .section-kicker {
  color: #ff7c86;
}
.strength__intro h2 {
  margin: 1px 0 17px;
  font: 700 31px/1.3 var(--serif);
  letter-spacing: 0.06em;
}
.strength__intro p:last-child {
  margin: 0;
  font: 500 12px/1.9 var(--serif);
}
.strength__values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.strength-value {
  min-height: 115px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 9px;
  padding: 6px 15px;
  border-left: 1px solid #ffffff5c;
}
.strength-value .icon {
  width: 37px;
  height: 37px;
  stroke-width: 1.35;
}
.strength-value strong {
  font: 700 15px/1.4 var(--serif);
}
.strength-value span {
  font-size: 10px;
  line-height: 1.7;
  color: #e9f0f5;
}

/* Works */
.works {
  padding-top: 92px;
  padding-bottom: 108px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-head__note {
  display: inline-block;
  margin: 8px 0 0;
  font-size: 13px;
  color: #5a646e;
}
.works-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
}
.filter-button {
  background: transparent;
  border: 1px solid #cfd6dc;
  border-radius: 100px;
  padding: 7px 19px;
  color: #56616b;
  font-size: 12px;
  font-weight: 700;
  transition: 0.2s;
}
.filter-button:hover {
  border-color: var(--red);
  color: var(--red);
}
.filter-button.is-active {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 19px;
}
.work-card {
  min-width: 0;
}
.work-card__button {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  text-align: left;
  background: #fff;
  color: var(--ink);
}
.work-card__photo {
  position: relative;
  display: block;
  aspect-ratio: 1.52;
  overflow: hidden;
  background: #e6eaed;
}
.work-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.work-card__button:hover img {
  transform: scale(1.08);
}
.work-card__photo::after {
  content: "+";
  position: absolute;
  display: grid;
  place-items: center;
  right: 0;
  bottom: 0;
  width: 42px;
  height: 42px;
  background: var(--red);
  color: white;
  font-size: 24px;
  font-weight: 200;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.25s;
}
.work-card__button:hover .work-card__photo::after,
.work-card__button:focus-visible .work-card__photo::after {
  opacity: 1;
  transform: none;
}
.work-card__title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  padding-top: 11px;
}
.work-card__meta {
  display: block;
  color: #7d8992;
  font-size: 11px;
}
.works__notice {
  color: #8a9299;
  font-size: 11px;
  margin: 28px 0 0;
}
.works-empty {
  grid-column: 1/-1;
  color: var(--muted);
  padding: 45px 0;
}

/* Company / recruit image spread */
.feature {
  position: relative;
  isolation: isolate;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.feature__container {
  position: relative;
  z-index: 2;
}
.feature__content {
  width: min(46%, 525px);
  padding: 60px 40px 65px 0;
}
.feature__lead {
  margin: 12px 0 17px;
  font: 700 clamp(19px, 2.2vw, 27px)/1.5 var(--serif);
  letter-spacing: 0.06em;
}
.feature__content .body-copy {
  max-width: 465px;
  margin-bottom: 23px;
  font-size: 13px;
}
.feature__content .btn {
  min-width: 205px;
}
.feature__visual {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 40%;
}
.feature__visual::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #ffffffeb 11%,
    #ffffff14 47%,
    #fff0 80%
  );
}
.feature__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.feature--company {
  background: linear-gradient(90deg, #fff 0%, #fff 42%, #f1f6f9 100%);
}
.feature--company .feature__visual img {
  object-position: 50% 52%;
}
.feature--recruit {
  background: #f5f9fc;
}
.feature--recruit .feature__visual img {
  object-position: 60% 57%;
}
.feature--recruit .feature__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #badcf117, transparent 50%);
}

/* Profile */
.company-info {
  padding-block: 85px;
  background: #f7f9fa;
  border-bottom: 1px solid var(--line);
}
.company-info__inner {
  display: grid;
  grid-template-columns: 34% 1fr;
  gap: 9%;
}
.company-info__inner > div:first-child > p:last-child {
  margin: 22px 0 0;
  font: 500 15px/2 var(--serif);
}
.company-info__table {
  margin: 0;
}
.company-info__table > div {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 22px;
  border-bottom: 1px solid #dce2e6;
  padding: 16px 5px;
}
.company-info__table > div:first-child {
  border-top: 1px solid #dce2e6;
}
.company-info__table dt {
  font-weight: 800;
  font-size: 13px;
}
.company-info__table dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
}
.company-info__table dd small {
  display: block;
  color: #83919a;
  font-size: 11px;
}

/* News */
.news {
  padding-block: 78px;
}
.news__inner {
  display: grid;
  grid-template-columns: 26% 1fr;
  gap: 5%;
}
.news__heading > p:last-child {
  color: #5c6872;
  font-size: 12px;
  margin-top: 18px;
}
.news__content {
  border-top: 1px solid var(--line);
}
.news-row {
  display: grid;
  grid-template-columns: 120px 90px 1fr 22px;
  align-items: center;
  gap: 18px;
  padding: 19px 12px;
  border-bottom: 1px solid var(--line);
}
.news-row__date {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.news-row__label {
  padding: 5px 4px;
  background: #edf1f3;
  color: #677781;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
}
.news-row__text {
  font-size: 12px;
}
.news-row .icon {
  color: var(--red);
  width: 17px;
}
.news__notice {
  color: #9ba5ad;
  font-size: 11px;
}

/* Contact / Footer */
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding-block: 91px;
  background:
    linear-gradient(0deg, #eef5f8da, #ffffffae),
    url("../images/mountain-peaks.webp") center 39% / cover;
}
.contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #d9e8f33d, transparent, #d9e8f34d);
}
.contact .section-kicker {
  margin-bottom: 8px;
}
.contact h2 {
  margin: 0;
  font: 700 clamp(27px, 3.4vw, 43px)/1.45 var(--serif);
  letter-spacing: 0.08em;
}
.contact__inner > p:nth-last-child(2) {
  margin: 16px 0 25px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.9;
}
.btn--contact {
  min-width: 300px;
  gap: 16px;
}
.site-footer {
  background: #fff;
}
.site-footer__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding-block: 44px;
  border-bottom: 1px solid var(--line);
}
.site-footer__main .brand__mark {
  width: 63px;
  height: 63px;
}
.site-footer__main .brand__type strong {
  font-size: 20px;
}
.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 10px 22px;
}
.site-footer__nav a {
  font-size: 12px;
  font-weight: 700;
}
.site-footer__nav a:hover {
  color: var(--red);
}
.site-footer__brandcopy {
  font: 600 15px/1.9 var(--serif);
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 19px 0 27px;
  color: #89929c;
  font-size: 10px;
}
.back-to-top {
  display: grid;
  position: fixed;
  z-index: 50;
  bottom: 25px;
  right: 25px;
  width: 46px;
  height: 46px;
  place-items: center;
  color: white;
  background: #202b35;
  border: 1px solid #fff8;
  border-radius: 2px;
  box-shadow: 0 7px 22px #0002;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.25s,
    visibility 0.25s,
    transform 0.25s;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-to-top:hover {
  background: var(--red);
}
.back-to-top .icon {
  width: 21px;
}

/* Reusable dialogs and contact form */
.dialog {
  position: fixed;
  inset: 0;
  width: min(550px, calc(100% - 32px));
  max-height: calc(100dvh - 38px);
  border: 0;
  border-radius: 3px;
  padding: 0;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 18px 95px #0004;
  overflow-y: auto;
}
.dialog::backdrop {
  background: #0e1924b0;
  backdrop-filter: blur(4px);
}
.dialog__close {
  position: sticky;
  top: 14px;
  left: calc(100% - 60px);
  margin-bottom: -44px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  background: #fff;
  color: var(--ink);
  border: 1px solid #e3e5e7;
  border-radius: 50%;
  box-shadow: 0 3px 10px #0002;
}
.dialog__close:hover {
  color: var(--red);
}
.work-dialog > img {
  width: 100%;
  aspect-ratio: 1.7;
  object-fit: cover;
}
.dialog__content {
  padding: 33px 38px 40px;
}
.dialog__content h2 {
  font: 700 30px/1.5 var(--serif);
  margin: 6px 0 17px;
}
.dialog__content > p:not(.section-kicker) {
  font-size: 13px;
  line-height: 2;
}
.dialog__fineprint {
  color: #8a949c;
  font-size: 11px !important;
  margin-bottom: 23px;
}
.contact-dialog {
  width: min(640px, calc(100% - 32px));
}
.contact-dialog__intro {
  margin: 0 0 19px;
}
#contactForm {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#contactForm label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #28323b;
  font-size: 13px;
  font-weight: 700;
}
#contactForm label span {
  display: inline-block;
  width: max-content;
  padding: 1px 6px;
  background: #fff0f0;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
}
#contactForm input,
#contactForm select,
#contactForm textarea {
  display: block;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #cfd8df;
  border-radius: 2px;
  background: white;
  color: var(--ink);
  font-size: 14px;
}
#contactForm textarea {
  resize: vertical;
  min-height: 130px;
}
.btn--form {
  margin-top: 7px;
  width: 100%;
}
.form-status {
  margin: 0;
  font-weight: 700;
  color: var(--red);
  font-size: 13px;
}
.contact-dialog__note {
  font-size: 11px;
  color: #8b96a0;
  line-height: 1.8;
  margin: 0;
}

/* Entry animation: content stays readable without JS */
.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.js-enabled [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js-enabled [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Notebook and small desktop */
@media (max-width: 1190px) {
  :root {
    --header-height: 88px;
  }
  .container {
    width: min(calc(100% - 70px), var(--container));
  }
  .brand__mark {
    width: 60px;
    height: 60px;
  }
  .brand__type strong {
    font-size: 19px;
  }
  .brand__type small {
    font-size: 8.5px;
  }
  .header-inner {
    gap: 16px;
  }
  .desktop-nav {
    gap: 19px;
  }
  .desktop-nav a {
    font-size: 12px;
  }
  .header-contact {
    font-size: 12px;
    min-height: 48px;
    padding-inline: 15px;
  }
  .hero h1 {
    font-size: clamp(40px, 4.8vw, 55px);
  }
  .business-grid,
  .works-grid {
    gap: 14px;
  }
  .service-card__body {
    padding-inline: 16px;
  }
  .service-card__body h3 {
    font-size: 14px;
  }
  .strength__inner {
    grid-template-columns: 28% 72%;
  }
}
@media (max-width: 1020px) {
  :root {
    --header-height: 78px;
  }
  .desktop-nav,
  .header-contact {
    display: none;
  }
  .brand__type strong {
    font-size: 20px;
  }
  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 95;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    width: 50px;
    height: 50px;
    border: 1px solid #e0e5e8;
    border-radius: 1px;
    background: #fff;
  }
  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition:
      transform 0.25s,
      opacity 0.25s;
  }
  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-8px) rotate(-45deg);
  }
  .mobile-nav {
    position: fixed;
    z-index: 85;
    top: var(--header-height);
    right: 0;
    width: min(450px, 100%);
    height: calc(100dvh - var(--header-height));
    padding: 38px 35px;
    background: white;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transform: translateX(104%);
    visibility: hidden;
    transition:
      transform 0.36s var(--ease),
      visibility 0.36s;
  }
  .site-header.is-open .mobile-nav {
    transform: none;
    visibility: visible;
  }
  .mobile-nav__eyebrow {
    display: flex;
    justify-content: space-between;
    color: var(--red);
    font:
      700 12px Arial,
      sans-serif;
    letter-spacing: 0.18em;
    margin: 0 0 27px;
  }
  .mobile-nav__eyebrow span {
    font: 500 11px var(--sans);
    letter-spacing: 0.08em;
    color: #a4abb0;
  }
  .mobile-nav > a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e8eb;
    font: 700 20px/1.4 var(--serif);
  }
  .mobile-nav > a > span {
    color: var(--red);
    font:
      700 11px Arial,
      sans-serif;
  }
  .mobile-nav > a > .icon {
    margin-left: auto;
    width: 20px;
    color: var(--red);
  }
  .mobile-nav > a.mobile-nav__cta {
    color: var(--red);
  }
  .mobile-nav__bottom {
    margin: auto 0 0;
    padding-top: 35px;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: #859099;
  }
  .menu-scrim {
    display: block;
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 79;
    background: #0b1724a3;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
  }
  .site-header.is-open .menu-scrim {
    opacity: 1;
    visibility: visible;
  }
  .hero__vertical {
    display: none;
  }
  .concept__layout {
    grid-template-columns: 55% 45%;
  }
  .business-grid,
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .service-card__photo {
    aspect-ratio: 1.8;
  }
  .service-card__body {
    min-height: 172px;
  }
  .strength__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .strength__intro {
    text-align: center;
  }
  .strength__intro p:last-child br {
    display: none;
  }
  .feature__content {
    width: 50%;
  }
  .site-footer__brandcopy {
    display: none;
  }
}
/* Mobile tablet portrait */
@media (max-width: 680px) {
  :root {
    --header-height: 72px;
  }
  html {
    scroll-padding-top: 85px;
  }
  body {
    font-size: 14px;
  }
  .container {
    width: min(calc(100% - 38px), 560px);
  }
  .section {
    padding-block: 67px;
  }
  .section-kicker {
    font-size: 10px;
  }
  .section-title {
    font-size: clamp(30px, 8.3vw, 42px);
  }
  .body-copy {
    font-size: 13px;
    line-height: 2.05;
  }
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: initial;
  }
  .brand {
    gap: 7px;
  }
  .brand__mark {
    width: 51px;
    height: 51px;
  }
  .brand__type strong {
    font-size: clamp(15px, 4.5vw, 19px);
    letter-spacing: 0.01em;
  }
  .brand__type small {
    font-size: 8px;
    letter-spacing: 0.13em;
    margin-top: 5px;
  }
  .menu-toggle {
    width: 42px;
    height: 42px;
    gap: 5px;
  }
  .menu-toggle span {
    width: 19px;
  }
  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }
  .mobile-nav {
    padding: 27px 24px 35px;
  }
  .mobile-nav > a {
    padding-block: 18px;
    font-size: 18px;
  }
  /* On mobile, keep the headline on a clear canvas and use the site visual below it. */
  .hero {
    height: auto;
    min-height: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .hero__picture {
    position: relative;
    order: 2;
    z-index: 0;
    width: 100%;
    height: clamp(295px, 83vw, 485px);
    overflow: hidden;
  }
  .hero__picture img {
    position: relative;
    object-position: center 62%;
  }
  .hero__veil {
    display: none;
  }
  .hero__inner {
    order: 1;
    display: block;
    height: auto;
    padding-block: 47px 42px;
  }
  .hero__body {
    margin: 0;
  }
  .hero__eyebrow {
    display: block;
    margin: 0 0 19px;
    color: var(--red);
    font:
      700 9px/1.5 Arial,
      sans-serif;
    letter-spacing: 0.14em;
  }
  .hero h1 {
    font-size: clamp(29px, 8.2vw, 49px);
    line-height: 1.48;
    letter-spacing: 0.015em;
    white-space: nowrap;
  }
  .hero .heading-line {
    margin-block: 22px;
  }
  .hero__description {
    margin-bottom: 27px;
    font-size: 12.5px;
    line-height: 2;
  }
  .hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .hero__actions .btn {
    min-width: 0;
    padding: 13px 10px;
    font-size: 11px;
    gap: 8px;
  }
  .hero__actions .btn .icon {
    width: 14px;
    height: 14px;
  }
  .hero__scroll,
  .hero__vertical {
    display: none;
  }
  .hero__bottom-trim {
    display: none;
  }
  .concept {
    padding-top: 70px;
    padding-bottom: 65px;
  }
  .concept__layout {
    display: flex;
    flex-direction: column;
  }
  .concept__copy {
    width: 100%;
  }
  .concept__copy .body-copy {
    padding: 0;
  }
  .concept__lead {
    font-size: 18px;
  }
  .concept__art {
    margin: 30px -19px 0 0;
    width: calc(100% + 19px);
    min-height: 235px;
    clip-path: none;
  }
  .concept__handwriting {
    font-size: 17px;
    left: 13%;
    top: 22%;
  }
  .concept__vertical {
    right: 12%;
    bottom: 17px;
    font-size: 10px;
  }
  .concept__english {
    display: none;
  }
  .business-heading {
    margin: 51px 0 25px;
    align-items: start;
  }
  .business-heading__aside {
    margin: 6px 0 0;
    font: 500 11px/1.65 var(--sans);
    color: #6f7c85;
    text-align: right;
  }
  .business-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .service-card__photo {
    aspect-ratio: 1.3;
  }
  .service-card__icon {
    width: 48px;
    height: 48px;
    top: -22px;
    left: 13px;
  }
  .service-card__icon .icon {
    width: 25px;
    height: 25px;
  }
  .service-card__body {
    min-height: 217px;
    padding: 31px 13px 31px;
  }
  .service-card__body h3 {
    font-size: clamp(12px, 3.4vw, 14px);
    margin: 3px 0 12px;
  }
  .service-card__body p {
    font-size: 11px;
    line-height: 1.85;
  }
  .business-footnote {
    font-size: 10px;
    text-align: left;
  }
  .strength__inner {
    padding-block: 51px 54px;
  }
  .strength__intro h2 {
    font-size: 29px;
  }
  .strength__values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 0;
  }
  .strength-value {
    padding: 12px 12px;
    border-left: 0;
  }
  .strength-value:nth-child(even) {
    border-left: 1px solid #ffffff42;
  }
  .strength-value .icon {
    width: 34px;
    height: 34px;
  }
  .strength-value strong {
    font-size: 14px;
  }
  .strength-value span {
    font-size: 10px;
  }
  .section-head {
    display: block;
    margin-bottom: 24px;
  }
  .section-head__note {
    display: block;
    font-size: 12px;
  }
  .section-head .btn {
    margin-top: 21px;
  }
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }
  .work-card__title {
    font-size: 12px;
  }
  .work-card__meta {
    font-size: 10px;
  }
  .filter-button {
    font-size: 11px;
    padding: 6px 14px;
  }
  .works__notice {
    font-size: 10px;
  }
  .feature {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .feature__container {
    width: 100%;
    order: 1;
    padding-inline: max(19px, calc((100% - 560px) / 2));
  }
  .feature__content {
    padding: 49px 0 44px;
    width: 100%;
  }
  .feature__content .body-copy {
    font-size: 13px;
  }
  .feature__lead {
    font-size: 21px;
  }
  .feature__visual {
    position: relative;
    inset: auto;
    order: 2;
    height: clamp(240px, 66vw, 390px);
    width: 100%;
  }
  .feature__visual::before {
    background: linear-gradient(0deg, #fff0, #fff1);
  }
  .feature__visual img {
    object-position: 50% 55%;
  }
  .feature--recruit .feature__visual img {
    object-position: center;
  }
  .company-info {
    padding-block: 64px;
  }
  .company-info__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .company-info__inner > div:first-child > p:last-child {
    font-size: 13px;
  }
  .company-info__table > div {
    grid-template-columns: 90px 1fr;
    gap: 10px;
    padding: 17px 2px;
  }
  .company-info__table dt,
  .company-info__table dd {
    font-size: 12px;
  }
  .news {
    padding-block: 67px;
  }
  .news__inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .news__heading > p:last-child {
    margin-top: 9px;
  }
  .news-row {
    grid-template-columns: 88px 66px 1fr 15px;
    gap: 8px;
    padding: 17px 0;
  }
  .news-row__date,
  .news-row__text {
    font-size: 10px;
  }
  .news-row__label {
    font-size: 9px;
  }
  .news-row .icon {
    width: 14px;
  }
  .contact {
    padding: 77px 0 76px;
  }
  .contact h2 {
    font-size: clamp(26px, 6.4vw, 36px);
  }
  .contact__inner > p:nth-last-child(2) {
    font-size: 12px;
    margin: 17px 0 25px;
  }
  .btn--contact {
    min-width: min(320px, 100%);
  }
  .site-footer__main {
    flex-direction: column;
    align-items: start;
    gap: 27px;
    padding-block: 40px;
  }
  .site-footer__main .brand__mark {
    width: 57px;
    height: 57px;
  }
  .site-footer__main .brand__type strong {
    font-size: 18px;
  }
  .site-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    border-top: 1px solid var(--line);
    padding-top: 28px;
  }
  .site-footer__nav a {
    font-size: 12px;
  }
  .site-footer__bottom {
    flex-direction: column;
    gap: 7px;
    padding-bottom: 32px;
  }
  .back-to-top {
    width: 43px;
    height: 43px;
    right: 15px;
    bottom: 16px;
  }
  .dialog__content {
    padding: 30px 22px 30px;
  }
  .dialog__content h2 {
    font-size: 26px;
  }
}
@media (max-width: 370px) {
  .container {
    width: calc(100% - 30px);
  }
  .brand__type strong {
    font-size: 14px;
  }
  .brand__type small {
    font-size: 7px;
  }
  .hero h1 {
    font-size: 27px;
  }
  .service-card__body {
    min-height: 244px;
  }
  .business-heading__aside {
    font-size: 9px;
  }
  .service-card__body h3 {
    font-size: 12px;
  }
  .news-row {
    grid-template-columns: 80px 58px 1fr 13px;
    gap: 5px;
  }
}
@media (max-width: 370px) {
  /* Bleed the concept visual only to the screen edge, without horizontal scroll. */
  .concept__art {
    width: calc(100% + 15px);
    margin-right: -15px;
  }
}


/* Company profile page */
.subhero {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: #dce5ea;
}
.subhero__media,
.subhero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.subhero__media {
  z-index: -3;
}
.subhero__media img {
  object-fit: cover;
  object-position: 58% 55%;
}
.subhero__overlay {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #fff 0%,
      #fffffff0 25%,
      #ffffff7d 53%,
      #ffffff0a 78%
    ),
    linear-gradient(0deg, #17212b33, transparent 45%);
}
.subhero__inner {
  padding-bottom: 22px;
}
.subhero h1 {
  margin: 0;
  font: 700 clamp(42px, 5vw, 67px)/1.35 var(--serif);
  letter-spacing: 0.08em;
}
.subhero__inner > p:last-child {
  margin: 20px 0 0;
  font: 700 clamp(15px, 1.5vw, 20px)/1.9 var(--serif);
  letter-spacing: 0.09em;
}
.breadcrumb {
  position: absolute;
  left: 50%;
  bottom: 19px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  align-items: center;
  color: #fff;
  font-size: 11px;
  text-shadow: 0 1px 5px #000;
}
.breadcrumb a {
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: #ffd4d7;
}

.philosophy {
  background: linear-gradient(135deg, #fff 50%, #f5f8fa 100%);
}
.philosophy__layout {
  display: grid;
  grid-template-columns: 44% 1fr;
  gap: 9%;
  align-items: center;
}
.philosophy__heading {
  position: relative;
  padding-left: 41px;
}
.philosophy__heading::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 1px;
  background: var(--red);
}
.philosophy__heading .section-title {
  font-size: clamp(28px, 3.2vw, 45px);
  line-height: 1.65;
}
.philosophy__lead {
  margin: 0 0 24px;
  font: 700 clamp(19px, 2vw, 27px)/1.8 var(--serif);
  letter-spacing: 0.065em;
}

.message {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(460px, 0.94fr);
  min-height: 610px;
  background: #f4f7f8;
}
.message__photo {
  min-height: 610px;
  overflow: hidden;
}
.message__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.message__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px clamp(45px, 6vw, 100px);
}
.message__body h2 {
  margin: 0 0 26px;
  font: 700 clamp(26px, 3vw, 41px)/1.55 var(--serif);
  letter-spacing: 0.05em;
}
.message__body > p:not(.section-kicker, .message__sign) {
  margin: 0 0 15px;
  color: #46525b;
  font-size: 13px;
  line-height: 2.05;
}
.message__sign {
  align-self: flex-end;
  margin: 17px 0 0;
  text-align: right;
  font-size: 12px;
  line-height: 1.8;
}
.message__sign strong {
  font: 700 18px var(--serif);
}
.message__sign span {
  display: block;
  color: #8b969e;
  font-size: 10px;
}

.profile {
  background: #fff;
}
.profile__head {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: end;
  gap: 0 40px;
  margin-bottom: 37px;
}
.profile__head .section-kicker {
  grid-column: 1/-1;
}
.profile__head > p:last-child {
  margin: 0 0 7px;
  color: #7c8992;
  font-size: 11px;
  text-align: right;
}
.profile-table {
  width: min(100%, 980px);
  margin: 0 auto;
  border-top: 2px solid var(--ink);
}
.profile-table > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid #dce2e6;
}
.profile-table dt {
  padding: 20px 27px;
  background: #f4f6f7;
  font-size: 13px;
  font-weight: 800;
}
.profile-table dd {
  margin: 0;
  padding: 20px 31px;
  font-size: 13px;
}
.profile-table small {
  display: block;
  margin-top: 3px;
  color: #849099;
  font-size: 10px;
}
.profile__notice {
  width: min(100%, 980px);
  margin: 20px auto 0;
  color: #89949c;
  font-size: 10px;
}

.scope {
  background: linear-gradient(180deg, #f4f7f9, #fff);
}
.scope__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 38px;
}
.scope__head > p {
  margin: 0 0 7px;
  font: 600 14px/1.8 var(--serif);
  letter-spacing: 0.07em;
}
.scope-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #cfd7dc;
  border-bottom: 1px solid #cfd7dc;
}
.scope-card {
  position: relative;
  min-height: 250px;
  padding: 36px 29px 31px;
  border-left: 1px solid #cfd7dc;
}
.scope-card:last-child {
  border-right: 1px solid #cfd7dc;
}
.scope-card > span {
  color: var(--red);
  font:
    700 11px Arial,
    sans-serif;
  letter-spacing: 0.17em;
}
.scope-card h3 {
  margin: 25px 0 16px;
  font: 700 19px/1.5 var(--serif);
}
.scope-card h3::after {
  content: "";
  display: block;
  width: 29px;
  height: 2px;
  margin-top: 13px;
  background: var(--red);
}
.scope-card p {
  margin: 0;
  color: #5a6670;
  font-size: 12px;
  line-height: 1.95;
}
.scope__button {
  display: flex;
  width: max-content;
  margin: 34px auto 0;
}

.history {
  background: #fff;
}
.history__layout {
  display: grid;
  grid-template-columns: 27% 1fr;
  gap: 10%;
}
.history__heading > p:last-child {
  margin-top: 18px;
  font: 600 14px var(--serif);
}
.history-list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
.history-list::before {
  content: "";
  position: absolute;
  left: 91px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: #d6dde1;
}
.history-list li {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 37px;
  padding: 0 0 33px;
}
.history-list li:last-child {
  padding-bottom: 0;
}
.history-list li::before {
  content: "";
  position: absolute;
  left: 86px;
  top: 8px;
  width: 11px;
  height: 11px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}
.history-list li > span {
  margin: 2px 10px 0 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}
.history-list strong {
  font: 700 17px/1.5 var(--serif);
}
.history-list p {
  margin: 6px 0 0;
  color: #71808a;
  font-size: 12px;
}

.values {
  padding-block: 86px;
  color: #fff;
  background:
    linear-gradient(90deg, #16232de8, #16232de0),
    url("../images/concrete-texture.webp") center/cover;
}
.values__head {
  text-align: center;
}
.values__head .section-kicker {
  color: #ff8d96;
}
.values__head h2 {
  margin: 0;
  font: 700 clamp(27px, 3vw, 40px)/1.5 var(--serif);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 46px;
}
.values-grid article {
  position: relative;
  min-height: 205px;
  padding: 15px 48px;
  text-align: center;
  border-left: 1px solid #ffffff42;
}
.values-grid article:last-child {
  border-right: 1px solid #ffffff42;
}
.values-grid .icon {
  width: 45px;
  height: 45px;
  margin: 0 auto 10px;
  stroke-width: 1.3;
}
.values-grid span {
  display: block;
  color: #ff9098;
  font:
    700 10px Arial,
    sans-serif;
  letter-spacing: 0.15em;
}
.values-grid h3 {
  margin: 10px 0 12px;
  font: 700 19px var(--serif);
}
.values-grid p {
  margin: 0;
  color: #dce5e9;
  font-size: 11px;
  line-height: 1.9;
}

@media (max-width: 1020px) {
  .message {
    grid-template-columns: 1fr 1fr;
  }
  .message__body {
    padding-inline: 45px;
  }
  .scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .scope-card:nth-child(2) {
    border-right: 1px solid #cfd7dc;
  }
  .scope-card:nth-child(-n + 2) {
    border-bottom: 1px solid #cfd7dc;
  }
}

@media (max-width: 680px) {
  .subhero {
    min-height: 0;
    display: block;
    padding-top: 0;
    background: #fff;
  }
  .subhero__media {
    position: relative;
    height: 245px;
  }
  .subhero__media img {
    object-position: 64% 55%;
  }
  .subhero__overlay {
    top: auto;
    height: 245px;
    background: linear-gradient(0deg, #17212b52, transparent 60%);
  }
  .subhero__inner {
    padding-block: 38px 34px;
  }
  .subhero h1 {
    font-size: 38px;
  }
  .subhero__inner > p:last-child {
    margin-top: 13px;
    font-size: 14px;
  }
  .breadcrumb {
    bottom: 15px;
    font-size: 10px;
  }
  .philosophy__layout {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .philosophy__heading {
    padding-left: 22px;
  }
  .philosophy__heading .section-title {
    font-size: 28px;
  }
  .philosophy__heading .heading-line {
    margin-bottom: 22px;
  }
  .philosophy__lead {
    font-size: 18px;
  }
  .message {
    display: flex;
    flex-direction: column;
  }
  .message__photo {
    min-height: 0;
    height: 275px;
  }
  .message__body {
    padding: 52px 19px 57px;
  }
  .message__body h2 {
    font-size: 27px;
  }
  .profile__head {
    display: block;
  }
  .profile__head > p:last-child {
    margin-top: 13px;
    text-align: left;
  }
  .profile-table > div {
    grid-template-columns: 105px 1fr;
  }
  .profile-table dt,
  .profile-table dd {
    padding: 17px 13px;
    font-size: 11px;
  }
  .scope__head {
    display: block;
    margin-bottom: 25px;
  }
  .scope__head > p {
    margin-top: 12px;
    font-size: 12px;
  }
  .scope-grid {
    grid-template-columns: 1fr;
  }
  .scope-card {
    min-height: 0;
    padding: 27px 23px;
    border-right: 1px solid #cfd7dc;
    border-bottom: 1px solid #cfd7dc;
  }
  .scope-card:last-child {
    border-bottom: 0;
  }
  .scope-card h3 {
    margin-top: 14px;
    font-size: 18px;
  }
  .history__layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .history-list {
    padding-left: 35px;
  }
  .history-list::before {
    left: 7px;
    top: 7px;
    bottom: 8px;
  }
  .history-list li {
    display: block;
    padding: 0 0 38px;
    min-width: 0;
  }
  .history-list li::before {
    left: -33px;
    top: 5px;
  }
  .history-list li > span {
    display: block;
    margin: 0 0 7px;
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: 0.08em;
    text-align: left;
  }
  .history-list strong {
    font-size: 15px;
  }
  .history-list p {
    overflow-wrap: anywhere;
  }
  .values {
    padding-block: 68px;
  }
  .values-grid {
    grid-template-columns: 1fr;
    margin-top: 35px;
  }
  .values-grid article {
    min-height: 0;
    padding: 31px 20px;
    border-left: 0;
    border-bottom: 1px solid #ffffff42;
  }
  .values-grid article:last-child {
    border-right: 0;
    border-bottom: 0;
  }
}

@media (max-width: 390px) {
  .subhero__media {
    height: 220px;
  }
  .subhero__overlay {
    height: 220px;
  }
  .subhero h1 {
    font-size: 34px;
  }
  .message__body {
    padding-inline: 15px;
  }
  .profile-table > div {
    grid-template-columns: 92px minmax(0, 1fr);
  }
  .profile-table dt,
  .profile-table dd {
    padding-inline: 10px;
    overflow-wrap: anywhere;
  }
  .scope-card {
    padding-inline: 19px;
  }
}
