html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

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 */
    align-items: center;
}

body::-webkit-scrollbar, html::-webkit-scrollbar {
    display: none;
}

.site-banner {
  background: linear-gradient(135deg, #dcd6f7, #e7e9f9, #f0f1f6);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  color: #111;
  font-size: 1rem;
  height: 6%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;      
  justify-content: center; 
  align-items: center;
  text-align: center; 
}

header {
    background-color: transparent;
    color: black;
    height: 23%;
    display: flex;
    flex-direction: column;  
    justify-content: center;
    align-items: center;   
    width:90%;
    margin: 0 auto;
    box-sizing: border-box;
    margin-top: 6%; 
}

.paw-nav {
    position: fixed;
    right: 60px; 
    bottom: 60px;  
    z-index: 1000;
    list-style: none; 
    margin: 0;
    padding: 0;
}

.paw-nav li {
    display: inline-block;
}

.paw-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #444;
    text-decoration: none;
    transition: transform 0.25s ease, color 0.25s ease;
}

.paw-nav a:hover {
    transform: scale(1.3) rotate(-10deg);
    color: #7d6bc5;
}


h1 {
  width: 100%;              
  text-align: center;     
  font-size: 2.0rem;
  font-weight: 600;      
  margin: 0 0 10px 0;     
  box-sizing: border-box;
}

h2 {
  font-size: 1.3rem;         /* 見出しの文字サイズ */
  margin: 0;
  padding: 0.4em 0.8em;      /* 内側の余白 */
  border-left: 4px solid #7d6bc5; /* 左にアクセントライン */
  background: #f9f9f9;       /* 薄い背景色 */
  border-radius: 4px 4px 0 0; /* 上だけ角丸にしてセクションと繋がる感じ */
}


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

h4 {
    font-size: 1.3rem;
    font-weight: 400; 
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;   /* 縦並び */
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: none;
  margin: 0 auto;
  padding: 1rem;
  gap: 1rem;              /* セクション間の余白 */
  box-sizing: border-box;
}

section {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden; /* はみ出し防止 */
  width: 100%;      /* ←ここは半角スペースでOK */
  text-align: left;
  padding: 0.6em 1em;       /* 内側に余白を付ける */
}

section h2 {
  font-size: 1.2rem;
  margin: 0;                /* デフォルトの余白を消す */
  padding: 0.6em 1em;       /* 内側に余白を付ける */
  border-bottom: 1px solid #ddd;
  background: #fff;       
}

section p {
  padding: 0em 2em;     
}

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

#content {
  display: none;
  width: 100%;
  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;
  margin: 0 auto;      /* 中央寄せ */
  aspect-ratio: 16 / 9; /* 常に16:9比率 */
  background: #000;    /* 黒帯補完 */
  object-fit: contain; /* サムネ全体を表示、黒帯あり */
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.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: #fff;
  min-height: 200px;
  font-size: 1.0rem; /* 少し小さめのフォントサイズ */　
}

.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.0;        /* 行間を広く */
}

.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は不要 */
}

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

.inline-link {
  display: inline-block;
  white-space: nowrap;
}

.live {
  background: none;
  border: none;     
}

footer {
  background: #f9f9f9; 
  color: #444;
  font-size: 0.8rem;
  font-family: 'Noto Serif JP', serif;
  font-weight: 300; 
  height: 5%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: none;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.08); /* 影で自然に区切る */
}

footer .footer-inner {
  opacity: 0.8;
}

a {
    color: inherit;  /* 親要素の色を継承 */
    text-decoration: none;  /* 下線を消す */
}

@media (max-width: 768px) {
.site-banner {
  font-size: 0.6rem;
  padding: 0.1rem 0.5rem;
  height: 50px;
  box-sizing: border-box; 
}

header {
  flex-direction: column;
  align-items: center;
  margin-top: 70px; 
}

main {
  width: 90%;
  margin: 0 auto; /* 上下0、左右自動で中央寄せ */
}
section h2 {
  font-size: 1rem;
  margin: 0;                /* デフォルトの余白を消す */
  padding: 0.6em 1em;       /* 内側に余白を付ける */
  border-bottom: 1px solid #ddd;
  background: #fff;       
}

section p {
  font-size: 0.8rem;
  padding: 0em 2em;     
}

.live {
  background: none;
  border: none;
  width: fit-content;  /* コンテンツ幅に合わせる */
  margin: 0 auto;      /* 左右中央揃え */
}
    h4 {
        font-size: 1rem; /* サブ見出し */
    }

#info .youtube-thumbnail .title {
  font-size: 0.8rem; /* 小さくしたいサイズ */
}

#info .youtube-thumbnail .date,
#info .youtube-thumbnail .detail {
  font-size: 0.6rem;
}

    .left-column {
        grid-template-columns: 1fr; /* 1列にする */
        gap: 10px;                  /* 好みで余白調整 */
    }

.ts-list {
    font-size: 0.8rem; /* ここで全体の文字サイズを変えられる */
}
.left-column {
  width: 40%;
}


.right-column {
  width: 60%;
  padding: 5px;
}

  background: #fff;
  min-height: 200px;
  font-size: 1.0rem; /* 少し小さめのフォントサイズ */　
}
    .paw-nav {
        right: 20px; 
        bottom: 30px;
    }

    .paw-nav a {
        font-size: 1.8rem; 
    }
}