/* ==== フォント ==== */
.sawarabi-mincho-regular {
  font-family: "Sawarabi Mincho", serif;
  font-weight: 400;
  font-style: normal;
}

/* ==== 全体 ==== */
body {
  background: #93bdd5;
  margin: 0;
}

h1 {
  font-size: 40px;
  margin: 14px;
    background: linear-gradient(
    180deg,       /* ← 135度 = 左上 → 右下 方向 */
    #909dc5,      
    #9779b8,       
    #465b95
);
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* ==== レイアウト ==== */
main {
  display: flex;
  flex-direction: row-reverse; /* 右にsidebar, 左にtimeline */
  height: 650px;
  overflow: hidden;
}

/* ==== 投稿欄 ==== */
.sidebar {
  width: 90px;
  flex-shrink: 0;
  border-right: 1px solid #ccc;
  background: #b0c4de;
  display: flex;
  flex-direction: column;
  height: 100vh;
  box-sizing: border-box;
  overflow-y: auto;
  padding: 16px;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sidebar-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.sidebar-header button {
  padding: 12px 13px;
  font-size: 0.9rem;
  border-radius: 6px;
  cursor: pointer;
}

.sidebar .composer textarea {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  height: 75vh;
  width: 100%;
  resize: none;
  font-size: 16px;
  line-height: 1.8;
  padding: 8px;
  box-sizing: border-box;
}

/* ==== タイムライン ==== */
.timeline-wrap {
  flex: 1;
  display: flex;
  align-items: flex-start;
  background: #fff;
  height: 100vh;
  overflow: hidden;
}

.vertical-timeline {
  background: #93bdd5;
  display: flex;
  flex-direction: row-reverse; /* 新しいものを右端に */
  align-items: flex-start;
  gap: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 7px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* ==== ノートカード ==== */
.note {
  display: inline-flex;           /* flexに変更して高さ調整 */
  flex-direction: column;         /* 縦方向に中身を積む */
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border: 1px solid #242733;
  border-radius: 12px;
  padding: 14px;
  min-height: 600px;
　height: 100%;                   /* 親に合わせて伸縮 */
  width: auto;              /* ← 自動幅 */
  max-width: 200px;         /* ← 最大幅を設定 */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  background: #93bdd5; /* デフォルト背景色 */
  margin-bottom: auto;    /* main 下限いっぱいに配置 */
}

.note .content {
  font-size: 16px;
  color: #FFF;
  line-height: 1.8;
  word-break: break-word;   /* ← 単語が長いとき折り返す */
  white-space: normal;      /* ← 改行可能に */
  flex: 1;                         /* 残りの高さを埋める */
}


.note .meta,
.note .author {
  font-size: 12px;
}

/* ==== スクロールボタン ==== */
.timeline-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0.5rem 0;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
}

.timeline-controls button {
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  border: none;
  border-radius: 8px;
  background: #444;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.timeline-controls button:hover {
  background: #666;
}

/* ==== リアクションボタン ==== */
.note .react-btn {
  writing-mode: horizontal-tb;
  font-size: 14px;
  padding: 4px 8px;
  margin-top: 8px;
  border: none;
  border-radius: 6px;
  background: #e63946;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}

.note .react-btn:hover {
  background: #c9182a;
}

/* ==== フッター ==== */
footer {
  height: 100px;
  padding: 16px;
  box-sizing: border-box;
  background: #b0c4de;
}

.copylight {
  text-align: center;
}
