@charset "UTF-8";

/* ===================================================================
   MEDICALROAD フォーラム（掲示板）専用CSS
   - 既存デザインに統一したスタイル
   - レスポンシブ対応
   - ピンク(#E94F8B) & グリーン(#2B9F93) カラースキーム
=================================================================== */

/* ユーティリティ */
.u-text-overflow {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  display: block;
}

/* ==================================================
   フォーラムコンテンツエリア
================================================== */
.l-content__forumArea,
.l-content__forumDetail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  padding-top: 0;
}

/* ==================================================
   言語スイッチャー
================================================== */
.c-forum__langSwitcher {
  position: relative;
  display: inline-block;
  z-index: 100;
}

.c-forum__langButton {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

.c-forum__langButton:hover {
  border-color: #E94F8B;
  background: #fff9fb;
}

.c-forum__langFlag {
  font-size: 1.2rem;
  line-height: 1;
}

.c-forum__langName {
  white-space: nowrap;
}

.c-forum__langButton svg {
  width: 16px;
  height: 16px;
  color: #999;
  transition: transform 0.2s;
}

.c-forum__langButton:hover svg {
  color: #E94F8B;
}

.c-forum__langMenu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  overflow: hidden;
}

.c-forum__langMenu.--show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.c-forum__langItem {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  text-decoration: none;
  color: #333;
  transition: all 0.2s;
  border-bottom: 1px solid #f0f0f0;
}

.c-forum__langItem:last-child {
  border-bottom: none;
}

.c-forum__langItem:hover {
  background: #fff9fb;
  color: #E94F8B;
}

.c-forum__langItem.--active {
  background: linear-gradient(135deg, #fff9fb 0%, #fff 100%);
  color: #E94F8B;
  font-weight: 600;
}

.c-forum__langItem svg {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: #E94F8B;
}

/* ==================================================
   フォーラムヘッダー（ウェルカム＋検索）
================================================== */
.c-forum__header {
  margin-bottom: 2.5rem;
}

.c-forum__headerTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.c-forum__welcomeBox {
  background: #E94F8B;
  border-left: 4px solid #E94F8B;
  border-right: 4px solid #E94F8B;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(233, 79, 139, 0.2);
  margin-bottom: 1.5rem;
}

.c-forum__welcomeBox .c-iconSvg.--forum {
  display: none;
}

.c-forum__welcomeText {
  text-align: center;
  width: 100%;
  padding: 0;
}

.c-forum__welcomeText h3 {
  color: #fff;
  margin: 0 0 0.3rem 0;
  font-weight: 600;
}

.c-forum__welcomeText p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin: 0;
}

/* 検索フォーム */
.c-forum__searchArea {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.c-forum__searchForm {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}

.c-forum__searchInput {
  flex: 1;
  position: relative;
}

.c-forum__searchInput .c-iconSvg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #999;
}

.c-forum__searchInput input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.8rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.c-forum__searchInput input:focus {
  outline: none;
  border-color: #E94F8B;
  box-shadow: 0 0 0 3px rgba(233, 79, 139, 0.1);
}

.c-btn__forumSearch {
  background: #E94F8B;
  color: #fff;
  border: 2px solid transparent;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.c-btn__forumSearch:hover {
  background: #d43d7a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 79, 139, 0.3);
}

/* フィルタータブ */
.c-forum__filterTabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.c-forum__filterTab {
  padding: 0.5rem 1.2rem;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}

.c-forum__filterTab:hover {
  background: #ffe8f2;
  border-color: #E94F8B;
  color: #E94F8B;
}

.c-forum__filterTab.--active {
  background: #E94F8B;
  border-color: #E94F8B;
  color: #fff;
}

/* ==================================================
   トピックリスト
================================================== */
.c-forum__topicList {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.c-forum__topicItem {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
  position: relative;
}

.c-forum__topicItem:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* ピン留めトピック */
.c-forum__topicItem.--pinned {
  background: linear-gradient(135deg, #fff9fb 0%, #fff 100%);
  border: 2px solid #E94F8B;
}

.c-forum__topicLink {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
}

.c-forum__topicBadges {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

.c-forum__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.c-forum__badge.--pinned {
  background: #E94F8B;
  color: #fff;
}

.c-forum__badge.--new {
  background: #2B9F93;
  color: #fff;
}

.c-forum__topicMain {
  flex: 1;
  min-width: 0;
}

.c-forum__topicTitle {
  font-size: 1.15rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.8rem 0;
  line-height: 1.5;
}

.c-forum__topicItem:hover .c-forum__topicTitle {
  color: #E94F8B;
}

.c-forum__topicMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #666;
}

.c-forum__topicMeta > span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.c-forum__topicMeta .c-iconSvg,
.c-forum__topicMeta svg {
  width: 14px;
  height: 14px;
  color: #999;
}

.c-forum__topicCategory {
  color: #E94F8B;
  font-weight: 600;
}

.c-forum__topicStats {
  display: flex;
  gap: 1.5rem;
  flex-shrink: 0;
}

.c-forum__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 70px;
}

.c-forum__stat svg {
  width: 18px;
  height: 18px;
  color: #999;
}

.c-forum__statNumber {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
}

.c-forum__statLabel {
  font-size: 0.75rem;
  color: #999;
}

/* ==================================================
   ページネーション
================================================== */
/* ページネーションラッパー */
.c-forum__paginationWrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.c-forum__paginationWrapper .c-list__pager {
  flex: 1;
  margin: 0;
}

/* ページネーション アクティブ状態のみ追加 */
.c-list__pagerLink.--active {
  background: linear-gradient(135deg, #E94F8B, #ff6b9d) !important;
  color: #fff !important;
  border-color: #E94F8B !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(233, 79, 139, 0.3);
  cursor: default;
}

/* ==================================================
   トピック詳細ページ
================================================== */
.c-topic__header {
  margin-bottom: 2rem;
}

.c-topic__headerMeta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.c-topic__headerViews {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #999;
}

.c-topic__headerTitle {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
  margin: 0;
}

/* 投稿（トピック本文・コメント共通） */
.c-topic__post {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}

.c-topic__post.--main {
  background: linear-gradient(135deg, #fff 0%, #fef7fa 100%);
  border-radius: 12px;
  padding: 1.5rem;
  padding-bottom: 3.5rem;
  box-shadow: 0 2px 8px rgba(233, 79, 139, 0.08);
  border-left: 4px solid #E94F8B;
  position: relative;
  border-right: 4px solid #E94F8B;
  position: relative;
}

/* スレッドの右上Delete/Editボタンコンテナ */
.c-thread__actions-top {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 5;
}

.c-thread__actions-top .c-btn__delete.--topRight,
.c-thread__actions-top .c-btn__edit.--topRight {
  position: static;
}

.c-topic__post.--main.--my-post {
  background: #fff1f7;
  box-shadow: 0 2px 12px rgba(233, 79, 139, 0.15);
}

.c-topic__postHeader {
  margin-bottom: 1.5rem;
}

.c-topic__postAuthor {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.c-topic__postAvatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: #E94F8B;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.c-topic__postAvatar.--small {
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
}

.c-topic__postAvatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-topic__postAvatar[data-initial]:not(:has(img))::after {
  content: attr(data-initial);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.c-topic__postAuthorInfo {
  flex: 1;
}

.c-topic__postAuthorName {
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.3rem;
}

.c-topic__postDate {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #999;
}

.c-topic__postDate svg {
  width: 14px;
  height: 14px;
}

.c-topic__postContent {
  color: #444;
  line-height: 1.5;
  font-size: 1rem;
  text-align: left;
}

.c-topic__postContent p {
  margin: 0 0 1rem 0;
}

.c-topic__postContent p:last-child {
  margin-bottom: 0;
}

.c-topic__postContent ul,
.c-topic__postContent ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.c-topic__postContent li {
  margin-bottom: 0.5rem;
}

.c-topic__postContent strong {
  color: #E94F8B;
  font-weight: 600;
}

.c-topic__postContent a {
  color: #2B9F93;
  text-decoration: underline;
}

.c-topic__postContent a:hover {
  color: #1f7d72;
}

/* ==================================================
   投稿アクション（削除ボタン等）
================================================== */
.c-topic__postActions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.c-btn__delete {
  background: #fff;
  color: #dc3545;
  border: 2px solid #dc3545;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.c-btn__delete:hover {
  background: #dc3545;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.c-btn__delete svg {
  width: 16px;
  height: 16px;
}

/* コメント用の小さい削除ボタン */
.c-btn__delete.--small {
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  border-width: 1px;
}

.c-btn__delete.--small svg {
  width: 14px;
  height: 14px;
}

/* 右上配置のボタン群 */
.c-topic__actionButtons {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  display: flex;
  gap: 0.5rem;
}

.c-topic__actionButtons .c-btn__delete.--topRight,
.c-topic__actionButtons .c-btn__edit.--topRight {
  position: static;
}

/* Editボタン（Deleteと同じデザイン） */
.c-btn__edit {
  background: #fff;
  color: #dc3545;
  border: 2px solid #dc3545;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.c-btn__edit:hover {
  background: #dc3545;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.c-btn__edit svg {
  width: 16px;
  height: 16px;
}

/* Edit用の小さいボタン（Delete --smallと統一） */
.c-btn__edit.--small {
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  border-width: 1px;
}

.c-btn__edit.--small svg {
  width: 14px;
  height: 14px;
}

/* スマホ時はEditボタンもアイコンのみに */
@media screen and (max-width: 480px) {
  .c-btn__edit.--topRight {
    padding: 0.5rem;
    min-width: auto;
  }
  
  .c-btn__edit.--topRight span {
    display: none;
  }
  
  .c-btn__delete.--topRight {
    padding: 0.5rem;
    min-width: auto;
  }
  
  .c-btn__delete.--topRight span {
    display: none;
  }
}

/* 編集フォーム */
.c-topic__editForm {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px dashed #e0e0e0;
  position: relative;
}

/* 編集フォームの×ボタン位置調整（入力エリアの右端に合わせる） */
.c-topic__editForm > .c-topic__commentFormClose {
  position: absolute;
  top: 1.5rem;
  right: 0;
}

/* タイトル入力欄の長いテキスト改行対応 */
.c-form__input {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* 編集フォーム送信ボタン */
.c-topic__editSubmit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 400px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  background: #E94F8B;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-sizing: border-box;
}

/* スマホ時は横幅いっぱい */
@media screen and (max-width: 767px) {
  .c-topic__editSubmit {
    width: 100%;
  }
}

.c-topic__editSubmit:hover {
  background: #d43d7a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 79, 139, 0.3);
}

.c-topic__editSubmit svg {
  flex-shrink: 0;
}

/* コメントのアクションエリア */
.c-topic__postActions.--comment {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px dashed #eee;
  display: flex;
  justify-content: flex-end;
}

/* ==================================================
   コメントセクション
================================================== */
.c-topic__commentsSection {
  margin-top: 3rem;
}

.c-topic__commentsTitle {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #E94F8B;
}

.c-topic__commentsTitle svg {
  width: 24px;
  height: 24px;
  color: #E94F8B;
  flex-shrink: 0;
  transform: translateY(2px);
}

.c-topic__commentsTitleText {
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.c-topic__commentsRange {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.7;
}

.c-topic__commentsList {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.c-topic__comment {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #E94F8B;
  transition: all 0.2s;
  position: relative;
}

/* コメント内の右上Deleteボタン */
.c-topic__comment > .c-btn__delete.--topRight {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
}

.c-topic__comment:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.c-topic__comment.--my-post {
  background: #fff1f7;
  box-shadow: 0 2px 12px rgba(233, 79, 139, 0.15);
}

.c-topic__comment.--my-post:hover {
  box-shadow: 0 4px 16px rgba(233, 79, 139, 0.25);
}

/* ==================================================
   コメント投稿フォーム
================================================== */
.c-topic__commentForm {
  background: linear-gradient(135deg, #fff9fb 0%, #fff 100%);
  padding: 2rem;
  border-radius: 10px;
  border: 2px solid #E94F8B;
  box-shadow: 0 4px 12px rgba(233, 79, 139, 0.1);
  position: relative;
}

.c-topic__commentFormClose {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #fff;
  border: 1px solid #f5c2d8;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d43d7a;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(233, 79, 139, 0.15);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.c-topic__commentFormClose:hover,
.c-topic__commentFormClose:focus {
  background: #fff1f7;
  color: #b63067;
  transform: translateY(-1px);
}

.c-topic__commentFormTitle {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 1.5rem 0;
  padding-right: 2.5rem;
}

/* コメント投稿フォームの場合は閉じるボタンがないので右パディング不要 */
.c-topic__commentForm .c-topic__commentFormTitle {
  padding-right: 0;
}

/* ==================================================
   コメントいいねボタン
================================================== */
.c-comment__actions {
  position: absolute;
  bottom: 1rem;
  right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.c-comment__likeBtn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  padding: 0.45rem 0.6rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #aaa;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  position: relative;
}

.c-comment__likeBtn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: rgba(233, 79, 139, 0.08);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.c-comment__likeBtn:hover::before {
  opacity: 1;
}

.c-comment__likeBtn:hover {
  color: #E94F8B;
  transform: scale(1.05);
}

.c-comment__likeBtn:hover .c-comment__likeIcon {
  transform: scale(1.2);
}

.c-comment__likeIcon {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}

/* いいね済み状態 */
.c-comment__likeBtn[data-liked="true"] {
  background: transparent;
  color: #E94F8B;
}

.c-comment__likeBtn[data-liked="true"] .c-comment__likeIcon {
  fill: #E94F8B;
  stroke: #E94F8B;
}

/* いいねアニメーション */
@keyframes likeHeartBeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(0.9); }
  75% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.c-comment__likeBtn.--animating .c-comment__likeIcon {
  animation: likeHeartBeat 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.c-comment__likeCount {
  font-variant-numeric: tabular-nums;
  min-width: 1.2em;
  text-align: left;
}

/* いいねログイン促進トースト */
.c-likeToast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #fff0f5 0%, #fce4ec 100%);
  border: 1.5px solid #f8bbd0;
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  box-shadow: 0 4px 20px rgba(233, 79, 139, 0.15);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.c-likeToast.--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.c-likeToast__icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}
.c-likeToast__text {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.35;
}
.c-likeToast__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.8rem;
  background: #E94F8B;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.c-likeToast__btn:hover {
  background: #d63a78;
}
.c-likeToast__close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #bbb;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}
.c-likeToast__close:hover {
  color: #888;
}

/* ありがとうトースト（いいね成功時） */
.c-likeToast.--thankYou {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  border-color: #a5d6a7;
}

/* SP: トーストの幅調整 */
@media (max-width: 600px) {
  .c-likeToast {
    left: 1rem;
    right: 1rem;
    transform: translateY(20px);
    white-space: normal;
  }
  .c-likeToast.--visible {
    transform: translateY(0);
  }
}

/* スレッド用いいねボタンの位置調整 */
.c-thread__actions {
  bottom: 1rem;
  right: 0.5rem;
}

.c-form__group {
  margin-bottom: 1.5rem;
}

.c-form__textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  transition: all 0.2s;
}

.c-form__textarea:focus {
  outline: none;
  border-color: #E94F8B;
  box-shadow: 0 0 0 3px rgba(233, 79, 139, 0.1);
}

.c-form__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.c-btn__submit {
  background: #E94F8B;
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.c-btn__submit:hover {
  background: #d43d7a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 79, 139, 0.3);
}

.c-btn__submit svg {
  width: 18px;
  height: 18px;
}

/* ==================================================
   戻るボタン
================================================== */
.c-topic__backButton {
  margin-top: 2rem;
  text-align: center;
}

.c-btn__back {
  background: #fff;
  color: #666;
  border: 2px solid #e0e0e0;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.c-btn__back:hover {
  background: #f5f5f5;
  border-color: #999;
  color: #333;
  transform: translateY(-2px);
}

.c-btn__back svg {
  width: 18px;
  height: 18px;
}

/* ==================================================
   管理者用フォーム
================================================== */
.c-admin__header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 3px solid #E94F8B;
}

.c-admin__title {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.c-admin__title svg {
  width: 32px;
  height: 32px;
  color: #E94F8B;
}

.c-admin__subtitle {
  font-size: 0.9rem;
  color: #999;
  font-weight: 500;
  margin: 0;
}

.c-admin__form {
  max-width: 900px;
  margin: 0 auto;
}

.c-form__group.--admin {
  margin-bottom: 2rem;
}

.c-form__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.8rem;
}

.c-form__label svg {
  width: 18px;
  height: 18px;
  color: #E94F8B;
}

.c-form__required {
  color: #E94F8B;
  font-size: 0.8rem;
  margin-left: 0.3rem;
  font-weight: 500;
}

.c-form__input,
.c-form__select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s;
}

.c-form__input:focus,
.c-form__select:focus {
  outline: none;
  border-color: #E94F8B;
  box-shadow: 0 0 0 3px rgba(233, 79, 139, 0.1);
}

.c-form__textarea.--large {
  min-height: 300px;
  font-family: inherit;
}

.c-form__hint {
  font-size: 0.85rem;
  color: #999;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* ツールバー */
.c-form__toolbar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.c-form__toolbarBtn {
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.c-form__toolbarBtn:hover {
  background: #ffe8f2;
  border-color: #E94F8B;
  color: #E94F8B;
}

/* チェックボックス */
.c-form__checkboxGroup {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.c-form__checkbox {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}

.c-form__checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.c-form__checkboxLabel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #666;
}

.c-form__checkboxLabel svg {
  display: none;
  width: 16px;
  height: 16px;
  color: #E94F8B;
}

.c-form__checkbox input[type="checkbox"]:checked ~ .c-form__checkboxLabel svg {
  display: inline-block;
}

/* プレビューボタン */
.c-btn__preview {
  background: #2B9F93;
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.c-btn__preview:hover {
  background: #1f7d72;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(43, 159, 147, 0.3);
}

.c-btn__preview svg {
  width: 18px;
  height: 18px;
}

/* プレビューエリア */
.c-admin__preview {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 10px;
  margin-top: 2rem;
  border: 2px dashed #2B9F93;
}

.c-admin__previewTitle {
  color: #2B9F93;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.c-admin__previewTitle::before {
  content: '👁';
  font-size: 1.4rem;
}

/* フォームアクション */
.c-form__actions.--admin {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e0e0e0;
}

.c-btn__cancel {
  background: #fff;
  color: #666;
  border: 2px solid #e0e0e0;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.c-btn__cancel:hover {
  background: #f5f5f5;
  border-color: #999;
  color: #333;
}

.c-btn__cancel svg {
  width: 18px;
  height: 18px;
}

.c-btn__submit.--large {
  padding: 1rem 3rem;
  font-size: 1.05rem;
}

/* ==================================================
   レスポンシブ対応
================================================== */

/* タブレット横向きまで（iPad等） */
@media (max-width: 1024px) {
  .c-forum__threadItem .c-forum__threadLink {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
  }

  .c-forum__threadItem .c-forum__threadContent {
    flex: 1;
    min-width: 0;
    display: block;
  }

  .c-forum__threadItem .c-forum__threadMain {
    display: block;
  }

  .c-forum__threadItem .c-forum__threadHeader {
    margin-bottom: 0;
  }

  .c-forum__threadItem .c-forum__threadTitle {
    margin-bottom: 0.2rem;
  }

  .c-forum__threadItem .c-forum__threadStats {
    display: flex;
    flex-direction: row;
    border-left: none;
    padding: 0.5rem 0 0;
    margin: 0;
    justify-content: center;
    gap: 2rem;
    /* パネル全体の中央に配置するため、アバター分の幅を左にオフセット */
    margin-left: -50px;
    padding-left: 0;
  }

  .c-forum__threadItem .c-forum__threadStat {
    flex-direction: row;
    gap: 0.4rem;
    font-size: 0.85rem;
    min-width: auto;
  }

  .c-forum__threadItem .c-forum__threadStat svg {
    width: 14px;
    height: 14px;
  }

  .c-forum__threadItem .c-forum__threadStatNumber {
    font-size: 0.95rem;
  }
}

/* タブレット */
@media (max-width: 768px) {
  .l-content__forumArea,
  .l-content__forumDetail {
    padding: 0 1rem 2rem;
  }

  .c-forum__paginationWrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .c-forum__paginationWrapper .c-list__pager {
    order: 1;
    width: 100%;
  }

  .c-btn__newThread {
    order: 2;
    width: 100%;
    justify-content: center;
  }

  .c-btn__back {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .c-forum__stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .c-forum__statItem {
    padding: 1.2rem;
  }

  .c-forum__statIcon {
    width: 50px;
    height: 50px;
  }

  .c-forum__statIcon svg {
    width: 24px;
    height: 24px;
  }

  .c-forum__statNumber {
    font-size: 1.5rem;
  }

  .c-forum__categoryItem .c-forum__categoryLink {
    flex-wrap: wrap;
    gap: 0 1rem;
  }

  .c-forum__categoryStats {
    flex-direction: row;
    border-left: none !important;
    border-top: none;
    padding: 0;
    padding-left: 0;
    width: 100%;
    min-width: auto;
    margin-left: 0;
    justify-content: space-around;
    gap: 1rem;
    margin-top: 0;
  }

  .c-forum__threadLatest {
    display: none;
  }

  .c-forum__categoryStat {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    min-width: auto;
    gap: 0.4rem;
  }

  .c-forum__categoryStat svg {
    width: 14px;
    height: 14px;
  }

  .c-forum__categoryLink .c-forum__categoryStat strong {
    font-size: 0.85rem;
    font-weight: normal;
  }

  .c-forum__categoryStat span {
    font-size: 0.7rem;
  }

  .c-forum__langButton {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }

  .c-forum__langName {
    display: none;
  }

  .c-forum__langFlag {
    font-size: 1.4rem;
  }

  .c-forum__headerTop {
    margin-bottom: 1rem;
  }

  .c-forum__welcomeBox {
    padding: 0.8rem 1rem;
    gap: 0.6rem;
  }

  .c-forum__searchForm {
    flex-direction: column;
  }

  .c-btn__forumSearch {
    width: 100%;
  }

  .c-forum__topicLink {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem;
  }

  .c-forum__topicBadges {
    flex-direction: row;
  }

  .c-forum__topicStats {
    width: 100%;
    justify-content: flex-start;
  }

  .c-topic__headerTitle {
    font-size: 1.5rem;
  }

  .c-topic__post {
    padding: 1.5rem;
  }

  .c-admin__title {
    font-size: 1.5rem;
  }

  .c-form__actions.--admin {
    flex-direction: column;
  }

  .c-btn__cancel,
  .c-btn__submit.--large {
    width: 100%;
    justify-content: center;
  }
}

/* スマートフォン */
@media (max-width: 480px) {
  .l-content__forumArea,
  .l-content__forumDetail {
    padding: 0 0.4rem 1.5rem !important;
  }

  .c-forum__statItem {
    padding: 1rem;
  }

  .c-forum__statIcon {
    width: 45px;
    height: 45px;
  }

  .c-forum__statIcon svg {
    width: 20px;
    height: 20px;
  }

  .c-forum__statNumber {
    font-size: 1.3rem;
  }

  .c-forum__statLabel {
    font-size: 0.8rem;
  }

  .c-forum__categoryItem .c-forum__categoryLink {
    padding: 1rem 0.5rem;
    flex-wrap: wrap;
    gap: 0 0.8rem;
    row-gap: 0.5rem;
    align-content: flex-start;
  }

  .c-forum__categoryIcon {
    width: 55px;
    height: 55px;
  }

  .c-forum__categoryEmoji {
    font-size: 1.5rem;
  }

  .c-forum__categoryMain {
    text-align: center;
  }

  .c-forum__categoryTitle {
    font-size: 1.05rem;
    justify-content: center;
  }

  .c-forum__categoryDesc {
    font-size: 0.85rem;
    line-height: 1.3;
    text-align: center;
  }

  .c-forum__categoryStat {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
  }

  .c-forum__categoryStat svg {
    width: 14px;
    height: 14px;
  }

  .c-forum__categoryLink .c-forum__categoryStat strong {
    font-size: 0.85rem;
    font-weight: normal;
  }

  .c-forum__categoryStat span {
    font-size: 0.7rem;
  }

  .c-forum__welcomeBox {
    padding: 0.7rem 0.8rem;
  }

  .c-forum__searchArea {
    padding: 1rem;
  }

  .c-forum__topicLink {
    padding: 1rem;
    gap: 1rem;
  }

  .c-forum__threadItem .c-forum__threadLink {
    padding: 1rem 0.5rem;
    flex-wrap: wrap;
    gap: 0 0.8rem;
    row-gap: 0.5rem;
    align-content: flex-start;
  }

  .c-forum__threadAvatar {
    width: 55px;
    height: 55px;
  }

  .c-forum__threadAvatar.--small {
    width: 32px;
    height: 32px;
  }

  .c-forum__threadStat {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
  }

  .c-forum__threadLink .c-forum__threadStatNumber {
    font-size: 0.85rem;
    font-weight: normal;
  }

  .c-forum__topicTitle {
    font-size: 1rem;
  }

  .c-forum__topicMeta {
    font-size: 0.8rem;
    gap: 0.8rem;
  }

  .c-forum__topicStats {
    gap: 1rem;
  }

  .c-forum__stat {
    min-width: 60px;
  }

  .c-forum__statNumber {
    font-size: 1rem;
  }

  .c-forum__statLabel {
    font-size: 0.7rem;
  }

  .c-topic__headerTitle {
    font-size: 1.3rem;
  }

  .c-topic__post {
    padding: 1rem;
  }

  .c-topic__postContent {
    font-size: 0.95rem;
  }

  .c-topic__commentsTitle {
    font-size: 1.2rem;
  }

  .c-topic__commentForm {
    padding: 1.5rem;
  }

  .c-admin__title {
    font-size: 1.3rem;
    flex-direction: column;
  }

  .c-admin__title svg {
    width: 28px;
    height: 28px;
  }

  .c-form__toolbar {
    gap: 0.3rem;
  }

  .c-form__toolbarBtn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
}

/* ==================================================
   フォーラム統計（index.php）
================================================== */
.c-forum__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.c-forum__statItem {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
}

.c-forum__statItem:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.c-forum__statItem:nth-child(1) .c-forum__statIcon {
  background: linear-gradient(135deg, #E94F8B 0%, #d43d7a 100%);
}

.c-forum__statItem:nth-child(2) .c-forum__statIcon {
  background: linear-gradient(135deg, #2B9F93 0%, #1f7d72 100%);
}

.c-forum__statItem:nth-child(3) .c-forum__statIcon {
  background: linear-gradient(135deg, #4A90E2 0%, #3a7bc8 100%);
}

.c-forum__statIcon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.c-forum__statIcon svg {
  width: 30px;
  height: 30px;
  color: #fff;
}

.c-forum__statInfo {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.c-forum__statNumber {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  line-height: 1;
}

.c-forum__statLabel {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.3;
}

.c-forum__statLabel small {
  font-size: 0.8em;
  color: #999;
}

/* ==================================================
   カテゴリ一覧（index.php）
================================================== */
.c-forum__categoryList {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.c-forum__categoryItem {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
  position: relative;
  border-left: 8px solid #E94F8B;
}

.c-forum__categoryItem:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.c-forum__categoryItem.--pinned {
  border: 2px solid #E94F8B;
  background: linear-gradient(135deg, #fff9fb 0%, #fff 100%);
}

.c-forum__categoryLink {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
}

.c-forum__categoryIcon {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.c-forum__categoryEmoji {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.c-forum__categoryMain {
  flex: 1;
  min-width: 0;
}

.c-forum__categoryTitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.c-forum__categoryItem:hover .c-forum__categoryTitle {
  color: #E94F8B;
}

.c-forum__badge.--pinned-small {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.4rem;
  background: #E94F8B;
  color: #fff;
  border-radius: 4px;
  font-size: 0.7rem;
}

.c-forum__categoryDesc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
  margin: 0;
  text-align: left;
}

.c-forum__categoryDescVi {
  font-size: 0.85em;
  color: #999;
  display: block;
}

.c-forum__categoryStats {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  flex-shrink: 0;
  padding: 0 1rem;
  border-left: 2px solid #f0f0f0;
  min-width: auto;
  margin-left: auto;
}

.c-forum__categoryStat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: #666;
}

.c-forum__categoryStat svg {
  color: #999;
  flex-shrink: 0;
}

.c-forum__categoryStat strong {
  color: #333;
  font-weight: 700;
  font-size: 1.1rem;
}

.c-forum__categoryStat span {
  font-size: 0.8rem;
  text-align: center;
}

.c-forum__categoryLatest {
  display: none;
}

.c-forum__categoryLatest svg {
  color: #2B9F93;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.c-forum__categoryLatestInfo {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.c-forum__categoryLatestTitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.c-forum__categoryLatestMeta {
  font-size: 0.75rem;
  color: #999;
  line-height: 1.3;
}

.c-forum__categoryLatestMeta strong {
  color: #666;
  font-weight: 600;
}

/* ==================================================
   カテゴリページ - 検索ボックス
================================================== */
.c-forum__searchBox {
  background: linear-gradient(135deg, #fff 0%, #fef7fa 100%);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(233, 79, 139, 0.08);
  border-left: 4px solid #E94F8B;
  border-right: 4px solid #E94F8B;
  transition: all 0.3s;
}

.c-forum__searchBox:focus-within {
  box-shadow: 0 4px 12px rgba(233, 79, 139, 0.15);
}

.c-forum__searchInputWrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.c-forum__searchIcon {
  position: absolute;
  left: 1rem;
  color: #999;
  pointer-events: none;
  z-index: 2;
  transition: color 0.3s;
}

.c-forum__searchBox:focus-within .c-forum__searchIcon {
  color: #2B9F93;
}

.c-forum__searchInput {
  width: 100%;
  padding: 1rem 3rem 1rem 3.2rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s;
  background: #fff;
}

.c-forum__searchInput:focus {
  outline: none;
  border-color: #2B9F93;
  box-shadow: 0 0 0 3px rgba(43, 159, 147, 0.1);
}

.c-forum__searchInput::placeholder {
  color: #999;
  font-size: 0.9rem;
}

.c-forum__searchClear {
  position: absolute;
  right: 1rem;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  color: #999;
  z-index: 2;
}

.c-forum__searchClear:hover {
  background: #f5f5f5;
  color: #E94F8B;
  transform: scale(1.1);
}

.c-forum__searchMeta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
  font-size: 0.9rem;
  font-weight: 600;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 検索結果ハイライト */
.c-forum__threadTitle mark {
  background: #fff59d;
  padding: 0 3px;
  border-radius: 3px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(255, 245, 157, 0.5);
}

/* カテゴリヘッダー */
.c-forum__categoryHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.c-btn__back.--forum {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  color: #666;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.c-btn__back.--forum:hover {
  background: #f5f5f5;
  border-color: #999;
  color: #333;
  transform: translateX(-3px);
}

.c-btn__newThread {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: #E94F8B;
  border: 2px solid transparent;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.c-btn__newThread:hover {
  background: #d43d7a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 79, 139, 0.3);
}

.c-btn__newThread:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.c-btn__newThread:disabled:hover {
  background: #ccc;
  transform: none;
  box-shadow: none;
}

/* スレッドリスト */
.c-forum__threadList {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.c-forum__threadItem {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
  position: relative;
  border-left: 4px solid #E94F8B;
}

.c-forum__threadItem:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.c-forum__threadItem.--pinned {
  background: linear-gradient(135deg, #fff9fb 0%, #fff 100%);
  border: 2px solid #E94F8B;
  border-left: 4px solid #E94F8B;
}

.c-forum__threadItem.--my-post {
  background: #fff1f7;
  border-left: 4px solid #E94F8B;
  box-shadow: 0 2px 12px rgba(233, 79, 139, 0.15);
  position: relative;
}

.c-forum__threadItem.--my-post:hover {
  box-shadow: 0 6px 24px rgba(233, 79, 139, 0.25);
}

.c-forum__myPostBadge {
  position: absolute;
  top: 0;
  left: 0;
  background: #E94F8B;
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 8px 0 8px 0;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 1px 4px rgba(233, 79, 139, 0.4);
  z-index: 10;
  line-height: 1;
}

.c-forum__myPostBadge svg {
  width: 10px;
  height: 10px;
}

.c-forum__threadItem.--locked {
  opacity: 0.7;
}

.c-forum__threadLink {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
}

.c-forum__threadContent {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.c-forum__threadAvatar {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.c-forum__threadAvatar.--small {
  width: 32px;
  height: 32px;
}

.c-forum__threadAvatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.c-forum__threadAvatarPlaceholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #E94F8B;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.c-forum__threadAvatar.--small .c-forum__threadAvatarPlaceholder {
  font-size: 0.8rem;
}

.c-forum__threadAvatarPlaceholder::after {
  content: attr(data-initial);
}

.c-forum__threadMain {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.c-forum__threadHeader {
  margin-bottom: 0.5rem;
  text-align: left;
}

.c-forum__threadTitle {
  font-size: 1.15rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.2rem 0;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* スレッド詳細ページのタイトル */
.c-forum__threadTitle.--detail {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.c-forum__threadItem:hover .c-forum__threadTitle {
  color: #E94F8B;
}

.c-forum__threadIcon {
  flex-shrink: 0;
}

.c-forum__threadIcon.--pinned {
  color: #E94F8B;
}

.c-forum__threadIcon.--locked {
  color: #999;
}

.c-forum__threadMeta {
  font-size: 0.85rem;
  color: #666;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1.3;
}

.c-forum__threadMetaItem {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.c-forum__threadMeta svg {
  width: 14px;
  height: 14px;
  color: #999;
  transform: translateY(1px);
}

.c-forum__threadMeta strong {
  color: #333;
  font-weight: 600;
}

.c-forum__threadStats {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  flex-shrink: 0;
  padding: 0 1rem;
  border-left: 2px solid #f0f0f0;
  min-width: auto;
  margin-left: auto;
}

.c-forum__threadStat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 60px;
}

.c-forum__threadStat svg {
  color: #999;
}

.c-forum__threadStatNumber {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
}

.c-forum__threadLatest {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding-left: 1.5rem;
  border-left: 2px solid #f0f0f0;
}

.c-forum__threadLatest svg {
  color: #2B9F93;
  flex-shrink: 0;
}

.c-forum__threadLatestInfo {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 120px;
}

.c-forum__threadLatestAuthor {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
}

.c-forum__threadLatestDate {
  font-size: 0.75rem;
  color: #999;
}



/* ==================================================
   削除確認モーダル
================================================== */
.c-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.c-modal__overlay.--active {
  opacity: 1;
  visibility: visible;
}

.c-modal__container {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.25s ease;
}

.c-modal__overlay.--active .c-modal__container {
  transform: scale(1) translateY(0);
}

.c-modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffebee 0%, #fce4ec 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E94F8B;
}

.c-modal__icon.--success {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #2B9F93;
  animation: modalIconPop 0.4s ease;
}

.c-modal__icon.--error {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  color: #e53935;
  animation: modalIconShake 0.4s ease;
}

.c-modal__icon.--warning {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  color: #f57c00;
  animation: modalIconPulse 0.6s ease;
}

@keyframes modalIconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes modalIconPop {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes modalIconShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.c-modal__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 0.75rem;
}

.c-modal__title.--success {
  color: #2B9F93;
}

.c-modal__title.--error {
  color: #e53935;
}

.c-modal__title.--warning {
  color: #f57c00;
}

.c-modal__message {
  font-size: 0.95rem;
  color: #666;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.c-modal__message strong {
  color: #333;
  word-break: break-word;
}

.c-modal__subtext {
  font-size: 0.85rem;
  color: #999;
  display: block;
  margin-top: 0.25rem;
}

.c-modal__buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.c-modal__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.c-modal__btn.--cancel {
  background: #f5f5f5;
  color: #666;
}

.c-modal__btn.--cancel:hover {
  background: #e0e0e0;
  color: #333;
}

.c-modal__btn.--delete {
  background: linear-gradient(135deg, #E94F8B 0%, #d63f7a 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(233, 79, 139, 0.3);
}

.c-modal__btn.--delete:hover {
  background: linear-gradient(135deg, #d63f7a 0%, #c93069 100%);
  box-shadow: 0 6px 16px rgba(233, 79, 139, 0.4);
  transform: translateY(-1px);
}

.c-modal__btn.--delete:active {
  transform: translateY(0);
}

.c-modal__btn.--delete.--warning {
  background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
  box-shadow: 0 4px 12px rgba(245, 124, 0, 0.3);
}

.c-modal__btn.--delete.--warning:hover {
  background: linear-gradient(135deg, #e65100 0%, #d84315 100%);
  box-shadow: 0 6px 16px rgba(245, 124, 0, 0.4);
}

.c-modal__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: #666;
  font-size: 0.95rem;
}

.c-modal__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #f0f0f0;
  border-top-color: #E94F8B;
  border-radius: 50%;
  animation: modalSpin 0.8s linear infinite;
}

@keyframes modalSpin {
  to { transform: rotate(360deg); }
}

/* モバイル対応 */
@media screen and (max-width: 480px) {
  .c-modal__container {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .c-modal__icon {
    width: 56px;
    height: 56px;
  }
  
  .c-modal__icon svg {
    width: 28px;
    height: 28px;
  }
  
  .c-modal__title {
    font-size: 1.1rem;
  }
  
  .c-modal__message {
    font-size: 0.9rem;
  }
  
  .c-modal__buttons {
    flex-direction: column-reverse;
  }
  
  .c-modal__btn {
    width: 100%;
    justify-content: center;
  }
}

/* =============================================
   成功・エラーメッセージ
   ============================================= */
.c-forum__successMessage,
.c-forum__errorMessage {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  animation: slideInFade 0.3s ease-out;
}

@keyframes slideInFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.c-forum__successMessage {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 1px solid #81c784;
  color: #2e7d32;
}

.c-forum__successMessage svg {
  color: #4caf50;
  flex-shrink: 0;
}

.c-forum__errorMessage {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  border: 1px solid #e57373;
  color: #c62828;
}

.c-forum__errorMessage svg {
  color: #f44336;
  flex-shrink: 0;
}

@media screen and (max-width: 480px) {
  .c-forum__successMessage,
  .c-forum__errorMessage {
    font-size: 0.875rem;
    padding: 0.875rem 1rem;
  }
}

/* =============================================
   投稿者リンク
   ============================================= */
.c-forum__authorLink {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.c-forum__authorLink strong {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

.c-forum__authorLink:hover {
  color: #E94F8B;
}

.c-forum__authorLink:hover strong {
  text-decoration-style: solid;
}

/* 投稿者リンク用のアイコン（ホバー時のみ表示） */
.c-forum__authorLink::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23E94F8B' stroke-width='2'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.c-forum__authorLink:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* スレッド一覧内のリンク（親リンク内） */
.c-forum__threadLink .c-forum__authorLink {
  position: relative;
  z-index: 2;
}

/* =============================================
   アバターリンク（クリック可能なアバター）
   ============================================= */
.c-forum__avatarLink {
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.c-forum__avatarLink::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  pointer-events: none;
}

.c-forum__avatarLink:hover::after {
  border-color: #E94F8B;
  box-shadow: 0 0 0 3px rgba(233, 79, 139, 0.2);
}

.c-forum__avatarLink:hover img,
.c-forum__avatarLink:hover .c-forum__threadAvatarPlaceholder {
  transform: scale(1.05);
}

.c-forum__avatarLink img,
.c-forum__avatarLink .c-forum__threadAvatarPlaceholder {
  transition: transform 0.2s ease;
}

/* =============================================
   プロフィールモーダル
   ============================================= */
.c-profileModal__overlay {
  z-index: 10001;
}

.c-profileModal__container {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 380px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
}

.c-profileModal__overlay.--active .c-profileModal__container {
  transform: scale(1);
  opacity: 1;
}

.c-profileModal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: #666;
}

.c-profileModal__close:hover {
  background: #e0e0e0;
  color: #333;
}

.c-profileModal__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
  color: #888;
}

.c-profileModal__content {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.c-profileModal__avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  position: relative;
}

.c-profileModal__flagBadge {
  position: absolute;
  right: 2px;
  bottom: 2px;
  z-index: 3;
  font-size: 18px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.25));
  pointer-events: none;
}

.c-profileModal__avatarImg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #E94F8B;
  box-shadow: 0 4px 12px rgba(233, 79, 139, 0.3);
}

.c-profileModal__avatarPlaceholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #E94F8B 0%, #2B9F93 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(233, 79, 139, 0.3);
}

.c-profileModal__avatarPlaceholder::before {
  content: attr(data-initial);
}

.c-profileModal__name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.c-profileModal__country {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.c-profileModal__inJapan {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
  padding: 0.15rem 0.5rem;
  background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
  border-radius: 10px;
  font-size: 0.75rem;
  color: #555;
}

.c-profileModal__inJapan .fi {
  font-size: 0.8rem;
}

.c-profileModal__about {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: left;
  max-height: 120px;
  overflow-y: auto;
}

.c-profileModal__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #888;
  padding: 0.75rem 0;
  border-top: 1px solid #eee;
  margin-bottom: 1rem;
}

.c-profileModal__stats svg {
  color: #2B9F93;
}

.c-profileModal__facebookBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.9rem 1.25rem;
  background: #1877f2;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.3);
}

.c-profileModal__facebookBtn:hover {
  background: #1565c0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.c-profileModal__facebookBtn svg {
  flex-shrink: 0;
}

.c-profileModal__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
  color: #c62828;
}

.c-profileModal__error svg {
  color: #f44336;
}

/* プロフィールモーダル モバイル対応 */
@media screen and (max-width: 480px) {
  .c-profileModal__container {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .c-profileModal__avatar {
    width: 64px;
    height: 64px;
  }
  
  .c-profileModal__avatarPlaceholder {
    font-size: 1.5rem;
  }
  
  .c-profileModal__name {
    font-size: 1.1rem;
  }
  
  .c-profileModal__facebookBtn {
    font-size: 0.9rem;
    padding: 0.8rem 1rem;
  }
}

/* =============================================
   ヘッダータイトル調整（アイコンとの重なり防止）
   ============================================= */
/* SP/Default - スマホ等はアイコン小さめ(3.5rem) */
.l-section__pageHeader__box {
  padding-right: 6.5rem; /* right:2rem + width:3.5rem + 余白 */
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

/* PC - PC画面はアイコンが大きい(8rem) */
@media screen and (min-width: 769px), print {
  .l-section__pageHeader__box {
    padding-right: 14rem; /* right:4rem + width:8rem + 余白 */
  }
}

/* =============================================
   ヘッダーアイコン調整
   ============================================= */
/* スマホ時：アバターを1.5倍 (3.7rem * 1.5 ≒ 5.55rem ≒ 75px) に拡大し、
   タイトルと被らないよう右余白を広げる */
@media screen and (max-width: 768px) {
  /* アイコンサイズ拡大 */
  .l-section__pageHeader__icon {
    width: 5.6rem;
    height: 5.6rem;
    right: 1.5rem; /* 端に寄せすぎないように調整 */
  }

  /* タイトルサイズ縮小 */
  .l-section__pageHeader__Tit {
    font-size: 1.6rem; /* 2rem -> 1.6rem */
  }

  /* テキストエリアの右余白を増やして重なり防止 */
  /* アバター幅(5.6rem) + right位置(1.5rem) + 余白 を考慮して広めに確保 */
  .l-section__pageHeader__box {
    padding-right: 9.5rem; 
  }
}

