/* ============================================================
   マテリアリティページ募集スタイル
   ============================================================ */

/* ============================================================
   セクション共有見出し・X座標と区切デザイン
   ============================================================ */
.sp-only {
  display: none !important;
}

.mat-section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.mat-section-heading__en {
  display: block;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.mat-section-heading__ja {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  position: relative;
  padding-bottom: 20px;
  line-height: 1.4;
}

.mat-section-heading__ja::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--red);
}

/* ============================================================
   マテリアリティ特長・プロセス
   ============================================================ */
.mat-process {
  padding: 80px 0 40px;
  background: var(--bg-gray);
}

.mat-process__lead {
  max-width: var(--max-w);
  margin: 0 auto 64px;
  font-size: 15px;
  line-height: 2;
  color: var(--text);
  text-align: center;
}

.mat-process__lead--spaced {
  margin-top: 48px;
  margin-bottom: 0;
}

/* ============================================================
   フロー図
   ============================================================ */
.mat-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin-bottom: 72px;
}

.mat-flow__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  padding: 20px 12px 16px;
  flex: 1;
  min-width: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* STEP バッジはmat-step__badgeを使用、フロー側の文言調整 */
.mat-flow__item .mat-step__badge {
  margin-bottom: 16px;
}

.mat-flow__icon {
  width: 56px;
  height: 56px;
  background: none;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}

.mat-flow__icon svg {
  width: 36px;
  height: 36px;
}

.mat-flow__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mat-flow__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  line-height: 1.6;
}

/* ボタン */
.mat-flow__arrow {
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 10px solid var(--red);
  background: none;
  flex-shrink: 0;
  align-self: center;
  position: static;
}

.mat-flow__arrow::after {
  display: none;
}

/* ============================================================
   STEP詳細
   ============================================================ */
.mat-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.mat-step {
  background: #fff;
  padding: 36px 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.mat-step__header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.mat-step__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.mat-step__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.mat-step__text {
  font-size: 14px;
  line-height: 2;
  color: var(--text);
}

/* STEPのカラー詳細 */
.mat-step__detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.mat-step__detail-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.mat-step__detail-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mat-step__detail-img {
  aspect-ratio: 3 / 2;
  background: #d0d0d0;
  overflow: hidden;
}

.mat-step__detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   Responsive 対応版（～767px）
   ============================================================ */
@media screen and (max-width: 767px) {
  .mat-process {
    padding: 48px 0 0;
  }

  .mat-process__lead {
    font-size: 14px;
    margin-bottom: 48px;
  }

  .mat-process__lead--spaced {
    margin-top: 32px;
    margin-bottom: 0;
  }

  .mat-process ~ .sx-back-cta {
    padding: 56px 0 56px;
  }

  .mat-flow {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .mat-flow__item {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
  }

  .mat-flow__item .mat-step__badge {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .mat-flow__icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .mat-flow__label {
    text-align: left;
    flex: 1;
  }

  .mat-flow__arrow {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 10px solid var(--red);
    background: none;
    margin: 0 auto;
  }

  .mat-flow__arrow::after {
    display: none;
  }

  .mat-step {
    padding: 24px 20px;
  }

  .mat-step__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .mat-step__title {
    font-size: 20px;
  }

  .mat-step__detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* マテリアリティページでは最後のセクション(mat-process)がグレーなので調整 */
.mat-process ~ .sx-back-cta,
.mat-list ~ .sx-back-cta {
  background: var(--bg-gray);
}

/* ============================================================
   リード文
   ============================================================ */
.mat-lead {
  padding: 72px 0;
  background: #fff;
}

.mat-lead__text {
  max-width: var(--max-w);
  margin: 0 auto;
  font-size: 15px;
  line-height: 2;
  color: var(--text);
}

.mat-lead__text--spaced {
  margin-top: 1.5em;
}

/* ============================================================
   マテリアリティ一覧
   ============================================================ */
.mat-list {
  padding: 0 0 48px;
  background: #fff;
}

/* 各・マテリアリティ項目 */
.mat-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  grid-template-rows: auto auto;
  column-gap: 0;
  row-gap: 0;
  padding: 56px 0 32px;
}

/* 青・ラベルエリア（企業名・項目見出し など） */
.mat-item__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  padding-right: 40px;
  padding-top: 8px;
  border-right: 1px solid var(--border);
}

.mat-item__num {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-sub);
  line-height: 1.4;
}

.mat-item__num-value {
  font-size: 64px;
  font-weight: 200;
  line-height: 1;
  color: var(--red);
  margin-top: 6px;
  letter-spacing: -0.02em;
}

/* 左・コンテンツエリア */
.mat-item__body {
  padding-left: 40px;
}

/* 下部（説明ドット・カラーをまたいで全体に表示） */
.mat-item__rule {
  grid-column: 1 / -1;
  position: relative;
  height: 2px;
  background: var(--red);
  margin-top: 32px;
}

.mat-item__rule-dot {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

/* 画像エリア */
.mat-item__img {
  width: 100%;
  aspect-ratio: 16 / 7;
  background: #d0d0d0;
  margin-top: 28px;
  overflow: hidden;
}

.mat-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 強調背景ラベル */
.mat-item__category {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 6px 14px;
  margin-bottom: 20px;
}

/* 追従動作テーブル */
.mat-item__themes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  counter-reset: theme-counter;
}

.mat-item__themes li {
  counter-increment: theme-counter;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}

.mat-item__themes li::before {
  content: counter(theme-counter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-top: 2px;
}

/* 本文 */
.mat-item__text {
  font-size: 14px;
  line-height: 2;
  color: var(--text);
}

/* サブテーマ群（共有定義など複数マテリアリティ） */
.mat-item__subthemes {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 8px;
}

.mat-item__sub-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.mat-item__subtheme .mat-item__themes {
  margin-bottom: 8px;
}

/* サブテーマ内リンク */
.mat-item__subtheme-links {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mat-item__subtheme-link,
.mat-item__subtheme-link:link,
.mat-item__subtheme-link:visited {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: #cc0000 !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.mat-item__subtheme-link:hover,
.mat-item__subtheme-link:active {
  color: #cc0000 !important;
  opacity: 0.75;
  text-decoration: underline;
}

/* 純CSS赤色線の矢印アイコン */
.mat-item__subtheme-link::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-top: 2px solid #cc0000;
  border-right: 2px solid #cc0000;
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.mat-item__subtheme-link:hover::after {
  transform: translateX(3px) rotate(45deg);
}

/* ============================================================
   Responsive（～767px）
   ============================================================ */
@media screen and (max-width: 767px) {
  .mat-lead {
    padding: 48px 0;
  }

  .mat-list {
    padding-bottom: 32px;
  }

  .mat-item {
    grid-template-columns: 1fr;
    padding: 40px 0 24px;
    row-gap: 32px;
  }

  .mat-item__label {
    flex-direction: column;
    align-items: center;
    padding-right: 0;
    border-right: none;
    border-bottom: none;
  }

  .mat-item__num-value {
    font-size: 48px;
  }

  .mat-item__img {
    aspect-ratio: 16 / 10;
  }

  .mat-item__body {
    padding-left: 0;
  }

  .mat-item__themes li {
    font-size: 18px;
  }

  .mat-item__subtheme-link {
    font-size: 14px;
  }

  .mat-item__themes li::before {
    width: 26px;
    height: 26px;
    font-size: 13px;
    margin-top: 1px;
  }

  .mat-item__rule {
    margin-top: 24px;
  }

  .mat-section-heading__ja {
    font-size: 28px;
  }

  .mat-step__title {
    font-size: 20px;
  }

  .mat-step__detail-heading {
    font-size: 16px;
  }

  .mat-item__category {
    font-size: 13px;
    padding: 5px 12px;
    margin-bottom: 16px;
  }

  .mat-item__themes {
    margin-bottom: 16px;
  }

  .mat-item__subthemes {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 0;
  }

  .mat-item__subtheme .mat-item__themes {
    margin-bottom: 10px;
  }

  .sp-only {
    display: inline !important;
  }
}

/* ============================================================
   コンセプト図 (Concept Graphic)
   ============================================================ */
