:root {
  --main-color: #00acee;
  --hover-color: #f5f8fa; /* Twitter風の薄いグレー */
}

*, *::before, *::after
{
     box-sizing: border-box;
}

* {
    padding: 0;
    margin : 0;
}

html {
  scroll-behavior:smooth;
}

/* Darkmode */
body.dark-mode {
    --main-color: #1da1f2;
    --hover-color: rgba(255, 255, 255, 0.04);
    --bg-color: #121212;
    --text-color: #f5f5f5;
}
/* ✅ Darkmode時の文字色を白に */
body.dark-mode .favorite-wrapper span {
  color: #f5f5f5;
}
body.dark-mode .users-wrapper span {
    color: #f5f5f5;
}
body.dark-mode .articles-description p {
    color: #f5f5f5;
}
body.dark-mode .articles-description p small {
    color: #ddd;
}
/* Datail Icon color */
/* 通常モード */
.articles-icon-items-wrapper .tw i {
  color: #000;  /* または公式Twitter青など */
}
.articles-icon-items-wrapper .fb i {
    color: #000;
}
.articles-hover i {
    color: gray;
}

/* Darkmode用：白くする */
body.dark-mode .articles-icon-items-wrapper .tw i {
  color: #fff;
}
body.dark-mode .articles-icon-items-wrapper .fb i {
    color: #fff;
}
body.dark-mode .articles-hover i {
    color: #fff
}
/* mobil icons */
/* ダークモード用スタイル */
body.dark-mode .mobile-nav {
    background: #1e1e1e;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.1);
}

body.dark-mode .mobile-nav-link {
    color: #f5f5f5;
}

body.dark-mode .mobile-nav-icon {
    color: #f5f5f5;
}

/* hover や active 状態も対応 */
body.dark-mode .mobile-nav-icon:hover,
body.dark-mode .mobile-nav-icon:active {
    color: var(--main-color); 
}
/* scroll  */
body.dark-mode .mobile-nav {
  background: #1e1e1e;
}
/* user name */
body.dark-mode .following-feed-wrapper p {
        color: #f5f5f5;
    }

/* like */
body.dark-mode .liked .liked_heart {
    color: var(--main-color);
  }
/* left nav right border */
body.dark-mode .left {
    border-right: 0.5px solid rgba(255, 255, 255, 0.1);
}
/* comment */
body.dark-mode .meta-username {
    color: #f5f5f5;
}
body.dark-mode .bubble p {
    color: #333;
}
body.dark-mode .avatar-wrapper a,
body.dark-mode .comment-bg {
        background:#121212;
    }

body.dark-mode .write-new textarea {
    background: #1e1e1e;
    color: #ddd;
    border-bottom: 0.5px solid #444;
    }

body.dark-mode .write-new img {
    background: #444;
    }

body.dark-mode .fa-lg {
    color: #ccc;
    }

body.dark-mode .write-new button {
    background-color: var(--main-color);
    color: #fff;
    }

body.dark-mode .write-new span {
    color: #aaa;
    }
/* swiper side button */
body.dark-mode .custom-swiper-button {
    background-color: gray;
}
/* detail article item p = username */
body.dark-mode .articles-item p {
    color: #f3f3f3;
}

/* Debug */
/* * {
  outline: 1px solid red;
} */

/* Main */
body {
    font-family: 
    "Arial", 
    "ヒラギノ角ゴ Pro W3",
    "Hiragino Kaku Gothic Pro",
    "Osaka",
    "メイリオ",
    "Meiryo",
    "MS Ｐゴシック",
    "MS PGothic",
    sans-serif;
    background-color: var(--bg-color, #fff);
    color: var(--text-color, #000);
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;  /* 横スクロールは防ぐ */
    overflow-y: auto;    /* 縦スクロールは許可（これが必要） */
    touch-action: auto;  /* ← これもズーム有効化の鍵 */
}

a {
  color: var(--main-color);
}

a:hover {
  background-color: var(--hover-color);
}

/* headerやボタンにも反映 */
.header-icon-circle {
  background-color: var(--bg-color);
}

button {
  color: var(--main-color);
  background-color: transparent;
  border: none;
}
.fas {
  color: var(--text-color);
}

ul
{
    list-style: none ;
}

a
{
    text-decoration: none ;
}

.container {
    display: flex;
    height: auto;
    max-width: 100%;
}

.global-tag
{
    text-align: center ;
    margin-bottom: 20px;
}


/* mobil header */
.mobile-nav-wrapper {
    top: 0;
    width: 100%;
    height: 50px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
    background: #fff;
    display: flex;
    overflow-x: auto;
    z-index: 999;
    justify-content: space-between;
    transition: transform 0.3s ease-in-out;
}

/* ダークモード用 */
body.dark-mode .mobile-nav-wrapper {
    background: #1e1e1e;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.05);
}

/* スクロールイベント */
.mobile-nav-wrapper.scroll-down {
    transform: translateY(-100%);
}

.mobile-nav-wrapper.scroll-up {
    transform: translateY(0%);
}

/* オプション：アイコンカラー調整 */
body.dark-mode .mobile-profile-container i,
body.dark-mode .fas.fa-search {
    color: #e0e0e0;
}

/* オプション：検索バー入力 */
body.dark-mode .mobile-search-input {
    background-color: #2b2b2b;
    color: #f5f5f5;
    border: none;
}

/* optional logo color override */
body.dark-mode .mobile-logo_1,
body.dark-mode .mobile-logo_2 {
    color: #e0e0e0;
}

/* end scroll event */
.mobile-nav-top-link
{
    display: flex ;
    flex-direction: column ;
    align-items: center ;
    justify-content: center ;
    /*flex-grow: 1;*/
    min-width: 50px;
    overflow: hidden ;
    white-space: nowrap ;
    color: gray;
    text-decoration: none ;
    -webkit-tap-highlight-color:transparent ;
    transition: background-color 0.1s ease-in-out ;
}

.mobile-profile-container
{
    display: flex ;
    justify-content: center;
    align-items: center ;
}

.mobile-profile-container img
{
    border-radius:50%;
    width:30px;
    height:30px;
}

/* mobile logo */
.mobile-wrapper_circle
{
    font-family: 'Baloo Paaji 2', cursive;
    height:36px;
    width:36px;
    border-radius:50%;
    z-index:1;
    position:relative;
    background:var(--main-color);
}

.mobile-logo_1
{
    position:absolute;
    font-size:26px;
    color: #fff;
    transform: translateX(30%);
    -webkit-transform: translateX(30%);
    top: -10px;

}

.mobile-logo_2
{
    position:absolute;
    font-size:26px;
    color: #fff;
    transform: translateX(110%) ;
    -webkit-transform: translateX(110%);
    top: 4px;
}



.mobile-nav-top-link button
{
    background: none;
    border: none;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}


/* mobile placeholder */

input::placeholder,
input::-webkit-input-placeholder,
input::-moz-placeholder
{
  line-height: normal !important;
  vertical-align: middle;
}

/* left style icon */

/* Logo */
.wrapper_circle
{
    font-family: 'Baloo Paaji 2', cursive;
    height:70px;
    width:70px;
    border-radius:50%;
    z-index:1;
    border:double 10px #fff;
    position:relative;
    background:#555d66;
    margin-left: 8px;
    }

.logo_1
{
    position:absolute;
    top:-6px;
    left:10px;
    font-size:30px;
    color: #fff;
}

.logo_2
{
    position:absolute;
    top:10px;
    left:24px;
    font-size:30px;
    color: #fff;
}

.logo:hover
{
    background-color: unset!important;
}

li.logo {
    margin-top: 10px;
    margin-bottom: 23px;
}

/* left icons */
/* 左ナビ全体 */
.left {
  width: 20%;
  flex-shrink: 0;
  border-right: 0.5px solid #ddd;
  padding: 1rem;
  overflow-y: auto;
}

/*（スクロールしても追従） */
/* left icons wrapper */
.left-icons-wrapper {
    padding-left:6px;
    flex-direction: column;
    gap: 24px; /* アイコンの間のスペース */
}

/* 各リンク（アイコン + ラベル） */
/* 各項目をブロック状にする */

.icon-item {
    margin-bottom: 12px;  /* 各ボックスの間隔 */
}

/* aタグをflexで水平に並べてbox化 */
.icon-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;  /* fa-icon に合わせた幅 */
  height: 24px;
}
.icon-wrapper i {
    font-size: 1.4rem;  /* 少し大きめ */
}

.icon-link:hover {
    background-color: var(--hover-color, #f0f0f0); /* 好きな色に */
    color: rgb(29, 161, 242); /* hover時に色変化 */
}

/* ラベルの文字 */
.icon-label-text {
    font-size: 18px;
    font-weight: 580;
    white-space: nowrap;
}

/* アイコン */
.icon-link i {
    font-size: 23px;
}

/* create button */
.create-btn
{
    background: #1da1f2;
    color: #fff;
    font-size: 23px;
    border: none ;
    border-radius: 50%;
    width: 50px;
    height: 50px;
}


.create-btn:hover
{
    cursor: pointer ;
    background: rgba(0, 148, 255, 0.97);
}

.left-profile-pic {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* profile style */
.profile-pic
{
    border-radius:50%;
    width:40px;
    height:40px;
}

.profile-link
{
    display: flex ;
    justify-content: center ;
    justify-items: center ;
}

.profile-container
{
    display: flex ;
    justify-content: center;
    align-items: center ;
    color: rgb(101,119,134);
}


.icon-container
{
    display: flex ;
    justify-content: center ;
    align-items: center ;
    color:rgb(101,119,134);
    border-radius: 50%;
    position:relative;
}


.fa-ellipsis-h
{
    border-radius:50%;
    border: 2px solid rgb(20, 23, 26);
    width:30px;
    height:30px;
    display: flex ;
    justify-content: center ;
    align-items: center
}

.fa-ellipsis-h:hover
{
   border: 2px solid rgb(29, 161, 242) ;
}

.number{
    background:  #00acee;
    display: flex ;
    justify-content: center ;
    align-items: center ;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #fff;
    position: absolute ;
    transform: translateX(67%) translateY(-150%);
    -webkit-transform: translateX(67%) translateY(-150%);
    z-index: 1;
}

.live_notify_badge
{
    font-size: 12px;
    color: #fff;
}

.user-checking
{
    margin-left: 10px;
}

/* center and right */
/* 中央と右のスクロール領域 */
.center-and-right {
  display: flex;
  height: 100vh;
  overflow-y: auto;
  width: 80%;
  flex-grow: 1;
  scrollbar-gutter: stable;
  overflow-anchor: none;
}
/* center style */
.center {
  width: 70%;
  padding: 3rem;
  flex-shrink: 0;
}

.center-header
{
    display: flex ;
    height: 53px;
    align-items: center ;
    justify-content: space-between ;
    padding-left:15px;
    padding-right:15px;
    cursor:pointer;
}

.header-return
{
    padding: 10px;
    margin-left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative ;
}
.header-icon-text-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.header-return a
{
    color: var(--main-color);
}

.header-return i
{
    position: absolute ;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%) ;
    -webkit-transform: translateY(-50%) translateX(-50%);
}

.header-return:hover
{
    background:var(--hover-color);
}

.header-name
{
    font-family: "Segoe UI", Meiryo, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex ;
    align-items: center ;
    margin-left: 10px;
}



/* articles */
.following-feed-wrapper {
    width: min(470px, 100vw); /* ← vw（画面幅）にするのが一般的 */
    max-width: 100%;
    margin: 0 auto; /* 中央寄せ */
    transition: transform 0.3s ease;
}
.article-wrapper .following-feed-wrapper .following-articles > li {
    display: inline-block;
    vertical-align: middle;
    margin: 10px 2px;
    text-decoration: none;
}
.following-articles a:hover {
    text-decoration: none;
    background: none;
    color: inherit;
}

.article-wrapper {
    width: 100%;
}

.article-wrapper ul li
{
    text-decoration: none ;
    /* display: inline-block ; */
    vertical-align: middle;
    margin: 10px  2px 10px  2px;
}

.articles-item img
{
    height: 50px;
    width: 50px;
    border-radius: 50%;
}

.articles-item p {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600; /* Usernameを少し太く */
    line-height: 1.4;
    color: #262626;
    margin: 0;
}

.articles-item p small {
    font-weight: 400;
    font-size: 13px;
    color: #8e8e8e; 
    margin-left: 4px;
}

.following-articles
{
    margin: 2px;
    padding-left: 8px;
}

/* articles thumbnail */
/* 通常カードの画像サイズ */
.articles-thumb img {
    height: auto;
    object-fit: cover;
    max-width: 100%;
    border-radius: 2px;
    touch-action: manipulation; /* ✅ ズーム可能にする */
    display: block;
}

.articles-thumb .swiper-container {
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #fff;
}

.articles-thumb .swiper-wrapper {
    width: 100%;
    height: 100%;
}

.articles-thumb .swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.articles-thumb .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.swiper-slide img {
    height: 300px;
    touch-action: manipulation; /* ✅ ズーム可能にする */
}

.swiper-container {
  width: 100%;
  overflow: hidden;
}
.swiper-wrapper {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
}
.swiper-slide {
  flex: 0 0 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* --- 矢印ボタンスタイル --- */
/* ボタンの共通スタイル */
.custom-swiper-button {
    width : 23px;
    height: 23px;
    background-color: rgba(250, 246, 246, 0.971);
    opacity: 0.8;
    border-radius: 50%;
    color: #666666ab;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    z-index: 10;
    cursor: pointer;
}

/* Font Awesome アイコンサイズ */
.custom-swiper-button i {
    font-size: 14px;
}

/* 位置調整 */
.swiper-button-prev {
    left: 8px;
}

.swiper-button-next {
    right: 8px;
}

/* デフォルトの ::after を非表示にする */
.swiper-button-prev::after,
.swiper-button-next::after {
    display: none;
}

/* --- pagination スタイル --- */
.articles-thumb .swiper-pagination-bullets {
    bottom: 6px;
}

.articles-thumb .swiper-pagination-bullet {
    background-color: white;
    opacity: 0.7;
    z-index: 1;
}

.articles-thumb .swiper-pagination-bullet-active {
    background-color: #1c507a; /* アクティブ時は少し濃い青 */
    opacity: 1;
    z-index: 1;
}

/* article description */
/* .articles-description
{
    margin: 14px;
} */

.articles-description p
{
    font-family: "Segoe UI", Meiryo, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    padding-top: 10px;
    font-size: 1.2em;
    word-wrap: break-word;
    line-height: 1.8125;
    color: #333;
    letter-spacing:0.05em;
    overflow-wrap: break-word;
    padding-left: 10px;
}

.articles-description a
{
    color: rgb(27, 149, 224);
}

.articles-time
{
    margin: 10px;
    font-family: "Segoe UI", Meiryo, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    word-wrap: break-word;
    line-height: 1.3125;
    color: gray ;
    font-size: 15px;
}

.center-footer{
    padding-bottom: 6px;
}

/* articles icon text box */

.articles-icon-box
{
    display: flex ;
    padding-top: 10px;
    padding-left: 10px;
}

.icon-items:last-child
{
    margin-left: auto ;
}

.articles-icon-box .article_delete
{
    background: none;
    border: none;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.articles-icon-box .article_delete .icon-description
{
    font-size: 16px;
    font-family: "Segoe UI", Meiryo, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: gray ;
    margin-left: 0;
}

.articles-icon-box .article_delete .icon-description:hover
{
    color: tomato ;
}


.articles-icon
{
    margin:10px 0;
}

.icon-items
{
    color: gray ;
}

.articles-icon ul li
{
    margin: 0;
}

.articles-icon-wrapper {
    display: flex;
    flex-wrap: nowrap;
    height: 50px;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    margin: 0;
    /* widthは指定しないか、min-contentなどで自動に */
}

.icon-description
{
    font-family: "Segoe UI", Meiryo, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    margin-right: 10px;
}

.articles-sum
{
    display: inline-block;
    justify-content: center ;
    align-items: center ;
    font-size: 16px;
    padding: 10px;
}


/* icons box */

.icons-box
{
    justify-content: flex-end;
    justify-items: flex-end;
    margin-top: 10px;
    margin-bottom:  10px;;
}

.articles-icon-box-items
{
    bottom: 0;
    width: 100%;
    height: 50px;
    display: flex ;
    justify-content: space-between;
    justify-items: center ;
    align-items: center ;
    margin-top: calc(5px);
}
.articles-icon-box-items > li {
    flex: 0 0 auto;
}

.articles-icon-item-active
{
    font-size: 20px;
    padding: 0px;
    color: gray ;
}

.liked_heart {
    font-size: 22px;
    line-height: 1;
    vertical-align: middle;
    display: flex;
    align-items: center;
    justify-content: center;
    /* width: 100%; ←これ削除 */
    /* height: 100%; ←これも一旦外す */
    width: auto;
    height: auto;
}
.liked .liked_heart
{
    color:var(--main-color);
}

/* hover */
.articles-hover {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
}


.articles-hover i {
    pointer-events: none;
    background: none;
    padding: 0;
    margin: 0;
    transition: color 0.2s ease;
    color: gray;
}

.articles-icon-item-active button
{
    background: none;
    border: none;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-size: 20px;
    color: gray ;
}

.articles-icon-items-wrapper .fb
{
    color:           #3b5998;
}

.articles-icon-items-wrapper .tw
{
    color:           black;
}

.btn-like.liked
{
    color: var(--hover-color);
}
/* safari用 icon-box */
.articles-icon-box-items {
    box-sizing: border-box;
}

.articles-icon-item-active,
.articles-hover,
.articles-hover i {
    box-sizing: border-box;
}

/* comment */
.comment-section {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 全コメント共通 */
.comment-bg
{
    background:  #E5EDF1;    
    display: flex;
    flex-direction: column; /* ← 縦並び */
    max-height: 300px; /* ← 高さ調整 */
    overflow-y: auto;  /* ← 縦スクロールを有効にする */
    padding-right: 5px; /* スクロールバーで内容が隠れないように */
    scrollbar-gutter: stable;
    overflow-anchor: none;
}
.comment-bg::-webkit-scrollbar {
    width: 6px;
}
.comment-bg::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}
.comment {
    margin-bottom: 24px;
}

/* 吹き出しとアバターを横並び */
/* 横並びにする */
.comment-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.self-comment-row {
    justify-content: flex-end; /* ✅ 右寄せ */
    margin-right: 6px;
}

.bubble {
    margin-right: 10px;
    padding: 6px 12px;
    border-radius: 18px;
    position: relative;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 80%;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 色分け */
.other-comment .bubble {
    background-color: #fff;
}
.my-comment .bubble {
    background-color: #dcf8c6;
}

/* 吹き出し矢印 */
.other-comment .bubble::before {
    content: "";
    position: absolute;
    top: 3px;
    left: -15px;
    border: 12px solid transparent;
    border-right-color: #fff;
}
.my-comment .bubble::before {
    content: "";
    position: absolute;
    top: 3px;
    right: -15px;
    border: 12px solid transparent;
    border-left-color: #dcf8c6;
}

/* アバター＋名前＋時刻（縦並び） */
.avatar-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 4px;
    max-width: 70px;
}
.avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.avatar-wrapper a {
    background:  #E5EDF1;
}
.meta-row {
    display: flex;
    gap: 6px;
    color: #888;
    margin-top: 4px;
    margin-left: 2px;
}
.meta-username {
    font-size: 14px;
    font-weight: bold;
    color: #555;
}
.meta-time {
    padding-top: 4px;
    font-size: 0.7rem;
    color: #aaa;
}
.meta-row.self-meta {
    justify-content: flex-end;
    margin-right: 10px;
}


/* ごみ箱ボタン */
.comment-delete-btn-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-right: 10px;
}
.comment-delete-btn
{
    height: 40px;
    width: 40px;
    display: flex ;
    justify-content: center ;
    justify-items: center ;
    align-items: center ;
    border-radius: 50%;
    background-color: #fff;
    margin-top: 10px;
}


.comment-delete-btn button
{
    background: none;
    border: none;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 100%;
    width: 100%;
}


.comment-delete-btn button i
{
    font-size: 18px;
    color: #333;
}

.fa-lg
{
    color: gray;
    cursor: pointer ;
}


.comment.author-comment p {
    order: 1;
    padding-left: 10px;
    }


/* comment text area */
.write-new {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.write-new textarea {
    background:                  #fff;
    border:                        none;
    border-bottom:    0.5px solid #dbdbdb;
    color:                         #666;
    font-family: 'Open Sans' sans-serif;
    font-size:                      1em;
    height:                       80px;
    transition:       border-color 0.3s;
    width:                         100%;
    appearance:                    none;
    -webkit-appearance:            none;
    -moz-appearance:               none;
    padding:                  15px 20px;
    line-height:                   1.75;
    letter-spacing:              0.05em;
    box-sizing: border-box;
    }

.write-new textarea:focus{
    outline:                       none;
}

.write-new img {
    border-radius:        50%;
    background:       #eeeeee;
    width:               50px;
    height:              50px;
    overflow:          hidden;
    text-align:        center;
    }

.comment-btn-wrapper
{
    display: flex ;
    justify-content: space-between;
    margin:0px auto;
    justify-items: center ;
    align-items: center ;
    vertical-align: middle;
    padding-left: 10px;
    padding-top: 10px;
}

.write-new button
{
    background: none;
    border: none;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--main-color);
    color:               #fff;
    font-weight:         bold;
    cursor:           pointer;
    padding: 13px;
    font-size: 16px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    margin-left: 10px;
}


.write-new button:hover
{
    opacity:0.7;
}

.write-new label,
.write-new .errorlist{
    display: none;
    }

.write-new span{
    position:   relative;
    top:            12px;
    font-size:      12px;
    }

/* スマホ対応 */
@media (max-width: 600px) {
  .user-comment-text-box,
  .author-comment-text-box {
    max-width: 90%;
    font-size: 13px;
  }

  .avatar img {
    width: 36px;
    height: 36px;
  }
  .write-new,
  .comment-btn-wrapper,
  .write-new textarea {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .write-new textarea {
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

@media (max-width: 600px) {
  .write-new textarea,
  .write-new input,
  .write-new button {
    font-size: 16px !important;
  }
}

@media (max-width: 600px) {
  .comment-btn-wrapper {
    display: flex;
    justify-content: space-between; /* ← 右寄せに */
    align-items: center;
    gap: 10px;
    padding-right: 10px;
    padding-left: 20px;
  }

  .write-new button {
    width: auto;              /* ← 広がりすぎ防止 */
    margin-left: auto;        /* ← 右寄せ */
    margin-right: 10px;
    margin-top: 0;
    padding: 10px 16px;
    font-size: 14px;
  }

  .write-new img {
    width: 40px;
    height: 40px;
  }
  .avatar-wrapper {
    padding-left: 10px;
  }
}

.global-footer{
    margin:     0px auto;
    padding-bottom: 20px;
    }

/* right style */

/* .right {
  width: 30%;
  padding: 1rem;
  flex-shrink: 0;
} */
.right-wrapper {
    position: relative;
    margin-top: 0;
}
/* search box */

.form-search
{
    background: rgba(234, 242, 245, 0.62);
    width: 90%;
    height: 47px;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 3px;
    margin-bottom: 15px;
    font-size: 15px;
    display: flex ;
    justify-content: center ;
    align-items: center ;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
}

.form-search input[type="text"]
{
    padding: 0;
    border: none;
    border-radius: 0;
    outline: none;
    background: none;
}

.search-input{
    width: 100%;
    height: 100%;
    border-radius: 20%;
    position: relative ;
    font-size: 18px;
    font-weight: 600;
    margin-left: 18px;
}

.form-search i
{
    font-size: 18px;
    margin-left: 10px;
    color: gray ;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke: 1px #fff;
}

.form-search.active
{
    background: #fff;
    border: 1px solid var(--main-color);
}

.form-search.active i
{
    color: var(--main-color);
}

/* おすすめアーティクル */
.favorite-articles
{
    width: 100%;
    margin-top: 72px;
}

.favorite-title
{
    padding: 10px ;
}
.favorite-title span, 
.users-title span {
    font-size: 14px;              /* または 13px */
    font-weight: 600;             /* セミボールド */
    color: #262626;               /* Instagramの標準テキスト色 */
    letter-spacing: 0.3px;        /* 若干の余白で視認性UP */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.4;
}

.favorite-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px 8px 10px;
}

.favorite-wrapper:hover{
    background: var(--hover-color);
    border-radius: 16px;
}
.favorite-wrapper a:hover {
  background-color: transparent;
  color: inherit;
  text-decoration: none;
}
/* favorite Items */
.favorite-category
{
    color: gray ;
    line-height: 2;
}

.favorite-items {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1; /* タイトル側が残り幅を使うように */
}

.favorite-items a {
    color: #333;
    text-decoration: none;
}

.favorite-items span {
    margin-left: 10px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorite-thumb {
    margin-left: 12px;
    flex-shrink: 0;
}

.favorite-thumb img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%; /* 丸型に */
    box-shadow: 0 0 3px rgba(0,0,0,0.1);
}
/* さらに見る */
.favorite-info
{
    padding: 14px;
}

.favorite-info h5
{
    color: #00acee ;
    font-weight: 200;
}

/* おすすめユーザー */
.users
{
    width: 100%;
    height: auto;
    margin-top: 20px;
}
.users-wrapper {
  box-sizing: border-box;
  padding: 8px 10px;
}

.users-title {
    padding: 10px;
}

.users-box {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 10px;
}

.users-items img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%; /* 丸くする */
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
}

.users-items span {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}
.users-wrapper:last-child
{
    border-bottom: none ;
}

.users-wrapper:hover
{
    background: var(--hover-color);
    border-radius: 16px;
}

/* Right item under */
.web-info, .web-info a
{
    text-align: center ;
    color: gray ;
    margin-top: 10px;
}

.web-info span
{
    font-size: 15px;
    padding-right: 10px;
}

.web-info span:hover
{
    text-decoration: underline;
}

.copyright p
{
    font-size: 14px;
    margin-top: 6px;
}


/* mobile nav */

.mobile-nav
{
    position: fixed ;
    bottom: 0;
    width: 100%;
    height: 55px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
    background: #fff;
    display: flex ;
    overflow-x: auto ;
}

.mobile-nav-link
{
    display: flex ;
    flex-direction: column ;
    align-items: center ;
    justify-content: center ;
    flex-grow: 1;
    min-width: 50px;
    overflow: hidden ;
    white-space: nowrap ;
    color: gray;
    text-decoration: none ;
    -webkit-tap-highlight-color:transparent ;
    transition: background-color 0.1s ease-in-out ;
}

.mobile-nav-icon {
    font-size: 24px; /* 少し小さめに */
    color: #000;
    font-weight: 300; /* 効果は限定的（FontAwesomeには反映されないことも） */
    -webkit-text-stroke: 0 !important; /* 輪郭を除去してスッキリ */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav-icon:hover
{
    color: var(--main-color);
}

.mobile-nav-icon:active
{
    color: var(--main-color);
}

.mobile-nav .live_notify_badge
{
    font-size: 10px;
}

/* 半透明（下スクロール時） */
.mobile-nav.scrolled-down {
  opacity: 0.3;
}

/* 元に戻す（上スクロール時） */
.mobile-nav.scrolled-up {
  opacity: 1;
}
/* hiden */
.mobile-nav.nav-hidden {
  opacity: 0;
  pointer-events: none;
}

/* mobile create */

.mobile-create-circle
{
    position:           fixed;
    width:               60px;
    height:              60px;
    background-color: var(--main-color);
    border-radius:        50%;
    bottom:              68px;
    right:               10px;
    z-index:               11;
    border:                 0;
    padding:                0;
    cursor:           pointer;
    transition:transform   .4s;
    outline:             none;
    box-shadow: 0 2.8px 2.2px rgba(0,0,0,.02),
    0 6.7px 5.3px rgba(0,0,0,.028),
    0 12.5px 10px rgba(0,0,0,.035),
    0 22.3px 17.9px rgba(0,0,0,.042),
    0 41.8px 33.4px rgba(0,0,0,.05),
    0 100px 80px rgba(0,0,0,.07);
}

.mobile-create-circle a
{
    color: #fff;
}

.mobile-create-circle i
{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    font-size: 20px;
}

.mobile-create-circle.small
{
    width:               42px;
    height:              42px;
}

.mobile-create-circle.small i
{
    font-size: 16px;
}


/* pagination */

ul{
    padding:                  0;
    list-style-type:       none;
    }

.pager{
    position:          relative;
    top:                   30px;
    padding:               30px;
    }

.pager .pagination {
  text-align:            center;
    }

.pager .pagination li {
  display:               inline;
  margin:                 0 2px;
  padding:                    0;
  display:         inline-block;
  width:                   50px;
  height:                  50px;
  text-align:            center;
  position:            relative;
  border-radius:           50px;
  border:        1px solid #fff;
    }

.pager .pagination li.pre,
.pager .pagination li.next{
  background:            #a3e4e4;
  color:                    #fff;
    }

.pager .pagination li a{
  vertical-align:            middle;
  position:                absolute;
  top:                            0;
  left:                           0;
  width:                       100%;
  height:                      100%;
  text-align:                center;
  display:                    table;
  text-decoration:             none;
  -webkit-transition: all 0.3s ease;
  -moz-transition:    all 0.3s ease;
  -o-transition:      all 0.3s ease;
  transition:        all  0.3s ease;
    }

.pager .pagination li.pre a,
.pager .pagination li.next a{
  color:                       #fff;
    }

.pager .pagination li a span{
  display:               table-cell;
  vertical-align:            middle;
    }

.pagination li a
{
    color: #333;
}

.pager .pagination li a:hover,
.pager .pagination li a.active{
  color:                                #fff;
  background:                        #dde68e;
  border-radius:                        10px;
  border-radius:                        50px;
  animation:         animScale 0.4s ease-out;
  transform-origin:                  50% 50%;
  -webkit-animation: animScale 0.4s ease-out;
  -webkit-transform-origin:          50% 50%;
  -moz-animation: animScale    0.4s ease-out;
  -moz-transform-origin:             50% 50%;
    }

@keyframes animScale {
  0% { transform: scale(0.8, 0.8); }
  40% { transform: scale(1.2, 1.2); }
  60% { transform: scale(1, 1); }
  80% { transform: scale(1.1, 1.1); }
  100% { transform: scale(1, 1); }
    }

@-webkit-keyframes animScale {
  0% { -webkit-transform: scale(0.8, 0.8); }
  40% { -webkit-transform: scale(1.2, 1.2); }
  60% { -webkit-transform: scale(1, 1); }
  80% { -webkit-transform: scale(1.1, 1.1); }
  100% { -webkit-transform: scale(1, 1); }
    }

@-moz-keyframes animScale {
  0% { -moz-transform: scale(0.8, 0.8); }
  40% { -moz-transform: scale(1.2, 1.2); }
  60% { -moz-transform: scale(1, 1); }
  80% { -moz-transform: scale(1.1, 1.1); }
  100% { -moz-transform: scale(1, 1); }
    }


@media only screen and (max-width: 767px){
  .pager .pagination li{
    display:                     none;
  }

  .pager .pagination li.pre,
  .pager .pagination li.next{
    display:            inline-block;
    width:                      42px;
    height:                     42px;
    text-align:               center;
    margin:                   0 auto;
  }

  .pager .pagination li.pre a,
  .pager .pagination li.next a{
    width:                      100%;
    text-align:               center;
  }
}

/* global footer */

.global-footer{
    margin:     100px auto;
    }

/* @media */
/* ipad 横 */
/* iPadサイズではラベルを非表示に */
@media (max-width: 1000px) {
    .left {
        width: 15%;
        flex-shrink: 0; 
    }
    .center-and-right {
        width:85%;
    }
    .center {
        width:100%;
    }
    .right {
        width: 0;
    }
    .right-wrapper {
        display: none;
    }
    .sub_title {
        padding-top: 90px;
    }
    .icon-label-text {
        display: none;
    }
    li.logo {
        justify-content: center;
        justify-items: center;
        padding-left: 0;
    }
    .wrapper_circle {
        justify-content: center;
        justify-items: center;
        margin-left: 0;
    }
    .left-icons-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-left: 0;
    }
    .icon-item {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .icon-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .icon-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    .web-info, .web-info a span{
        font-size: 12px;
    }
}

@media only screen and (max-width: 768px) {
    .left {
        width:15%;
    }
    .center-and-right {
        width: 85%;
    }
    .center {
    width: 100%;
    }
    .pager .pagination li {
    display: none;
    }
    .pager .pagination li.pre,
    .pager .pagination li.next{
    display:            inline-block;
    width:                      42px;
    height:                     42px;
    text-align:               center;
    margin:                   0 auto;
    }
    .pager .pagination li.pre a,
    .pager .pagination li.next a{
    width:                      100%;
    text-align:               center;
    }
}
/* icon box */
@media only screen and (max-width: 768px) {
    .articles-icon-box-items {
        display: flex;
        gap: 8px;
        padding: 0;
        margin: 0;
        list-style: none;
        width: 100%;
        height: 70px;
        justify-content: flex-end;
        box-sizing: border-box;
    }

    .articles-icon-box-items > li {
        flex: 0 0 auto;
    }

    .liked_heart {
        width: auto;
        height: auto;
    }
}
/* scroll bar */
/* スマホ・タブレット（例: 768px 以下）ではスクロールバーを出さない */
@media (max-width: 768px) {
    html, body {
    height: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: auto;
    overscroll-behavior: none;
    scrollbar-width: none;
    }

    .center-and-right {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    }
    /* Chrome, Safari */
    .center-and-right::-webkit-scrollbar {
    display: none;
    }

    /* Firefox */
    .center-and-right {
    scrollbar-width: none;
    -ms-overflow-style: none;
    }
    /* comment */
    /* Chrome, Safari */
    .comment-bg::-webkit-scrollbar {
    display: none;
    }

    /* Firefox */
    .comment-bg {
    scrollbar-width: none;
    -ms-overflow-style: none;
    }
}

/* スマホ */
@media screen and (max-width: 600px) {
    .articles-description h1 {
    font-size: 14px;
    line-height: 1.2;
    margin-bottom: 4px;
    }

    .articles-description p {
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 2px;
    }

    .articles-description small {
    font-size: 10px;
    color: #888; 
    }
    .left
    {
        display: none ;
    }
    .right
    {
        display: none ;
    }
    .center-header
    {
        display:none;
    }
    .center-and-right
    {
        width: 100%;
        margin-top: 0px;
    }
    .center {
        width: 100%;
        padding: 0;
    }
    .following-feed-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    .articles-icon-box-items {
    width: 100%;
    overflow-x: hidden;
    flex-wrap: wrap;
    }
    .mobile-nav {
        z-index: 10;
    }
    .title_wrapper {
        font-size: 20px;
    }
    .sub_title {
        margin-top: 20px;
    }
    .favorite-title span {
        font-size: 15px;
    }
    .following-articles {
        padding-left: 6px;
    }
    .articles-description {
        padding-left: 6px;
        padding-right: 10px;
    }
    .articles-time {
        padding-left: 6px;
    }
    .swiper-container {
    width: 100%;
    }

    .swiper-slide img {
    width: 100%;
    max-width: 100%;
    display: block;
    }
}
/* mobile nav */
@media (min-width: 600px)
{
    .mobil-nav-wrapper
    {
        display:none;
    }
    .mobile-nav
    {
        display:none;
        z-index: 10;
    }
    .mobile-create-circle
    {
        display:none;
    }
}


/* articles icon text box responsive */

@media (max-width: 600px) {
    body {
    overflow-x: hidden; /* ページ全体の横スクロール防止 */
    }
    .articles-icon-box .article_delete .icon-description
    {
        font-size: 12px;
    }
    .articles-sum
    {
        font-size: 12px;
    }
}


/* スマホ（幅600px未満）専用のナビやUIパーツを、
大きな画面（タブレットやPC）では非表示 */
@media (min-width: 600px) {
    .mobile-nav-wrapper {
        display: none;
    }
    .mobile-nav {
        display: none;
    }
    .mobile-create-circle {
        display: none;
    }
}

/* --- レスポンシブ調整 Swiper--- */
@media screen and (max-width: 768px), (hover: none) and (pointer: coarse) {
    .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
    }
}
/* Darkmode 自動切り替え */
@media (prefers-color-scheme: dark) {
    body:not(.dark-mode) {
    --main-color: #1da1f2;
    --hover-color: rgba(255, 255, 255, 0.04);
    --bg-color: #121212;
    --text-color: #f5f5f5;
    }

    body:not(.dark-mode) .mobile-nav-wrapper {
    background-color: #1e1e1e;
    }
    body:not(.dark-mode) .articles-icon-items-wrapper .tw i {
    color: #fff;
    }
    body:not(.dark-mode) .articles-icon-items-wrapper .fb i {
    color: #fff;
    }
    body:not(.dark-mode) .articles-hover i {
    color: #fff;
    }
    body:not(.dark-mode) .favorite-wrapper span {
    color: #f5f5f5;
    }
    body:not(.dark-mode) .users-wrapper span {
    color: #f5f5f5;
    }
    body:not(.dark-mode) .articles-description p {
    color: #f5f5f5;
    }
    body:not(.dark-mode) .articles-description p small {
    color: #ddd;
    }
    body:not(.dark-mode) .mobile-nav {
    background: #1e1e1e;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.1);
    }

    body:not(.dark-mode) .mobile-nav-link {
    color: #f5f5f5;
    }

    body:not(.dark-mode) .mobile-nav-icon {
    color: #f5f5f5;
    }

    body:not(.dark-mode) .mobile-nav-icon:hover,
    body:not(.dark-mode) .mobile-nav-icon:active {
    color: var(--main-color);
    }
    body:not(.dark-mode) .mobile-nav {
    background: #1e1e1e;
    }
    body:not(.dark-mode) .following-feed-wrapper p {
        color: #333;
    }
    body:not(.dark-mode) .articles-description p {
        color: #f5f5f5;
    }
    body:not(.dark-mode) .comment_wrapper p {
    color:#f5f5f5;
    }
    body:not(.dark-mode) .liked .liked_heart {
        color: var(--main-color);
    }
    body:not(.dark-mode) .left {
    border-right: 0.5px solid rgba(255, 255, 255, 0.1);
    }
    body:not(.dark-mode) .custom-swiper-button {
    background-color: gray;
    }
    body:not(.dark-mode) .favorite-title span, 
    body:not(.dark-mode) .users-title span,
    body:not(.dark-mode) .articles-item p {
    color: #f3f3f3;
    }
}
/* comment box  */
/* === 🌙 Dark Mode 対応 === */
@media (prefers-color-scheme: dark) {
    .comment-bg {
        background:#121212;
    }
    .meta-username {
        color: #f5f5f5;
    }
     .bubble p {
        color: #333;
     }
    .avatar-wrapper a,
    .comment-bg {
        background:#121212;
    }

    .write-new textarea {
    background: #1e1e1e;
    color: #ddd;
    border-bottom: 0.5px solid #444;
    }

    .write-new img {
    background: #444;
    }

    .fa-lg {
    color: #ccc;
    }

    .write-new button {
    background-color: var(--main-color);
    color: #fff;
    }

    .write-new span {
    color: #aaa;
    }
}

