body {
  font-family: "Playfair Display", "Noto Serif JP", serif;
  background-color: #f5f5f5;
  color: #222;
  line-height: 1.8;
  margin: 0;
  padding: 0;
}
hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 2em 0;
}

/* ===============================
   見出しスタイル
================================= */
h1, h2, h3 {
  font-family: "Playfair Display", "Noto Serif JP", serif;
  margin: 1.2em 0 0.6em;
  font-weight: 600;
  line-height: 1.4;
}

h1 {
  font-size: 2.4rem;
  color: #0d1b2a;
  border-bottom: 3px solid #c5a46d;
  display: inline-block;
  padding-bottom: 6px;
}

h2 {
  font-size: 1.8rem;
  color: #1b263b;
  border-left: 6px solid #c5a46d;
  padding-left: 12px;
}

h3 {
  font-size: 1.4rem;
  color: #3a506b;
}

/* ===============================
   本文・テキスト
================================= */
main p {
  margin: 0 0 1.2em;
  font-size: 1.05rem;
  color: #333;
}

/* 引用文 */
blockquote {
  border-left: 4px solid #c5a46d;
  padding-left: 15px;
  color: #555;
  font-style: italic;
  margin: 1.5em 0;
}

/* ===============================
   セクションレイアウト
================================= */
main > p, section {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  padding: 30px;
  margin: 40px auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* ===============================
   リンク
================================= */
p a {
  color: #c5a46d;
  text-decoration: none;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}
ps a:hover {
  color: #e1c699;
  border-bottom: 1px solid #e1c699;
}
main button, main .btn {
  background: linear-gradient(135deg, #c5a46d, #b58d56);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
main button:hover, main .btn:hover {
  background: linear-gradient(135deg, #e1c699, #c5a46d);
  transform: translateY(-2px);
}
/* タブレット以下 (最大幅 1024px) */
@media (max-width: 991px) {
  body {
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 0 10px; /* 全体に軽く左右余白 */
  }

  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  h3 {
    font-size: 1.2rem;
  }

  section {
    margin: 20px 10px;
    padding: 15px;
    border-radius: 10px;
  }

  .card,
  .sidebar,
  .chart-container {
    margin: 12px 5px;
    padding: 12px;
    border-radius: 10px;
  }

  main button, .btn {
    padding: 12px;
    font-size: 1rem;
  }

  footer {
    font-size: 0.8rem;
    padding: 15px;
  }
}

/* スマホ (最大幅 600px) */
@media (max-width: 600px) {
  
}
.enquete {
	border: dotted 1px blue;
}
.enquete-contents {
	border:solid 1px lightblue;
	padding:1rem;
	margin:.5rem;
	line-height:150%;
	white-space:pre-wrap;
	font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
}
.youtube {
	width: 100%;
	padding-top: 56.25%;
	position: relative;
	height: 0;
	overflow: hidden;
	box-sizing: border-box;
}

.youtube iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.big-link {
	text-align:center
}
main article {
	background-color:white;
}
main hr {
	border-top: 5px dotted lightblue;
	background-color: rgb(232, 243, 131);
}
main dfn {
	font-weight:bold;
}
main h1,h2,h3,h4,h5,h6 {
	margin:1rem;
}
main p {
	margin-top:1rem;
	margin-bottom:1rem;
	line-height:175%;
}
main section {
	margin:1rem
}


img.persona-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}

img.reaction-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}
img.grade {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}
@media screen and (max-width: 991px) {
	
	img.persona-icon {
		width:24px;
		height:24px;
	}
	.grade {
	width:24px;
	height:24px;
}
}

time {
	font-weight:bold;
}
.enquete {
	background-color: white;
}
.enquete p {
	padding:0.5rem;
}
.enquete pre {
	padding:0.5rem;
	font-size:100%;
	line-height:150%;
	white-space:pre-wrap;
	font-family: fontsystem-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"
}
.comment pre {
	padding:0.5rem;
	font-size:100%;
	line-height:150%;
	white-space:pre-wrap;
	font-family: fontsystem-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"
}
pre .tsugumon-text {
	padding:0.5rem;
	font-size:100%;
	line-height:150%;
	white-space:pre-wrap;
	font-family: fontsystem-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"	
}
pre .file {
	padding:0;
	font-size:100%;
	line-height:100%;
	white-space:normal;
}
.copyright {
	background-color: white;
}
.image-holder {
	width:100%;
	
}
.image-holder > img {
	width:90%
}
main time {
	font-weight:bold;
}
@media screen and (max-width: 480px) {
	
	* {
		font-size: 14px;
	}
}
.description-reactions {
	padding: 0.5em 1em;
    margin: 2em 0;
    font-weight: bold;
    color: #6091d3;/*文字色*/
    background: #FFF;
    border: solid 3px #6091d3;/*線*/
    border-radius: 10px;/*角の丸み*/
}
.thread-note {
	margin-top:.5rem;
	margin-bottom:.5rem;
	border:solid 1px #8bd3dd;
}
.thread-note summary {
	font-size:100%;
	line-height: 1;
	padding: 1rem;
	margin: 0;
	background-color: #8bd3dd;
}
.thread-note pre {
	padding:1rem;
	white-space: pre-wrap;
}

.fileitem {
	width:100%;
}

.fileitem > .info {
	overflow-x: auto;
}

.file > .file-info {
	overflow-x: auto;
}
.rawfile > * {
	max-width:100%;
	max-height:500px;
}
.file {
	width:100%;
	padding:0;
	font-size:100%;
	line-height:100%;
	white-space:normal;
}
.file > .rawfile {
	margin:0.5rem;
}
.file-thumbnail {
	margin:0.5rem
}
.file-info {
    flex-grow: 1;
    font-size: 14px;
    color: #333;
    word-break: break-all;
    margin:0.5rem;
}
.file-author {
	margin:0.5rem;
}

.thread-list {
    max-width: 800px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thread {
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.thread:hover {
    background: #f9f9f9;
}

.thread-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.thread-title a {
    text-decoration: none;
    color: #007bff;
}

.thread-title a:hover {
    text-decoration: underline;
}

.thread-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}
.thread-comments {
    color: #28a745;
}

.thread-updated {
    color: #777;
    font-size: 12px;
}

.thread-author {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
}

.author-name {
    font-weight: bold;
    color: #007bff;
}

.thread-created {
    font-size: 12px;
    color: #777;
    margin-left: 8px;
}
.thread-description {
	display: flex;
    gap: 8px;
    font-size: 14px;
    padding-top: 5px;
    align-items: center;
}
.thread-footer {
    display: flex;
    gap: 8px;
    font-size: 14px;
    padding-top: 5px;
}
.comment-list {
    max-width: 800px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment {
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.comment-header {
  font-size: 14px;
  color: #666;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.comment-header span {
  display: inline-block;
  font-size: 14px;
  color: #666;
  margin-right: 12px;  /* 適度な間隔を確保 */
}
.comment-meta {
    display: flex;
    gap: 10px;
}

.comment-number {
    color: #007bff;
}

.comment-id {
    color: #28a745;
}

.comment-body {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
}

.comment-content {
    flex: 1;
}



.comment-time {
    font-size: 12px;
    color: #777;
    margin-left: 5px;
}

.comment-footer {
	align-items: center;
	margin-top: 12px;
}
.comment-footer > * {
	margin: .5rem;
}
.comment-author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.comment-author input {
	width:5rem;
}
.comment-actions {
	margin-top:8px;
	display:flex;
	justify-content: space-between;
}

.reaction-buttons button {
    background: none;
    border: 1px solid #ddd;
    padding: 5px 8px;
    font-size: 14px;
    cursor: pointer;
    margin-right: 5px;
    border-radius: 4px;
}

.reaction-buttons button:hover {
    background: #f0f0f0;
}

/* レスポンシブ対応 */
@media screen and (max-width: 991px) {

    .comment-body {
        flex-direction: column;
    }

    .comment-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
.thread-info {
	margin:0.5rem
}

.board-list {
  margin-left: 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

.board-item {
  margin-left: 0;
  padding-left: 0;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f9f9f9;
  transition: background 0.2s;
}

.board-item:hover {
  background: #e9f1ff;
}

.board-icon {
  width: 32px;
  height: 32px;
  border-radius: 10%;
  margin-right: 12px;
}

.board-name {
  flex-grow: 1;
  font-weight: bold;
  color: black;
  text-decoration: none;
}

.board-count {
  font-size: 14px;
  font-weight: bold;
  color: #666;
  background: #eee;
  padding: 4px 8px;
  border-radius: 8px;
}

.popular .board-count {
  background: #ff6b6b;
  color: #fff;
}

.inactive {
  opacity: 0.5;
}
.setting-item {
	padding:1rem;
}
.thumbnail {
	width:32px;
	height:32px;
}

the-thread, the-enquete, the-file {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 20px;
  margin: 20px 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

the-file {
	display:block;
	white-space: normal;
}

the-enquete {
	display:block;
	white-space: normal;
}
the-comment {
	display:block;
	white-space: normal;
}
the-thread {
	display:block;
	white-space: normal;
}


/* リンクペイン全体 */
.resource {
    border: 2px dashed dimgray;
    border-radius: 8px;
    background: #fefefe;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    font-family: sans-serif;
}

/* リンク部分 */
.resource-link {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    overflow-wrap: break-word;
}

.resource-link a {
    text-decoration: none;
    color: #0077cc;
    font-weight: bold;
    word-break: break-all;
    display: inline-block;
}

.resource-link a::before {
    content: "🔗";
    margin-right: 0.4rem;
}

/* ボタン類の整列 */
.resource-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.resource-buttons a {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: white;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    color: #333;
}

/* ホバー効果 */
.resource-buttons a:hover {
    background-color: #f0f0f0;
}

/* ナビゲーション全体 */
#pagenation.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

/* ページ送りボタン */
#pagenation button,
#pagenation .page {
    background-color: #fff;
    border: 1px solid #ccc;
    color: #333;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
}

#pagenation button:hover {
    background-color: #f0f0f0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* 現在ページ番号（アクティブ表示風） */
#pagenation .page {
    background-color: #0077cc;
    color: white;
    cursor: default;
    font-weight: bold;
}

/* コメントトップへのリンク */
a[href="#comments-anchor"] {
    display: inline-block;
    margin-top: 0.5rem;
    color: #0077cc;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.9rem;
}

a[href="#comments-anchor"]::before {
    content: "⬆️ ";
}

.facebook > * {
	max-width:100%;
}
.niconico > * {
	max-width:100%;
}

/* 全体を囲うコンテナ */
/* ボタンを画面下に固定 */
.comment-container {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}
@media screen and (max-width: 991px) {
  .comment-container {
    left: 0;
    transform: none;
    margin: 10px;
    box-sizing: border-box;
    background-color: #fff;
    border-top: 1px solid #ccc;
  }
  #commentForm {
	max-width: 300px;
  }
}
#commentForm {
	max-width: 500px;
	padding:1rem;
	background-color:white;
	border:solid 1px black;
	max-height:400px;
	overflow: scroll;
}
.write-button-container {
	text-align: center;
}
.animated-button {
  background-color: #e53935;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

/* 左の⇆矢印アニメーション */
.animated-button .arrow {
  animation: arrow-move 0.5s infinite alternate;
}

@keyframes arrow-move {
  0% { transform: translateX(-3px); }
  100% { transform: translateX(3px); }
}

article.document {
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  color: #222;
  line-height: 1.8;
  font-size: 16px;
  background: #ffffff;
  padding: 2em;
  margin: 2em auto;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* 見出し */
article.document h1 {
  font-size: 1.8em;
  border-bottom: 2px solid #5a8fd9;
  padding-bottom: 0.3em;
  margin-bottom: 1em;
  color: #1c3d7a;
}

article.document h2 {
  font-size: 1.4em;
  border-left: 4px solid #5a8fd9;
  padding-left: 0.6em;
  margin-top: 2em;
  margin-bottom: 1em;
  color: #2d4d7a;
}

/* 段落 */
article.document p {
  margin-bottom: 1.2em;
  color: #333;
}

/* 画像 */
article.document img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5em auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* YouTube埋め込み対応 */
article.document iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  margin: 1.5em 0;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 引用ブロック */
article.document blockquote {
  background: #f0f4fa;
  border-left: 4px solid #5a8fd9;
  margin: 1.5em 0;
  padding: 1em 1.5em;
  color: #555;
  font-style: italic;
}

/* リンク */
article.document a {
  color: #0056b3;
  text-decoration: underline;
}

article.document a:hover {
  background-color: #eaf4ff;
  text-decoration: none;
}

/* リスト */
article.document ul,
article.document ol {
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}

article.document li {
  margin-bottom: 0.5em;
}
.bbs-sidebar-link {
	color: dimgray;
	text-decoration: none;
}
