/* トップページ専用
 * 通常の指定 → 条件別の調整の順序を保っています。
 * @media は画面幅などの条件です。追記前に同じセレクター名を検索してください。
 */

/* チーム紹介（越谷ボーイズ1チーム構成）
   サイト内の他の暗色セクション（選手・指導者紹介、卒団生の進路・実績 等）と
   同じ --ink を背景に採用し、赤は差し色としてのみ使うトンマナに揃える */

.team-select-section {
  position: relative;
  padding-block: clamp(40px, 4.2vw, 58px);
  background: var(--ink);
}

.team-select-section:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.06), transparent 32%);
}

.team-select-section > .container {
  position: relative;
  z-index: 1;
}

.team-select-head {
  align-items: center;
}

/* 見出し右側に「チーム紹介」タイトル＋リード文をまとめて配置 */

.team-select-intro {
  max-width: 480px;
}

.team-select-intro-title {
  margin: 0 0 10px;
  font-size: clamp(16px, 1.9vw, 20px);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #f5f2ef;
}

.team-select-intro-text {
  margin: 0;
  font-size: 12px;
  line-height: 2;
  color: #f5f2ef;
}

/* 1チームのみのため、カードは中央に適度なサイズで配置する（高さは従来の約2/3） */

.team-select-grid-single {
  grid-template-columns: 1fr !important;
  height: clamp(230px, 21vw, 295px) !important;
  max-width: 620px;
  margin: 0 auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* 画像に黒マスクをかけず、白いラベルで視認性を確保する。ボックスの高さは控えめに */

.team-select-grid-single .team-choice-copy {
  left: clamp(16px, 2.2vw, 22px);
  right: auto;
  bottom: clamp(16px, 2.2vw, 22px);
  max-width: min(80%, 340px);
  background: #fff;
  padding: clamp(11px, 1.3vw, 14px) clamp(18px, 2.2vw, 22px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  align-items: flex-start;
}

.team-select-grid-single .team-choice-copy small {
  color: var(--red);
  letter-spacing: 0.16em;
}

.team-select-grid-single .team-choice-copy strong {
  color: var(--ink);
  font-size: clamp(17px, 1.6vw, 20px);
  margin-top: 2px;
  white-space: normal;
}

.team-select-grid-single .team-choice-copy em {
  margin-top: 10px;
  padding-top: 10px;
  color: var(--ink);
  border-top-color: rgba(0, 0, 0, 0.15);
}

/* team-choice-back small はカード背景と同色で読めなくなっていたため補正 */

.team-select-grid-single .team-choice-back small {
  color: #f3d9da;
}

/* カード高さを2/3に縮めたため、裏面の余白・文字サイズも合わせて詰める */

.team-select-grid-single .team-choice-back {
  padding: clamp(20px, 3.4vw, 40px);
}

.team-select-grid-single .team-choice-back strong {
  font-size: clamp(19px, 2.3vw, 30px);
  line-height: 1.2;
}

.team-select-grid-single .team-choice-back p {
  font-size: 12px;
  line-height: 1.6;
}

.team-select-grid-single .team-choice-back em {
  margin-top: clamp(12px, 2.6vw, 26px);
  padding-top: 10px;
}

/* チーム紹介カードの右側に「歴代主要実績（直近3年間）」を並べて設置。
   画像カードは従来よりやや幅を狭め、実績エリアと2カラムで構成する。
   コンテナ（.container）内で左右の余白をなくし、このエリアの横幅を
   コンテナいっぱいまで最大化する（画像はコンテナの左端に配置される） */

.team-select-grid-with-history {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) !important;
  align-items: start;
  height: auto !important;
  width: 100%;
  max-width: none;
  margin: 0;
  gap: clamp(16px, 2.4vw, 30px);
  box-shadow: none !important;
}

/* 歴代主要実績（team-history）の方が丈が高いため、画像カードは
   スクロール中も画面上部に張り付いて追従するようにする */

.team-select-grid-with-history .team-choice {
  height: clamp(300px, 30vw, 400px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  position: sticky;
  top: 110px;
}

.team-history {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: clamp(430px, 43vw, 570px);
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.team-history-head {
  flex: none;
  padding: clamp(14px, 1.8vw, 20px) clamp(18px, 2.2vw, 24px) clamp(10px, 1.3vw, 13px);
  border-bottom: 1px solid var(--line);
}

.team-history-head .eyebrow {
  margin: 0 0 6px;
  font-size: 10px;
  color: var(--red);
}

.team-history-head h3 {
  margin: 0;
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 800;
  color: var(--ink);
}

.team-history-head h3 small {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 900;
  color: #5c554e;
}

.team-history-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 clamp(16px, 2vw, 26px) clamp(14px, 1.8vw, 20px);
}

.team-history-group + .team-history-group {
  margin-top: 10px;
}

.team-history-term {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 12px 0 7px;
  background: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--red);
  border-bottom: 2px solid var(--ink);
}

.team-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.team-history-list li {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 11px 2px;
  border-bottom: 1px solid #eee8e1;
}

.team-history-list li:last-child {
  border-bottom: 0;
}

.team-history-list time {
  font-size: 13px;
  font-weight: 900;
  color: var(--red);
}

.team-history-name {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
}

.team-history-name small {
  display: inline-block;
  margin: 0 6px 2px 0;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--ink);
  vertical-align: middle;
}

/* 期生とTEAMが両方あるものは「30期生 / teamA」のように1つのタグにまとめ、
   背景色は黒にする */

.team-history-name small.tag-term.tag-has-team {
  background: #000;
}

/* テキスト部分はタグより少し大きめに（PC表示） */

.team-history-text {
  font-size: 14px;
}

/* 結果バッジ：/boys/ の RESULTS（.result-event summary>em）と同じ見た目・アニメーションに揃える */

.team-history-list em {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid #a3191d;
  background: #8e0000;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  width: 84px;
  min-width: 84px;
  padding-inline: 6px;
}

.team-history-list em.is-champion {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #9a6500 0%, #d6a827 20%, #fff4a8 44%, #e4b83f 63%, #a66d00 82%, #f2d36b 100%);
  background-size: 220% 100%;
  border-color: #ffe89a;
  color: #271c07;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 7px 20px rgba(129, 87, 9, 0.35),
    inset 0 1px rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px rgba(255, 255, 255, 0.5);
  animation: championGold 4.8s ease-in-out infinite;
}

.team-history-list em.is-champion:before {
  content: "★";
  margin-right: 4px;
  color: #8e5b00;
  font-size: 12px;
}

.team-history-list em.is-champion:after {
  content: "";
  position: absolute;
  inset: -60% auto -60% -35%;
  width: 25%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  transform: skewX(-18deg);
  animation: championGlint 4.8s ease-in-out infinite;
}

@keyframes championGold {
  0%,
  100% {
    background-position: 0 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes championGlint {
  0%,
  58% {
    transform: skewX(-18deg) translateX(-180%);
  }

  82%,
  100% {
    transform: skewX(-18deg) translateX(620%);
  }
}

/* 選手紹介・指導者紹介（サイトのトンマナに合わせて白系背景に。斜めのラインでテキストと写真を分割） */

.home-people-section {
  padding-block: clamp(40px, 4.4vw, 60px);
  background: var(--paper);
  color: var(--ink);
}

.home-people-section .section-head p {
  max-width: 560px;
  margin: 14px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 2;
  color: #756e67;
}

.home-people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.home-people-card {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: clamp(200px, 19vw, 240px);
  background: var(--red);
  border: 1px solid var(--red);
  overflow: hidden;
  transition: border-color 0.35s,
    box-shadow 0.35s,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-people-body {
  position: relative;
  z-index: 2;
  flex: 1 1 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: clamp(18px, 2.1vw, 26px) clamp(8px, 1.6vw, 14px) clamp(18px, 2.1vw, 26px) clamp(22px, 2.4vw, 30px);
  background: var(--red);
  clip-path: polygon(0 0, 93% 0, 80% 100%, 0 100%);
}

.home-people-photo {
  position: relative;
  z-index: 1;
  flex: 0 0 44%;
  margin-left: -9%;
  overflow: hidden;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}

.home-people-card:is(:hover, .is-hover),
.home-people-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--cta-red-bright, #ae1118);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.18);
}

.home-people-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.9) contrast(1.03);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 指導者・スタッフ：横長のコラージュ画像のため、コーチの顔が収まる位置で切り出す */
.home-people-photo-staff img {
  object-position: 33% center;
}

.home-people-card:is(:hover, .is-hover) .home-people-photo img {
  transform: scale(1.08);
}

.home-people-body small {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #f3d9da;
}

.home-people-body strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #fff;
}

.home-people-body em {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  color: #fff;
}

.home-people-body em b {
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  transition: transform 0.3s;
}

.home-people-card:is(:hover, .is-hover) .home-people-body em b {
  transform: translateX(5px);
}

/* 入団案内（参考デザインのJOIN OUR TEAM構成を、現行の青系配色で再構築） */

.home-entry-section.recruit-section {
  background: linear-gradient(135deg, #0d2940 0%, #123a56 54%, #1b4d68 100%);
}

.home-entry-section.recruit-section .recruit-panel {
  background: transparent;
}

.home-entry-section.recruit-section .recruit-panel .eyebrow {
  color: #fff;
}

.home-entry-section.recruit-section .recruit-panel > p:not(.eyebrow) {
  color: #dce8ee;
}

.home-entry-section.recruit-section .recruit-actions a {
  background: #fff;
  border-color: #fff;
  color: var(--red);
}

.home-entry-section.recruit-section .recruit-actions a:first-child {
  background: #fff;
  border-color: #fff;
  color: var(--red);
}

.home-entry-section.recruit-section .recruit-actions a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* 見出しは span 単位で必ず改行させ、1文＝1行の2行表示にする。
   nowrapのままだと幅が足りない場合に横はみ出しするため、
   下の font-size 調整で各 span の幅が必ずコンテナ内に収まるようにしている */

.home-entry-section.recruit-section .recruit-panel h2 span {
  display: block;
  white-space: nowrap;
}

/* 見出しを常に2行（1span=1行）で収められるよう、幅に対して控えめなサイズに調整 */

.home-entry-section.recruit-section .recruit-panel h2 {
  font-size: clamp(24px, 2.3vw, 32px);
}

@media (max-width: 900px) {
  .home-entry-section.recruit-section .recruit-panel h2 {
    font-size: clamp(22px, 7.8vw, 31px);
  }
}

@media (max-width: 900px) {
  .home-people-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-people-card {
    min-height: 190px;
  }
}

@media (max-width: 650px) {
  .team-select-section {
    padding-block: 36px;
  }

  /* 高さを従来比+15%に調整し、上下の余白がなかった点も併せて改善 */

  .team-select-grid-single {
    height: 153px !important;
    max-width: 100%;
    margin: 8px auto 28px;
  }

  /* common.css側でこの幅における .team-choice に固定高さ(290px/270px)が
     指定されており、上のカード高さ指定と食い違ってしまうため、
     カード側の高さに追従するよう上書きする */

  .team-select-grid-single .team-choice {
    height: 100% !important;
  }

  .team-select-grid-single .team-choice-copy {
    max-width: calc(100% - 40px);
  }

  .home-people-section {
    padding-block: 32px;
  }

  .home-people-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* 画面が狭い場合はチーム紹介カードと歴代主要実績エリアを縦積みにする。
     画像との間の余白を少し広めに取り、下の余白（section の padding-bottom と
     二重になっていた分）は詰めて調整する */

  .team-select-grid-with-history {
    grid-template-columns: 1fr !important;
    height: auto !important;
    max-width: 100%;
    gap: 22px;
    margin: 8px auto 4px;
  }

  .team-select-grid-with-history .team-choice {
    height: 153px !important;
    position: relative;
    top: auto;
  }

  /* レスポンシブ時は高さを従来比3/7増にして表示件数を確保する */

  .team-history {
    height: clamp(343px, 89vw, 457px);
  }

  /* レスポンシブ時：1行目に「年月　期生　TEAM」、2行目にテキストを配置する。
     優勝/ベスト等のバッジ（em）の位置は変更しない */

  .team-history-list li {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "time tags badge" "text text badge";
    row-gap: 4px;
  }

  .team-history-list time {
    grid-area: time;
  }

  .team-history-name {
    display: contents;
  }

  .team-history-tags {
    grid-area: tags;
  }

  .team-history-text {
    grid-area: text;
    font-size: 12px;
  }

  .team-history-list em {
    grid-area: badge;
  }
}

/* スポンサー（3社のロゴカード＋スポンサー動画） */

.sponsor-section {
  background: #fff;
  padding-block: clamp(48px, 5.2vw, 72px);
}

.sponsor-lead {
  max-width: 760px;
  margin: 0 0 clamp(24px, 2.8vw, 34px);
  color: #2f2926;
  font-size: 14px;
  font-weight: 600;
  line-height: 2;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.sponsor-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  background: #fff;
  transition: box-shadow 0.35s,
    transform 0.35s;
}

.sponsor-card:is(:hover, .is-hover) {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(26, 17, 12, 0.09);
}

.sponsor-card-logo {
  display: grid;
  place-items: center;
  height: 172px;
  padding: 20px 24px;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.sponsor-card-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(260px, 100%);
  max-height: 120px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

a.sponsor-card-logo:hover img {
  transform: scale(1.04);
}

a.sponsor-card-logo:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -4px;
}

.sponsor-card.is-placeholder .sponsor-card-logo {
  background: #faf8f5;
}

.sponsor-card.is-placeholder .sponsor-card-logo img {
  width: auto;
  height: 132px;
  max-height: none;
}

.sponsor-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px 22px 22px;
}

.sponsor-card-body h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.5;
}

.sponsor-card-body p {
  margin: 0;
  color: #443d36;
  font-size: 13px;
  line-height: 1.9;
}

.sponsor-card-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding: 10px 0 4px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  transition: color 0.3s,
    border-color 0.3s;
}

.sponsor-card-link b {
  color: var(--red);
  transition: transform 0.3s;
}

.sponsor-card-link:hover {
  color: var(--red);
  border-color: var(--red);
}

.sponsor-card-link:hover b {
  transform: translate(3px, -3px);
}

/* スポンサー動画（株式会社スギモトホールディングスのカード内） */

.sponsor-card-video {
  margin: 8px 0 4px;
}

.sponsor-video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  overflow: hidden;
}

.sponsor-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* メディア掲載（org-link-row のスタイルを流用） */

.media-section {
  background: var(--paper);
  padding-block: clamp(38px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

.media-lead-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.media-lead-logo {
  flex: none;
  height: 44px;
  width: auto;
}

.media-lead {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--ink);
}

.media-lead strong {
  color: var(--red);
}

.media-links-list {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
  border-top: 0;
}

.media-links-list .org-link-row {
  border: 1px solid var(--line);
}

@media (max-width: 900px) {
  .sponsor-grid {
    grid-template-columns: 1fr;
  }

  .sponsor-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .sponsor-card-logo {
    height: auto;
    min-height: 172px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 650px) {
  .sponsor-section {
    padding-block: 36px;
  }

  .sponsor-lead {
    font-size: 13px;
  }

  .sponsor-card {
    grid-template-columns: 1fr;
  }

  .sponsor-card-logo {
    min-height: 0;
    height: 150px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sponsor-card-body {
    padding: 16px 18px 18px;
  }

  .media-section {
    padding-block: 32px;
  }

  .media-lead {
    font-size: 13px;
  }

  .media-lead-row {
    align-items: flex-start;
    gap: 12px;
  }

  .media-lead-logo {
    height: 32px;
  }
}

.org-links-section {
  background: #e9eef1;
  padding-block: clamp(38px, 4vw, 56px);
}

/* NEWSとFAQ、トップページ専用の余白調整（section汎用クラスより後に読まれるため優先される） */

.news-section {
  padding-block: clamp(26px, 2.8vw, 38px);
}

.news-section .section-head {
  margin-bottom: clamp(14px, 1.6vw, 20px);
}

.home-faq-section {
  padding-block: clamp(48px, 5.2vw, 72px);
}

.org-links-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

.org-links-head {
  position: sticky;
  top: 150px;
}

.org-links-head h2 {
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.35;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.org-links-head p {
  margin: 0;
  font-size: 13px;
  line-height: 2;
  color: #4c463f;
  max-width: 360px;
}

.org-links-list {
  border-top: 1px solid var(--line);
}

.org-link-row {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 56px 1fr 52px;
  align-items: center;
  gap: 18px;
  padding: clamp(24px, 2.6vw, 32px) clamp(18px, 2.4vw, 28px);
  border-bottom: 1px solid var(--line);
}

.org-link-row:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, var(--cta-red) 0%, var(--cta-red-bright) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.org-link-row:hover:before,
.org-link-row:focus-visible:before {
  transform: scaleX(1);
}

.org-link-num {
  position: relative;
  z-index: 1;
  font: italic 900 22px/1 Georgia,
    serif;
  color: var(--red);
  transition: color 0.3s;
}

.org-link-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.org-link-text strong {
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--ink);
  transition: color 0.3s;
}

.org-link-text small {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--red);
  transition: color 0.3s;
}

.org-link-arrow {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--red);
  display: grid;
  place-items: center;
  background: var(--red);
  transition: background 0.3s,
    border-color 0.3s;
}

.org-link-arrow b {
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  transition: transform 0.3s,
    color 0.3s;
}

.org-link-row:hover .org-link-num,
.org-link-row:focus-visible .org-link-num {
  color: #fff;
}

.org-link-row:hover .org-link-text strong,
.org-link-row:focus-visible .org-link-text strong {
  color: #fff;
}

.org-link-row:hover .org-link-text small,
.org-link-row:focus-visible .org-link-text small {
  color: rgba(255, 255, 255, 0.82);
}

.org-link-row:hover .org-link-arrow,
.org-link-row:focus-visible .org-link-arrow {
  background: #fff;
  border-color: #fff;
}

.org-link-row:hover .org-link-arrow b,
.org-link-row:focus-visible .org-link-arrow b {
  color: var(--red);
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .org-links-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .org-links-head {
    position: static;
  }
}

@media (max-width: 650px) {
  .org-link-row {
    grid-template-columns: 40px 1fr 40px;
    gap: 12px;
    padding: 22px 14px;
  }

  .org-link-num {
    font-size: 18px;
  }

  .org-link-arrow {
    width: 36px;
    height: 36px;
  }

  .org-link-arrow b {
    font-size: 14px;
  }

  .media-links-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .media-links-list .org-link-row {
    grid-template-columns: 32px 1fr 30px;
    gap: 10px;
    padding: 12px 12px;
  }

  .media-links-list .org-link-num {
    font-size: 14px;
  }

  .media-links-list .org-link-text {
    gap: 3px;
  }

  .media-links-list .org-link-arrow {
    width: 30px;
    height: 30px;
  }

  .media-links-list .org-link-arrow b {
    font-size: 12px;
  }

  .media-links-list .org-link-text strong {
    font-size: 13px;
    line-height: 1.3;
  }

  .media-links-list .org-link-text small {
    font-size: 9px;
  }
}

/* メインビジュアル */

.home-hero {
  height: calc(100svh - 124px);
  height: calc(100dvh - 124px);
  min-height: 0;
  margin: 0 !important;
  overflow: hidden;
  background: #f5f2ed;
  color: var(--ink);
  margin-top: 0 !important;
}

.home-hero-marquee {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #fff;
}

.home-hero-track {
  display: flex;
  align-items: flex-start;
  height: 100%;
  width: max-content;
  padding-top: clamp(20px, 3.4vh, 38px);
  animation: homeHeroMarquee 61s linear infinite; /* 8枚構成：1枚あたりの流れる速さを従来（6枚・46s）と同等に維持 */
  will-change: transform;
}

.home-hero-card {
  position: relative;
  flex: 0 0 auto;
  height: min(91%, 860px);
  aspect-ratio: 4 / 5;
  margin-right: clamp(14px, 1.8vw, 28px);
  border-radius: clamp(20px, 2.6vw, 40px);
  overflow: hidden;
  background: linear-gradient(150deg, #3a3632, #232019);
}

.home-hero-card:nth-child(2n) {
  margin-top: clamp(22px, 3.6vh, 44px);
}

.home-hero-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: none;
}

@keyframes homeHeroMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.home-hero-inner {
  position: relative;
  z-index: 3;
  width: min(calc(100% - var(--gutter) * 2), 1180px);
  height: 100%;
  margin: auto;
  padding: clamp(18px, 3vh, 34px) 0 clamp(32px, 4.5vh, 48px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.8vh, 20px);
}

.home-hero-copy {
  text-shadow: none;
  position: relative;
  text-align: left;
  border: 0;
  box-shadow: none;
}

.home-hero .home-hero-highlight {
  display: flex;
  flex-direction: column;
  margin: 0;
  align-items: flex-start;
  gap: 8px;
}

.home-hero-highlight span {
  display: block;
  color: var(--ink);
  font-size: clamp(28px, 3.1vw, 38px);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.035em;
  background: #fff;
  border-left: 4px solid var(--red);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  text-shadow: none;
  -webkit-text-stroke: 0;
}

@media (max-width: 1180px) {
  .home-hero {
    height: calc(100svh - 68px);
    height: calc(100dvh - 68px);
  }

  .home-hero-inner {
    gap: clamp(24px, 3.4vh, 34px);
  }

  .home-hero-copy {
    text-align: center;
  }
}

@media (max-width: 900px) {
  .home-hero {
    height: calc(100svh - 68px);
    height: calc(100dvh - 68px);
    min-height: 0;
  }

  .home-hero-inner {
    min-height: 0;
    padding: 18px 0;
    gap: 26px;
  }

  .home-hero-card {
    height: 92%;
  }
}

@media (max-width: 650px) {
  .home-hero {
    height: calc(100svh - 60px);
    height: calc(100dvh - 60px);
    min-height: 0;
    padding: 0;
    background: #111;
  }

  .home-hero-inner {
    min-height: 0;
    padding: 12px 0;
    gap: 20px;
  }

  .home-hero-copy {
    text-align: center;
  }

  .home-hero-highlight span {
    overflow-wrap: break-word;
    font-size: clamp(22px, 6.2vw, 32px);
    line-height: 1.6;
    letter-spacing: 0.01em;
    border-left-width: 3px;
  }

  .home-hero-card {
    height: 93%;
  }

  .home-hero-card:nth-child(2n) {
    margin-top: clamp(16px, 3vh, 28px);
  }
}

@media (max-width: 370px) {
  .home-hero {
    height: calc(100svh - 58px);
    height: calc(100dvh - 58px);
  }

  .home-hero-inner {
    min-height: 0;
    padding: 8px 0;
    gap: 15px;
  }

  .home-hero-highlight span {
    font-size: 22px;
    letter-spacing: 0;
  }

  .home-hero-card {
    height: 93%;
  }
}

/* メインビジュアル：流れる写真に重ねる、余白を生かした理念のコピー */
.home-hero::after {
  content: none;
}
.home-hero-inner {
  align-items: flex-start;
  justify-content: center;
  padding-block: 24px;
}
.home-hero-copy {
  width: min(100%, 760px);
  margin: 0;
  padding: 0;
  background: transparent;
}
.home-hero-highlight span {
  max-width: 100%;
  padding: 4px 20px;
}
.home-hero-subcopy {
  max-width: 100%;
  margin: 24px 0 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 500;
  line-height: 1.95;
  letter-spacing: 0.035em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  box-shadow: none;
}
.home-hero-subcopy span {
  display: table;
  max-width: 100%;
  padding: 3px 12px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  text-shadow: none;
  line-height: 1.85;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.home-hero-subcopy span + span {
  margin-top: 5px;
}

@media (max-width: 1180px) {
  .home-hero-inner {
    align-items: center;
    justify-content: center;
  }
  .home-hero .home-hero-highlight {
    align-items: center;
  }
  .home-hero-subcopy {
    margin-inline: auto;
  }
  .home-hero-subcopy span {
    margin-inline: auto;
  }
}
@media (max-width: 650px) {
  .home-hero-inner {
    align-items: center;
    justify-content: center;
    padding-block: 20px;
  }
  .home-hero .home-hero-highlight {
    align-items: center;
  }
  .home-hero-subcopy {
    margin-inline: auto;
    margin-top: 20px;
    font-size: clamp(12px, 3.25vw, 15px);
    line-height: 2;
    letter-spacing: 0;
  }
  .home-hero-subcopy span {
    margin-inline: auto;
    padding: 3px 7px;
  }
  .home-hero-copy {
    padding: 0;
  }
  .home-hero-highlight span {
    padding: 4px 12px;
  }
}
@media (max-width: 370px) {
  .home-hero-inner {
    padding-block: 16px;
  }
  .home-hero-subcopy {
    font-size: 12px;
  }
}
@media (max-height: 600px) and (min-width: 651px) {
  .home-hero-inner {
    padding-block: 20px;
  }
  .home-hero-highlight span {
    font-size: clamp(25px, 3vw, 32px);
    line-height: 1.4;
  }
  .home-hero-subcopy {
    margin-top: 14px;
    font-size: 13px;
  }
}

/* 歴代主要実績：準優勝＝銀／ベスト3＝銅 */

.team-history-list em.is-silver,
.team-history-list em.is-bronze {
  position: relative;
  overflow: hidden;
  background-size: 220% 100%;
  font-size: 13px;
  font-weight: 900;
  animation: championGold 4.8s ease-in-out infinite;
}

.team-history-list em.is-silver {
  background-image: linear-gradient(115deg, #7d848b 0%, #b9c0c6 20%, #f8fafc 44%, #c9cfd4 63%, #80878e 82%, #e3e7ea 100%);
  border-color: #f1f4f6;
  color: #1c2126;
  text-shadow: 0 1px rgba(255, 255, 255, 0.6);
  box-shadow: 0 7px 20px rgba(70, 80, 90, 0.3),
    inset 0 1px rgba(255, 255, 255, 0.8);
}

.team-history-list em.is-bronze {
  background-image: linear-gradient(115deg, #7a3f17 0%, #b5703a 20%, #f6cfa4 44%, #c98450 63%, #82441a 82%, #e2a46f 100%);
  border-color: #f4c99d;
  color: #2a1406;
  text-shadow: 0 1px rgba(255, 236, 214, 0.55);
  box-shadow: 0 7px 20px rgba(122, 63, 23, 0.32),
    inset 0 1px rgba(255, 240, 222, 0.75);
}

.team-history-list em.is-silver:before,
.team-history-list em.is-bronze:before {
  content: "★";
  margin-right: 4px;
  font-size: 12px;
}

.team-history-list em.is-silver:before {
  color: #59616a;
}

.team-history-list em.is-bronze:before {
  color: #6e3410;
}

.team-history-list em.is-silver:after,
.team-history-list em.is-bronze:after {
  content: "";
  position: absolute;
  inset: -60% auto -60% -35%;
  width: 25%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  transform: skewX(-18deg);
  animation: championGlint 4.8s ease-in-out infinite;
}
