/* ==========================
   Smart Factory Section
========================== */
.content,
.two-tone-bg .section,
.two-tone-bg .section2 {
  overflow: visible;
}
#sf-section .under01 p {
	margin-top: 20px;
	text-align: left;
}
#sf-section {
	color: #fff;
	padding-top: 0px;
	padding-right: 40px;
	padding-left: 40px;
	padding-bottom: 50px;
}

/* 内部だけリセット */
#sf-section * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


#sf-section .sf-inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: visible; /* ← 重要 */
}
/* ===== ブロック ===== */
#sf-section .sf-block {
	position: relative;
  padding-left: 0;     /* テキストはズラさない */
	padding-top: 80px;
	padding-right: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255,255,255,0.08);
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/* ===== 大きな数字 ===== */
#sf-section .sf-number {

 

  font-size: 7em;
  font-weight: 700;
  line-height: 1;
  color: #1fa7a0;            /* 青緑 */
  opacity: 0.18;  
pointer-events: none;
font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
position: absolute;
  left: -140px;    /* lead左端より完全に外 */
  top: 10px;
  text-align: right;	
}



/* ===== テキスト側 ===== */
#sf-section .sf-content {
  position: relative;
  max-width: 800px;
}


/* 見出し */
#sf-section .sf-heading {
  font-size: 26px;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  padding-left: 10px;
  border-left: 3px solid #1fa7a0;
}

/* 本文 */
#sf-section p {
  font-size: 15px;
  line-height: 2;
  color: #d8d8d8;
  margin-bottom: 20px;
}
/* ==========================
   Smart Factory h2（FIX版）
========================== */

/* sf-section 内では通常 h2 装飾を無効化 */
#sf-section h2::before,
#sf-section h2::after {
  content: none !important;
}

#sf-section .sf-h2 {
  position: relative;
  padding-left: 120px;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 60px;
}

/* 英語：縦表示（背景要素） */
#sf-section .sf-h2-en {

  position: absolute;
  left: -10px;
  top: -10px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 50px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #1fa7a0;
  opacity: 0.18;
  pointer-events: none;
}

/* 日本語見出し（下線基準） */
#sf-section .sf-h2-ja {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
  color: #ffffff;     /* ← 必須 */
  opacity: 1;         /* ← 必須 */
  font-weight: 600;   /* ← 太字を明示 */
}

/* 下ライン：文字の中央基準 */
#sf-section .sf-h2-ja::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 140px;
  height: 2px;
  background: #1fa7a0;
  transform: translateX(-50%);
}
.image-box {
	width: 100%;
	max-width: 1000px;
	margin-top: 0;
	margin-right: auto;
	margin-left: auto;
	display: grid;
	margin-bottom: 0px;
	padding-bottom: 50px;
}

/* 共通 */
.image-box img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  display: block;
}

/* ==========================
   image-box（最終修正版）
========================== */
.image-box {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
}

/* 共通 */
.image-box img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  display: block;
}


@media (max-width: 768px) {
/* ===== テキスト側 ===== */
	
#sf-section .under01 p {
	margin-top: 40px;
	text-align: left;
}
	
  #sf-section .sf-h2 {
    padding-left: 0;
    font-size: 24px;
  }

  #sf-section .sf-h2-en {
    position: static;
    writing-mode: horizontal-tb;
    font-size: 3em;
    letter-spacing: 0.15em;
    opacity: 0.4;
    margin-bottom: 6px;
    display: block;
  }

  #sf-section .sf-h2-ja::after {
    width: 100px;
  }


}


/* リード文との間 */
#sf-section .lead {
	max-width: 800px;
	margin-bottom: 40px;
	display: block;
	margin-left: auto;
	margin-right: auto;
	border-bottom: 1px solid rgba(255,255,255,0.08);
	padding-bottom: 40px;
}

#sf-section .lead p {
  font-size: 15px;
  line-height: 2;
  color: #d8d8d8;
  margin-bottom: 18px;
}

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

  #sf-section {
    padding: 40px 0px;
  }

  #sf-section .sf-block {
    padding: 40px 0px;
  }


  #sf-section .sf-number {
    left: 0;
    position: static;
    margin-bottom: 10px;
    font-size: 64px;
    opacity: 0.25;
  }
  #sf-section .sf-heading {
    font-size: 20px;
  }

}


/* ===== PCのみ：2枚なら横並び ===== */
@media (min-width: 769px) {
  .image-box:has(img:nth-child(2)) {
    grid-template-columns: 1fr 1fr;
  }

  .image-box img:only-child {
    grid-column: 1 / -1;
  }
}

/* ===== SP：必ず縦並び ===== */
@media (max-width: 768px) {
  .image-box {
    grid-template-columns: 1fr;
  }
}