/* 基本設定 */
body {
    background-color: #f0f0f0;
    color: #333;
    font-family: "MS PGothic", "Osaka", sans-serif;
    margin: 0;
    padding: 20px;
    
}

.container {
    display: flex;
    max-width: 900px;
    margin: 0 auto;
    gap: 20px;
}

/* 年選択ナビゲーション */
.year-nav {
    width: 150px;
    background: #fff;
    border: 1px solid #999;
    padding: 10px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.year-nav h3 {
    font-size: 14px;
    margin-top: 0;
    border-bottom: 1px double #999;
}

.year-nav ul {
    list-style: none;
    padding: 0;
}

.year-nav li a {
    text-decoration: none;
    color: #0000ee;
    display: block;
    padding: 5px 0;
}

.year-nav li a:hover {
    text-decoration: underline;
    background: #eee;
}

/* メインコンテンツ */
.content {
    flex: 1;
    background: #fff;
    border: 1px solid #999;
    padding: 20px;
}

.year-title {
    background: #e0e0e0;
    padding: 5px 10px;
    border-left: 5px solid #666;
}

.post {
    margin-bottom: 20px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
}

.post time {
    font-weight: bold;
    font-size: 0.9em;
    color: #666;
}

/* レスポンシブ対応（スマホ表示） */
@media (max-width: 600px) {
    .container {
        flex-direction: column;
    }
    .year-nav {
        width: auto;
        position: static;
    }
    .year-nav ul {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
    }
}
@font-face { 
  font-family: "nos"; 
  src: url("../font/Saitamaar.ttf") format("truetype"); 
}

body {
  padding: 0px;
  margin: 0;
  font-family: "nos", sans-serif;
  line-height: 1.6;
  background-image: url("img/stripe3.png");
  background-repeat: repeat;     /* ← タイル状に並べる */
  background-position: top left; /* ← 左上から開始 */
}

/* 全体レイアウト */
.wrapper {
  display: flex;
  max-width: 1000px;
  /* margin: 20px 20px;  ← これを削除して下を追加 */
  margin: 20px auto;    /* 上下20px、左右は自動で中央寄せ */
  gap: 20px;            /* セレクターとメインの間の隙間を確保 */
}

/* サイドバー：年選択 */
.year-selector {

  width: 140px;
  flex-shrink: 0;
  background-color: #f0f0f0;
  border: 3px #000 double;
  border-radius: 20px;
}

.nav-label {
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 10px;
  padding-top: 10px;
}

.year-selector ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.year-selector li {
  margin-bottom: 8px;
}

.year-selector a {
  display: block;
  padding: 5px 40px; /* 上下を少し厚く、左右にゆとりを持たせる */
  margin: 5px 10px;    /* 左右に余白を作ってボタンらしくする */
  border: 3px double #000000;
  text-align: center;
  background: #f9f9f9;
  color: #000;
  text-decoration: none;
  border-radius: 10px; /* 少し角を丸くすると横長感が強調されます */
}

/* スマホ表示（レスポンシブ）の際の調整 */
@media (max-width: 600px) {
  .year-selector ul {
    display: flex;
    flex-direction: column; /* スマホでも横長ボタンを維持する場合 */
    gap: 10px;
  }
}

.year-selector a:hover {
  background: yellow;
  color: red;
  border-color: red;
}

/* メインコンテンツエリア */
.main-content {
  margin-bottom: 20px;
  background-color: #ffffff;
  border: 3px#000 double;
  border-radius: 20px;
  padding: 20px;
  flex-grow: 1;
}

/* 元のデザインを継承 */
.title {
  font-size: 20px;
  font-weight: bold;
  color: #0000ff;
  border-bottom: 3px double #000;
  margin-bottom: 20px;
}

h2 {
  font-size: 15px;
  background: #000;
  color: #fff;
  padding: 5px 15px;
}

.gatu {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-left: 10px;
  margin-bottom: 20px;
}

a {
  text-decoration: none;
  color: blue;
  padding: 2px;
  width: fit-content;
}



/* レトロスクロールバー */
::-webkit-scrollbar { width: 14px; }
::-webkit-scrollbar-track { background: #eee; }
::-webkit-scrollbar-thumb { 
  background: #c0c0c0; 
  border: 2px solid; 
  border-color: #fff #808080 #808080 #fff; 
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
  .wrapper {
    flex-direction: column;
    margin: 0px 20px;
  }
  .year-selector {
    width: 100%;
  }
  .year-selector ul {
    display: flex;
    gap: 10px;
  }
  .year-selector li {
    flex: 1;
  }
}
img {
  image-rendering: pixelated;
  max-width: 100%;
}