/* マリオカートワールド コース一覧 CSS */
:root {
    --primary-color: #e60012; /* マリオレッド */
    --secondary-color: #ffcb05; /* マリオイエロー */
    --accent-color: #00a0e9; /* マリオブルー */
    --bg-color: #f8f8f8;
    --text-color: #333;
    --light-gray: #eaeaea;
    --dark-gray: #666;
    --white: #fff;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2px;
}
body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'メイリオ', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ヘッダー */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.logo {
    height: 60px;
    width: auto;
}

/* セクション共通 */
section {
    padding: 40px 0;
}

section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto;
    border-radius: 2px;
}

/* イントロ */
.intro {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.intro p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* コース一覧 */
.course-list {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 20px 0;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.course-item {
    text-align: center;
    transition: var(--transition);
}

.course-item:hover {
    transform: translateY(-5px);
}

.course-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    padding: 10px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.course-item a:hover {
    background-color: var(--light-gray);
    box-shadow: var(--shadow);
}

.course-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid var(--primary-color);
    object-fit: cover;
    background-color: #f0f0f0;
}

.course-name {
    font-weight: bold;
    font-size: 0.9rem;
}

/* コース詳細 */
.course-detail {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    overflow: hidden;
    padding-bottom: 20px;
}

.course-detail h3 {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px;
    font-size: 1.5rem;
    text-align: center;
    position: relative;
}

.course-image {
    width: 100%;
    max-height: 549px;
    overflow: hidden;
}

.detail-image {
    width: 100%;
    height: auto;
    display: block;
}

.course-text {
    padding: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.back-to-list {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    transition: var(--transition);
}

.back-to-list:hover {
    background-color: #c00;
    transform: translateY(-2px);
}

/* まとめ */
.summary {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 20px 0;
}

.summary p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* フッター */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.to-top {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
}

.to-top:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    header h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .course-icon {
        width: 70px;
        height: 70px;
    }

    .course-name {
        font-size: 0.8rem;
    }

    .course-detail h3 {
        font-size: 1.2rem;
    }

    .course-text {
        padding: 15px;
        font-size: 1rem;
    }

    footer .container {
        flex-direction: column;
    }

    footer p {
        margin-bottom: 10px;
    }
}

/* スマホ対応 */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    section {
        padding: 20px 0;
    }

    section h2 {
        font-size: 1.5rem;
    }

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

    .course-icon {
        width: 60px;
        height: 60px;
    }

    .course-detail h3 {
        font-size: 1.1rem;
        padding: 10px;
    }

    .course-text {
        padding: 10px;
        font-size: 0.9rem;
    }

    .back-to-list {
        margin-left: 10px;
        padding: 5px 10px;
        font-size: 0.9rem;
    }
}
/* おすすめセクション */
.recommendations {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 20px 0;
    padding-bottom: 20px;
}

.recommendations-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recommendations-grid a.push0 {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-color);
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.recommendations-grid a.push0:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.recommendations-grid img.sneak {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-color);
}

.recommendations-grid br {
    display: none;
}

.recommendations-grid a.push0:last-child {
    margin-bottom: 0;
}

/* 中サイズ画面用 */
@media (min-width: 768px) {
    .recommendations-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .recommendations-grid a.push0 {
        margin-bottom: 0;
    }
}

/* 大画面用 */
@media (min-width: 992px) {
    .recommendations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* フッター著作権表記 */
footer.copy {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 25px 0;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

footer.copy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: repeating-linear-gradient(
        -45deg,
        var(--primary-color),
        var(--primary-color) 10px,
        var(--secondary-color) 10px,
        var(--secondary-color) 20px
    );
}

footer.copy .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.contact-info, .usage-terms, .copyright {
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-info a, .copyright a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: bold;
}

.contact-info a:hover, .copyright a:hover {
    color: var(--secondary-color);
}

.contact-info img {
    vertical-align: middle;
    margin-right: 5px;
}

.usage-terms p {
    margin: 5px 0;
    position: relative;
    padding-left: 20px;
}

.usage-terms p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.copyright {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0;
    text-align: center;
}

.copyright a.push0 {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.copyright a.push0:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.copyright a.push0 img {
    margin-right: 5px;
}

/* マリオカートらしいアクセント */
.contact-info::after, .usage-terms::after {
    content: '';
    display: block;
    height: 3px;
    margin-top: 15px;
    background: linear-gradient(to right, var(--secondary-color), transparent);
    border-radius: 3px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .copyright {
        flex-direction: column;
    }

    .copyright a.push0 {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (min-width: 769px) {
    footer.copy .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .copyright {
        grid-column: 1 / 3;
    }
}
/* メニュー */
.menu-container {
  background-color: #f8f8f8;
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin-bottom: 20px;
}

.menu-container svg {
  max-width: 100%;
  height: auto;
}

/* パンくずリスト */
.breadcrumb-nav {
  background-color: #f0f0f0;
  padding: 10px 0;
  margin-bottom: 20px;
  border-top: 3px solid var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.breadcrumb-item:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url('image/mario-kart-icon.webp');
  background-size: contain;
  background-repeat: no-repeat;
  margin: 0 10px;
  opacity: 0.7;
}

.breadcrumb-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.breadcrumb-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.current-page {
  color: var(--dark-gray);
  font-weight: bold;
}

/* 更新日時とSNSボタン */
.article-info {
  background-color: var(--white);
  padding: 15px;
  margin-bottom: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.article-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.article-info .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.time {
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin: 0;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid #eee;
}

.time time {
  font-weight: bold;
}

.share-buttons {
  display: flex;
  gap: 10px;
}

.twitter-share-button,
.fb-share-button {
  background-color: #f8f8f8;
  border-radius: 5px;
  padding: 2px 5px;
  transition: transform 0.3s ease;
}

.twitter-share-button:hover,
.fb-share-button:hover {
  transform: scale(1.05);
}

.fb-share-button a {
  display: inline-block;
  background-color: #1877f2;
  color: white;
  padding: 2px 8px;
  font-size: 0.8rem;
  text-decoration: none;
  border-radius: 3px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .article-info .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .time {
    margin-bottom: 10px;
  }

  .breadcrumb {
    font-size: 0.8rem;
  }

  .breadcrumb-item:not(:last-child)::after {
    width: 15px;
    height: 15px;
    margin: 0 5px;
  }
}
/* H1テキストのアニメーション */
h1 {
  position: relative;
  display: inline-block;
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--white);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
  padding: 10px 25px;
  margin: 0;
  animation: racing-start 1.2s ease-out forwards;
  transform-origin: center;
  opacity: 0;
}

h1::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 10px;
  background: repeating-linear-gradient(
    45deg,
    var(--primary-color),
    var(--primary-color) 10px,
    var(--secondary-color) 10px,
    var(--secondary-color) 20px
  );
  border-radius: 5px;
  transform: scaleX(0);
  transform-origin: left;
  animation: checker-flag 0.8s 0.5s ease-in-out forwards;
}

h1::after {
  content: '🏁';
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  animation: flag-appear 0.5s 1s ease-out forwards;
}

@keyframes racing-start {
  0% {
    transform: translateX(-50%) scale(0.5);
    opacity: 0;
  }
  40% {
    transform: translateX(-10%) scale(0.8);
    opacity: 0.7;
  }
  70% {
    transform: translateX(5%) scale(1.05);
    opacity: 1;
  }
  85% {
    transform: translateX(-2%) scale(0.98);
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes checker-flag {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

@keyframes flag-appear {
  0% {
    transform: translateY(-50%) scale(0) rotate(-90deg);
  }
  60% {
    transform: translateY(-50%) scale(1.2) rotate(20deg);
  }
  100% {
    transform: translateY(-50%) scale(1) rotate(0deg);
  }
}

/* モバイル対応 */
@media (max-width: 768px) {
  h1 {
    font-size: 1.5rem;
    padding: 8px 15px;
  }

  h1::after {
    right: -20px;
  }
}
/* ナビゲーションボタン */
.navigation-buttons {
  margin: 30px 0;
  width: 100%;
}

.buttons-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff3333 100%);
  color: var(--white);
  text-decoration: none;
  padding: 15px 20px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.nav-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
}

.nav-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.nav-button:hover::before {
  left: 100%;
}

.button-icon {
  margin-right: 10px;
  font-size: 1.3rem;
}

.back-to-toc {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff3333 100%);
}

.related-link {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #ffaa00 100%);
}

/* PC表示 - 最大1200pxまで横長に */
@media (min-width: 768px) {
  .buttons-wrapper {
    flex-direction: row;
  }

  .nav-button {
    flex: 1;
    max-width: 590px; /* 1200px ÷ 2 - ちょっとの余白 */
  }
}
/* 動画セクション */
.video-showcase {
  margin: 40px 0;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.video-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.video-title {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.8rem;
  position: relative;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  width: auto;
}

.video-title::after {
  content: '🎮';
  margin-left: 10px;
  font-size: 1.5rem;
  vertical-align: middle;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9のアスペクト比 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 3px solid var(--primary-color);
  background-color: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 5px;
}

.video-caption {
  text-align: center;
  margin-top: 15px;
  font-style: italic;
  color: var(--dark-gray);
  padding: 10px;
  background-color: #f8f8f8;
  border-radius: 5px;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

/* PCサイズの調整 - 最大幅1200px */
@media (min-width: 768px) {
  .video-container {
    max-width: 1000px;
    margin: 0 auto;
  }

  .video-title {
    font-size: 2rem;
  }

  .video-caption {
    max-width: 800px;
    margin: 20px auto 0;
    font-size: 1.1rem;
  }
}
/* ゲームモードセクション */
.game-modes {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.mode-link {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.mode-link:hover {
    transform: translateY(-5px);
}

.mode-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mode-icon {
    width: 128px;
    height: 128px;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mode-link:hover .mode-icon {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.mode-name {
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
    .game-modes {
        gap: 15px;
    }

    .mode-icon {
        width: 100px;
        height: 100px;
    }

    .mode-name {
        font-size: 0.9rem;
    }
}

/* カップアイコンマーク */
.cup-mark-container {
  display: flex;
  margin: 15px 0;
  flex-wrap: wrap;
  gap: 10px;
}

.cup-mark {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
  margin-right: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cup-mark:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: rgba(230, 0, 18, 0.1);
}

.cup-mark img {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

.cup-mark span {
  color: var(--text-color);
  font-weight: bold;
  font-size: 0.9rem;
}

/* コース詳細ページのCSSに追加 */
.course-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.course-detail-header h2 {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .cup-mark-container {
    margin-top: 15px;
    justify-content: center;
    width: 100%;
  }

  .course-detail-header {
    flex-direction: column;
  }

  .cup-mark {
    padding: 4px 8px;
  }

  .cup-mark img {
    width: 20px;
    height: 20px;
    margin-right: 5px;
  }

  .cup-mark span {
    font-size: 0.8rem;
  }
}
/* グランプリ・サバイバルラリー一覧セクション */
.article-section {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin: 30px 0;
  padding: 20px;
  position: relative;
}

.sub-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--primary-color);
  position: relative;
}

.sub-heading .cup-icon {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

/* ホバー時のみ少し回転 */
.sub-heading:hover .cup-icon {
  transform: rotate(15deg);
}

/* グランプリ一覧 */
#grand-prix {
  background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}

#grand-prix .sub-heading {
  border-bottom-color: var(--primary-color);
}

/* サバイバルラリー一覧 */
#survival-rallies {
  background: linear-gradient(135deg, #fff 0%, #fffaf0 100%);
}

#survival-rallies .sub-heading {
  border-bottom-color: var(--secondary-color);
  color: #ff8c00;
}

/* コースリストのボタンスタイル */
.article-section .course-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-section .course-item {
  margin: 0;
}

.article-section .course-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
  border: 2px solid transparent;
  border-radius: 30px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

/* グランプリのリンクスタイル */
#grand-prix .course-link {
  border-color: rgba(230, 0, 18, 0.2);
}

#grand-prix .course-link:hover {
  background: linear-gradient(135deg, #ffe0e0 0%, #fff 100%);
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(230, 0, 18, 0.3);
}

/* サバイバルラリーのリンクスタイル */
#survival-rallies .course-link {
  border-color: rgba(255, 203, 5, 0.2);
}

#survival-rallies .course-link:hover {
  background: linear-gradient(135deg, #fff5d6 0%, #fff 100%);
  border-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 203, 5, 0.3);
}

/* コースミニアイコン */
.course-mini-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.course-link:hover .course-mini-icon {
  transform: scale(1.1);
  border-color: currentColor;
}

/* コースミニ名称 */
.course-mini-name {
  font-size: 1rem;
  flex: 1;
  text-align: left;
}

/* ホバー時のアニメーション */
.course-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateY(-50%);
  transition: left 0.6s ease;
}

.course-link:hover::before {
  left: 100%;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .article-section .course-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sub-heading {
    font-size: 1.3rem;
  }

  .sub-heading .cup-icon {
    width: 32px;
    height: 32px;
  }

  .article-section .course-link {
    padding: 10px 15px;
  }

  .course-mini-icon {
    width: 35px;
    height: 35px;
  }

  .course-mini-name {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .article-section {
    padding: 15px 10px;
  }

  .sub-heading {
    font-size: 1.2rem;
    gap: 8px;
  }

  .article-section .course-link {
    padding: 8px 12px;
    gap: 10px;
  }

  .course-mini-icon {
    width: 30px;
    height: 30px;
  }

  .course-mini-name {
    font-size: 0.85rem;
  }
}

/* タブレット向け中間サイズ */
@media (min-width: 481px) and (max-width: 992px) {
  .article-section .course-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 大画面向け */
@media (min-width: 1200px) {
  .article-section .course-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}
/* コース一覧ボタンスタイル */
.course-button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.course-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
    border: 2px solid rgba(230, 0, 18, 0.3);
    border-radius: 25px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.course-button:hover {
    background: linear-gradient(135deg, #ffe0e0 0%, #fff 100%);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(230, 0, 18, 0.3);
}

.course-button-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.course-button-name {
    flex: 1;
    text-align: left;
    line-height: 1.2;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .course-button-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .course-button-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1201px) {
    .course-button-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
