@charset "UTF-8";
/* Alcorn McBride カテゴリーページ（ショーコントロール・メディア・ライド・ページング） */

/* ===== カテゴリーヒーロー ===== */
.amb-cat-hero {
  position: relative;
  background: linear-gradient(160deg, #000000 0%, #1a0508 25%, #100308 60%, #050108 100%);
  padding: 64px 0 56px;
  overflow: hidden;
}
.amb-cat-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 50%, rgba(196,18,48,.14) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(196,18,48,.09) 0%, transparent 40%);
}
.amb-cat-hero::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--amb-brand-primary) 0%, rgba(196,18,48,.3) 60%, transparent 100%);
}
.amb-cat-hero-content {
  position: relative; z-index: 1;
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1024px) {
  .amb-cat-hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}
.amb-cat-hero-text { }
.amb-cat-hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(196,18,48,.2); border: 1px solid rgba(196,18,48,.4);
  color: var(--amb-brand-primary); padding: 6px 14px;
  border-radius: var(--amb-radius-full); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px;
}
.amb-cat-hero-title {
  font-family: var(--amb-font-display); font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800; color: white; line-height: 1.15;
  letter-spacing: -.02em; margin: 0 0 16px;
}
.amb-cat-hero-desc {
  font-size: clamp(0.875rem, 1.2vw, 1rem); color: rgba(255,255,255,.7);
  line-height: 1.8; margin: 0 0 32px; max-width: 700px;
}
.amb-cat-hero-stats {
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--amb-radius-md); padding: 0; display: inline-flex;
}
.amb-cat-hero-stat {
  display: flex; flex-direction: column; align-items: center; padding: 16px 28px;
}
.amb-cat-hero-stat-num {
  font-family: var(--amb-font-display); font-size: 1.375rem; font-weight: 800;
  color: var(--amb-brand-primary); line-height: 1;
}
.amb-cat-hero-stat-label {
  font-size: 0.6875rem; color: rgba(255,255,255,.6); margin-top: 4px;
  font-weight: 500; white-space: nowrap;
}
.amb-cat-hero-stat-divider {
  width: 1px; height: 40px; background: rgba(255,255,255,.15); flex-shrink: 0;
}

/* ヒーロー右側ビジュアル */
.amb-cat-hero-visual {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
}
@media (min-width: 1024px) {
  .amb-cat-hero-visual { display: flex; }
}
.amb-cat-hero-visual-inner {
  position: relative;
  width: 100%;
}

/* 写真ラップ */
.amb-cat-hero-photo-wrap {
  position: relative;
  border-radius: var(--amb-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(196,18,48,.25);
}
.amb-cat-hero-photo {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

/* 赤ブランドカラーのグラデーションオーバーレイ */
.amb-cat-hero-photo-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg,
      rgba(196,18,48,.2) 0%,
      rgba(0,0,0,.05) 50%,
      transparent 100%),
    linear-gradient(0deg,
      rgba(0,0,0,.4) 0%,
      transparent 40%);
}

/* 右下バッジ */
.amb-cat-hero-photo-badge {
  position: absolute;
  bottom: 18px; right: 18px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(196,18,48,.4);
  border-radius: var(--amb-radius-sm);
  padding: 8px 14px;
  color: white; font-size: 0.75rem; font-weight: 700;
}
.amb-cat-hero-photo-badge i {
  color: var(--amb-brand-primary);
  font-size: 0.75rem;
}

/* ===== メインコンテンツ ===== */
.amb-cat-main { background: var(--amb-bg-secondary); }

.amb-cat-section { padding: 72px 0; background: var(--amb-bg-secondary); }
.amb-cat-section-alt { background: var(--amb-bg-primary); }

.amb-cat-section-header {
  display: flex; align-items: flex-start; gap: 20px; margin-bottom: 40px;
}
.amb-cat-section-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--amb-brand-primary); border-radius: var(--amb-radius-md);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.125rem; margin-top: 3px;
}
.amb-cat-section-title {
  font-family: var(--amb-font-display); font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 800; color: var(--amb-text-primary); margin: 0 0 8px; line-height: 1.2;
}
.amb-cat-section-subtitle {
  font-size: 0.9375rem; color: var(--amb-text-secondary); line-height: 1.7; margin: 0;
}

/* ===== 製品グリッド ===== */
.amb-prod-grid { display: grid; gap: 24px; }
.amb-prod-grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.amb-prod-grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.amb-prod-grid-single { grid-template-columns: 1fr; max-width: 560px; }

@media (min-width: 1024px) {
  .amb-prod-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .amb-prod-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ===== 製品カード ===== */
.amb-prod-card {
  display: flex; flex-direction: column;
  background: var(--amb-bg-card); border-radius: var(--amb-radius-lg);
  border: 1px solid var(--amb-border-light); overflow: hidden;
  box-shadow: var(--amb-shadow-md);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  text-decoration: none; color: inherit;
}
.amb-prod-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--amb-shadow-xl);
  border-color: var(--amb-brand-primary);
}

/* カード画像エリア */
.amb-prod-card-img-wrap {
  position: relative;
  background: linear-gradient(160deg, #0a0205 0%, #1a0508 50%, #100308 100%);
  height: 180px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 20px;
}
.amb-prod-card-ios {
  background: linear-gradient(135deg, #1a1a2e 0%, #0a0a1a 100%);
}
.amb-prod-card-img-wrap img {
  max-height: 140px; max-width: 90%; object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.5));
  transition: transform .4s ease;
}
.amb-prod-card:hover .amb-prod-card-img-wrap img { transform: scale(1.06); }

.amb-prod-card-img-fallback {
  display: none; /* JS/onerror で表示 */
  align-items: center; justify-content: center;
  width: 100%; height: 100%;
  color: rgba(255,255,255,.3); font-size: 2.5rem;
}

/* バッジ類 */
.amb-prod-card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--amb-brand-primary); color: white;
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  padding: 3px 10px; border-radius: var(--amb-radius-sm);
}
.amb-prod-card-badge-size {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
  color: white; font-size: 0.875rem; font-weight: 800;
  padding: 4px 10px; border-radius: var(--amb-radius-sm);
  border: 1px solid rgba(255,255,255,.15);
}
.amb-prod-card-badge-free {
  position: absolute; top: 12px; right: 12px;
  background: var(--amb-brand-primary); color: white;
  font-size: 0.75rem; font-weight: 700;
  padding: 4px 10px; border-radius: var(--amb-radius-sm);
}

/* カード本文 */
.amb-prod-card-body {
  padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; gap: 8px;
}
.amb-prod-card-name {
  font-family: var(--amb-font-display); font-size: 1.25rem;
  font-weight: 800; color: var(--amb-text-primary); line-height: 1.1;
}
.amb-prod-card-sub {
  font-size: 0.8125rem; color: var(--amb-text-secondary); font-weight: 500;
}
.amb-prod-card-tags {
  display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0;
}
.amb-prod-tag {
  font-size: 0.6875rem; font-weight: 600;
  background: rgba(196,18,48,.08); color: var(--amb-brand-primary);
  border: 1px solid rgba(196,18,48,.18); border-radius: var(--amb-radius-sm);
  padding: 2px 8px;
}
.amb-prod-card-desc {
  font-size: 0.875rem; color: var(--amb-text-secondary); line-height: 1.6;
  flex: 1; margin: 0;
}
.amb-prod-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--amb-brand-primary); font-weight: 600; font-size: 0.875rem;
  margin-top: 8px; transition: gap .2s ease;
}
.amb-prod-card:hover .amb-prod-card-link { gap: 10px; }

/* wide カード（AMIO） */
.amb-prod-card-wide { flex-direction: row; }
.amb-prod-card-wide .amb-prod-card-img-wrap {
  width: 240px; flex-shrink: 0; height: auto; min-height: 160px;
}
@media (max-width: 640px) {
  .amb-prod-card-wide { flex-direction: column; }
  .amb-prod-card-wide .amb-prod-card-img-wrap { width: 100%; height: 180px; }
}

/* ===== ソフトウェアバナー ===== */
.amb-software-banner {
  background: linear-gradient(135deg, #0a0205 0%, #1a0508 50%, #0f0205 100%);
  border-top: 1px solid rgba(196,18,48,.2);
  border-bottom: 1px solid rgba(196,18,48,.2);
  padding: 40px 0;
}
.amb-software-banner-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.amb-software-banner-icon {
  width: 56px; height: 56px; flex-shrink: 0;
  background: rgba(196,18,48,.2); border: 1px solid rgba(196,18,48,.35);
  border-radius: var(--amb-radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--amb-brand-primary); font-size: 1.375rem;
}
.amb-software-banner-text { flex: 1; min-width: 240px; }
.amb-software-banner-title {
  font-family: var(--amb-font-display); font-size: 1.0625rem;
  font-weight: 700; color: white; margin-bottom: 6px;
}
.amb-software-banner-desc {
  font-size: 0.875rem; color: rgba(255,255,255,.65); line-height: 1.6;
}
.amb-software-banner-btn {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  background: var(--amb-brand-primary); color: white;
  padding: 12px 24px; border-radius: var(--amb-radius-full);
  font-weight: 700; font-size: 0.875rem; text-decoration: none;
  transition: all .3s ease; box-shadow: 0 4px 16px rgba(196,18,48,.35);
}
.amb-software-banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196,18,48,.5);
}

@media (max-width: 768px) {
  .amb-cat-hero-stats { display: flex; }
  .amb-cat-hero-stat { padding: 12px 18px; }
  .amb-cat-section-header { flex-direction: column; gap: 12px; }
  .amb-prod-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .amb-software-banner-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .amb-prod-grid-4 { grid-template-columns: 1fr; }
  .amb-cat-hero-stats { flex-direction: column; border-radius: var(--amb-radius-md); }
  .amb-cat-hero-stat-divider { width: 80%; height: 1px; margin: 0 auto; }
}
