html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
}

.adblank {
    margin-bottom: 210px;
}

.menu-icon-image {
    position: relative;
    overflow: hidden; /* 画像のはみ出た部分を隠す */
    padding: 0 !important; /* ボタンの内側の余白を取り除く */
    width: 36px;  /* ボタンの幅を36pxに設定 */
    height: 36px; /* ボタンの高さを36pxに設定 */
    border-radius: 50%; /* ボタンを円形にする */
}

.menu-icon-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 画像を中央寄せにする */
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像をボタンの領域に合わせてリサイズする */
}

.btn-with-image:focus {
    outline: none;
}
.textarea {
    height: calc( 1.3em * 20 ) !important;
    line-height: 1.3 !important;
    white-space: pre-wrap;
}
.textarea-sm {
    height: calc( 1.3em * 10 ) !important;
    line-height: 1.3 !important;
    white-space: pre-wrap;
}
.description {
    min-height: calc(1.3em * 5);
    line-height: 1.3;
    resize: vertical;
}
#loading {
    background: rgba(0, 0, 0, .5);
    z-index: 10000;
}

.santen {
    font-family: "Noto Sans JP";
    letter-spacing: 0px !important;
}
.dashes {
    font-family: "Noto Sans JP";
}
.horizontal-bar {
    font-family: "Noto Sans JP";
    letter-spacing: -2px !important;
}

.mincho {
  font-family: "HiraMinProN-W3", "ヒラギノ明朝 ProN W3", "游明朝", "Yu Mincho",YuMincho, "Noto Serif JP", serif;
}

.btn-xs {
    --bs-btn-padding-y: .05rem; /* 垂直方向のパディング */
    --bs-btn-padding-x: .25rem;  /* 水平方向のパディング */
    --bs-btn-font-size: .75rem; /* フォントサイズ */
}
.list-group-custom .list-group-item {
    padding-right: 4px; /* 右の余白を減らす */
    padding-left: 4px;  /* 左の余白を減らす */
}

.link-twitter {
    color: #1da1f2!important; /* Twitter の青色 */
    border: none;
    padding-left: 0 !important;
}

.link-twitter:hover, .link-twitter:focus {
    color: #55acee; /* ホバー時のより濃い色 */
    text-decoration: none;
}

.link-mastodon {
    color: #6364FF; /* Mastodon の青色 */
    background-color: transparent;
    border: none;
    margin: 0;
    padding-left: 0 !important;
}

.link-mastodon:hover, .link-mastodon:focus {
    color: #563ACC; /* ホバー時のより濃い色 */
    text-decoration: none;
}

.link-bluesky {
    color: #4aa8ff!important; /* Bluesky の青色 */
    background-color: transparent;
    border: none;
    padding-left: 0 !important;
    margin: 0;
}

.link-bluesky:hover, .link-bluesky:focus {
    color: #0b68c7!important; /* ホバー時のより濃い色 */
    text-decoration: none;
}

.link-taittsu {
    color: #898989!important; /* タイッツー の灰色 */
    padding-left: 0 !important;
    border: none;
}

.link-taittsu:hover, .link-taittsu:focus {
    color: #616161; /* ホバー時のより濃い色 */
    text-decoration: none;
}

.setting-title {
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
    font-size: 1.25rem; /* カードタイトルのフォントサイズ */
    font-weight: bold; /* カードタイトルのフォントウェイト */
}

.fw-semi-bold {
    font-weight: 450;
    letter-spacing: 0.02em;
}

.emoji {
  height: 2em; /* テキストの高さに合わせる */
  vertical-align: middle; /* テキストと垂直方向に中央揃え */
}

.emphasis {
    text-emphasis: filled dot;
    text-emphasis-position: over right;
}

.no-caret::after {
  display: none;
}

/* Googleボタンの高さに合わせてBootstrapのボタンを調整 */
.google-match-btn {
  padding: 0 1rem;
  font-size: 14px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.list-group-item.new-post {
  border: 2px solid var(--bs-primary);
  font-weight: 600;
}

[lang=ja] h1,[lang=ja] h2,[lang=ja] h3,[lang=ja] h4,[lang=ja] h5,[lang=ja] h6,[lang=ja] .h1,[lang=ja] .h2,[lang=ja] .h3,[lang=ja] .h4,[lang=ja] .h5,[lang=ja] .h6 {
    margin-bottom: 0!important;
}

[data-bs-theme="light"] blockquote {
  border-left: 4px solid #dfe2e5;
  padding: 0.5em 1em;
  color: #6a737d;
  background-color: #f6f8fa;
  margin: 0;
  font-style: italic; /* 引用らしいスタイル */
}

[data-bs-theme="dark"] blockquote {
  border-left: 4px solid #c2c7cd;
  padding: 0.5em 1em;
  color: #c2c7cd;
  background-color: #2a2f35;
  margin: 0;
  font-style: italic; /* 引用らしいスタイル */
}

[data-bs-theme="light"] blockquote:not(blockquote blockquote) {
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" font-size="80" fill="rgba(0,0,0,0.1)">“</text></svg>');
  background-repeat: no-repeat;
  background-position: top right;
  background-size: 80px;
}

[data-bs-theme="dark"] blockquote:not(blockquote blockquote) {
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" font-size="80" fill="rgba(255,255,255,0.1)">“</text></svg>');
  background-repeat: no-repeat;
  background-position: top right;
  background-size: 80px;
}
