/* ============================================================
   oem.css — 「OEM製造について」ページ専用スタイル
   ============================================================ */

/* ============================================================
   ファーストビュー（左：赤パネル／右：写真）
   about-hero / outline-heroと同じ構造（1440×500、2カラム）を流用
   ============================================================ */
.ida-oem-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  aspect-ratio: 1440 / 500;
}

.ida-oem-hero__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--brand-red);
  padding: 40px;
}

.ida-oem-hero__mark {
  width: 126px;
  height: auto;
  margin-bottom: 32px;
}

.ida-oem-hero__title {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  color: var(--shiro);
}

.ida-oem-hero__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1023px) {
  .ida-oem-hero {
    aspect-ratio: 375 / 300;
  }

  .ida-oem-hero__panel {
    padding: 24px 16px;
  }

  .ida-oem-hero__photo {
    aspect-ratio: auto;
    height: 100%;
  }
}

@media (max-width: 767px) {
  .ida-oem-hero__title {
    font-size: 28px;
  }

  .ida-oem-hero__mark {
    width: 90px;
    margin-bottom: 20px;
  }
}

/* ── パンくずリスト・ページ内アンカーリンクは style.css の共通スタイルを使用 ── */

/* ============================================================
   導入セクション：小ロットOEM説明
   ============================================================ */
.ida-oem-intro {
  padding-top: 40px;
  padding-bottom: 80px;
  text-align: center;
}

.ida-oem-intro__head {
  margin-bottom: 32px;
}

.ida-oem-intro__icon {
  width: 78px;
  height: auto;
  margin: 0 auto 16px;
}

.ida-oem-intro__title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
}

.ida-oem-intro__lead {
  max-width: 800px;
  margin: 0 auto 48px;
}

.ida-oem-intro__lead p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-dark);
}

.ida-oem-intro__note {
  margin-top: 24px !important;
  font-size: 14px;
  color: var(--text-gray);
}

.ida-oem-intro__photo {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 1000 / 560;
  object-fit: cover;
  border-radius: 4px;
}

@media (max-width: 767px) {
  .ida-oem-intro {
    padding-bottom: 56px;
  }

  .ida-oem-intro__title {
    font-size: 24px;
  }

  .ida-oem-intro__lead p {
    font-size: 15px;
  }
}

/* ============================================================
   OEM製造 ご依頼の流れセクション
   ============================================================ */
.ida-oem-flow {
  padding-bottom: 80px;
  text-align: center;
}

.ida-oem-flow__head {
  margin-bottom: 40px;
}

.ida-oem-flow__icon {
  width: 78px;
  height: auto;
  margin: 0 auto 16px;
}

.ida-oem-flow__title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
}

.ida-oem-flow__list {
  max-width: 900px;
  margin: 0 auto;
}

.ida-oem-flow__step {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 40px;
  background: var(--shiro);
  border-radius: 6px;
  text-align: left;
}

.ida-oem-flow__number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 54px;
  background: url('../img/oem-flow-number-circle.svg') no-repeat center / contain;
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-red);
}

.ida-oem-flow__step-title {
  flex: 0 0 140px;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
}

.ida-oem-flow__step-text {
  flex: 1;
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-dark);
}

.ida-oem-flow__arrow {
  display: block;
  margin: 4px 0;
  font-size: 22px;
  color: var(--brand-red);
}

@media (max-width: 767px) {
  .ida-oem-flow {
    padding-bottom: 56px;
  }

  .ida-oem-flow__title {
    font-size: 24px;
  }

  .ida-oem-flow__step {
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 20px 24px;
  }

  .ida-oem-flow__number {
    width: 40px;
    height: 42px;
    font-size: 18px;
  }

  .ida-oem-flow__step-title {
    flex: 1;
    font-size: 17px;
  }

  .ida-oem-flow__step-text {
    flex: 1 1 100%;
    font-size: 14px;
  }
}

/* ============================================================
   OEM製造実績セクション
   ============================================================ */
.ida-oem-results {
  padding-bottom: 80px;
  text-align: center;
}

.ida-oem-results__head {
  margin-bottom: 32px;
}

.ida-oem-results__icon {
  width: 78px;
  height: auto;
  margin: 0 auto 16px;
}

.ida-oem-results__title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
}

.ida-oem-results__lead {
  max-width: 800px;
  margin: 0 auto 48px;
}

.ida-oem-results__lead p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-dark);
}

.ida-oem-results__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
  margin-bottom: 56px;
}

.ida-oem-results__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--shiro);
  border-radius: 4px;
}

.ida-oem-results__item figcaption {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-dark);
}

.ida-oem-results__manga {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto 40px;
  border-radius: 4px;
}

.ida-oem-results__cta-wrap {
  text-align: center;
}

.ida-oem-results__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: var(--brand-red);
  color: var(--shiro);
  font-size: 17px;
  font-weight: 500;
  border-radius: 6px;
  transition: opacity 0.2s ease;
}

.ida-oem-results__cta:hover {
  opacity: 0.85;
}

@media (max-width: 1023px) {
  .ida-oem-results__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .ida-oem-results {
    padding-bottom: 56px;
  }

  .ida-oem-results__title {
    font-size: 24px;
  }

  .ida-oem-results__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ============================================================
   【全頁共通修正】SP：タイトル（上）→写真（下）の上下並び（Figma準拠）
   ============================================================ */
@media (max-width: 767px) {
  .ida-oem-hero {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
  }

  .ida-oem-hero__panel {
    padding: 24px 16px;
  }

  .ida-oem-hero__mark {
    width: 44px;
    margin-bottom: 10px;
  }

  .ida-oem-hero__title {
    font-size: 24px;
  }

  .ida-oem-hero__photo {
    height: auto;
    aspect-ratio: 5 / 2;
  }
}
/* 【全頁共通修正】SP：長い文章は左寄せ（見出し下の短い説明文は中央寄せのまま） */
@media (max-width: 767px) {
  .ida-oem-intro__lead {
    text-align: left;
  }
}
