*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --accent: #E84020;
  --header-from: #7B1A00;
  --header-to: #C83820;
  --dark: #1F1010;
  --mid: #553333;
  --soft: #886666;
  --line: #EDE0DF;
  --bg: #FAF5F4;
  --white: #FFFFFF;
  --card-hover-bg: #FFF8F7;
  --hw-green: #34c759;
}
[data-theme="dark"] {
  --dark: #F0E4E4;
  --mid: #BB9090;
  --soft: #997070;
  --line: #3C2828;
  --bg: #1A1010;
  --white: #261818;
  --card-hover-bg: #301A1A;
}

body { font-family: 'Noto Sans JP', sans-serif; background: var(--bg); color: var(--dark); font-size: 15px; line-height: 1.8; padding-top: 64px; transition: background 0.3s, color 0.3s; }

/* HEADER */
.site-header { background: linear-gradient(135deg, var(--header-from) 0%, var(--header-to) 100%); position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
.header-top { max-width: 1160px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-mark { font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 700; color: #fff; letter-spacing: 2px; }
.logo-mark span {
  background: linear-gradient(135deg, #FF7060 0%, #CC1000 55%, #FF5030 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.header-nav { display: flex; align-items: center; gap: 10px; }
.btn-theme { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); color: #fff; border-radius: 20px; padding: 5px 12px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background 0.2s; white-space: nowrap; }
.btn-theme:hover { background: rgba(255,255,255,0.25); }
.btn-back { background: none; border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.9); border-radius: 20px; padding: 5px 14px; font-size: 12px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: all 0.2s; display: inline-block; }
.btn-back:hover { background: rgba(255,255,255,0.15); }

/* ARTICLE */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
.article-eyebrow { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
.article-title { font-family: 'Oswald', sans-serif; font-size: 30px; font-weight: 700; line-height: 1.4; color: var(--dark); margin-bottom: 14px; letter-spacing: 0.5px; }
.article-meta { font-size: 12px; color: var(--soft); margin-bottom: 24px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.article-hero { width: 100%; height: auto; border-radius: 14px; margin-bottom: 28px; display: block; }
.article-meta-divider { padding-bottom: 24px; border-bottom: 1px solid var(--line); }

/* SHARE BUTTONS */
.share-row { display: flex; align-items: center; gap: 8px; }
.share-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--soft); transition: all 0.15s; padding: 0; }
.share-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(232,64,32,0.06); }
.share-btn svg { width: 14px; height: 14px; }

/* TOC */
.toc-box { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 32px; }
.toc-title { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.toc-box ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 7px; }
.toc-box li { counter-increment: toc; font-size: 13px; }
.toc-box li::before { content: counter(toc); display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; background: var(--accent); color: #fff; border-radius: 50%; font-size: 10px; font-weight: 700; margin-right: 8px; }
.toc-box a { color: var(--mid); text-decoration: none; transition: color 0.15s; }
.toc-box a:hover { color: var(--accent); }

/* BODY TYPOGRAPHY */
.article-body h2 { font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 700; color: var(--dark); margin: 44px 0 16px; display: flex; align-items: center; gap: 10px; letter-spacing: 0.3px; scroll-margin-top: 80px; }
.article-body h2 .h2-icon { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; background: rgba(232,64,32,0.1); display: flex; align-items: center; justify-content: center; }
.article-body h2 .h2-icon svg { width: 17px; height: 17px; stroke: var(--accent); }
.article-body p { color: var(--mid); margin-bottom: 16px; }
.article-body ul, .article-body ol { color: var(--mid); margin: 0 0 16px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--dark); }

.lead-box { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin-bottom: 8px; }
.lead-box p { margin-bottom: 10px; }
.lead-box p:last-child { margin-bottom: 0; }

.callout { background: rgba(232,64,32,0.06); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; padding: 16px 18px; margin: 20px 0; }
.callout-title { font-weight: 700; color: var(--accent); font-size: 13px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.callout p { margin-bottom: 0; color: var(--dark); font-size: 14px; }

table.spec-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 13px; }
table.spec-table th, table.spec-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
table.spec-table th { background: var(--card-hover-bg); color: var(--dark); font-weight: 700; width: 30%; }
table.spec-table td { color: var(--mid); }

/* PRODUCT BOX */
.product-box { display: flex; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 28px 0; text-decoration: none; transition: box-shadow 0.2s; }
.product-box:hover { box-shadow: 0 8px 24px rgba(80,20,10,0.12); }
.product-box img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.product-box-body { flex: 1; min-width: 0; }
.product-box-label { font-size: 10px; font-weight: 700; color: var(--accent); letter-spacing: 0.5px; margin-bottom: 4px; }
.product-box-title { font-size: 15px; font-weight: 900; color: var(--dark); margin-bottom: 8px; }
.product-box-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; text-decoration: none; padding: 8px 16px; border-radius: 20px; font-size: 12px; font-weight: 700; transition: opacity 0.15s; }
.product-box-btn:hover { opacity: 0.85; }

/* HW STOCK CTA BANNER */
@keyframes hw-dot-glow {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(52,199,89,0.5); }
  50% { opacity: 0.8; transform: scale(1.15); box-shadow: 0 0 0 6px rgba(52,199,89,0); }
}
.hw-cta { display: flex; align-items: center; gap: 18px; background: linear-gradient(135deg, var(--header-from) 0%, var(--header-to) 100%); border-radius: 16px; padding: 20px 22px; margin: 32px 0; text-decoration: none; transition: transform 0.2s; }
.hw-cta:hover { transform: translateY(-2px); }
.hw-cta img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; flex-shrink: 0; border: 2px solid rgba(255,255,255,0.25); }
.hw-cta-body { flex: 1; min-width: 0; }
.hw-cta-stock { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; color: #7CFF9E; letter-spacing: 0.3px; margin-bottom: 4px; }
.hw-cta-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hw-green); animation: hw-dot-glow 1.8s ease-in-out infinite; }
.hw-cta-title { font-size: 16px; font-weight: 900; color: #fff; margin-bottom: 3px; }
.hw-cta-sub { font-size: 12px; color: rgba(255,255,255,0.7); }
.hw-cta-arrow { flex-shrink: 0; color: #fff; font-size: 22px; }

.disclaimer { font-size: 11px; color: var(--soft); line-height: 1.7; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }

/* FOOTER */
footer { background: #160A0A; padding: 44px 20px; margin-top: 40px; }
.foot-inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-logo-mark { font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 700; color: #fff; letter-spacing: 2px; margin-bottom: 8px; }
.foot-logo-mark span {
  background: linear-gradient(135deg, #FF7060 0%, #CC1000 55%, #FF5030 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.foot-copy { font-size: 11px; color: rgba(255,255,255,0.35); line-height: 1.8; }
.foot-links { display: flex; flex-direction: column; gap: 10px; }
.foot-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 12px; transition: color 0.2s; }
.foot-links a:hover { color: #fff; }

/* MORE / RELATED SECTIONS */
.more-section { margin-top: 48px; padding-top: 8px; }
.more-section-title { font-family: 'Oswald', sans-serif; font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 16px; letter-spacing: 0.3px; }
.teaser-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 8px; }
.teaser-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px 44px 20px 20px; text-decoration: none; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; display: block; }
.teaser-card:hover { box-shadow: 0 10px 28px rgba(80,20,10,0.14); transform: translateY(-3px); border-color: var(--accent); }
.teaser-card-icon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--header-from) 0%, var(--header-to) 100%); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; box-shadow: 0 6px 14px rgba(200,56,32,0.28); }
.teaser-card-icon svg { width: 24px; height: 24px; stroke: #fff; }
.teaser-card-title { font-size: 15px; font-weight: 900; color: var(--dark); margin-bottom: 4px; }
.teaser-card-sub { font-size: 12px; color: var(--soft); }
.teaser-card-arrow { position: absolute; top: 22px; right: 18px; color: var(--line); font-size: 18px; font-weight: 700; transition: transform 0.2s, color 0.2s; }
.teaser-card:hover .teaser-card-arrow { transform: translateX(3px); color: var(--accent); }
.article-teaser-card { display: flex; flex-direction: column; }
.article-teaser-thumb { width: 100%; aspect-ratio: 1200/630; object-fit: cover; border-radius: 10px; margin-bottom: 12px; background: var(--card-hover-bg); }

@media (max-width: 600px) {
  .article-title { font-size: 24px; }
  .product-box { flex-direction: column; align-items: flex-start; }
  .product-box img { width: 100%; height: 160px; }
  .hw-cta { flex-wrap: wrap; }
}
