/* =========================================================
 * nengoro HOME
 * ======================================================= */
:root {
  --nengoro-green: #3B5B4C;
  --nengoro-green-soft: #8FA396;
  --nengoro-bg: #F8F9FA;
  --nengoro-card: #F0F3F1;
  --nengoro-text: #222222;
  --nengoro-muted: #666666;
  --nengoro-line: #E2E6E3;
}

/* ---------------------------------------------------------
 * HOMEだけ、既存のメイン＋サイドバーを使わない
 * main-before.php のカスタムTOPを全面表示する
 * ------------------------------------------------------ */
body.home:not(.paged) {
  background: var(--nengoro-bg);
  color: var(--nengoro-text);
}

body.home:not(.paged) #content-in {
  display: block !important;
}

body.home:not(.paged) #main,
body.home:not(.paged) #sidebar {
  display: none !important;
}

body.home:not(.paged) .nengoro-home {
  width: min(1120px, calc(100% - 88px));
  margin: 0 auto;
  padding: 0 0 80px;
  box-sizing: border-box;
}

/* ---------------------------------------------------------
 * ヘッダー
 * ロゴ → コピー → グロナビの余白を広めに保つ
 * ------------------------------------------------------ */
@media screen and (min-width: 835px) {
  body.home:not(.paged) .header-container-in {
    padding-top: 46px !important;
    padding-bottom: 0 !important;
  }

  body.home:not(.paged) .header-in {
    display: flex !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    flex-direction: column;
    align-items: center;
  }

  body.home:not(.paged) .logo-header,
  body.home:not(.paged) .logo {
    order: 1;
    margin: 0 !important;
    line-height: 1;
  }

  body.home:not(.paged) .logo-header img,
  body.home:not(.paged) .logo img,
  body.home:not(.paged) .nengoro-site-logo {
    display: block;
    width: auto !important;
    height: 112px !important;
    max-height: none !important;
    margin: 0 auto;
    object-fit: contain;
  }

  body.home:not(.paged) .tagline {
    order: 2;
    margin: 20px 0 0 !important;
    color: #333;
    font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: .9rem !important;
    line-height: 1.7;
    font-weight: 500;
    letter-spacing: .1em;
  }

  body.home:not(.paged) #navi,
  body.home:not(.paged) .navi {
    margin-top: 34px !important;
    margin-bottom: 0 !important;
    border: 0 !important;
    border-bottom: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.home:not(.paged) #navi .navi-in > ul,
  body.home:not(.paged) .navi-in > ul {
    min-height: 58px;
    align-items: flex-start;
  }

  body.home:not(.paged) #navi .navi-in,
  body.home:not(.paged) .navi-in {
    width: min(1120px, calc(100% - 88px));
    max-width: 1120px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }


  body.home:not(.paged) #navi .navi-in > ul > li > a,
  body.home:not(.paged) .navi-in > ul > li > a {
    min-height: 0 !important;
    padding-top: 15px !important;
    padding-bottom: 19px !important;
    font-size: .9rem;
    letter-spacing: .035em;
  }

  body.home:not(.paged) #header-container,
  body.home:not(.paged) .header-container,
  body.home:not(.paged) #header-container-in,
  body.home:not(.paged) .header-container-in,
  body.home:not(.paged) #navi,
  body.home:not(.paged) .navi {
    border-bottom: 0 !important;
    box-shadow: none !important;
  }

  body.home:not(.paged) #content {
    padding-top: 46px !important;
  }
}

/* ---------------------------------------------------------
 * 共通タイポグラフィ
 * ------------------------------------------------------ */
body.home:not(.paged) .nengoro-section-heading,
body.home:not(.paged) .nengoro-featured-title,
body.home:not(.paged) .nengoro-about-title {
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

body.home:not(.paged) .nengoro-section {
  margin: 0 0 76px;
}

body.home:not(.paged) .nengoro-section-heading-row {
  display: flex;
  margin: 0 0 28px;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

body.home:not(.paged) .nengoro-section-heading {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: var(--nengoro-text);
  font-size: clamp(1.3rem, 1.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .055em;
}

body.home:not(.paged) .nengoro-text-link {
  display: inline-flex;
  color: var(--nengoro-green);
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
  align-items: center;
  gap: 8px;
}

body.home:not(.paged) .nengoro-text-link span {
  display: inline-block;
  transition: transform .2s ease;
}

body.home:not(.paged) .nengoro-text-link:hover span {
  transform: translateX(4px);
}

/* ---------------------------------------------------------
 * グロナビ直下のサイトコピー
 * ------------------------------------------------------ */
body.home:not(.paged) .nengoro-home-copy {
  max-width: 900px;
  margin: 0 auto 72px;
  padding-top: 0;
  text-align: center;
}

body.home:not(.paged) .nengoro-home-copy p {
  margin: 0;
  color: #2c2c2c;
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 2;
  letter-spacing: .03em;
}

body.home:not(.paged) .nengoro-copy-pc-break {
  display: none;
}

@media screen and (min-width: 1025px) {
  body.home:not(.paged) .nengoro-copy-pc-break {
    display: block;
  }
}

/* ---------------------------------------------------------
 * 最新の記事
 * ------------------------------------------------------ */
body.home:not(.paged) .nengoro-featured-article {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: stretch;
  gap: 48px;
}

body.home:not(.paged) .nengoro-featured-image {
  position: relative;
  display: block;
  min-height: 300px;
  overflow: hidden;
  background: #ECEFED;
  text-decoration: none;
}

body.home:not(.paged) .nengoro-featured-image::after,
body.home:not(.paged) .nengoro-popular .card-thumb::after,
body.home:not(.paged) .nengoro-theme-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(59, 91, 76, .06);
  pointer-events: none;
}

body.home:not(.paged) .nengoro-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(.85) contrast(.98);
  transition: transform .35s ease;
}

body.home:not(.paged) .nengoro-featured-image:hover img {
  transform: scale(1.018);
}

body.home:not(.paged) .nengoro-featured-content {
  display: flex;
  padding: 4px 0 2px;
  flex-direction: column;
}

body.home:not(.paged) .nengoro-category-label,
body.home:not(.paged) .nengoro-recent-category {
  align-self: flex-start;
  color: var(--nengoro-green);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .035em;
  text-decoration: none;
}

body.home:not(.paged) .nengoro-featured-title {
  margin: 14px 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  font-size: clamp(1.38rem, 1.75vw, 1.72rem);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: .02em;
}

body.home:not(.paged) .nengoro-featured-title a {
  color: var(--nengoro-text);
  text-decoration: none;
}

body.home:not(.paged) .nengoro-featured-excerpt {
  margin: 0;
  color: #4A4A4A;
  font-size: .94rem;
  line-height: 1.9;
}

body.home:not(.paged) .nengoro-featured-meta {
  display: flex;
  margin-top: auto;
  padding-top: 24px;
  color: #7A7A7A;
  font-size: .78rem;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* ---------------------------------------------------------
 * 人気の記事
 * Cocoon popular_list をカード感の薄い3列×2段にする
 * ------------------------------------------------------ */
body.home:not(.paged) .nengoro-popular .popular-entry-cards.nengoro-popular-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 32px;
  margin: 0 !important;
}

body.home:not(.paged) .nengoro-popular .nengoro-popular-grid > a,
body.home:not(.paged) .nengoro-popular .nengoro-popular-grid .popular-entry-card-link {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit;
  text-decoration: none;
}

body.home:not(.paged) .nengoro-popular .nengoro-popular-grid .popular-entry-card-thumb,
body.home:not(.paged) .nengoro-popular .nengoro-popular-grid .card-thumb {
  position: relative;
  float: none !important;
  width: 100% !important;
  margin: 0 0 17px !important;
  overflow: hidden;
  border-radius: 2px;
  background: #ECEFED;
}

body.home:not(.paged) .nengoro-popular .nengoro-popular-grid .popular-entry-card-thumb img,
body.home:not(.paged) .nengoro-popular .nengoro-popular-grid .card-thumb img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(.82) contrast(.98);
  transition: transform .28s ease;
}

body.home:not(.paged) .nengoro-popular .nengoro-popular-grid > a:hover img,
body.home:not(.paged) .nengoro-popular .nengoro-popular-grid .popular-entry-card-link:hover img {
  transform: scale(1.03);
}

body.home:not(.paged) .nengoro-popular .nengoro-popular-grid .popular-entry-card-content,
body.home:not(.paged) .nengoro-popular .nengoro-popular-grid .card-content {
  margin: 0 !important;
  padding: 0 !important;
}

body.home:not(.paged) .nengoro-popular .nengoro-popular-grid .popular-entry-card-title,
body.home:not(.paged) .nengoro-popular .nengoro-popular-grid .card-title {
  display: -webkit-box !important;
  margin: 0 !important;
  overflow: hidden;
  color: var(--nengoro-text);
  font-size: .95rem !important;
  font-weight: 600 !important;
  line-height: 1.65 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.home:not(.paged) .nengoro-popular .nengoro-popular-grid .popular-entry-card-date,
body.home:not(.paged) .nengoro-popular .nengoro-popular-grid .popular-entry-card-pv,
body.home:not(.paged) .nengoro-popular .nengoro-popular-grid .widget-entry-card-date,
body.home:not(.paged) .nengoro-popular .nengoro-popular-grid .widget-entry-card-pv,
body.home:not(.paged) .nengoro-popular .nengoro-popular-grid .card-meta {
  display: none !important;
}

/* ---------------------------------------------------------
 * テーマから読む
 * 背景・枠を使わず、上線と余白でグリッドを作る
 * ------------------------------------------------------ */
body.home:not(.paged) .nengoro-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 28px;
}

body.home:not(.paged) .nengoro-theme-card {
  display: grid;
  grid-template-columns: 39% minmax(0, 1fr);
  min-height: 138px;
  padding: 12px 0 0;
  border-top: 1px solid var(--nengoro-green);
  color: inherit;
  text-decoration: none;
  gap: 18px;
}

body.home:not(.paged) .nengoro-theme-image-wrap {
  position: relative;
  display: block;
  min-height: 120px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #ECEFED;
}

body.home:not(.paged) .nengoro-theme-image,
body.home:not(.paged) .nengoro-theme-image-wrap > .nengoro-image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  filter: saturate(.76) contrast(.97);
  transition: transform .28s ease;
}

body.home:not(.paged) .nengoro-theme-card:hover .nengoro-theme-image {
  transform: scale(1.03);
}

body.home:not(.paged) .nengoro-theme-content {
  position: relative;
  display: flex;
  min-width: 0;
  padding: 8px 18px 28px 0;
  flex-direction: column;
}

body.home:not(.paged) .nengoro-theme-title {
  margin-bottom: 8px;
  color: var(--nengoro-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  transition: color .2s ease;
}

body.home:not(.paged) .nengoro-theme-description {
  color: var(--nengoro-muted);
  font-size: .82rem;
  line-height: 1.72;
}

body.home:not(.paged) .nengoro-theme-arrow {
  position: absolute;
  right: 0;
  bottom: 4px;
  color: var(--nengoro-green);
  font-size: 1.15rem;
  transition: transform .2s ease;
}

body.home:not(.paged) .nengoro-theme-card:hover .nengoro-theme-title {
  color: var(--nengoro-green);
}

body.home:not(.paged) .nengoro-theme-card:hover .nengoro-theme-arrow {
  transform: translateX(4px);
}

/* ---------------------------------------------------------
 * 新着記事
 * ------------------------------------------------------ */
body.home:not(.paged) .nengoro-recent {
  margin-bottom: 72px;
}

body.home:not(.paged) .nengoro-recent-list {
  border-top: 1px solid var(--nengoro-line);
}

body.home:not(.paged) .nengoro-recent-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  min-height: 116px;
  padding: 18px 0;
  border-bottom: 1px solid var(--nengoro-line);
  align-items: center;
  gap: 26px;
}

body.home:not(.paged) .nengoro-recent-thumb {
  display: block;
  height: 82px;
  overflow: hidden;
  background: #ECEFED;
}

body.home:not(.paged) .nengoro-recent-thumb img,
body.home:not(.paged) .nengoro-recent-thumb .nengoro-image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(.98);
}

body.home:not(.paged) .nengoro-recent-body {
  min-width: 0;
}

body.home:not(.paged) .nengoro-recent-title {
  margin: 6px 0 5px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
}

body.home:not(.paged) .nengoro-recent-title a {
  color: var(--nengoro-text);
  text-decoration: none;
}

body.home:not(.paged) .nengoro-recent-title a:hover {
  color: var(--nengoro-green);
}

body.home:not(.paged) .nengoro-recent-excerpt {
  margin: 0;
  overflow: hidden;
  color: var(--nengoro-muted);
  font-size: .79rem;
  line-height: 1.6;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.home:not(.paged) .nengoro-recent-date {
  color: #888;
  font-size: .75rem;
  white-space: nowrap;
}

/* ---------------------------------------------------------
 * 下部 About CTA
 * ------------------------------------------------------ */
body.home:not(.paged) .nengoro-about-cta {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 190px;
  padding: 32px 58px 30px;
  overflow: hidden;
  background: linear-gradient(105deg, #F2F4F3 0%, #F8F9FA 72%);
  align-items: center;
  gap: 38px;
}

body.home:not(.paged) .nengoro-about-cta::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -40px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143,163,150,.20) 0%, rgba(143,163,150,0) 68%);
  pointer-events: none;
}

body.home:not(.paged) .nengoro-about-character {
  position: relative;
  z-index: 1;
  align-self: end;
  text-align: center;
}

body.home:not(.paged) .nengoro-about-character img {
  display: block;
  width: 170px;
  max-width: 100%;
  margin: 0 auto -30px;
}

body.home:not(.paged) .nengoro-about-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

body.home:not(.paged) .nengoro-about-title {
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .04em;
}

body.home:not(.paged) .nengoro-about-content p {
  margin: 0 0 17px;
  color: #555;
  font-size: .88rem;
  line-height: 1.8;
}

body.home:not(.paged) .nengoro-about-button {
  display: inline-flex;
  min-width: 180px;
  padding: 10px 18px;
  background: var(--nengoro-green);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: background-color .2s ease;
}

body.home:not(.paged) .nengoro-about-button:hover {
  background: #2F493D;
  color: #fff;
}

/* ---------------------------------------------------------
 * 画像フォールバック
 * ------------------------------------------------------ */
body.home:not(.paged) .nengoro-image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: linear-gradient(135deg, #E9EEEB, #F7F8F7);
}

/* ---------------------------------------------------------
 * Tablet
 * ------------------------------------------------------ */
@media screen and (max-width: 1023px) {
  body.home:not(.paged) .nengoro-home {
    width: min(100% - 36px, 980px);
  }

  body.home:not(.paged) .nengoro-section {
    margin-bottom: 68px;
  }

  body.home:not(.paged) .nengoro-home-copy {
    margin-bottom: 72px;
  }

  body.home:not(.paged) .nengoro-featured-article {
    gap: 34px;
  }

  body.home:not(.paged) .nengoro-featured-image,
  body.home:not(.paged) .nengoro-featured-image img {
    min-height: 280px;
  }

  body.home:not(.paged) .nengoro-theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home:not(.paged) .nengoro-recent-item {
    grid-template-columns: 132px minmax(0, 1fr) auto;
    gap: 18px;
  }
}

/* ---------------------------------------------------------
 * Mobile
 * ------------------------------------------------------ */
@media screen and (max-width: 834px) {
  body.home:not(.paged) #content {
    padding-top: 38px !important;
  }

  body.home:not(.paged) .nengoro-home {
    width: min(100% - 28px, 720px);
    padding-bottom: 42px;
  }

  body.home:not(.paged) .nengoro-home-copy {
    margin-bottom: 56px;
    text-align: left;
  }

  body.home:not(.paged) .nengoro-home-copy p {
    font-size: .93rem;
    line-height: 1.9;
  }

  body.home:not(.paged) .nengoro-section {
    margin-bottom: 58px;
  }

  body.home:not(.paged) .nengoro-section-heading-row {
    margin-bottom: 20px;
  }

  body.home:not(.paged) .nengoro-featured-article {
    display: block;
  }

  body.home:not(.paged) .nengoro-featured-image,
  body.home:not(.paged) .nengoro-featured-image img {
    min-height: 0;
  }

  body.home:not(.paged) .nengoro-featured-content {
    padding-top: 24px;
  }

  body.home:not(.paged) .nengoro-featured-title {
    margin: 10px 0 12px !important;
    font-size: 1.36rem;
  }

  body.home:not(.paged) .nengoro-featured-excerpt {
    font-size: .9rem;
    line-height: 1.8;
  }

  body.home:not(.paged) .nengoro-popular .popular-entry-cards.nengoro-popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 18px;
  }

  body.home:not(.paged) .nengoro-theme-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.home:not(.paged) .nengoro-recent-item {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 0;
    padding: 16px 0;
    gap: 15px;
  }

  body.home:not(.paged) .nengoro-recent-thumb {
    height: 76px;
  }

  body.home:not(.paged) .nengoro-recent-date {
    display: none;
  }

  body.home:not(.paged) .nengoro-recent-excerpt {
    display: none;
  }

  body.home:not(.paged) .nengoro-about-cta {
    grid-template-columns: 116px minmax(0, 1fr);
    min-height: 160px;
    padding: 26px 24px 22px;
    gap: 22px;
  }

  body.home:not(.paged) .nengoro-about-character img {
    width: 116px;
    margin-bottom: -22px;
  }
}

@media screen and (max-width: 560px) {
  body.home:not(.paged) .nengoro-section-heading {
    font-size: 1.45rem;
  }

  body.home:not(.paged) .nengoro-popular .popular-entry-cards.nengoro-popular-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  body.home:not(.paged) .nengoro-theme-card {
    grid-template-columns: 38% minmax(0, 1fr);
    gap: 14px;
  }

  body.home:not(.paged) .nengoro-theme-image-wrap,
  body.home:not(.paged) .nengoro-theme-image,
  body.home:not(.paged) .nengoro-theme-image-wrap > .nengoro-image-placeholder {
    min-height: 105px;
  }

  body.home:not(.paged) .nengoro-recent-item {
    grid-template-columns: 98px minmax(0, 1fr);
  }

  body.home:not(.paged) .nengoro-recent-title {
    font-size: .9rem;
    line-height: 1.5;
  }

  body.home:not(.paged) .nengoro-about-cta {
    grid-template-columns: 1fr;
    padding: 22px 20px 24px;
    text-align: center;
  }

  body.home:not(.paged) .nengoro-about-character {
    order: 2;
  }

  body.home:not(.paged) .nengoro-about-character img {
    width: 96px;
    margin: 0 auto -24px;
  }

  body.home:not(.paged) .nengoro-about-content {
    order: 1;
  }

  body.home:not(.paged) .nengoro-about-button {
    min-width: 170px;
  }
}

/* =========================================================
 * v3: デザイン案の縦バランスへ微調整
 * ======================================================= */
@media screen and (min-width: 835px) {
  body.home:not(.paged) #navi .navi-in > ul > li,
  body.home:not(.paged) .navi-in > ul > li {
    border-bottom: 0 !important;
  }

  body.home:not(.paged) #navi .navi-in > ul > li > a,
  body.home:not(.paged) .navi-in > ul > li > a {
    padding-bottom: 22px !important;
  }

  body.home:not(.paged) #navi .navi-in > ul > li::after,
  body.home:not(.paged) .navi-in > ul > li::after {
    bottom: 8px;
    width: 46%;
    max-width: 72px;
  }
}

body.home:not(.paged) .nengoro-section {
  margin-bottom: 74px;
}

body.home:not(.paged) .nengoro-featured-article {
  grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr);
  gap: 62px;
}

body.home:not(.paged) .nengoro-featured-image,
body.home:not(.paged) .nengoro-featured-image img {
  min-height: 292px;
}

body.home:not(.paged) .nengoro-popular .popular-entry-cards.nengoro-popular-grid {
  gap: 30px 32px;
}

body.home:not(.paged) .nengoro-popular .nengoro-popular-grid .popular-entry-card-thumb img,
body.home:not(.paged) .nengoro-popular .nengoro-popular-grid .card-thumb img {
  aspect-ratio: 2.35 / 1;
}

body.home:not(.paged) .nengoro-popular .nengoro-popular-grid .popular-entry-card-thumb,
body.home:not(.paged) .nengoro-popular .nengoro-popular-grid .card-thumb {
  margin-bottom: 16px !important;
}

body.home:not(.paged) .nengoro-theme-grid {
  gap: 20px 30px;
}

body.home:not(.paged) .nengoro-theme-card {
  grid-template-columns: 36% minmax(0, 1fr);
  min-height: 116px;
  padding-top: 11px;
  gap: 17px;
}

body.home:not(.paged) .nengoro-theme-image-wrap {
  min-height: 100px;
}

body.home:not(.paged) .nengoro-theme-image,
body.home:not(.paged) .nengoro-theme-image-wrap > .nengoro-image-placeholder {
  min-height: 100px;
}

body.home:not(.paged) .nengoro-theme-content {
  padding-top: 5px;
  padding-bottom: 24px;
}

body.home:not(.paged) .nengoro-theme-title {
  margin-bottom: 6px;
}

body.home:not(.paged) .nengoro-theme-description {
  font-size: .8rem;
  line-height: 1.62;
}


/* v4: デザイン案に合わせたグロナビ下の余白 */
@media screen and (min-width: 835px) {
  body.home:not(.paged) .nengoro-home-copy {
    padding-top: 52px;
  }
}

@media screen and (max-width: 834px) {
  body.home:not(.paged) .nengoro-home-copy {
    padding-top: 30px;
    margin-bottom: 64px;
  }
}

/* =========================================================
 * v6: 最新記事の比率を最終デザイン案へ寄せる
 * ======================================================= */
@media screen and (min-width: 1024px) {
  body.home:not(.paged) .nengoro-featured {
    margin-bottom: 72px;
  }

  body.home:not(.paged) .nengoro-featured .nengoro-section-heading-row {
    margin-bottom: 24px;
  }

  body.home:not(.paged) .nengoro-featured-article {
    grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
    gap: 48px;
    align-items: stretch;
  }

  body.home:not(.paged) .nengoro-featured-image {
    min-height: 0;
    aspect-ratio: 2.02 / 1;
  }

  body.home:not(.paged) .nengoro-featured-image img {
    min-height: 0;
    height: 100%;
    aspect-ratio: auto;
  }

  body.home:not(.paged) .nengoro-featured-content {
    padding: 2px 0 0;
  }

  body.home:not(.paged) .nengoro-featured-title {
    margin: 12px 0 14px !important;
    font-size: clamp(1.32rem, 1.65vw, 1.65rem);
    line-height: 1.52;
  }

  body.home:not(.paged) .nengoro-featured-excerpt {
    font-size: .88rem;
    line-height: 1.82;
  }

  body.home:not(.paged) .nengoro-featured-meta {
    padding-top: 18px;
  }
}


/* =========================================================
 * v8: グロナビ1列固定 / テーマカード重なり修正 / 新着5件対応
 * ======================================================= */
@media screen and (min-width: 835px) {
  body.home:not(.paged) #navi .navi-in > ul,
  body.home:not(.paged) .navi-in > ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
  }

  body.home:not(.paged) #navi .navi-in > ul > li,
  body.home:not(.paged) .navi-in > ul > li {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
  }

  body.home:not(.paged) #navi .navi-in > ul > li > a,
  body.home:not(.paged) .navi-in > ul > li > a {
    width: 100% !important;
    min-width: 0 !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }
}

@media screen and (min-width: 835px) and (max-width: 1100px) {
  body.home:not(.paged) #navi .navi-in,
  body.home:not(.paged) .navi-in {
    width: calc(100% - 36px) !important;
  }

  body.home:not(.paged) #navi .navi-in > ul > li > a,
  body.home:not(.paged) .navi-in > ul > li > a {
    font-size: .82rem !important;
    letter-spacing: 0 !important;
  }
}

/* テーマカードは画像の高さを固定し、aspect-ratio由来の最小幅で
   テキスト列へはみ出さないようにする */
body.home:not(.paged) .nengoro-theme-card {
  grid-template-columns: 38% minmax(0, 1fr) !important;
  align-items: stretch;
  overflow: hidden;
}

body.home:not(.paged) .nengoro-theme-image-wrap {
  width: 100% !important;
  min-width: 0 !important;
  height: 104px !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
}

body.home:not(.paged) .nengoro-theme-image,
body.home:not(.paged) .nengoro-theme-image-wrap > .nengoro-image-placeholder {
  width: 100% !important;
  min-width: 0 !important;
  height: 104px !important;
  min-height: 0 !important;
  max-width: 100% !important;
  object-fit: cover !important;
}

body.home:not(.paged) .nengoro-theme-content {
  min-width: 0 !important;
  overflow: hidden;
}

body.home:not(.paged) .nengoro-theme-title,
body.home:not(.paged) .nengoro-theme-description {
  overflow-wrap: anywhere;
}

@media screen and (max-width: 834px) {
  body.home:not(.paged) .nengoro-theme-image-wrap,
  body.home:not(.paged) .nengoro-theme-image,
  body.home:not(.paged) .nengoro-theme-image-wrap > .nengoro-image-placeholder {
    height: 112px !important;
    min-height: 0 !important;
  }
}

@media screen and (max-width: 560px) {
  body.home:not(.paged) .nengoro-theme-card {
    grid-template-columns: 40% minmax(0, 1fr) !important;
  }

  body.home:not(.paged) .nengoro-theme-image-wrap,
  body.home:not(.paged) .nengoro-theme-image,
  body.home:not(.paged) .nengoro-theme-image-wrap > .nengoro-image-placeholder {
    height: 104px !important;
  }
}

/* =========================================================
 * v13: TOP下部 About / Contact 導線
 * ======================================================= */
body.home:not(.paged) .nengoro-about-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

body.home:not(.paged) .nengoro-about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--nengoro-green);
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  border-bottom: 1px solid rgba(59,91,76,.32);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}

body.home:not(.paged) .nengoro-about-link:hover {
  color: #2F493D;
  border-bottom-color: #2F493D;
}

@media screen and (max-width: 560px) {
  body.home:not(.paged) .nengoro-about-actions {
    justify-content: center;
  }
}


/* =========================================================
 * v18: TOP最終調整
 * 現行ヘッダーは変更せず、本文4セクションの見出し・余白・テーマカード・新着一覧を調整
 * ======================================================= */

/* セクションの区切りは背景色ではなく、余白と見出し装飾で明確にする */
@media screen and (min-width: 1024px) {
  body.home:not(.paged) .nengoro-section {
    margin-bottom: 94px;
  }

  body.home:not(.paged) .nengoro-featured {
    margin-bottom: 92px;
  }

  body.home:not(.paged) .nengoro-popular {
    margin-bottom: 96px;
  }

  body.home:not(.paged) .nengoro-themes {
    margin-bottom: 92px;
  }

  body.home:not(.paged) .nengoro-recent {
    margin-bottom: 82px;
  }
}

body.home:not(.paged) .nengoro-section-heading-row {
  margin-bottom: 30px;
  align-items: center;
}

body.home:not(.paged) .nengoro-section-heading-group {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
}

body.home:not(.paged) .nengoro-section-heading {
  position: relative;
  display: inline-flex;
  min-height: 34px;
  padding-left: 19px !important;
  font-size: clamp(1.22rem, 1.35vw, 1.4rem);
  line-height: 1.35;
  align-items: center;
  white-space: nowrap;
}

body.home:not(.paged) .nengoro-section-heading::before {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 0;
  width: 4px;
  background: var(--nengoro-green);
  border-radius: 1px;
}

body.home:not(.paged) .nengoro-section-description {
  margin: 0;
  color: #818781;
  font-size: .78rem;
  line-height: 1.7;
  letter-spacing: .01em;
}

body.home:not(.paged) .nengoro-list-link {
  margin-left: auto;
  flex: 0 0 auto;
}

/* 最新記事：現行構成を保ちつつ、見出し下と次セクションまでに呼吸を持たせる */
@media screen and (min-width: 1024px) {
  body.home:not(.paged) .nengoro-featured .nengoro-section-heading-row {
    margin-bottom: 28px;
  }

  body.home:not(.paged) .nengoro-featured-article {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    gap: 54px;
  }
}

/* 人気記事：右上の一覧導線は置かず、3列×2段をゆったり見せる */
body.home:not(.paged) .nengoro-popular .popular-entry-cards.nengoro-popular-grid {
  gap: 36px 32px;
}

body.home:not(.paged) .nengoro-popular .nengoro-popular-grid .popular-entry-card-thumb,
body.home:not(.paged) .nengoro-popular .nengoro-popular-grid .card-thumb {
  margin-bottom: 14px !important;
}

/* テーマから読む：最終指定の「画像左＋テキスト右」3列レイアウト */
body.home:not(.paged) .nengoro-theme-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 28px;
}

body.home:not(.paged) .nengoro-theme-card {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr) !important;
  min-height: 110px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: rgba(255,255,255,.62);
  gap: 0;
  transition: background-color .2s ease;
}

body.home:not(.paged) .nengoro-theme-card:hover {
  background: rgba(240,243,241,.88);
}

body.home:not(.paged) .nengoro-theme-image-wrap {
  width: 100% !important;
  height: 110px !important;
  min-height: 110px !important;
  aspect-ratio: auto !important;
}

body.home:not(.paged) .nengoro-theme-image,
body.home:not(.paged) .nengoro-theme-image-wrap > .nengoro-image-placeholder {
  width: 100% !important;
  height: 110px !important;
  min-height: 110px !important;
  object-fit: cover !important;
}

body.home:not(.paged) .nengoro-theme-content {
  min-width: 0;
  padding: 13px 15px 27px 17px;
  overflow: visible;
  justify-content: flex-start;
}

body.home:not(.paged) .nengoro-theme-title {
  margin-bottom: 7px;
  font-size: .94rem;
  line-height: 1.4;
}

body.home:not(.paged) .nengoro-theme-description {
  display: -webkit-box;
  overflow: hidden;
  color: #747874;
  font-size: .75rem;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.home:not(.paged) .nengoro-theme-arrow {
  right: 13px;
  bottom: 8px;
  font-size: 1rem;
}

/* 新着記事：5件をコンパクトな横一列情報として並べる */
body.home:not(.paged) .nengoro-recent-list {
  border-top: 1px solid var(--nengoro-line);
}

body.home:not(.paged) .nengoro-recent-item {
  display: grid;
  grid-template-columns: 116px 82px 118px minmax(0, 1fr) 24px;
  min-height: 68px;
  padding: 10px 0;
  border-bottom: 1px solid var(--nengoro-line);
  align-items: center;
  gap: 18px;
}

body.home:not(.paged) .nengoro-recent-thumb {
  width: 116px;
  height: 56px;
  border-radius: 1px;
}

body.home:not(.paged) .nengoro-recent-date {
  display: block;
  color: #8B8F8C;
  font-size: .74rem;
  white-space: nowrap;
}

body.home:not(.paged) .nengoro-recent-category {
  display: inline-flex;
  width: 100%;
  min-height: 27px;
  padding: 5px 9px;
  border-radius: 2px;
  background: #E8F0EC;
  color: var(--nengoro-green);
  font-size: .7rem;
  font-weight: 600;
  line-height: 1.35;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

body.home:not(.paged) .nengoro-recent-title {
  margin: 0 !important;
  font-size: .86rem;
  font-weight: 500;
  line-height: 1.5;
}

body.home:not(.paged) .nengoro-recent-arrow {
  display: inline-flex;
  width: 24px;
  height: 30px;
  color: var(--nengoro-green);
  font-size: 1rem;
  text-decoration: none;
  align-items: center;
  justify-content: flex-end;
  transition: transform .2s ease;
}

body.home:not(.paged) .nengoro-recent-item:hover .nengoro-recent-arrow {
  transform: translateX(3px);
}

/* Tablet */
@media screen and (max-width: 1023px) {
  body.home:not(.paged) .nengoro-section-heading-group {
    gap: 14px;
  }

  body.home:not(.paged) .nengoro-section-description {
    font-size: .74rem;
  }

  body.home:not(.paged) .nengoro-theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  body.home:not(.paged) .nengoro-recent-item {
    grid-template-columns: 104px 74px 108px minmax(0, 1fr) 20px;
    gap: 12px;
  }

  body.home:not(.paged) .nengoro-recent-thumb {
    width: 104px;
    height: 54px;
  }
}

/* SP */
@media screen and (max-width: 834px) {
  body.home:not(.paged) .nengoro-section {
    margin-bottom: 66px;
  }

  body.home:not(.paged) .nengoro-section-heading-row {
    margin-bottom: 22px;
    align-items: flex-start;
  }

  body.home:not(.paged) .nengoro-section-heading-group {
    display: block;
  }

  body.home:not(.paged) .nengoro-section-heading {
    min-height: 30px;
    padding-left: 15px !important;
    font-size: 1.24rem;
  }

  body.home:not(.paged) .nengoro-section-heading::before {
    width: 3px;
  }

  body.home:not(.paged) .nengoro-section-description {
    margin-top: 6px;
    padding-left: 15px;
    font-size: .72rem;
  }

  body.home:not(.paged) .nengoro-theme-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.home:not(.paged) .nengoro-theme-card {
    grid-template-columns: 38% minmax(0, 1fr) !important;
    min-height: 104px;
  }

  body.home:not(.paged) .nengoro-theme-image-wrap,
  body.home:not(.paged) .nengoro-theme-image,
  body.home:not(.paged) .nengoro-theme-image-wrap > .nengoro-image-placeholder {
    height: 104px !important;
    min-height: 104px !important;
  }

  body.home:not(.paged) .nengoro-recent-item {
    grid-template-columns: 92px minmax(0, 1fr) 22px;
    gap: 12px;
    min-height: 72px;
    padding: 11px 0;
  }

  body.home:not(.paged) .nengoro-recent-thumb {
    width: 92px;
    height: 58px;
    grid-row: 1 / span 2;
  }

  body.home:not(.paged) .nengoro-recent-date,
  body.home:not(.paged) .nengoro-recent-category {
    display: none;
  }

  body.home:not(.paged) .nengoro-recent-title {
    grid-column: 2;
    font-size: .88rem;
  }

  body.home:not(.paged) .nengoro-recent-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }
}
