      /* =========================================
         ベーススタイル (共通設定)
         ========================================= */
      body {
        font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
        background-color: #f0f2f5; /* 背景色 */
        color: #333;
        margin: 0;
        padding: 0;
        line-height: 1.6;
      }

      /* =========================================
         共通コンポーネント
         ========================================= */

      /* カードの基本形 */
      .card-base {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* 影を少しリッチに */
        margin-bottom: 40px;
        overflow: hidden;
      }

      /* 大会見出しエリア */
      .meet-header {
        padding: 25px 30px 15px;
        border-bottom: 2px solid #eaecf0;
        margin-bottom: 20px;
      }
      .meet-title {
        font-size: 1.5em;
        font-weight: bold;
        color: #003366;
        margin-bottom: 10px;
      }
      .meet-info {
        font-size: 0.9em;
        color: #666;
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
      }
      .meet-info span {
        background: #f7f9fc;
        padding: 4px 10px;
        border-radius: 4px;
      }

      /* バッジ・タグ */
      .grade-badge {
        font-size: 0.75em;
        background-color: #e9ecef;
        color: #555;
        padding: 2px 8px;
        border-radius: 12px;
        font-weight: normal;
        white-space: nowrap;
        margin-left: 5px;
      }
      .tag {
        font-size: 0.8em;
        font-weight: bold;
        padding: 4px 10px;
        border-radius: 4px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
      }
      .tag-debut {
        background-color: #e6fffa;
        color: #00a86b;
        border: 1px solid #b2f5ea;
      }
      .tag-pb {
        background-color: #fff0f0;
        color: #e60012;
        border: 1px solid #ffcccc;
      }

      /* =========================================
         【A】記録会用デザイン
         ========================================= */
      .result-card {
        padding-bottom: 30px;
      }
      .event-title {
        background-color: #003366;
        color: #fff;
        padding: 8px 15px;
        font-weight: bold;
        border-radius: 6px;
        margin: 0 30px 20px;
        font-size: 1.05em;
        display: inline-block;
        min-width: 200px;
      }
      .group-block {
        margin-bottom: 25px;
        padding: 0 30px;
      }
      .group-name {
        font-size: 0.85em;
        font-weight: bold;
        color: #888;
        margin-bottom: 8px;
        padding-left: 5px;
        border-left: 3px solid #ddd;
        line-height: 1;
      }
      .result-row {
        display: flex;
        align-items: center;
        padding: 12px 10px;
        border-bottom: 1px solid #eee;
        transition: background-color 0.2s;
      }
      .result-row:hover {
        background-color: #fafafa;
      }
      .result-row:last-child {
        border-bottom: none;
      }
      .col-rank {
        width: 50px;
        text-align: left;
        font-weight: bold;
        font-size: 1.1em;
        color: #777;
        flex-shrink: 0;
      }
      .col-rank.rank-top {
        color: #003366;
        font-weight: 900;
      }
      .col-name {
        width: 240px;
        font-weight: 600;
        display: flex;
        align-items: center;
        flex-shrink: 0;
      }
      .col-time {
        width: 120px;
        font-family: "Roboto", sans-serif;
        font-weight: bold;
        font-size: 1.1em;
        color: #333;
        flex-shrink: 0;
      }
      .col-memo {
        flex: 1;
        display: flex;
        justify-content: flex-start;
      }

      /* =========================================
         【B】駅伝用デザイン
         ========================================= */
      .team-summary {
        background-color: #003366;
        color: #fff;
        padding: 25px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
      }
      .team-dist {
        font-size: 0.9em;
        opacity: 0.8;
        letter-spacing: 0.05em;
      }
      .team-result-row {
        display: flex;
        align-items: baseline;
        gap: 20px;
        margin-top: 5px;
      }
      .team-rank {
        font-size: 2.5em;
        font-weight: 900;
        line-height: 1;
      }
      .team-rank span {
        font-size: 0.5em;
        font-weight: normal;
      }
      .team-time {
        font-size: 1.8em;
        font-family: "Roboto", sans-serif;
        font-weight: bold;
      }
      .section-list {
        padding: 30px 20px;
        position: relative;
      }
      .section-list::before {
        content: "";
        position: absolute;
        top: 40px;
        bottom: 40px;
        left: 45px;
        width: 3px;
        background-color: #e0e0e0;
        z-index: 0;
      }
      .section-row {
        display: flex;
        align-items: center;
        margin-bottom: 25px;
        position: relative;
        z-index: 1;
        background: #fff;
        padding: 5px 0;
      }
      .section-row:last-child {
        margin-bottom: 0;
      }
      .section-badge {
        width: 50px;
        height: 50px;
        background-color: #fff;
        border: 3px solid #003366;
        border-radius: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-weight: bold;
        color: #003366;
        font-size: 0.9em;
        flex-shrink: 0;
        margin-right: 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      }
      .section-dist-text {
        font-size: 0.7em;
        font-weight: normal;
        color: #666;
        line-height: 1;
        margin-top: 2px;
      }
      .ekiden-runner-info {
        flex: 1;
      }
      .ekiden-runner-name {
        font-size: 1.1em;
        font-weight: bold;
        display: flex;
        align-items: center;
        color: #333;
      }
      .ekiden-record-info {
        text-align: right;
        min-width: 100px;
      }
      .ekiden-split-time {
        font-family: "Roboto", sans-serif;
        font-size: 1.3em;
        font-weight: bold;
        color: #333;
        line-height: 1.2;
      }
      .ekiden-section-rank {
        font-size: 0.85em;
        color: #666;
        font-weight: bold;
      }
      .rank-1st-text {
        color: #e60012;
      }
      .badge-section-winner {
        background-color: #ffd700;
        color: #333;
        font-size: 0.75em;
        padding: 2px 6px;
        border-radius: 4px;
        margin-left: 5px;
        vertical-align: text-bottom;
      }

      /* ページトップボタン */
      #top {
        width: 60px;
        position: fixed;
        right: 20px;
        bottom: 20px;
        z-index: 10000;
        opacity: 0.8;
      }
      #top:hover {
        opacity: 1;
      }

      /* スマホ対応 */
      @media (max-width: 600px) {
        .result-row {
          flex-wrap: wrap;
          padding: 15px 5px;
        }
        .col-rank {
          width: 100%;
          margin-bottom: 2px;
          font-size: 0.9em;
          color: #999;
        }
        .col-name {
          width: 100%;
          font-size: 1.1em;
          margin-bottom: 5px;
        }
        .col-time {
          width: auto;
          font-size: 1.2em;
          margin-right: 15px;
        }
        .col-memo {
          width: auto;
        }
        .section-list::before {
          left: 35px;
        }
        .section-badge {
          width: 40px;
          height: 40px;
          font-size: 0.8em;
          margin-right: 12px;
        }
        .section-dist-text {
          display: none;
        }
        .ekiden-split-time {
          font-size: 1.2em;
        }
        .ekiden-section-rank {
          font-size: 0.8em;
        }
      }

/* style.css */
:root {
  --primary-color: #004098; /* 学校のイメージカラー */
  --bg-light: #f8f9fa;
  --text-main: #333;
  --text-sub: #666;
}

/* メインのコンテナ */
.graduate-messages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

/* カードのデザイン */
.message-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  height: 100%;
  box-sizing: border-box;
  border: 1px solid #eee;
}

.message-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* プロフィール部分 */
.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 15px;
}

.card-header img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  border: 2px solid var(--primary-color);
}

.user-info .name {
  font-weight: bold;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 4px;
}

.user-info .tag {
  font-size: 0.75rem;
  color: var(--primary-color);
  background: #eef4ff;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}

/* メッセージ本文 */
.message-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-main);
}

.message-body p {
  margin-bottom: 1em;
}

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