@charset "UTF-8";

/* ==========================================================================
   LINK Page (リンク集専用スタイル)
   ========================================================================== */

/* --- 大見出し（国内・国外） --- */
.link-head-main {
  font-size: 1.6rem;
  color: #333;
  border-bottom: 2px solid var(--jilaf); /* ブランドカラー */
  padding-bottom: 10px;
  margin-bottom: 30px;
}

/* --- カテゴリブロック --- */
.link-category {
  margin-bottom: 50px;
}

/* 中見出し（アイコン付き） */
.link-head-sub {
  font-size: 1.2rem;
  color: var(--jilaf);
  background: #f4f8fb;
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.link-head-sub i {
  margin-right: 10px;
  opacity: 0.7;
}

/* --- リンク一覧グリッド --- */
.link-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* PCは3列 */
  gap: 15px 30px; /* 縦の隙間15px、横の隙間30px */
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list-grid li {
  /* 崩れ防止 */
  min-width: 0;
}
/* 既存のリストアイコンを打ち消す設定 */
.link-list-grid li::before {
  content: none !important; /* アイコンの中身を空にする */
  display: none !important; /* 要素自体を非表示にする */
}

.link-list-grid li {
  padding-left: 0 !important; /* アイコン用の左余白もリセット */
  background: none !important; /* もし背景画像でアイコンを出している場合用 */
}
/* リンクボタンのデザイン */
.link-list-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  height: 100%; /* 高さを揃える */
}

/* ホバー時の挙動 */
.link-list-grid a:hover {
  background: #fff8e1; /* 薄い黄色（広報カラーの薄い版） */
  border-color: #ffd54f;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* 外部リンクアイコン */
.link-list-grid a i {
  font-size: 0.75rem;
  color: #ccc;
  margin-left: 10px;
  transition: color 0.2s;
}

.link-list-grid a:hover i {
  color: var(--orange); /* ホバー時にオレンジに */
}

/* リンクなし（ただのテキスト）の場合 */
.no-link {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: #f9f9f9;
  border: 1px dashed #ddd;
  border-radius: 4px;
  color: #888;
  font-size: 0.9rem;
  height: 100%;
}

/* --- レスポンシブ対応 --- */

/* タブレット (1024px以下) */
@media screen and (max-width: 1024px) {
  .link-list-grid {
    grid-template-columns: repeat(2, 1fr); /* 2列 */
  }
}

/* スマホ (768px以下) */
@media screen and (max-width: 768px) {
  .link-head-main {
    font-size: 1.3rem;
  }

  .link-head-sub {
    font-size: 1rem;
  }
}

/* スマホ (600px以下) */
@media screen and (max-width: 600px) {
  .link-list-grid {
    grid-template-columns: 1fr; /* 1列 */
    gap: 10px;
  }

  .link-list-grid a {
    padding: 15px; /* タップしやすいように少し広げる */
  }
}
