/* =============================
   HEROセクション（共通）
============================= */

.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
}

/* 背景画像 */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  z-index: 1;
}

/* 左半分のオーバーレイ（白） */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: rgba(255,255,255,0.75);
  z-index: 2;
}

/* テキストエリア */
.hero-content {
  position: absolute;
  top: 50%;
  left: 6%;
  transform: translateY(-50%);
  z-index: 3;
  max-width: 540px;
}

.hero-logo {
  width: 120px;
  margin-bottom: 35px;
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.3;
  color: #333;
  margin-bottom: 25px;
}

.hero-content p {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  line-height: 1.8;
}

.highlight { color:#f15a24; }


/* =============================
   CASE ARCHIVE
============================= */
.case-archive{
  padding:80px 0 100px;
  background:#fff;
}

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

/* タイトル */
.case-archive-title{
  margin-bottom:40px;
}

.case-archive-title span{
  display:block;
  font-size:64px;
  color:#ff5a00;
  font-weight:800;
  letter-spacing:.04em;
}

.case-archive-title small{
  display:block;
  font-size:20px;
  font-weight:700;
  color:#444;
  margin-top:8px;
}


/* =============================
  GRID
============================= */

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

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


/* =============================
  CARD
============================= */

.case-card{
  background:#fff;
}

.case-card a{
  text-decoration:none;
  color:#333;
  display:flex;
  flex-direction:column;
}

/* ---------- サムネ画像（番号 & View more 含む） ---------- */

.case-thumb{
  position:relative; /* ← View more & 番号の基準点 */
  overflow:visible; /* ← View more の切れ防止 */
}

/* サムネ画像（角丸なし） */
.case-thumb img{
  width:100%;
  aspect-ratio: 4 / 3;
  object-fit:cover;
  border-radius:0;
  display:block;
}

/* ---------- 番号表示 ---------- */

.case-no{
  position:absolute;
  top:14px;
  left:14px;
  color:#0d47a1;
  font-size:52px;
  font-weight:800;
  letter-spacing:.06em;
  z-index:2;
  line-height:1;
}

/* ---------- VIEW MORE（右下へ固定） ---------- */

.case-more{
  position:absolute;
  bottom:0px;
  right:0px; /* ← 右下固定 */
  z-index:3;
}

.case-more img{
  width:160px;      /* お好みで調整 */
  height:auto;
  display:block;
  object-fit:contain;  /* ← これで切れない */
}

/* View more ホバー演出なし */
.case-card a:hover .case-more img{
  transform:none;
}

/* =============================
  日付
============================= */

.case-date{
  font-size:13px;
  color:#777;
  margin-top:10px;
}

/* =============================
  タイトル（3行制限）
============================= */

.case-title{
  margin-top:6px;
  font-size:16px;
  line-height:1.65;
  font-weight:700;

  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;

  min-height:79px;
}

/* =============================
   ページネーション（MEGA BOXデザイン統一）
============================= */
.case-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 80px auto 100px;
  text-align: center;
}

.case-pagination .page-link a,
.case-pagination .page-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #0b2b57;
  background: #fff;
  color: #0b2b57;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.case-pagination .page-link a:hover {
  background-color: #0b2b57;
  color: #fff;
  transform: translateY(-2px);
}

.case-pagination .page-link .current {
  background-color: #0b2b57;
  color: #fff;
  border-color: #0b2b57;
}

/* 矢印（prev / next） */
.case-pagination .prev.page-numbers,
.case-pagination .next.page-numbers {
  font-size: 24px;
  color: #0b2b57;
  border: none;
  width: auto;
  height: auto;
  padding: 0 10px;
  text-decoration: none;
  transition: color 0.25s ease;
}

.case-pagination .prev.page-numbers:hover,
.case-pagination .next.page-numbers:hover {
  color: #0b2b57;
  transform: translateY(-1px);
}


/* =============================
  RESPONSIVE
============================= */

@media (max-width:1024px){

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

  .case-archive-title span{
    font-size:48px;
  }
}

@media (max-width:640px){

  .hero-section { height:70vh; }

  .hero-bg{
    object-position:center 90%;
  }

  .hero-overlay{
    width:100%;
    background:rgba(255,255,255,0.85);
  }

  .hero-content{
    top:40%;
    left:50%;
    transform:translate(-50%, -50%);
    width:90%;
    text-align:center;
  }

  .hero-logo{
    width:60px;
    position:absolute;
    top:-60px;
    left:10px;
  }

  .hero-content h1{
    font-size:36px;
    margin-bottom:10px;
  }

  .hero-content p{
    font-size:14px;
  }


  /* GRID */
  .case-grid{
    grid-template-columns:1fr !important;
    gap:24px;
  }

  /* タイトル */
  .case-title{
    font-size:15px;
    min-height:auto;
  }

  .case-date{
    font-size:12px;
  }

  /* 番号 */
  .case-no{
    font-size:34px;
    top:10px;
    left:10px;
  }

  /* View more */
  .case-more img{
    width:68px;
  }

  .case-pagination .page-link a,
  .case-pagination .page-link span {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .case-pagination .prev.page-numbers,
  .case-pagination .next.page-numbers {
    font-size: 20px;
    padding: 0 8px;
  }
}