/* ===============================
   CASE STUDY シングル共通
=============================== */

.case-single {
  background: #fff;
  padding: 40px 0 80px;
  font-family: 'Noto Sans JP', sans-serif;
}

.case-single-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ===== ヘッダー ===== */

.case-head {
  margin-bottom: 28px;
}

.case-head-label {
  font-size: 16px;
  letter-spacing: .16em;
  font-weight: 700;
  color: #ff5a00;
  margin-bottom: 6px;
}


.case-head-title {
  font-size: 32px;
  line-height: 1.4;
  color: #333;
  font-weight: 800;
}

.case-head-meta {
  font-size: 14px;
  color: #999;
  margin-top: 4px;
}

/* ===== メインビジュアル ===== */

.case-main-visual {
  margin: 14px 0 36px;
}

.case-main-visual img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

/* ===== Concept ===== */

.case-concept {
  border-top: 3px solid #ff5a00;
  border-bottom: 1px solid #eee;
  padding: 10px 0 14px;
  margin-bottom: 30px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.case-concept-label {
  color: #ff5a00;
  font-weight: 800;
  font-size: 28px;
  white-space: nowrap;
}

.case-concept-text {
  font-size:28px;
  line-height: 1.7;
  font-weight:700;
  color: #333;
}

/* ===== ギャラリー===== */

.case-gallery {
  margin-bottom: 50px;
}

.case-gallery-item {
  margin-bottom: 36px;
}

  /* ギャラリー画像を70%表示 */
  .case-gallery-item img{
    width:70%;
    height:auto;
    margin-left:auto;
    margin-right:auto;
    display:block;
  }

.case-gallery-item figcaption {
  width:70%;
  margin: 20px auto;
  font-size:15px;
  color:#666;
  line-height:1.7;
  text-align:left;
}

/* ===============================
   担当スタッフ（固定）
=============================== */

.case-staff {
  background: #fafafa;
  padding: 40px 0;
}

.case-staff-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.case-block-title {
  border-left: 4px solid #ff5a00;
  padding-left: 10px;
  font-weight: 700;
  margin-bottom: 24px;
}

.case-staff-card {
  display: flex;
  gap: 20px;
  align-items: center;
}

.case-staff-thumb img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.case-staff-body h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.case-staff-role {
  font-size: 13px;
  color: #777;
  margin-bottom: 10px;
}

.case-staff-body p {
  font-size: 13px;
  line-height: 1.8;
}

.staff-section-head{
  margin-bottom:24px;
}

.staff-subtitle{
  color:#ff5a00;
  font-size:18px;
  font-weight:700;
  margin:0 0 6px;
}

.staff-title{
  position:relative;
  padding-left:14px;
  font-size:28px;
  margin:0;
  font-weight:800;
}

.staff-title-bar{
  position:absolute;
  left:0;
  top:4px;
  width:4px;
  height:20px;
  background:#ff5a00;
}

/* ===== グリッド ===== */

.staff-fixed-grid{
  display:grid;
  grid-template-columns:320px 1fr;
  gap:28px;
  align-items:flex-start;
}

/* ===== 写真 ===== */

.staff-column-thumb img{
  width:100%;
  max-width:320px;
  margin:0 auto;
  display:block;
  border-radius:12px;
}

/* ===== テキスト ===== */

.staff-name{
  font-size:21px;
  font-weight:700;
  margin:0 0 4px;
}

.staff-name span{
  font-size:18px;
  font-weight:700;
  margin-left:6px;
  color:#ff5a00;
}

.staff-role{
  font-size:15px;
  color:#666;
  margin:0 0 12px;
}

.staff-comment{
  padding:14px 16px;
  line-height:1.7;
  font-size:15px;
}

/* ===============================
   RELATED（人気・新着記事）
=============================== */

.case-related{
  background:#fff7f2;
  padding:60px 0;
}

.case-related-inner{
  max-width:1100px;
  margin:auto;
  padding:0 20px;
}

.case-related-block{
  margin-bottom:60px;
}

/* ===== タイトル ===== */

.case-related-heading{
  margin-bottom:24px;
}

.case-related-heading .en{
  font-size:28px;
  font-weight:700;
  letter-spacing:.04em;
  color:#333;
  margin:0;
}

.case-related-heading .en span{
  color:#ff5a00;
}

.case-related-heading .jp{
  color:#ff5a00;
  font-size:18px;
  font-weight:700;
  margin-top:4px;
}

/* ===== グリッド ===== */

.case-related-list{
  list-style:none;
  padding:0;
  margin:0;

  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}

/* ===== カード ===== */

.case-related-item a{
  display:block;
  height:100%;
  background:#fff;
  border-radius:8px;
  overflow:hidden;
  text-decoration:none;
  color:#333;

  box-shadow:0 4px 12px rgba(0,0,0,.04);
}

/* サムネ */

.case-related-thumb{
  width:100%;
  aspect-ratio:5/3;
  overflow:hidden;
}

.case-related-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* 日付 */

.case-related-date{
  display:block;
  margin:8px 10px 4px;
  font-size:14px;
  color:#666;
}

/* タイトル固定行 */

.case-related-title{
  margin:0 10px 14px;

  font-size:16px;
  line-height:1.6;
  font-weight:600;

  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:2.8em;   /* 行高さ固定 -> カード高さ完全統一 */
}


/* ===============================
   CTA
=============================== */

.case-cta {
  text-align: center;
  padding: 40px 0 60px;
}

.case-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.case-cta-btn {
  min-width: 220px;
  padding: 14px 24px;
  border-radius: 28px;
  font-weight: 700;
  text-decoration: none;
  transition: .2s;
}

.case-cta-btn.orange {
  background:#ff5a00;
  color:#fff;
}

.case-cta-btn.orange:hover {
  background:#ff7b00;
  transform: translateY(-2px);
}

.case-cta-btn.gray {
  background:#eee;
  color:#333;
}

/* =====================================================
   建築事例一覧ページ
===================================================== */

.case-archive{
  background:#fff;
  padding:60px 0 80px;
}

.case-archive-inner{
  max-width:960px;
  margin:0 auto;
  padding:0 20px;
}

/* タイトル */
.case-archive-title{
  text-align:center;
  font-size:28px;
  font-weight:700;
  margin-bottom:36px;
}

/* リストはRELATEDと完全共通 */
.case-related-date{
  font-size:11px;
  color:#999;
  margin:8px 10px 0;
}

/* pagination */
.case-pagination{
  margin-top:40px;
  text-align:center;
}

.case-pagination .page-numbers{
  display:inline-block;
  margin:0 6px;
  padding:6px 10px;
  border-radius:4px;
  background:#eee;
  color:#333;
  text-decoration:none;
  font-size:13px;
}

.case-pagination .page-numbers.current{
  background:#ff5a00;
  color:#fff;
}

.case-related-more {
  text-align:center;
  margin-top:24px;
}

.case-related-more a{
  color:#ff5a00;
  font-weight:700;
  text-decoration:none;
}



/* ===============================
   SP
=============================== */

@media (max-width:768px){

  .case-head-title {
    font-size:22px;
  }

  .case-concept {
    flex-direction: column;
  }

  .case-staff-card{
    flex-direction:column;
    align-items:flex-start;
  }

  .case-related-list{
    grid-template-columns: repeat(2,1fr);
  }

  .case-cta-btn{
    min-width:100%;
  }

  /* ギャラリー画像を90%表示 */
  .case-gallery-item img{
    width:90%;
  }

 .case-gallery-item figcaption {
    width:90%;
    margin:15px auto;
 }

/* ===============================
   固定スタッフ スマホ完全修正（旧構造対応）
=============================== */

.case-staff-card{
  flex-direction: column !important;
  align-items: center !important;
}

.case-staff-thumb{
  width: 100%;
  text-align: center;
}

.case-staff-thumb img{
  width: 280px !important;
  max-width: 90%;
  height: auto !important;
}

.case-staff-body{
  width: 100%;
  text-align: left !important;
}
  .staff-fixed-grid{
    grid-template-columns:1fr;
  }

  .staff-column-thumb img{
    max-width:280px;
  }

  .staff-title{
    font-size:24px;
  }


/* ===============================
   RELATED（人気・新着記事）
=============================== */

  .case-related-list{
    grid-template-columns:repeat(2,1fr);
    gap:12px;
  }

  .case-related-heading .en{
    font-size:28px;
  }

  .case-related-heading .jp{
    font-size:15px;
  }

  .case-related-title{
    font-size:15px;
  }
}