/* ============================================================
   top.css - トップページ専用スタイル
   ============================================================ */

/* ──────────────────────────────────────────
   ヒーロー（Figma 1106:474 上部、dark overlayが y=10-863）
────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1446 / 864;
  min-height: 480px;
  overflow: hidden;
  background-color: #000000;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 13, 33, 0.3);
}

.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  max-width: 1440px;
  margin: 0 auto;
}

.hero__title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: clamp(22px, 2.5vw, 36px);
  line-height: 1.6;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.04em;
}

.hero__title br + * {
  margin-top: 0;
}

/* Who we are ロゴ: hero_stars.jpg の左下に配置 */
.hero__who-logo {
  position: absolute;
  left: 4.633%;   /* Figma x=67 (67/1446) */
  bottom: 0;
  width: 60.581%; /* Figma w=876 (876/1446) */
  height: auto;
  z-index: 3;
}

/* ──────────────────────────────────────────
   Who we are + ベン図（Figma 1106:474 下部）
   Who we are ロゴは hero 側へ移動。残り要素は y=248 分上にシフト
   → 実セクション高さ 1957-248=1709 基準で百分率化
────────────────────────────────────────── */
.who-section {
  position: relative;
  width: 100%;
  aspect-ratio: 1446 / 1709;
  overflow: hidden;
  background-color: #000000;
  color: #ffffff;
  font-family: "Noto Sans JP", sans-serif;
}

.who-section__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

.who-section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,13,33,0.1) 0%, rgba(0,13,33,0.3) 100%);
  z-index: 1;
  pointer-events: none;
}

.who-section > *:not(.who-section__bg):not(.who-section__overlay) {
  position: absolute;
  z-index: 2;
}

/* 創業80年以上の信用と技術: Figma (x=81, y=56 after shift, 60px Bold) */
.who-section__subtitle {
  left: 5.602%;
  top: 3.277%;   /* 56/1709 */
  margin: 0;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 4.2vw, 60px);
  line-height: normal;
  color: #ffffff;
  white-space: normal;
  letter-spacing: 0;
}

/* 本文（1段落化、サイズ縮小）: Figma (x=88, y=157 after shift, w=734) */
.who-section__body {
  left: 6.086%;
  top: 9.187%;     /* 157/1709 */
  width: 50.761%;
  margin: 0;
  font-weight: 300;
  font-size: 18px;
  line-height: 28px;
  color: #ffffff;
}

/* COMPANY ボタン: label (x=98, y=370, w=141, 20px Bold) + icon (x=239, y=352, 64×64) */
.who-section__company {
  left: 6.777%;
  top: 20.597%;  /* 352/1709 */
  display: flex;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  z-index: 5;
}

.who-section__company-label {
  display: inline-block;
  width: 141px;
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;
  letter-spacing: 0;
}

.who-section__company-icon {
  display: inline-block;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.who-section__company-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.who-section__company:hover .who-section__company-icon {
  transform: translateX(4px);
}

/* ベン図中央の大円: Figma (x=358, y=475 after shift, 720×720) */
.venn__center-ring {
  left: 24.758%;
  top: 27.794%;   /* 475/1709 */
  width: 49.792%;
  height: auto;
  aspect-ratio: 1;
}

/* 4つの事業円 共通: 380×380 = 26.279% of 1446 */
.venn__circle {
  width: 26.279%;
  aspect-ratio: 1;
}

/* 4つの円の配置（y 基準 864+248 を差し引き）
   上:    x=531.5,  y=298        → left 36.757%, top 17.437%
   右:    x=941.96, y=627.68     → left 65.142%, top 36.728%
   下:    x=526.75, y=957.37     → left 36.428%, top 56.019%
   左:    x=122,    y=627.68     → left  8.437%, top 36.728% */
.venn__circle--top    { left: 36.757%; top: 17.437%; }
.venn__circle--right  { left: 65.142%; top: 36.728%; }
.venn__circle--bottom { left: 36.428%; top: 56.019%; }
.venn__circle--left   { left:  8.437%; top: 36.728%; }

.venn__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* 統合ベン図SVG */
.venn__full {
  position: absolute;
  left: 50%;
  top: 28%;
  transform: translateX(-50%);
  width: 84%;
  height: auto;
  max-width: 100%;
  z-index: 1;
  pointer-events: none;
}

/* 円内テキスト: 水平方向は全て中央揃え (left:50% + translateX) */
.venn__circle > p {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  line-height: normal;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

.venn__title { font-weight: 700; }
.venn__title--38 { font-size: 38px; }
.venn__title--40 { font-size: 40px; }
.venn__title--42 { font-size: 42px; }

.venn__line { font-size: 20px; }
.venn__f    { font-weight: 700; }
.venn__d    { font-weight: 400; }

/* 2列レイアウト (工場名 + 説明): flex で中央揃え */
.venn__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 20px;
  text-align: left;
}

.venn__row .venn__f { font-weight: 700; white-space: nowrap; }
.venn__row .venn__d { font-weight: 400; white-space: nowrap; }

/* 上 (表面処理加工) ─ top のみ指定、水平は中央で確定 */
.venn__circle--top .venn__title      { top: 23.75%; }
.venn__row--top-1                    { top: 44.74%; }
.venn__row--top-2                    { top: 54.47%; }

/* 右 (金属加工) */
.venn__circle--right .venn__title    { top: 23.77%; }
.venn__row--right-1                  { top: 42.19%; }
.venn__row--right-2                  { top: 52.98%; }

/* 下 (化学製品製造) */
.venn__circle--bottom .venn__title   { top: 17.53%; }
.venn__bottom-places                 { top: 44.11%; }
.venn__bottom-list                   { top: 57.27%; white-space: normal; width: 58.95%; }

/* 左 (プレス加工) */
.venn__circle--left .venn__title     { top: 17.45%; }
.venn__left-f1                       { top: 37.19%; }
.venn__left-d1                       { top: 47.98%; white-space: normal; width: 93.95%; }
.venn__left-f2                       { top: 64.29%; }
.venn__left-d2a                      { top: 72.72%; }
.venn__left-d2b                      { top: 78.77%; }

/* 中央テキスト: Figma (x=532, y=796 after shift, w=380, 20px Bold 中央揃え) */
.venn__center-text {
  left: 36.791%;
  top: 46.577%;   /* 796/1709 */
  width: 26.279%;
  margin: 0;
  font-weight: 700;
  font-size: 20px;
  line-height: normal;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0;
}

/* ──────────────────────────────────────────
   セクション共通ヘッダー（大見出し）
────────────────────────────────────────── */
.section-heading-en {
  font-family: var(--font-futura), "Noto Sans JP", sans-serif;
  font-weight: 900;
  font-size: clamp(48px, 6.7vw, 96px);
  color: #0962AB;
  letter-spacing: -0.07em;
  line-height: 1;
  margin-bottom: 16px;
  white-space: nowrap;
}

.section-heading-ja {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #7A7A7A;
  letter-spacing: 0.1em;
}

/* ──────────────────────────────────────────
   Our Business セクション（Figma 100%一致）
────────────────────────────────────────── */
.business-section {
  background-color: #ffffff;
  padding: 56px 0 72px;
}

@media (min-width: 1280px) {
  .business-section {
    padding: 64px 0 80px;
  }
}

.business-section__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 1280px) {
  .business-section__inner {
    padding: 0 120px;
  }
}

/* 4つのカード（Figma 1100:412 の精密仕様） */
.business-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.business-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  padding: 0 0 40px;
  border-top: 1px solid #D9D9D9;
  transition: opacity 0.2s;
  aspect-ratio: auto;
  border-radius: 0;
  overflow: visible;
  background-color: transparent;
}

.business-card:last-child {
  border-bottom: 1px solid #D9D9D9;
}

.business-card:hover {
  opacity: 0.9;
}

/* 画像バナー: Figma 1186×199 ≒ 6:1 */
.business-card__img-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1186 / 199;
  margin-top: 28px;
  margin-bottom: 32px;
}

.business-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.business-card:hover .business-card__img {
  transform: scale(1.03);
}

.business-card__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.business-card__row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 16px;
  padding: 0 4px;
}

@media (min-width: 1024px) {
  .business-card__row {
    column-gap: 0;
    padding: 0;
  }
}

.business-card__num {
  font-family: "Alata", "Inter", sans-serif;
  font-weight: 700;
  font-size: 36px;
  color: #204E9A;
  line-height: 1;
  width: 60px;
}

@media (min-width: 1024px) {
  .business-card__num {
    width: 125px;
    font-size: 64px;
  }
}

.business-card__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.business-card__en {
  font-family: var(--font-futura), "Noto Sans JP", sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  color: #0962AB;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.business-card__ja {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  color: #1a1a1a;
}

@media (min-width: 1024px) {
  .business-card__en {
    font-size: 14px;
  }
  .business-card__ja {
    font-size: 30px;
  }
}

.business-card__divider {
  position: absolute;
  top: 50%;
  right: 88px;
  transform: translateY(-50%);
  width: 1px;
  height: 149px;
  background-color: #D9D9D9;
}

.business-card:last-child .business-card__divider {
  right: 103px;
}

.business-card__arrow-circle {
  width: 58px;
  height: 58px;
  display: inline-flex;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.business-card__arrow-circle img {
  width: 100%;
  height: 100%;
  display: block;
}

.business-card:last-child .business-card__arrow-circle {
  width: 73px;
  height: 73px;
}

.business-card:hover .business-card__arrow-circle {
  transform: translateX(4px);
}

/* ─── Our Business ヘッダー: 左 title/label + ボタン、右 desc ─── */
.business-section__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
  align-items: start;
}

@media (min-width: 1024px) {
  .business-section__head {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
}

.business-section__desc {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 2;
  color: #090909;
  max-width: 548px;
  padding-top: 20px;
}

.business-section__label {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #090909;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 40px;
}

/* 事業概要を見る ボタン */
.btn-blue-rect {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 260px;
  max-width: 100%;
  height: 56px;
  background-color: #1E52A6;
  color: #ffffff;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 0 24px;
  text-decoration: none;
  margin-top: 0;
  border-radius: 32px;
  transition: background-color 0.3s, transform 0.3s;
}

.btn-blue-rect:hover {
  background-color: #0962AB;
  transform: translateY(-2px);
}

.btn-blue-rect::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 50%;
  width: 20px;
  height: 1px;
  background-color: #ffffff;
  transform: translateY(-50%);
}

/* ──────────────────────────────────────────
   All Products セクション（Figma 1100:374 精密仕様）
   背景 #1e52a6、高さ 893px相当、タイトル 96px
────────────────────────────────────────── */
.products-section {
  background-color: #1E52A6;
  padding: 48px 0 64px;
  color: #ffffff;
}

@media (min-width: 1280px) {
  .products-section {
    padding: 56px 0 80px;
  }
}

.products-section__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

@media (min-width: 1280px) {
  .products-section__inner {
    padding: 0 55px 0 55px;
  }
}

.products-section__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
  align-items: start;
}

@media (min-width: 1024px) {
  .products-section__head {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.products-section__title-en {
  font-family: var(--font-futura), "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 6.7vw, 96px);
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.07em;
  margin: 0 0 16px 0;
}

.products-section__label {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  margin: 0;
}

/* 製品一覧を見る ボタン */
.btn-white-rect {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 260px;
  max-width: 100%;
  height: 56px;
  background-color: transparent;
  color: #ffffff;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 0 24px;
  text-decoration: none;
  border-radius: 32px;
  border: 2px solid #ffffff;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.btn-white-rect:hover {
  background-color: #ffffff;
  color: #1E52A6;
  transform: translateY(-2px);
}

.btn-white-rect::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 50%;
  width: 20px;
  height: 1px;
  background-color: currentColor;
  transform: translateY(-50%);
}

/* 4カードグリッド 2x2 */
.products-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .products-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

.product-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px;
  background-color: #ffffff;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
  gap: 20px;
  min-height: 160px;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.product-card__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-card__en {
  font-family: var(--font-futura), "Noto Sans JP", sans-serif;
  font-weight: 600;
  font-size: clamp(11px, 1vw, 14px);
  line-height: 1;
  color: #0962AB;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card__ja {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2vw, 30px);
  line-height: 1.3;
  color: #1a1a1a;
}

.product-card__arrow {
  width: 73px;
  height: 73px;
  display: flex;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.product-card__arrow img {
  width: 100%;
  height: 100%;
  display: block;
}

.product-card:hover .product-card__arrow {
  transform: translateX(4px);
}

/* ──────────────────────────────────────────
   クライアントロゴ帯
────────────────────────────────────────── */
.clients-section {
  background-color: #ffffff;
  padding: 48px 0;
}

.clients-section__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

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

@media (min-width: 640px) {
  .clients-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 1024px) {
  .clients-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  height: 60px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #4B5563;
  text-align: center;
  line-height: 1.3;
}

/* ──────────────────────────────────────────
   取引先ロゴ（Partners）
────────────────────────────────────────── */
.partners-section {
  background-color: #ffffff;
  padding: 60px 0;
}

.partners-section__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.partners-section__en {
  font-family: var(--font-futura), "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 5vw, 72px);
  color: #0962AB;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 12px;
}

.partners-section__ja {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #090909;
  margin: 0;
}

.partners-section__note {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #6b7280;
  margin: 8px 0 40px;
}

.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px 64px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.partners-logos__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 80px;
}

.partners-logos__item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 767px) {
  .partners-section {
    padding: 40px 0;
  }
  .partners-section__note {
    margin-bottom: 24px;
  }
  .partners-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 16px;
    max-width: 100%;
  }
  .partners-logos__item {
    width: auto;
    height: 50px;
  }
  .partners-logos__item img {
    max-width: 100%;
    max-height: 100%;
  }
}

/* ──────────────────────────────────────────
   News（Figma 1100:346: 700px）
   左 お知らせラベル + 右 3件リスト
────────────────────────────────────────── */
.news-section {
  background-color: #ffffff;
  padding: 64px 0 72px;
}

.news-section__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 1024px) {
  .news-section__inner {
    grid-template-columns: 200px 1fr;
    gap: 80px;
    padding: 0 80px;
  }
}

.news-section__heading {
  font-family: var(--font-futura), "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 5vw, 72px);
  color: #0962AB;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
}

.news-section__label {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #090909;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
  border-top: none;
}

.news-item {
  display: block;
  grid-template-columns: none;
  gap: 0;
  padding: 0;
  border-bottom: 1px solid #D9D9D9;
  background-color: transparent;
  transition: none;
}

.news-item:first-child {
  border-top: 1px solid #D9D9D9;
}

.news-item:hover {
  background-color: transparent;
}

.news-item__link {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 24px;
  row-gap: 6px;
  padding: 32px 0;
  text-decoration: none;
  transition: opacity 0.2s;
}

.news-item__meta {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: baseline;
  gap: 28px;
}

.news-item__title {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

.news-item__arrow {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
}

.news-item__date {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #A79B9B;
  line-height: 30px;
  white-space: nowrap;
}

.news-item__tag {
  display: inline-block;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 30px;
  color: #1E52A6;
  background-color: transparent;
  padding: 0;
  white-space: nowrap;
}

.news-item__title {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #222222;
  line-height: 30px;
  transition: color 0.2s;
}

.news-item__link:hover .news-item__title {
  color: #0962AB;
}

.news-item__arrow {
  width: 58px;
  height: 58px;
  display: flex;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.news-item__arrow img {
  width: 100%;
  height: 100%;
  display: block;
}

.news-item__link:hover .news-item__arrow {
  transform: translateX(4px);
}

.news-section__cta {
  text-align: right;
  margin-top: 40px;
}

/* TOP セクション CTA ボタン（Figma 1106:467 / 1106:377 準拠：角直角の長方形）。
   クラス名は legacy の .btn-pill のまま保持（HTML 側 4 か所への波及を避ける） */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 260px;
  height: 56px;
  padding: 0 24px;
  background-color: transparent;
  color: #1E52A6;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  border-radius: 0;
  border: 2px solid #1E52A6;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.btn-pill:hover {
  background-color: #1E52A6;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-pill::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background-color: currentColor;
}

/* ──────────────────────────────────────────
   Company セクション（Figma 1100:319 精密仕様）
   青カード 421×368, rounded-32px, 24px title
────────────────────────────────────────── */
.company-section {
  background-color: #ffffff;
  padding: 56px 0 72px;
  text-align: left;
}

.company-section__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 1280px) {
  .company-section__inner {
    padding: 0 126px;
  }
}

.company-section__heading {
  font-family: "Noto Sans JP", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 6.7vw, 96px);
  color: #0962AB;
  letter-spacing: -0.07em;
  line-height: 1;
  margin-bottom: 40px;
  text-align: left;
}

.company-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .company-cards {
    grid-template-columns: repeat(3, minmax(0, 350px));
    gap: 30px;
  }
}

.company-card {
  background-color: #0962AB;
  color: #ffffff;
  padding: 28px 32px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-height: 140px;
  border-radius: 16px;
  text-align: left;
  transition: background-color 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}

.company-card:hover {
  background-color: #204E9A;
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(9, 98, 171, 0.25);
}

.company-card__title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.4;
  color: #ffffff;
}

.company-card__en {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
}

/* ──────────────────────────────────────────
   Sustainability（Figma 1106:312 準拠）
────────────────────────────────────────── */
.sustainability-section {
  background-color: #ffffff;
  padding: 64px 0 80px;
}

.sustainability-section__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px) {
  .sustainability-section__inner {
    grid-template-columns: 516px 1fr;
    padding: 0 122px;
    gap: 30px;
    align-items: start;
  }
}

.sustainability-section__heading {
  font-family: "Noto Sans JP", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 6.7vw, 96px);
  color: #0962AB;
  letter-spacing: -0.07em;
  line-height: 1;
  margin: 0 0 28px 0;
}

.sustainability-section__label {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  color: #090909;
  margin: 0 0 40px 0;
}

.sustainability-links {
  list-style: none;
  margin: 0 0 59px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.sustainability-links li {
  line-height: 49px;
}

.sustainability-links a {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #090909;
  text-decoration: none;
  transition: color 0.2s;
}

.sustainability-links a:hover {
  color: #0962AB;
}

.sustainability-section__cta {
  border-color: #1E52A6;
  color: #1E52A6;
}

.sustainability-section__right {
  display: flex;
  flex-direction: column;
  gap: 99px;
}

.sustainability-section__desc {
  max-width: 471px;
  margin: 24px 0 0 auto;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 2;
  color: #090909;
}

.sdgs-image {
  width: 100%;
  max-width: 675px;
  height: auto;
  display: block;
}

/* ロゴ帯: クライアントロゴ実画像 */
.clients-image {
  display: block;
  max-width: 1440px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ロゴ帯: 無限マーキー（横スクロール） */
.clients-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* 端に向けてフェードアウトするマスク */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    black 6%,
    black 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    black 6%,
    black 94%,
    transparent 100%
  );
}

.clients-marquee__track {
  display: flex;
  width: max-content;
  animation: clients-marquee 40s linear infinite;
  will-change: transform;
}

.clients-marquee__item {
  flex-shrink: 0;
  width: auto;
  max-width: none;
  height: auto;
  margin: 0;
}

/* hover 時は停止（読みやすさ確保） */
.clients-marquee:hover .clients-marquee__track {
  animation-play-state: paused;
}

@keyframes clients-marquee {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .clients-marquee__track {
    animation: none !important;
  }
}

/* ──────────────────────────────────────────
   Recruit（Figma 1100:303: 549px）
   左 70% 写真 + 右 30% 青背景＋テキスト
────────────────────────────────────────── */
.recruit-section {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 400px;
  background-color: #ffffff;
  position: relative;
}

@media (min-width: 768px) {
  .recruit-section {
    grid-template-columns: 70% 30%;
    min-height: 549px;
  }
}

.recruit-section__photo {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .recruit-section__photo {
    min-height: 549px;
  }
}

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

.recruit-section__text {
  color: #222222;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
}

@media (min-width: 1024px) {
  .recruit-section__text {
    padding: 80px 48px 64px;
  }
}

.recruit-section__en {
  font-family: var(--font-futura), "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 5vw, 72px);
  color: #0962AB;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 16px 0;
}

.recruit-section__ja {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #222222;
  letter-spacing: 0;
  margin: 0 0 32px 0;
}

.recruit-section__cta {
  display: block;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 24px;
  color: #222222;
  text-decoration: none;
  padding-bottom: 12px;
  border-bottom: 1px solid #222222;
  max-width: 366px;
  position: relative;
  transition: padding-left 0.2s;
}

.recruit-section__cta:hover {
  padding-left: 8px;
  color: #0962AB;
  border-bottom-color: #0962AB;
}

.recruit-section__cta::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #0962AB;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* ──────────────────────────────────────────
   Sustainability: 左側カラム (TOP index.html)
   sustainability-section__inner の grid 内、左 516px のエリア
────────────────────────────────────────── */
.sustainability-section__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ============================================================
   スクロール進捗バー
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 200;
  pointer-events: none;
}

.scroll-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #204e9a, #0962ab);
  transform-origin: left center;
  transition: width 0.08s linear;
}

/* ============================================================
   OP開幕演出（タグライン → ヒーロー reveal）
   ============================================================ */
.op-intro {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: op-fade-out 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 2.8s both;
}
.op-intro__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.op-intro__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 13, 33, 0.5);
}
.op-intro__text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
}
.op-intro__line {
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 1;
  color: #ffffff;
  opacity: 0;
  text-align: center;
}
@media (min-width: 768px) {
  .op-intro__line { font-size: 36px; }
}
@media (max-width: 767px) {
  .op-intro__line { font-size: 18px; }
}
/* op-intro__line アニメーション: 統一版（後方で定義）を使用 */
@keyframes op-fade-out {
  0%   { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .op-intro {
    display: none !important;
  }
  .scroll-progress__bar {
    transition: none !important;
  }
}

/* ============================================================
   Animations (Phase 2 先頭: Hero Ken Burns / ベン図初期状態)
   ============================================================ */

/* Hero 背景: Ken Burns（OP終了後に発動） */
@keyframes hero-bg-zoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
.hero__bg {
  transform: scale(1.08);
  animation: hero-bg-zoom 3.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 2.8s both;
}

/* Hero タイトル: OP終了直後にフェードアップ
   デスクトップ・モバイルで同じキーフレーム名を使用し、
   リサイズ時のメディアクエリ切替による再トリガーを防止 */
@keyframes hero-title-in {
  0%   { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero__title {
  animation: hero-title-in 1s cubic-bezier(0.22, 1, 0.36, 1) 3.0s both;
}

/* OP イントロ: デスクトップ・モバイル共通キーフレーム */
@keyframes op-line-in-unified {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.op-intro__line--1 {
  animation: op-line-in-unified 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}
.op-intro__line--2 {
  animation: op-line-in-unified 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.0s both;
}

/* Who we are ロゴ: OP後にフェードアップ */
@keyframes hero-who-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__who-logo {
  opacity: 0;
  animation: hero-who-in 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 3.3s both;
}

/* ベン図: GSAP で動くため will-change を指定（パフォーマンス最適化） */
.venn__circle,
.venn__center-ring,
.venn__center-text {
  will-change: transform, opacity;
}

/* ============================================================
   Animations (Phase 1)
   IntersectionObserver ベースのフェードイン土台
   ============================================================ */

/* 基本: data-reveal / data-reveal-stagger 下の子は初期状態で非表示 */
[data-reveal],
.reveal-stagger-parent > * {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

[data-reveal].is-in-view,
.reveal-stagger-parent > .is-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* バリエーション: 左からスライドイン */
[data-reveal="slide-right"] {
  transform: translateX(-40px);
}
[data-reveal="slide-right"].is-in-view {
  transform: translateX(0);
}

/* バリエーション: スケールアップ */
[data-reveal="scale-up"] {
  transform: scale(0.92);
}
[data-reveal="scale-up"].is-in-view {
  transform: scale(1);
}

/* バリエーション: クリップワイプ（見出し用）
   clip-path は環境依存で描画が不安定なため、opacity + 左からのスライドで代替。
   ビルド済み style.css に古い clip-path 指定が残っている可能性があるため明示的に解除する */
[data-reveal="clip-wipe"] {
  opacity: 0;
  transform: translateX(-28px);
  clip-path: none;
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal="clip-wipe"].is-in-view {
  opacity: 1;
  transform: translateX(0);
  clip-path: none;
}

/* ============================================================
   ヘッダー: スクロール時の背景切替（main.js の .is-scrolled と連動）
   ============================================================ */
.site-header {
  transition:
    background-color 0.3s ease-out,
    box-shadow 0.3s ease-out,
    backdrop-filter 0.3s ease-out;
}

.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ============================================================
   ホバー演出強化
   ============================================================ */

/* business-card ホバー */
.business-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.business-card__img-wrap {
  overflow: hidden;
}

.business-card__img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.business-card:hover .business-card__img {
  transform: scale(1.06);
}

.business-card__num {
  transition: color 0.3s ease-out;
}

.business-card:hover .business-card__num {
  color: #204e9a;
}

.business-card__arrow-circle {
  display: inline-flex;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.business-card:hover .business-card__arrow-circle {
  transform: translateX(6px);
}

/* 共通 btn-blue-rect / recruit-section__cta / who-section__company のスライド塗り */
.btn-blue-rect,
.recruit-section__cta,
.who-section__company {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s ease-out;
}

.btn-blue-rect::after,
.recruit-section__cta::after,
.who-section__company::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateX(-101%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
  pointer-events: none;
}

.btn-blue-rect:hover::after,
.recruit-section__cta:hover::after,
.who-section__company:hover::after {
  transform: translateX(0);
}

/* products タイルの軽いホバー（存在する場合） */
.products-section a,
.products-section__item {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.products-section a:hover,
.products-section__item:hover {
  transform: translateY(-4px);
}

/* ============================================================
   reduced-motion: 全てのアニメーションを無効化
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .reveal-stagger-parent > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    clip-path: none !important;
  }

  .business-card__img,
  .business-card__arrow-circle,
  .business-card__num,
  .btn-blue-rect,
  .recruit-section__cta,
  .who-section__company,
  .btn-blue-rect::after,
  .recruit-section__cta::after,
  .who-section__company::after,
  .products-section a,
  .products-section__item,
  .site-header,
  .hero__bg,
  .hero__title,
  .hero__who-logo {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

/* ============================================================
   TOP レスポンシブ対応
   - 1024px 未満（タブレット/モバイル）で大規模なレイアウト切替
   - 767px 以下（モバイル）でフォントサイズ・余白・タッチ領域を最適化
   - すべて max-width クエリ内で完結し、デスクトップ（≥1280px）非破壊
     （デスクトップ非破壊ルール準拠）
   ============================================================ */

/* ──────────────────────────────────────────
   タブレット/モバイル：Who セクション flow レイアウト切替
   理由：Figma 1440px の絶対配置 + venn 図は <1024px で
         circle 直径が 269px 以下に縮み、内部 20-42px テキストが
         読めなくなる。flow に切替えて venn を非表示にし、
         subtitle/body/COMPANY ボタンを自然な縦並びにする
────────────────────────────────────────── */
@media (max-width: 1023px) {
  .who-section {
    aspect-ratio: auto;
    padding: 80px 40px 96px;
  }

  /* 絶対配置を解除して通常フローに戻す
     （bg / overlay は引き続き absolute のままにする） */
  .who-section > *:not(.who-section__bg):not(.who-section__overlay) {
    position: static;
    z-index: auto;
  }

  .who-section__subtitle {
    margin-bottom: 20px;
    font-size: clamp(24px, 4vw, 40px);
    line-height: 1.3;
  }

  .who-section__body {
    width: 100%;
    max-width: 760px;
    margin-bottom: 32px;
    font-size: 16px;
    line-height: 1.7;
  }

  .who-section__company {
    margin: 0;
    gap: 16px;
  }

  /* venn 図全体を <1024px では非表示。
     周辺 4 円は内部テキスト 20-42px が小円直径 <269px に縮むと可読性が破綻し、
     中央 SVG もタブレット/モバイル向け縦積みレイアウトと噛み合わないため、
     中央リングも含めてベン図全体を隠す（方針: モバイルでベン図は表示しない）。
     ※ .biz-venn（business/index.html）も同じ .venn__* クラスを使うため、
        必ず .who-section スコープで限定する */
  .who-section .venn__circle,
  .who-section .venn__center-ring,
  .who-section .venn__full {
    display: none;
  }

  .sustainability-section__inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }
  .sustainability-section__left {
    display: contents !important;
  }
  .sustainability-section__right {
    display: contents !important;
  }
  .sustainability-section__heading { order: 1 !important; margin: 0 0 4px 0 !important; padding: 0 !important; font-size: 36px !important; line-height: 0.9 !important; }
  .sustainability-section__label { order: 2 !important; margin: 0 0 16px 0 !important; font-size: 16px !important; }
  .sustainability-section__desc { order: 3 !important; margin: 0 0 20px 0 !important; }
  .sdgs-image { order: 4 !important; margin: 0 0 20px 0 !important; }
  .sustainability-links { order: 5 !important; display: none !important; }
  .sustainability-section__cta { order: 6 !important; }
}

@media (max-width: 767px) {
  .hero { min-height: 360px; }
  .hero__content { padding: 100px 20px 0; }

  /* Who セクション：モバイル時はサイド余白を 40px → 20px に詰める */
  .who-section {
    padding: 56px 20px 72px;
  }
  .who-section__subtitle {
    font-size: clamp(24px, 6vw, 32px);
  }
  .who-section__body {
    font-size: 14px;
    line-height: 1.7;
  }
  .who-section__company-label { font-size: 16px; width: auto; }
  .who-section__company-icon { width: 48px; height: 48px; }

  .business-section { padding: 48px 0 56px; }
  .business-section__inner { padding: 0 16px; }
  .business-section__head { gap: 24px; margin-bottom: 32px; }
  .business-section__desc { font-size: 14px; padding-top: 0; }
  .business-card { padding: 0 0 28px; }
  /* モバイルではバナー比 1186:199（≒6:1）が薄すぎるので 3:2 に変更し画像全体を見せる */
  .business-card__img-wrap {
    aspect-ratio: auto;
    margin-top: 16px;
    margin-bottom: 16px;
    background: none;
  }
  .business-card__img {
    object-fit: contain;
    width: 100%;
    height: auto;
  }
  .business-card__num { font-size: 28px; width: 48px; }
  .business-card__en { font-size: 11px; }
  .business-card__ja { font-size: 16px; }
  .business-card__divider { display: none; }
  .business-card__arrow-circle { width: 44px; height: 44px; }
  .business-card:last-child .business-card__arrow-circle { width: 48px; height: 48px; }

  .btn-blue-rect,
  .btn-white-rect {
    width: 100%;
    height: 50px;
    font-size: 14px;
    padding: 0 20px;
  }
  .btn-blue-rect::after,
  .btn-white-rect::after { right: 18px; width: 16px; }

  .products-section { padding: 40px 0 48px; }
  .products-section__inner { padding: 0 16px; }
  .products-section__head { margin-bottom: 28px; }
  .products-cards { gap: 12px; }
  .product-card { padding: 24px; min-height: 120px; gap: 16px; }
  .product-card__text { gap: 8px; }
  .product-card__arrow { width: 48px; height: 48px; }

  .clients-section { display: none; }

  .news-section { padding: 48px 0 56px; }
  .news-section__inner { padding: 0 16px; }
  .news-item__link { padding: 20px 0; }
  .news-item__title { font-size: 15px; }
  .news-item__arrow { width: 44px; height: 44px; }
  .btn-pill { width: 100%; height: 50px; font-size: 14px; }

  .company-section { padding: 40px 0 48px; }
  .company-section__inner { padding: 0 16px; }
  .company-cards { gap: 12px; }
  .company-card { padding: 20px 24px; min-height: 100px; gap: 12px; }

  .sustainability-section { padding: 48px 0 56px; }
  .sustainability-section__inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 16px;
  }
  .sustainability-section__left {
    display: contents !important;
  }
  .sustainability-section__right {
    display: contents !important;
  }
  .sustainability-section__heading { order: 1 !important; margin: 0 0 4px 0 !important; padding: 0 !important; font-size: 36px !important; line-height: 0.9 !important; letter-spacing: -0.07em !important; }
  .sustainability-section__label { order: 2 !important; margin: 0 0 16px 0 !important; font-size: 16px !important; }
  .sustainability-section__desc { order: 3 !important; margin: 0 0 20px 0 !important; }
  .sdgs-image { order: 4 !important; margin: 0 0 20px 0 !important; }
  .sustainability-links { display: none !important; }
  .sustainability-section__cta { order: 5 !important; }

  .recruit-section { min-height: 300px; }
  .recruit-section__text { padding: 36px 24px; }
  .recruit-section__cta { font-size: 18px; }
}

/* ============================================================
   360px (Android小型端末) 専用調整
   ============================================================ */
@media (max-width: 480px) {
  .who-section { padding: 56px 16px 64px; }
  .who-section__body { font-size: 14px; }

  .sustainability-section__heading { font-size: 28px !important; }
  .recruit-section__text { padding: 28px 16px; }
  .recruit-section__cta { font-size: 16px; }

  .news-item__title { font-size: 15px; }
}
