/* ========================= */
/* 基本スタイル（背景・レイアウト） */
/* ========================= */

main {
    background-color: #fcfbfa;
    padding: 3em 1em;
    font-family: 'Kiwi Maru', 'Noto Serif JP', sans-serif;
    line-height: 1.8;
    padding-left: 100px;
  }
  
  html {
    scroll-behavior: smooth;
  }

  @media (max-width: 768px) {
    main {
      padding-left: 50px;
    }
  }
  
  
  /* ========================= */
  /* 年表リストのスタイル      */
  /* ========================= */
  
  .events {
    list-style: none;
    padding-left: 2em;
    position: relative;
  }
  
  .events li {
    font-family: 'M PLUS 1p', sans-serif;
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5em;
    line-height: 1.6;
    padding-left: 0.5em;
    margin-left: 0;
  }
  
  .events li::before {
    content: "・";
    color: #d97c00;
    margin-right: 0.5em;
    margin-left: -1em;
    position: relative;
    top: 0.1em;
  }
  
  .events li .month {
    display: inline-block;
    width: 3em;
    font-weight: bold;
    color: #d97c00;
    flex-shrink: 0;
    white-space: nowrap;  /* ← ここにも */
  }
  
  @media (max-width: 768px) {
    .events li .month {
      width: 2.5em;
    }
  }
  
  @media (max-width: 480px) {
    main {
      padding-left: 1em;  /* ← 左余白を狭くする */
      padding-right: 1em;
    }
  
    .events {
      padding-left: 0.5em;  /* ← 左インデント減らす */
    }
  
    .events li::before {
      margin-left: -2em;  /* ← ポチの位置も補正 */
    }
  
    .events li .month {
      white-space: nowrap !important;
    }
  }
  
  
  
  /* ========================= */
  /* 年代ナビゲーションボタン */
  /* ========================= */
  
  .decade-nav button {
    width: 4em;
    height: 4em;
    border: none;
    border-radius: 20%;
    font-weight: bold;
    font-size: 0.8rem;
    color: white;
    margin: 0.5em;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
  }
  
  /* ポップな色調：上から順に提案色5色 */
.decade-nav button:nth-child(1) { background: #ea5549; } /* レッドオレンジ */
.decade-nav button:nth-child(2) { background: #d18c28; } /* キャラメルマスタード */
.decade-nav button:nth-child(3) { background: #fcc800; } /* ベージュ（文字色をダークに） */
.decade-nav button:nth-child(4) { background: #008db7; } /* ミントブルー */
.decade-nav button:nth-child(5) { background: #5b2d44; } /* プラムパープル */
.decade-nav button:nth-child(6) { background: #d04f97; } /* キャンディピンクラベンダー */
.decade-nav button:nth-child(7) { background: #00ada9; } /* グリーンアップル */
  
  /* ========================= */
  /* ページ右上のナビリンク  */
  /* ========================= */
  
  .history-nav.vertical {
    position: fixed;
    top: 100px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
  }
  
  .history-nav.vertical a {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.3s ease;
  }
  
  .history-nav.vertical a:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  }
  
  .nav-button {
    background-color: #27ae60;
    color: #fff;
    padding: 0.5em;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    width: 48px;
    font-size: 0.8rem;
    transition: background 0.3s;
  }
  
  .nav-button:hover {
    background-color: #a3e4d7;
  }
  
  @media (max-width: 600px) {
    .history-nav.vertical {
      top: 10px;
      right: 10px;
      bottom: auto;
      flex-direction: row;
      gap: 6px;
    }
  
    .nav-button {
      font-size: 0.75rem;
      padding: 0.4em 0.6em;
      width: auto;
    }
  }
  
  
  /* ========================= */
  /* 「↑UP」ボタン             */
  /* ========================= */
  
  #backToTop {
    position: fixed;
    bottom: 40px;
    right: 40px;
    padding: 0.7em 1em;
    font-size: 1.5em;
    background: #924e5b;  /* お好みでレトロカラー */
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
  }
  
  #backToTop:hover {
    transform: scale(1.1);
    background: #b46674;
  }
  
  #backToTop.show {
    opacity: 1;
  }
  
  