/* =============================================
   strengths.css
   当社の強みページ固有スタイル
   読み込み順：common.css → animation.css → page.css → strengths.css
============================================= */


/* =============================================
   01 INTRODUCTION
   なぜオーダーメイドなのか
============================================= */
.str-intro {
  background: var(--black);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 背景装飾：ドットグリッド（cta-sectionと同系統） */
.str-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 2rem 2rem;
  pointer-events: none;
}

.str-intro__inner {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.str-intro__label {
  font-family: var(--font-en);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.str-intro__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--white);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.str-intro__body {
  text-align: left;
  margin: 0 auto 3rem;
}

.str-intro__body p {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1em;
}

.str-intro__body p:last-child {
  margin-bottom: 0;
}

/* 数字3点セット */
.str-intro__stats {
  display: flex;
  justify-content: center;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2.5rem;
  margin-top: 0.5rem;
}

.str-intro__stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.str-intro__stat:last-child {
  border-right: none;
}

.str-intro__stat-num {
  font-family: var(--font-en);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.str-intro__stat-num small {
  font-size: 0.45em;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--accent);
  margin-left: 0.3rem;
}

.str-intro__stat-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
}


/* =============================================
   02 STRENGTHS
   強み4項目・千鳥レイアウト
============================================= */
.str-strengths {
  background: var(--white);
}

.str-strengths__head {
  margin-bottom: 4rem;
}

/* 強みアイテム共通 */
.str-strength-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 6rem;
  padding-bottom: 6rem;
  border-bottom: 1px solid var(--border);
}

.str-strength-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* 逆順（偶数アイテム） */
.str-strength-item--reverse {
  direction: rtl; /* グリッド列の反転 */
}

.str-strength-item--reverse > * {
  direction: ltr; /* テキスト方向を戻す */
}

/* 画像エリア */
.str-strength-item__image {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.str-strength-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.str-strength-item:hover .str-strength-item__image img {
  transform: scale(1.03);
}

/* 番号バッジ */
.str-strength-item__num {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
  background: var(--accent);
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  line-height: 1;
}

/* テキストエリア */
.str-strength-item__body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.str-strength-item__title {
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--black);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.str-strength-item__desc {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--gray-mid);
  margin-bottom: 1em;
}

.str-strength-item__desc:last-of-type {
  margin-bottom: 1.5rem;
}

/* チェックポイント */
.str-strength-item__point {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-dark);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.str-strength-item__point:first-of-type {
  border-top: 1px solid var(--border);
}

.str-strength-item__point svg {
  color: var(--accent);
  flex-shrink: 0;
}


/* =============================================
   03 TECHNOLOGY
   設計根拠・深掘り版
============================================= */
.str-technology {
  background: var(--gray-bg);
}

.str-technology__head {
  margin-bottom: 3rem;
}

/* 3カラムグリッド */
.str-technology__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* テクノロジーカード */
.str-tech-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.str-tech-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.str-tech-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent);
  flex-shrink: 0;
}

.str-tech-card__icon svg {
  width: 100%;
  height: 100%;
}

.str-tech-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.str-tech-card__tool {
  font-family: var(--font-en);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
}

.str-tech-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.4;
}

.str-tech-card__desc {
  font-size: 0.875rem;
  line-height: 1.85;
  color: var(--gray-mid);
  margin-top: 0.25rem;
}

.str-tech-card__list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  border-top: 1px solid var(--border);
  padding-top: 0.875rem;
}

.str-tech-card__list li {
  font-size: 0.8125rem;
  color: var(--gray-dark);
  padding-left: 1em;
  position: relative;
  line-height: 1.6;
}

.str-tech-card__list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* FEM解析図 */
.str-technology__visual {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #1e3a5a;
}

.str-technology__visual-label {
  background: #0a1929;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid #1e3a5a;
}

.str-technology__visual-label span {
  font-family: var(--font-en);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #4488aa;
  text-transform: uppercase;
}

.str-technology__visual svg {
  display: block;
  width: 100%;
  height: auto;
}


/* =============================================
   04 WORKS HIGHLIGHT
   事例ハイライト3件
============================================= */
.str-works {
  background: var(--white);
}

.str-works__head {
  margin-bottom: 3rem;
}

/* 3カラムグリッド */
.str-works__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

/* 事例カード */
.str-work-item {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.str-work-item:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

/* 画像エリア */
.str-work-item__image {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.str-work-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.str-work-item:hover .str-work-item__image img {
  transform: scale(1.04);
}

.str-work-item__category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
  background: var(--accent);
  padding: 0.25rem 0.625rem;
  border-radius: 2px;
}

/* 本文エリア */
.str-work-item__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

/* 難易度メモ */
.str-work-item__difficulty {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--gray-light);
  line-height: 1.5;
}

.str-work-item__difficulty svg {
  flex-shrink: 0;
  margin-top: 0.1em;
  color: var(--gray-light);
}

/* 課題→解決フロー */
.str-work-item__flow {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.str-work-item__problem,
.str-work-item__solution {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0.875rem;
  border-radius: 3px;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--gray-dark);
}

.str-work-item__problem {
  background: #fff5f5;
  border-left: 3px solid #e05252;
}

.str-work-item__solution {
  background: #f0f7ff;
  border-left: 3px solid var(--accent);
}

.str-work-item__arrow {
  text-align: center;
  font-size: 1rem;
  color: var(--border);
  line-height: 1;
}

/* バッジ */
.str-work-item__badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.125rem 0.5rem;
  border-radius: 2px;
  align-self: flex-start;
}

.str-work-item__badge--before {
  background: #fce8e8;
  color: #c0392b;
}

.str-work-item__badge--after {
  background: var(--accent-light);
  color: var(--accent-dark);
}

/* 製品名 */
.str-work-item__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--black);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* フッターリンク */
.str-works__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.str-works__footer-text {
  font-size: 0.875rem;
  color: var(--gray-light);
}


/* =============================================
   RESPONSIVE（768px 以下）
============================================= */
@media (max-width: 768px) {

  /* INTRODUCTION */
  .str-intro__stats {
    flex-direction: column;
    gap: 0;
    border-top: none;
    padding-top: 0;
  }

  .str-intro__stat {
    flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1.25rem 0;
    border-right: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: left;
  }

  .str-intro__stat-num {
    font-size: 2.5rem;
    min-width: 5rem;
    text-align: right;
  }

  .str-intro__stat-label {
    align-self: center;
  }

  /* STRENGTHS */
  .str-strength-item {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-bottom: 3.5rem;
    padding-bottom: 3.5rem;
  }

  /* SP時は逆順を解除して画像→テキストの順に統一 */
  .str-strength-item--reverse {
    direction: ltr;
  }

  .str-strength-item__image {
    aspect-ratio: 3 / 2;
  }

  /* TECHNOLOGY */
  .str-technology__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .str-tech-card {
    padding: 1.5rem;
  }

  /* WORKS */
  .str-works__list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .str-work-item__body {
    padding: 1.25rem;
  }
}
