/* --- Google Fonts（絶対に一番上） --- */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c&family=Noto+Serif+JP&family=Shippori+Mincho+B1&family=Dancing+Script&family=Kosugi+Maru&family=Yomogi&family=aisyo+Opti&family=Hina+Mincho&display=swap');


/* ========== HTMLタグ全体の調整 ========== /
html {
  height: auto;
  min-height: 100%;
  background: inherit;
  scroll-behavior: smooth;
}

/* ========== ページ全体 ========== */

/* =========================
   全体ベース
========================= */

body {
  margin: 0;
  padding: 0;
  font-family: 'Shippori Mincho B1', serif !important;
  color: #666;
  background: #f4f7f5;
  background-attachment: fixed;
  background-size: cover;
  line-height: 1.4;  /* 行間をやや詰める */
  font-size: 10px;   /* 文字サイズを小さく */
}

body, font, td, th, div, span, p, a {
  font-family: 'Shippori Mincho B1', serif !important; 
}


/* ========== タイトルなど見出し ========== */
h1, h2, h3 {
  font-family: 'Shippori Mincho B1', serif;
  color: #666;
  margin-top: 1em;
  margin-bottom: 0.5em;
  font-size: 1.1em;
  letter-spacing: 0.05em;
}

/* ========== リンク ========== */
a {
  color: #88c0ff;
  text-decoration: none;
  font-family: 'Shippori Mincho B1', serif; !important;
}
a:hover {
  text-decoration: underline;
  font-family: 'Shippori Mincho B1', serif; !important;
}

/* ========== スマホ対応 ========== */
@media screen and (max-width: 768px) {
  body {
    font-size: 11px;
    padding: 1em;
  }

  table {
    width: 95%;
    margin: 1em auto;
    padding: 1em;
  }
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
  margin: 0.5em 0;
  width: 90%;
}

/* 共通投稿ボックス */
.r {
  padding: 2em 1.5em;
  margin: 2em auto;
  width: 92%;
  max-width: 600px;
  box-sizing: border-box;
  color: #fefefe;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-size: 0.9em;
  color: #666;
  line-height: 1.75;
  position: relative;
  background: #ffffff;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
  box-shadow: none !important;  / 影が出ていた場合も消す /
}

/ 子記事の間に線が入っていた場合の対処 /
.r + .r {
  border-top: none !important;
  margin-top: 1.5em; / 代わりにスペースで区切りをつけると見やすいです */
}

/* === スマホ対応：内側余白を確保 === */
@media (max-width: 480px) {
  .reply-box {
    padding: 1.5em 1em;
    width: 90%;
  }
}

rnj {
	background:  linear-gradient(transparent 60%,#fff3a0 60%);
	}

	sdhr{
	background:  linear-gradient(transparent 60%,#cceeff 60%);
	}
	
/* =========================
   LINE風 吹き出し
========================= */

/* 外枠（トーク画面） */
.box {
  max-width: 420px;          /* スマホ想定 */
  height: 180px;             /* ← ここで高さ固定 */
  margin: 16px auto;
  background: rgba(255,255,255,0.08);      /* LINE背景風 */
  border-radius: 10px;
  padding: 0px 8px;
  box-sizing: border-box;
  overflow: hidden;          /* 外枠は固定 */
}

/* トーク相手名バー */
.chat-header {
  text-align: left;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  padding: 1px 0;
  margin-bottom: 1px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* メッセージ部分だけスクロール */
.box .bub {
  height: 100%;
  overflow-y: auto;
  padding-right: 4px;        /* スクロールバー余白 */
}

/* 会話全体 */
.bub {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 共通：吹き出し */
.bub .sd,
.bub .rn {
  max-width: 70%;
  padding: 8px 12px;
  line-height: 1.6;
  border-radius: 18px;
  word-break: break-word;
}

/* 自分側（右） */
.bub .sd {
  background: #e6e6e6;
  color: #333;
  margin-left: auto;
  border-bottom-right-radius: 4px; /* LINEっぽい角 */
}

/* 相手側（左） */
.bub .rn {
  background: #4fa3a5;
  color: #fff;
  margin-right: auto;
  border-bottom-left-radius: 4px;
}
	
/* =========================
   グラデーション文字
========================= */

/* 柳色 → クリーム色 */
.text-grad-yagi-cream {
  background: linear-gradient(90deg, #7ba98b, #fff2cc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 蒲公英色 → 若葉色 */
.text-grad-dandelion-wakaba {
  background: linear-gradient(90deg, #f5d278, #9fd18b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================
   テキストエリア調整
========================= */

textarea {
  width: 95%;
  min-height: 90px;

  font-size: 10px;
  line-height: 1.6;

  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* タップで全選択しやすく */
textarea {
  user-select: all;
}

/* =========================
   LINE風 吹き出し
========================= */

/* ラッパー */
.chat-wrap {
  width: 100%;
  margin: 2px 0;
}

.chat-wrap.right {
  text-align: right;
}

/* 吹き出し共通 */
.chat {
  display: inline-block;
  max-width: 72%;
  padding: 10px 14px;
  margin: 4px 0;

  border-radius: 18px;

  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
  white-space: pre-wrap;
}

/* 左（相手） */
.chat.left {
  background: #eeeeee;
  color: #333;
}

/* 右（自分） */
.chat.right {
  background: #6f8f87; /* 基本のくすみ緑 */
  color: #ffffff;
}

/* =========================
   rn2 / snri 別テーマ
========================= */

/* rn2（柳色） */
.r.by-rn2 .chat.right {
  background: #9fc5a3;
  color: #ffffff;
}

/* snri（若葉色） */
.r.by-snri .chat.right {
  background: #b7e778;
  color: #333;
}

/* =========================
   ちょい調整（任意）
========================= */

/* 吹き出しに軽い影 */
.chat {
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

bks {
  color: transparent;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  user-select: text;
  cursor: pointer;
  font-family: inherit;
}

/* 選択時に見やすくするための指定（必要なら） */
bks::selection {
  color: #fff;
  background: #333;
}

.tweet {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #DDD;
  max-width: 600px;
  font-family: sans-serif;
}

.tweet .content {
  flex: 1;
}

/* 名前 */
.twi-sd {
  color: #3399ff;      /* お好みの色 */
  font-weight: bold;
}

.twi-rn {
  color: #91ad70;      /* お好みの色 */
  font-weight: bold;
}

/* ID（@xxx の部分） */
.id {
  display: inline-block;
  color: #CCC;   /* 灰色っぽい色・X風 */
}

/* 時間 */
.time {
  color: #8899a6;   /* 少し薄いグレー */
}

.text {
  line-height: 1.5;
  margin-bottom: 8px;
}

.action {
  display: flex;
  gap: 24px;
  font-size: 10px;
  color: #777
  }