/*
Theme Name: B2B Media
Theme URI: https://example.com/b2b-media
Author: Your Company
Author URI: https://example.com
Description: BtoB向けオウンドメディアのためのWordPressテーマ。カード型の記事一覧、カテゴリタブ、アクセスランキング、イベント・ツール紹介セクションなどを備えた、クリーンで信頼感のあるメディアデザインです。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: b2b-media
Tags: blog, news, two-columns, custom-menu, featured-images, full-width-template, translation-ready
*/

/* =========================================================
   Design Tokens
   ========================================================= */
:root {
  --primary:        #0096c7;
  --primary-dark:   #0077a3;
  --primary-light:  #e6f6fb;
  --accent:         #ff6b35;
  --accent-dark:    #e85a26;
  --text:           #1f2933;
  --text-soft:      #52606d;
  --text-mute:      #7b8794;
  --bg:             #f4f7f9;
  --surface:        #ffffff;
  --border:         #e4e9ee;
  --border-strong:  #cbd2d9;
  --rank-gold:      #e8b021;

  --radius:         10px;
  --radius-sm:      6px;
  --shadow-sm:      0 1px 2px rgba(20, 40, 60, .06);
  --shadow-md:      0 4px 16px rgba(20, 40, 60, .08);
  --shadow-lg:      0 10px 30px rgba(20, 40, 60, .12);

  --wrap:           1180px;
  --gap:            24px;

  --font: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
          Meiryo, "Noto Sans JP", system-ui, sans-serif;
}

/* =========================================================
   Reset / Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; vertical-align: bottom; }

a { color: var(--primary-dark); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--primary); }

h1, h2, h3, h4 { line-height: 1.4; margin: 0; font-weight: 700; }

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 22px; border-radius: 999px; font-weight: 700; font-size: 14px;
  border: 1.5px solid transparent; transition: all .18s ease; white-space: nowrap;
}
.btn--primary  { background: var(--primary); color: #fff; }
.btn--primary:hover  { background: var(--primary-dark); color: #fff; }
.btn--accent   { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(255,107,53,.3); }
.btn--accent:hover   { background: var(--accent-dark); color: #fff; }
.btn--ghost    { background: #fff; color: var(--primary-dark); border-color: var(--border-strong); }
.btn--ghost:hover    { border-color: var(--primary); color: var(--primary); }
.btn--block    { display: flex; width: 100%; }
.btn--lg       { padding: 15px 34px; font-size: 16px; }

/* "全てを見る" link */
.viewall {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 28px auto 0; padding: 12px 40px;
  border: 1.5px solid var(--border-strong); border-radius: 999px;
  font-weight: 700; color: var(--text-soft); background: #fff;
}
.viewall:hover { border-color: var(--primary); color: var(--primary); }
.viewall-wrap { text-align: center; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}
.site-logo { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--text); display: flex; align-items: center; gap: 8px; }
.site-logo .dot { color: var(--primary); }
.site-logo img { max-height: 38px; width: auto; }

.global-nav { margin-left: 4px; }
.global-nav ul { display: flex; gap: 4px; }
.global-nav a {
  display: block; padding: 8px 14px; color: var(--text-soft);
  font-weight: 600; font-size: 14.5px; border-radius: var(--radius-sm);
}
.global-nav a:hover { color: var(--primary); background: var(--primary-light); }
.current-menu-item > a { color: var(--primary); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-actions .text-link { color: var(--text-soft); font-weight: 600; font-size: 14px; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .2s; border-radius: 2px; }

/* =========================================================
   Hero / Featured carousel（全幅・複数スライド）
   ========================================================= */
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); padding: 28px 0 12px; }
.hero-carousel { position: relative; }

.hero-track {
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 4px 14px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.hero-track::-webkit-scrollbar { display: none; }

.hero-slide {
  flex: 0 0 31%;
  scroll-snap-align: start;
  color: inherit; display: block;
}
.hero-slide__img {
  position: relative; border-radius: 12px; overflow: hidden;
  aspect-ratio: 16 / 9; background: #fff; box-shadow: var(--shadow-md);
}
.hero-slide__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.hero-slide:hover .hero-slide__img img { transform: scale(1.04); }
.hero-slide__overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 16px 14px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.82));
}
.hero-slide__overlay .cat { display: inline-block; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 4px; margin-bottom: 9px; }
.hero-slide__overlay h2 { font-size: 16px; color: #fff; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-slide__meta { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--text-mute); }
.hero-slide__meta .tagicon { flex: none; color: var(--text-mute); }
.hero-slide__meta span.txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* nav arrows */
.hero-nav {
  position: absolute; top: 36%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.96); color: var(--text); font-size: 22px;
  display: grid; place-items: center; box-shadow: var(--shadow-md); z-index: 3;
}
.hero-nav:hover { background: #fff; color: var(--primary); }
.hero-nav.prev { left: -12px; }
.hero-nav.next { right: -12px; }
.hero-nav[hidden] { display: none; }

/* progress + counter */
.hero-progress { display: flex; align-items: center; gap: 14px; margin-top: 8px; padding: 0 4px; }
.hero-progress__bar { position: relative; flex: 1; height: 4px; border-radius: 3px; background: var(--border); overflow: hidden; }
.hero-progress__fill { position: absolute; top: 0; bottom: 0; left: 0; width: 33%; background: var(--primary); border-radius: 3px; transition: left .2s ease, width .2s ease; }
.hero-counter { font-size: 12.5px; font-weight: 700; color: var(--text-mute); white-space: nowrap; }
.hero-counter .cur { color: var(--text); }

/* =========================================================
   Promo banner
   ========================================================= */
.promo-banner { margin: 28px 0; }
.promo-banner a { display: block; }
.promo-banner img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* Customizer-driven promo CTA (self-centering — independent of .wrap) */
.promo-cta {
  width: min(100% - 32px, var(--wrap));
  margin: 28px auto;
  border-radius: var(--radius);
  padding: 34px 44px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  box-shadow: var(--shadow-md);
  /* fallback colors; overridden by Customizer inline CSS */
  background: linear-gradient(110deg, var(--primary-dark), var(--primary));
  color: #fff;
}
.promo-cta__title { font-size: 28px; font-weight: 800; line-height: 1.3; margin: 0; }
.promo-cta__sub   { margin: 8px 0 0; font-size: 15px; opacity: .95; }
.promo-cta__btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 34px; border-radius: 999px; font-weight: 800; font-size: 16px;
  background: var(--accent); color: #fff; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0,0,0,.16); transition: transform .15s ease, filter .15s ease;
}
.promo-cta__btn:hover { transform: translateY(-2px); filter: brightness(1.06); color: #fff; }
@media (max-width: 760px) {
  .promo-cta { padding: 26px; text-align: center; justify-content: center; }
  .promo-cta__title { font-size: 21px; }
}

/* =========================================================
   Section frame
   ========================================================= */
.section { padding: 28px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-title {
  font-size: 22px; position: relative; padding-left: 16px;
}
.section-title::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 5px; border-radius: 3px; background: var(--primary);
}
.section-title small { display: block; font-size: 12px; color: var(--text-mute); font-weight: 600; letter-spacing: .08em; margin-top: 3px; }

.layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }

/* =========================================================
   Tabs
   ========================================================= */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; border-bottom: 2px solid var(--border); }
.tab-btn {
  padding: 11px 20px; background: none; border: 0; font-weight: 700; font-size: 15px;
  color: var(--text-mute); border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* =========================================================
   Article cards
   ========================================================= */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-thumb img { transform: scale(1.05); }
.card-cat {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,150,199,.92); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 4px;
}
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 15px; font-weight: 700; line-height: 1.55; color: var(--text); margin-bottom: 10px; }
.card:hover .card-title { color: var(--primary-dark); }
.card-meta { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-mute); }
.card-tag { color: var(--primary-dark); font-weight: 600; }
.card-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* horizontal list card (sidebar / ranking) */
.list-card { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.list-card:last-child { border-bottom: 0; }
.list-card .thumb { flex: none; width: 96px; aspect-ratio: 16/10; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); }
.list-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-card .info { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.list-card .info .ttl { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.5; }
.list-card:hover .info .ttl { color: var(--primary); }
.list-card .info .meta { font-size: 11.5px; color: var(--text-mute); }

/* =========================================================
   Sidebar
   ========================================================= */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.widget { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.widget-title { font-size: 16px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 2px solid var(--primary); }
.widget ul.menu li { padding: 9px 0; border-bottom: 1px dashed var(--border); }
.widget ul.menu li:last-child { border-bottom: 0; }
.widget ul.menu a { color: var(--text-soft); font-weight: 600; font-size: 13.5px; display: flex; justify-content: space-between; }
.widget ul.menu a:hover { color: var(--primary); }

/* ranking widget (numbered) */
.rank-list { counter-reset: rk; }
.rank-list .list-card { position: relative; padding-left: 34px; }
.rank-list .list-card::before {
  counter-increment: rk; content: counter(rk);
  position: absolute; left: 0; top: 16px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg); color: var(--text-mute); font-size: 12px; font-weight: 800;
  display: grid; place-items: center;
}
.rank-list .list-card:nth-child(1)::before { background: var(--rank-gold); color: #fff; }
.rank-list .list-card:nth-child(2)::before { background: #9aa5b1; color: #fff; }
.rank-list .list-card:nth-child(3)::before { background: #c69963; color: #fff; }

/* tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  font-size: 12.5px; padding: 5px 12px; background: var(--bg);
  border-radius: 999px; color: var(--text-soft); font-weight: 600;
}
.tag-cloud a:hover { background: var(--primary-light); color: var(--primary-dark); }

/* =========================================================
   Events
   ========================================================= */
.events-band { background: #fff; }
.event-row { display: flex; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--border); }
.event-row:last-child { border-bottom: 0; }
.event-date { flex: none; text-align: center; width: 84px; padding: 10px 0; background: var(--primary-light); border-radius: var(--radius-sm); }
.event-date .m { font-size: 12px; color: var(--primary-dark); font-weight: 700; }
.event-date .d { font-size: 26px; font-weight: 800; color: var(--primary-dark); line-height: 1; }
.event-date .w { font-size: 11px; color: var(--text-mute); }
.event-info { min-width: 0; }
.event-info .badge { display: inline-block; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 4px; margin-bottom: 6px; }
.event-info .ttl { font-size: 15px; font-weight: 700; color: var(--text); }
.event-info .ttl:hover { color: var(--primary); }
.event-info .host { font-size: 12.5px; color: var(--text-mute); margin-top: 4px; }

/* =========================================================
   CTA / member band
   ========================================================= */
.cta-band {
  background: linear-gradient(110deg, var(--primary-dark), var(--primary));
  color: #fff; border-radius: var(--radius); padding: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; font-size: 26px; }
.cta-band p { margin: 8px 0 0; opacity: .92; font-size: 15px; }
.cta-band .count { font-weight: 800; }

/* =========================================================
   Tools section
   ========================================================= */
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.tool-card { display: flex; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: box-shadow .18s ease; }
.tool-card:hover { box-shadow: var(--shadow-md); }
.tool-logo { flex: none; width: 64px; height: 64px; border-radius: var(--radius-sm); background: var(--bg); display: grid; place-items: center; font-weight: 800; color: var(--primary); font-size: 22px; }
.tool-card .name { font-size: 16px; font-weight: 700; color: var(--text); }
.tool-card .cat { font-size: 11.5px; color: var(--primary-dark); font-weight: 600; margin-bottom: 4px; }
.tool-card .desc { font-size: 13px; color: var(--text-soft); margin-top: 6px; }

/* =========================================================
   Single post
   ========================================================= */
.post-header { background: #fff; border-bottom: 1px solid var(--border); padding: 32px 0; }
.breadcrumb { font-size: 12.5px; color: var(--text-mute); margin-bottom: 14px; }
.breadcrumb a { color: var(--text-mute); }
.breadcrumb a:hover { color: var(--primary); }
.post-cat { display: inline-block; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 4px; margin-bottom: 14px; }
.post-title { font-size: 30px; line-height: 1.4; margin-bottom: 16px; }
.post-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--text-mute); }
.post-meta .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--bg); }

.post-body { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.post-body > * + * { margin-top: 1.2em; }
.post-body h2 { font-size: 23px; margin-top: 1.8em; padding: 10px 0 10px 16px; border-left: 5px solid var(--primary); background: linear-gradient(90deg, var(--primary-light), transparent); }
.post-body h3 { font-size: 19px; margin-top: 1.6em; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.post-body p { line-height: 1.95; color: #2c3742; }
.post-body img { border-radius: var(--radius-sm); }
.post-body a { text-decoration: underline; }
.post-body blockquote { border-left: 4px solid var(--border-strong); padding: 4px 18px; color: var(--text-soft); background: var(--bg); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.post-body ul:not(.menu), .post-body ol { padding-left: 1.4em; }
.post-body ul:not(.menu) li { list-style: disc; margin: .4em 0; }
.post-body ol li { list-style: decimal; margin: .4em 0; }
.post-body code { background: var(--bg); padding: 2px 7px; border-radius: 4px; font-size: .9em; }
.post-body figure { margin: 0; }

.share-row { display: flex; gap: 10px; align-items: center; margin-top: 28px; }
.share-row .lbl { font-size: 13px; color: var(--text-mute); font-weight: 700; }
.share-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; color: var(--text-soft); font-weight: 700; }
.share-btn:hover { background: var(--primary); color: #fff; }

/* =========================================================
   Archive header
   ========================================================= */
.page-hero { background: linear-gradient(110deg, var(--primary-dark), var(--primary)); color: #fff; padding: 44px 0; }
.page-hero h1 { font-size: 28px; color: #fff; }
.page-hero p { margin: 8px 0 0; opacity: .9; }

/* pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.pagination .page-numbers {
  min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-weight: 700; color: var(--text-soft);
}
.pagination .page-numbers.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--primary); color: var(--primary); }

/* =========================================================
   Footer
   ========================================================= */
.footer-cta { background: var(--accent); text-align: center; padding: 22px 16px; }
.footer-cta a { color: #fff; font-size: 19px; font-weight: 800; display: inline-flex; gap: 8px; align-items: center; }
.footer-cta a small { font-size: 13px; }

.site-footer { background: #1f2933; color: #cbd2d9; padding: 48px 0 0; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; }
.footer-brand .logo { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.8; color: #9aa5b1; }
.footer-col h4 { font-size: 13px; color: #fff; margin-bottom: 14px; letter-spacing: .04em; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 13px; color: #9aa5b1; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: #323f4b; display: grid; place-items: center; color: #cbd2d9; font-weight: 700; }
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-bottom { border-top: 1px solid #323f4b; padding: 18px 0; text-align: center; font-size: 12px; color: #7b8794; }

/* =========================================================
   Event / Tool — status badges, single pages, archives
   ========================================================= */
.event-row { color: inherit; }
.event-badges { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.status { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 4px; }
.status--open    { background: #e6f6ec; color: #1a8a4a; }
.status--soon    { background: #fff0e6; color: #d2691e; }
.status--full    { background: #fdecec; color: #c0392b; }
.status--ended   { background: #eef1f4; color: #7b8794; }
.status--archive { background: var(--primary-light); color: var(--primary-dark); }

.events-list { background: #fff; }
.empty-state { text-align: center; color: var(--text-mute); padding: 40px 16px; background: #fff; border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.empty-state small { color: var(--text-mute); }

/* filter chips (tool archive) */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-chip { font-size: 13px; font-weight: 700; padding: 7px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border-strong); color: var(--text-soft); }
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* PR label */
.pr-label { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 1px 6px; border-radius: 3px; background: #eef1f4; color: #7b8794; vertical-align: middle; }
.pr-label--lg { font-size: 12px; padding: 2px 8px; }

/* ---- Event hero ---- */
.event-hero { background: #fff; border-bottom: 1px solid var(--border); padding: 32px 0; }
.event-hero__badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.event-hero__cat { font-size: 12px; font-weight: 700; color: var(--primary-dark); background: var(--primary-light); padding: 3px 10px; border-radius: 4px; }
.event-hero__title { font-size: 28px; line-height: 1.45; }
.event-eyecatch { margin: 0 0 24px; }
.event-eyecatch img { width: 100%; border-radius: var(--radius); }

.event-note { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 24px; font-size: 14px; }
.event-note--ended   { background: #eef1f4; color: var(--text-soft); }
.event-note--archive { background: var(--primary-light); color: var(--primary-dark); }

/* apply box */
.apply-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; position: sticky; top: 88px; box-shadow: var(--shadow-sm); }
.apply-box__head { background: var(--primary); color: #fff; font-weight: 800; text-align: center; padding: 12px; font-size: 15px; }
.apply-box.is-ended .apply-box__head { background: #9aa5b1; }
.apply-box__list { margin: 0; padding: 18px 20px; }
.apply-box__list dt { font-size: 12px; color: var(--text-mute); font-weight: 700; margin-top: 12px; }
.apply-box__list dt:first-child { margin-top: 0; }
.apply-box__list dd { margin: 3px 0 0; font-size: 14px; font-weight: 600; color: var(--text); }
.apply-box__sub { font-weight: 400; color: var(--text-soft); }
.apply-box__price { font-size: 18px; font-weight: 800; color: var(--accent-dark); }
.apply-box .btn { margin: 4px 20px 6px; width: calc(100% - 40px); }
.apply-box__note { text-align: center; font-size: 11px; color: var(--text-mute); margin: 0 0 16px; }
.apply-box__closed { margin: 4px 20px 18px; background: #eef1f4; color: #7b8794; cursor: default; }

/* ---- Tool hero ---- */
.tool-hero { background: #fff; border-bottom: 1px solid var(--border); padding: 32px 0; }
.tool-hero__main { display: flex; gap: 22px; align-items: center; }
.tool-hero__logo { flex: none; width: 84px; height: 84px; border-radius: var(--radius); background: var(--bg); display: grid; place-items: center; font-size: 32px; font-weight: 800; color: var(--primary); overflow: hidden; }
.tool-hero__logo img { width: 100%; height: 100%; object-fit: contain; }
.tool-hero__cat { display: inline-block; font-size: 12px; font-weight: 700; color: var(--primary-dark); background: var(--primary-light); padding: 3px 10px; border-radius: 4px; }
.tool-hero__title { font-size: 28px; margin: 8px 0 2px; }
.tool-hero__reading { font-size: 13px; color: var(--text-mute); }
.tool-hero__tagline { font-size: 16px; color: var(--text-soft); margin: 10px 0 0; line-height: 1.7; }
.tool-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.tool-hero__pr-note { font-size: 12px; color: var(--text-mute); margin: 12px 0 0; }

.tool-spec { width: 100%; border-collapse: collapse; margin-bottom: 28px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tool-spec th, .tool-spec td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: top; }
.tool-spec tr:last-child th, .tool-spec tr:last-child td { border-bottom: 0; }
.tool-spec th { width: 140px; background: var(--bg); color: var(--text-soft); font-weight: 700; }

.tool-card__body { min-width: 0; }
.tool-logo img { width: 100%; height: 100%; object-fit: contain; }

/* tool sidebar CTA */
.tool-aside { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-align: center; position: sticky; top: 88px; box-shadow: var(--shadow-sm); }
.tool-aside__logo { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: var(--radius-sm); background: var(--bg); display: grid; place-items: center; font-size: 26px; font-weight: 800; color: var(--primary); overflow: hidden; }
.tool-aside__logo img { width: 100%; height: 100%; object-fit: contain; }
.tool-aside__name { font-size: 18px; font-weight: 800; }
.tool-aside__tagline { font-size: 13px; color: var(--text-soft); margin: 8px 0 16px; }
.tool-aside .btn { margin-top: 8px; }

@media (max-width: 760px) {
  .tool-hero__main { flex-direction: column; align-items: flex-start; gap: 14px; }
  .apply-box, .tool-aside { position: static; }
  .event-hero__title, .tool-hero__title { font-size: 22px; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero-slide { flex-basis: 46%; }
  .layout { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero-slide { flex-basis: 86%; }
  .hero-nav { display: none; }
  .global-nav.open { display: block; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 12px 16px; box-shadow: var(--shadow-md); }
  .global-nav.open ul { flex-direction: column; gap: 0; }
  .global-nav.open a { padding: 12px 8px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .card-grid, .card-grid.cols-2, .tool-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 28px; text-align: center; justify-content: center; }
  .post-title { font-size: 23px; }
  .post-body { padding: 22px; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .section-title { font-size: 19px; }
}
