/* ========================================
   サイトマップページスタイル
   ======================================== */
/* サイトマップコンテナ */
.p-sitemap__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 0px 100px;
}

/* セクション（1列構成） */
.p-sitemap__section {
  margin-bottom: 100px;
  width: 100%;
}

.p-sitemap__section:last-child {
  margin-bottom: 0;
}

/* セクションタイトル */
.p-sitemap__section-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  color: #000000;
  margin: 0 0 17px 0;
  text-align: left;
}

/* ボタングリッド（PC時4列） */
.p-sitemap__button-grid {
  display: grid;
  grid-template-columns: repeat(4, 290px);
  gap: 13px;
  width: 1199px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ボタンアイテム */
.p-sitemap__button-item {
  margin: 0;
  padding: 0;
}

/* ボタンリンク */
.p-sitemap__button-link {
  display: block;
  width: 290px;
  height: 59px;
  background-color: #ffffff;
  border: none;
  border-radius: 8px;
  color: #000000;
  font-size: 16px;
  font-weight: 400;
  line-height: 30px;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

.p-sitemap__button-link:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); */
}

.p-sitemap__button-link:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
/* カテゴリタイトル */
.p-sitemap__category-title {
  font-size: 20px;
  font-weight: 400;
  color: #000000;
  text-decoration: underline;
  margin: 40px 0 17px 0;
  grid-column: 1 / -1;
  text-align: left;
}
.p-sitemap__category-title:first-child {
  margin-top: 0;
}

/* 中カテゴリタイトル（サブカテゴリ） */
.p-sitemap__category-title--sub {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-dark);
  text-decoration: none;
  border-bottom: 1px solid #cccccc;
  padding-bottom: 5px;
  padding-left: 10px;
  margin: 5px 0 15px 0;
  position: relative;
}

/* 中カテゴリの前にアイコンを追加 */
/* .p-sitemap__category-title--sub::before {
  content: "└";
  position: absolute;
  left: 0;
  top: 0;
  color: #999999;
  font-size: 16px;
} */

/* レスポンシブ対応 */
@media screen and (max-width: 1240px) {
  .p-sitemap__container {
    padding: 60px 15px 100px;
  }

  .p-sitemap__button-grid {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    max-width: 900px;
  }

  .p-sitemap__button-link {
    width: 100%;
    max-width: 290px;
  }
}

@media screen and (max-width: 900px) {
  .p-sitemap__section-title {
    font-size: 24px;
  }

  .p-sitemap__button-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
  }
}

@media screen and (max-width: 600px) {
  .p-sitemap__container {
    padding: 40px 15px 60px;
  }

  .p-sitemap__section {
    margin-bottom: 60px;
  }

  .p-sitemap__section-title {
    font-size: 20px;
    margin-bottom: 15px;
  }

  /* .p-sitemap__button-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  } */

  .p-sitemap__button-link {
    height: 50px;
    font-size: 14px;
  }

  /* モバイル時のカテゴリタイトル調整 */
  .p-sitemap__category-title--main {
    font-size: 20px;
    margin: 30px 0 20px 0;
  }

  .p-sitemap__category-title--sub {
    font-size: 16px;
    padding-left: 15px;
    margin: 20px 0 12px 0;
  }

  .p-sitemap__category-title--sub::before {
    font-size: 14px;
  }
}

/* アクセシビリティ対応 */
@media (prefers-reduced-motion: reduce) {
  .p-sitemap__button-link {
    transition: none;
  }
}

@media (prefers-contrast: high) {
  .p-sitemap__button-link {
    border: 2px solid #000000;
  }

  .p-sitemap__button-link:hover {
    background-color: #000000;
    color: #ffffff;
  }
}
