@charset "utf-8";
body{
  background-color: whitesmoke;
}
.nav-link:hover {
  /* color: #dee2e6 !important; 薄いグレー */
  background-color: rgba(255, 255, 255, 0.2) !important; /* ホバー時の背景色を薄い白に */
  border-radius: .25rem !important; /* 角を丸くする */
  transition: all 0.3s ease !important; /* スムーズなトランジション効果 */
}
.nav-link:active {
  color: #fff !important; /* 白 */
  background-color: #0d6efd !important; /* 薄い青 */
  border-radius: .25rem !important; /* 角を丸くする */
}

/* ローディングアニメーション用のCSS */
.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: #0d6efd; /* スピナーの色 */
  animation: spin 1s ease-in-out infinite;
}
/* アニメーションの定義 */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 画面左に消えるアニメーション */
.slide-out-left {
  /* position: absolute; 親要素の`#main`に対して絶対位置 */
  top: 0;
  left: 0;
  animation: slideOutLeft 0.5s forwards;
}
@keyframes slideOutLeft {
  from {
    transform: translateX(0); /* 開始位置（画面中央） */
    opacity: 1; /* 不透明 */
  }
  to {
    transform: translateX(-100%); /* 終了位置（画面左外） */
    opacity: 0; /* 透明 */
  }
}
/* 画面右から現れるアニメーション */
.slide-in-right {
  /* position: absolute; 親要素の`#main`に対して絶対位置 */
  top: 0;
  left: 0; /* 初期位置を画面右外に設定 */
  animation: slideInRight 0.5s forwards;
}
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0); /* 画面中央に移動 */
    opacity: 1;
  }
}
/* 非表示にするためのクラス */
.d-none {
  display: none !important;
}

@media (max-width: 767px) {
  .card-button {
    flex-direction: column; /* 縦方向に並べる */
    align-items: center; /* 水平方向の中央揃え */
  }

  /* 縦並びになった時のボタン間の隙間 */
  .card-button button:not(:last-child) {
    margin-bottom: 1rem;
  }
}

.card-content {
  position: relative; /* 子要素の配置基準に設定 */
}

.result-icon {
  position: absolute; /* 親要素に対して絶対位置で配置 */
  top: 50%; /* 親要素の垂直方向の中央 */
  left: 50%; /* 親要素の水平方向の中央 */
  transform: translate(-50%, -50%); /* 左右と上下の両方を中央に寄せる */
  font-size: 200px;
  z-index: 10;
  font-weight: bold;
  opacity: 0.5;
}

/* チェックボックスがチェックされたときのlabelのスタイル */
input[type="checkbox"]:checked + label {
  background-color: #0d6efd; /* ボタンの背景色 */
  color: #fff;              /* テキストの色 */
  border-color: #0d6efd;    /* ボタンの枠線の色 */
}
/* デフォルトのスタイル */
.btn-outline-primary {
  /* 既存のスタイル */
  color: #0d6efd;
  border-color: #0d6efd;
  background-color: transparent;
}

/* 選択されたときのスタイル */
.btn-outline-primary.selected {
  background-color: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

.square-link {
width: 50px; /* 例：正方形の一辺の長さ /
height: 50px; / 例：正方形の一辺の長さ /
display: flex; / アイコンを中央に配置するためのFlexbox /
justify-content: center;
align-items: center;
border-radius: 0.25rem; / 必要に応じてボタンの角を丸く */
}

.square-link i {
font-size: 1.2rem; /* アイコンのサイズ調整 */
}
