/* スーパーマリオカートとは？CSS */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;700;800&display=swap');

:root {
  --primary-color: #ffb347;
  --secondary-color: #fffcea;
  --accent-color: #9ddcff;
  --highlight-color: #a8e05f;
  --background-color: #e82018;
  --text-color: #333;
  --metallic-light: #f0f0f0;
  --metallic-mid: #c0c0c0;
  --metallic-dark: #808080;
  --road-gray: #555;
  --road-line: #fff;
}

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

body {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.08) 75%, rgba(255, 255, 255, 0.08)),
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.08) 75%, rgba(255, 255, 255, 0.08));
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  line-height: 1.6;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

/* ヘッダー部分 */
header {
  text-align: center;
  padding: 20px 0;
  background-color: var(--primary-color);
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  border-radius: 10px 10px 0 0;
}

.license-plate {
  display: inline-block;
  font-size: 2rem;
  background: linear-gradient(135deg, #333 0%, #666 50%, #333 100%);
  color: white;
  padding: 15px 30px;
  border-radius: 10px;
  border: 5px solid var(--accent-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  margin: 20px 0;
  position: relative;
  animation: plateSlideIn 1s ease-out forwards;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  max-width: 90%;
}

@keyframes plateSlideIn {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  70% {
    transform: translateX(10%);
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.main-image {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.main-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 目次 */
.toc-container {
  margin: 30px 0;
}

.metallic-panel {
  background-color: var(--background-color);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.3);
  border: 2px solid var(--primary-color);
  position: relative;
  overflow: hidden;
}

.metallic-panel::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
  transform: rotate(30deg);
  pointer-events: none;
}

.toc-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.metallic-button {
  display: inline-block;
  padding: 10px 15px;
  background: linear-gradient(135deg, #e0e0e0 0%, #a0a0a0 100%);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2), inset 0 0 5px rgba(255, 255, 255, 0.5);
  font-weight: bold;
  transition: all 0.3s ease;
  border: 1px solid #999;
  text-align: center;
  min-width: 120px;
}

.metallic-button:hover {
  background: linear-gradient(135deg, #f0f0f0 0%, #c0c0c0 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2), inset 0 0 5px rgba(255, 255, 255, 0.5);
  color: var(--background-color);
  font-weight: 800;
}

.metallic-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), inset 0 0 5px rgba(255, 255, 255, 0.5);
}

/* パンくずリスト */
.breadcrumb-nav {
  background-color: var(--accent-color);
  padding: 10px 0;
  border-radius: 5px;
  margin-bottom: 0;
  margin-top: 10px;
}

.breadcrumb-container {
  padding: 0 15px;
}

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumb-item {
  margin-right: 5px;
  font-size: 0.9rem;
}

.breadcrumb-item::after {
  content: ">";
  margin-left: 5px;
  color: #666;
}

.breadcrumb-item:last-child::after {
  content: "";
}

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

.breadcrumb-link:hover {
  text-decoration: underline;
}

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

/* メタ情報 */
.meta-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-wrap: wrap;
}

.time {
  font-size: 0.9rem;
  color: #666;
}

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

.fb-share-button a {
  display: inline-block;
  background-color: #3b5998;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.fb-share-button a:hover {
  background-color: #2d4373;
  text-decoration: none;
}

/* メリット */
.merit-container {
  margin-bottom: 30px;
}

.merit-panel {
  background: linear-gradient(135deg, var(--background-color) 0%, #f44336 60%, #ff5722 100%);
  padding: 25px;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 4px solid var(--primary-color);
  animation: shine 3s infinite ease-in-out;
}

@keyframes shine {
  0% {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 8px 25px rgba(255, 179, 71, 0.5);
  }
  100% {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  }
}

.merit-panel::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
  opacity: 0.6;
  z-index: 1;
}

.merit-title {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 15px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
  font-weight: 800;
}

.merit-content {
  color: white;
  font-size: 1.3rem;
  font-weight: bold;
  text-align: center;
  position: relative;
  z-index: 2;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  line-height: 1.8;
}

/* コンテンツ */
.content {
  padding: 0 15px;
}

.info-section, .content-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px dashed var(--primary-color);
}

.section-title {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--background-color) 0%, #ff4f4f 100%);
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  border-left: 8px solid var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 20px;
  width: 70%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

figure {
  margin-bottom: 20px;
  text-align: center;
}

figure img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

figcaption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 5px;
}

h3 {
  font-size: 1.4rem;
  padding: 10px 0;
  border-bottom: 2px solid var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  color: var(--background-color);
  font-weight: 700;
}

h3::before {
  content: "●";
  color: var(--primary-color);
  margin-right: 10px;
  font-size: 0.8rem;
  position: relative;
  top: -3px;
}

.button-container {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.back-to-toc {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--accent-color);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 30px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 200px;
  border: 2px solid var(--highlight-color);
}

.back-to-toc:hover {
  background-color: var(--highlight-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* 基本情報 */
.game-info {
  background: linear-gradient(135deg, #222 0%, #444 100%);
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 20px;
  border: 2px solid var(--primary-color);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  color: white;
  position: relative;
  overflow: hidden;
}

.game-info::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0) 100%);
  transform: rotate(30deg);
  animation: shineInfo 5s infinite ease-in-out;
  pointer-events: none;
}

@keyframes shineInfo {
  0%, 100% {
    transform: rotate(30deg) translateX(-30%) translateY(0%);
  }
  50% {
    transform: rotate(30deg) translateX(0%) translateY(-10%);
  }
}

.game-info dl {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 15px;
  position: relative;
  z-index: 2;
}

.game-info dt {
  font-weight: bold;
  color: var(--primary-color);
  border-left: 3px solid var(--primary-color);
  padding-left: 10px;
}

.game-info dd {
  margin-bottom: 15px;
}

.game-info a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.game-info a:hover {
  color: var(--highlight-color);
  text-decoration: underline;
}

/* モード表 */
.mode-table-container {
  overflow-x: auto;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  border-radius: 10px;
}

.mode-table {
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(135deg, #222 0%, #444 100%);
  color: white;
  border: 2px solid var(--primary-color);
}

.mode-table thead {
  background-color: var(--background-color);
  font-size: 1.2rem;
}

.mode-table th,
.mode-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mode-table th {
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mode-table tbody tr {
  transition: all 0.3s ease;
}

.mode-table tbody tr:hover {
  background-color: rgba(255,179,71,0.2);
}

.mode-table tbody tr:last-child td {
  border-bottom: none;
}

/* おすすめ記事スタイル */
.recommendations-container {
  margin: 20px 0;
  background: linear-gradient(135deg, #222 0%, #444 100%);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--primary-color);
  position: relative;
  overflow: hidden;
}

.recommendations-container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0) 100%);
  transform: rotate(30deg);
  animation: shineRecommend 5s infinite ease-in-out;
  pointer-events: none;
}

@keyframes shineRecommend {
  0%, 100% {
    transform: rotate(30deg) translateX(-30%) translateY(0%);
  }
  50% {
    transform: rotate(30deg) translateX(0%) translateY(-10%);
  }
}

#recommendations {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

#recommendations a {
  flex: 0 0 calc(33.333% - 14px);
  display: block;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  margin-bottom: 0;
  box-sizing: border-box;
}

#recommendations br {
  display: none;
}

#recommendations a:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
  text-decoration: none;
  color: var(--primary-color);
}

#recommendations img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#recommendations a:hover img {
  transform: scale(1.03);
  border-color: var(--primary-color);
}

/* フッター */
.copy {
  margin-top: 50px;
  padding: 30px 15px;
  background-color: #f5f5f5;
  border-top: 3px solid var(--primary-color);
  font-size: 0.9rem;
  color: #666;
}

.copy p {
  margin-bottom: 10px;
}

.contact-info, .usage-terms {
  margin: 20px 0;
}

.copyright {
  margin-top: 20px;
  text-align: center;
  font-weight: bold;
}

/* リンクスタイル */
a {
  color: var(--background-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.breadcrumb-link {
  color: var(--text-color);
}

.breadcrumb-link:hover {
  color: var(--background-color);
}

.game-info a {
  color: var(--accent-color);
}

.game-info a:hover {
  color: var(--primary-color);
}

.copy a {
  color: var(--background-color);
  text-decoration: none;
}

.copy a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .license-plate {
    font-size: 1.5rem;
    padding: 10px 20px;
  }

  .toc-list {
    flex-direction: column;
  }

  .metallic-button {
    width: 100%;
  }

  .game-info dl {
    grid-template-columns: 1fr;
  }

  .meta-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .breadcrumb {
    font-size: 0.8rem;
  }

  .merit-title, .merit-content {
    font-size: 1.1rem;
  }

  .mode-table th,
  .mode-table td {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  #recommendations a {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .license-plate {
    font-size: 1.2rem;
    padding: 8px 15px;
  }

  .section-title {
    font-size: 1.2rem;
    padding: 8px 12px;
  }

  h3 {
    font-size: 1.1rem;
  }

  .back-to-toc {
    min-width: 100%;
    padding: 8px 15px;
  }

  #recommendations a {
    flex: 0 0 100%;
  }

  .button-container {
    flex-direction: column;
    gap: 10px;
  }
}
/* テーブル用スタイル */
.mode-table-container {
  overflow-x: auto;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  border-radius: 10px;
}

.mode-table {
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(135deg, #222 0%, #444 100%);
  color: white;
  border: 2px solid var(--primary-color);
}

.mode-table thead {
  background-color: var(--background-color);
  font-size: 1.2rem;
}

.mode-table th,
.mode-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mode-table th {
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mode-table tbody tr {
  transition: all 0.3s ease;
}

.mode-table tbody tr:hover {
  background-color: rgba(255,179,71,0.2);
}

.mode-table tbody tr:last-child td {
  border-bottom: none;
}

.mode-table a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.mode-table a:hover {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}

/* アイコン付きアイテム */
.item-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
}

.item-icon {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--primary-color);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.item-with-icon:hover .item-icon {
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(255, 179, 71, 0.4);
  border-color: var(--accent-color);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .mode-table th,
  .mode-table td {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .item-with-icon {
    gap: 6px;
  }

  .item-icon {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .mode-table th,
  .mode-table td {
    padding: 6px 8px;
    font-size: 0.8rem;
  }

  .item-with-icon {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

  .item-icon {
    width: 20px;
    height: 20px;
  }
}
