/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body, div, p, h1, h2, h3, h4, h5, h6,
ul, ol, li, a, span, nav, header, footer, main, section {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --red:        #C8000A;
  --red-dark:   #a00008;
  --text:       #0C0C0C;
  --text-sub:   #666666;
  --bg:         #FFFFFF;
  --bg-gray:    #F5F5F5;
  --border:     #DEDEDE;
  --dark:       #1E1E1E;
  --font:       "Hitachi Sans", Verdana, "Noto Sans JP", "Yu Gothic UI", sans-serif;
  --max-w:      1275px;
  --pad-x:      40px;
  --sp:         767px;
}

/* ============================================================
   Base
   ============================================================ */
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 72px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.header__logo { flex-shrink: 0; }

.header__logo img {
  height: 36px;
  width: auto;
}

.header__logo-text {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.header__nav { flex: 1; }

.header__nav ul {
  display: flex;
  gap: 28px;
}

.header__nav a {
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.header__nav a:hover,
.header__nav a.is-current {
  color: var(--red);
  border-bottom-color: var(--red);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__inquiry {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  background: var(--red);
  color: #fff;
  white-space: nowrap;
  transition: background 0.2s;
}

.header__inquiry:hover {
  background: var(--red-dark);
}

.header__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  width: 36px;
  height: 36px;
}

.header__menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s;
}

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

/* ============================================================
   FV
   ============================================================ */
.fv {
  position: relative;
  overflow: hidden;
}

.fv__img {
  width: 100%;
  height: 320px;
  background: linear-gradient(135deg, #103858 0%, #1e5f82 50%, #3a8caa 100%);
}

.fv__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fv__text {
  position: absolute;
  bottom: 64px;
  left: 0;
  right: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.fv__text h1 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fv__text-en {
  display: block;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.fv__text-ja {
  display: block;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

/* FV 赤アクセントライン */
.fv__text::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--red);
  margin-bottom: 16px;
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
  background: var(--bg-gray);
  border-bottom: 1px solid var(--border);
}

.breadcrumb ol {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 10px var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 4px;
  font-family: "Hitachi Sans", Verdana, "Noto Sans JP", "Yu Gothic UI", sans-serif;
  font-size: 11px;
  line-height: 1.5;
  color: #0c0c0c;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li:not(:last-child) {
  white-space: nowrap;
  flex-shrink: 0;
}

.breadcrumb li + li::before {
  content: "›";
  margin: 0 6px;
  color: #666;
  flex-shrink: 0;
}

.breadcrumb a {
  color: #cc0000;
  text-decoration: none;
  transition: opacity 0.2s;
}

.breadcrumb a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* ============================================================
   Lead
   ============================================================ */
.lead {
  padding: 80px 0;
  background: #fff;
}

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

.lead__text--mt {
  margin-top: 24px;
}

/* ============================================================
   Featured Nav（横型カード）
   ============================================================ */
.featured-nav {
  padding: 80px 0;
  background-image: url(/image/h1/hsw/company/sustainability/sustainability_background.jpg) !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  position: relative;
}

.featured-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.featured-nav .container {
  position: relative;
  z-index: 1;
}

.featured-nav .container {
  padding-left: 0;
  padding-right: 0;
  position: relative;
  z-index: 1;
}

.featured-nav__list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  list-style: none;
  max-width: var(--max-w);
  margin: 0 auto;
  counter-reset: fcard-counter;
}

/* カード本体 */
.fcard {
  display: flex;
  align-items: stretch;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.25s;
  min-height: 220px;
  height: auto;
  counter-increment: fcard-counter;
}

.fcard:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

/* 左：画像エリア */
.fcard__img {
  flex-shrink: 0;
  width: 40%;
  background: linear-gradient(135deg, #dce8f0 0%, #c4d9e8 100%);
  overflow: hidden;
  position: relative;
}

.fcard__img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fcard:hover .fcard__img img {
  transform: scale(1.06);
}

/* 右：テキストエリア */
.fcard__body {
  flex: 1;
  padding: 48px 0 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  position: relative;
}

.fcard__body::before {
  content: none;
}

.fcard__label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
}

.fcard__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.fcard:hover .fcard__title {
  color: var(--red);
}

.fcard__desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
}

/* 右端：ボタンエリア */
.fcard__action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.fcard__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border: 1.5px solid var(--red);
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.fcard:hover .fcard__btn {
  background: var(--red);
  color: #fff;
}

.fcard__btn-arrow {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: 1px;
}

/* ============================================================
   Categories（3カラム）
   ============================================================ */
.categories {
  padding: 80px 0 96px;
  background: #fff;
}

.categories .container {
  padding-left: 0;
  padding-right: 0;
}

/* 3カラムの上に置く横長カード */
.categories__feature {
  display: flex;
  align-items: stretch;
  min-height: 230px;
  background: var(--bg-gray);
  overflow: hidden;
  margin-bottom: 20px;
}

.categories__feature-img {
  flex-shrink: 0;
  width: 40%;
  position: relative;
  overflow: hidden;
}

.categories__feature-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 画像下部から黒いグラデーションオーバーレイ */
.categories__feature-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 24px 20px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.categories__feature-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.categories__feature-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 34px 48px;
}

.categories__feature-body .categories__btn {
  font-size: 17px;
}

.categories__feature-desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--text);
}

.categories__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.categories__col {
  background: var(--bg-gray);
}

.categories__links {
  padding: 0 24px 24px;
}

/* 画像エリア */
.categories__img-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 16 / 9;
}

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

/* プレースホルダー色（実画像差し替え後は不要） */
.categories__img--env,
.categories__img--soc,
.categories__img--gov {
  background: #d0d0d0;
}

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

/* 画像下部から赤いグラデーションオーバーレイ */
.categories__img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 20px 20px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.categories__heading-en {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.categories__heading-ja {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.categories__links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.categories__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: color 0.2s;
}

/* 左→右へ流れる赤い下線（::afterから::beforeへ移動） */
.categories__btn::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

/* 右矢印 */
.categories__btn::after {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--red);
  border-right: 2px solid var(--red);
  transform: rotate(45deg);
  margin-left: 12px;
}

.categories__btn:hover {
  color: var(--red);
}

.categories__btn:hover::before {
  transform: scaleX(1);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--dark);
  color: #fff;
  padding: 56px 0 32px;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.footer__logo {
  margin-bottom: 32px;
}

.footer__logo img {
  height: 28px;
  width: auto;
}

.footer__logo-text {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.footer__nav {
  margin-bottom: 40px;
}

.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.footer__nav a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}

.footer__nav a:hover {
  color: #fff;
}

.footer__copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   Intermediate Responsive (768px〜1100px)
   ============================================================ */
@media screen and (max-width: 1100px) and (min-width: 768px) {
  .fcard {
    display: grid;
    grid-template-columns: 40% 1fr;
    grid-template-areas:
      "img body"
      "img action";
    align-items: start;
  }

  .fcard__img {
    grid-area: img;
    width: 100%;
    height: 100%;
  }

  .fcard__body {
    grid-area: body;
    padding: 36px 32px 16px 32px;
  }

  .fcard__action {
    grid-area: action;
    padding: 0 32px 36px 32px;
    justify-content: flex-start;
  }
}

/* ============================================================
   Responsive（〜767px）
   ============================================================ */
@media screen and (max-width: 767px) {
  .sp-only {
    display: inline !important;
  }

  :root {
    --pad-x: 20px;
  }

  /* Header */
  .header__inner { height: 60px; gap: 0; }
  .header__nav { display: none; }
  .header__inquiry { display: none; }
  .header__menu-btn { display: flex; margin-left: auto; }

  /* FV */
  .fv__img { height: 180px; }
  .fv__text { bottom: 32px; }
  .fv__text-ja { font-size: 22px; }
  .fv__text::before { margin-bottom: 12px; }

  /* Lead */
  .lead { padding: 48px 0; }
  .lead__text { font-size: 14px; }

  /* Featured Nav カード */
  .featured-nav { padding: 48px 0; }

  .featured-nav .container {
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
  }

  .fcard {
    flex-direction: column;
    height: auto;
  }

  .fcard__img {
    width: 100%;
    height: 200px;
  }

  .fcard__body {
    padding: 24px 20px 16px;
  }

  .fcard__title {
    font-size: 20px;
  }

  .fcard__action {
    padding: 0 20px 24px;
    justify-content: flex-start;
  }

  /* Categories */
  .categories { padding: 48px 0 64px; }

  .categories .container {
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
  }

  .categories__feature {
    flex-direction: column;
    min-height: 0;
    margin-bottom: 32px;
  }

  .categories__feature-img {
    width: 100%;
    height: 200px;
  }

  .categories__feature-title {
    font-size: 20px;
  }

  .categories__feature-body {
    padding: 24px 20px;
  }

  .categories__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .categories__heading-ja { font-size: 20px; }

  /* Footer */
  .footer__nav ul {
    flex-direction: column;
    gap: 14px;
  }
}

/* ============================================================
   ページ下部ナビゲーションボタン（共通）
   ============================================================ */
.sx-nav {
  padding: 80px 0;
  background: #fff;
}

.sx-nav__inner {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.sx-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 40px;
  font-size: 15px;
  font-weight: 700;
  border: 2px solid var(--red);
  color: var(--red) !important;
  background: #fff;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s;
}

.sx-nav__btn:hover {
  background: var(--red);
  color: #fff !important;
}

.sx-nav__btn--back::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg);
  flex-shrink: 0;
}

.sx-nav__btn--link::after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}

@media screen and (max-width: 767px) {
  .sx-nav {
    padding: 56px 0;
  }

  .sx-nav__inner {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .sx-nav__btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

/* ============================================================
   サステナビリティトップへ ボタン（共通）
   ============================================================ */
.sx-back-cta {
  padding: 32px 0 40px;
  text-align: center;
  background: #fff;
}

.sx-back-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 48px;
  border: 2px solid var(--red);
  color: var(--red) !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s;
}

.sx-back-cta__btn:hover {
  background: var(--red);
  color: #fff !important;
}

.sx-back-cta__arrow {
  display: block;
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-right: 4px;
}

@media screen and (max-width: 767px) {
  .sx-back-cta {
    padding: 24px 0 32px;
  }

  .sx-back-cta__btn {
    padding: 14px 32px;
    font-size: 14px;
  }
}

/* ============================================================
   フッターナビ（legacy FatMenuWide の standalone ページ向け調整）
   ============================================================ */
.FatMenuWide {
  box-sizing: border-box;
  padding: 0 15px;
}

.FatMenuWide .FatMenuSet {
  box-sizing: border-box;
  width: 100%;
  max-width: 1275px;
  margin: 0 auto;
}

@media screen and (min-width: 768px) and (max-width: 1304px) {
  .FatMenuWide .FMGrid1,
  .FatMenuWide .FMGrid2 {
    box-sizing: border-box;
  }

  .FatMenuWide .FMGrid1 { width: 25%; }
  .FatMenuWide .FMGrid2 { width: 50%; }

  .FatMenuWide .FMGrid1 .FMTopColumnMenu1,
  .FatMenuWide .FMGrid2 .FMTopColumnMenu2 {
    box-sizing: border-box;
    width: 100%;
  }
}

@media screen and (max-width: 767px) {
  .FatMenuWide { display: none; }
}

/* ============================================================
   HSW共通CSS干渉リセット
   ============================================================ */
body {
  background-color: #fff;
}

main a:link,
main a:visited,
.sx-back-cta a:link,
.sx-back-cta a:visited {
  text-decoration: none;
  color: inherit;
}

main a:hover {
  color: var(--red);
}

main h1, main h2, main h3, main h4,
main h5, main h6,
main h2 span, main h3 span, main h4 span,
main p, main li, main span, main div {
  background-color: transparent;
  background-image: none;
}

main h2, main h3, main h4, main h5, main h6 {
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

main h2 span {
  display: inline;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  line-height: inherit;
}

main ul, main ol {
  list-style: none;
}

main * {
  box-sizing: border-box;
}

/* ============================================================
   マテリアリティ別 関連事業（4列画像グリッド）
   ============================================================ */
.mat-item__projects {
  margin-top: 32px;
  width: 100%;
}

.mat-item__projects-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  margin-bottom: 16px;
  position: relative;
  padding-left: 12px;
}

.mat-item__projects-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: var(--red);
}

.mat-item__project-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mat-item__project-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #E0E0E0;
  border-radius: 4px;
  overflow: hidden;
}

.mat-item__project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mat-item__project-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-sub);
  margin: 0;
  text-align: left;
}

@media screen and (max-width: 767px) {
  .mat-item__projects-title {
    font-size: 16px;
  }
}

.mat-item__projects-grid--5col {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media screen and (max-width: 767px) {
  .mat-item__projects-grid--5col {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.mat-item__projects-grid--5col .mat-item__project-img {
  background: #FFF;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.mat-item__projects-grid--5col .mat-item__project-img img {
  object-fit: contain;
  width: auto;
  height: 100%;
  max-width: 100%;
}

/* ============================================================
   右サイドメニュー調整
   ============================================================ */
@media screen and (max-width: 994px) {
    .JS .Grid1 {
        width: 300px;
    }
}

@media screen and (max-width: 767px) {
  .JS .Grid1 {
      width: auto;
  }
  .env-layout {
    background-color: #FFFFFF;
  }
}
