:root {
  --orange: #E85D26;
  --orange-lt: #FFF0E8;
  --navy: #0F1C2E;
  --navy-mid: #1B2D42;
  --sand: #F5EFE0;
  --border: #E0D8C8;
  --white: #FFFFFF;
  --gray: #6B6B6B;
  --font-d: 'Georgia', 'Times New Roman', serif;
  --font-b: -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

#koshien {
  background: var(--sand);
  color: var(--navy);
  font-family: var(--font-b);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── HERO ── */
.hero {
  background: var(--navy);
  padding: clamp(36px, 8vw, 60px) 20px clamp(32px, 6vw, 52px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* ── HERO 背景スライダー（slick） ── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* 写真の上に濃紺のベールをかけて文字の可読性を確保 */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 28, 46, .55) 0%, rgba(15, 28, 46, .42) 50%, rgba(15, 28, 46, .62) 100%);
}

.hero-slider,
.hero-bg .slick-list,
.hero-bg .slick-track,
.hero-slide {
  height: 100%;
}

/* slick 初期化前のチラつき防止（2枚目以降を隠す） */
.hero-slider:not(.slick-initialized) .hero-slide+.hero-slide {
  display: none;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-inner {
  position: relative;
  z-index: 3;
}

.header-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: .04em;
  white-space: nowrap;
  margin-bottom: 14px;
  position: relative;
}

.hero-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
  position: relative;
}

.hero-title {
  font-family: var(--font-d);
  font-size: clamp(32px, 9vw, 80px);
  font-weight: 400;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 10px;
  position: relative;
  letter-spacing: -.02em;
}

.hero-title .accent {
  color: var(--orange);
}

.hero-sub {
  font-size: clamp(13px, 3.5vw, 17px);
  color: rgba(255, 255, 255, .55);
  margin-bottom: 24px;
  position: relative;
  line-height: 1.8;
}

/* SP では改行タグを非表示にして自然な折り返しに任せる */
@media(max-width:480px) {
  .hero-sub br {
    display: none;
  }
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  border: .5px solid rgba(255, 255, 255, .15);
  border-radius: 4px;
  padding: 10px 16px;
  margin-bottom: 32px;
  position: relative;
}

.hero-meta-item {
  font-size: 12px;
  color: rgba(255, 255, 255, .65);
  text-align: center;
}

.hero-meta-item strong {
  color: #fff;
  display: block;
  font-size: 14px;
}

.hero-meta-sep {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, .15);
}

@media(max-width:480px) {
  .hero-meta-sep {
    display: none;
  }
}

.hero-scroll {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
  border-radius: 3px;
  box-shadow: 0 4px 16px rgba(232, 93, 38, .35);
  transition: background .15s, box-shadow .15s, transform .15s;
}

.hero-scroll:hover {
  background: #C94E1E;
  box-shadow: 0 6px 20px rgba(232, 93, 38, .45);
  transform: translateY(-1px);
}

.hero-scroll-arrow {
  font-size: 13px;
  line-height: 1;
  transition: transform .2s;
}

.hero-scroll:hover .hero-scroll-arrow {
  transform: translateY(2px);
}

/* ── SECTIONS ── */
.section {
  padding: clamp(28px, 6vw, 40px) 16px;
  max-width: 900px;
  margin: 0 auto;
}

@media(min-width:600px) {
  .section {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.section-eyebrow {
  /* 別途つける固定ヘッダーの高さぶん、アンカー着地位置をずらす */
  scroll-margin-top: 70px;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-d);
  font-size: clamp(20px, 5vw, 34px);
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.section-sub {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* ── ACCESS STRIP ── */
.access-strip {
  background: var(--navy);
  color: #fff;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 32px;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0;
}

@media(min-width:600px) {
  .access-strip {
    padding: 24px 28px;
    align-items: center;
  }
}

.a-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.a-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.a-label {
  font-size: 11px;
  color: rgba(255, 255, 255, .5);
}

.a-name {
  font-size: 13px;
  font-weight: 600;
}

.a-time {
  font-size: 11px;
  color: var(--orange);
  background: rgba(232, 93, 38, .15);
  border-radius: 2px;
  padding: 1px 6px;
  margin-top: 2px;
  display: inline-block;
}

.a-arrow {
  font-size: 18px;
  color: rgba(255, 255, 255, .25);
  margin: 0 10px;
  flex-shrink: 0;
}

/* SP：縦並び */
@media(max-width:599px) {
  .access-strip {
    flex-direction: column;
    gap: 4px;
  }

  .a-arrow {
    transform: rotate(90deg);
    margin: 4px 0 4px 11px;
  }
}

/* ── FILTER ── */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.filter-btn {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font-b);
  /* タップしやすいよう最低高さ確保 */
  min-height: 36px;
}

.filter-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.filter-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* ── TEAM CARDS ── */
/* SP:1列 → SM:2列 → MD:3列 */
.teams-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 36px;
}

@media(min-width:480px) {
  .teams-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width:720px) {
  .teams-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

.team-card {
  background: var(--white);
  border: .5px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  transition: border-color .15s, box-shadow .15s;
}

.team-card.hidden {
  display: none;
}

.team-card.has-route:hover {
  border-color: var(--orange);
  box-shadow: 0 2px 12px rgba(232, 93, 38, .08);
}

.team-card.no-route {
  cursor: default;
}

.team-card.tbd {
  opacity: .5;
}

.team-pref {
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 600;
}

.team-name {
  font-family: var(--font-d);
  font-size: 19px;
  font-weight: 400;
  margin-bottom: 3px;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.team-record {
  font-size: 11px;
  color: var(--gray);
  margin-bottom: 12px;
}

.team-record .debut {
  color: var(--orange);
  font-weight: 600;
}

/* ボタン：タップ面積を確保 */
.bus-cta {
  position: relative;
  text-align: center;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  /* 右の矢印ぶんの余白を確保 */
  padding: 11px 32px 11px 14px;
  border-radius: 3px;
  text-decoration: none;
  letter-spacing: .03em;
  transition: background .15s;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 「→」の代わりにCSSの山形矢印。区間表示の「→」と混同させない */
.bus-cta::after {
  position: absolute;
  content: '';
  width: 8px;
  height: 8px;
  border-top: 1px solid #ffffff;
  border-right: 1px solid #ffffff;
  transform: rotate(45deg);
  right: 20px;
  top: 0;
  bottom: 0;
  margin: auto;
  transition: all 0.3s;
}

.bus-cta:hover {
  background: #C94E1E;
}

.bus-cta:hover::after {
  right: 14px;
}

.no-route-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #E8E4DC;
  color: #999;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 0;
  border-radius: 3px;
  cursor: default;
  border: none;
  letter-spacing: .03em;
  min-height: 44px;
  width: 100%;
}

.tbd-badge {
  font-size: 11px;
  color: var(--gray);
  background: #f5f2eb;
  border: 1px dashed var(--border);
  border-radius: 3px;
  padding: 8px;
  text-align: center;
}

/* ── NOTE ── */
.note-bar {
  background: var(--orange-lt);
  border-left: 3px solid var(--orange);
  padding: 12px 16px;
  border-radius: 0 4px 4px 0;
  font-size: 12px;
  color: var(--navy);
  line-height: 1.7;
  max-width: 852px;
  margin: 0 auto 36px;
}

@media(min-width:600px) {
  .note-bar {
    padding: 14px 18px;
  }
}

/* ── HOW TO ── */
.howto {
  background: var(--navy-mid);
  padding: clamp(28px, 6vw, 40px) 16px;
}

@media(min-width:600px) {
  .howto {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.howto-inner {
  max-width: 900px;
  margin: 0 auto;
}

.howto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
}

@media(min-width:600px) {
  .howto-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.howto-step {
  background: rgba(255, 255, 255, .05);
  border: .5px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  padding: 18px;
}

.howto-n {
  font-family: var(--font-d);
  font-size: 34px;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
  font-weight: 400;
}

.howto-head {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.howto-body {
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
  line-height: 1.7;
}

.bread {
  background: #ffffff;
}

ol.path {
  display: flex;
  gap: 10px;
  font-size: .8em;
  align-items: center;
  padding: 5px 5px 3px 5px;
  background: #ffffff;
  color: #333333;
  max-width: 1140px;
  margin: auto;
}

ol.path li a {
  color: #0168b7;
}

ol.path li:last-child a {
  color: #333333;
}

ol.path li a:after {
  content: ">";
  display: inline-block;
  margin-left: 10px;
}

ol.path li:last-child a:after {
  content: none;
}