body {
	font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	margin: 0;
	padding: 0;
	color: var(--text-black);
	background-color: #fff;
	line-height: 1.8; /* 記事の読みやすさ重視で少し広めに */
	-webkit-font-smoothing: antialiased;
	text-decoration: none;
}

a {
	text-decoration: none;
	color: #e63946;
	transition: color 0.3s;
}
.post-content a {
  color: var(--zassyoku-main);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
a:hover {
  color: var(--zassyoku-main-dark);  /* ← ちょっと濃い色に */
}

ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }

/* --- Header (共通) --- */
header {
	border-bottom: 2px solid var(--zassyoku-main);
	background: #fff;
}
.header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.logo {
	font-size: 24px;
	font-weight: 800;
	letter-spacing: 2px;
	color: var(--zassyoku-main);
	text-transform: uppercase;
}
.nav-menu { display: flex; gap: 20px; }
.nav-menu li a { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* --- Article Layout --- */
.article-container {
	max-width: 800px; /* 読みやすさを重視した幅 */
	margin: 60px auto;
	padding: 0 20px;
}

/* --- Post Header --- */
.post-meta {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 15px;
	font-size: 12px;
	font-family: monospace; /* 日付などは無機質に */
}

.post-category {
	background-color: var(--text-black);
	color: #fff;
	padding: 4px 10px;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 1px;
}

.post-date {
	color: var(--text-gray);
}

.post-title {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 40px;
	letter-spacing: 0.05em;
}

/* --- Post Content --- */
.post-content p {
	margin-bottom: 2em;
	font-size: 16px;
	color: #444;
}

.post-content h2 {
	font-size: 20px;
	font-weight: 700;
	margin-top: 3em;
	margin-bottom: 1.5em;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--text-black); /* セクション区切り */
}

.content-image-wrapper {
	margin: 3em 0;
}

.image-caption {
	font-size: 11px;
	color: var(--text-gray);
	margin-top: 8px;
	text-align: right; /* 写真の説明は右寄せで雑誌風に */
}

/* --- Share & Tags --- */
.post-footer {
	margin-top: 60px;
	padding-top: 30px;
	border-top: 1px solid var(--border-color);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

.post-tags {
	display: flex;
	gap: 10px;
}

.post-tag {
	font-size: 12px;
	color: var(--text-gray);
	border: 1px solid var(--border-color);
	padding: 5px 12px;
	border-radius: 20px;
}

.post-tag:hover {
	border-color: var(--zassyoku-main);
	color: var(--zassyoku-main);
}

/* --- Navigation Button --- */
.nav-button-area {
	margin: 60px 0 100px;
	text-align: center;
}

.btn-back {
	display: inline-block;
	border: 1px solid var(--text-black);
	padding: 12px 60px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	transition: all 0.3s;
}

.btn-back:hover {
	background-color: var(--text-black);
	color: #fff;
}

/* --- Related Posts (Optional) --- */
.related-section {
	background-color: #f4f4f4;
	padding: 60px 0;
}

.related-inner {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 20px;
}

.related-title {
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 30px;
	text-align: center;
	letter-spacing: 1px;
}

.related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.related-card img {
	width: 100%;
	aspect-ratio: 3/4;
	object-fit: cover;
	margin-bottom: 10px;
}

.related-card h3 {
	font-size: 13px;
	line-height: 1.4;
	margin: 0;
}

/* 5. テーブル装飾 (科学的なデータ比較イメージ) */
table {
	width: calc(100% - 40px); /* max-width 800pxに対し、左右20pxの余白を考慮 */
	margin: 30px auto;
	border-collapse: collapse;
	font-size: 0.95em;
	border: 1px solid #a8dadc;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
	background-color: #ffffff;
}

thead tr {
	background-color: #f8f9fa; /* 濃いブルー */
	text-align: left;
}

th, td {
	padding: 14px 15px;
	border: 1px solid #e0e0e0;
	text-align: left;
	vertical-align: top;
}

/* tbody tr:nth-child(even) {
	background-color: #f8f9fa; /* ゼブラストライプ */
} */

tbody tr td:first-child {
	font-weight: bold;
	color: #e63946; /* カテゴリ名をアクセントカラーで強調 */
	width: 15%;
}

/* Mobile */
@media (max-width: 768px) {
	.nav-menu { display: none; }
	.post-title { font-size: 24px; }
	.related-grid { grid-template-columns: 1fr; }
}

/* テーブルレスポンシブ対応 - カード型レイアウト */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive table {
  min-width: 600px;
  width: 100%;
}

th, td {
  word-break: break-word;
  white-space: normal;
}

@media (max-width: 768px) {
  .table-responsive {
    border: 0;
    overflow-x: visible;
  }
  
  .table-responsive thead {
    display: none;
  }
  
  .table-responsive tbody,
  .table-responsive tr {
    display: block;
    margin-bottom: 20px;
  }
  
  .table-responsive tr {
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    padding: 15px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }
  
  .table-responsive td {
    display: block;
    text-align: left;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .table-responsive td:last-child {
    border-bottom: none;
  }
  
  .table-responsive td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #107412;
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
  }
  
  .table-responsive td[data-label="製品カテゴリ"]::before {
    color: #107412;
    font-size: 1.1em;
  }
  
  .table-responsive table {
    min-width: 100%;
  }
}

/* --- Affiliate Section --- */
.affiliate-section {
  max-width: 800px;
  margin: 60px auto;
  padding: 40px 20px;
  background-color: var(--bg-light, #f9f9f9);
  border: 2px solid var(--border-color, #e0e0e0);
  border-radius: 8px;
}

.affiliate-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: var(--text-black, #333);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.product-card {
  background: white;
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  transition: box-shadow 0.3s;
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-card img.product-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background-color: #f9f9f9;
  border-radius: 4px;
  margin-bottom: 15px;
}

.product-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-black, #333);
  min-height: 40px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 14px;
  padding: 0 5px;
}

.product-meta .price {
  font-weight: 700;
  color: #d32f2f;
  font-size: 16px;
}

.product-meta .review {
  color: #ff9800;
  font-size: 12px;
}

.product-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-rakuten,
.btn-amazon {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.3s;
}

.btn-rakuten {
  background-color: #bf0000;
  color: white;
}

.btn-amazon {
  background-color: #ff9900;
  color: white;
}

.btn-rakuten:hover,
.btn-amazon:hover {
  opacity: 0.85;
  color: white;
}

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

/* --- Product Preview Blocks --- */
.product-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    border-radius: 12px;
}

.product-preview-card {
    text-align: center;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s;
    text-decoration: none;
    display: block;
}

.product-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.product-preview-card img {
    width: 100%;
    max-width: 160px;
    height: auto;
    border-radius: 6px;
    margin: 0 auto 10px;
    display: block;
}

.product-preview-card .product-name {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.product-preview-card .product-price {
    margin: 5px 0 0;
    font-size: 11px;
    color: #666;
}

/* Gradient Background Variations */
.gradient-blue {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.gradient-cyan {
    background: linear-gradient(135deg, #e0f7fa 0%, #80deea 100%);
}

.gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-lavender {
    background: linear-gradient(135deg, #e1bee7 0%, #ce93d8 100%);
}

.gradient-pink {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-orange {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.gradient-peach {
    background: linear-gradient(135deg, #fdcb9e 0%, #faa76c 100%);
}

.gradient-yellow {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
}

.gradient-mint {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.gradient-gray {
    background: linear-gradient(135deg, #cfd9df 0%, #e2ebf0 100%);
}

/* --- Plan Sections (Beams Minimal Style) --- */
.setup-plan {
    margin: 60px 0;
    padding: 0;
    background: transparent;
}

.premium-plan,
.value-plan,
.budget-plan {
    background: transparent;
}

.plan-header {
    text-align: left;
    margin-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

.plan-badge {
    display: inline-block;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
    padding: 12px 32px;
    border-radius: 4px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.premium-plan .plan-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #5d4037;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.value-plan .plan-badge {
    background: linear-gradient(135deg, #2196f3 0%, #64b5f6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.budget-plan .plan-badge {
    background: linear-gradient(135deg, #66bb6a 0%, #81c784 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 187, 106, 0.3);
}

.plan-title {
    display: none;
}

.plan-total {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin: 10px 0 0;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px 20px;
    margin: 30px 0;
}

.plan-item {
    background: transparent;
    padding: 0;
    transition: opacity 0.2s ease;
    border-left: 1px dotted #d0d0d0;
    padding-left: 20px;
}

.plan-item:hover {
    opacity: 0.7;
}

.plan-item:nth-child(5n+1) {
    border-left: none;
    padding-left: 0;
}

.item-image {
    text-align: center;
    margin-bottom: 12px;
    background: #fafafa;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.item-details {
    text-align: left;
}

.item-category {
    display: block;
    font-size: 9px;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.item-name {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    min-height: auto;
}

.item-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.item-name a:hover {
    color: #666;
}

.item-benefit {
    font-size: 10px;
    color: #888;
    line-height: 1.3;
    margin-top: 6px;
}

.plan-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* Responsive Plan Grid */
@media (max-width: 1200px) {
    .plan-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .plan-item:nth-child(5n+1) {
        border-left: 1px dotted #d0d0d0;
        padding-left: 20px;
    }
    .plan-item:nth-child(4n+1) {
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width: 900px) {
    .plan-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .plan-item:nth-child(4n+1) {
        border-left: 1px dotted #d0d0d0;
        padding-left: 20px;
    }
    .plan-item:nth-child(3n+1) {
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width: 600px) {
    .plan-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .plan-item:nth-child(3n+1) {
        border-left: 1px dotted #d0d0d0;
        padding-left: 20px;
    }
    .plan-item:nth-child(2n+1) {
        border-left: none;
        padding-left: 0;
    }
    .plan-badge {
        font-size: 24px;
        padding: 10px 24px;
    }
}