/* ========== 基本 ========== */
.art-title { font-size: 26px; font-weight: 700; margin: 0 0 6px; }
.art-sub { margin: 0; color: #666; }

/* 2000x1000 など大きめ画像でも親幅にフィット */
.art-thumb,
.art-thumb-ph,
.art-hero {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;     /* 横:縦 = 3:1 */
  object-fit: cover;
  background: #f5f5f5;
  display: block;
  border-radius: 8px;
}

/* ========== 一覧 ========== */
.art-list-header { margin-bottom: 12px; }
.art-controls {
  display: grid; grid-template-columns: 1fr 220px; gap: 10px; margin-top: 12px;
}
@media (max-width: 767px) { .art-controls { grid-template-columns: 1fr; } }
.art-controls input[type="search"], .art-controls select {
  width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 14px; background: #fff;
}

.art-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.art-hashtag { font-size: 13px; color: #55607a; opacity: .9; text-decoration: none; }
.art-hashtag::before { content: "#"; margin-right: 2px; color: #7b869f; opacity: .9; }
.art-hashtag.active { color: #0b5fff; text-decoration: underline; }

.art-grid {
  --gap: 15px; --cols: 1;
  display: flex; flex-wrap: wrap; gap: var(--gap); margin-top: 18px;
}
@media (min-width: 640px)  { .art-grid { --cols: 3; } }
@media (min-width: 900px)  { .art-grid { --cols: 4; } }
@media (min-width: 1200px) { .art-grid { --cols: 5; } }
@media (min-width: 1440px) { .art-grid { --cols: 5; } }

.art-card {
  width: calc((100% - (var(--gap) * (var(--cols) - 1))) / var(--cols));
  border: 1px solid #eee; border-radius: 12px; background: #fff; overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.art-card:hover { transform: translateY(-2px); border-color: #e7ebf0; box-shadow: 0 10px 28px rgba(17,24,39,.06); }
.art-card-a { color: inherit; text-decoration: none; display: block; }
.art-card-pad { padding: 14px 14px 16px; }

.art-card-title {
  font-size: 17px; line-height: 1.5; margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.art-meta { color: #8a8f98; font-size: 12px; margin-top: 6px; }
.art-excerpt {
  color: #4a4f57; font-size: 14px; line-height: 1.7; margin-top: 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.art-badgebar { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.art-badge { font-size: 12px; color: #6b7280; background: #f8fafc; border: 1px solid #eef2f7; padding: 4px 8px; border-radius: 999px; text-decoration: none; }

/* ========== 詳細 ========== */
.art-post-title { font-size: 28px; font-weight: 700; margin: 16px 0 10px; }

.art-post-meta-row {
  display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; margin: 8px 0 20px;
}
.art-post-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #f2f3f5; }
.art-post-meta-text { display: grid; gap: 2px; }
.art-post-meta-text #art-authorName { font-weight: 600; color: #222; }
.art-post-date { color: #8a8f98; font-size: 13px; }

/* 本文（Markdown→HTML） */
.art-content img { max-width: 100%; height: auto; border-radius: 8px; }
.art-content p { margin: 1em 0; font-size: 16px; color: #222; }
.art-content h2 { font-size: 22px; margin: 1.5em 0 .6em; }
.art-content ul, .art-content ol { padding-left: 1.3em; }
.art-content pre { overflow-x: auto; padding: 12px; background: #0f172a; color: #e5e7eb; border-radius: 10px; }
.art-content code { background: #f3f4f6; padding: 2px 4px; border-radius: 6px; }
.art-content{letter-spacing: 1px;}

/* 引用とfigure（キャプション対応） */
.art-content blockquote {
  margin: .5em 0; padding: .2em 1.2em; background: #fafbfc; border-left: 3px solid #e5e9f2; color: #222; border-radius: 6px; letter-spacing: 1.5px; font-style: italic; font-weight:200}
.art-content figure { margin: 1.2em 0; text-align: center; }
.art-content figure img { max-width: 100%; height: auto; border-radius: 8px; }
.art-content figure figcaption { font-size: 13px; color: #666; margin-top: 6px; }

/* 著者・関連記事・シェア */
.art-section { margin-top: 24px; }
.art-section-title { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.art-author-box {
  display: grid; grid-template-columns: 64px 1fr; gap: 12px;
  border: 1px solid #e5e7eb; padding: 12px; border-radius: 14px;
}
.art-author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.art-related { display: grid; gap: 10px; margin-top: 8px; }
.art-related-item { display: block; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 10px; text-decoration: none; color: inherit; }
.art-related-item:hover { background: #fafbfe; border-color: #dfe7ff; }

.art-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.art-btn { appearance: none; border: 0px solid #e5e7eb; background: #fff; padding: 8px 12px; border-radius: 10px; cursor: pointer; font-size: 14px; text-decoration: none; color: inherit; }
.art-btn:hover { border-color: #bbb; }
.art-btn2{ display: none;}

/* 一覧ページと記事ページの共通ラッパを中央寄せ90% */
.art-list-root,
.art-post-root,.art-container{
  width: 95%;
  max-width: 1000px;   /* 横に広すぎないように上限 */
  margin: 0 auto;      /* 中央寄せ */
}
.art-container{
	text-align:right;
	font-size:14px;
}
.art-controls{
	width:95%;
	max-width:900px;
}
/* 検索ボックスが中身ゼロでも縮まないように最小幅を確保 */
@media(min-width:1200px){.art-controls input[type="search"] {
  min-width: 670px; 
  width: 100%;   
  box-sizing: border-box;
}
}
@media(max-width:767px){.art-controls input[type="search"] {
  min-width: 90%;  /* 好みで200〜250pxくらい */
  width: 100%;       /* グリッド内では100%を優先 */
  box-sizing: border-box;
}
}
.art-hero{
	width:100%;
	max-width:1050px;
}

.art-content{
  margin-bottom: 50px;
}
.art-content hr{
	border-top: 1px dotted #333;
	border-bottom: 1px dotted #fff;
}

.art-content div.hyo_text{
  font-size: 16px;
  color: #222; 
  width:95%;
  margin-left:12px;
  margin-bottom: 25px;
}

.share_btn{
  height:36px;
}