/* body */
body {
    font-family: 'Noto Serif JP', serif;
    margin: 0;
    padding: 0;
    background-color: #f4f2f8;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

/* スクロールバーを非表示にする */
body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* html, body */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

header {
    background-color: transparent;
    color: black;
    min-height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width:100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 120px 80px 20px 80px; 
}

header h1 {
    font-size: 2rem;
    font-weight: 500;
    margin: 0; /* デフォルト余白を消す */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

nav {
    position: relative;  
    top: 20px; 
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1000;     /* バナーの下に隠れないように */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;             /* ボタンとリンクの間隔 */
}

nav ul li {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ボタンとリンクを同じデザインに統一 */
nav ul li a,
nav ul li button {
    color: #444; /* デフォルトの文字色 */
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 4px 8px;      /* 任意の余白 */
    transition: color 0.3s ease;
    font-family: inherit;
}

/* 下線アニメーション */
nav ul li a::after,
nav ul li button::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width:90%;
    height: 1px;
    background: #7d6bc5; /* 下線の色 */
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

/* ホバー時の色と下線 */
nav ul li a:hover,
nav ul li button:hover {
    color: #7d6bc5;
}

nav ul li a:hover::after,
nav ul li button:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* main */
main {
    flex-grow: 1;
    padding: 2rem 5%;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: block;        /* 縦並びのときはこれでOK */
    text-align: left;      /* 中身が左寄せになるように追加 */
}

/* リンクのデフォルトスタイルを無効にする */
a {
    color: inherit;  /* 親要素の色を継承 */
    text-decoration: none;  /* 下線を消す */
}

h2 {
    font-size: 1.3rem; /* 見出しの文字サイズを少し大きく */
    margin-bottom: 10px;
}

h3 {
    font-size: 1rem; /* サブ見出しの文字サイズを調整 */
    margin-bottom: 10px;
}

h4 {
    font-size: 1.3rem;
    font-weight: normal; /* 標準の太さ */
}

.stealth-link a {
    display: inline-block;
    width: 100px; /* クリックできる範囲の幅 */
    height: 1.5em; /* 高さ（行の高さと合わせる） */
    background-color: #f4f2f8; /* 背景と同じ色にする */
    color: #f4f2f8; /* テキストも背景と同じ色で見えなくする */
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
    overflow: hidden;
}

#content {
  display: none;
  width: 80%;
  margin: 0 auto; /* 横方向中央揃え */
}

/* #info内のセクション全体 */
#info {
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* #info内のh2に適用 */
#info h2 {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #333;
  letter-spacing: 0.5px;
}

#info h2::before,
#info h2::after {
  content: "";
  flex: 1;
  height: 1px;
  border-bottom: 1.5px dotted #aaa;
  margin: 0 12px;
}

#info .youtube-thumbnail {
  width: 100%;
  box-sizing: border-box; /* padding/borderを含めてサイズを計算 */
  text-align: center;
  position: relative; /* ラベルをサムネイルの上に配置するためにrelativeにする */
}

#info .youtube-thumbnail .thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-bottom: 2px;
  display: block; /* 念のためブロック要素として扱う */
}

#info .youtube-thumbnail .title {
  margin: auto;  
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 2px; /* タイトルと日付の間に少し余白 */
}

#info .youtube-thumbnail .date {
  font-size: 0.8rem; /* 少し小さめのフォントサイズ */
  color: #777; /* 文字色を薄めのグレーに */
  margin-bottom: 2px; /* タイトルと日付の間に少し余白 */
  text-align: center; /* 中央揃え */
}

#info .youtube-thumbnail .detail {
  font-size: 0.8rem; /* 少し小さめのフォントサイズ */
  color: #333;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: center; /* 中央揃え */
}

.toggle-image {
  width: 90%;
  display: block;
  padding: 8px;
  margin: 0 auto;      /* 左右のマージンを自動にして中央寄せ */
  height: auto;        /* アスペクト比を維持 */
}
.info-text {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  background-color: #f0f0f0;
  padding: 0 10px;
}
.info-text.open {
  padding: 10px;
  max-height: 3000px; /* 必要に応じて調整 */
}

.container {
  display: flex;
  align-items: flex-start; 
  height: auto;   
}

.left-column {
  width: 60%;
  flex: 1;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow-y: auto;
  box-sizing: border-box;
}


.right-column {
  width: 40%;
  padding: 10px;
  background: #f9f9f9;
  min-height: 200px;
  font-size: 0.8rem; /* 少し小さめのフォントサイズ */　
}

.thumbnail {
  cursor: pointer;
  margin-bottom: 15px;
}

.thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}


.thumbnail .title {
  text-align: center;
  margin-top: 5px;
  font-weight: bold;
}

.ts-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ts-list li {
  padding-left: 8ch;       /* 時間欄の幅 */
  text-indent: -8ch;       /* 1行目だけ持ち上げる */
  line-height: 1.8;        /* 行間を広く */
}

.ts-list li a {
  display: block;           
  text-decoration: none;    
  color: inherit;
}

.ts-list li a .time {
  display: inline-block;
  width: 8ch;               
  margin-right: 1rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #666;
}

/* ネストしたリストも同じ見た目に */
.ts-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ts-list ul li {
  padding-left: 8ch;
  text-indent: -8ch;
}

details {
  border: none;
  border-radius: 6px;
  margin: 1em auto;
  background-color: #fff;
  width: 95%;
  padding: 0; /* details自体のpaddingは不要 */
}

/* summary 本体 */
summary {
  font-weight: bold;
  cursor: pointer;
  color: #555;
  position: relative;
  transition: color 0.2s ease;
  padding: 0.75em 1em; /* 左右に余白を追加 */
  list-style: none; /* デフォルトマーカーを消す */
}

/* デフォルトの矢印を確実に消す */
summary::-webkit-details-marker {
  display: none;
}
summary::marker {
  content: "";
}

/* 下の線（open時のみ） */
details[open] summary::before {
  content: "";
  position: absolute;
  left: 1em;
  right: 1em; /* 両端1em余白を残す */
  bottom: 0;
  border-bottom: 1px solid #ddd;
}

/* 右側の矢印（丸っこいV字/U字風） */
summary::after {
  content: "⌵"; /* 下向きの丸っこい矢印風 */
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1em;       /* 横幅がある感じに */
  color: #555;
  transition: transform 0.2s ease;
}

details[open] summary::after {
  content: none;
}

/* 日付用のスタイル */
summary .date {
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: 12px;
  font-size: 0.9em;
  font-weight: 400;
  color: #fff;
  margin-right: 0.5em;
  background-color: #c0aee8;
}

summary .title {
  font-weight: 500;
}

details .ts-list {
  padding: 1rem 1rem;
}


footer {
  background: none;
  border-top: 1px solid #e2deeb; /* さらに薄い線 */
  color: #888;                   /* 文字色も淡く */
  padding: 0.15rem 0;            /* 高さを極限まで抑える */
  text-align: center;
  font-size: 0.8rem;             /* かなり小さめに */
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  line-height: 1.1;              /* 行間も最小限 */
}

footer .footer-inner {
  width: 95%;                    /* 横幅も少し縮めて控えめに */
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  opacity: 0.8;                  /* 薄くして背景となじませる */
}


.site-banner {
  background: linear-gradient(135deg, #dcd6f7, #e7e9f9, #f0f1f6);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  color: #111; /* 少し落ち着いた文字色 */
  text-align: center;
  font-size: 1rem;
  min-height: 20px; /* バナーの目安 */
  padding: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}


#passwordPrompt {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 9999;
}