/* --- 共通・PC用スタイル --- */
    .c-section {
        margin-bottom: 60px;
    }

.tax-link-container {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 60px;
}

.tax-link-container li {
    flex: 1;
    /* PCでは横の区切り線 */
    border-left: 1px solid #eee;
}

.tax-link-container li:last-child {
    border-right: 1px solid #eee;
}

.tax-link {
    color: #333;
    display: block;
    font-size: 1.6rem;
    font-weight: 500;
    padding: 40px 20px; /* 上下左右に余白 */
    padding-bottom: 60px; /* 矢印用の余白 */
    position: relative;
    text-align: center;
    text-decoration: none;
}

.tax-link:hover {
    text-decoration: underline;
}

/* 矢印（擬似要素） */
.tax-link::after {
    background-image: url(/assets/images/icon_link_arrow_down_blue.svg);
    background-repeat: no-repeat;
    background-size: contain;
    bottom: 20px; /* 下からの位置 */
    content: "";
    height: 22px;
    left: 0;
    margin: 0 auto;
    position: absolute;
    right: 0;
    width: 22px;
}

.tax-link__text {
    display: block;
    margin-bottom: 20px;
}

.tax-link__image img {
    max-width: 100%;
    height: auto;
}

/* --- 共通・PC用スタイル --- */
.c-nav-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto 60px;
    padding: 0;
    list-style: none;
    max-width: 1200px; /* サイト幅に合わせて調整してください */
}

.c-nav-columns__item {
    box-sizing: border-box;
    /* 基本は右側にボーダー */
    border-right: 1px solid #eee;
    margin-bottom: 20px;
}

.c-nav-link {
    color: #333;
    display: block;
    font-size: 1.6rem;
    font-weight: 500;
    height: 100%;
    padding-bottom: 40px;
    position: relative;
    text-align: center;
    text-decoration: none;
    width: 100%;
}

/* ホバー時にテキストのみに下線を引く */
.c-nav-link:hover {
    text-decoration: underline;
}

/* 矢印アイコンが下線に含まれないように調整（必要に応じて） */
.c-nav-link:hover::after {
    text-decoration: none;
    display: inline-block; /* 念のため */
}

.c-nav-link::after {
    background-image: url(/assets/images/icon_link_arrow_down_blue.svg);
    background-repeat: no-repeat;
    bottom: 0;
    content: "";
    height: 22px;
    left: 0;
    margin: 0 auto;
    position: absolute;
    right: 0;
    width: 22px;
}

/* テーブル基本スタイル */
.c-table {
    margin-bottom: 20px;
    text-align: center;
}

.c-table table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #dcdcdc;
  table-layout: fixed; /* 列幅を均等にする場合 */
}

.c-table th {
  background-color: #8fb3e3; /* 画像に合わせた青色 */
  color: #ffffff;
  font-weight: normal;
  padding: 15px;
  border: 1px solid #dcdcdc;
  text-align: center;
}

.c-table td {
  padding: 15px 10px;
  border: 1px solid #dcdcdc;
  background-color: #fff;
  vertical-align: middle;
  font-size: 14px;
  line-height: 1.5;
}

.c-link_single{
  font-size: 14px;
}

/* 2カラム用テーブル基本スタイル */
.c-table-col2 table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #dcdcdc;
  table-layout: fixed; /* 2列を均等幅にする */
  margin-bottom: 20px;
}

.c-table-col2 th {
  background-color: #8bbaeb;
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: bold;
  padding: 15px;
  border: 1px solid #dcdcdc;
  text-align: center;
}

.c-table-col2 td {
  padding: 15px 10px;
  border: 1px solid #dcdcdc;
  background-color: #fff;
  vertical-align: middle;
  font-size: 14px;
  line-height: 1.5;
  text-align: center; /* 中央寄せが不要な場合は削除してください */
}

.c-text--link-area{
  margin-bottom: 10px;
}

.p-card-grid {
  display: grid;
  /* PC: 3カラム。高さは一番高いものに自動で揃う */
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.p-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #DCDCDC;
  background-color: #fff;
}

.p-card__img {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.p-card__img img {
  max-width: 100%;
  height: auto;
}

.p-card__title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 22px; /* PCサイズ */
  letter-spacing: 0;
  margin-bottom: 20px;
}

/* 5番目のカード用リンク・注釈 */
.p-card__link {
  margin: 15px 0;
}
.p-card__link a {
  text-decoration: underline;
  color: #333;
}
.u-small {
  font-size: 12px;
  margin-top: 10px;
  display: block;
}

.c-text--exception{
  margin-bottom: 20px;
}

.c-section-rust{
  margin-bottom: 100px;
}

@media screen and (max-width: 767px) {
  
}

/* SP用スクロール設定 */
/* @media screen and (max-width: 767px) {
  .c-table-col2--sp_scroll {
    overflow-x: auto;
    padding-bottom: 10px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .c-table-col2--sp_scroll table {
    width: 800px; 
    table-layout: auto;
  }

  .c-table-col2--sp_scroll::-webkit-scrollbar {
    height: 3px;
  }
  .c-table-col2--sp_scroll::-webkit-scrollbar-track {
    background: #dcdcdc;
    border: 1px solid #fff;
  }
  .c-table-col2--sp_scroll::-webkit-scrollbar-thumb {
    background: #fcc800;
    border-radius: 10px;
  }
} */

/* SP用スクロール設定 */
@media screen and (max-width: 767px) {
  .c-table--sp_scroll {
    overflow-x: auto; /* scrollよりautoの方が挙動が安定します */
    padding-bottom: 10px;
    width: 100%;
    -webkit-overflow-scrolling: touch; /* iOSでのスクロールを滑らかに */
  }

  .c-table--sp_scroll table {
    width: 1200px; /* 固定幅 */
    table-layout: auto; /* SPではコンテンツに応じて幅を調整 */
  }

  /* カスタムスクロールバー */
  .c-table--sp_scroll::-webkit-scrollbar {
    height: 3px;
  }
  .c-table--sp_scroll::-webkit-scrollbar-track {
    background: #dcdcdc;
    border: 1px solid #fff;
  }
  .c-table--sp_scroll::-webkit-scrollbar-thumb {
    background: #fcc800;
    border-radius: 10px;
  }
}

/* --- PC用 (3カラム) --- */
@media screen and (min-width: 769px) {
    .c-nav-columns__item {
        width: 33.333%; /* 強制的に1/3幅に */
    }
    /* 1個目と4個目（各行の左端）にだけ左ボーダーを追加 */
    .c-nav-columns__item:nth-child(3n+1) {
        border-left: 1px solid #eee;
    }
}

/* --- スマホ用スタイル（画面幅が768px以下の場合） --- */
@media screen and (max-width: 768px) {

    .c-table {
      text-align: left;
    }

    .c-table td{
      width: 300px;
    }

    .tax-link-container {
        flex-direction: column; /* 縦並びに変更 */
    }

    .tax-link-container li {
        border-left: none; /* PC用の横線を消す */
        border-bottom: 1px solid #eee; /* 下線に変更 */
    }

    .tax-link-container li:first-child {
        border-top: 1px solid #eee; /* 一番上だけ上線をつける */
    }

    .tax-link-container li:last-child {
        border-right: none;
    }

    .tax-link {
        padding: 40px 15px 60px; /* 余白の微調整 */
    }
    
    .c-nav-columns__item {
        width: 50%;
        border-right: 1px solid #eee;
    }
    /* 奇数番目（1, 3, 5個目）に左ボーダーを追加 */
    .c-nav-columns__item:nth-child(2n+1) {
        border-left: 1px solid #eee;
    }

      .p-card-grid {
      grid-template-columns: 1fr; /* 1カラムに上書き */
      gap: 20px;
    }

    .p-card__title {
      font-size: 18px; /* SPサイズに上書き */
    }

    .p-card__img {
      height: auto;
      margin-bottom: 20px;
    }
  }