/* =========================================
   サイト内アンカーリンクのスタイル
========================================= */
/* コンテナの設定 (Flexboxで横並び・折り返し) */
.anchor-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* ボタン間の余白 */
  margin: 0 0 30px 0;
  padding: 0;
  list-style: none;
}

/* PC表示時: 4カラム設定 */
.anchor-link-list li {
  /* gapの10px × 3箇所分を引いて4等分 */
  width: calc(25% - 7.5px); 
  box-sizing: border-box;
}

/* ボタンの基本デザイン */
.anchor-link-list li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  background-color: #ffffff;
  border: 1px solid #cccccc; /* 現在より少しハッキリさせる場合は2pxに */
  color: #333333;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  border-radius: 4px; /* 少し角丸にして柔らかさを出す */
  transition: all 0.2s ease-in-out;
  position: relative;
  height: 100%;
  box-sizing: border-box;
}

/* リンクであることを示す矢印アイコン (CSSで描画) */
.anchor-link-list li a::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 2px solid #999999;
  border-right: 2px solid #999999;
  transform: translateY(-50%) rotate(45deg);
  transition: all 0.2s ease-in-out;
}

/* PC: マウスオーバー時のアクション */
@media (hover: hover) and (pointer: fine) {
  .anchor-link-list li a:hover {
    background-color: #f4f8ff; /* 薄いブルー背景 */
    border-color: #0056b3; /* 枠線をブルーに */
    color: #0056b3; /* 文字色をブルーに */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* 少し浮かせる */
  }
  .anchor-link-list li a:hover::after {
    border-color: #0056b3; /* 矢印もブルーに */
    right: 10px; /* 矢印が少し右に動くアニメーション */
  }
}

/* =========================================
   スマートフォン用レスポンシブ対応 (768px以下)
========================================= */
@media screen and (max-width: 768px) {
  /* SP表示時: 2カラム設定 */
  .anchor-link-list li {
    /* gapの10px × 1箇所分を引いて2等分 */
    width: calc(50% - 5px); 
  }
  
  /* スマホでのタップしやすさと視認性を考慮した調整 */
  .anchor-link-list li a {
    font-size: 13px; /* 少し小さくして改行を防ぐ */
    padding: 14px 20px 14px 8px; /* 右側に矢印分の余白を広めにとる */
    line-height: 1.4;
  }
}