/* =============================================
   lighting-details.css — 照明製品詳細一覧ページ専用スタイル
   ============================================= */

:root {
  --ld-bg: #FFFDF5;
  --ld-black: #232323;
  --ld-orange: #FF9933;
  --ld-gray: #888888;
  --ld-border: #E0E0E0;
  --ld-noto: 'Noto Sans JP', Helvetica, sans-serif;
  --ld-roboto: 'Roboto', Helvetica, sans-serif;
}

html, body {
  background-color: var(--ld-bg);
  margin: 0;
  padding: 0;
  font-family: var(--ld-noto);
  color: var(--ld-black);
}

/* ==============================
   ラッパー
   ============================== */
.ld-wrap {
  width: 100%;
  min-height: 100vh;
  background-color: var(--ld-bg);
}

/* ==============================
   パンくず
   ============================== */
.ld-breadcrumb-bar {
  margin-top: 125px;
  height: 58px;
  display: flex;
  align-items: flex-end;
  padding: 0 88px;
  box-sizing: border-box;
}
.ld-breadcrumb {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  letter-spacing: 0.05em;
  line-height: 38px;
  color: var(--ld-black);
  font-family: var(--ld-noto);
  flex-wrap: wrap;
}
.ld-breadcrumb a { color: var(--ld-black); text-decoration: none; }
.ld-breadcrumb a:hover { opacity: 0.7; }
.ld-breadcrumb .sep { color: var(--ld-black); }

/* ==============================
   コンテンツ領域
   ============================== */
.ld-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 88px 0;
  box-sizing: border-box;
}

/* ==============================
   フィルタータブ
   ============================== */
.ld-tabs {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 48px;
  margin-bottom: 48px;
  border-bottom: none;
}
.ld-tab {
  position: relative;
  background: none;
  border: none;
  padding: 0 0 10px;
  font-size: 21px;
  font-family: var(--ld-noto);
  letter-spacing: 0.05em;
  color: var(--ld-black);
  cursor: pointer;
  font-weight: 400;
  white-space: nowrap;
  transition: color 0.2s;
}
.ld-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1.5px;
  background-color: var(--ld-orange);
  transition: width 0.2s;
}
.ld-tab.active {
  color: var(--ld-orange);
}
.ld-tab.active::after {
  width: 88px;
}
.ld-tab:hover { color: var(--ld-orange); }

/* ==============================
   カードリスト
   ============================== */
.ld-list {
  display: flex;
  flex-direction: column;
}

/* ==============================
   製品カード
   ============================== */
.ld-card {
  display: flex;
  align-items: stretch;
  gap: 40px;
  padding: 40px 0;
}

/* カード：イメージ（388:280比率を厳守しつつ1300px以下からスムーズに230pxまで縮小） */
.ld-card-img {
  /* 1300px(30vw≈390px)→767px(30vw≈230px)でリニアに縮小、それ以上は230px固定 */
  flex: 0 0 clamp(230px, 30vw, 388px);
  overflow: hidden;
  align-self: flex-start;
}
.ld-card-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 388 / 280;
  object-fit: cover;
}

/* カード：テキスト本体 */
.ld-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
}
.ld-card-category {
  font-size: 14px;
  color: var(--ld-gray);
  font-family: var(--ld-noto);
  letter-spacing: 0.05em;
  font-weight: 300;
  margin: 0;
}
.ld-card-name {
  font-size: 20px;
  font-weight: 500;
  color: var(--ld-black);
  font-family: var(--ld-noto);
  letter-spacing: 0.05em;
  line-height: 1.4;
  margin: 0;
}
.ld-card-feature {
  font-size: 18px;
  font-weight: 500;
  color: var(--ld-orange);
  font-family: var(--ld-noto);
  letter-spacing: 0.03em;
  line-height: 1.4;
  margin: 4px 0 8px;
}
.ld-card-detail-heading {
  font-size: 16px;
  font-weight: 500;
  color: var(--ld-black);
  font-family: var(--ld-noto);
  letter-spacing: 0.05em;
  margin: 0 0 6px;
}
.ld-card-detail-text {
  font-size: 16px;
  font-weight: 400;
  color: var(--ld-black);
  font-family: var(--ld-noto);
  letter-spacing: 0.05em;
  line-height: 1.8;
  margin: 0;
}

/* カード：アクションボタン群 */
.ld-card-actions {
  flex-shrink: 0;
  width: 238px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  padding-top: 4px;
}

/* オレンジボタン */
.ld-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--ld-orange);
  padding: 0 12px 0 10px;
  height: 44px;
  text-decoration: none;
  transition: background-color 0.25s;
  gap: 8px;
}
.ld-btn:hover { background-color: #FFB521; }
.ld-btn-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}
.ld-btn-text {
  flex: 1;
  font-size: 13px;
  font-weight: 400;
  color: #fff;
  font-family: var(--ld-noto);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.ld-btn-arrow {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}
.ld-btn:hover .ld-btn-arrow {
  transform: translateX(4px);
}

/* ==============================
   1300px以下：ボタンを下段カラムに落とす
   ============================== */
@media (max-width: 1300px) {
  .ld-card {
    flex-wrap: wrap;
    gap: 20px 40px;
  }
  /* ボタン列：全幅で横並びに */
  .ld-card-actions {
    width: 100%;
    flex-direction: row;
    gap: 12px;
  }
  .ld-btn {
    flex: 1;
  }
}

/* ==============================
   タブレット (768px〜1023px)
   ============================== */
@media (min-width: 768px) and (max-width: 1023px) {
  .ld-breadcrumb-bar { padding: 0 44px; }
  .ld-container { padding: 40px 44px 0; }
  .ld-tabs { gap: 32px; }
  .ld-tab { font-size: 18px; }
  .ld-card { gap: 20px; }
}

/* ==============================
   SP (〜767px)
   ============================== */
@media (max-width: 767px) {
  .ld-breadcrumb-bar {
    margin-top: 80px;
    height: 40px;
    padding: 0 18px;
  }
  .ld-breadcrumb { font-size: 13px; line-height: 1.5; }

  .ld-container { padding: 28px 18px 0; }

  /* タブを14pxに縮小して1行に収める */
  .ld-tabs {
    gap: 14px;
    margin-bottom: 28px;
    flex-wrap: nowrap;
    justify-content: center;
  }
  .ld-tab { font-size: 14px; }
  .ld-tab.active::after { width: 40px; }

  /* SP: カードを縦積みに */
  .ld-card {
    flex-direction: column;
    gap: 16px;
    padding: 28px 0;
  }
  .ld-card-img {
    flex: 0 0 auto;
    width: 100%;
  }
  /* SP: ボタンを縦並びに（1300px横並び設定を上書き） */
  .ld-card-actions {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }
  .ld-btn {
    flex: none;
    height: 48px;
  }
  .ld-btn-text { font-size: 14px; }
  /* SP: 製品名・詳細テキストを15px */
  .ld-card-name { font-size: 15px; }
  .ld-card-detail-text { font-size: 15px; }
  .ld-card-feature { font-size: 18px; }
}
