@charset "UTF-8";
/* =========================================================
   detail.css
   詳細ページ共通の新規クラス（最小限）
   - .detail-* プレフィックスで再利用前提
   - 装飾は既存クラス（tit2/tit3/text/btn/list_nomal/ol_item等）に委譲
   - 768px以下でスマホレイアウトに切替
   ========================================================= */

.detail-main { max-width: 900px; }

/* セクション間 */
.detail-section { margin-bottom: 5rem; }

/* ---------- ヒーロー ---------- */
.detail-hero__visual { margin: 1.5rem 0 0; }

/* ---------- アンカーナビ（チップ型） ---------- */
.detail-anchor {
  margin-bottom: 4rem;
  padding: 1rem 1.2rem;
  background: #f7f8fb;
  border: 1px solid #e2e6ec;
  border-radius: 4px;
}
.detail-anchor__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.detail-anchor__list a {
  display: inline-block;
  padding: .5rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a2e;
  background: #fff;
  border: 1px solid #c9ced6;
  border-radius: 999px;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.detail-anchor__list a:hover {
  background: #CA1548;
  color: #fff;
  border-color: #CA1548;
}

/* ---------- 型番ブロック ---------- */
.detail-model + .detail-model { margin-top: 4rem; }
.detail-model__title { margin-bottom: 1.2rem; }
.detail-model__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
.detail-model__media { margin: 0; }
.detail-model__media .top-placeholder { aspect-ratio: 4/3; }
.detail-model__body { font-size: 1.5rem; }

@media screen and (min-width: 768px) {

  .detail-model__grid{
    display: flex;
    align-items: center; /* ← 縦中央 */
    gap: 24px;
  }

  .detail-model__media img{
    display: block;
    width: 300px;
    height: auto;
  }
  .detail-model__media_l img{
    display: block;
    width: 400px;
    height: auto;
  }
  .detail-model__body{
    flex: 1;
  }
}


/* ---------- 取説DLボックス ---------- */
.detail-dl {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 1rem;
}
.detail-dl__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 1.6rem;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-left: 4px solid #1f93ad;
}
.detail-dl__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 .2rem;
}
.detail-dl__file {
  font-size: 1.3rem;
  color: #6b7280;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin: 0;
}
.detail-dl__btn { flex-shrink: 0; margin: 0 !important; }

/* ---------- 技術情報（ol_item の補助） ---------- */
.detail-tech li { margin-bottom: 2.4rem !important; }
.detail-tech .tit { margin-bottom: .4rem; }
.detail-tech p { font-size: 1.5rem; line-height: 2.6rem; margin-bottom: .6rem; }
.detail-tech__figure {
  margin: 1rem 0 0;
  max-width: 480px;
}
.detail-tech__figure .top-placeholder { aspect-ratio: 4/3; }

/* before/after 比較 */
.detail-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.detail-compare__item { margin: 0; }
.detail-compare__media { aspect-ratio: 4/3; }
.detail-compare__label {
  margin-top: .4rem;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #5673ad;
}






/* ---------- 関連製品 3カラム ---------- */
.detail-related {
  grid-template-columns: repeat(3, 1fr);
}

/* ---------- レスポンシブ ---------- */
@media screen and (max-width: 768px) {
  .detail-section { margin-bottom: 4rem; }

  .detail-anchor__list a { font-size: 1.2rem; padding: .4rem 1rem; }

  .detail-model__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .detail-dl__item {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .detail-dl__btn { width: 100%; }

  .detail-related {
    grid-template-columns: 1fr;
  }
}
