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 */
}

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; 
}
.info-banner {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #f4f2f8;
  padding: 0.5em 1em;
  text-align: center;
  font-size: 0.95rem;
  width: 50%;
  margin: 0 auto; 
  text-align: center;
}
header {
    background-color: transparent;
    color: black;
    height: 23%;
    display: flex;
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: flex-start;  
    width:80%;
    margin: 0 auto; 
    box-sizing: border-box;
    padding-top: 6%;
}

header h1 {
    font-size: 2rem;
    font-weight: 500;
    margin: 0; 
    text-align: left; 
}

h1 .en {
  display: block;
  font-size: 0.75rem;
  color: #999;
  margin-top: 5px;
  letter-spacing: 0.1em; 
  text-align: center; 
}

h2 {
    font-size: 1.3rem; 
    margin-bottom: 10px;
  color: #999;
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 700;
    text-align: left; 
}

h4 {
    font-size: 0.8rem;
    font-weight: 400;
    text-align: left; 
}

h4 a {
  display: block;   
  text-indent: -1em;  
  padding-left: 1em; 
}

h5 {
    font-size: 0.9rem; 
    margin-top: 10px;
    margin-bottom: 0px;
    font-weight: 600;
    text-align: left; 
}

p {
    margin: 5px 0;
    text-align: left; 
}

nav {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    gap: 20px; 
}

nav ul li {
    flex: none; 
}

nav ul li a,
nav ul li button {
    display: inline-block;
    vertical-align: middle;  
    line-height: 1.2;      
    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: 100%;
    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 {
  flex: 1;
  padding: 2rem;
  width: 85%;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  box-sizing: border-box;
  align-items: flex-start;
}

aside {
  width: 15%;
  background-color: #f4f2f8;
  padding: 10px;
}

section {
  flex: 1;
  padding-top: 10px;
  min-width: 0;
}

:root {
  --gold: #B38D57; /* 落ち着いたゴールド */
  --body-dark: #2A2A2A; /* ダークグレー */
  --hover-border: #34495E; /* 深いネイビーグレー */
  --cubic-bezier: cubic-bezier(0.2, 0.3, 0.25, 0.9);
}

/* ボタン */
.button {
  position: relative;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  background-color: transparent; /* 背景色は透明 */
  border: 0;
  cursor: pointer;
  transition: all 0.2s var(--cubic-bezier) 0s;
  color: var(--gold); /* ゴールド */
  display: flex;               /* 横並び&中央寄せ用 */
  justify-content: center;     /* 水平方向で中央揃え */
  align-items: center;         /* 垂直方向で中央揃え */
  padding: 0.875em 1.428571429em;
  white-space: nowrap;
  margin-bottom: 1em;
  font-family: 'Noto Serif JP', serif;
  flex: 1 1 auto;       /* 横幅を親に合わせて可変 */
  width: 100%;          /* asideの幅に収まる */
  box-sizing: border-box; /* パディング込みで調整 */
}


/* 下のボーダー */
.button::after {
  content: '';
  width: 80%;
  left: 50%;
  height: 1px;
  bottom: 0;
  transform: translateX(-50%);
  transition: width 0.2s var(--cubic-bezier), background 0.2s var(--cubic-bezier);
  display: block;
  position: absolute;
  background: var(--gold); /* 通常時のゴールドボーダー */
}

/* ボーダーを描く span ラップ */
.button span {
  display: block;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  transition: all 0.2s var(--cubic-bezier);
}

.button span:first-child::before,
.button span:first-child::after,
.button span:last-child::before,
.button span:last-child::after {
  content: '';
  display: block;
  position: absolute;
  background: var(--gold);
  transition: transform 0.2s var(--cubic-bezier);
}

/* 左右のボーダー */
.button span:first-child {
  height: 100%;
}
.button span:first-child::before,
.button span:first-child::after {
  width: 1px;
  height: 100%;
  bottom: 0;
  transform: scale3d(1, 0, 1);
  transform-origin: bottom center;
}
.button span:first-child::before {
  left: 0;
}
.button span:first-child::after {
  right: 0;
}

/* 上部のボーダー */
.button span:last-child {
  height: 1px;
}
.button span:last-child::before,
.button span:last-child::after {
  height: 1px;
  width: 100%;
  bottom: 0;
  transform: scale3d(0, 1, 1);
}
.button span:last-child::before {
  left: 0;
  transform-origin: bottom left;
}
.button span:last-child::after {
  right: 0;
  transform-origin: bottom right;
}

/* hoverアニメーション */
.button:hover {
  color: var(--body-dark) !important; /* ホバー時に文字色をダークグレーに変更 */
}
.button:hover::after {
  width: 100%;
  background: var(--hover-border); /* 深いネイビーグレーのボーダー */
}
.button:hover span:first-child::before,
.button:hover span:first-child::after,
.button:hover span:last-child::before,
.button:hover span:last-child::after {
  transform: scale3d(1, 1, 1);
  background: var(--hover-border); /* ホバー時のボーダー色 */
}

.button.active {
  color: var(--hover-border); /* 文字色をグレーに */
}

.button.active::after {
  width: 100%;
  background: var(--hover-border);
  transition: none;
}

.button.active span:first-child::before,
.button.active span:first-child::after,
.button.active span:last-child::before,
.button.active span:last-child::after {
  transform: scale3d(1, 1, 1);
  background: var(--hover-border);
}

.button-coc,
.button-emo {
    margin: 0 5px;
    padding: 3px 1px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    background-color: transparent;
    border: 1px solid #9780bc;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Noto Serif JP', serif;
    color: #333;
    transition: all 0.2s ease;
    box-shadow: none;
    flex: 1;              /* 均等に伸びる */
    min-width: 100px;     /* 最小サイズは維持 */
}

.button-coc.active,
.button-emo.active {
    background-color: #c6badb; /* 淡い紫背景 */
    border-color: #9780bc;     /* 紫っぽいボーダー */
    color: #333;            /* 文字色も紫 */
    font-weight: 600;
}

.button-coc:hover,
.button-emo:hover {
    color: #333; /* ホバー時の文字色 */
    border-color: #9780bc; /* ホバー時も枠を紫に */
}


#button-container-1 {
    display: flex;
    justify-content: center;
    margin: 20px auto; 
    gap: 5px; /* ボタン間の隙間 */
    width: 100%;
}

#button-container {
    display: flex;
    flex-wrap: wrap;        /* 折り返しを許可 */
    margin: 0;              /* 上の余白をなくす */
    gap: 10px;              /* ボタン間の隙間 */
    max-width: 1500px;      /* コンテナの最大幅 */
    justify-content: flex-start; /* 左寄せ（自然に折り返し） */
}

.tweet-button {
    flex-grow: 1;
    display: block;
    width: auto;
    min-width: 120px;
    margin: 0 10px 5px;
    padding: 5px 10px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    background-color: #ffffff;
    border: none;
    border-bottom: 1.5px solid #b3b3b3;
    border-radius: 0;
    cursor: pointer;
    font-family: 'Noto Serif JP', serif;
    color: #b3b3b3;
    transition: all 0.2s cubic-bezier(0.2, 0.3, 0.25, 0.9);
}

.tweet-button::after {
  content: '…';
  position: absolute;
  right: 5px;           /* ボタンの右端に配置 */
  font-size: 12px;      /* 小さくする */
  line-height: 16px;    /* 本文と高さを合わせる */
  background-color: inherit;
  padding-left: 2px;
}

.tweet-button:hover,
.tweet-button.active {
    border-bottom-color: #34495E; 
    color: #34495E; 
}

.tweets {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    width: 500px;
    max-width: 100%;
    overflow: hidden;
}

.tweet {
    display: none;
}

.tweet.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 詳細 */
.details-container {
    display: flex;
    gap: 20px;
}

.left-info {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    flex: 2;
    font-weight: 400;
    font-size: 1.1rem;
    margin-bottom: 15px; 
}

.right-info {
    font-weight: 400;
    font-size: 1rem;
    flex: 1; 
    min-width: 300px;
    max-width: 600px;
}

.hidden {
    display: none;
}

#character-info {
    margin: 20px;
    font-size: 0.9rem;
}

.abilities, .skills {
    display: flex;
    justify-content: space-between;
    gap: 10px; 
}

.left-col, .right-col {
    width: 48%;
}

.left-col p, .right-col p {
    margin-bottom: 5px;
}

.underline-line {
    display: flex;
    align-items: center; 
    border-bottom: 1px solid #000; 
    padding-bottom: 5px; 
}

.underline-line .label {
    text-align: left;
    flex-grow: 1; 
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis; 
    transition: all 0.3s ease;
}

.underline-line .label:hover {
    white-space: normal;
    overflow: visible; 
    text-overflow: unset; 
}

.underline-line .value {
    text-align: right;
    min-width: 50px;
}
progress {
    all: unset;
    width: 100%;
    height: 1px;
    appearance: none;
    display: block;
    box-sizing: border-box;
}

progress::-webkit-progress-bar {
    background-color: #cccccc;
    height: 1px; 
}

progress::-moz-progress-bar {
    background-color: #cccccc;
    height: 1px; 
}

progress::-ms-fill {
    background-color: #cccccc;
    height: 1px; 
}

.status-bar {
    width: 100%;
    height: 1px;
    border: none;
    background-color: #cccccc;
    appearance: none;
    display: block;
    margin-top: 4px;
    box-sizing: border-box;
}

/* 進捗部分の色 */
.status-bar::-webkit-progress-value {
    background-color: #333;
    height: 1px; 
}

.status-bar::-moz-progress-bar {
    background-color: #333;
    height: 1px; 
}

.status-bar::-ms-fill {
    background-color: #333;
    height: 1px;
}

/* セッション */
.session-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px; 
}

.session-block {
  width: calc((100% - 30px) / 3);
  background: #f9f9f9;
  padding: 15px; 
  box-sizing: border-box;
  border-radius: 12px;
  text-align: center;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-height: 600px;
  gap: 15px;
  color: #333;
  box-shadow: 0 4px 12px rgba(44, 47, 54, 0.1);
}

.session-content {
  display: flex;
  justify-content: flex-start; 
  gap: 10px; 
  align-items: flex-start; 
  flex-grow: 1;
}

.session-block .date {
  font-size: 0.85rem;
  color: #000; 
  margin-top: 5px;
}

.session-block h1 {
  font-size: 1.2rem;
  margin: 0;
  font-weight: 600;
  color: #000; 
  line-height: 1.1; 
}

.session-block h2 {
  font-size: 0.85rem;
  font-weight: normal;
  margin: 0;
  color: #777; 
  line-height: 1.1; 
}

.session-block h2 a {
  color: #777; 
  text-decoration: none;
}

.session-block .kp,
.session-block .pl {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column; 
  align-items: center;
  gap: 5px; 
}

.session-block .kp h3,
.session-block .pl h3 {
  text-align: center; 
  margin: 0.3rem 0 0 0; 
  font-size: 0.9rem;
  line-height: 1; 
  font-weight: 700;
}

.session-block .session-content {
  display: flex;
  justify-content: flex-start; 
  gap: 10px;
}

.session-block .kp table,
.session-block .pl table {
  width: 100%;
  max-width: 90%;
  margin: 0 auto;
  table-layout: fixed;
  border-collapse: collapse;
}

.session-block .kp td,
.session-block .pl td {
  width: 100%;
  padding: 0.5em;
  text-align: center;
  line-height: 1.2;
  font-size: 0.8rem;
}

.session-block .kp a,
.session-block .pl a {
  color: #000; 
  text-decoration: none;
}

.session-thumbnail {
  flex-shrink: 0;
}

.session-thumbnail img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 情報 */
#info {
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

#info h2 {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #333;
  letter-spacing: 0.5px;
    font-weight: 600;
}

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

#info .tweet-embed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  box-sizing: border-box;
}

#info .tweet-item {
  width: 100%;        
  box-sizing: border-box;
}

#info .tweet-item blockquote,
#info .tweet-item iframe {
  width: 100% !important;
  max-width: 100% !important;
}

#info .youtube-thumbnail-container {
  display: flex;
  justify-content: flex-start;
  gap: 16px; 
  flex-wrap: wrap;  
}

#info .youtube-thumbnail {
  width: calc((100% - 32px) / 3);
  box-sizing: border-box; 
  text-align: center;
  position: 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; 
  white-space: nowrap;    
  overflow: hidden;
  text-overflow: ellipsis;
}

#info .youtube-thumbnail .title:hover {
    white-space: normal; 
    overflow: visible; 
    text-overflow: unset;
}


#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: #666;
    font-weight: 400;
  letter-spacing: 0.5px;
  text-align: center; 
}

.spoiler-label {
  position: absolute;
  top: 5px;
  left: 5px;
  background-color: rgba(245, 245, 245, 0.6);
  color: #1a1a1a;
  font-size: 0.85rem;
    font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
  backdrop-filter: blur(3px); 
  z-index: 2;
}

.no-spoiler {
    font-weight: 400;
    text-decoration: 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); /* 影で自然に区切る */
  margin-top: auto;
}

footer .footer-inner {
  opacity: 0.8;
}

a {
    color: inherit; 
    text-decoration: none;  
}

@media screen and (max-width: 1024px) {
  .site-banner {
    position: fixed;    
    top: 0;
    left: 0;
    right: 0;
    height: auto;  
    white-space: normal;   
    padding: 0.8rem 1rem;  
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000;
    flex-wrap: wrap;    
  }

  header {
    flex-direction: column;  
    align-items: center;     
    margin-top: 60px; 
    gap: 12px;               
  }

  nav {
    justify-content: center; 
    width: auto;             
  }

  nav ul {
    flex-direction: row;     
    gap: 20px;               
    justify-content: center; 
    width: auto;             
  }

  nav ul li a,
  nav ul li button {
    font-size: 1.1rem;
  }

  .session-block {
    width: 90%;
    margin: 0 auto;
  }



  main {
    display: flex;
    flex-direction: column;
    width: 90%;
    padding: 1.5rem 0;
    box-sizing: border-box;
    margin: 0 auto;
    gap: 20px;
  }

  aside {
    order: 1;
    display: flex;
    flex-wrap: nowrap;        /* ← 折り返さない（横並び維持） */
    gap: 12px;
    justify-content: center;  /* 中央寄せ */
    align-items: flex-start;
    width: 100%;
    margin: 0 auto;
    padding: 0;
  }

  aside > * {
    flex: 0;                 
    text-align: center;
    margin: 0;
  }

  section {
    order: 2;
    width: 100%;
  }

  /* 👇 3つのボタンを横並びのまま維持 */
  #button-container {
    display: flex;
    justify-content: center;   /* 中央寄せ */
    flex-wrap: nowrap;         /* 折り返しなし */
    gap: 16px;                 /* ボタン間の隙間 */
    width: 100%;
  }

  .button {
    flex: 0 1 auto;            /* 均等に広げず、中身サイズで調整 */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 36px;
    font-size: 0.95rem;
    text-align: center;
  }

.details-container {
  display: flex;
  flex-direction: column;
  align-items: center; /* ← 中央揃えを有効にする */
  gap: 14px;
}

.left-info,
.right-info {
  width: 90%;          /* ← 親いっぱいにしない */
  max-width: 800px;    /* ← 適宜制限 */
}


  header h1 {
    font-size: 2rem;
    text-align: center;
    line-height: 1.4;
  }

  h2 {
    font-size: 1.2rem;
  }

  h3 {
    font-size: 1.05rem;
  }

  .tweet-button {
    font-size: 1.05rem;
  }

.tweets {
  display: flex;
  flex-direction: column;
  align-items: center; /* 子要素を中央寄せ */
  width: 100%;
  box-sizing: border-box;
}

.tweet {
  display: none;
  width: 90%;           /* 親幅より少し狭くする */
  max-width: 500px;     /* コンテンツ幅を制限 */
  margin: 0 auto;       /* ブロック要素を中央寄せ */
  box-sizing: border-box;
}

#info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 45%)); 
  justify-content: center; 
  gap: 20px;
  justify-items: start; 
}
#info .youtube-thumbnail-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

#info .youtube-thumbnail-container .youtube-thumbnail {
  width: 45%;
  box-sizing: border-box;
  margin: 0;
}

/* 奇数個（最後の1つだけの行）は中央寄せを保ったまま自然に左寄せ風に */
#info .youtube-thumbnail-container::after {
  content: "";
  flex: 0 0 45%; /* 疑似要素でダミーの右カラムを作る */
}

#info .youtube-thumbnail,
#info .tweet-item {
  width: 45%;
  box-sizing: border-box;
  margin: 0; 
}

#info > :nth-last-child(1):nth-child(odd) {
  justify-self: start; 
}

/* tweet-embed が内部で2列にしたい場合（gridのまま） */
#info .tweet-embed {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 20px;
  justify-items: start; 
}

#info .tweet-embed .tweet-item {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}


}



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

  header {
    flex-direction: column;  /* h1 と nav を縦に並べる */
    align-items: center;     /* 中央揃え */
    margin-top: 70px; 
    gap: 10px;               /* h1 と nav の間 */
  }

  nav {
    justify-content: center; /* 中央寄せ */
    width: auto;             /* 幅は自動 */
  }

  nav ul {
    flex-direction: row;     /* 横並び維持 */
    gap: 12px;               /* リンク間の隙間 */
    justify-content: center; /* 中央寄せ */
    width: auto;             /* 幅は自動 */
  }

  nav ul li a,
  nav ul li button {
    font-size: 1rem; /* 小さくする */
  }

  .session-block {
    width: 100%; /* 1列 */
  }

  #info .youtube-thumbnail,
  #info .tweet-item {
    width: 100%; /* 1列 */
  }

main {
  display: flex;
  flex-direction: column;
  width: 90%;      /* 画面幅いっぱい */
  padding: 1rem;    /* 上下左右すべて同じ */
  box-sizing: border-box;
  margin: 0 auto;   /* 中央寄せ */
}

aside {
  order: 1;                 
  display: flex;            
  flex-wrap: nowrap;        
  gap: 8px;                 
  justify-content: flex-start; /* 左寄せ */
  align-items: flex-start;     /* 上寄せ（中央揃えしない） */
  width: 100%;
  margin: 0;
  padding: 0;
}

aside {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;   /* ← space-between ではなく中央寄せ */
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 0 auto;            /* ← 左右の外側余白を均等に */
  padding: 0;                /* ← 内側余白を消しておく */
  box-sizing: border-box;
}

aside > * {
  flex: 1;                   /* 均等幅で並ぶ */
  max-width: 120px;          /* ← はみ出し防止（好みで調整） */
  text-align: center;
  margin: 0;
  font-size: 0.9rem;
  white-space: nowrap;
}


/* section は下 */
section {
  order: 2;
  width: 100%;
}


  #button-container {
    display: flex;
    justify-content: space-between; /* 均等配置 */
    gap: 8px;                       /* ボタン間の隙間 */
    width: 100%;                    
  }

  .button {
    flex: 1;                        /* 全部同じ幅にする */
    display: flex;                  /* 中央寄せ用 */
    justify-content: center;        /* 水平方向中央 */
    align-items: center;            /* 垂直方向中央 */
    width: auto;                    
    margin-bottom: 0;               
    font-size: 0.8rem;
    text-align: center;             /* テキスト中央揃え（保険） */
  }

  .details-container {
    display: flex;
    flex-direction: column; /* ← 横並びを縦並びに */
    gap: 10px;              /* 左右の余白を上下の余白に置き換え */
  }

  .left-info,
  .right-info {
    width: 100%;            /* 横幅いっぱい */
  }

header h1 {
    font-size: 1.8rem;
    text-align: center; /* 中央揃え */
    line-height: 1.4; 
}

  h2 {
    font-size: 1.1rem;
  }

  h3 {
    font-size: 1rem;
  }

.tweet-button {
    font-size: 1rem;
}

.tweets {
  display: flex;               /* 縦に並べる用 */
  flex-direction: column;      /* 縦並び */
  align-items: center;         /* 中央揃え（不要なら削除） */
  width: 100%;                 
  max-width: 500px;            /* 任意の最大幅 */
  box-sizing: border-box;
}

.tweet {
  display: none;               /* デフォルト非表示 */
  width: 100%;
  max-width: 100% !important;
  box-sizing: border-box;
}
/* スマホではツイートボタンを縦に並べる */
#button-container {
  display: flex;
  flex-direction: column; /* ← 縦並びにする */
  align-items: center;    /* ← 中央寄せ */
  justify-content: center;
  gap: 10px;              /* ← ボタンの間の隙間 */
  width: 100%;
}

.tweet-button {
  width: 100%;            /* 横幅いっぱいに */
  max-width: 300px;       /* 好みで調整（はみ出し防止） */
  font-size: 1rem;
  text-align: center;
}


  #info .tweet-embed {
    display: grid;              /* ← gridを明示的に残す */
    grid-template-columns: 1fr; /* ← 1列に切り替える */
    gap: 16px;                  /* ← 隙間はPCと同じでもOK */
  padding: 0 10%; 
  }

  #info .tweet-item {
    width: 100%;                /* 各ツイートを横幅いっぱい */
}

}
