/* ===== 共通レイアウト ===== */
/* ===== 共通変数 (CSS Variables) ===== */
:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --muted2: #a1a2a2;
  --muted3: #5d636f;
  --accent: #4f46e5;
  --border: #dbe3ee;
  --lightgray: #f9fafb;
  --bgblack: #1e1e1e;
  --marker: #ffff99;
}

/* ===== リセット・ベース設定 ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Segoe UI", sans-serif;
  /* HTML側にあったリッチな背景設定を適用 */
  background: radial-gradient(circle at top, #f8fbff, var(--bg));
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

/* ===== コンポーネント ===== */
.counter {
  width: min(680px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
  padding: clamp(16px, 3vw, 28px);
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 700;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

strong {
  color: var(--muted3);
}

li {
  color: var(--muted);
  font-size: 0.95rem;
}

textarea {
  width: 100%;
  min-height: 210px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  line-height: 1.7;
  resize: vertical;
  outline: none;
}

.bottom {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
}

.count {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}

/* ===== 共通ヘッダー ===== */

.header{
  width:100%;
  max-width:900px;
  display:flex;
  justify-content:space-between;
  margin-bottom:20px;
  font-weight:600;
}

.header a{
  text-decoration:none;
  color:#4f46e5;
}

/* ===== 他ツール ===== */

/*.other-tools{
  width:min(680px,100%);
  margin-top:20px;
}

.other-tools h2{
  font-size:1rem;
  margin-bottom:10px;
  color:#6b7280;
}*/
.layout{
  max-width:1100px;
  margin:0 auto;
  padding:16px;
  display:grid;
  grid-template-columns:1fr 280px;
  gap:40px;
}

.main{
  min-width:0;
}

.sidebar{
  position:sticky;
  top:20px;
}

.tool-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  gap:10px;
}


/* ===== フッター ===== */
.footer{
  padding:24px 16px;
  text-align:center;
}

.footer-links{
  display:grid;
  grid-template-columns:repeat(5,auto);
  justify-content:center;
  gap:24px;
  margin-bottom:12px;
}

.footer-links a{
  color: var(--muted);
  text-decoration:none;
  font-size:14px;
}

.footer-copy{
  color: var(--muted2);
  font-size:12px;
}
/* ページ上部へ戻るボタンのエリア */
.back-to-top {
  margin-bottom: 30px; /* 下のリンクとの間隔 */
}

.back-to-top a {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 20px; /* 角を丸くしてボタンらしく */
  background: #fff;
  transition: all 0.2s ease;
}

/* ホバーした時の演出 */
.back-to-top a:hover {
  transform: translateY(-2px); /* 少し浮き上がる */
  background: var(--lightgray);
}

.site-header{
  padding:5px;
  text-align:center;
}

.site-header-inner{
  display:inline-flex;
  align-items:center;
  /*gap:14px;*/
  text-decoration:none;
  color:inherit;
}
.site-header-inner:focus {
  outline: none;
}

.site-header-inner:active {
  outline: none;
}

.site-logo{
	width:90px;
	height: auto;
}

.site-title{
  font-size:32px;
  font-weight:700;
}

.site-desc{
  font-size:13px;
  color:var(--muted);
}

.sidebar-block{
  margin-bottom:28px;
}

.popular-card{
  display:flex;
  gap:10px;
  padding:10px;
  border-radius:12px;
  text-decoration:none;
  background:#fff;
  margin-bottom:10px;
  box-shadow:0 4px 12px rgba(0,0,0,0.05);
}

.popular-rank{
  width:26px;
  height:26px;
  border-radius:50%;
  background:#6366f1;
  color:#fff;
  font-size:13px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
}

.popular-title{
  font-size:13px;
  font-weight:600;
  color:#333;
}

.popular-desc{
  font-size:11px;
  color:#777;
}


.action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: 0.2s;
}

.btn-secondary {
  background: #eef2ff;
  color: var(--accent);
  font-weight: 600;
}

.btn-secondary:hover { background: #e0e7ff; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}

.btn-outline:hover { 
	background: var(--lightgray);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.info-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.text-danger { color: #ef4444; } /* Twitter超過用 */

.checkbox-label {
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.options-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px; /* 横と縦の隙間 */
  margin-bottom: 8px;
}

/* コラムセクション全体の枠組み */
.tool-section {
	margin-top: 40px;

}
.tool-section li{
	line-height: 1.7em;
}

/* コラムセクション全体の枠組み */
.column-section {
	margin-top: 40px;
	border-top: 1px dashed #ccc;
	padding-top: 30px;
}

/* メインの見出し*/
.column-title {
	font-size: 1.5rem;
	margin-bottom: 20px;
}

/* 記事の外枠 */
.column-article .content-wrapper {
  display: flex;
  flex-direction: row-reverse; /* 画像を右に配置 */
  gap: 24px;
  align-items: flex-start;
	margin-bottom: 20px;
}

.column-article .article-text {
  flex: 1; /* テキストが残りの幅を埋める */
}

.column-article ul li {
    color: var(--muted);
}
.column-article p {
	line-height: 1.7em;
}
.column-article img {
	width: 280px; /* PCでの画像サイズ */
	height: auto;
	border-radius: 12px;
	object-fit: cover;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* 最後の要素の余白は消しておく（デザイン崩れ防止） */
.column-article p:last-child {
  margin-bottom: 0;
}

/* 大見出し */
.article-h3 {
	color: #2c3e50;
	border-left: 5px solid #3498db;
	padding-left: 15px;
	margin-bottom: 15px;
	font-size: 1.25rem;
}

.article-h4 {
	margin-top: 40px; 
	margin-bottom: 10px;
	font-weight: bold;
	font-size: 1.1rem;
}

.comparison-box {
	margin: 15px 0 20px 10px;
	padding-left: 10px;
	border-left: 2px solid #eee; 
}

/* 蛍光ペン */
.marker-yellow {
	background: linear-gradient(transparent 60%, var(--marker) 60%);
	font-weight: bold;
	
}

@media (max-width:900px){
  .layout{
    grid-template-columns:1fr;
  }

  .sidebar{
    position:static;
  }
}

@media (max-width:600px){
  .footer-links{
		grid-template-columns:1fr;
		text-align: center;
		gap:12px;
	}
	.column-article .content-wrapper {
		flex-direction: column; /* 画像を上、テキストを下に */
	}
	
	.column-article img {
		width: 100%; /* 横幅いっぱいに広げる */
		max-width: none;
	}
	.column-title {
		font-size: 1.2rem;
	}
}

/* Markdown code block */

pre {
  background: var(--bgblack);
  color: #f8f8f2;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}

code {
  font-family: Consolas, Monaco, monospace;
}

pre code {
  background: none;
  padding: 0;
}

blockquote {
	margin-top: 20px;
}

.code-block-small pre {
  max-width: 550px;
  margin: 12px 0;
  padding: 12px;
  font-size: 13px;
  border-radius: 6px;
}

.highlight {
  background: var(--bgblack);
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
}

.toc-title{
    display: block;
    font-size: 1.5em;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
	unicode-bidi: isolate;
	color: var(--text);
}
.post-date{
	text-align: right;
}
.blog-content{
	line-height: 1.8em;
}
.blog-content h2 {
	margin-top: 50px;
}
