/* ============================================
   ContentsX HP — White-Base Design
   Apple / CyberAgent 風の白基調デザイン
   テーマ切替はアクセントカラーのみ変更
   ============================================ */

/* ---------- Theme: Content X Orange (Default) ---------- */
[data-theme="cx-orange"] {
  --accent: #E8640A;
  --accent-light: rgba(232, 100, 10, 0.06);
  --accent-rgb: 232, 100, 10;
}

/* ---------- Theme: CyberAgent Green ---------- */
[data-theme="cyber-green"] {
  --accent: #6fc31c;
  --accent-light: rgba(111, 195, 28, 0.06);
  --accent-rgb: 111, 195, 28;
}

/* ---------- Theme: Apple Blue ---------- */
[data-theme="apple-blue"] {
  --accent: #0071e3;
  --accent-light: rgba(0, 113, 227, 0.06);
  --accent-rgb: 0, 113, 227;
}

/* ---------- Theme: Deep Navy ---------- */
[data-theme="deep-navy"] {
  --accent: #1E3A5F;
  --accent-light: rgba(30, 58, 95, 0.06);
  --accent-rgb: 30, 58, 95;
}

/* ---------- Theme: Violet ---------- */
[data-theme="violet"] {
  --accent: #7C3AED;
  --accent-light: rgba(124, 58, 237, 0.06);
  --accent-rgb: 124, 58, 237;
}

/* ---------- Theme: Crimson ---------- */
[data-theme="crimson"] {
  --accent: #DC2626;
  --accent-light: rgba(220, 38, 38, 0.06);
  --accent-rgb: 220, 38, 38;
}

/* ---------- Theme: Teal ---------- */
[data-theme="teal"] {
  --accent: #0D9488;
  --accent-light: rgba(13, 148, 136, 0.06);
  --accent-rgb: 13, 148, 136;
}

/* ---------- Theme: Slate ---------- */
[data-theme="slate"] {
  --accent: #475569;
  --accent-light: rgba(71, 85, 105, 0.06);
  --accent-rgb: 71, 85, 105;
}

/* ---------- Theme: Royal Blue (青) ---------- */
[data-theme="royal-blue"] {
  --accent: #2563EB;
  --accent-light: rgba(37, 99, 235, 0.06);
  --accent-rgb: 37, 99, 235;
}

/* ---------- Theme: Sky Blue (水色) ---------- */
[data-theme="sky-blue"] {
  --accent: #0EA5E9;
  --accent-light: rgba(14, 165, 233, 0.06);
  --accent-rgb: 14, 165, 233;
}

/* ---------- Theme: Indigo (藍) ---------- */
[data-theme="indigo"] {
  --accent: #4F46E5;
  --accent-light: rgba(79, 70, 229, 0.06);
  --accent-rgb: 79, 70, 229;
}

/* ---------- Theme: Emerald (エメラルド) ---------- */
[data-theme="emerald"] {
  --accent: #059669;
  --accent-light: rgba(5, 150, 105, 0.06);
  --accent-rgb: 5, 150, 105;
}

/* ---------- Theme: Lime Green (ライム) ---------- */
[data-theme="lime-green"] {
  --accent: #65A30D;
  --accent-light: rgba(101, 163, 13, 0.06);
  --accent-rgb: 101, 163, 13;
}

/* ---------- Theme: Forest (フォレスト) ---------- */
[data-theme="forest"] {
  --accent: #15803D;
  --accent-light: rgba(21, 128, 61, 0.06);
  --accent-rgb: 21, 128, 61;
}

/* ---------- Theme: Purple (パープル) ---------- */
[data-theme="purple"] {
  --accent: #9333EA;
  --accent-light: rgba(147, 51, 234, 0.06);
  --accent-rgb: 147, 51, 234;
}

/* ---------- Theme: Fuchsia (フューシャ) ---------- */
[data-theme="fuchsia"] {
  --accent: #C026D3;
  --accent-light: rgba(192, 38, 211, 0.06);
  --accent-rgb: 192, 38, 211;
}

/* ---------- Theme: Plum (プラム) ---------- */
[data-theme="plum"] {
  --accent: #6D28D9;
  --accent-light: rgba(109, 40, 217, 0.06);
  --accent-rgb: 109, 40, 217;
}

/* ---------- Shared Base Variables ---------- */
body {
  --bg-white: #ffffff;
  --bg-light: #f5f5f7;
  --text-primary: #1d1d1f;
  --text-secondary: #424245;
  --text-muted: #86868b;
  --border: #e5e5e7;
  --card-bg: #ffffff;
  --card-shadow-hover: 0 8px 30px rgba(0,0,0,0.08);
}
/* ============================================
   Base Reset & Typography
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  color: var(--text-secondary);
  background: var(--bg-white);
  line-height: 1.8;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease, opacity 0.3s ease; }
/* ============================================
   Theme Switcher
   ============================================ */
.theme-switcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.theme-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.theme-toggle:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  border-color: var(--accent);
}
.theme-toggle-icon { font-size: 22px; }

.theme-panel {
  position: absolute;
  bottom: 64px;
  right: 0;
  background: var(--bg-white);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  border: 1px solid var(--border);
  min-width: 200px;
  max-height: 70vh;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
.theme-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }

.theme-panel-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  padding: 0 8px;
}

.theme-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
}
.theme-btn:hover { background: var(--bg-light); }
.theme-btn.active { border-color: var(--accent); background: var(--accent-light); }

.theme-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
/* ============================================
   Header — Apple風の白ヘッダー
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.header-inner {
  max-width: 100%;
  margin: 0;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; }
.logo-img { height: 64px; width: auto; object-fit: contain; }

.nav { display: flex; align-items: center; gap: 24px; margin-left: 32px; margin-right: auto; }
.nav-link {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  position: relative;
  letter-spacing: 0.02em;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--text-primary); }

.nav-cta {
  background: transparent;
  color: var(--text-primary) !important;
  padding: 7px 20px;
  border-radius: 20px;
  font-weight: 600;
  border: 1.5px solid var(--text-primary);
  font-size: 13px;
}
/* ---- ドロップダウンナビ ---- */
.nav-dropdown {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: -12px;
}
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}
.nav-dropdown-arrow {
  font-size: 10px;
  opacity: 0.5;
  transition: transform 0.25s ease;
}
.nav-dropdown:hover .nav-dropdown-arrow {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 140px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}
.nav-dropdown:hover .nav-dropdown-menu {
  max-height: 400px;
  opacity: 1;
  pointer-events: auto;
  padding: 8px 0;
}
.nav-dropdown-item {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-item:hover {
  background: var(--accent-light);
  color: var(--accent);
}

/* ---- セクションサイドナビ（ZOON風・右端固定） ---- */
.section-dots {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.section-dots.visible {
  opacity: 1;
  pointer-events: auto;
}

/* 上下矢印 */
.section-nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 22px;
  transition: color 0.2s ease;
  text-decoration: none;
  flex-shrink: 0;
}
.section-nav-arrow:hover {
  color: var(--accent);
}

/* アクティブセクション名（大きな縦書き） */
.section-active-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  opacity: 0.12;
  margin: 12px 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ドット列 */
.section-dots-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}
.section-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.13);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}
.section-dot.active {
  background: var(--accent);
  transform: scale(1.5);
}
.section-dot:hover {
  background: var(--accent);
  transform: scale(1.3);
}
.section-dot-label {
  display: none;
}

@media (max-width: 768px) {
  .section-dots { display: none; }
}

.nav-cta::after { display: none; }
.nav-cta:hover {
  background: var(--accent);
  color: #fff !important;
  border-color: var(--accent);
}

/* ヘッダー右側：言語切替 + ハンバーガー */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* ヘッダー内 JP / EN 切替ボタン */
.header-lang-switch {
  display: flex;
}
.header-lang-btn {
  width: 64px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1.5px solid var(--accent);
  transition: background 0.25s ease, color 0.25s ease;
  background: transparent;
  color: var(--accent);
}
.header-lang-btn:first-child {
  border-right: 0.75px solid var(--accent);
}
.header-lang-btn:last-child {
  border-left: 0.75px solid var(--accent);
}
.header-lang-btn.active {
  background: var(--accent);
  color: #ffffff;
}
.header-lang-btn:not(.active):hover {
  background: var(--accent-light);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  position: relative;
  z-index: 101;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
/* ============================================
   Hero — hero-new.css に移行済み（競合防止のためコメントアウト）
   ============================================ */
/* .hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-white);
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
} */

/* Hero background crossfade images + Ken Burns animation */
.hero-bg-image {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg-image--base {
  background-image: url('material/images/backgrounds/cx2_bg_hero.webp');
  z-index: 0;
  animation: kenBurns1 25s ease-in-out infinite alternate;
}
.hero-bg-image--reveal {
  background-image: url('material/images/hero/cx2_hero_bw_03.webp');
  z-index: 1;
  opacity: 0;
  transition: opacity 2.5s ease;
  animation: kenBurns2 30s ease-in-out infinite alternate;
}
.hero-bg-image--reveal.active {
  opacity: 1;
}

/* Ken Burns keyframes — ゆっくりズーム＆パン */
@keyframes kenBurns1 {
  0%   { transform: scale(1)    translate(0, 0); }
  100% { transform: scale(1.08) translate(-2%, -1%); }
}
@keyframes kenBurns2 {
  0%   { transform: scale(1.05) translate(1%, 0); }
  100% { transform: scale(1)    translate(-1%, 1%); }
}

/* アニメーション無効化（ユーザー設定尊重） */
@media (prefers-reduced-motion: reduce) {
  .hero-bg-image--base,
  .hero-bg-image--reveal {
    animation: none;
  }
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: none;
  opacity: 0;
}

.hero-content {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.hero-sub {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 900;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero-title-accent { color: var(--accent); }

.hero-desc {
  font-size: 15px;
  line-height: 2;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-actions { display: flex; gap: 12px; margin-bottom: 64px; flex-wrap: wrap; }

/* ===== Buttons — Apple / CA風 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  font-family: inherit;
}
.btn-primary {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.btn-outline {
  border-color: var(--border);
  color: var(--text-primary);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* Hero内ボタン専用 — 暗い背景に合わせる */
.hero .btn-primary {
  background: #ffffff;
  color: var(--text-primary);
  border-color: #ffffff;
}
.hero .btn-primary:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.hero .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: #ffffff;
  background: rgba(255,255,255,0.08);
}
.hero .btn-outline:hover {
  border-color: var(--accent);
  color: #ffffff;
  background: var(--accent);
}
.btn-lg { padding: 14px 36px; font-size: 15px; }

/* ============================================
   Sections Common
   ============================================ */
section { padding: 100px 0; }

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.text-center { text-align: center; }
/* ============================================
   News
   ============================================ */
.news-section {
  background: var(--bg-white);
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
}
.news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.news-heading {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}
.news-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.3s;
}
.news-more:hover {
  opacity: 0.7;
}
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.news-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.news-item:last-child {
  border-bottom: none;
}
.news-date {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  min-width: 90px;
}
.news-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-light);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 3px;
  white-space: nowrap;
}
.news-link {
  font-size: 15px;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s;
}
.news-link:hover {
  color: var(--accent);
}
@media (max-width: 480px) {
  .news-item {
    flex-wrap: wrap;
    gap: 8px;
  }
  .news-date {
    min-width: auto;
  }
  .news-link {
    width: 100%;
    font-size: 14px;
  }
}

/* ============================================
   Portfolio
   ============================================ */
.portfolio { background: var(--bg-white); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-light);
  border: 1px solid var(--border);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.portfolio-item:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

/* Hero card with background image */
.portfolio-item--hero {
  background: none;
  border: none;
}
.portfolio-item-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 70% center;
  transition: transform 0.6s ease;
}
.portfolio-item--hero:hover .portfolio-item-bg {
  transform: scale(1.05);
}
.portfolio-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0.15) 100%);
}

.portfolio-item-content {
  position: relative;
  z-index: 1;
  padding: 16px;
  padding-left: 14px;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portfolio-logo {
  height: 44px;
  max-height: 44px;
  width: auto;
  object-fit: contain;
  object-position: left top;
  margin-bottom: auto;
  display: block;
}
.portfolio-logo--large {
  height: 72px;
  max-height: 72px;
}

.portfolio-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  transition: background 0.3s ease, color 0.3s ease;
}
.portfolio-item--hero .portfolio-tag {
  background: rgba(0,0,0,0.08);
  color: var(--text-primary);
}
.portfolio-item:not(.portfolio-item--hero) .portfolio-tag {
  background: var(--accent-light, rgba(0,0,0,0.05));
  color: var(--accent);
}
.portfolio-item:hover .portfolio-tag {
  background: var(--accent);
  color: #ffffff;
}

.portfolio-desc {
  font-size: 13px;
  line-height: 1.7;
}
.portfolio-item--hero .portfolio-desc {
  color: var(--text-secondary);
}
.portfolio-item:not(.portfolio-item--hero) .portfolio-desc {
  color: var(--text-muted);
}
/* ============================================
   New Works (新作情報)
   ============================================ */
.new-works {
  background: var(--bg-light);
  padding: 64px 0 72px;
}
.new-works-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.new-works-heading {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: var(--text-primary);
}
.new-works-nav {
  display: flex;
  gap: 8px;
}
.new-works-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, color 0.3s;
}
.new-works-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.new-works-track-wrapper {
  overflow: hidden;
  container-type: inline-size;
}
.new-works-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease;
  cursor: grab;
}
.new-works-track:active {
  cursor: grabbing;
}
.new-works-more {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
.new-works-more-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  padding: 8px 20px;
  transition: background 0.3s ease, color 0.3s ease;
}
.new-works-more-link:hover {
  background: var(--accent);
  color: #fff;
}
.new-works-card {
  flex: 0 0 calc((100cqi - 24px * 4) / 5);
  cursor: pointer;
  transition: transform 0.3s;
}
.new-works-card:hover {
  transform: translateY(-4px);
}
.new-works-card-cover {
  width: 100%;
  aspect-ratio: 5 / 8;
  height: auto;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  background: #f0f0f0;
}
.new-works-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.new-works-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 10px;
  line-height: 1.4;
  text-align: center;
}

/* --- Manga Viewer Modal --- */
.manga-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
}
.manga-viewer-overlay.active {
  display: flex;
}
.manga-viewer {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.manga-viewer-close {
  position: absolute;
  top: 16px;
  right: 24px;
  z-index: 10;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.manga-viewer-close:hover {
  opacity: 1;
}

/* フリップブックモード (PC) — 制作実績と同じUI */
.manga-viewer-flipbook-mode {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.manga-viewer-flipbook-mode.active {
  display: flex;
}
.mv-title {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding-top: 16px;
  letter-spacing: 0.04em;
}
.manga-viewer-flipbook-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  padding: 12px 20px 8px;
  gap: 20px;
}
.manga-viewer-flipbook-wrap .flipbook-wrap {
  position: relative;
}
/* 漫画の外側ガイド */
.mv-guide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.3s;
  white-space: nowrap;
  user-select: none;
  animation: mvGuideHint 2.5s ease forwards;
}
.mv-guide:hover {
  color: rgba(255,255,255,0.9);
}
.mv-guide svg {
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}
@keyframes mvGuideHint {
  0%   { color: rgba(255,255,255,0); }
  15%  { color: rgba(255,255,255,0.7); }
  70%  { color: rgba(255,255,255,0.7); }
  100% { color: rgba(255,255,255,0.35); }
}
.manga-viewer-flipbook-wrap .stf__parent {
  direction: rtl;
}
.manga-viewer-flipbook-wrap .stf__parent .stf__wrapper {
  direction: ltr;
}
.manga-viewer-flipbook-wrap .flipbook-page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.mv-spine {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.15), rgba(0,0,0,0.05), rgba(0,0,0,0.15));
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.3s;
}
/* スライダー — 制作実績と同じデザイン */
.mv-slider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0 20px;
  width: min(500px, 80vw);
  margin: 0 auto;
}
.mv-slider-total,
.mv-slider-page {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}
.mv-slider-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}
.mv-slider-fill {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
  pointer-events: none;
}
.mv-slider-thumb {
  position: absolute;
  top: 50%;
  right: 0%;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  transform: translate(50%, -50%);
  cursor: grab;
  transition: right 0.3s ease;
  z-index: 2;
}

/* 縦スクロールモード (スマホ / 縦長ページ) */
.manga-viewer-scroll-mode {
  display: none;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 56px 0 20px;
}
.manga-viewer-scroll-mode.active {
  display: block;
}
.manga-viewer-scroll-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 8px;
}
.manga-viewer-scroll-inner img {
  width: 100%;
  display: block;
}

@media (max-width: 768px) {
  .new-works-card {
    flex: 0 0 160px;
  }
  .new-works-card-cover {
    width: 100%;
    aspect-ratio: 200 / 283;
  }
  .manga-viewer-scroll-inner {
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .new-works-card {
    flex: 0 0 140px;
  }
  .new-works-card-cover {
    width: 100%;
    aspect-ratio: 200 / 283;
  }
}

/* ============================================
   Strength
   ============================================ */
.strength { background: var(--bg-white); }

.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.strength-card {
  background: var(--bg-white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  text-align: center;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.strength-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.strength-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-light);
}
.strength-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}
.strength-card:hover .strength-card-img img {
  transform: scale(1.05);
}
.strength-card-content {
  padding: 28px 24px 32px;
}
.strength-card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.strength-card-number {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.strength-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.5;
}
.strength-card h3 .accent {
  color: var(--accent);
}
.strength-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .strength-grid {
    grid-template-columns: 1fr;
  }
  .strength-card-number {
    font-size: 40px;
  }
}

/* Flow */
.flow {
  background: var(--bg-light);
  border-radius: 20px;
  padding: 60px 56px;
  text-align: center;
  border: 1px solid var(--border);
  margin-left: -90px;
  margin-right: -90px;
}
.flow-title {
  color: var(--text-primary);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  margin-bottom: 36px;
  letter-spacing: 0.02em;
}
/* フローレイアウト: 左ステップ + 右ギャラリー */
.flow-layout {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 24px;
}
.flow-steps-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.flow-step-num {
  width: 38px;
  height: 38px;
  background: var(--text-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  transition: background 0.3s ease;
}
.flow-step:hover .flow-step-num { background: var(--accent); }
.flow-step p {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  margin: 0;
}
.flow-arrow-v {
  color: var(--text-muted);
  font-size: 12px;
  opacity: 0.4;
  line-height: 1;
}
/* フロースペック */
.flow-specs {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.flow-spec {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.flow-spec-value {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-primary);
}
.flow-spec-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Flow Gallery — スクロールハイジャック横移動 */
.flow-gallery {
  overflow: hidden;
  border-radius: 16px;
  position: relative;
  flex: 1;
  min-width: 0;
  margin-left: 20px;
}
.flow-gallery::before,
.flow-gallery::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  z-index: 2;
  pointer-events: none;
}
.flow-gallery::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-light), transparent);
}
.flow-gallery::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-light), transparent);
}
.flow-gallery-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}
.flow-gallery-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.flow-gallery-item img {
  height: 500px;
  width: auto;
  border-radius: 2px;
  object-fit: cover;
  /* 額縁: 内マット + 金フレーム + 外縁 */
  padding: 12px;
  border: 3px solid #e8d5a3;
  background:
    linear-gradient(135deg, #d4af61, #f0dca0 15%, #c49a3c 30%, #f0dca0 50%, #c49a3c 70%, #f0dca0 85%, #d4af61);
  outline: 4px solid #8b6914;
  outline-offset: 0px;
  box-shadow:
    inset 0 0 8px rgba(0,0,0,0.4),
    inset 0 0 2px rgba(255,215,0,0.2),
    0 0 0 8px #3d2b0a,
    0 8px 30px rgba(0,0,0,0.35),
    0 2px 6px rgba(0,0,0,0.2);
}
.flow-gallery-label {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.3s ease;
}
/* ホバー連動: 画像ホバー → ラベル色変化 */
.flow-gallery-item:hover .flow-gallery-label {
  color: var(--accent);
}
/* ホバー連動: 上フローも下ギャラリーもハイライト（JSで .flow-hover クラス付与） */
.flow-step.flow-hover .flow-step-num {
  background: var(--accent);
}
.flow-gallery-item.flow-hover .flow-gallery-label {
  color: var(--accent);
}

@media (max-width: 768px) {
  .flow {
    margin-left: 0;
    margin-right: 0;
    padding: 40px 20px;
    border-radius: 12px;
  }
  .flow-title {
    font-size: 24px;
    margin-bottom: 24px;
  }
  .flow-layout {
    flex-direction: column;
  }
  .flow-steps-vertical {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 8px;
    justify-items: center;
    width: 100%;
  }
  .flow-step-num {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
  .flow-step p {
    font-size: 10px;
  }
  .flow-arrow-v {
    display: none;
  }
  .flow-gallery {
    margin-left: 0;
  }
  .flow-gallery-item img {
    height: 340px;
    padding: 8px;
    border-width: 2px;
    outline-width: 3px;
    box-shadow:
      inset 0 0 6px rgba(0,0,0,0.3),
      0 0 0 6px #3d2b0a,
      0 6px 20px rgba(0,0,0,0.3);
  }
  .flow-gallery-label {
    font-size: 0.85rem;
  }
  .flow-gallery-track {
    gap: 16px;
  }
  .flow-specs {
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .flow-spec-value {
    font-size: 18px;
  }
  .flow-spec-label {
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  .flow {
    padding: 28px 12px;
    border-radius: 8px;
  }
  .flow-title {
    font-size: 20px;
    margin-bottom: 20px;
  }
  .flow-steps-vertical {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 6px;
  }
  .flow-step-num {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .flow-step p {
    font-size: 9px;
  }
  .flow-gallery-item img {
    height: 300px;
    padding: 6px;
  }
  .flow-gallery-label {
    font-size: 0.75rem;
  }
  .flow-gallery-track {
    gap: 12px;
  }
  .flow-specs {
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
  }
  .flow-spec-value {
    font-size: 16px;
  }
}

/* ============================================
   Works / Showcase
   ============================================ */
.works {
  background: #FBBD7E;
  color: #fff;
}
.works .section-label { color: rgba(255,255,255,0.6); }
.works .section-title { color: #fff; }

/* Manga selector tabs */
.manga-selector {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.manga-sel-btn {
  padding: 10px 24px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 40px;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  font-family: inherit;
}
.manga-sel-btn:hover {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.manga-sel-btn.active {
  background: #fff;
  color: #333;
  border-color: #fff;
}

/* Brand bar: BizManga × Client */
.showcase-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  margin-bottom: 8px;
}
.showcase-brand-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.showcase-brand-x {
  font-size: 20px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
}
.showcase-brand-client {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

/* Showcase layout: left info + right manga */
.showcase {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 48px;
}

/* Left info */
.showcase-info {
  flex: 0 0 240px;
  max-width: 240px;
}
.showcase-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.showcase-title {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}
.showcase-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.showcase-tag {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
}
.showcase-desc {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
}
.showcase-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.showcase-pages {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Right manga viewer */
.showcase-viewer {
  flex: 1;
  min-width: 0;
}

/* === StPageFlip flipbook (RTL 漫画対応) === */
.flipbook-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
}

#flipbook {
  margin: 0 auto;
}

.stf__parent {
  margin: 0 auto;
}

/* 見開き中央の折り目の影 */
.flipbook-spine {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
  background:
    linear-gradient(to right,
      rgba(0,0,0,0.0) 0%,
      rgba(0,0,0,0.06) 15%,
      rgba(0,0,0,0.18) 38%,
      rgba(0,0,0,0.28) 48%,
      rgba(0,0,0,0.32) 50%,
      rgba(0,0,0,0.28) 52%,
      rgba(0,0,0,0.18) 62%,
      rgba(0,0,0,0.06) 85%,
      rgba(0,0,0,0.0) 100%
    );
}

.flipbook-page {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
}
.flipbook-page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* クリックゾーン ヒント */
.flipbook-zone {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 11;
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: pointer;
}
.flipbook-zone svg {
  color: #fff;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5));
}
.flipbook-zone--left {
  left: 0;
  justify-content: flex-start;
  padding-left: 10px;
  background: linear-gradient(to right, rgba(0,0,0,0.10) 0%, transparent 60%);
}
.flipbook-zone--right {
  right: 0;
  justify-content: flex-end;
  padding-right: 10px;
  background: linear-gradient(to left, rgba(0,0,0,0.10) 0%, transparent 60%);
}
.flipbook-wrap:hover .flipbook-zone {
  opacity: 1;
}
.flipbook-wrap.no-zones:hover .flipbook-zone {
  opacity: 0;
}

/* ピッコマ風スライダー */
.sc-slider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  user-select: none;
}
.sc-slider-page,
.sc-slider-total {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  min-width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.sc-slider-page {
  color: #fff;
}
.sc-slider-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  transition: height 0.15s ease;
}
.sc-slider-track:hover {
  height: 6px;
}
.sc-slider-fill {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
  pointer-events: none;
}
.sc-slider-thumb {
  position: absolute;
  top: 50%;
  right: 0%;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 50%;
  transform: translate(50%, -50%);
  cursor: grab;
  transition: right 0.3s ease, box-shadow 0.15s ease, transform 0.15s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  z-index: 2;
}
.sc-slider-thumb:hover,
.sc-slider.dragging .sc-slider-thumb {
  transform: translate(50%, -50%) scale(1.3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.sc-slider.dragging .sc-slider-thumb {
  cursor: grabbing;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.sc-slider.dragging .sc-slider-fill,
.sc-slider.dragging .sc-slider-thumb {
  transition: none;
}

/* Mobile: stacked layout */
@media (max-width: 768px) {
  .showcase {
    flex-direction: column;
    gap: 28px;
  }
  .showcase-info {
    flex: none;
    max-width: 100%;
    text-align: center;
  }
  .showcase-tags {
    justify-content: center;
  }
  .showcase-meta {
    justify-content: center;
  }
}
/* ============================================
   Company — STUDIO ZOON風ダークセクション
   ============================================ */
.company {
  background: var(--bg-white);
  color: var(--text-primary);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.company .container {
  position: relative;
  z-index: 1;
}

.company-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: flex-start;
}

/* 左側：ロゴ + 説明文 */
.company-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.company-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  object-position: left;
}

.company-description {
  font-size: 14px;
  line-height: 2;
  color: var(--text-muted);
  max-width: 420px;
}

/* 右側：会社情報テーブル */
.company-right {
  display: flex;
  flex-direction: column;
}

.company-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.company-info-row {
  display: flex;
  gap: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.company-info-row:first-child {
  padding-top: 0;
}

.company-info-row dt {
  flex: 0 0 120px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  padding-top: 2px;
}

.company-info-row dd {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.6;
}
.company-map {
  margin-top: 32px;
}
.company-map iframe {
  width: 100%;
  display: block;
}

/* ボタンエリア */
.company-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 64px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.company-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 32px;
  border-radius: 12px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
  letter-spacing: 0.04em;
}
.company-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* レスポンシブ */
@media (max-width: 768px) {
  .company-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .company-description {
    max-width: 100%;
  }
  .company-actions {
    max-width: 100%;
  }
}
/* ============================================
   CTA
   ============================================ */
.cta {
  background: var(--bg-light);
  text-align: center;
  padding: 100px 24px;
}
.cta-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.cta-desc { font-size: 16px; color: var(--text-muted); margin-bottom: 32px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-white);
  color: var(--text-muted);
  padding: 40px 0 20px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}
.footer-brand .logo-img { height: 32px; }
.footer-company { font-size: 13px; margin-top: 8px; color: var(--text-muted); }
.footer-address { font-size: 12px; color: var(--text-muted); }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { font-size: 13px; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
/* ============================================
   Animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; overflow-x: clip; }
  body { max-width: 100vw; }
  .nav { display: none; }
  .hamburger { display: flex; }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    padding: 20px;
    gap: 14px;
    border-bottom: 1px solid var(--border);
    z-index: 9999;
  }
  .nav.open .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    background: transparent;
    padding: 4px 0 0 16px;
  }
  .nav.open .nav-dropdown-arrow { display: none; }

  /* .hero { padding: 100px 24px 60px; } — hero-new.css に移行済み */

  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item { min-height: 220px; }
  /* strength-grid はflex columnなのでレスポンシブ対応不要 */
  .results-grid { grid-template-columns: repeat(2, 1fr); }

  .flow { padding: 28px 16px; margin-left: 0; margin-right: 0; border-radius: 12px; }
  .flow-steps { gap: 8px; }
  .flow-arrow { font-size: 16px; }

  .footer-inner { flex-direction: column; gap: 20px; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 14px; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 12px; height: 56px; }
  .logo-img { height: 48px; }
  .header-lang-btn { width: 44px; height: 32px; font-size: 11px; }

  .results-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 30px; }

  .section-active-label { display: none; }
  .section-dots { display: none; }

  .portfolio-item { min-height: 180px; }

  .flow { padding: 20px 12px; }
  .flow-steps { gap: 6px; }
  .flow-step { font-size: 11px; padding: 6px 4px; }

  .footer-inner { padding: 24px 16px; }
  .footer-links { gap: 10px; }
}


/* ============================================
   Partners (事業提携パートナー)
   ============================================ */
.partners {
  padding: 80px 0 0;
}
.partners-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 56px;
}

/* レイアウト: キャラ左 + カード右 */
.partners-layout {
  display: flex;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.partners-character {
  flex-shrink: 0;
  width: 500px;
  margin-right: -200px;
  z-index: 1;
}
.partners-character-inner {
  position: sticky;
  top: 90px;
}
.partners-character-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.partners-cards {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 500px; /* ビズちゃんstickyスクロール用の余白 */
}

/* パートナーカード */
.partner-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 28px;
  background: #fff;
  border-radius: 16px;
  padding: 30px 36px;
  border: 1px solid rgba(0,0,0,0.06);
  border-left: 6px solid transparent;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.partner-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

/* カラーボーダー */
.partner-card--orange { border-left-color: #FF6B35; }
.partner-card--cyan   { border-left-color: #00BCD4; }
.partner-card--purple { border-left-color: #7C4DFF; }

/* ロゴ + バッジ（縦並び） */
.partner-card-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.partner-logo {
  max-width: 200px;
  max-height: 56px;
  object-fit: contain;
  object-position: left center;
}
.partner-badge {
  display: inline-block;
  width: fit-content;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 5px;
  letter-spacing: 0.02em;
}
.partner-badge--green {
  color: #2E7D32;
  background: #E8F5E9;
}
.partner-badge--purple {
  color: #5E35B1;
  background: #EDE7F6;
}

/* 説明文 + Visit Site */
.partner-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.partner-desc {
  font-size: 13.5px;
  color: var(--text-secondary, #444);
  line-height: 1.8;
  margin: 0;
}
.partner-visit {
  display: inline-block;
  width: fit-content;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent, #FF6B35);
  text-decoration: none;
  padding: 6px 16px;
  border: 1.5px solid var(--accent, #FF6B35);
  border-radius: 8px;
  transition: background 0.3s ease, color 0.3s ease;
  align-self: flex-end;
}
.partner-visit:hover {
  background: var(--accent, #FF6B35);
  color: #fff;
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .partners-character {
    width: 160px;
  }
  .partner-card {
    grid-template-columns: 180px 1fr;
    gap: 20px;
    padding: 24px 24px;
  }
}
@media (max-width: 768px) {
  .partners-layout {
    flex-direction: column;
    align-items: center;
  }
  .partners-character {
    display: none;
  }
  .partners-cards {
    padding-bottom: 0;
  }
  .partners-recruit {
    margin-top: 40px;
  }
  .partner-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px;
  }
  .partner-card-logo {
    align-items: center;
  }
  .partner-desc {
    text-align: center;
    font-size: 13.5px;
  }
}

/* パートナー募集 — partnersセクション内・layout外（ビズちゃん範囲外） */
/* カード列と同じ左位置に揃える: キャラ260px - overlap30px + gap0 = 230px */
.partners-recruit {
  max-width: 1100px;
  margin: -460px auto 0; /* padding-bottom領域に重ねて引き上げ */
  padding: 40px 24px 80px 254px; /* 230px + 24px base padding */
  border-top: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  z-index: 2;
}
.partners-recruit-title {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 0;
}
.partners-recruit-lead {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 100%;
}

/* 提携パターン3種 — コンパクト横並び */
.partners-recruit-types {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.recruit-type {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(var(--accent-rgb), 0.06);
  border-radius: 40px;
}
.recruit-type-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}
.recruit-type-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.partners-recruit-btn {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 60px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  margin-top: 16px;
}
.partners-recruit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .partners-recruit {
    margin-top: 40px;
    padding: 32px 24px 60px;
    align-items: center;
    text-align: center;
  }
  .partners-recruit-lead {
    font-size: 13.5px;
  }
  .recruit-type {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 16px 0;
  }
  .recruit-type-desc {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .partners-title { font-size: 24px; margin-bottom: 32px; }
  .partners-character { width: 160px; }
  .partners-cards { padding-bottom: 0; gap: 16px; }
  .partner-card { padding: 20px 16px; }
  .partner-desc { font-size: 12.5px; }
  .partners-recruit {
    padding: 24px 16px 48px;
    margin-top: 32px;
  }
  .partners-recruit-title { font-size: 20px; }
  .partners-recruit-lead { font-size: 13px; }
  .partners-recruit-btn { padding: 14px 32px; font-size: 14px; }
  .recruit-type { padding: 12px 0; }
}
