@charset "utf-8";

:root {
  --ink: #171717;
  --muted: #666;
  --line: #eee;
  --indigoblue: #1a237e;
  --chip: #f6f6f6;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .06)
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
  padding-left: 0;
    padding-right: 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2vw, 16px)
}

.row {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 16px);
  flex-wrap: wrap
}

.muted {
  color: var(--muted)
}


/*******************************************************
front-page.php #hero
*******************************************************/
.hero {
  position: relative;
  background: #000;
  color: #fff;
  display: flex;
  height: clamp(450px, 70vh, 600px);
  min-height: 450px;
  padding: 48px 0 !important;
  overflow: hidden;
  box-sizing: border-box;
  align-items: center;
  justify-content: flex-start;
}

.hero .hero-slider {
  position: absolute;
  inset: 0;
  overflow: hidden
}

.hero .hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}

.hero .hero-slider .slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .72;
  object-position: center;

}

.hero .hero-slider .slide.is-active {
  opacity: 1
}

.slide--products__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fff 0%, #f5f9ff 60%, #eef7f1 100%);
}

.hero--products-active .hero__center {
  color: var(--cp-color, #282f88);
}

.hero__center {
  transition: color .8s ease;
}

.hero__pagination {
  position: absolute;
  inset: auto 0 24px 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3
}

.hero__dot {
  width: 8px;
  height: 8px;
  /* border-radius: 50%; */
  background: rgba(255, 255, 255, .5);
  border: none;
}

.hero__dot.is-active {
  background: #fff
}

.hero__center {
  position: relative;
  z-index: 2;
  /* display: grid; */
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  /* margin: 0 0 0 4%; */
  /* max-width: 700px; */
  justify-content: start;
  /* text-align: right;*/
}

.hero__center {
  font-size: clamp(12px, 2vw, 18px);
}

.hero__center h2 {
  letter-spacing: 0.15em;
  line-height: 2em;
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 700;
}

.hero__center p {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 400;
  /* text-align: right !important; */
}

@media screen and (min-width: 1024px) {
  .hero__center > * {
    max-width: 50%;
  }
}

.slide--products__inner {
  position: absolute;
  z-index: 2;
  right: 2%;
  bottom: 2%;
  width: min(29vw, 720px);
  height: 82%;
  pointer-events: none;
}

.hero-product {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}





.hero__center .hero__lead {
  margin: 20px 0 0;
  line-height: 1.9;
  word-break: normal !important;
}

.side-menu {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  color: #fff;
  z-index: 2
}

.side-menu ul {
  display: grid;
  gap: 8px
}

.side-menu a {
  display: inline-block;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: .45rem .7rem;
  border-radius: 999px;
  font-size: 13px
}

@media (min-width:1024px) {
  .side-menu {
    display: block
  }

}


@media screen and (max-width:1023.98px) {
  .hero {
    display: block;
    height: auto;
    min-height: 0;
    padding: 44px 0 calc(clamp(240px, 42vw, 360px) + 44px) !important;
  }

  .hero__center {
    width: 92%;
    max-width: none;
    margin: 0 auto;
  }

  .slide--products__inner {
    position: absolute;
    right: 50%;
    bottom: 20px;
    transform: translateX(50%);
    width: 92%;
    max-width: 620px;
    height: clamp(240px, 42vw, 360px);
    margin: 0;
  }


}

@media screen and (max-width:767.98px) {
  .hero__center h2 {
    font-size: clamp(20px, 5.3vw, 30px);
    letter-spacing: .08em;
    line-height: 1.8;
  }

  .hero__center .hero__lead {
    font-size: 14px;
    margin-top: 14px;
  }




}

/*-----------元のやつ----------------*/
.top-company__box {
  display: grid;
  gap: 70px;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.top-company__box .inner-right {
  width: 100%;
  aspect-ratio: 1.5/1;
}

.top-company__box .inner-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-company__box .inner-left p {
  line-height: 1.8em;
}


@media screen and (max-width:768px) {
  .top-company__box {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 16px;
  }
}



/* ==================================================
  front-page.php  アルファ化研の強み
================================================== */

#service-package.top-strengths {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 8vw, 120px) 0;
  /* background-color: #f7fbff;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .28) 0%, rgba(247, 251, 255, .72) 52%, rgba(247, 251, 255, .96) 100%),
    url("../images/top-strengths-bg.png"); */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

.top-strengths__inner {
  position: relative;
  z-index: 1;
}

.top-strengths__head {
  max-width: 1120px;
  margin: 0 auto clamp(42px, 5vw, 64px);
  text-align: center;
}

.top-strengths__heading-row {
  display: grid;
  grid-template-columns: clamp(64px, 13vw, 150px) minmax(0, 1fr) clamp(64px, 13vw, 150px);
  align-items: center;
  gap: clamp(12px, 3vw, 36px);
  margin-bottom: 24px;
}

.top-strengths__heading-row .top-strengths__title {
  margin: 0;
  text-align: center;
}

.top-strengths__heading-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  clip-path: circle(50%);
}

@media screen and (max-width: 767.98px) {
  .top-strengths__heading-row {
    grid-template-columns: clamp(48px, 13vw, 80px) minmax(0, 1fr) clamp(48px, 13vw, 80px);
    gap: 10px;
  }

  .top-strengths__heading-row .top-strengths__title {
    font-size: clamp(20px, 4.2vw, 30px);
    line-height: 1.5;
  }
}

.top-strengths__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 18px;
  color: #245a91;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .36em;
}

.top-strengths__eyebrow::before,
.top-strengths__eyebrow::after {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: .65;
}

.top-strengths__title {
  margin: 0 0 22px;
  color: var(--cp-color);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: .04em;
}

.top-strengths__lead {
  margin: 0; 
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.95;
  letter-spacing: .035em;
}

.top-strengths__lead strong {
  color: var(--cp-color);
  font-weight: 700;
}

.top-strengths__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.strength-card {
  position: relative;
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    min-height: 168px;
    padding: 26px 26px 26px 22px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(218, 228, 239, .8);
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(18, 61, 100, .08);
    backdrop-filter: blur(5px);
}

.strength-card__number {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* padding-right: 20px; */
  border-right: 1px solid #dce5ee;
}

.strength-card__number span {
  display: block;
    font-size: clamp(52px, 5vw, 70px);
    line-height: .9;
    font-weight: 800;
    letter-spacing: -.055em;
    background: linear-gradient(180deg, #76bd55 0%, #0074b7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    /* line-height: 1; */
    padding: 0 0.25em;
}

.strength-card__number small {
  margin-top: 11px;
  color: #4a80a6;
  font-size: 9px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .28em;
}

.strength-card__content h3 {
  margin: 0 0 10px;
  color: var(--cp-color);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: .02em;
}

.strength-card__content p {
  margin: 0;
  color: #3f5872;
  font-size: 14px;
  line-height: 1.85;
}

.strength-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f3f8fd, #e9f3f9);
  color: #1b5c98;
}

.strength-card__icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.strength-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 210px;
  margin-top: 16px;
  padding: 11px 24px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(90deg, #0877ba 0%, #61b76a 100%);
  box-shadow: 0 8px 18px rgba(0, 105, 176, .16);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.strength-card__button:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 105, 176, .22);
  opacity: .92;
}

.top-strengths__foot {
  position: relative;
  max-width: 830px;
  margin: 34px auto 0;
  padding: 0 120px;
  color: #294f78;
  text-align: center;
  font-size: 14px;
  line-height: 1.9;
}

.top-strengths__foot::before,
.top-strengths__foot::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 92px;
  height: 1px;
  background: #8ba8c2;
}

.top-strengths__foot::before { left: 0; }
.top-strengths__foot::after { right: 0; }

@media screen and (max-width: 1023.98px) {
  .top-strengths__grid {
    grid-template-columns: 1fr;
  }

  .strength-card {
    min-height: 0;
  }
}

@media screen and (max-width: 767.98px) {
  #service-package.top-strengths {
    padding: 64px 0;
    background-size: auto 420px;
    background-position: center top;
  }

  .top-strengths__head {
    margin-bottom: 36px;
    text-align: left;
  }

  .top-strengths__eyebrow {
    gap: 12px;
    letter-spacing: .24em;
  }

  .top-strengths__eyebrow::before,
  .top-strengths__eyebrow::after {
    width: 28px;
  }

  .top-strengths__title {
    margin-bottom: 18px;
    font-size: 30px;
  }

  .top-strengths__lead {
    font-size: 14px;
    line-height: 1.85;
  }

  .top-strengths__lead br {
    display: none;
  }

  .top-strengths__grid {
    gap: 14px;
  }

  .strength-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    padding: 20px 18px;
    border-radius: 10px;
  }

  .strength-card__number {
    padding-right: 14px;
  }

  .strength-card__number span {
    font-size: 46px;
  }

  .strength-card__number small {
    margin-top: 8px;
    font-size: 7px;
    letter-spacing: .18em;
  }

  .strength-card__content h3 {
    margin-bottom: 8px;
    font-size: 17px;
  }

  .strength-card__content p {
    font-size: 13px;
    line-height: 1.75;
  }

  .strength-card__icon {
    display: none;
  }

  .strength-card__button {
    min-width: 0;
    width: 100%;
    max-width: 240px;
    margin-top: 14px;
    padding: 10px 18px;
  }

  .top-strengths__foot {
    margin-top: 28px;
    padding: 0;
    text-align: left;
    font-size: 13px;
  }

  .top-strengths__foot::before,
  .top-strengths__foot::after {
    display: none;
  }

  .top-strengths__foot .pc-only {
    display: none;
  }
}

/*******************************************************
front-page.php #about
*******************************************************/
.about {
  position: relative;
  overflow: hidden;

}

.about .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .15;
}

.about .veil {
  position: absolute;
  inset: auto 0 0 0;
  top: 18%;
  height: 56%;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(2px)
}

.about__inner {
  position: relative;
  z-index: 2
}

.about__h {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.4;
  color: var(--indigoblue);
  /* letter-spacing: 0.1em; */
}

.about__p {
  /* max-width: 80ch; */
  color: #333;
  letter-spacing: 0.05em;
  /* margin-left: 20ch; */
  line-height: 2em;
  align-items: center;
  /* max-width: 960px; */
  margin: 0 auto;
  /* padding: 0 20px; */
}

.about__side {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: .2em;
  color: #333;
  font-weight: 700
}

.about__layout {
  /* display:grid;
     grid-template-columns:auto 1fr;
     gap:26px; */

}

@media (max-width:900px) {
  .about__layout {
    display: grid;
    gap: 0;
  }

  .about__side {
    writing-mode: horizontal-tb;
    transform: none;
    order: -1
  }

  .about__p {
    max-width: 100%;
    margin-left: 0;
    padding: 0;
    box-sizing: border-box;
  }
}


/* =============================================
 front-page.php   Service 
 ============================================= */
 #top-service {
    /* background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .28) 0%, rgba(247, 251, 255, .72) 52%, rgba(247, 251, 255, .96) 100%),
    url("../images/top-products-bg.png"); */
    background: linear-gradient(135deg, rgba(147, 198, 76, .03) 0%, rgba(0, 104, 182, .03) 52%, rgba(40, 47, 136, .03) 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
 }

.top-service__box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.top-title.top-service__photo_left {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.top-service__inner a {
  position: relative;
  width: 100%;
  display: grid;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0px;
  /* background: linear-gradient(90deg, rgba(147, 198, 76, .7), rgba(0, 104, 182, .7)); */
  background-color: rgb(243, 243, 243);
  aspect-ratio: 1 / 1.2;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, .15);
  grid-template-rows: 1fr 50px;
  grid-template-columns: 1fr;
}

.top-service__inner img {
  width: 60%;
  aspect-ratio: 1 / 1;
  position: relative;
  border-radius: 99999px;
  object-fit: cover;
  margin: 0 auto;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.top-service__inner a p.obi {
  background-color: var(--cp-color);
  padding: 10px 5px;
  text-align: center !important;
  color: #fff;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  margin-bottom: 0;
  line-height: 1.5em;
}

.top-service__tagbox {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 10px;
  min-width: 0;
}

.top-service__tagbox span {
  display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    min-width: 0;
    padding: 10px 12px;
    text-align: center;
    line-height: 1.6;
    overflow-wrap: anywhere;
    color: var(--cp-lightblue);
    background-color: #fff;
    border: 1px solid var(--cp-lightblue);
}
/*hoverした時*/
.top-service__inner a:hover {
  box-shadow: 5px 5px 10px rgba(0, 0, 0, .45);
}

.top-service__inner a:hover p.obi {
  background: linear-gradient(90deg, rgba(147, 198, 76, .99), rgba(0, 104, 182, .99));
}

.top-service__inner a:hover img {
  opacity: 0.5;
  transform: scale(1.1);
  /* 少し拡大 */
}

/*　カテゴリーごとの画像なしver　*/
.top-service__photo {
    display: grid;
    gap: 40px;
    grid-template-columns: minmax(0, 1fr) 350px;
}

.top-service__photo_right {
    display: grid;
    gap: 24px;
    align-content: center;
    width: 100%;
    max-width: 350px;
    margin-inline: auto;
}

.top-service__photo_right img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media screen and (max-width: 1024px) {
  .top-service__photo {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .top-service__photo_right {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(12px, 3vw, 24px);
    max-width: 700px;
  }
}

#top-service a.c-btn {
    margin-top: 30px;
    display: block;
    border: 1px solid var(--cp-color);
    padding: 15px;
    color: var(--cp-color);
    text-decoration: none;
    text-align: center;
    max-width: 250px;
    margin: 30px auto;
}

/* 画像無しverの時のみセンタリング無し */
#top-service .top-service__photo a.c-btn {
  margin: 30px 0;
}

#top-service a.c-btn:hover {
  color: #fff;
  border-color: #fff;
}

@media screen and (min-width:768px) and (max-width:1023.98px) {
  .top-service__box {
    grid-template-columns: repeat(2, 1fr);
  }

  .top-service__inner a {
    aspect-ratio: 1/1.0;
  }
}

@media screen and (min-width:426px) and (max-width:767.98px) {
  .top-service__box {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width:425px) {
  .top-service__box {
    grid-template-columns: 1fr;
  }

  .top-service__inner a {
    grid-template-rows: 1fr 40px;
    aspect-ratio: 1/1.05;
  }

  .top-service__inner a p {
    font-size: 14px;
  }
}

@media screen and (max-width:768px) {
  .top-service__photo {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
}


/* =============================================
  front-page.php company/recruit
============================================= */

.top-features__inner {
  width: var(--container, min(1100px, calc(100% - 40px)));
  margin-inline: auto;
  display: grid;
  gap: 26px;
}

.featureBlock {
  padding: 0 !important;
}

.top-features {
    padding-top: 0 !important;
}

/* containerの幅制限を外す */
.top-features__inner {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: grid;
  gap: 40px;
}

/* ---------- 共通ブロック ---------- */
.featureBlock {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 320px;
}

/* 画像は端いっぱい */
.featureBlock__media {
  position: relative;
  overflow: hidden;
  z-index: 1;
  /* aspect-ratio: 16/9; */
}

.featureBlock__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

/* テキスト側 */
.featureBlock__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 8%;
  color: #fff;
  /* background: rgb(228, 230, 253); */
  background: var(--arch-bg);
  position: relative;
  z-index: 3;
}

.featureBlock a.c-btn {
  border: 1px solid #fff;
  padding: 10px;
  display: block;
  text-decoration: none;
  text-align: center;
  color: #fff;
  max-width: 15em;
}

/* ---------- 上段：会社概要
   左テキスト / 右画像
--------------------------- */
.featureBlock--company {
  grid-template-columns: 2fr 2fr;
}

.featureBlock--company .featureBlock__body {
  order: 1;
}

.featureBlock--company .featureBlock__media {
  order: 2;
}

/* ---------- 下段：採用情報
   左画像 / 右テキスト
--------------------------- */
.featureBlock--recruit {
  grid-template-columns: 2fr 2fr;
}

.featureBlock--recruit .featureBlock__media {
  order: 1;
}

.featureBlock--recruit .featureBlock__body {
  order: 2;
}


/* =========================
   アーチ境界（手描き風）
========================= */

.featureBlock {
  --arch-size: 320px;
  --arch-x: 0.90;
  --arch-bg: linear-gradient(rgb(147, 198, 76) 0%,
      rgb(0, 104, 182) 100%);
}

/* 画像側にアーチカット */
.featureBlock__media::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: calc(var(--arch-size) * var(--arch-x));
  /* 横だけ短く */
  height: var(--arch-size);
  /* background:rgb(228, 230, 253); */
  background: var(--arch-bg);
  border-radius: 140px;
  z-index: 5;
  pointer-events: none;
}

/* 上段（会社概要）→ 右が画像 → 左側に食い込ませる */
.featureBlock--company .featureBlock__media::after {
  left: calc(var(--arch-size) * -0.50);
}

/* 下段（採用情報）→ 左が画像 → 右側に食い込ませる */
.featureBlock--recruit .featureBlock__media::after {
  right: calc(var(--arch-size) * -0.50);
}


/* =========================
   SP
========================= */

@media (max-width:767.98px) {

  .top-features__inner {
    gap: 0;
  }

  .featureBlock {
    grid-template-columns: 1fr;
    min-height: auto;
    height: 100%;
  }

  .featureBlock__media {
    aspect-ratio: 2 / 1;
  }

  .featureBlock__body {
    padding: 40px 20px;
  }

  /* SPは下側アーチ */
  .featureBlock__media::after {
    display: none;
  }

  .featureBlock--company .featureBlock__body {
    grid-area: company-body;
  }

  .featureBlock--company .featureBlock__media {
    grid-area: company-media;
  }

  .featureBlock--company {
    grid-template-areas: "company-media"
      " company-body";
  }
}

/* ==================================================
  front-page.php  ふるさと納税
================================================== */

.top-furusato {
  padding: 0!important;
}

.top-furusato a {
  display: block;
  margin: 0 auto;
  width:100%;
}

.top-furusato a img {
  width: 100%;
}

.top-furusato a:hover {
  opacity: 0.5;
}

/* ==================================================
  front-page.php  TOP NEWS
================================================== */

.top-news {
  padding: 80px 0;
  background: #fff;
}

.top-news__inner {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---- ヘッダー ---- */
.top-news__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.top-news__title {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
}

.top-news__more {
  font-size: 14px;
  text-decoration: none;
  color: #111;
  font-weight: 600;
  position: relative;
}

.top-news__more::after {
  content: "›";
  margin-left: 6px;
}

/* ---- リスト ---- */

.top-news__list {
  border-top: 1px solid #e5e7eb;
}

.newsRow {
  display: grid;
  grid-template-columns: 120px 110px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #e5e7eb;
  transition: background .2s ease;
}

.newsRow:hover {
  background: rgba(0, 0, 0, .02);
}

/* 日付 */
.newsRow__date {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

/* ラベル */
.newsRow__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  background: #2b2f7f;
  color: #fff;
  white-space: nowrap;
}

/* タイトル */
.newsRow__link {
  text-decoration: none;
  color: #111;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  transition: color .2s ease;
}

.newsRow__link:hover {
  color: var(--cp-green);
}

/* 空メッセージ */
.top-news__empty {
  padding: 24px 0;
  color: #666;
  font-size: 14px;
}


.top-news__more {
  display: block;
  border: 1px solid #333;
  padding: 10px;
  color: #333;
  font-size: 20px;
  margin: 50px auto;
  width: 200px;
  text-align: center;
  font-weight: normal;
}

/* =========================
   SP
========================= */

@media (max-width: 768px) {

  .newsRow time {
    grid-area: time;
  }

  .newsRow span {
    grid-area: cat-tag;
  }

  .newsRow a {
    grid-area: link;
  }

  .top-news {
    padding: 60px 0;
  }

  .newsRow {
    grid-template-columns: 80px 1fr;
    grid-template-areas: "time cat-tag" "link link";
    gap: 8px;
    padding: 16px 0;
  }

  .newsRow__date {
    order: 1;
  }

  .newsRow__tag {
    order: 2;
    width: fit-content;
  }

  .newsRow__link {
    order: 3;
    font-size: 14px;
  }

  .top-news__head {
    margin-bottom: 20px;
  }

  .top-news__title {
    font-size: 18px;
  }

}
