@charset "utf-8";
/* ページ全体に滑らかなスクロールを適用 */
html {
    scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
  font-weight: 400;
  letter-spacing: 0.05em;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
}

a {
  color: #1e90ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* フォントを見やすくするための追加スタイル */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

#page-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
}
/* スクロールボタンのスタイル */
#scrollTopBtn {
  display: none; /* 初期状態で非表示 */
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #000;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
}

#scrollTopBtn:hover {
  background-color: #555;
}


#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000; /* 他の要素に隠れないようにする */
}

#backToTop:hover {
    background-color: #0056b3;
}
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.459);
  z-index: 9999; /* スピナーが最前面に表示されるように */
  display: flex;
  justify-content: center;
  align-items: center;
}
#loadingSpinner {
  width: fit-content;
  font-size: 40px;
  font-family: system-ui,sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  color: #0000;
  -webkit-text-stroke: 1px #000;
  --l:#0000 45%,#000 0 55%,#0000 0;
  --g:0/300% 100% no-repeat text;
  background: 
    linear-gradient(-60deg,var(--l)) var(--g),
    linear-gradient( 60deg,var(--l)) var(--g);
  animation: l7 4s linear infinite;
}
#loadingSpinner:before{
  content: "ロード中";
}
@keyframes l7 {
  0%  {background-position: 100%,0   }
  50% {background-position: 0   ,0   }
  to  {background-position: 0   ,100%}
}






/* ライトモードのスタイル */
body.light-mode {
  background-color: rgb(226, 226, 226);
  color: black;
}

button.light-mode {
  background-color: #007bff;
  color: white;
}

/* ダークモードのスタイル */
body{
  transition: background-color 0.3s ease;
}  
.dark-mode {
  background-color: #323a47;
  color: white;
}
u{
    transition: background-color 0.3s ease;
}
.dark-mode{
  color:white;
}
button.dark-mode {
  background-color: #444;
  color: white;
}
.uk-width-2-3.main_content {
  background-color: #00000000 !important;  /* 背景色を強制的に変更 */
}
.uk-width-1-3.sidebar {
  background-color: #00000000 !important;  /* 背景色を強制的に変更 */
}
.uk-margin-large-top{
  background-color: #00000000 !important;  /* 背景色を強制的に変更 */
}
.uk-margin-top.uk-panel{
  background-color: #00000000 !important;  /* 背景色を強制的に変更 */
}

/* ライトモード（デフォルト） */
body.light-mode .uk-alert {
  background-color: #fff6cc;
  color: #222;
  border-left: 4px solid #ffd000;
}

/* ダークモード対応 */
body.dark-mode .uk-alert {
  background-color: #42310c;
  color: #f5f5f5;
  border-left: 4px solid #ffd000;
}



/* From Uiverse.io by kennyotsu */ 
.card {
  /* color used to softly clip top and bottom of the .words container */
  --bg-color: #212121;
  background-color: var(--bg-color);
  padding: 1rem 2rem;
  border-radius: 1.25rem;
}
.loader {
  color: rgb(124, 124, 124);
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 25px;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  height: 40px;
  padding: 10px 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  border-radius: 8px;
}

.words {
  overflow: hidden;
  position: relative;
}
.words::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    var(--bg-color) 10%,
    transparent 30%,
    transparent 70%,
    var(--bg-color) 90%
  );
  z-index: 20;
}

.word {
  display: block;
  height: 100%;
  padding-left: 300px;
  color: #6a9cfa;
  animation: spin_4991 4s infinite;
}

@keyframes spin_4991 {
  10% {
    -webkit-transform: translateY(-102%);
    transform: translateY(-102%);
  }

  25% {
    -webkit-transform: translateY(-100%);
    transform: translateY(-100%);
  }

  35% {
    -webkit-transform: translateY(-202%);
    transform: translateY(-202%);
  }

  50% {
    -webkit-transform: translateY(-200%);
    transform: translateY(-200%);
  }

  60% {
    -webkit-transform: translateY(-302%);
    transform: translateY(-302%);
  }

  75% {
    -webkit-transform: translateY(-300%);
    transform: translateY(-300%);
  }

  85% {
    -webkit-transform: translateY(-402%);
    transform: translateY(-402%);
  }

  100% {
    -webkit-transform: translateY(-400%);
    transform: translateY(-400%);
  }
}

/* ダークモード */
.dark-mode h1 {
  color: #FFF;
}
.dark-mode h2 {
  color: #FFF;
}
.dark-mode h3{
  color:#fff
}
 .uk-text-small.uk-text-right{
display: none;
}

[name="template_id"] {
   display: none !important;
}
label[for="template_caaa"]{
  display: none !important;
}
label[for="template_car"]{
  display: none !important;
}
label[for="template_carDB"]{
  display: none !important;
}
.uk-link-muted {
  color:black
}
.dark-mode .uk-link-muted {
  color: white !important;
}
.uk-container.uk-container-center.sp{
    background-color: #00000000 !important;  /* 背景色を強制的に変更 */
}
#wiki_menu{
  background-color: #00000000 !important;
}
#comment-form{
  background-color: #00000000 !important;
}
.dark-mode a[href="/crashofcars_jp"] {
  color: white !important;
}
#bookmarkButton {
  color: gold;
  font-size: 32px;
  transition: transform 0.2s;
}

#bookmarkButton:hover {
  transform: scale(1.2);
}
/* From Uiverse.io by JkHuger */
/* Default */
.theme {
  display: flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}

.theme__fill,
.theme__icon {
  transition: 0.3s;
}

.theme__fill {
  background-color: var(--bg);
  display: block;
  mix-blend-mode: difference;
  position: fixed;
  inset: 0;
  height: 100%;
  transform: translateX(-100%);
}

.theme__icon,
.theme__toggle {
  z-index: 1;
}

.theme__icon,
.theme__icon-part {
  position: absolute;
}

.theme__icon {
  display: block;
  top: 0.5em;
  left: 0.5em;
  width: 1.5em;
  height: 1.5em;
}

.theme__icon-part {
  border-radius: 50%;
  box-shadow: 0.4em -0.4em 0 0.5em hsl(0,0%,100%) inset;
  top: calc(50% - 0.5em);
  left: calc(50% - 0.5em);
  width: 1em;
  height: 1em;
  transition: box-shadow var(--transDur) ease-in-out,
		opacity var(--transDur) ease-in-out,
		transform var(--transDur) ease-in-out;
  transform: scale(0.5);
}

.theme__icon-part ~ .theme__icon-part {
  background-color: hsl(0,0%,100%);
  border-radius: 0.05em;
  top: 50%;
  left: calc(50% - 0.05em);
  transform: rotate(0deg) translateY(0.5em);
  transform-origin: 50% 0;
  width: 0.1em;
  height: 0.2em;
}

.theme__icon-part:nth-child(3) {
  transform: rotate(45deg) translateY(0.45em);
}

.theme__icon-part:nth-child(4) {
  transform: rotate(90deg) translateY(0.45em);
}

.theme__icon-part:nth-child(5) {
  transform: rotate(135deg) translateY(0.45em);
}

.theme__icon-part:nth-child(6) {
  transform: rotate(180deg) translateY(0.45em);
}

.theme__icon-part:nth-child(7) {
  transform: rotate(225deg) translateY(0.45em);
}

.theme__icon-part:nth-child(8) {
  transform: rotate(270deg) translateY(0.5em);
}

.theme__icon-part:nth-child(9) {
  transform: rotate(315deg) translateY(0.5em);
}

.theme__label,
.theme__toggle,
.theme__toggle-wrap {
  position: relative;
}

.theme__toggle,
.theme__toggle:before {
  display: block;
}

.theme__toggle {
  background-color: hsl(48,90%,85%);
  border-radius: 25% / 50%;
  box-shadow: 0 0 0 0.125em var(--primaryT);
  padding: 0.25em;
  width: 50em;
  height: 5em;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color var(--transDur) ease-in-out,
		box-shadow 0.15s ease-in-out,
		transform var(--transDur) ease-in-out;
}

.theme__toggle:before {
  background-color: hsl(48,90%,55%);
  border-radius: 50%;
  content: "";
  width: 1em;
  height: 1em;
  transition: 0.3s;
}

.theme__toggle:focus {
  box-shadow: 0 0 0 0.125em var(--primary);
  outline: transparent;
}

/* Checked */
.theme__toggle:checked {
  background-color: hsl(198,90%,15%);
}

.theme__toggle:checked:before,
.theme__toggle:checked ~ .theme__icon {
  transform: translateX(1.5em);
}

.theme__toggle:checked:before {
  background-color: hsl(198,90%,55%);
}

.theme__toggle:checked ~ .theme__fill {
  transform: translateX(0);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(1) {
  box-shadow: 0.2em -0.2em 0 0.2em hsl(0,0%,100%) inset;
  transform: scale(1);
  top: 0.2em;
  left: -0.2em;
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part ~ .theme__icon-part {
  opacity: 0;
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(2) {
  transform: rotate(45deg) translateY(0.8em);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(3) {
  transform: rotate(90deg) translateY(0.8em);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(4) {
  transform: rotate(135deg) translateY(0.8em);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(5) {
  transform: rotate(180deg) translateY(0.8em);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(6) {
  transform: rotate(225deg) translateY(0.8em);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(7) {
  transform: rotate(270deg) translateY(0.8em);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(8) {
  transform: rotate(315deg) translateY(0.8em);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(9) {
  transform: rotate(360deg) translateY(0.8em);
}

.theme__toggle-wrap {
  margin: 0 0.75em;
}

@supports selector(:focus-visible) {
  .theme__toggle:focus {
    box-shadow: 0 0 0 0.125em var(--primaryT);
  }

  .theme__toggle:focus-visible {
    box-shadow: 0 0 0 0.125em var(--primary);
  }
}
/*@charset "utf-8";*/

/*========= バー表示のためのCSS ===============*/

.scrollgress {
  z-index: 3; /*他のposition指定しているエリアより前に出すためz-indexの数字を大きく*/
  top: 70px !important; /* fixedで設置しているheaderの高さよりも下にバーを出す*/
}
/* メニューアイテム全体に共通のホバー効果 */
.menu-item,
.bookmark-button,
.favorite-title,
.theme__toggle-wrap {
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.2s ease;
}

/* 拡大をより自然にする */
.menu-item:hover,
.bookmark-button:hover,
.favorite-title:hover,
.theme__toggle-wrap:hover {
    transform: scale(1.03);
}
.menu-container.light-mode {
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.473);
}
.menu-container.dark-mode {
  box-shadow: -8px 0 12px rgba(255, 255, 255, 0.377);
}


    .timeline {
      position: relative;
      margin: 0 auto;
      padding: 20px 0;
      max-width: 600px;
      border-left: 3px solid #3498db;
    }

    .event {
      position: relative;
      margin: 20px 0;
      padding-left: 24px;
    }

    .event::before {
      content: '';
      position: absolute;
      top: 0;
      left: -9px;
      width: 16px;
      height: 16px;
      background: #3498db;
      border-radius: 50%;
      border: 2px solid white;
    }

/* ライトモード用のイベント表示 */
body.light-mode .event h3 {
  color: #2c3e50;
}
body.light-mode .event p {
  color: #555;
}

/* ダークモード用のイベント表示 */
body.dark-mode .event h3 {
  color: #ecf0f1; /* 明るめのグレー〜白系 */
}
body.dark-mode .event p {
  color: #ccc; /* ライトグレーで読みやすさ確保 */
}


.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    z-index: 11999;
}

.confetti {
  position: relative;
  box-shadow: 0 1px 8px rgba(0,0,0,0.2);
  border-radius: 6px;
  background: #000;
  width: 200px;
  height: 200px;
}

.confetti > span {
  display: block;
  position: absolute;
  opacity: 0;
}

.confetti > span > span {
  display: block;
  width: 100%;
  height: 100%; }

.confetti > span > span > span {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes rotateY {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

@keyframes rotate360 {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}



.table-wrap {
    overflow-x: auto; /* 横スクロールを許可 */
}

.table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap; /* 折り返しを防ぐ */
}

.table th,
.table td {
    border: 2px solid #eee;
    padding: 4px 8px;
}

.table th {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;               /* 重なり順を高く */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1) !important; /* 見やすく影をつける */
    margin: 0;  /* 余白をリセット */
    overflow: hidden !important;  /* 余計なスクロールの防止 */
}
