body {
  background-attachment: fixed;
  background-color: #000000;
  background-size: 100% 100%;
  background-repeat : no-repeat;
  background-position: center center;
  background-image: url(./img/map-bak.jpg);
}
.link-switch-group {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

/* 各メニューのリスト項目 */
.link-switch-group li {
    margin: 0;
}

/* リンク（ボタン）のデザイン */
.link-switch-group li a {
    /* display: block; から以下に変更してFlexボックス化する */
    display: flex;                /* ★変更：文字配置を自在にするため */
    align-items: center;          /* ★追加：文字を上下中央に揃える */
    justify-content: flex-start;  /* ★追加：文字を左寄せにする */
    padding: 14px 1px 14px 22px;;
    background-color: rgb(0 0 0 / 10%);
    color: #cfb67e;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: -5px -5px;
    font-size: 14px;
    font-weight: 500;
    /* text-align: center; 変更：不要になったため削除、または left に */
    text-align: left;             /* ★変更：左寄せにする */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

/* マウスを乗せたとき（ホバー時）の動き */
.link-switch-group li a:hover {
    background-color: rgb(0 0 0 / 5%);
    color: #9e7106;
    border-color: #402f08;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.2);
}

/* 1番目の「暇つぶし･頭の体操サイト」（タイトル風）の装飾 */
.link-switch-group li:first-child {
    grid-column: 1 / -1;
}
.link-switch-group li:first-child a {
    background-color: #f8f9fa;
    color: #111111;
    font-weight: bold;
    font-size: 14px;
    padding: 6px 16px;
    border-left: 5px solid #007bff;
    text-align: left;
    pointer-events: none; /* タイトルなのでクリック不可に */
}
.break-title-trend {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  font-family: 'Hiragino Maru Gothic ProN', 'Yu Gothic', sans-serif;
  font-size: 2rem;
  font-weight: bold;
  color: #6d5c56;
  background: #fdf8f5;
  padding: 6px 40px;
  border-radius: 50px;
  box-shadow: 
  0 8px 0 #ecdcd3,
  0 15px 20px rgba(0, 0, 0, 0.05);
  max-width: 500px;
  margin: 20px auto;
  border: 2px solid #ecdcd3;
}

.break-title-trend span {
  font-size: 1.1rem;
  color: #a6897e;
  font-weight: normal;
  display: block;
}

.rest-room {
  width: 98%;
  padding: 6px;
  text-align: center;
  border-radius: 12px;
  margin: 0 auto;
  max-width: 890px;
}

.rest-room h2 {
  color: #fff;
  font-size: 1.7rem;
  margin: 0 auto;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rainbow-bg {
  background: linear-gradient(120deg, #ff7eb3, #ff758c, #ff7eb3, #868fbc, #7f7fd5, #91eae4, #ff7eb3);
  background-size: 400% 400%;
  animation: rainbowAnimation 15s ease infinite;
}

@keyframes rainbowAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (min-width: 835px) and (max-width: 1023px) {

}
@media (min-width: 691px) and (max-width: 834px) {

}

/* 1. リストの親要素でカウンターをリセット */
ul, ol {
  counter-reset: my-counter;
}

/* 2. 表示したい（href="#" ではない）リストだけカウンターを1増やす */
li.btn-list:not(:has(a[href="#"])) {
  counter-increment: my-counter;
}

/* 3. カウンターが増加した要素（2行目以降）のリンク前にのみ、赤色の連番を挿入 */
li.btn-list:not(:has(a[href="#"])) a::before {
  content: "(" counter(my-counter, decimal-leading-zero) ").";
  color: red; /* 番号のみを赤色に指定 */
}

#cover img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
