/* =============================================
   projects-details.css  — 実績詳細ページ専用スタイル
   ============================================= */

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

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

/* ==============================
   パンくず（projects.astro に合わせた設定）
   ============================== */
.pd-breadcrumb-bar {
  margin-top: 125px;
  height: 58px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 88px;
  box-sizing: border-box;
}
.pd-breadcrumb {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  letter-spacing: 0.05em;
  line-height: 38px;
  color: var(--pd-black);
  font-family: var(--pd-noto);
  flex-wrap: wrap;
}
.pd-breadcrumb a {
  color: var(--pd-black);
  text-decoration: none;
}
.pd-breadcrumb a:hover { opacity: 0.7; }
.pd-breadcrumb .sep { color: var(--pd-black); }
.pd-breadcrumb .current { color: var(--pd-black); }

/* ==============================
   メインコンテナ
   ============================== */
.pd-wrap {
  width: 100%;
  min-height: 100vh;
  background-color: var(--pd-bg);
}

.pd-container {
  display: flex;
  flex-direction: column;
  padding: 58px 18px 80px;
  max-width: 100%;
  box-sizing: border-box;
}

/* ==============================
   SP: タイトル＋タグ（イメージより上）
   ============================== */
.pd-sp-header {
  margin-bottom: 20px;
}

/* ==============================
   タイトル・タグ 共通
   ============================== */
.pd-title {
  font-size: 33px;
  font-weight: 400;
  color: var(--pd-black);
  font-family: var(--pd-noto);
  letter-spacing: 0.03em;
  line-height: 1.4;
  margin: 0 0 10px;
}
.pd-tags {
  font-size: 14px;
  color: var(--pd-gray);
  font-family: var(--pd-noto);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

/* ==============================
   イメージカラム
   ============================== */
.pd-images-col {
  width: 100%;
}

/* PC: スタック表示（SP では非表示） */
.pd-images-stack {
  display: none;
  flex-direction: column;
  gap: 38px;
}
.pd-img-item {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.pd-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* SP: Swiper（PC では非表示） */
.pd-swiper {
  display: block;
  width: 100%;
}
.pd-swiper .swiper-slide {
  width: 100%;
}
.pd-swiper-slide-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.pd-swiper-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Swiper pagination */
.pd-swiper-pagination {
  position: relative;
  margin-top: 14px;
  text-align: center;
  line-height: 1;
  --swiper-pagination-bullet-size: 10px;
  --swiper-pagination-bullet-inactive-color: #D9D9D9;
  --swiper-pagination-bullet-inactive-opacity: 1;
  --swiper-pagination-color: #989898;
  --swiper-pagination-bullet-horizontal-gap: 6px;
}

/* ==============================
   サイドバー（PC: sticky右カラム / SP: イメージ下）
   ============================== */
.pd-sidebar {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* PC版のタイトル+タグ（SPでは非表示） */
.pd-pc-header {
  display: none;
}

/* ==============================
   メタ情報テーブル
   ============================== */
.pd-meta {
  margin-bottom: 28px;
  border-top: 1px solid var(--pd-border);
}
.pd-meta-row {
  display: flex;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--pd-border);
  gap: 16px;
}
.pd-meta-label {
  font-size: 16px;
  font-weight: 400;
  color: #353535;
  font-family: var(--pd-noto);
  letter-spacing: 0.05em;
  min-width: 90px;
  flex-shrink: 0;
}
.pd-meta-value {
  font-size: 16px;
  font-weight: 400;
  color: var(--pd-black);
  font-family: var(--pd-noto);
  letter-spacing: 0.05em;
  line-height: 1.6;
}

/* ==============================
   コンテンツセクション
   ============================== */
.pd-section {
  margin-bottom: 28px;
}
.pd-section-heading {
  font-size: 17px;
  font-weight: 500;
  color: var(--pd-black);
  font-family: var(--pd-noto);
  letter-spacing: 0.05em;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--pd-orange);
  display: inline-block;
}
/* プロジェクト詳細のみオレンジ線を非表示 */
.pd-section.is-summary .pd-section-heading {
  border-bottom: none;
  padding-bottom: 0;
}
.pd-section-text {
  font-size: 16px;
  font-weight: 400;
  color: var(--pd-black);
  font-family: var(--pd-noto);
  letter-spacing: 0.05em;
  line-height: 1.9;
  margin: 0;
}

/* プロジェクト詳細サマリー：薄いオレンジ背景 */
.pd-section.is-summary .pd-section-text {
  background-color: rgba(255, 153, 51, 0.08);
  border-left: 3px solid var(--pd-orange);
  padding: 14px 16px;
}

/* ==============================
   実績一覧へ戻るリンク
   ============================== */
.pd-back-link {
  display: inline-block;
  font-size: 16px;
  font-weight: 300;
  color: var(--pd-orange);
  font-family: var(--pd-noto);
  letter-spacing: 0.05em;
  text-decoration: none;
  margin-top: 8px;
  transition: opacity 0.25s;
}
.pd-back-link:hover { opacity: 0.7; }

/* ==============================
   PC レスポンシブ (>= 1024px)
   ============================== */
@media (min-width: 1024px) {

  .pd-breadcrumb-bar {
    margin-top: 125px;
    padding: 0 88px;
  }

  .pd-container {
    display: grid;
    grid-template-columns: 57fr 43fr;
    grid-template-rows: auto;
    column-gap: 60px;
    align-items: start;
    padding: 58px 58px 100px;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  /* SP ヘッダー：PCでは非表示 */
  .pd-sp-header {
    display: none;
  }

  /* イメージカラム：左カラム、全行にまたがる */
  .pd-images-col {
    grid-column: 1;
    grid-row: 1;
  }

  /* PC ではスタック表示 */
  .pd-images-stack {
    display: flex;
  }
  /* SP Swiper：PCでは非表示 */
  .pd-swiper {
    display: none;
  }

  /* サイドバー：右カラム、sticky */
  .pd-sidebar {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 90px;
    margin-top: 0;
  }

  /* PC版タイトル+タグ：表示 */
  .pd-pc-header {
    display: block;
    margin-bottom: 24px;
  }
  .pd-pc-header .pd-title {
    font-size: 33px;
    margin-bottom: 8px;
  }
  .pd-pc-header .pd-tags {
    font-size: 15px;
  }

  .pd-meta { margin-bottom: 32px; }
  .pd-meta-label { min-width: 100px; }
  .pd-section { margin-bottom: 32px; }
  .pd-section-heading { font-size: 18px; }
  .pd-section-text { font-size: 16px; }
  .pd-back-link { font-size: 16px; }
}

/* ==============================
   タブレット調整 (768px〜1023px)
   ============================== */
@media (min-width: 768px) and (max-width: 1023px) {
  .pd-breadcrumb-bar { padding: 0 44px; }
  .pd-container { padding: 28px 44px 80px; }
  .pd-title { font-size: 33px; }
}

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