@charset "UTF-8";

:root {
  --links-bg: #eef3f8;
  --links-surface: #ffffff;
  --links-border: #d6dee8;
  --links-text: #28405f;
  --links-heading: #143f69;
  --links-accent: #c63b2d;
  --links-shadow: 0 8px 24px rgba(20, 63, 105, 0.06);
  --links-radius: 14px;
}

html {
  scroll-behavior: smooth;
}

.links-page {
  background: var(--links-bg);
  color: var(--links-text);
}

.links-page .container {
  width: min(1100px, calc(100% - 40px));
  margin-inline: auto;
}

/* =========================
   ページ見出し
========================= */

.links-hero {
  padding: 30px 0 28px;
  border-bottom: 1px solid #d9e2ec;
  background: linear-gradient(180deg, #edf3f8 0%, #e8eff6 100%);
}

.links-kicker {
  margin: 0 0 10px;
  color: var(--links-accent);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.links-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--links-heading);
}

.links-lead {
  max-width: 920px;
  margin: 18px 0 0;
  line-height: 2;
  color: #4a6483;
  font-size: 1rem;
}

/* =========================
   ページ内メニュー
========================= */

.links-local-nav {
  margin-top: 28px;
}

.links-local-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.links-local-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--links-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--links-heading);
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.links-local-nav a:hover,
.links-local-nav a:focus {
  background: var(--links-heading);
  border-color: var(--links-heading);
  color: #ffffff;
  transform: translateY(-1px);
}

/* =========================
   セクション
========================= */

.links-section {
  padding: 30px 0 50px;
}

.links-card {
  background: var(--links-surface);
  border: 1px solid var(--links-border);
  border-radius: var(--links-radius);
  padding: 32px 36px;
  margin-bottom: 24px;
  box-shadow: var(--links-shadow);
}

.links-section-title {
  position: relative;
  margin: 0 0 18px;
  padding-left: 16px;
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 800;
  color: var(--links-heading);
}

.links-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 6px;
  height: 20px;
  background: var(--links-heading);
  border-radius: 3px;
}

.links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.links-list li {
  margin: 8px 0;
  line-height: 1.9;
  color: #526b84;
}

.links-list a {
  color: #2b5c92;
  text-decoration: none;
}

.links-list a:hover,
.links-list a:focus {
  text-decoration: underline;
}

/* =========================
   上へ戻るボタン
========================= */

.back-to-top {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 46px;
  height: 46px;
  background: #143f69;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.back-to-top:hover {
  background: #c63b2d;
  transform: translateY(-3px);
}

/* =========================
   レスポンシブ
========================= */

@media (max-width: 767px) {
  .links-hero {
    padding: 24px 0 24px;
  }

  .links-card {
    padding: 24px 20px;
  }

  .links-local-nav ul {
    gap: 10px;
  }

  .links-local-nav a {
    min-height: 44px;
    padding: 0 16px;
  }

  .back-to-top {
    right: 18px;
    bottom: 18px;
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
}