/* ========================================
   about.css
   採用メッセージ / 会社・ビジョン紹介 / 数字で見るNECファシリティーズ
   ======================================== */


/* ============================================================
   採用メッセージ (message)
   ============================================================ */

.message__inner {
  max-width: 934px;
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

.message__wrapper {
  overflow: hidden;
}
.message__wrapper p {
  color: #000;
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.9;
}

.message__img{
  margin-top: 16px;
}

.name{
    font-weight: 700;
}

.name > span{
    font-size: 18px;
}

.message__row{
    display: flex;
    justify-content: space-between;
}

.message__text{
    flex: 2;
}

.message__img img {
  width: 212px;
  height: auto;
  border-radius: 10px;
}

.message__img > p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.message__img > p span {
  font-weight: 700;
}


/* ============================================================
   会社・ビジョン紹介 (vision)
   ============================================================ */

/*--------------- 共通 ---------------*/
h3.subtitle {
  font-size: 26px;
  line-height: 1.4;
  margin-top: 52px;
  margin-bottom: 16px;
}

/*--------------- INTRO ---------------*/
.intro__inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  gap: 30px;
  /* align-items: flex-end; */
  height: 100%;
  padding-left: var(--side-pad);
  padding-right: var(--side-pad);
}

.intro__video-wrap {
  flex: 1;
  min-width: 0;
}

.intro__video-placeholder {
  background:url(../img/movie-thumb_01.jpg) center no-repeat;
  background-size: cover;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}


.intro__text {
  flex: 1;
  min-width: 0;
  color: var(--black);
  display: flex;
  flex-direction: column;
}

.intro__heading {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.3;
  color: var(--black);
  margin-bottom: 16px;
}

.intro__body {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.8;
  color: var(--black);
}

/*--------------- 01 誇れる現場力 ---------------*/

.field-strength {
  padding: 60px 0 80px;
}
.field-strength .desc{
  color: #fff;
}
.field-strength__subsection {
  margin-bottom: 44px;
}

.field-strength__subsection:last-child {
  margin-bottom: 0;
}

.field-strength .c-section-title {
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.field-strength__cards {
  display: flex;
  gap: 20px;
}

.field-strength__cards--two {
  width: 100%;
}

.field-strength__cards--three {
  gap: 20px;
}

/* Stat Card */
.stat-card {
  background: var(--white);
  border-radius: 10px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex: 1;
}

.field-strength__cards--two .stat-card {
  min-height: 278px;
}

.field-strength__cards--three .stat-card {
  min-height: 278px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stat-card__content {
  display: flex;
  flex-direction: column;
}

.stat-card--small .stat-card__content {
  align-items: center;
}

.stat-card__label {
  font-weight: 700;
  font-size: 24px;
  color: var(--nec-blue);
  line-height: 1.4;
  margin-bottom: 8px;
}

.stat-card__number-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.stat-card__number {
  font-family: "Noto Sans", "Noto Sans JP", sans-serif;
  font-weight: 600;
  font-size: 90px;
  color: var(--black);
  line-height: 1;
}

.stat-card__unit {
  font-weight: 700;
  font-size: 30px;
  color: var(--black);
  line-height: 1;
}

.stat-card__image {
  display: block;
}

.stat-card__image--map {
  height: 220px;
  width: auto;
  opacity: 0.9;
}

.stat-card__image--people {
  height: 120px;
  width: auto;
}

.stat-note {
  margin-top: 24px;
  font-weight: 300;
  text-align: right;
}

.stat-note a {
  text-decoration: underline;
  text-decoration-color: white;
}

/*--------------- 02 変化への対応 ---------------*/

.adaptation__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--nec-blue);
  border-radius: 10px;
  margin-bottom: 80px;
}

.adaptation__item {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 24px 24px 24px 0;
  border-bottom: 1px solid var(--nec-blue);
  border-right: 1px solid var(--nec-blue);
  min-height: 170px;
}

.adaptation__item:nth-child(2n) {
  border-right: none;
}

.adaptation__item:nth-child(3),
.adaptation__item:nth-child(4) {
  border-bottom: none;
}

.adaptation__icon-wrap {
  position: relative;
  width: 170px;
  height: 170px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.adaptation__icon-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.adaptation__icon {
  position: relative;
  width: 89px;
  height: 111px;
  object-fit: contain;
  z-index: 1;
}

.adaptation__text {
  flex: 1;
  min-width: 0;
}

.adaptation__item-title {
  font-weight: 700;
  font-size: 20px;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 12px;
}

.adaptation__item-body {
  font-weight: 500;
  font-size: 14px;
  color: #000;
  line-height: 1.8;
}

.adaptation__summary {
  font-weight: 700;
  font-size: 20px;
  color: var(--black);
  line-height: 1.6;
  text-align: center;
}

/*--------------- 03 現場力×最新技術によるスマート化 ---------------*/

.smart-ifm__text .c-label {
  margin-bottom: 5px;
}

.smart-ifm__diagram {
  text-align: center;
}

.smart-ifm__diagram-img {
  width: 490px;
  height: 490px;
}

/*--------------- 04 未来を動かす3つのエンジン ---------------*/

.three-engines {
  padding: 64px 0 80px;
}

.three-engines__cards {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* Engine Card (共通) */
.engine-card {
  min-width: 0;
}

.engine-card__image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 10px;
}

.engine-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.engine-card__title {
  font-size: 26px;
  font-weight: 700;
  color: var(--nec-blue);
  line-height: 1.4;
  margin-bottom: 16px;
}

.engine-card__body {
  font-weight: 500;
  font-size: 16px;
  color: #000;
  line-height: 1.8;
}

/* FM-Base 特集パネル */
.engine-fm-featured {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.engine-fm-featured__image-wrap {
  width: 42%;
  flex-shrink: 0;
  aspect-ratio: 479 / 247;
  overflow: hidden;
  border-radius: 10px;
}

.engine-fm-featured__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.engine-fm-featured__content {
  flex: 1;
  min-width: 0;
}

.engine-fm-featured__content .engine-card__title {
  margin-bottom: 24px;
}

.engine-fm-featured__meta {
  margin-top: 24px;
}

/* FM-Base 図版 */
.engine-fm-diagram__img {
  width: 100%;
  height: auto;
  display: block;
}

.engine-fm-diagram__note {
  margin-top: 12px;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

/* PC: engine-fm-featured と engine-fm-diagram の余白を約32pxに縮める（gap 64px − 32px） */
@media (min-width: 1025px) {
  .engine-fm-diagram {
    margin-top: -32px;
  }
}

/* DX & マイスター 2カラム */
.engine-cards-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

/*--------------- 05 ビジネス成長を支える進化 ---------------*/

.business-growth__img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}


/* ============================================================
   数字で見るNECファシリティーズ (data)
   ============================================================ */

.data-stats {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.data-stats__group {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.data-stats .c-heading {
  font-size: 40px;
  color: var(--black);
}

.data-stats .c-icon-cards {
  gap: 30px;
}

.data-stats .c-icon-card {
  min-height: 294px;
  border:none;
  cursor: default;
  transition: none;
}

.data-stats .c-icon-card__icon-wrap {
  background: none;
  border-radius: 0;
  display: block;
}

.data-stats .c-icon-card__icon {
  display: block;
  width: 100%;
  height: 100%;
}

.data-stats .c-icon-card:hover {
  border-color: #a7afc1;
  box-shadow: none;
}


/*--------------- data page ---------------*/
.page-data .l-hero__title {
  font-size: 40px;
}

/* ========================================
   レスポンシブ 1024px
   ======================================== */
@media (max-width: 1024px) {

  /* 採用メッセージ */
  .l-section.message{
  padding:0;
  }
  .message__inner {
    padding: 0 16px;
    max-width: 640px;
  }
  .message__row{
    flex-flow: column;
  }
  .message__img{
    margin: 32px auto 0;
    display: flex;
    flex-flow: column;
    align-items: center;
  }
  .message__img img {
    width: 180px;
  }
  .message__img > p {
    text-align: center;
  }

  /* 会社・ビジョン紹介 */
  h3.subtitle { font-size: 22px; margin-top: 16px; margin-bottom: 8px; }

  .intro__inner { flex-direction: column; height: auto; max-width: 790px; gap: 0; }
  /* SP: ラベル・見出しを画像の上に表示（動画に差し替わっても .intro__video-wrap で適用される） */
  .intro__text { display: contents; }
  .intro .c-label { order: 1; }
  .intro__heading { font-size: 24px; order: 2; margin-bottom: 20px; }
  .intro__video-wrap { order: 3; margin-bottom: 20px; }
  .intro__body { font-size: 14px; order: 4; }

  .field-strength { padding: 40px 0 56px; }
  .field-strength .c-section-title { margin-bottom: 16px; }
  .field-strength__cards { flex-direction: column; }
  .field-strength__cards--two .stat-card { min-height: 188px; }
  .field-strength__cards--three .stat-card { min-height: auto; }
  .stat-card { padding: 24px; }
  .stat-card__label { font-size: 18px; }
  .stat-card__number { font-size: 52px; }
  .stat-card__unit { font-size: 20px; }
  .stat-card__image--map { height: 140px; }
  .stat-card__image--people { height: 80px; }

  .adaptation__grid { grid-template-columns: 1fr; margin-bottom: 40px; }
  .adaptation__item { border-right: none; padding: 16px 16px 16px 0; }
  .adaptation__item:nth-child(2n) { border-right: none; }
  .adaptation__item:nth-child(3) { border-bottom: 1px solid var(--nec-blue); }
  .adaptation__item:nth-child(4) { border-bottom: none; }
  .adaptation__icon-wrap { width: 120px; height: 120px; flex-shrink: 0; }
  .adaptation__icon { width: 70px; height: auto; }
  .adaptation__item-title { font-size: 16px; }
  .adaptation__summary { font-size: 14px; }
  .adaptation__item-body { font-size: 12px; }

  .smart-ifm__diagram { margin: auto; }
  .smart-ifm__diagram-img { max-width: 400px; width: 100%; height: auto; }

  .three-engines { padding: 40px 0 56px; }

  /* SP: 図版を「住所」ブロックの上に表示するため、
     .engine-fm-featured / __content を display:contents で平坦化して order で並び替え */
  .three-engines__cards { gap: 24px; }
  .engine-fm-featured { display: contents; }
  .engine-fm-featured__content { display: contents; }
  /* SP: 見出しを画像の上に表示（order 入れ替え） */
  .engine-fm-featured__content .engine-card__title { order: 1; margin-bottom: 0; }
  .engine-fm-featured__image-wrap { order: 2; width: 100%; aspect-ratio: 16 / 9; }
  .engine-fm-featured__content .engine-card__body:not(.engine-fm-featured__meta) { order: 3; }
  .engine-fm-diagram { order: 4; }
  .engine-fm-featured__meta { order: 5; margin-top: 0; }
  .engine-cards-sub { order: 6; margin-top: 24px; grid-template-columns: 1fr; gap: 40px; }

  /* SP: 見出しを画像の上に表示（order 入れ替え） */
  .engine-card { display: flex; flex-direction: column; }
  .engine-card .engine-card__title { order: 1; }
  .engine-card .engine-card__image-wrap { order: 2; }
  .engine-card .engine-card__body { order: 3; }
  .engine-card__title { font-size: 20px; }
  .engine-card__body { font-size: 14px; }

  /* 数字で見るNECファシリティーズ */
  .data-stats {
    gap: 48px;
  }

  .data-stats .c-heading {
    font-size: 24px;
  }

  .data-stats .c-icon-cards {
    gap: 16px;
  }

  .data-stats .c-icon-card {
    min-height: 226px;
  }

  .page-data .l-hero__title {
    font-size: 24px;
  }

}


