/*
Theme Name: Bit Channel
Theme URI: https://bitchannel.net/
Author: 株式会社セイサク
Description: ビットちゃんねるの商品紹介・動画連携サイト用テーマ
Version: 1.0.0
Text Domain: bitchannel
*/

:root {
  --ink: #17202a;
  --muted: #65717d;
  --paper: #fffdf8;
  --surface: #f3efe6;
  --accent: #e85d2a;
  --accent-dark: #b53d16;
  --night: #15232b;
  --line: rgba(23, 32, 42, .12);
  --radius: 22px;
  --shadow: 0 18px 50px rgba(23, 32, 42, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, sans-serif;
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,253,248,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .05em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--accent); font-size: 13px; }
.site-nav { display: flex; gap: 24px; color: var(--muted); font-size: 14px; font-weight: 700; }
.site-nav a:hover { color: var(--accent); }

.hero { position: relative; min-height: min(760px, 86svh); display: grid; align-items: end; overflow: hidden; background: var(--night); }
.hero-media, .hero-media::after { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-media::after { content: ""; background: linear-gradient(90deg, rgba(11,21,27,.9) 0%, rgba(11,21,27,.54) 55%, rgba(11,21,27,.12) 100%), linear-gradient(0deg, rgba(11,21,27,.76), transparent 55%); }
.hero-content { position: relative; z-index: 2; color: white; padding-block: 112px 86px; max-width: 720px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: #ffd8c9; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero h1 { margin: 0; font-size: clamp(42px, 7vw, 84px); line-height: 1.05; letter-spacing: -.045em; }
.hero-lead { margin: 24px 0 32px; max-width: 590px; color: rgba(255,255,255,.84); font-size: clamp(16px, 2vw, 20px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 23px; border-radius: 999px; font-weight: 800; transition: .2s ease; }
.button-primary { color: white; background: var(--accent); box-shadow: 0 10px 30px rgba(232,93,42,.28); }
.button-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.button-ghost { color: white; border: 1px solid rgba(255,255,255,.5); }
.button-ghost:hover { background: rgba(255,255,255,.1); }

.section { padding-block: 96px; }
.section-alt { background: var(--surface); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section-head h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.15; letter-spacing: -.035em; }
.section-head p { max-width: 540px; margin: 0; color: var(--muted); }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card { min-height: 220px; padding: 25px; display: flex; flex-direction: column; justify-content: space-between; border-radius: var(--radius); color: white; background: var(--night); overflow: hidden; position: relative; box-shadow: var(--shadow); }
.category-card::after { content: ""; width: 150px; height: 150px; position: absolute; right: -45px; bottom: -60px; border-radius: 50%; background: rgba(255,255,255,.08); }
.category-card:nth-child(2) { background: #7a3c25; }
.category-card:nth-child(3) { background: #3f5f55; }
.category-card:nth-child(4) { background: #3f4659; }
.category-icon { font-size: 32px; }
.category-card h3 { margin: 36px 0 2px; font-size: 21px; }
.category-card p { margin: 0; color: rgba(255,255,255,.72); font-size: 13px; }
.archive-page { padding-top: 72px; padding-bottom: 96px; }
.archive-head { margin-bottom: 32px; }
.archive-head h1 { margin: 4px 0 8px; font-size: clamp(34px, 6vw, 64px); }
.empty-state { padding: 56px 28px; text-align: center; border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.empty-state h2 { margin-top: 0; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 30px rgba(23,32,42,.07); }
.product-thumb { aspect-ratio: 4 / 3; overflow: hidden; background: #e8e4db; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-thumb img { transform: scale(1.035); }
.product-body { padding: 22px; }
.tag { color: var(--accent-dark); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.product-card h3 { margin: 7px 0 8px; font-size: 20px; line-height: 1.45; }
.product-card p { margin: 0; color: var(--muted); font-size: 14px; }

.video-feature { display: grid; grid-template-columns: 1.25fr .75fr; overflow: hidden; border-radius: 28px; background: var(--night); color: white; box-shadow: var(--shadow); }
.video-wrap { position: relative; aspect-ratio: 16/9; min-height: 100%; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-copy { padding: clamp(28px, 5vw, 58px); display: flex; flex-direction: column; justify-content: center; }
.video-copy h2 { margin: 0 0 16px; font-size: clamp(27px, 3.4vw, 42px); line-height: 1.25; }
.video-copy p { color: rgba(255,255,255,.72); }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(36px, 7vw, 88px); }
.about-photo { border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); }
.about-photo img { aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.about-copy h2 { margin: 0 0 20px; font-size: clamp(32px, 4vw, 48px); line-height: 1.2; }
.about-copy p { color: var(--muted); }

.site-footer { padding-block: 46px; color: rgba(255,255,255,.62); background: #0e181e; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; }
.affiliate-note { max-width: 680px; }

.content-shell { padding-block: 64px 96px; }
.content-shell h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.2; }
.entry-content { max-width: 780px; }
.entry-content a { color: var(--accent-dark); text-decoration: underline; }
.entry-content a.button { color: white; text-decoration: none; }
.entry-content h2 { margin: 48px 0 18px; font-size: clamp(26px, 3vw, 36px); line-height: 1.35; }
.entry-content h3 { margin: 34px 0 12px; font-size: 21px; line-height: 1.45; }
.entry-content .video-wrap { margin: 32px 0 44px; min-height: auto; }
.affiliate-disclosure { margin-top: 46px; padding: 18px 20px; border-radius: 14px; color: var(--muted); background: var(--surface); font-size: 13px; }
.summary-box { margin: 28px 0 38px; padding: 24px; border-left: 5px solid var(--accent); border-radius: 0 16px 16px 0; background: var(--surface); }
.summary-box h2 { margin-top: 0; font-size: 26px; }
.item-summary { margin: 28px 0 38px; padding: 24px; border-left: 5px solid var(--accent); border-radius: 0 16px 16px 0; background: var(--surface); }
.item-summary__label { margin: 0 0 8px; color: var(--accent-dark); font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.item-summary > p:last-of-type { margin-bottom: 12px; }
.item-summary ul { margin-bottom: 0; }
.comparison-table { width: 100%; margin: 24px 0 38px; border-collapse: collapse; font-size: 15px; }
.comparison-table th, .comparison-table td { padding: 15px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison-table th { background: var(--night); color: white; }
.comparison-table td:first-child { width: 22%; font-weight: 800; background: var(--surface); }
.buy-panel { margin: 30px 0; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 8px 28px rgba(23,32,42,.06); }
.buy-panel h3 { margin-top: 0; }
.buy-panel h2 { margin-top: 0; font-size: 28px; }
.buy-panel .button { margin: 4px 8px 4px 0; color: white; background: var(--accent); text-decoration: none; }
.buy-panel .button:hover { background: var(--accent-dark); }
.buy-panel .button--secondary { background: var(--night); }
.video-embed { position: relative; aspect-ratio: 16 / 9; margin: 24px 0 42px; overflow: hidden; border-radius: 18px; background: var(--night); box-shadow: var(--shadow); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.entry-content .affiliate-note { margin-top: 42px; padding: 18px 20px; border-radius: 14px; color: var(--muted); background: var(--surface); font-size: 13px; }

@media (max-width: 620px) {
  .comparison-table { display: block; overflow-x: auto; white-space: normal; }
  .comparison-table th, .comparison-table td { min-width: 135px; padding: 12px 10px; }
  .comparison-table td:first-child { min-width: 105px; }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .video-feature, .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1120px); }
  .header-inner { min-height: 62px; }
  .hero { min-height: 76svh; }
  .hero-media::after { background: linear-gradient(0deg, rgba(11,21,27,.92) 0%, rgba(11,21,27,.2) 88%); }
  .hero-content { padding-block: 80px 52px; }
  .hero h1 { font-size: 46px; }
  .hero-lead { font-size: 16px; }
  .actions .button { width: 100%; }
  .section { padding-block: 66px; }
  .section-head { align-items: start; flex-direction: column; }
  .category-grid, .product-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 172px; }
  .video-feature { border-radius: 20px; }
  .footer-inner { flex-direction: column; }
}
