    :root {
      --primary: #1d4ed8;
      --primary-light: #eff6ff;
      --accent: #0891b2;
      --bg: #f5f6f8;
      --white: #ffffff;
      --border: #e2e5ea;
      --text: #222;
      --sub: #666;
      --max-width: 1100px;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Hiragino Kaku Gothic ProN",
        "Yu Gothic",
        Meiryo,
        sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.7;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    button,
    input {
      font: inherit;
    }

    .container {
      width: min(calc(100% - 32px), var(--max-width));
      margin: 0 auto;
    }

/* =========================
   ヘッダー
   ========================= */

.header {
    background: #00001b;
    border-bottom: 1px solid #00001b;
}

.logo {
    color: #fff;
}

    .header-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 10px;
    }

    .logo {
      font-size: 19px;
      font-weight: 700;
      white-space: nowrap;
    }

    .header-search {
    display: flex;
    width: 250px;
    margin-left: auto;
}

    .header-search input {
      width: 100%;
      padding: 5px 12px;
      border: 1px solid var(--border);
      border-radius: 6px 0 0 6px;
      outline: none;
    }

    .header-search input:focus {
      border-color: var(--primary);
    }

    .header-search button {
      width: 45px;
      border: 0;
      background: var(--primary);
      color: white;
      border-radius: 0 6px 6px 0;
      cursor: pointer;
    }

    /* ヒーロー */

    .hero {
      background: #1e293b;
      color: white;
    }

    .hero-content {
    padding-top: 20px;
    padding-bottom: 5px;
    max-width: 680px;
    }

    .hero-label {
      display: inline-block;
      margin-bottom: 12px;
      padding: 3px 9px;
      border: 1px solid #64748b;
      border-radius: 4px;
      color: #cbd5e1;
      font-size: 12px;
    }

    .hero h1 {
      margin-bottom: 12px;
      font-size: clamp(36px, 6vw, 56px);
      line-height: 1.15;
    }

    .hero p {
      margin-bottom: 22px;
      color: #d1d5db;
      font-size: 15px;
    }

    .hero-button {
      display: inline-block;
      padding: 10px 18px;
      background: var(--primary);
      color: white;
      border-radius: 5px;
      font-weight: 700;
    }

    /* メイン */

    main {
      padding: 45px 0 70px;
    }

    .section {
      margin-bottom: 55px;
    }

    .section-title {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 20px;
      margin-bottom: 18px;
    }

    .section-title h2 {
      font-size: 23px;
    }

    .section-title p {
      color: var(--sub);
      font-size: 13px;
    }

    .more-link {
      color: var(--primary);
      font-size: 13px;
      font-weight: 700;
      white-space: nowrap;
    }

    /* カテゴリー */

    .category-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
      margin-bottom: 55px;
    }

    .category-card {
      padding: 12px;
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 7px;
      transition: 0.15s;
    }

    .category-card:hover {
      border-color: var(--primary);
      transform: translateY(-2px);
    }

    .category-grid .category-icon {
    display: none;
}

    .category-card h3 {
      margin-bottom: 3px;
      font-size: 16px;
    }

    .category-card p {
      color: var(--sub);
      font-size: 12px;
    }

    /* 最新記事 */

    .article-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 15px;
    }

    .article-card {
      overflow: hidden;
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 7px;
      transition: 0.15s;
    }

    .article-card:hover {
      border-color: var(--primary);
      transform: translateY(-2px);
    }

    .article-image {
      height: 130px;
      display: grid;
      place-items: center;
      background: var(--primary-light);
      font-size: 36px;
    }

    .article-body {
      padding: 15px;
    }

    .tag {
      display: inline-block;
      margin-bottom: 7px;
      padding: 2px 7px;
      background: var(--primary-light);
      color: var(--primary);
      border-radius: 3px;
      font-size: 11px;
      font-weight: 700;
    }

    .article-body h3 {
      margin-bottom: 6px;
      font-size: 15px;
    }

    .article-body p {
      margin-bottom: 8px;
      color: var(--sub);
      font-size: 12px;
    }

    .article-date {
      color: #999;
      font-size: 11px;
    }

    /* 2カラム */

    .two-column {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 330px;
      gap: 25px;
    }

    /* 初心者向け */

    .beginner-box {
      padding: 22px;
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 7px;
    }

    .beginner-box h3 {
      margin-bottom: 7px;
      font-size: 18px;
    }

    .beginner-box p {
      margin-bottom: 15px;
      color: var(--sub);
      font-size: 13px;
    }

    .check-list {
      display: grid;
      gap: 7px;
      margin-bottom: 18px;
      padding-left: 20px;
      font-size: 13px;
    }

    .check-list li::marker {
      color: var(--primary);
    }

    .primary-link {
      display: inline-block;
      padding: 8px 14px;
      background: var(--primary);
      color: white;
      border-radius: 5px;
      font-size: 13px;
      font-weight: 700;
    }

    /* 人気記事 */

    .ranking {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 7px;
    }

    .ranking-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 13px;
      border-bottom: 1px solid var(--border);
    }

    .ranking-item:last-child {
      border-bottom: 0;
    }

    .ranking-number {
      color: var(--primary);
      font-size: 14px;
      font-weight: 700;
    }

    .ranking-title {
      font-size: 12px;
    }

    /* 選手育成 */

    .player-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
    }

    .player-card {
      overflow: hidden;
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 7px;
      transition: 0.15s;
    }

    .player-card:hover {
      border-color: var(--primary);
    }

    .player-image {
      height: 140px;
      display: grid;
      place-items: center;
      background: #f1f3f5;
      font-size: 42px;
    }

    .player-name {
      padding: 11px;
      text-align: center;
      font-size: 14px;
      font-weight: 700;
    }

    /* 練習・育成 */

    .training-panel {
      padding: 20px;
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 7px;
    }

    .training-search {
      display: flex;
      margin-bottom: 15px;
    }

    .training-search input {
      flex: 1;
      padding: 10px 12px;
      border: 1px solid var(--border);
      border-radius: 5px 0 0 5px;
      outline: none;
    }

    .training-search button {
      padding: 0 17px;
      border: 0;
      background: var(--primary);
      color: white;
      border-radius: 0 5px 5px 0;
      cursor: pointer;
    }

    .training-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
    }

    .training-tag {
      padding: 5px 11px;
      background: #f3f4f6;
      border: 1px solid var(--border);
      border-radius: 4px;
      color: #555;
      font-size: 12px;
    }

    .training-tag:hover {
      color: var(--primary);
      border-color: var(--primary);
    }

    /* 試合・戦術 */

    .match-box {
      min-height: 300px;
      padding: 20px;
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 7px;
    }

    .match-board {
      position: relative;
      width: 100%;
      height: 255px;
      border: 1px solid #cbd5e1;
      border-radius: 5px;
      background:
        linear-gradient(
          90deg,
          transparent 49%,
          #dce1e7 50%,
          transparent 51%
        ),
        linear-gradient(
          transparent 49%,
          #dce1e7 50%,
          transparent 51%
        ),
        #eef1f3;
    }

    .match-point {
      position: absolute;
      width: 13px;
      height: 13px;
      border-radius: 50%;
      background: var(--accent);
      border: 2px solid white;
    }

    .match-point-1 {
      top: 25%;
      left: 25%;
    }

    .match-point-2 {
      top: 52%;
      left: 55%;
    }

    .match-point-3 {
      top: 35%;
      right: 22%;
    }

    .match-point-4 {
      bottom: 20%;
      left: 35%;
    }

    .match-label {
      position: absolute;
      bottom: 10px;
      left: 10px;
      padding: 5px 8px;
      background: white;
      border: 1px solid var(--border);
      color: var(--sub);
      font-size: 10px;
    }

    /* イベント */

    .event-box {
      padding: 22px;
      background: #f8fafc;
      border: 1px solid var(--border);
      border-radius: 7px;
    }

    .event-box h3 {
      margin-bottom: 6px;
      font-size: 17px;
    }

    .event-box p {
      margin-bottom: 15px;
      color: var(--sub);
      font-size: 13px;
    }

    .event-list {
      display: grid;
      gap: 8px;
      margin-bottom: 18px;
      padding-left: 20px;
      font-size: 13px;
    }

    /* フッター */

    footer {
      padding: 35px 0;
      background: #20242b;
      color: white;
    }

    .footer-inner {
      display: flex;
      justify-content: space-between;
      gap: 30px;
    }

    .footer-logo {
      margin-bottom: 5px;
      font-weight: 700;
    }

    .footer-description {
      color: #aaa;
      font-size: 12px;
    }

    .footer-links {
      display: flex;
      flex-wrap: wrap;
      gap: 15px;
      color: #bbb;
      font-size: 12px;
    }

    .footer-links a:hover {
      color: white;
    }

    .copyright {
      margin-top: 25px;
      color: #777;
      font-size: 11px;
    }

    /* スマートフォン */

    @media (max-width: 800px) {
      .category-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .article-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .player-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .two-column {
        grid-template-columns: 1fr;
      }

      .header-search {
        width: 180px;
      }
    }

@media (max-width: 600px) {

    /* ページ全体の幅 */
    .container {
        width: min(calc(100% - 24px), var(--max-width));
    }

    /* ヘッダー全体 */
    .header-inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        min-height: 58px;
        gap: 8px;
        padding: 8px 0;
    }

    /* サイト名 */
    .logo {
        font-size: 15px;
        font-weight: 700;
        line-height: 1.5;
    }

    /* 検索欄 */
    .header-search {
        display: flex;
        order: 2;
        width: 100%;
        flex: 1 1 100%;
        margin-left: 0;
    }

    /* 検索入力欄 */
    .header-search input {
        flex: 1;
        min-width: 0;
        width: 100%;
        padding: 10px 12px;
        font-size: 16px;
    }

    /* 検索ボタン */
    .header-search button {
        width: 45px;
        min-height: 44px;
        flex-shrink: 0;
    }

    /* 以下の既存設定は残してください */

.hero-content {
    padding: 25px 0 20px;
}
      .hero h1 {
        font-size: 38px;
      }

      .hero p {
        font-size: 13px;
      }

      main {
        padding: 35px 0 55px;
      }

      .section {
        margin-bottom: 45px;
      }

      .section-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
      }

      .category-grid {
        gap: 8px;
      }

      .category-card {
        padding: 15px;
      }

      .article-grid {
        grid-template-columns: 1fr;
      }

      .player-grid {
        gap: 8px;
      }

      .player-image {
        height: 120px;
      }

      .update-row {
        flex-wrap: wrap;
        gap: 3px 10px;
      }

      .update-date,
      .update-category {
        min-width: auto;
      }

      .footer-inner {
        flex-direction: column;
      }
    }
    .article-detail {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 30px;
}

.article-detail-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.article-detail-header h1 {
  margin: 10px 0;
  font-size: 30px;
  line-height: 1.4;
}

.article-detail-date {
  color: #999;
  font-size: 12px;
}

.article-detail-body {
  font-size: 15px;
  line-height: 2;
}

.article-detail-body h2 {
  margin: 35px 0 15px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
  font-size: 22px;
}

.article-detail-body h3 {
  margin: 25px 0 10px;
  font-size: 18px;
}

.article-detail-body p {
  margin-bottom: 18px;
}

.article-detail-body ul {
  margin-bottom: 20px;
  padding-left: 25px;
}

@media (max-width: 600px) {

  .article-detail {
    padding: 20px;
  }

  .article-detail-header h1 {
    font-size: 24px;
  }

  .article-detail-body {
    font-size: 14px;
  }

}
/* 記事全体のレイアウト */
.article-detail {
    /* 記事の横幅 */
    max-width: 800px;

    /* 記事の外側の余白：上下20px、左右は中央配置 */
    margin: 20px auto;

    /* 記事の内側の余白 */
    padding: 45px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 7px;

    /* 余白を含めて横幅を計算 */
    box-sizing: border-box;
}

.article-detail-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.article-detail-header h1 {
  margin: 10px 0;
  font-size: 30px;
  line-height: 1.4;
}

.article-detail-date {
  color: #999;
  font-size: 12px;
}

.article-detail-body {
  font-size: 15px;
  line-height: 2;
}

.article-detail-body h2 {
  margin: 35px 0 15px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
  font-size: 22px;
}

.article-detail-body h3 {
  margin: 25px 0 10px;
  font-size: 18px;
}

.article-detail-body p {
  margin-bottom: 18px;
}

.article-detail-body ul {
  margin-bottom: 20px;
  padding-left: 25px;
}

@media (max-width: 600px) {

  .article-detail {
    padding: 20px;
  }

  .article-detail-header h1 {
    font-size: 24px;
  }

  .article-detail-body {
    font-size: 14px;
  }

}
/* =========================
   記事本文
   ========================= */

.article-intro {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 30px;
}


/* 記事内リスト */

.article-detail-body ul {
  margin: 20px 0 30px;
  padding-left: 25px;
}

.article-detail-body li {
  margin-bottom: 8px;
  line-height: 1.8;
}


/* 記事内テーブル */

.article-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0 30px;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.article-table th,
.article-table td {
  border: 1px solid var(--border);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.article-table th {
  font-weight: bold;
}
/* =========================
   関連情報
   ========================= */

.related-section {
    margin-top: 40px;
}


.related-section h2 {
    margin-bottom: 20px;
}


.related-list {
    display: grid;
    gap: 12px;
}


.related-card {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 14px 16px;

    border: 1px solid #ddd;
    border-radius: 10px;

    text-decoration: none;

    color: inherit;

    background: #fff;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.related-card:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 4px 12px rgba(
            0,
            0,
            0,
            0.08
        );

}


.related-icon {
    font-size: 1.3rem;
}
/* =========================
   カテゴリー記事
   ========================= */

.category-articles {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 24px;
}


.player-category-card {
    display: flex;

    align-items: center;

    gap: 16px;

    padding: 18px;

    background: #fff;

    border: 1px solid #ddd;

    border-radius: 12px;

    text-decoration: none;

    color: inherit;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.player-category-card:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 4px 12px
        rgba(0, 0, 0, 0.08);

}


.category-card-icon {

    font-size: 32px;

    flex-shrink: 0;

}


.player-category-card h3 {

    margin:
        0 0 6px 0;

}


.player-category-card p {

    margin: 0;

    color: #666;

    font-size: 14px;

}


/* =========================
   スマートフォン
   ========================= */

@media (max-width: 768px) {

    .category-articles {

        grid-template-columns: 1fr;

    }

}
/* ==================================================
   特殊能力一覧
   ================================================== */

.ability-search-box {
    margin-bottom: 20px;
}


.ability-search-box input {
    width: 100%;
    box-sizing: border-box;

    padding: 14px 16px;

    border: 1px solid #ddd;
    border-radius: 8px;

    font-size: 16px;
}


.ability-filters {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 24px;

}


.ability-filter {

    padding: 8px 16px;

    border: 1px solid #ddd;

    border-radius: 20px;

    background: #fff;

    cursor: pointer;

}


.ability-filter.active {

    background: #333;

    color: #fff;

}


.ability-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;

}


.ability-card {

    position: relative;

    display: block;

    padding: 20px;

    background: #fff;

    border: 1px solid #ddd;

    border-radius: 12px;

    text-decoration: none;

    color: inherit;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

}


.ability-card:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 4px 12px
        rgba(0, 0, 0, 0.08);

}


.ability-card h3 {

    margin:
        12px 0 8px;

}


.ability-card p {

    margin: 0;

    color: #666;

    font-size: 14px;

}


.ability-type {

    display: inline-block;

    padding: 4px 10px;

    border-radius: 12px;

    background: #f1f1f1;

    font-size: 12px;

}


.ability-detail {

    max-width: 900px;

    margin:
        40px auto;

    padding: 32px;

    background: #fff;

    border-radius: 12px;

}


.ability-detail-header {

    padding-bottom: 24px;

    border-bottom: 1px solid #ddd;

}


.ability-detail-header h1 {

    margin-top: 12px;

}


.ability-section {

    padding:
        24px 0;

    border-bottom:
        1px solid #eee;

}


.ability-section h2 {

    margin-top: 0;

}


@media (max-width: 768px) {

    .ability-grid {

        grid-template-columns: 1fr;

    }


    .ability-detail {

        padding: 20px;

    }

}
/* ==================================================
   イベント詳細
   ================================================== */

.event-detail {

    max-width: 900px;

    margin: 40px auto;

    padding: 32px;

    background: #fff;

    border-radius: 12px;

}


.event-detail-header {

    padding-bottom: 24px;

    border-bottom: 1px solid #ddd;

}


.event-detail-header h1 {

    margin:
        12px 0;

}


.event-category {

    display: inline-block;

    padding:
        4px 10px;

    border-radius: 12px;

    background: #f1f1f1;

    font-size: 12px;

}


.event-detail-header time {

    color: #777;

    font-size: 14px;

}


.event-section {

    padding:
        24px 0;

    border-bottom:
        1px solid #eee;

}


.event-section h2 {

    margin-top: 0;

}


.related-abilities {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;

}


.related-ability-card {

    display: block;

    padding: 20px;

    border: 1px solid #ddd;

    border-radius: 12px;

    color: inherit;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

}


.related-ability-card:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 4px 12px
        rgba(0, 0, 0, 0.08);

}


.related-ability-card h3 {

    margin:
        10px 0 8px;

}


.related-ability-card p {

    margin: 0;

    color: #666;

    font-size: 14px;

}


@media (max-width: 768px) {

    .related-abilities {

        grid-template-columns: 1fr;

    }


    .event-detail {

        padding: 20px;

    }

}
/* ==================================================
   イベント一覧
   ================================================== */

.event-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;

}


.event-card {

    display: flex;

    gap: 18px;

    padding: 22px;

    background: #fff;

    border: 1px solid #ddd;

    border-radius: 12px;

    color: inherit;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

}


.event-card:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 5px 16px
        rgba(0, 0, 0, 0.08);

}


.event-card-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    width: 52px;

    height: 52px;

    border-radius: 12px;

    background: #f5f5f5;

    font-size: 24px;

}


.event-card-content {

    min-width: 0;

}


.event-card-content h2 {

    margin:
        8px 0;

    font-size: 20px;

}


.event-card-content p {

    margin:
        0 0 10px;

    color: #666;

    line-height: 1.7;

}


.event-card-content time {

    color: #888;

    font-size: 13px;

}


@media (max-width: 768px) {

    .event-grid {

        grid-template-columns: 1fr;

    }


    .event-card {

        padding: 18px;

    }

}
/* ==================================================
   選手一覧テーブル
   ================================================== */

.player-table-container {
    width: 100%;
    overflow-x: auto;
}

/* ==================================================
   転生選手一覧
   ================================================== */

.player-list-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    background: #fff;
}


/* 入学年 */

.player-list-table th:nth-child(1),
.player-list-table td:nth-child(1) {
    width: 16%;
}


/* 入学 */

.player-list-table th:nth-child(2),
.player-list-table td:nth-child(2) {
    width: 20%;
}


/* スカウト */

.player-list-table th:nth-child(3),
.player-list-table td:nth-child(3) {
    width: 20%;
}


/* 名前 */

.player-list-table th:nth-child(4),
.player-list-table td:nth-child(4) {
    width: 28%;
}


/* ★ */

.player-list-table th:nth-child(5),
.player-list-table td:nth-child(5) {
    width: 16%;
}


.player-list-table th,
.player-list-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}


.player-list-table th {
    font-weight: bold;
    background: #f5f5f5;
}


.player-list-table tbody tr:hover {
    background: #fafafa;
}


.player-list-table-link {
    font-weight: bold;
    text-decoration: none;
}


/* 転生選手一覧：名前にカーソルを合わせたとき */
.player-table-link {
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s ease;
}

.player-table-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}
/* ==================================================
   投手・野手切り替え
   ================================================== */

.player-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}


.player-tab {
    padding: 12px 28px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}


.player-tab.active {
    background: #333;
    color: #fff;
}


.player-tab:hover {
    opacity: 0.8;
}


/* =========================
   表示・非表示
   ========================= */

.player-panel {
    display: none;
}


.player-panel.active {
    display: block;
}
/* ==================================================
   選手種別フィルター
   ================================================== */

.player-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}


.player-filter {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 16px;

    border: 1px solid #ddd;
    border-radius: 8px;

    background: #fff;

    cursor: pointer;
}


.player-filter input {
    width: 18px;
    height: 18px;

    cursor: pointer;
}


.player-filter span {
    cursor: pointer;
}/* ==================================================
   選手種別フィルター
   ================================================== */

.player-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}


.player-filter {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 16px;

    border: 1px solid #ddd;
    border-radius: 8px;

    background: #fff;

    cursor: pointer;
}


.player-filter input {
    width: 18px;
    height: 18px;

    cursor: pointer;
}


.player-filter span {
    cursor: pointer;
}
/* ==================================================
   選手検索
   ================================================== */

.player-search {
    display: flex;
    width: 100%;
    gap: 10px;
    margin-bottom: 20px;
}
.player-tabs {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
}

.player-search {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin-bottom: 20px;
}

.player-filters {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    margin-bottom: 30px;
}


.player-search input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}


.player-search button {
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}


/* ==================================================
   並び替え可能な表
   ================================================== */

.player-table th.sortable {
    cursor: pointer;
    user-select: none;
}


.player-table th.sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}


.sort-mark {
    display: inline-block;
    width: 16px;
    margin-left: 5px;
    font-size: 11px;
    font-weight: bold;
}
/* ==================================================
   更新情報
   ================================================== */

.updates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
    padding: 0 30px;

    background: var(--white);
border: 1px solid var(--border);
border-radius: 7px;
}


.updates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
}

.update-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 1;
    border-bottom: 1px solid #ddd;
}


.update-item time {
    flex: 0 0 90px;

    font-size: 14px;
    color: #666;
}


.update-item span {
    font-size: 16px;
}
/* ==================================================
   更新情報リンク
   ================================================== */

.update-link {
    color: inherit;
    text-decoration: none;
    font-size: 16px;
}


.update-link:hover {
    text-decoration: underline;
}
/* ==================================================
   記事本文
   ================================================== */

.article-section {
    margin-bottom: 40px;
}


.article-section h2 {
    margin: 35px 0 18px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
    font-size: 22px;
}


.article-section p {
    margin-bottom: 18px;
}


/* ==================================================
   記事画像
   ================================================== */

.article-content-image {
    margin: 25px 0 30px;
    text-align: center;
}


.article-content-image img {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 0 auto;

    border-radius: 7px;
}


.article-content-image figcaption {
    margin-top: 8px;

    color: #777;

    font-size: 12px;

    line-height: 1.6;
}


/* ==================================================
   記事内テーブル
   ================================================== */

.article-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 25px 0 30px;
}


.article-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
}


.article-table th,
.article-table td {
    padding: 12px 14px;
    border: 1px solid #333;
    text-align: center;
    vertical-align: middle;
}


.article-table th {
    font-weight: bold;
    background: #455a70;
    color: #fff;
}


.article-table td {
    background: #fff;
    color: #000;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
}
/* ==================================================
   選手詳細
   ================================================== */

.player-detail {
    max-width: 900px;
    margin: 40px auto;
    padding: 32px;
    background: #fff;
    border-radius: 12px;
}


.player-detail-header {
    padding-bottom: 24px;
    border-bottom: 1px solid #ddd;
}


.player-detail-header h1 {
    margin: 12px 0 0;
}


.player-position {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    background: #f1f1f1;
    font-size: 12px;
}


/* ==================================================
   選手情報
   ================================================== */

.player-information {
    display: grid;
    gap: 12px;
}


.player-information-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}


.player-information-label {
    width: 100px;
    font-weight: bold;
}


.player-information-value {
    font-size: 16px;
}


/* ==================================================
   選手セクション
   ================================================== */

.player-section {
    padding: 24px 0;
    border-bottom: 1px solid #eee;
}


.player-section h2 {
    margin-top: 0;
    margin-bottom: 18px;
}


/* ==================================================
   能力画像
   ================================================== */

.player-ability-image {
    width: 100%;
    overflow: hidden;
    text-align: center;
}


.player-ability-image img {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 0 auto;

    border-radius: 8px;
}


.player-no-image {
    color: #777;
}


/* ==================================================
   同じ入学都道府県の選手
   ================================================== */

.same-prefecture-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    background: #fff;
}


.same-prefecture-table th,
.same-prefecture-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}


.same-prefecture-table th {
    font-weight: bold;
    background: #f5f5f5;
}


.same-prefecture-table tbody tr:hover {
    background: #fafafa;
}


.same-prefecture-table th:nth-child(1),
.same-prefecture-table td:nth-child(1) {
    width: 20%;
}


.same-prefecture-table th:nth-child(2),
.same-prefecture-table td:nth-child(2) {
    width: 40%;
}


.same-prefecture-table th:nth-child(3),
.same-prefecture-table td:nth-child(3) {
    width: 25%;
}


.same-prefecture-table th:nth-child(4),
.same-prefecture-table td:nth-child(4) {
    width: 15%;
}

@media (max-width: 600px) {

    .player-detail {
        padding: 20px;
    }


    .player-information-label {
        width: 80px;
    }

}
/* ==================================================
   記事目次
   ================================================== */

.article-toc {
    /* 目次の外側の余白 */
    margin: 15px 0 15px;

    /* 目次の内側の余白 */
    padding: 5px 20px;

    background: #f7f9fb;
    border: 1px solid #e0e5ea;
    border-radius: 8px;
}

.article-toc-title {
    /* タイトルと目次項目の間 */
    margin: 0 0 0px;

    font-size:20px;
    font-weight: bold;
}

.article-toc ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-toc li {
    /* 目次項目同士の間隔 */
    margin: 3px 0;
}

.article-toc a:hover {
    color: #0077cc;
    text-decoration: underline;
}

/* h2の目次 */
.article-toc .toc-level-2 {
    padding-left: 0;
}

/* h3の目次 */
.article-toc .toc-level-3 {
    padding-left: 20px;
    font-size: 14px;
}

/* 目次から移動したときの位置調整 */
.article-section h2 {
    scroll-margin-top: 80px;
}
#article-title {
    white-space: pre-line;
    overflow-wrap: break-word;
    word-break: normal;
}
.category-header {
    margin-bottom: 20px;
}
/* =========================
   記事内小見出し
   ========================= */

.article-subheading {
    margin: 20px 0 10px;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.6;
    color: #444;
}
/* =========================
   YouTubeアイコン
   ========================= */

.youtube-link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    margin-left: 0px;

    background: transparent;
    border-radius: 0;
    flex-shrink: 0;
    transition: 0.2s;
}

.youtube-link svg {
    width: 30px;
    height: 30px;
    fill: #fff;

    transition: 0.2s;
}

.youtube-link:hover {
    opacity: 0.7;
    transform: scale(1.08);
}
.update-item:hover span {
    color: #0077cc;
    text-decoration: underline;
}
.article-card-content {
    padding: 5px;
}
/* 検索結果：記事が見つからない場合 */
.no-articles {
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

.no-articles {
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

.no-articles h2,
.no-articles p {
    white-space: nowrap;
}

/* カテゴリーページの画像 */
.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.category-header-image {
    width: 180px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

/* 画像が設定されていない場合は非表示 */
#category-image[hidden] {
    display: none;
}

/* カテゴリータイトルと説明文 */
.category-header-content {
    min-width: 0;
}

/* スマートフォン */
@media (max-width: 600px) {
    .category-header {
        gap: 12px;
    }

    .category-header-image {
        width: 100px;
        height: 80px;
    }
}
/* カテゴリーページ：「記事がありません」を左端に寄せる */
#category-articles .no-articles {
    grid-column: 1 / -1;
    width: 100%;
    text-align: left;
    justify-self: start;
}

/* 見出しと説明文も左揃えにする */
#category-articles .no-articles h2,
#category-articles .no-articles p {
    text-align: left;
}
/* カテゴリー全体の下に区切り線を表示 */
.category-header {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 3px solid #c2c2c2;
}
/* =========================
   人気記事
   ========================= */

/* 人気記事全体 */
#popular-articles {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: transparent;
}

/* 人気記事の各項目 */
#popular-articles .ranking-item {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 14px 18px;

    background: #fff;
    border: 1px solid #e0e4e8;
    border-radius: 10px;

    text-decoration: none;
    color: #333;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

/* マウスを乗せたとき */
#popular-articles .ranking-item:hover {
    background: #f5f9ff;
    border-color: #a8ccef;
    transform: translateY(-2px);
}

/* ランキング番号 */
#popular-articles .ranking-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;
    flex-shrink: 0;

    border-radius: 50%;

    background: #edf0f3;
    color: #444;

    font-size: 15px;
    font-weight: bold;
}

/* 1位 */
#popular-articles .ranking-item:nth-child(1) .ranking-number {
    background: #fff0bd;
    color: #946800;
}

/* 2位 */
#popular-articles .ranking-item:nth-child(2) .ranking-number {
    background: #e8e8e8;
    color: #555;
}

/* 3位 */
#popular-articles .ranking-item:nth-child(3) .ranking-number {
    background: #f5dfd1;
    color: #8b512d;
}

/* 記事タイトル */
#popular-articles .ranking-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;

    overflow-wrap: anywhere;
}

/* スマートフォン */
@media (max-width: 600px) {

    #popular-articles {
        gap: 8px;
    }

    #popular-articles .ranking-item {
        gap: 10px;
        padding: 12px;
    }

    #popular-articles .ranking-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    #popular-articles .ranking-title {
        font-size: 14px;
    }

}
/* 人気記事全体を囲む外枠を削除 */
#popular-articles {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 0 !important;
}
/* =========================
   各セクションの区切り線
   ========================= */

/* 最新攻略情報・人気記事・更新情報の見出しの下 */
section.section:has(#latest-articles) .section-title,
section.section:has(#popular-articles) .section-title,
section.section:has(#updates) .section-title {
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 3px solid #ddd;
}
/* =========================
   記事本文の太字文章
   ========================= */

.article-bold-text {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.9;
    margin: 20px 0;
}
/* 記事本文の一部分を太字にする */
.article-section p strong,
#article-body > p strong {
    font-weight: 700;
     font-size: 18px;
}
/* 記事内の表を中央揃えにする */
.article-table {
    margin-left: auto;
    margin-right: auto;
}
/* ==================================================
   記事下部：関連記事・人気記事
   ================================================== */

/* 各コーナー */
.article-recommendation-section {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #ddd;
}

/* 見出し */
.article-recommendation-section h2 {
    margin: 0 0 18px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
    font-size: 22px;
    line-height: 1.5;
}

/* 記事カードの一覧 */
.article-recommendation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

/* 記事カード */
.article-recommendation-card {
    display: block;
    min-width: 0;
    padding: 16px;

    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;

    color: inherit;
    text-decoration: none;

    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

/* マウスを乗せたとき */
.article-recommendation-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* カテゴリー */
.article-recommendation-category {
    display: block;
    margin-bottom: 6px;

    color: var(--primary);
    font-size: 12px;
}

/* 記事タイトル */
.article-recommendation-title {
    display: block;
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* 記事の説明文 */
.article-recommendation-card p {
    margin: 8px 0 0;
    color: #666;
    font-size: 13px;
    line-height: 1.7;
}

/* スマートフォン */
@media (max-width: 600px) {

    .article-recommendation-section {
        margin-top: 30px;
        padding-top: 20px;
    }

    .article-recommendation-section h2 {
        font-size: 20px;
    }

    .article-recommendation-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .article-recommendation-card {
        padding: 14px;
    }
}
/* ========================================
   お問い合わせページ
   ======================================== */

.contact-main {
    padding: 40px 0 60px;
}

.contact-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;

    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;

    box-sizing: border-box;
}

/* ページの見出し */
.contact-header {
    margin-bottom: 30px;
    padding-bottom: 20px;

    border-bottom: 1px solid var(--border);
}

.contact-header h1 {
    margin-bottom: 15px;
    font-size: 28px;
}

.contact-header p {
    margin-bottom: 10px;
    line-height: 1.9;
}

/* フォーム部分 */
.contact-form-section h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

.contact-form-frame {
    width: 100%;
    overflow: hidden;
}

/* Googleフォーム */
.contact-form-frame iframe {
    display: block;
    width: 100%;
    min-height: 900px;
    border: none;
    background: #fff;
}

/* 注意書き */
.contact-note {
    margin-top: 25px;
    color: #666;
    font-size: 13px;
    line-height: 1.8;
}

/* スマートフォン */
@media (max-width: 600px) {

    .contact-main {
        padding: 20px 0 35px;
    }

    .contact-page {
        padding: 18px;
    }

    .contact-header h1 {
        font-size: 24px;
    }

    .contact-form-frame iframe {
        min-height: 1000px;
    }

}
/* =========================
   スマートフォンの検索欄
   ========================= */

@media (max-width: 600px) {

    /* ヘッダーを複数行に対応させる */
    .header-inner {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 0;
    }

    /* 検索欄を表示する */
    .header-search {
        display: flex;
        order: 2;

        width: 100%;
        flex: 1 1 100%;

        margin-left: 0;
    }

    /* 検索入力欄 */
    .header-search input {
        flex: 1;
        min-width: 0;
        width: 100%;
        padding: 10px 12px;
        font-size: 16px;
    }

    /* 検索ボタン */
    .header-search button {
        width: 45px;
        flex-shrink: 0;
    }

}
/* =========================
   スマートフォンの更新情報
   ========================= */

@media (max-width: 600px) {

    /* 更新情報を1列にする */
    .updates {
        grid-template-columns: 1fr;
        gap: 0;
    }

}