@charset "UTF-8";

/* タイムライン全体 */
.timeline {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.timeline__item {
  padding: 1.2rem 0;
  border-bottom: 1px solid #eee;
}

/* ニックネーム */
.timeline__author {
  /* font-size: 0.75rem;
  opacity: 0.6; */
  font-weight: bold;
  padding-right: .5em;
}

/* 日付 */
.timeline__meta {
  margin-bottom: 0.25rem;
}

.timeline__date {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* 本文（つぶやき） */
.timeline__content {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* 長文折りたたみ時 */
.timeline__content.has-toggle .timeline__contentInner {
  max-height: 7.5em; /* お好みで調整（約5行） */
  overflow: hidden;
  position: relative;
}

.timeline__content.has-toggle .timeline__contentInner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5em;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
}

.timeline__content.has-toggle.is-expanded .timeline__contentInner {
  max-height: none;
}

.timeline__content.has-toggle.is-expanded .timeline__contentInner::after {
  display: none;
}

.timeline__contentInner iframe {
  max-width: 100%;
}

/* 「さらに表示」ボタン */
.timeline__moreBtn {
  margin-top: 0.3rem;
  padding: 0;
  border: none;
  background: none;
  color: #0073aa;
  font-size: 0.85rem;
  cursor: pointer;
}

.timeline__moreBtn:hover {
  text-decoration: underline;
}

/* 返信件数などのアクション */
.timeline__actions {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.timeline__threadLink,
.timeline__replySelf {
  color: #666;
  text-decoration: none;
}

.timeline__threadLink:hover,
.timeline__replySelf:hover {
  text-decoration: underline;
}

/* ローディング表示 */
.timeline__loading {
  display: none;
  text-align: center;
  padding: 1rem 0 2rem;
  font-size: 0.85rem;
  color: #666;
}

.timeline__loading.is-active {
  display: block;
}

/* ページャーは無限スクロール前提なら隠す */
.timeline__pager {
  display: none;
}

/* single つぶやき */
.mutter-single {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.mutter-single__date {
  font-size: 0.8rem;
  opacity: 0.6;
}

.mutter-single__content {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* 返信一覧 */
.mutter-replies {
  max-width: 700px;
  margin: 1.5rem auto 2rem;
  padding: 0 1rem;
}

.mutter-replies__title {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.mutter-replies__item {
  border-left: 3px solid #eee;
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}

.mutter-replies__date {
  font-size: 0.75rem;
  opacity: 0.6;
}

.mutter-replies__content {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 0.25rem;
}

/* クイックつぶやきページ */
.quick-mutter {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1rem 3rem;
}

.quick-mutter__title {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.quick-mutter__note {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
}

.quick-mutter__message {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.quick-mutter__message--success {
  background: #e6f7e6;
  color: #165c16;
}

.quick-mutter__message--error {
  background: #ffecec;
  color: #a60000;
}

.quick-mutter__field {
  margin-bottom: 1rem;
}

.quick-mutter__field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.quick-mutter__field textarea {
  width: 100%;
  padding: 0.5rem;
  font-size: 0.95rem;
}

.quick-mutter__field input[type="file"] {
  font-size: 0.85rem;
}

.quick-mutter__actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.quick-mutter__submit {
  padding: 0.3rem 1.2rem;
  font-size: 0.9rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background: #0073aa;
  color: #fff;
}

.quick-mutter__submit:hover {
  background: #005f8a;
}

.quick-mutter__cancel {
  font-size: 0.85rem;
  color: #666;
  text-decoration: none;
}

.quick-mutter__cancel:hover {
  text-decoration: underline;
}

.timeline__status {
  font-size: 0.7rem;
  margin-left: 0.4rem;
  opacity: 0.8;
}

.timeline__status--private {
  color: #e11d48;
}

@media (prefers-color-scheme: dark) {
  .timeline__status--private {
    color: #fb7185;
  }
}



/* つぶやき詳細ページ：自分用返信案内 */
.mutter-reply-form {
  max-width: 700px;
  margin: 1.5rem auto 3rem;
  padding: 1rem 1rem 1.2rem;
  border-radius: 6px;
  background: #f9fafb;
  border: 1px solid #eee;
}

.mutter-reply-form__title {
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
}

.mutter-reply-form__desc {
  font-size: 0.8rem;
  color: #666;
  margin: 0 0 0.8rem;
}

.mutter-reply-form__link {
  display: inline-block;
  font-size: 0.85rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  background: #0073aa;
  color: #fff;
}

.mutter-reply-form__link:hover {
  background: #005f8a;
}

/* 削除ボタンの見た目もついでに */
.mutter-single__header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

.mutter-single__deleteForm {
  margin: 0;
}

.mutter-single__deleteBtn {
  font-size: 0.75rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #e57373;
  background: #fff;
  color: #d32f2f;
  cursor: pointer;
}

.mutter-single__deleteBtn:hover {
  background: #ffebee;
}




/* カード */
.linkcard {
  border: 1px solid #cfcfcf;
  border-radius: 10px;
}
.lkc-info {
  display: none !important;
}
.lkc-excerpt {
  font-size: .8rem;
  line-height: 1.4;
  padding-top: .5em;
}
.lkc-content {
  padding: 0 !important;
  box-shadow: none !important;
  height: auto !important;
  margin: 0 !important;
}
.lkc-external-wrap, .lkc-internal-wrap, .lkc-this-wrap {
  max-width: unset;
}

/* つぶやき内 画像一覧 */
.mutter-images {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

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

/* 横に並べたい場合の簡易版 */
@media (min-width: 640px) {
  .mutter-images img {
    max-width: calc(50% - 0.3rem);
  }
}



/* ======================================
   ダークモード対応（環境設定に自動追従）
====================================== */
@media (prefers-color-scheme: dark) {

  /* ----- タイムライン全体 ----- */
  .timeline__item {
    border-bottom: 1px solid #1f2937;
  }

  .timeline__date {
    color: #9ca3af;
  }

  .timeline__content {
    color: #e5e7eb;
  }

  .timeline__moreBtn {
    color: #93c5fd;
  }

  .timeline__threadLink,
  .timeline__replySelf {
    color: #9ca3af;
  }

  .timeline__loading {
    color: #9ca3af;
  }
  .timeline__content.has-toggle .timeline__contentInner::after {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #484848);
  }


  /* ----- singleページ ----- */
  .mutter-single__content {
    color: #e5e7eb;
  }

  .mutter-replies__item {
    border-left-color: #374151;
  }

  .mutter-replies__date {
    color: #9ca3af;
  }

  .mutter-reply-form {
    background: #1f2937;
    border-color: #374151;
  }

  .mutter-reply-form__title {
    color: #e5e7eb;
  }

  .mutter-reply-form__desc {
    color: #9ca3af;
  }

  .mutter-reply-form__link {
    background: #2563eb;
  }

  .mutter-reply-form__link:hover {
    background: #1d4ed8;
  }

  .mutter-single__deleteBtn {
    border-color: #ef4444;
    color: #ef4444;
    background: transparent;
  }

  .mutter-single__deleteBtn:hover {
    background: rgba(239, 68, 68, 0.1);
  }
    /* カード */
  .linkcard {
    border: 1px solid #6a6a6a;
  }
  .linkcard .lkc-content > *:not(.lkc-url) {
    color: #e5e7eb;
  }

}






/* ==========================
   つぶやき詳細：戻るリンク
========================== */
.mutter-back {
  max-width: 700px;
  margin: 1rem auto 0.5rem;
  padding: 0 1rem;
}

.mutter-back a {
  font-size: 0.85rem;
  color: #6b7280;
  text-decoration: none;
}

.mutter-back a:hover {
  text-decoration: underline;
}

/* ダークモード */
@media (prefers-color-scheme: dark) {
  .mutter-back a {
    color: #9ca3af;
  }
}





.mutter-images img {
  border: 1px solid #cfcfcf;
}