/* ============================
  ページヘッダー（カテゴリ：左テキスト / 右画像）
============================ */
.page-header {
  background: #fff;
  padding: 48px 20px 20px;

  --media-h: 200px;
  --media-max: 1200px;
  --gap: 32px;
  --copy-w: 1fr;
  --img-w: 48%;
  --card-bg: #f7f8fb;
  --radius: 10px;
}

.page-header__media {
  max-width: var(--media-max);
  margin: 0 auto 20px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  display: grid;
  grid-template-columns: 1fr 48%;
  align-items: center;       /* stretchは使わない */
}

/* 2カラム（左：テキスト / 右：画像） */
.page-header--visual .page-header__media {
  display: grid;
  grid-template-columns: var(--copy-w) var(--img-w);
  align-items: center;
}
.author .page-header--visual .page-header__media {
  grid-template-columns: 3fr 1fr;
}

/* テキスト側 */
.page-title {
  position: static; /* absolute解除 */
  transform: none;
  width: auto;
  margin: 0;
  padding: 28px 32px;
  text-align: left;
}

/* 見出し */
.page-title__ja {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.05em;
  margin: 0 0 6px;
  color: #000;
}

.page-title__en {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 2px 8px;          /* 6px→4pxへ */
  border-radius: 4px;
  background: #2e3b5a;       /* 少しだけ明るく */
  color: #fff;
  margin-bottom: 10px;       /* 14px→10px */
  text-transform: uppercase;
}


/* リード */
.page-title__lead {
  font-size: 15px;
  font-weight: 500;   /* 400でもOK。沈むなら500 */
  line-height: 1.7;
  margin: 0;
  color: #585858;
}

/* 右画像側：高さはmediaと揃える */
.page-header__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-header__image-wrap {
  position: relative;
  height: var(--media-h);    /* 200px固定 */
}
.page-header__image-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(12, 25, 55, 0) 45%,
    rgba(12, 25, 55, 0.2) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.author .page-header__image-wrap {
  position: relative;
  height: 100%;
}
.author .page-header__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.author .page-header__image-wrap::before {
  content: unset;
}




/* ============================
  レスポンシブ
============================ */
@media (max-width: 1024px) {
  .page-header {
    --img-w: 420px;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 32px 16px 24px;
    --media-h: 180px;
  }

  .page-header--visual .page-header__media ,
  .author .page-header--visual .page-header__media {
    grid-template-columns: 1fr; /* 縦積み */
  }

  .page-title {
    padding: 20px;
    text-align: center; /* SPは中央の方がまとまる */
  }

  .page-title__ja {
    font-size: 28px;
  }

  .page-header__image {
    height: var(--media-h);
  }
}


/* ============================
  Category top：ブロック背景/区切り
============================ */
.category-top .cat-block , 
.search-results .cat-block {
  background:#fff;
}
.category-top .cat-block:nth-child(n+2){
  border-top: 1px solid #e5e5e5;
}

/* ============================
  セクションタイトル周り
============================ */
.category-top .cat-block-title{
  display: block;
  text-align: center;
}

.category-top .cat-block-title-ja{
  margin: 0;
  line-height: 1.15;
  font-weight: 700;
  white-space: normal;
  word-break: break-word;
}

/* h2（セクションタイトル）のスタイル */
.category-top h2.cat-block-title-ja{
  font-size: 28px;
}

/* 既存の英字ラベル（使う場合） */
.category-top .cat-block-title-en{
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: .08em;
  color: #7f7f7f;
}

/* ============================
  記事リスト：画像を小さくしてPCで情報量UP
  目標：160x90（16:9）
============================ */
.cat-hlist{
  display:flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.cat-hitem > a{
  display:flex;
  gap: 16px;
  padding: 10px;
  background:#fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow .25s ease, transform .25s ease;
}

.cat-hitem > a:hover{
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.cat-hitem__img{
  width: 160px;
  flex: 0 0 160px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.cat-hitem__img::before{
  content: "";
  display: block;
  padding-top: 56.25%;
}

.cat-hitem__img img{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-hitem > a{
  align-items: flex-start;
}

.cat-hitem__body{
  flex:1;
  display:flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.cat-hitem__title{
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color:#000;
  margin:0;
}

.cat-hitem__date{
  font-size: 13px;
  color:#666;
  margin:0;
}

.cat-hitem__desc{
  font-size: 13px;
  line-height: 1.7;
  color:#333;
  margin:0;
}

.cat-hitem__meta { 
  margin-top:auto; 
}

/* cat-block--hhead：注目記事は左寄せ */
.cat-block--hhead .cat-block-inner{ 
  display:block; 
}
.cat-block--hhead .cat-block-head{ 
  width:100%; 
  margin-bottom: 16px; 
}
.cat-block--hhead .cat-block-title{ 
  width:100%;
  text-align: left; 
      margin: 0 0 20px;
    padding: 0 10px;
}
.category-top .cat-block.cat-block--hhead ,
.search-results .cat-block.cat-block--hhead {
  border-top: none;
  padding-top: 0;
}
/* ============================
  レスポンシブ
============================ */
@media (max-width: 900px){
  .page-header {
    padding: 32px 20px 24px;
  }
  
  .page-title__ja {
    font-size: 28px;
    margin-bottom: 12px;
  }
  
  .page-title__lead {
    font-size: 13px;
  }
  
  .cat-hitem__img{
    width: 140px;
    flex-basis: 140px;
  }
  .cat-hitem__title{
    font-size: 16px;
  }
}

.header-nav{
  padding-left: 20px;
  padding-right: 20px;
}

.page-top{
  top: -50px;
  background: rgba(0, 0, 0, 0.15);
}
.page-top:hover {
    background: rgba(0, 0, 0, 0.25);
}

