/* 下層ページ共通・ページ別スタイル
   (トップメッセージ / 会社概要 / グループ理念 / グループビジョン / サステナビリティ / アクセス)
   ※ コンテンツ幅はブラウザ幅の割合(base.css の --site-ratio)で決まる。
      ページごとの --page-ratio は「サイト幅に対する本文の幅の割合」 */

/* ============ ページ共通 ============ */
.page-wrap {
  --page-ratio: 0.7727; /* 989 / 1280 */
  width: calc(100% * var(--site-ratio) * var(--page-ratio));
  margin-inline: auto;
  padding: 2.5rem 0 6rem;
}
.page-wrap--msg { --page-ratio: 0.8359; } /* 1070 / 1280 */
.page-wrap--csr { --page-ratio: 0.8188; } /* 1048 / 1280 */

/* 見出し: 英字(細字) + 日本語、下に罫線 */
.page-title {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin: 0;
  padding-bottom: 4px;
  border-bottom: 1px solid #777;
  color: #444;
}
.page-title__en {
  font-family: var(--font-en-light);
  font-size: 2.3125rem;
  font-weight: 300;
  line-height: 1.25;
}
.page-title__ja {
  font-size: 0.875rem;
  font-weight: 700;
}
.page-title--lg .page-title__en { font-size: 3rem; }
.page-title--lg .page-title__ja { font-size: 1.125rem; }

/* ============ トップメッセージ ============ */
.msg {
  display: grid;
  grid-template-columns: 23.83% 1fr; /* 写真 255 / 1070 */
  column-gap: 3%;
  margin-top: 35px;
}
.msg__photo img {
  display: block;
  width: 100%;
  height: auto;
}
.msg__body p {
  margin: 0 0 1.5rem;
  color: #222;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.9;
  letter-spacing: 0.04em;
}
.msg__sign {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2.25rem;
  margin-top: 6px;
  padding-right: 3%;
}
.msg__sign-name {
  margin: 0;
  color: #444;
  font-size: 1rem;
  font-weight: 700;
}
.msg__sign img {
  display: block;
  width: 21.7%; /* 署名 170 / 783 */
  height: auto;
}

/* ============ 会社概要 ============ */
.profile {
  margin: 28px 0 0;
  /*padding-left: 19.3%;*/
  padding: 0 19.3%;
  color: #444;
  font-size: 1.25rem;
  font-weight: 700;
}
.profile__row {
  display: grid;
  grid-template-columns: 12rem 1fr;
  min-height: 3.5rem;
  line-height: 1.75;
}
.profile__row dt,
.profile__row dd {
  margin: 0;
  padding: 0.25rem 0;
}
.profile__row dd.is-strong { color: #000; }
.profile__members {
  margin: -0.25rem 0 0;
  padding: 0;
  list-style: none;
}
.profile__members li {
  display: grid;
  grid-template-columns: 10.5rem 1fr;
  line-height: 2.5rem;
}

/* ============ グループ理念 ============ */
.philosophy {
  width: min(100%, 800px);
  margin: 35px auto 0;
}
.philosophy img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============ グループビジョン ============ */
/* バナーは画面幅いっぱい。縦横比(1280:333)を保ったまま、画面幅に比例して画像・文字が大きくなる */
.vision-banner {
  background: linear-gradient(90deg, #0F46E1 50%, #00B050 50%);
}
.vision-banner__inner {
  position: relative;
  aspect-ratio: 1280 / 333;
  overflow: hidden;
  container-type: inline-size;
  color: #fff;
}
.vision-banner__inner > * { position: absolute; margin: 0; }
.vision-banner__truck { left: 25.78%; top: 0; width: 48.44%; height: auto; }
.vision-banner__it { left: 8.52%; top: 18.35%; width: 11.93%; height: auto; }
.vision-banner__is { left: 79.78%; top: 18.35%; width: 12.96%; height: auto; }
.vision-banner__name {
  width: 50%;
  top: 65.5%;
  text-align: center;
  font-family: "Meiryo", "Meiryo UI", "Noto Sans JP", sans-serif;
  font-size: 2.5625rem;
  font-size: 3.2cqw;
  font-weight: 700;
  line-height: 1.5;
}
.vision-banner__caption {
  width: 50%;
  top: 83.5%;
  text-align: center;
  font-size: 1.3125rem;
  font-size: 1.65cqw;
  font-weight: 700;
  line-height: 1.5;
}
.vision-banner__name--it, .vision-banner__caption--it { left: 0; }
.vision-banner__name--is, .vision-banner__caption--is { left: 50%; }

.vision-lead {
  margin: 38px 0 0;
  color: #000;
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
.vision-body {
  margin-top: 40px;
  padding-inline: 8px;
  color: #333;
  font-size: 1.1688rem;
  line-height: 2.0625rem;
}
.vision-body p { margin: 0; }

/* ============ サステナビリティ ============ */
/* バナーは vision.html と同じ縦横比(1280:333)。画面幅に比例して高さが変わる */
.csr-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1280 / 333;
  padding-top: 2rem;
  container-type: inline-size;
  background: #0b1a0b url("../images/page-csr-banner.jpg") center / cover no-repeat;
  color: #fff;
  text-align: center;
}
.csr-banner h1 { margin: 0; }
.csr-banner__en,
.csr-banner__ja {
  display: block;
}
.csr-banner__en {
  font-family: var(--font-en-light);
  font-size: clamp(2.5rem, 4.53cqw, 7rem);
  font-weight: 300;
  line-height: 1.2;
}
.csr-banner__ja {
  margin-top: 0.5rem;
  font-size: clamp(0.8125rem, 1.02cqw, 1.5rem);
  font-weight: 700;
}
.csr-subtitle {
  margin: 28px 0 0;
  color: #444;
  font-size: 1.125rem;
  font-weight: 700;
}
/* 画像グリッド: PCは2列。将来のスマホ対応では 1列に切り替える */
.csr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 24px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.csr-grid img {
  display: block;
  width: 100%;
  height: auto;
}
.csr-events-title {
  margin: 72px 0 0;
  color: #333;
  font-size: 1.125rem;
  font-weight: 500;
}

/* ============ アクセス ============ */
.access-address {
  margin-top: 12px;
}

/* 狭い画面での崩れ防止(本格的なレスポンシブ対応は今後) */
@media (max-width: 900px) {
  .page-wrap,
  .page-wrap--msg,
  .page-wrap--csr { --page-ratio: 1; }
}
@media (max-width: 767px) {
  .msg { grid-template-columns: 1fr; row-gap: 24px; }
  .msg__photo img { width: 60%; margin-inline: auto; }
  .msg__sign img { width: 40%; }
  .profile { padding-left: 0; font-size: 1.125rem; }
  .profile__row { grid-template-columns: 7rem 1fr; }
  .profile__members li { grid-template-columns: 8.5rem 1fr; }
  .page-title__en { font-size: 1.75rem; }
  .page-title--lg .page-title__en { font-size: 2.125rem; }
  .vision-lead { font-size: 1.25rem; }
  .vision-body { font-size: 1rem; line-height: 1.75rem; }
  .csr-grid { grid-template-columns: 1fr; }
}
