@charset "UTF-8";

/* ==========================================================
   APEXAIM - Premium Dark Theme (Inspired by AlphaTheta)
========================================================== */

:root {
  --bg-base: #f9f9f9; /* 白系背景 */
  --bg-surface: #ffffff; /* 白抜き */
  --bg-surface-hover: #f1f5f9;
  --text-main: #333333;
  --text-sub: #666666;
  --border-color: #dddddd;
  --border-hover: #aaaaaa;
  --accent: #f99e1a; /* OW Orange for highlights */
  --accent-glow: rgba(249, 158, 26, 0.4);
  --font-family: "Inter", "Noto Sans JP", sans-serif;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-base: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px var(--accent-glow);
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background: var(--bg-base);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
  letter-spacing: 0.5px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--accent);
}

/* ==========================================================
   Header & Navigation
========================================================== */
header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 3rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 1001;
}
.brand-logo {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand:hover .brand-logo {
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}
.site-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Desktop Nav */
nav.desktop-nav {
  display: flex;
  gap: 40px;
}
nav.desktop-nav a {
  color: var(--text-sub);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding: 5px 0;
}
nav.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-main);
  transition: var(--transition);
}
nav.desktop-nav a:hover,
nav.desktop-nav a.active {
  color: var(--text-main);
}
nav.desktop-nav a:hover::after,
nav.desktop-nav a.active::after {
  width: 100%;
}

/* Hamburger Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-main);
  transition: all 0.3s ease;
}
.menu-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}
.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-sub);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 20px 0;
}
.mobile-menu a:hover {
  color: var(--text-main);
  letter-spacing: 6px;
}

/* ==========================================================
   Portal Page UI (Carview Style Database Layout)
========================================================== */
.portal-main {
  background: var(--bg-base);
}

/* Compact Hero */
.portal-hero {
  position: relative;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}
.portal-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&q=80")
    center/cover no-repeat;
  filter: grayscale(100%) contrast(1.2);
  opacity: 0.15;
  z-index: 1;
}
.portal-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 2rem;
}
.portal-hero-content h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
}
.portal-hero-content h2 span {
  font-weight: 400;
  color: var(--text-sub);
}
.portal-hero-content p {
  font-size: 1rem;
  color: var(--text-sub);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
}

/* 2-Column Portal Layout */
.portal-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}
.portal-content {
  flex: 1;
  min-width: 0;
} /* Left Main Column */
.portal-sidebar {
  width: 320px;
  flex-shrink: 0;
} /* Right Sidebar */

/* Portal Sections */
.portal-section {
  margin-bottom: 4rem;
}
.portal-section-header {
  border-bottom: 2px solid var(--text-sub);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}
.portal-section-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: 1px;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.portal-section-header h2 i {
  color: var(--accent);
}

/* Genre Icon Nav */
.genre-icon-nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}
.genre-icon-nav a {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 1.5rem 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: var(--transition);
}
.genre-icon-nav a i {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--text-sub);
  transition: var(--transition);
}
.genre-icon-nav a:hover:not(.disabled) {
  background: var(--bg-surface-hover);
  border-color: var(--text-main);
  transform: translateY(-3px);
  box-shadow: var(--shadow-base);
}
.genre-icon-nav a:hover:not(.disabled) i {
  color: var(--text-main);
}
.genre-icon-nav a.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Brand Grid with 1:1 Logos */
.brand-grid-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
  gap: 10px 20px;
}
.brand-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: var(--text-main);
  transition: var(--transition);
}
.brand-logo-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-sub);
  transition: var(--transition);
  overflow: hidden;
}
.brand-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: var(--transition);
}
.brand-logo-card:hover .brand-logo-img {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}
.brand-logo-card:hover .brand-logo-img img {
  opacity: 1;
  transform: scale(1.1);
}
.brand-logo-card .brand-name {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}
.brand-logo-card:hover .brand-name {
  color: var(--accent);
}

/* Advanced Search Box */
.advanced-search-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.search-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.search-row label {
  width: 120px;
  font-weight: 600;
  color: var(--text-sub);
  font-size: 0.9rem;
}
.search-row select,
.search-row input {
  flex: 1;
  padding: 10px;
  background: var(--bg-base);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--font-family);
  outline: none;
}
.search-row select:focus,
.search-row input:focus {
  border-color: var(--accent);
}
.range-inputs {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
}
.range-inputs select {
  flex: 1;
}
.search-actions {
  margin-top: 1rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

/* Ranking Dense */
.ranking-list-dense {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ranking-item-dense {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 15px 20px;
  transition: var(--transition);
  border-radius: 4px;
}
.ranking-item-dense:hover {
  background: var(--bg-surface-hover);
  transform: translateX(5px);
  border-color: var(--border-hover);
}
.rank-num {
  font-size: 1.6rem;
  font-weight: 800;
  min-width: 30px;
  text-align: center;
}
.badge-1 {
  color: #f59e0b;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}
.badge-2 {
  color: #94a3b8;
}
.badge-3 {
  color: #b45309;
}
.rank-icon {
  font-size: 2rem;
  color: #444;
  width: 40px;
  text-align: center;
}
.rank-info {
  flex: 1;
}
.cat-label {
  font-size: 0.7rem;
  color: var(--text-sub);
  letter-spacing: 1px;
}
.rank-info h4 {
  margin: 2px 0 5px 0;
  font-size: 1.1rem;
  font-weight: 800;
}
.rank-info p {
  margin: 0;
  font-size: 0.85rem;
  color: #aaa;
}
.rank-price {
  font-weight: 800;
  color: var(--accent);
  font-size: 1rem;
  white-space: nowrap;
}

/* Sidebar Widgets */
.side-widget {
  margin-bottom: 3rem;
}
.side-widget h3 {
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-top: 0;
}
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.news-list li {
  padding: 12px 0;
  border-bottom: 1px dotted var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.news-date {
  font-size: 0.75rem;
  color: var(--text-sub);
}
.news-list a {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}
.news-list a:hover {
  color: var(--accent);
}
.tool-widget {
  background: var(--bg-surface);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

/* ==========================================================
   Section & Device Cards
========================================================== */
.section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
.section-header {
  margin-bottom: 4rem;
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
}
.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 10px 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.section-header p {
  color: var(--text-sub);
  font-size: 1rem;
  margin: 0;
  letter-spacing: 1px;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.device-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.device-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-base);
  transform: translateY(-3px);
}

/* Rank Badge keeping it small */
.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  z-index: 2;
  backdrop-filter: blur(5px);
}
.device-card:hover .rank-badge {
  border-color: var(--accent);
  color: var(--accent);
}

/* Compact Image Area */
.device-img-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #080808;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222;
  font-size: 3rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}
.device-img-placeholder::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 50%
  );
  pointer-events: none;
}

/* Compact Content Area */
.device-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.device-category {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.device-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.device-desc {
  font-size: 0.8rem;
  color: var(--text-sub);
  line-height: 1.4;
  margin: 0 0 1.5rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Specs List inside Card */
.device-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  border-top: 1px solid var(--border-color);
}
.device-specs li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}
.specs-label {
  color: var(--text-sub);
}
.specs-value {
  color: var(--text-main);
  font-weight: 600;
  text-align: right;
}

.action-btns {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ==========================================================
   Buttons
========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid;
}
.btn-primary {
  background: var(--text-main);
  color: var(--bg-base);
  border-color: var(--text-main);
}
.btn-primary:hover {
  background: transparent;
  color: var(--text-main);
}
.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-color);
}
.btn-outline:hover {
  border-color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
}
.btn-affiliate {
  background: transparent;
  color: var(--text-main);
  border-color: var(--accent);
}
.btn-affiliate:hover {
  background: var(--accent);
  color: var(--bg-base);
  box-shadow: var(--shadow-glow);
}

/* ==========================================================
   Device Single Post (Blog style)
========================================================== */
.post-header {
  margin-bottom: 3rem;
  text-align: center;
}
.post-header .category-label {
  font-size: 0.8rem;
  color: var(--text-sub);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.post-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 1rem 0;
  line-height: 1.3;
}
.post-meta {
  color: var(--text-sub);
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.post-hero-image {
  width: 100%;
  height: 500px;
  background: #0a0a0a;
  border: 1px solid var(--border-color);
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222;
  font-size: 5rem;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #cccccc;
}
.post-content h2,
.post-content h3 {
  color: var(--text-main);
  margin-top: 3rem;
  margin-bottom: 1rem;
}
.post-content h2 {
  font-size: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}
.post-content h3 {
  font-size: 1.5rem;
}

/* Pros & Cons Dark */
.pros-cons-box {
  display: flex;
  gap: 20px;
  margin: 3rem 0;
}
.pros,
.cons {
  flex: 1;
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
}
.pros h4 {
  color: #4ade80;
  margin-top: 0;
  font-size: 1.2rem;
}
.cons h4 {
  color: #f87171;
  margin-top: 0;
  font-size: 1.2rem;
}
.pros ul,
.cons ul {
  padding-left: 20px;
  margin: 0;
  color: #aaa;
}
.pros li,
.cons li {
  margin-bottom: 10px;
}

/* Specs Table Dark */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 3rem 0;
}
.specs-table th,
.specs-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}
.specs-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-sub);
  font-weight: 600;
  width: 30%;
}
.specs-table td {
  color: var(--text-main);
}

/* Affiliate CTA Block inside content */
.affiliate-block {
  margin: 4rem 0;
  padding: 3rem;
  border: 1px solid var(--border-color);
  text-align: center;
  background: linear-gradient(
    180deg,
    var(--bg-surface) 0%,
    var(--bg-base) 100%
  );
}
.affiliate-block .affiliate-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin: 1.5rem 0;
}

/* ==========================================================
   Tool Banner (OW Tool)
========================================================== */
.tool-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6rem auto;
  max-width: 1400px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.tool-banner:hover {
  border-color: var(--text-sub);
}
.tool-banner::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(
    circle at right,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.tool-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}
.tool-content h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 1.5rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================
   Footer
========================================================== */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 5rem 3rem 3rem;
  margin-top: auto;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 3rem;
}
.footer-links a {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-sub);
}
.footer-links a:hover {
  color: var(--text-main);
}
.footer-bottom {
  text-align: center;
  color: #444;
  font-size: 0.8rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

/* ==========================================================
   Responsive
========================================================== */
@media (max-width: 1000px) {
  nav.desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .portal-container {
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 2rem;
  }
  .portal-content,
  .portal-sidebar {
    width: 100%;
  }
  .portal-hero h2 {
    font-size: 2.2rem;
  }
  .search-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .search-row label {
    width: 100%;
  }
  .ranking-item-dense {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
  }
  .rank-icon {
    display: none;
  }
  .rank-num {
    position: absolute;
    top: 10px;
    right: 10px;
  }
  .pros-cons-box {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  /* スマホ時に2列表示にし、画面内に約4つ（2列×2段）収まるようにコンパクト化 */
  .device-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .device-content {
    padding: 0.8rem;
  }
  .device-category {
    font-size: 0.55rem;
    letter-spacing: 0px;
    margin-bottom: 0.3rem;
  }
  .device-title {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
  }
  .device-desc {
    font-size: 0.7rem;
    margin-bottom: 0.8rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .rank-badge {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
    top: 5px;
    left: 5px;
  }
  /* スマホ時はアイコンも少し小さく */
  .device-img-placeholder {
    font-size: 2rem;
  }
}

/* ==========================================================
   Sidebar Banners (Sticky)
   ========================================================== */
.sidebar-banner-left,
.sidebar-banner-right {
  position: fixed;
  top: 15vh;
  width: 160px;
  height: 600px;
  z-index: 900;
  display: none;
}

/* 1. 標準的な幅（800px - 1100px）のページ用 */
/* 対象: 各ヒーロー詳細、記事一覧、記事詳細、ツール（TOP/index）など */
/* コンテンツ最大幅 1100px (index) を基準に、左右50pxの余白を確保 */
/* 計算: 550px (半分) + 50px (余白) + 160px (バナー) = 760px */
body:has(.hp, .tool-main, .portal-container, .articles-page, .article-container) .sidebar-banner-left { left: calc(50% - 760px); }
body:has(.hp, .tool-main, .portal-container, .articles-page, .article-container) .sidebar-banner-right { right: calc(50% - 760px); }

@media (min-width: 1550px) {
  body:has(.hp, .tool-main, .portal-container, .articles-page, .article-container) .sidebar-banner-left,
  body:has(.hp, .tool-main, .portal-container, .articles-page, .article-container) .sidebar-banner-right {
    display: block;
  }
}

/* 2. ワイド幅（1450px）のページ用 */
/* 対象: ヒーロー一覧、お問い合わせなど (.lp クラス) */
/* 計算: 725px (半分) + 50px (余白) + 160px (バナー) = 935px */
body:has(.lp) .sidebar-banner-left { left: calc(50% - 935px); }
body:has(.lp) .sidebar-banner-right { right: calc(50% - 935px); }

@media (min-width: 1900px) {
  body:has(.lp) .sidebar-banner-left,
  body:has(.lp) .sidebar-banner-right {
    display: block;
  }
}
