/*------------------------------------
.section-stat（数字で見る）
------------------------------------*/
.section-stat {
  padding: 5rem 1.5rem;
  background-color: #f8fafc;
}

@media (min-width: 1024px) {
  .section-stat {
    padding: 7rem 1.5rem;
  }
}

.section-stat__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.section-stat__head {
  text-align: center;
  margin-bottom: 4rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.stat-card {
  background-color: #fff;
  padding: 2rem;
  border-top: 2px solid var(--brand-accent);
}

.stat-card__label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.stat-card__number {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--brand-main);
  line-height: 1;
}

.stat-card__number--accent {
  color: var(--brand-accent);
  font-size: 2.5rem;
  margin-top: 0.25rem;
}

.stat-card__unit {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 0.5rem;
}


/*------------------------------------
.section-group（グループ会社）
------------------------------------*/
.section-group {
  padding: 4.5rem 1.5rem;
  background-color: #fff;
}

@media (min-width: 1024px) {
  .section-group {
    padding: 6rem 1.5rem;
  }
}

.section-group__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.section-group__head {
  text-align: center;
  margin-bottom: 4rem;
}

/* タブ */
.tab-nav {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 3rem;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-main);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
  font-family: inherit;
}

.tab-btn.active {
  color: #000;
  border-color: var(--brand-accent);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* グループ会社レイアウト */
.group-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .group-layout {
    flex-direction: row;
    gap: 5rem;
  }
}

.group-layout__photos {
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .group-layout__photos {
    width: 40%;
  }
}

.group-layout__main-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #f1f5f9;
}

.group-layout__main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.group-layout__sub-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.group-layout__sub-photo {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #f1f5f9;
}

.group-layout__sub-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.group-layout__info {
  flex: 1;
}

.group-layout__tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #fff;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1.5rem;
}

.group-layout__tag--dark {
  background-color: var(--brand-main);
}

.group-layout__tag--accent {
  background-color: var(--brand-accent);
}

.group-layout__name {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 1.5rem 0;
}

@media (min-width: 1024px) {
  .group-layout__name {
    font-size: 1.875rem;
    margin: 1.875rem 0;
  }
}

.group-layout__desc {
  color: #475569;
  line-height: 1.9;
  font-weight: 500;
  margin-bottom: 2.5rem;
}


/*------------------------------------
.info-table（会社概要テーブル）
------------------------------------*/
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid #e2e8f0;
}

.info-table tr:first-child {
  border-top: 1px solid #e2e8f0;
}

.info-table th {
  width: 160px;
  min-width: 120px;
  padding: 1rem 1rem 1rem 0;
  font-weight: 700;
  letter-spacing: 0.1em;
  vertical-align: top;
  white-space: nowrap;
  text-align: left;
  vertical-align: middle;
}
@media (min-width: 1024px) {
  .info-table th {
    padding: 1rem 2rem 1rem 0;
  }
}

.info-table td {
  padding: 1rem 0;
  line-height: 1.9;
  text-align: justify;
}

@media (max-width: 640px) {
  .info-table th,
  .info-table td {
    font-size: 0.875rem;
  }
  .info-table th {
    display: block;
    padding: 1.25rem 1.25rem 0 1.25rem;
    width: 100%;
  }
  .info-table td {
    display: block;
    padding: 0.5rem 1.25rem 1.25rem 1.25rem;
  }
}


/*------------------------------------
.section-facility（自社設備・環境）
------------------------------------*/
.section-facility {
  padding: 5rem 1.5rem;
  background-color: var(--brand-main);
  color: #fff;
}

@media (min-width: 1024px) {
  .section-facility {
    padding: 7rem 1.5rem;
  }
}

.section-facility__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.section-facility__head {
  text-align: center;
  margin-bottom: 4rem;
}

.section-facility__head .section-en-label {
  color: rgba(255, 255, 255, 0.4);
}

.facility-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .facility-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.facility-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.facility-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--brand-accent);
}

.facility-card__icon {
  margin-bottom: 1.25rem;
}

.facility-card__title {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 0.5rem;
}

.facility-card__desc {
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.5);
}


/*------------------------------------
.section-history（沿革）
------------------------------------*/
.section-history {
  padding: 4.5rem 1.5rem;
  background-color: #f8fafc;
}

@media (min-width: 1024px) {
  .section-history {
    padding: 6rem 1.5rem;
  }
}

.section-history__inner {
  max-width: 56rem;
  margin: 0 auto;
}

.section-history__head {
  text-align: center;
  margin-bottom: 1rem;
}
@media (min-width: 1024px) {
  .section-history__head {
    margin-bottom: 2.5rem;
  }
}

.history-list {
  position: relative;
}

/* タイムライン縦線 */
.history-list::before {
  content: '';
  position: absolute;
  left: 200px;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #e2e8f0;
  display: none;
}

@media (min-width: 640px) {
  .history-list::before {
    display: block;
  }
}

.history-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

@media (min-width: 640px) {
  .history-item {
    gap: 0;
    font-size: 1rem;
    padding: 2rem 0;
  }
}

.history-item__year {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 900;
  color: var(--brand-accent);
  letter-spacing: 0.04em;
}

@media (min-width: 640px) {
  .history-item__year {
    width: 200px;
    padding-right: 2rem;
    font-size: 1rem;
    text-align: right;
  }
}

.history-item__body {
  position: relative;
  flex: 1;
}

@media (min-width: 640px) {
  .history-item__body {
    padding-left: 2rem;
  }
}

.history-item__dot {
  display: none;
  position: absolute;
  top: 50%;
  left: -4px;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--text-main);
}

.history-item__dot--current {
  position: absolute; /* 子要素の基準点にします */
  left: -8px;
  background-color: transparent; /* 元の背景色は透明に */
  width: 16px;  /* 外側のサイズに合わせる */
  height: 16px;
  display: inline-block;
}

@media (min-width: 640px) {
/* 外側の薄い円 */
.history-item__dot--current::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(230, 57, 70, 0.2);
  border-radius: 50%;
  width: 17px;
  height: 17px;
}

/* 中央の「もやっと」した点 */
.history-item__dot--current::after {
  content: "";
  display: block;
  position: absolute;
  /* 外枠16px、内枠6pxの場合、(16-6)/2 = 5px で中央配置 */
  top: 5px;
  left: 5px;
  background-color: var(--brand-accent); /* オレンジ系の強調色 */
  width: 7px;
  height: 7px;
  border-radius: 50%; /* ここを角丸にしないと四角くなります */
  filter: blur(1.5px); /* これが「もやっと」の正体 */
}

  .history-item__dot {
    display: block;
  }
}

.history-item__text {
  font-weight: 700;
  margin: 0;
}


/*------------------------------------
.section-about（会社紹介：中核メッセージ）
------------------------------------*/
.section-about {
  padding: 3rem 1.5rem 0;
  background-color: #fff;
}

@media (min-width: 1024px) {
  .section-about {
    padding: 7rem 1.5rem 0;
  }
}

.section-about__inner {
  max-width: 56rem;
  margin: 0 auto;
}
.section-about__head {
  text-align: center;
}
.section-about__img {
	margin-bottom: 1.5rem;
}
@media (min-width: 1024px) {
  .section-about__img {
    margin-bottom: 2.5rem;
  }
}
.section-about__txt p {
	font-size: 0.875rem;
	line-height: 2;
	text-align: justify;
}
@media (min-width: 1024px) {
  .section-about__txt p {
    font-size: 1rem;
    text-align: center;
  }
}


/*------------------------------------
.section-walk（歩み：事業の広がり）
------------------------------------*/
.section-walk {
  padding-top: 3rem;
}

@media (min-width: 1024px) {
  .section-walk {
    padding-top: 7rem;
  }
}

.section-walk__inner {
	position: relative;
	min-height: 600px;
}
.section-walk__container {
	max-width: 1200px;
	width: calc(100% - 3rem);
	margin: auto;
}
.section-walk__container > * {
	width: 50%;
}
.section-walk__img {
	position: absolute;
	top: 0;
	right: 0;
	height: 600px
}
.section-walk__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.section-walk__txt {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 600px;
	margin-right: auto;
	padding-right: 5rem;
}
.section-walk__txt .section-title::after {
	left: 0;
	transform: none;
}
.section-walk__txt p {
	font-size: 0.875rem;
	line-height: 2;
	text-align: justify;
	margin: 0;
}
@media (min-width: 1024px) {
  .section-walk__txt p {
    font-size: 1rem;
  }
}
@media (max-width: 1024px) {
	.section-walk__inner {
		min-height: auto;
	}
	.section-walk__container {
		display: block;
		width: 100%;
		height: auto;
	}
	.section-walk__container > * {
		width: 100%;
	}
	.section-walk__img {
		position: static;
		height: auto;
		padding-right: 1.5rem;
	}
	.section-walk__txt {
		height: auto;
		margin: auto;
		padding: 2rem 1.5rem 0;
	}
}


/*------------------------------------
.section-origin（原点：創業の背景）
------------------------------------*/
.section-origin {
  padding: 3rem 0;
}

@media (min-width: 1024px) {
  .section-origin {
    padding: 7rem 0;
  }
}

.section-origin__inner {
	position: relative;
	min-height: 600px;
}
.section-origin__container {
	max-width: 1200px;
	width: calc(100% - 3rem);
	margin: auto;
}
.section-origin__container > * {
	width: 50%;
}
.section-origin__img {
	position: absolute;
	top: 0;
	left: 0;
	height: 600px
}
.section-origin__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.section-origin__txt {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 600px;
	margin-left: auto;
	padding-left: 5rem;
}
.section-origin__txt .section-title::after {
	left: 0;
	transform: none;
}
.section-origin__txt p {
	font-size: 0.875rem;
	line-height: 2;
	text-align: justify;
	margin: 0;
}
@media (min-width: 1024px) {
  .section-origin__txt p {
    font-size: 1rem;
  }
}
@media (max-width: 1024px) {
	.section-origin__inner {
		min-height: auto;
	}
	.section-origin__container {
		display: block;
		width: 100%;
		height: auto;
	}
	.section-origin__container > * {
		width: 100%;
	}
	.section-origin__img {
		position: static;
		height: auto;
		padding-left: 1.5rem;
	}
	.section-origin__txt {
		height: auto;
		margin: auto;
		padding: 2rem 1.5rem 0;
	}
}


/*------------------------------------
.section-philosophy（企業理念）
------------------------------------*/
.section-philosophy {
  padding: 4.5rem 1.5rem;
  background-color: var(--brand-main);
  color: #fff;
}

@media (min-width: 1024px) {
  .section-philosophy {
    padding: 6rem 1.5rem;
  }
}

.section-philosophy__inner {
  max-width: 56rem;
  margin: 0 auto;
}

.section-philosophy__head {
  text-align: center;
}

.section-philosophy__head .section-en-label {
  color: rgba(255, 255, 255, 0.4);
}

/* 理念キャッチ */
.philosophy-catch {
  text-align: center;
  margin-bottom: 3rem;
  padding: 3.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.philosophy-catch__text {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #fff;
  margin: 0 0 1.5rem;
  line-height: 1.3;
}

.philosophy-catch__lead {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin: 0;
}

/* 理念説明 */
.philosophy-body {
  margin-bottom: 3rem;
}

.philosophy-body__text {
  font-size: 0.875rem;
  line-height: 2.2;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}
@media (min-width: 1024px) {
  .philosophy-body__text {
    font-size: 1rem;
  }
}

/* 価値キーワード */
.philosophy-values {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3.5rem 2rem;
  text-align: center;
}

.philosophy-values__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.philosophy-values__keywords {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.philosophy-values__keyword {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.1em;
}
@media (min-width: 1024px) {
  .philosophy-values__keyword {
    font-size: 2rem;
  }
}

.philosophy-values__desc {
  font-size: 0.875rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}
@media (min-width: 1024px) {
  .philosophy-values__desc {
    font-size: 1rem;
  }
}


/*------------------------------------
.section-structure（グループ体制）
------------------------------------*/
.section-structure {
  padding: 4.5rem 0;
  background-color: #f8fafc;
}

@media (min-width: 1024px) {
  .section-structure {
    padding: 6rem 0;
  }
}

.section-structure__inner {
	display: flex;
	flex-direction: row-reverse;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	width: calc(100% - 3rem);
	margin: auto;
}
.section-structure__img {
	width: 60%;
}
.section-structure__txt {
	width: 35%;
}
.section-structure__txt .section-title::after {
	left: 0;
	transform: none;
}
.section-structure__txt p {
	font-size: 0.875rem;
	line-height: 2;
	text-align: justify;
	margin: 0;
}
@media (min-width: 1024px) {
  .section-structure__txt p {
    font-size: 1rem;
  }
}
@media (max-width: 1024px) {
	.section-structure__inner {
		gap: 30px;
	}
	.section-structure__img,
	.section-structure__txt {
		width: 100%;
	}
	.section-structure__txt {
		text-align: center;
	}
	.section-structure__txt .section-title::after {
		left: 50%;
		transform: translateX(-50%);
	}
}


/*------------------------------------
.section-investment（設備投資の歩み）
------------------------------------*/
.section-investment {
  padding: 4.5rem 1.5rem;
  background-color: var(--brand-main);
  color: #fff;
}

@media (min-width: 1024px) {
  .section-investment {
    padding: 6rem 1.5rem;
  }
}

.section-investment__inner {
  max-width: 64rem;
  margin: 0 auto;
}
.section-investment__head {
  text-align: center;
  margin-bottom: 1.5rem;
}
.section-investment__img {
	margin-bottom: 2.5rem;
}
.section-investment__txt p {
	line-height: 2;
	text-align: center;
}


/*------------------------------------
.section-with-img（テキスト＋画像 左右レイアウト）
------------------------------------*/
.section-with-img {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .section-with-img {
    flex-direction: row;
    gap: 5rem;
  }

  /* 左右反転バリエーション */
  .section-with-img--reverse {
    flex-direction: row-reverse;
  }
}

.section-with-img__text {
  flex: 1;
}

.section-with-img__text p {
  font-size: 1rem;
  line-height: 2;
}

.section-with-img__img {
  flex-shrink: 0;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .section-with-img__img {
    width: 44%;
  }
}

.section-with-img__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
}


/*------------------------------------
.section-group__desc（会社情報 導入文）
------------------------------------*/
.section-group__desc {
  font-size: 0.875rem;
  line-height: 1.9;
  margin-top: 1rem;
  text-align: justify;
}
@media (min-width: 1024px) {
  .section-group__desc {
    font-size: 1rem;
    text-align: center;
  }
}


/*------------------------------------
.group-common（グループ共通情報パネル）
------------------------------------*/
.group-common {
  max-width: 48rem;
}


/*------------------------------------
.info-table__note（テーブル注釈）
------------------------------------*/
.info-table__note {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 0.25rem;
}


/*------------------------------------
.section-history__desc（沿革 導入文）
------------------------------------*/
.section-history__desc {
  font-size: 0.875rem;
  line-height: 1.9;
  margin-top: 1rem;
  text-align: justify;
}
@media (min-width: 1024px) {
  .section-history__desc {
    font-size: 1rem;
    text-align: center;
  }
}
