 body {
      margin: 0;
      font-family: sans-serif;
      background: #f4f4f4;
      color: #222;
    }

    header {
      background: white;
      padding: 24px 16px;
      text-align: center;
    }

    header h1 {
      margin: 0;
      font-size: 28px;
    }

    header p {
      color: #000000;
      letter-spacing: 2px;
    }
    header q {
      color: white;
      letter-spacing: 2px;
    }
   

.hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: #111;
  color: white;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroFade 25s infinite;
}

.hero-image.slide1 { animation-delay: 0s; }
.hero-image.slide2 { animation-delay: 5s; }
.hero-image.slide3 { animation-delay: 10s; }
.hero-image.slide4 { animation-delay: 15s; }
.hero-image.slide5 { animation-delay: 20s; }

@keyframes heroFade {
  0%   { opacity: 0; }
  3%   { opacity: 0.65; }
  20%  { opacity: 0.65; }
  23%  { opacity: 0; }
  100% { opacity: 0; }
}

.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 8%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.75),
    transparent
  );
}

.hero-text h2 {
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(24px, 4.6vw, 50px);
  font-weight: 300;        /* 細くする */
  line-height: 1.5;
  letter-spacing: 8px;     /* 字間を広げる */
  text-transform: uppercase;
  margin: 0;
}

    section {
      padding: 28px 20px;
      max-width: 900px;
      margin: auto;
    }

    section h2 {
      border-bottom: 4px solid #044e87;
      padding-bottom: 8px;
    }

    .results {
      background: #111;
      color: white;
      max-width: none;
      text-align: center;
    }
    

    footer {
      padding: 20px;
      background: #044e87;
      color: white;
      text-align: center;
    }

    
/* NEWS セクション */
.news {
  padding: 80px 8%;
  background: #f5f6f7;
  color: #202020;
}

.news-heading {
  text-align: center;
  margin-bottom: 40px;
}

.news-label {
  color: #f5f6f7;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.news-heading h2 {
  font-size: 42px;
  margin: 0;
  letter-spacing: 2px;
}

.news-heading > p:last-child {
  color: #666;
  margin-top: 10px;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.news-card {
  background: white;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-photo {
  height: 210px;
  overflow: hidden;
  background: #ddd;
}

.news-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-content {
  padding: 22px;
}

.news-date {
  color: #777;
  font-size: 13px;
  margin: 0 0 12px;
}

.news-category {
  display: inline-block;
  color: #044e87;
  border: 1px solid #044e87;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
}

.news-content h3 {
  font-size: 18px;
  line-height: 1.6;
  margin: 14px 0 10px;
}

.news-content > p:last-child {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
}

/* スマートフォン対応 */
@media (max-width: 768px) {
  .news {
    padding: 55px 6%;
  }

  .news-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-photo {
    height: 220px;
  }

  .news-heading h2 {
    font-size: 36px;
  }
}

/* ヘッダー全体 */

.site-header {
  background: #20242b;
  color: white;
  padding: 18px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 20px;
  position: sticky;   
  top: 0;             
  z-index: 100;
}


/* ロゴ */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #044e87;
  color: white;
  font-size: 20px;
  font-weight: bold;
  font-style: italic;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.logo-text strong {
  font-size: 18px;
  letter-spacing: 1px;
}

.logo-text small {
  font-size: 9px;
  color: #c5c8ce;
  letter-spacing: 1px;
}

.logo-img {
  height: 52px;
  width: auto;
  display: block;
}

/* ナビゲーションメニュー */
.navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.navigation a {
  position: relative;
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 2px;
  padding: 10px 0;
  transition: color 0.2s;
}

/* 下線(最初は幅0) */
.navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #4da3e8;
  transition: width 0.3s;
}

/* マウスを乗せたとき:下線が左から伸びる */
.navigation a:hover {
  color: #4da3e8;
}

.navigation a:hover::after {
  width: 100%;
}

/* スマートフォン対応 */
@media (max-width: 768px) {
  .site-header {
    padding: 16px 5%;
    justify-content: center;
  }

  .site-logo {
    width: 100%;
    justify-content: center;
  }

  .navigation {
    gap: 10px 18px;
  }

  .navigation a {
    font-size: 11px;
  }
}

/* Instagramボタン */
.insta-link {
  display: inline-block;
  padding: 12px 24px;
  background: #044e87;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.insta-link:hover {
  opacity: 0.8;
}

/* 地図(画面幅に合わせて伸縮) */
.map {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-top: 12px;
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.about-info {
  display: grid;
  grid-template-columns: 6em 1fr;
  gap: 24px 3px;   /* ← 12px だったのを 24px に */
  margin: 20px 0 0;
}

/* OB会長からのメッセージ */
.chair-message {
  position: relative;
  max-width: 800px;
  margin: 40px auto 24px;
  padding: 36px 40px 28px;
  background: white;
  border-top: 4px solid #044e87;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* 大きな引用符(飾り) */
.chair-message::before {
  content: "“";
  position: absolute;
  top: 4px;
  right: 24px;
  font-family: Georgia, serif;
  font-size: 90px;
  line-height: 1;
  color: #044e87;
  opacity: 0.15;
}

.chair-label {
  margin: 0;
  color: #044e87;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 3px;
}

.chair-message h2 {
  margin: 6px 0 20px;
  padding: 0;
  border: none;
  font-size: 24px;
}

.chair-text p {
  margin: 0 0 14px;
  color: #333;
  font-size: 16px;
  line-height: 2;
}

.chair-from {
  margin: 20px 0 0;
  text-align: right;
  color: #044e87;
  font-weight: bold;
}

.chair-from span {
  margin-left: 6px;
  font-size: 13px;
  font-weight: normal;
  color: #666;
}

@media (max-width: 768px) {
  .chair-message {
    margin: 24px 16px;
    padding: 26px 22px 22px;
  }

  .chair-message h2 {
    font-size: 20px;
  }

  .chair-text p {
    font-size: 15px;
  }
}
 

/* OB会 特集カード */
.news-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  max-width: 1200px;
  margin: 0 auto 32px;
  background: white;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.feature-photos {
  display: grid;
  grid-template-rows: 2fr 1fr;
  gap: 4px;
  background: #ddd;
}

.feature-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-main {
  min-height: 280px;
}

.feature-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  min-height: 140px;
}

.feature-body {
  padding: 40px 36px;
  border-left: 6px solid #044e87;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-body h3 {
  font-size: 26px;
  line-height: 1.5;
  margin: 16px 0 14px;
}

.feature-body p {
  line-height: 1.9;
  color: #555;
}

.feature-body .news-date {
  color: #777;
}

/* スマホでは縦並び */
@media (max-width: 768px) {
  .news-feature {
    grid-template-columns: 1fr;
  }

  .feature-body {
    padding: 28px 22px;
    border-left: none;
    border-top: 6px solid #044e87;
  }

  .feature-body h3 {
    font-size: 22px;
  }
}
/* 「トップページに戻る」リンク */
.back-link,
.back-link:visited {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover {
  text-decoration: underline;
}
/* 学年の見出し */
.grade-title {
  margin: 36px 0 16px;
  padding-left: 12px;
  border-left: 5px solid #044e87;
  font-size: 20px;
}

/* メンバーカードの並び */
.member-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* パソコン:4列 */
  gap: 20px;
}

/* スマホ:2列 */
@media (max-width: 768px) {
  .member-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.member-card {
  background: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.2s;
}

.member-card:hover {
  transform: translateY(-4px);
}

.member-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #ddd;
}

.member-info {
  padding: 16px 18px 20px;
}

.member-name {
  display: block;
  font-size: 18px;
}

.member-meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #777;
}

.member-info p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}

html {
  scroll-behavior: smooth;
}

.result-block {
  max-width: 800px;
  margin: 32px auto 0;
  padding: 24px 28px;
  background: #1c1f26;
  border-left: 5px solid #4da3e8;
  text-align: left;
}

.result-date {
  margin: 0;
  font-size: 13px;
  color: #9aa0ab;
}

.result-block h3 {
  margin: 8px 0 16px;
  font-size: 20px;
}

.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.result-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid #ffffff22;
}

.result-rank {
  min-width: 5.5em;
  padding: 3px 10px;
  background: #044e87;
  color: white;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
}

.result-player {
  font-size: 16px;
}

/* 年度の一覧 */
.year-list {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  gap: 16px;
}

.year-card,
.year-card:visited {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 28px;
  background: white;
  color: #222;
  text-decoration: none;
  border-left: 6px solid #044e87;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s;
}

.year-card:hover {
  transform: translateX(6px);
}

.year-card strong {
  font-size: 22px;
}

.year-card span {
  font-size: 14px;
  color: #666;
}

/* 年度ページ:黒背景の結果ブロックが映えるように */
.results-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: #111;
  color: white;
}
/* 「もっと見る」ボタン */
.btn-more,
.btn-more:visited {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: #044e87;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  border-radius: 4px;
  transition: transform 0.2s, opacity 0.2s;
}

.btn-more:hover {
  opacity: 0.85;
  transform: translateX(4px);
}

/* 団体戦の対戦一覧 */
.match-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.match {
  display: grid;
  grid-template-columns: 5em 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #ffffff22;
}

.match-round {
  font-size: 12px;
  color: #9aa0ab;
}

.match-team {
  font-size: 16px;
}

/* 左側(名工大)は右寄せ、右側(対戦校)は左寄せ */
.match-round + .match-team {
  text-align: right;
  font-weight: bold;
}

.match-score + .match-team {
  text-align: left;
}

.match-score {
  min-width: 4.5em;
  padding: 4px 12px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 2px;
}

/* 勝ち:青く強調 */
.match.win .match-score {
  background: #2a86d0;
  color: white;
}

/* 負け:グレー */
.match.lose .match-score {
  background: #3a3d45;
  color: #c5c8ce;
}

/* 引き分け(使う場合) */
.match.draw .match-score {
  background: #6b7280;
  color: white;
}

/* スマホ:回戦名を上に出して2段にする */
@media (max-width: 768px) {
  .match {
    grid-template-columns: 1fr auto 1fr;
    row-gap: 6px;
  }

  .match-round {
    grid-column: 1 / -1;
  }

  .match-team {
    font-size: 14px;
  }
}

.result-summary {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  background: #044e87;
  font-weight: bold;
}

/* 予定の一覧 */
.schedule-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.schedule-item {
  display: flex;
  gap: 24px;
  align-items: center;
  background: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  padding: 20px 24px;
  border-left: 6px solid #044e87;
}

/* 日付ブロック */
.schedule-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
  color: #044e87;
  text-align: center;
}

.schedule-month {
  font-size: 14px;
  font-weight: bold;
}

.schedule-day {
  font-size: 32px;
  font-weight: bold;
  line-height: 1.2;
}

.schedule-week {
  font-size: 12px;
  color: #777;
}

.schedule-body h3 {
  margin: 8px 0 6px;
  font-size: 18px;
}

.schedule-body p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

/* スマホ */
@media (max-width: 768px) {
  .schedule-item {
    gap: 16px;
    padding: 16px;
  }

  .schedule-date {
    min-width: 72px;
  }

  .schedule-day {
    font-size: 26px;
  }
}

/* ===== 近況報告ページ:見やすくする ===== */

/* 年代ジャンプボタン */
.report-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.report-nav a,
.report-nav a:visited {
  padding: 6px 14px;
  border: 1px solid #044e87;
  border-radius: 999px;
  color: #044e87;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.report-nav a:hover {
  background: #044e87;
  color: white;
}

/* カードを2列に(上書き) */
.report-list {
  max-width: 1000px;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: start;
}

/* 年代の見出しは横いっぱい */
.report-list .grade-title {
  grid-column: 1 / -1;
  margin: 28px 0 0;
  padding: 10px 16px;
  background: #044e87;
  color: white;
  border-left: none;
  border-radius: 4px;
  font-size: 20px;
  scroll-margin-top: 70px;
}

.report-list .grade-title small {
  margin-left: 12px;
  font-size: 13px;
  font-weight: normal;
  opacity: 0.8;
}

/* カード */
.report-card {
  border-left: none;
  border-top: 4px solid #044e87;
  border-radius: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.report-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}

.report-name {
  flex-wrap: wrap;
  row-gap: 4px;
}

.report-name strong {
  font-size: 17px;
}



/* 卒業年は右端へ */
.report-year {
  background: #eaf2fa;
  border: none;
}

.report-card p {
  font-size: 15px;
}

/* スマホは1列 */
@media (max-width: 768px) {
  .report-list {
    grid-template-columns: 1fr;
  }

  .report-nav {
    gap: 6px;
  }

  .report-nav a {
    font-size: 12px;
    padding: 5px 10px;
  }
}

/* OB・OGの皆様へ */
.ob-notice {
  margin-top: 20px;
  padding: 20px 24px;
  background: white;
  border-left: 6px solid #044e87;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.ob-notice h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #044e87;
}

.ob-notice p {
  margin: 0;
  line-height: 1.9;
}

/* フォーム全体 */
.ob-form {
  display: grid;
  gap: 28px;
  margin-top: 28px;
  padding: 32px;
  background: white;
}

/* 2列に並べる行 */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.form-field {
  display: grid;
  gap: 10px;
}

/* ラベル(必須の * 付き) */
.form-label {
  color: #044e87;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 3px;
}

.form-field.required .form-label::after {
  content: " *";
}

/* 入力欄 */
.ob-form input,
.ob-form select,
.ob-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 18px 22px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 0;
  font-size: 16px;
  font-family: inherit;
  color: #222;
}

.ob-form input::placeholder,
.ob-form textarea::placeholder {
  color: #888;
}

.ob-form textarea {
  resize: vertical;
}

.ob-form input:focus,
.ob-form select:focus,
.ob-form textarea:focus {
  outline: none;
  background: white;
  border-color: #044e87;
}

/* 下の行:注意書き(左)と送信ボタン(右) */
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 8px;
}

.form-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: #666;
}

.form-submit {
  flex-shrink: 0;
  padding: 22px 48px;
  background: #044e87;
  color: white;
  border: none;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 3px;
  cursor: pointer;
  transition: background 0.2s;
}

.form-submit span {
  margin-left: 10px;
  display: inline-block;
  transition: transform 0.2s;
}

.form-submit:hover {
  background: #0a6bb8;
}

.form-submit:hover span {
  transform: translateX(6px);   /* 矢印が右に動く */
}

/* スマホ:縦に並べる */
@media (max-width: 768px) {
  .ob-form {
    padding: 20px;
    gap: 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .form-submit {
    padding: 18px;
  }
}

/* 全体写真 */
.join-photo {
  max-width: 1000px;
  margin: 32px auto 0;
  padding: 0 20px;
}

.join-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.join-photo-caption {
  margin: 8px 0 0;
  font-size: 12px;
  color: #777;
  text-align: right;
}

.join-page {
  padding-bottom: 40px;
}

/* 特徴カード */
.join-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.join-point {
  padding: 24px 20px;
  background: white;
  border-top: 4px solid #044e87;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.join-point-num {
  color: #044e87;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 2px;
  opacity: 0.5;
}

.join-point h3 {
  margin: 4px 0 8px;
  font-size: 18px;
}

.join-point p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: #555;
}

/* 年間スケジュール */
.year-timeline {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-left: 3px solid #044e87;
}

.year-timeline li {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-left: 20px;
  padding: 16px 20px;
  margin-bottom: 12px;
  background: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* 縦線の上の丸い印 */
.year-timeline li::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 26px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #044e87;
  border: 3px solid #f4f4f4;
  box-sizing: content-box;
}

.year-month {
  flex-shrink: 0;
  min-width: 56px;
  padding: 4px 0;
  background: #044e87;
  color: white;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
}

.year-timeline h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.year-timeline p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #666;
}

/* よくある質問 */
.faq-item {
  margin-top: 12px;
  background: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "Q.";
  margin-right: 10px;
  color: #044e87;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: #044e87;
  font-size: 20px;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 20px 18px 46px;
  line-height: 1.9;
  color: #555;
}

/* 連絡ボタン */
.join-cta {
  text-align: center;
}

.join-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.join-cta-buttons .btn-more {
  margin-top: 0;
}

/* スマホ */
@media (max-width: 768px) {
  .join-points {
    grid-template-columns: 1fr;
  }

  .year-timeline li {
    gap: 12px;
    padding: 14px;
  }

  .faq-item p {
    padding-left: 20px;
  }
}

/* ヘッダーのInstagramマーク */
.navigation a.nav-insta {
  display: flex;
  align-items: center;
  padding: 8px;
  border: 1px solid #ffffff55;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.navigation a.nav-insta::after {
  display: none;            /* メニューの下線は出さない */
}

.navigation a.nav-insta:hover {
  background: white;
  color: #20242b;
  border-color: white;
}

/* CONTACTのボタン:マークと文字を横に並べる */
.insta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.navigation a.nav-insta svg {
  width: 36px;
  height: 36px;
}

.navigation a.nav-insta {
  padding: 10px;
}

/* 近況報告・新入生ページなど:ヘッダー右上のInstagramマーク */
.report-header {
  position: relative;      /* マークの位置の基準にする */
}

.report-header .nav-insta {
  position: absolute;
  top: 24px;
  right: 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #044e87;
  border: none;
  border-radius: 50%;
  color: white;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.report-header .nav-insta svg {
  width: 32px;
  height: 32px;
}

.report-header .nav-insta:hover {
  background: #0a6bb8; 
  color: white;
}

/* スマホは少し小さく */
@media (max-width: 768px) {
  .report-header .nav-insta {
    top: 16px;
    width: 44px;
    height: 44px;
  }

  .report-header .nav-insta svg {
    width: 26px;
    height: 26px;
  }
}

/* ページ下の「戻る」欄 */
.page-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 18px 20px;
  background: white;
}

.back-button,
.back-button:visited {
  padding: 12px 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #044e87;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.back-button:hover {
  background: white;
  color: #044e87;
}

/* ペアは途中で折り返さない */
.result-player .pair {
  display: block;
  white-space: nowrap;
}

/* スマホ:成績ラベルを上、名前を下にして幅を広く使う */
@media (max-width: 768px) {
  .result-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .result-player {
    font-size: 15px;
    line-height: 1.9;
  }
}

/* パソコン:今までと同じ見た目(写真を全面に敷く) */
.hero-slides {
  position: absolute;
  inset: 0;
}

@media (max-width: 768px) {
  /* 写真の高さは画面幅に合わせる */
  .hero {
    position: relative;
    height: auto;
    display: block;
  }

  .hero-slides {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 3 / 2;
  }

  /* 文字は写真の上に重ねて、下寄せにする */
  .hero .hero-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 16px 6% 18px;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.75),
      rgba(0, 0, 0, 0.2) 60%,
      transparent
    );
  }

  .hero-text h2 {
    margin: 0;
    font-size: 14px;
    letter-spacing: 2px;
    line-height: 1.6;
  }

  /* 文字の上の白い線は、スマホでは小さく */
  .hero-text h2::before {
    width: 36px;
    margin-bottom: 10px;
  }

  .hero-text .btn-more {
    margin-top: 10px;
    padding: 8px 16px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;   /* 左:ロゴ / 右:Instagram */
    align-items: center;
    gap: 4px 8px;
    padding: 8px 5% 4px;
    margin-bottom: 0;
  }

  /* 1行目 左:ロゴ */
  .site-header .site-logo {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    padding-right: 0;
    justify-content: flex-start;
    gap: 8px;
  }

  .logo-img {
    height: 32px;
  }

  .logo-text strong {
    font-size: 14px;
  }

  .logo-text small {
    display: none;
  }

  /* 1行目 右:Instagram(位置固定をやめる) */
  .site-header .nav-insta {
    position: static;
    grid-column: 2;
    grid-row: 1;
    width: 34px;
    height: 34px;
    min-width: 34px;        /* 縮まないように */
    flex: none;
    justify-self: end;      /* 右端に寄せる(横に伸ばさない) */
    align-self: center;     /* 縦にも伸ばさない */
    aspect-ratio: 1 / 1;    /* 必ず正方形→丸にする */
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    border-radius: 50%;
  }

  .site-header .nav-insta svg {
    width: 20px;
    height: 20px;
  }

  /* 2行目:メニュー(横にスクロール) */
  .site-header .navigation {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;                /* これがないと横スクロールが効かない */
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-header .navigation::-webkit-scrollbar {
    display: none;
  }

  .site-header .navigation a {
    flex: 0 0 auto;
    padding: 6px 0;
    font-size: 11px;
    letter-spacing: 1px;
    white-space: nowrap;
  }
}

/* 男子が勝った試合:青(今までと同じ) */
.match.win.men .match-score {
  background: #2a86d0;
  color: white;
}

/* 女子が勝った試合:ピンク */
.match.win.women .match-score {
  background: #e0568f;
  color: white;
}

.gender-title {
  margin: 24px 0 8px;
  padding-left: 10px;
  font-size: 15px;
  letter-spacing: 2px;
  border-left: 4px solid #2a86d0;
}

.gender-title.women {
  border-left-color: #e0568f;
}

/* 女子:ブロックの左の縦線 */
.result-block.women {
  border-left-color: #e0568f;
}

/* 女子:最終結果のラベル */
.result-summary.women {
  background: #c93f78;
}

@media (max-width: 768px) {
  .report-nav {
    flex-wrap: nowrap;            /* 折り返さず1行にする */
    justify-content: space-between;
    gap: 4px;
    padding: 8px 10px;
    overflow-x: auto;
    scrollbar-width: none;        /* 入りきらないときは横にスクロール */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  }

  .report-nav::-webkit-scrollbar {
    display: none;
  }

  .report-nav a,
  .report-nav a:visited {
    flex: 1 0 auto;               /* 幅を均等に近づける */
    padding: 7px 6px;
    border: none;
    border-radius: 999px;
    background: #eaf2fa;
    color: #044e87;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
  }

  .report-nav a:hover,
  .report-nav a:active {
    background: #044e87;
    color: white;
  }
}

/* ===== 近況報告ページ:PDFコーナー・メールアドレス変更 ===== */
/* style.css の一番下に、この中身をそのまま貼り付けてください */
 
.pdf-section,
.mail-change {
  max-width: 900px;
  margin: 24px auto;
  padding: 28px 24px;
  background: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
 
.pdf-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}
 
.pdf-buttons .btn-more {
  margin-top: 0;
}
 
/* 白い枠のボタン */
.btn-outline,
.btn-outline:visited {
  background: white;
  color: #044e87;
  border: 1px solid #044e87;
}
 
.btn-outline:hover {
  background: #eaf2fa;
  opacity: 1;
  transform: none;
}
 
.pdf-frame {
  width: 100%;
  height: 70vh;
  border: 1px solid #ddd;
  background: #f4f4f4;
}
 
.mail-change .ob-form {
  padding: 0;
  margin-top: 20px;
}
 
@media (max-width: 768px) {
  .pdf-section,
  .mail-change {
    margin: 16px;
    padding: 22px 18px;
  }
 
  /* スマホでは、ページ内の表示をやめて、ボタンで開く */
  .pdf-frame {
    display: none;
  }
}

.btn-more,
.btn-more:visited {
  width: fit-content;       /* 文字の幅に合わせる */
  align-self: flex-start;   /* 縦並びの中でも、左に寄せて伸ばさない */
}
