/*
 * HOME & LIFE / コラム最新3件・本文抜粋なし
 * 見た目・数値・セレクタは元ファイルと同じです。
 * 元のCSSを置き換えて使用できます。
 */

/* SHOWA GROUP /homenew/ : new section only. Existing sections untouched. */

.showa-guide {
  padding: 126px 0 125px;
  background:#fff;
  color:#000;
}

.showa-guide__inner {
  width:1200px;
  max-width:100%;
  margin:0 auto;
}

/* Heading uses unchanged theme selectors .w_titleBox1/.w_title1/... */

.showa-guide__lead {
  margin:42px auto 0;
  text-align:center;
  font-size:16px;
  font-weight:400;
  letter-spacing:.1em;
  line-height:1.9;
}

.showa-guide__cards {
  width:1200px;
  max-width:100%;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:30px;
  list-style:none;
  margin:70px auto 0;
  padding:0;
}

.showa-guide__cards li {
  min-width:0;
}

.showa-guide__card {
  display:block;
  height:100%;
  color:#000;
  background:#fff;
  text-decoration:none;
  border:1px solid #ddd;
  transition:opacity .3s ease;
}

.showa-guide__card:hover {
  opacity:.73;
}

.showa-guide__visual {
  aspect-ratio: 1.52;
  width:100%;
  overflow:hidden;
  background:#eff1f2;
}

.showa-guide__visual img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .3s ease;
}

.showa-guide__card:hover img {
  transform:scale(1.04);
}

.showa-guide__content {
  padding:22px 22px 24px;
}

.showa-guide__eyebrow {
  display:block;
  font-family:'Montserrat',sans-serif;
  font-size:13px;
  font-weight:700;
  letter-spacing:0;
  line-height:1.5;
}

.showa-guide__content h3 {
  font-size:21px;
  font-weight:700;
  letter-spacing:0;
  line-height:1.5;
  margin:6px 0 14px;
}

.showa-guide__more {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid #ccc;
  padding-top:13px;
  margin-top:22px;
  font-size:14px;
  font-weight:500;
  letter-spacing:0;
}

.showa-guide__more i {
  width:22px;
  height:1px;
  background:#000;
  position:relative;
  display:block;
}

.showa-guide__more i::after {
  content:'';
  position:absolute;
  right:0;
  bottom:0;
  width:8px;
  height:1px;
  background:#000;
  transform:rotate(45deg);
  transform-origin:right center;
}

@media all and (max-width:680px) {

  .showa-guide {
    padding:55px 0 65px;
  }

  .showa-guide__inner {
    width:100%;
  }

  .showa-guide__lead {
    padding:0 25px;
    margin-top:29px;
    font-size:13px;
    line-height:1.8;
  }

  .showa-guide__lead br {
    display:none;
  }

  .showa-guide__cards {
    width:100%;
    padding:0 25px;
    margin-top:46px;
    grid-template-columns:1fr;
    gap:20px;
  }

  .showa-guide__content {
    padding:19px 20px 20px;
  }

  .showa-guide__eyebrow {
    font-size:12px;
  }

  .showa-guide__content h3 {
    font-size:18px;
  }

  .showa-guide__more {
    font-size:13px;
    margin-top:17px;
  }
}

/* 最新記事が取得できない場合とアイキャッチ未設定時 */
.showa-guide__placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #335167;
}

.showa-guide__fallback {
  text-align: center;
  margin: 70px auto 0;
}

.showa-guide__fallback a {
  text-decoration: underline;
}


/* コラム一覧へ：コンパクトな誘導ボタン */
.showa-guide__column-banner {
  display: flex;
  width: fit-content;
  min-width: 340px;
  max-width: calc(100% - 50px);
  min-height: 58px;
  margin: 28px auto 0;
  padding: 12px 52px 12px 22px;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #111;
  border: 1px solid #111;
  border-radius: 4px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  transition: background-color .3s ease, color .3s ease;
}

.showa-guide__column-banner__en {
  display: block;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
}

.showa-guide__column-banner__ja {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.4;
}

.showa-guide__column-banner__arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 18px;
  height: 1px;
  background: currentColor;
  transform: translateY(-50%);
}

.showa-guide__column-banner__arrow::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 7px;
  height: 1px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: right center;
}

@media (hover: hover) {
  .showa-guide__column-banner:hover {
    background: #fff;
    color: #111;
  }
}

.showa-guide__column-banner:focus-visible {
  outline: 3px solid #335167;
  outline-offset: 3px;
}

@media all and (max-width: 680px) {
  .showa-guide__column-banner {
    min-width: 280px;
    min-height: 54px;
    margin-top: 24px;
    padding: 10px 40px 10px 18px;
  }

  .showa-guide__column-banner__en { font-size: 9px; }
  .showa-guide__column-banner__ja { font-size: 14px; }
  .showa-guide__column-banner__arrow { right: 14px; width: 16px; }
}

/* ============================================
   最新記事カード：ホバー時の動き
   ============================================ */
@media (hover: hover) and (pointer: fine) {
  .showa-guide__card {
    cursor: pointer;
    transition: border-color .3s ease, box-shadow .3s ease;
  }

  .showa-guide__card:hover {
    opacity: 1;
    border-color: #335167;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .11);
  }

  .showa-guide__card:hover .showa-guide__visual img {
    transform: scale(1.045);
  }

  .showa-guide__card:hover .showa-guide__more {
    color: #335167;
  }

  .showa-guide__card:hover .showa-guide__more i {
    transform: translateX(5px);
  }
}

.showa-guide__more i {
  transition: transform .3s ease;
}

.showa-guide__card:focus-visible {
  outline: 3px solid #335167;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .showa-guide__card,
  .showa-guide__visual img,
  .showa-guide__more i {
    transition: none !important;
  }

  .showa-guide__card:hover .showa-guide__visual img,
  .showa-guide__card:hover .showa-guide__more i {
    transform: none;
  }
}

/* タイトルの長さにかかわらず「詳しく見る」をカード下部に揃える */
.showa-guide__card {
  display: flex;
  flex-direction: column;
}

.showa-guide__content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.showa-guide__more {
  margin-top: auto;
}

/* ------------------------------------------------------------
   HOME & LIFE: スマートフォンでは最新記事1件のみ表示
   PC（681px以上）は従来どおり最新3件を表示
   ------------------------------------------------------------ */
@media all and (max-width: 680px) {
  .showa-guide__cards > li:nth-child(n + 2) {
    display: none;
  }
}
