/* =========================================================
   EAA TOP PAGE - NEWS / BLOG
   top-news-blog-2026.css

   目的：
   ・トップページの NEWS / BLOG エリア専用
   ・既存テーマCSSの影響を受けにくくするため .eaa-editorial-zone 配下を初期化
   ・PC：NEWSをやや狭く、BLOGをやや広く表示
   ・SP：NEWS / BLOGを1カラム化
   ========================================================= */


/* =========================================================
   01. RESET / COMMON
   ========================================================= */

.eaa-editorial-zone,
.eaa-editorial-zone * {
  box-sizing: border-box;
}

/* 既存テーマの汎用スタイル干渉を抑える */
.eaa-editorial-zone * {
  all: unset;
  display: revert;
  box-sizing: border-box;
}

.eaa-editorial-zone {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 30px;
  position: relative;
  z-index: 3;
  width: 100%;
  font-family: 'Original Yu Gothic', 'Yu Gothic', YuGothic, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: #151515;
}

.eaa-editorial-zone a {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}


/* =========================================================
   02. PANEL COMMON
   NEWS / BLOG 共通の白パネル
   ========================================================= */

.eaa-ed-panel {
  display: block;
  min-width: 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}


/* =========================================================
   03. PANEL HEADER
   NEWS / BLOG の見出し部分
   ========================================================= */

.eaa-ed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 34px 18px;
  border-bottom: 1px solid #dcdcdc;
}

.eaa-ed-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}

.eaa-ed-title-en {
  display: inline-block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 27px;
  line-height: 1;
  font-style: italic;
  font-weight: 700;
  color: #521010;
}

.eaa-ed-title-ja {
  display: inline-block;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .08em;
  color: #521010;
}

.eaa-ed-more {
  display: inline-block;
  flex: none;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .06em;
  color: #521010;
}


/* =========================================================
   04. COMMON PARTS
   日付 / NEW表示
   ========================================================= */

.eaa-ed-date {
  grid-area: date;
  display: block;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .08em;
}

/* 投稿日から一定期間だけPHP側で表示する NEW */
.eaa-ed-new {
  display: inline-block;
  margin-left: 8px;
  color: #d93025;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
}


/* =========================================================
   05. NEWS
   ========================================================= */

.eaa-ed-news-body {
  display: block;
  padding: 22px 20px 24px;
}


/* ----- NEWS 最新記事 ----- */

.eaa-ed-news-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "kicker date arrow"
    "title title arrow";
  column-gap: 12px;
  row-gap: 9px;
  align-items: center;
  padding: 4px 6px 24px;
  border-bottom: 1px solid #d9d9d9;
}

.eaa-ed-kicker {
  grid-area: kicker;
  display: inline-block;
  width: max-content;
  padding: 5px 8px;
  background: #0785c7;
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .12em;
}

.eaa-ed-news-hero-title {
  grid-area: title;
  display: block;
  margin: 0;
  font-size: 19px;
  line-height: 1.65;
  font-weight: 700;
  letter-spacing: .035em;
  color: #0076b9;
}

.eaa-ed-arrow {
  grid-area: arrow;
  display: block;
  font-size: 27px;
  line-height: 1;
  color: #0785c7;
}


/* ----- NEWS 一覧 ----- */

.eaa-ed-news-list {
  display: block;
}

.eaa-ed-news-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 14px;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 13px 6px;
  border-bottom: 1px solid #ececec;
}

.eaa-ed-news-row:last-child {
  border-bottom: 0;
}

.eaa-ed-row-date {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .06em;
}

.eaa-ed-row-title {
  display: block;
  min-width: 0;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 700;
  letter-spacing: .035em;
  color: #0076b9;
}

.eaa-ed-row-arrow {
  display: block;
  text-align: right;
  font-size: 24px;
  line-height: 1;
  color: #a9a9a9;
}


/* =========================================================
   06. BLOG
   ========================================================= */

.eaa-ed-blog-body {
  display: block;
  padding: 22px 24px 24px;
}


/* ----- BLOG 最新記事（上段） ----- */

.eaa-ed-blog-hero {
  display: grid;
  grid-template-columns: 48% minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
  min-width: 0;
  padding-bottom: 22px;
  border-bottom: 1px solid #d9d9d9;
}

.eaa-ed-blog-hero-media {
  display: block;
  min-height: 215px;
  overflow: hidden;
  border-radius: 4px;
  background: #f1f1f1;
}

.eaa-ed-blog-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 215px;
  object-fit: cover;
}

.eaa-ed-blog-hero-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.eaa-ed-blog-hero-title {
  display: block;
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 700;
  letter-spacing: .035em;
  color: #0076b9;

  /* タイトルは省略せず全文表示 */
  height: auto;
  max-height: none;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}

.eaa-ed-blog-lead {
  display: block;
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: #444;
}


/* ----- BLOG 下段カード ----- */

.eaa-ed-blog-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 18px;
}

.eaa-ed-blog-card {
  display: block;
  min-width: 0;
  background: #f6f6f6;
  border-radius: 4px;
  overflow: hidden;
}

.eaa-ed-blog-card-media {
  display: block;
  height: 200px;
  overflow: hidden;
  background: #eee;
}

.eaa-ed-blog-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eaa-ed-blog-card-copy {
  display: block;
  padding: 12px 14px 14px;
}

.eaa-ed-blog-card-title {
  display: block;
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 700;
  letter-spacing: .03em;
  color: #0076b9;

  /* タイトルは省略せず全文表示 */
  height: auto;
  max-height: none;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}


/* =========================================================
   07. NO IMAGE
   アイキャッチ未設定時の代替表示
   ========================================================= */

.eaa-ed-noimage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 125px;
  background: #eee;
  color: #999;
  font-size: 11px;
}


/* =========================================================
   08. TABLET
   768px ～ 980px
   NEWS / BLOG の横幅比率のみ少し調整
   ========================================================= */

@media (max-width: 980px) and (min-width: 768px) {

  .eaa-editorial-zone {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  }

  .eaa-ed-blog-hero {
    grid-template-columns: 42% minmax(0, 1fr);
  }
}


/* =========================================================
   09. SMARTPHONE
   767px以下
   ・NEWS / BLOG を縦並び
   ・BLOG下段は「画像左 / テキスト右」
   ・BLOGタイトルをPCより小さく
   ========================================================= */

@media (max-width: 767px) {

  /* ----- 全体 ----- */

  .eaa-editorial-zone {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .eaa-ed-head {
    padding: 24px 20px 15px;
  }

  .eaa-ed-news-body,
  .eaa-ed-blog-body {
    padding: 18px;
  }


  /* ----- NEWS ----- */

  .eaa-ed-news-hero {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "kicker date"
      "title title";
  }

  .eaa-ed-arrow {
    display: none;
  }

  .eaa-ed-news-row {
    display: block;
    padding: 14px 0;
  }

  .eaa-ed-row-date {
    display: block;
    margin-bottom: 6px;
  }

  .eaa-ed-row-title {
    display: block;
  }

  .eaa-ed-row-arrow {
    display: none;
  }


  /* ----- BLOG 最新記事 ----- */

  .eaa-ed-blog-hero {
    grid-template-columns: 1fr;
  }

  .eaa-ed-blog-hero-media,
  .eaa-ed-blog-hero-media img {
    min-height: 210px;
  }

  .eaa-ed-blog-hero-title {
    font-size: 18px;
    line-height: 1.65;
  }


  /* ----- BLOG 下段カード ----- */

  .eaa-ed-blog-cards {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .eaa-ed-blog-card {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid #ddd;
  }

  .eaa-ed-blog-card-media {
    height: 120px;
  }

  .eaa-ed-blog-card-copy {
    padding: 0;
  }

  .eaa-ed-blog-card-title {
    font-size: 15px;
    line-height: 1.6;
  }
}
