@import url('https://fonts.googleapis.com/css2?family=Kiwi+Maru&display=swap');

/* ================================
   全体設定
   -------------------------------
   ・フォントを「Kiwi Maru」に統一
   ・背景をやわらかいグラデーションに
   ・本文色と行間を設定
================================= */
body {
  font-family: 'Kiwi Maru', serif;
  background: linear-gradient(to bottom, #fafafa, #f7f8ff);
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.8;
}

/* ================================
   ヘッダー部分
   -------------------------------
   サイト上部のタイトルとナビゲーション
================================= */
.site-header {
  text-align: center;
  padding: 1.8em 0 1.2em;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #eaeaea;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.site-title {
  font-size: 1.8em;
  margin: 0;
  color: #445;
  letter-spacing: 0.03em;
}

.site-nav {
  margin-top: 0.8em;
}

.site-nav a {
  margin: 0 0.4em;
  color: #556;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

.site-nav a:hover {
  color: #667;
  text-decoration: underline;
}

/* ================================
   メインコンテンツエリア
   -------------------------------
   中央寄せ・背景白・角丸のボックス風
================================= */
.site-main {
  max-width: 820px;
  margin: 2.5em auto;
  padding: 2em;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* ================================
   投稿（スレッド）ブロック
================================= */
.post {
  border-bottom: 1px solid #eee;
  padding: 1.2em 0;
}

.post:last-child {
  border-bottom: none;
}

/* ================================
   入力フォーム関連
================================= */
textarea, input[type=text], input[type=password], input[type=file] {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #ccc;
  padding: 0.6em;
  font-size: 1em;
  font-family: 'Kiwi Maru', serif;
  box-sizing: border-box;
  background: #fdfdfd;
  margin-top: 0.3em;
}

input[type=submit], button {
  border: none;
  background: #cfd5ff;
  color: #333;
  padding: 0.6em 1.5em;
  border-radius: 10px;
  font-family: 'Kiwi Maru', serif;
  cursor: pointer;
  transition: 0.2s;
}

input[type=submit]:hover, button:hover {
  background: #b5c2ff;
}

/* ================================
   フッター
================================= */
.site-footer {
  text-align: center;
  padding: 1.8em;
  color: #777;
  font-size: 0.9em;
}

/* ================================
   キャラクター紹介ページ
================================= */
.character-box {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 2rem;
  margin: 2rem 0;
  gap: 2rem;
  flex-wrap: wrap;
}

.char-image img {
  border-radius: 12px;
  height: auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.char-info {
  flex: 1;
  min-width: 300px;
  font-family: "Kiwi Maru", serif;
}

.char-info h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.char-info p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: #444;
}

.char-info ul {
  list-style: none;
  padding: 0;
}

.char-info ul li {
  margin: 0.3rem 0;
  padding-left: 1em;
  position: relative;
}

.char-info ul li::before {
  content: "\2606";
  position: absolute;
  left: 0;
}

/* ================================
   最近の話題リスト（掲示板トップ用）
================================= */
.thread-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.thread-item {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background: #ffffffcc;
  border-radius: 10px;
  border: 1px solid #eee;
  transition: background 0.3s ease;
}

.thread-item:hover {
  background: #f7f9fb;
}

.thread-title {
  font-size: 1.05rem;
  color: #333;
  font-weight: 600;
  text-decoration: none;
}

.thread-title:hover {
  text-decoration: underline;
}

.thread-meta {
  font-size: 0.8rem;
  color: #888;
  display: inline-block;
  margin-top: 0.25rem;
}

/* ================================
   「おやすみ」ボタン装飾
================================= */
.oyasumi-toggle {
  display: inline-flex;
  align-items: center;
  background-color: #ffeaf0; /* 淡いピンク */
  color: #555;
  border: 1px solid #f5c5d3;
  border-radius: 20px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  user-select: none;
}

.oyasumi-toggle input {
  display: none; /* チェックボックス非表示 */
}

.oyasumi-toggle svg {
  margin-right: 6px;
  transition: transform 0.3s ease;
}

.oyasumi-toggle:hover {
  background-color: #ffd6e1;
}

/* チェック時の見た目変更 */
.oyasumi-toggle input:checked ~ span,
.oyasumi-toggle:has(input:checked) {
  background-color: #e0f0ff; /* 淡いブルー */
  border-color: #a8d4f0;
  color: #336699;
}

/* span部分は透明背景 */
.oyasumi-toggle span {
  background: transparent;
  display: inline-flex;
  align-items: center;
}

/* ================================
   お知らせリスト
================================= */
ul.news-list li {
  list-style: none;
  position: relative;
  padding-left: 1.5em;
}

ul.news-list li::before {
  content: "\2611"; /* チェックマーク風 */
  position: absolute;
  left: 0;
  color: #9790a4;
}

/* ================================
   リンクリスト
================================= */
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ================================
   夜トーンのリンク配色
================================= */
a {
  color: #6a7eff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ================================
   投稿内アイコンと本文
================================= */
.icon {
    flex-shrink: 0;
    object-fit: cover;
}

.post {
    padding: 10px;
    margin: 10px 0;
    background: #fff;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.post-body {
    flex: 1;
}

.message {
    margin-bottom: 5px;
    line-height: 1.5em;
}

.meta {
    font-size: 0.85em;
    color: #666;
    text-align: right;
}
.meta a {
    color: #999;
    text-decoration: none;
}
.meta a:hover {
    color: #333;
    text-decoration: underline;
}

/* ================================
   スマホ表示用 調整
   -------------------------------
   ・フォントを少し小さく
   ・両サイドの余白を減らす
   ・アイコンと文字は横並びのまま
================================= */
@media (max-width: 600px) {

  body {
    font-size: 0.9em; /* 全体の文字を少し小さく */
  }

  .site-main {
    margin: 1em auto;
    padding: 1em 1.2em; /* 内側の余白を減らす */
  }

  .post {
    padding: 8px; /* 全体を少しコンパクトに */
    gap: 8px; /* アイコンと本文の間も少し縮める */
  }

  .message {
    font-size: 0.9em; /* 投稿本文を少し小さく */
  }

  .meta {
    font-size: 0.75em; /* 投稿下のメタ情報も小さく */
  }

  .thread-item {
    padding: 0.6rem 0.8rem; /* 少し詰める */
  }

  .thread-title {
    font-size: 0.95rem;
  }

  .thread-meta {
    font-size: 0.75rem;
  }

  .character-box {
    padding: 1rem;
    gap: 1rem;
  }

  .char-info h3 {
    font-size: 1.4rem;
  }

  .char-info p {
    font-size: 0.9rem;
  }
}
