.p-top-news__right {
  display: flex;
  flex-wrap: wrap;
 justify-content: center;
  gap: 24px;
  list-style: none;
  padding: 0;
 margin: 0 auto;
  width: 100%;

}
.p-top-news__right > li {
  width: calc(25% - 18px); /* 4列表示対応 */
}


/*タイトル*/
.p-top__title-main, .p-top-news__menu, .p-top-about__title, .c-title__main {
font-family: "dunbar-low", sans-serif !important;
font-weight: 600;
letter-spacing: normal;
/*justify-content: center;*/
}

/*サブタイトル*/
.p-top__title-sub  {
  display: flex;              /* justify-content を効かせるために必要 */
  /*justify-content: center;*/
  text-align: center;
  margin-top: 8px;
}

.p-top__title--mb {
    margin-bottom: 40px;
}



/*英語見出し*/
.p-top__title-main {
display: flex;
width: 100%;
font-family: "Kanit", sans-serif;
font-weight: 500;
letter-spacing: .1em;
white-space: nowrap;
margin: 0 auto;
}




/* TOPICS：4枚表示＆中央寄せに固定 */
.l-inner.p-top-news .p-top-news__right {
  width: 100% !important;              /* 50% を打ち消す */
  display: grid !important;            /* flex → grid に */
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  justify-items: stretch;
}

/* 既存の 33.333% 指定を無効化 */
.l-inner.p-top-news .p-top-news__right > li {
  width: auto !important;
}

/* レスポンシブ（任意） */
@media (max-width: 1024px) {
  .l-inner.p-top-news .p-top-news__right {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .l-inner.p-top-news .p-top-news__right {
    grid-template-columns: 1fr;
  }
}

/* 4列均等幅に固定 */
.l-inner.p-top-news .p-top-news__right {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* li の幅を自動計算させる → 均等幅 */
.l-inner.p-top-news .p-top-news__right > li {
  width: 100% !important; /* autoではなく100%に固定 */
}


/* TOPICS：カード幅を4等分で固定＆既存スタイルを無効化 */
.l-inner.p-top-news .p-top-news__right {
  width: 100% !important;
  display: grid !important;                 /* flex指定を上書き */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px !important;
  justify-content: initial !important;      /* space-between を無効化 */
  padding: 0 !important;
  margin: 0 auto !important;
}

/* 子要素は均等カラムに合わせる（既存の 33.333% 等を無効化） */
.l-inner.p-top-news .p-top-news__right > li {
  width: auto !important;
  margin: 0 !important;
  min-width: 0;                             /* タイトルの長文はみ出し防止 */
  box-sizing: border-box;
}

/* ついでにサムネの比率を揃えて高さズレも予防（お好みで） */
.l-inner.p-top-news .c-card-top__img {
  aspect-ratio: 16/9;                       /* 任意：4/3 等でもOK */
  overflow: hidden;
}
.l-inner.p-top-news .c-card-top__img img {  /* 画像をフィットさせる */
  width: 100%;
  height: 100%;
  object-fit: cover;
}





/*記事カードの調整*/
@media (min-width: 1200px) {
    .c-card-top__img {
        border-radius: 20px!important;
    }
}


/*ニュースボタン*/
.l-inner.p-top-news .p-top-news__right {
  margin-bottom: 40px !important;
}


.p-top-news-section {
    background-color: #f7f7f7; /* 背景色を指定 */
    padding: 80px 0; /* 上下の余白を追加してバランスを整える */
}

.first-view {
    height: calc(95svh - 5rem);
}


/*アバウト変更*/
/* 新しいアバウトエリアのコンテナ */
.p-top-about-new {
    background-color: #eeeff0; /* お好みの背景色に変更 */
    background-image: url(https://libero-en.jp/btob/wp-content/uploads/2024/11/about02.png);
    padding: 100px 0; /* 上下の余白を調整 */
    text-align: center; /* コンテンツを中央寄せにする */
    background-size: cover;          /* 画像を要素全体に合わせる */
    background-position: center;     /* 画像を中央に配置する */
}

/* 内部コンテンツの幅を固定 */
.p-top-about-new__inner {
    margin: 0 auto;
}

/* 新しいアバウトエリアの内部コンテンツの幅を固定 */
.p-top-about-new__inner {
  max-width: 1200px; /* 必要に応じて幅を調整 */
  margin: 0 auto;
  text-align: center; /* ボタンを中央に寄せる */
}

/* 横並び＆中央揃えに修正 */
.p-top-about__buttons {
  display: flex;
  flex-direction: row;       /* 横並びに変更 */
  justify-content: center;   /* 中央寄せ */
  align-items: center;
  gap: 20px;                 /* ボタン間のスペース */
  margin-top: 30px;
  flex-wrap: wrap;           /* 小さい画面でも崩れにくく */
}


.p-top-about__buttons .c-more {
  margin: unset !important;
}

.p-top {
    margin-top: 70px;
  }

  .p-top__title {
    margin-bottom: 40px;
}

@media (min-width: 1200px) {
    .l-inner {
        max-width: 80vw;
    }}


/*インデックス指定*/
.l-inner.p-top-news .c-card-top__img {
  position: relative;
  z-index: 20;
}

/*記事囲い枠なくす*/
.c-card-top__img {
  border: none;}







  /*//////////タブレット対応（2カラム）//////////*/
  @media screen and (min-width: 768px) and (max-width: 1024px) {
    .p-top-news__right,
    .l-inner.p-top-news .p-top-news__right {
      display: flex !important; /* ← ★これが絶対必要！！ */
      flex-wrap: wrap;
      gap: 24px;
      padding: 0 16px;
      margin: 0 auto;
    }

    .p-top-news__right > li,
    .l-inner.p-top-news .p-top-news__right > li {
      width: calc(50% - 12px) !important; /* ← ★これ */
      margin-bottom: 24px !important;     /* 念のため */
      box-sizing: border-box;
    }
  }


/*//////////SP対応（スマホ）//////////*/
@media screen and (max-width: 767px) {
  /* ニュース縦並び */
  .p-top-news__right,
  .l-inner.p-top-news .p-top-news__right {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }

  .p-top-news__right > li,
  .l-inner.p-top-news .p-top-news__right > li {
    width: 100% !important;
    margin-bottom: 24px !important;
  }

  /* 理由ブロック調整 */
  .p-top-reason__rate {
    display: none;
  }

  .p-top-reason__text {
    margin-bottom: 0;
  }
}

