/* tweet.css - ツイートおよびお知らせリンクに関連するスタイル */

.tweet_section {
    padding-top: 12px;
    padding-bottom: 24px;
    /* ツイートの平均的な高さを確保してレイアウトシフト（ガタつき）を防止 */
    min-height: 500px;
}

/* 読み込み前のプレースホルダー表示 */
.each_tweet {
    background-color: #f9f9f9;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.each_tweet::before {
    content: "Loading Clip...";
    color: #8899a6;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ツイート読み込み後はプレースホルダー（Loading文字）を隠す */
.each_tweet:has(.twitter-tweet-rendered) {
    background-color: transparent;
    border: none;
    min-height: auto;
}

.each_tweet:has(.twitter-tweet-rendered)::before {
    display: none;
}

.linkForInfo,
.linkForInfo a {
    color: #4285f4;
    margin: 0;
    margin-bottom: -1%;
}

.twit_url {
    margin-top: -2%;
    white-space: nowrap;
    /* テキストが行を折り返さないように設定 */
    overflow: hidden;
    /* 要素からはみ出た部分を非表示にする */
    text-overflow: ellipsis;
    /* 要素からはみ出た部分を省略記号で表示 */
}

/* お知らせ、注意書きなど */
.top_msg dv {
    font-weight: bold;
    font-size: 100%;
}

.top_msg a,
.top_msg p {
    margin: 0;
}

.notice {
    margin: 16px 0;
    text-align: center;
}

.caution p {
    margin: 0;
}