/* ===== Showcase List Page - Hybrid Design ===== */

/* ===== Variables ===== */
:root {
  --showcase-dark: #0a0a0a;
  --showcase-dark-secondary: #141414;
  --showcase-text: #ffffff;
  --showcase-text-muted: #888888;
  --showcase-accent: #3b82f6;
}

/* ===== Box Sizing Reset ===== */
.showcase-page *,
.showcase-page *::before,
.showcase-page *::after {
  box-sizing: border-box;
}

/* ===== Page Container ===== */
.showcase-page {
  min-height: 100vh;
  background: var(--md-sys-color-surface);
  overflow-x: hidden;
}

/* ===== Hero Slider Section ===== */
.showcase-hero-slider {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  background: var(--showcase-dark);
}

.showcase-slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Individual Slide */
.showcase-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  display: flex;
  align-items: center;
}

.showcase-slide.active {
  opacity: 1;
  visibility: visible;
}

/* Slide Background */
.showcase-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.showcase-slide-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(10, 10, 10, 0.7) 50%,
    rgba(10, 10, 10, 0.3) 100%
  );
  z-index: 1;
}

.showcase-slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.showcase-slide.active .showcase-slide-bg img {
  transform: scale(1);
}

/* Slide Content */
.showcase-slide-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 0 clamp(24px, 5vw, 80px);
  padding-top: 120px;
}

.showcase-slide-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--showcase-accent);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.showcase-slide.active .showcase-slide-label {
  opacity: 1;
  transform: translateY(0);
}

.showcase-slide-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--showcase-text);
  line-height: 1.1;
  margin: 0 0 8px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.showcase-slide.active .showcase-slide-title {
  opacity: 1;
  transform: translateY(0);
}

.showcase-slide-subtitle {
  font-size: 1rem;
  color: var(--showcase-text-muted);
  margin: 0 0 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.showcase-slide.active .showcase-slide-subtitle {
  opacity: 1;
  transform: translateY(0);
}

.showcase-slide-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin: 0 0 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}

.showcase-slide.active .showcase-slide-description {
  opacity: 1;
  transform: translateY(0);
}

.showcase-slide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.6s, transform 0.6s ease 0.6s;
}

.showcase-slide.active .showcase-slide-tags {
  opacity: 1;
  transform: translateY(0);
}

.showcase-slide-tag {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.showcase-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--showcase-text);
  color: var(--showcase-dark);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.7s, transform 0.6s ease 0.7s, background 0.3s ease, box-shadow 0.3s ease;
}

.showcase-slide.active .showcase-slide-cta {
  opacity: 1;
  transform: translateY(0);
}

.showcase-slide-cta:hover {
  background: var(--showcase-accent);
  color: var(--showcase-text);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.showcase-slide-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.showcase-slide-cta:hover svg {
  transform: translateX(4px);
}

/* Slider Navigation */
.showcase-slider-nav {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 10;
}

.showcase-slider-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.showcase-slider-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.showcase-slider-btn svg {
  width: 20px;
  height: 20px;
  color: var(--showcase-text);
}

.showcase-slider-dots {
  display: flex;
  gap: 12px;
}

.showcase-slider-dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.showcase-slider-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.showcase-slider-dot.active {
  background: var(--showcase-text);
  transform: scale(1.2);
}

/* Scroll Indicator */
.showcase-scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: clamp(24px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.showcase-scroll-indicator span {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  writing-mode: vertical-rl;
}

.showcase-scroll-line {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.showcase-scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: rgba(255, 255, 255, 0.8);
  animation: scrollIndicator 2s ease-in-out infinite;
}

@keyframes scrollIndicator {
  0% { transform: translateY(-20px); }
  100% { transform: translateY(70px); }
}

/* ===== Quick Access Grid ===== */
.showcase-grid-section {
  padding: clamp(60px, 10vw, 100px) clamp(24px, 5vw, 80px);
  max-width: 1400px;
  margin: 0 auto;
}

.showcase-grid-header {
  text-align: center;
  margin-bottom: 48px;
}

.showcase-grid-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  margin: 0 0 8px;
}

.showcase-grid-header p {
  font-size: 1rem;
  color: var(--md-sys-color-on-surface-variant);
}

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

/* Quick Card */
.showcase-quick-card {
  display: block;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  background: var(--md-sys-color-surface-container);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-quick-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .showcase-quick-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.showcase-quick-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--showcase-dark);
}

.showcase-quick-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}

.showcase-quick-card:hover .showcase-quick-image img {
  transform: scale(1.08);
}

.showcase-quick-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.showcase-quick-card:hover .showcase-quick-overlay {
  opacity: 1;
}

.showcase-quick-overlay span {
  padding: 10px 24px;
  background: var(--showcase-text);
  color: var(--showcase-dark);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 100px;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.showcase-quick-card:hover .showcase-quick-overlay span {
  transform: translateY(0);
}

.showcase-quick-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  color: #444;
}

.showcase-quick-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.showcase-quick-info h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  margin: 0 0 4px;
}

.showcase-quick-subtitle {
  font-size: 0.875rem;
  color: var(--md-sys-color-on-surface-variant);
  margin: 0 0 12px;
}

/* ===== Card Detail Info ===== */

/* Color Palette */
.showcase-color-palette {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.showcase-color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--md-sys-color-outline-variant);
  transition: transform 0.2s ease;
}

.showcase-color-swatch:hover {
  transform: scale(1.2);
}

/* Concept */
.showcase-concept {
  font-size: 0.8125rem;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.5;
  margin: 0 0 12px;
}

/* Industries */
.showcase-industries {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.showcase-industry-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  font-size: 0.6875rem;
  font-weight: 500;
  border-radius: 100px;
}

/* Features */
.showcase-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.showcase-feature-badge {
  display: inline-block;
  padding: 3px 8px;
  background: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.625rem;
  font-weight: 500;
  border-radius: 4px;
}

/* ===== CTA Section ===== */
.showcase-cta {
  text-align: center;
  padding: 80px 24px;
  background: var(--md-sys-color-surface-container-lowest);
  position: relative;
  overflow: hidden;
}

.showcase-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(var(--md-sys-color-primary-rgb, 0, 102, 204), 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(var(--md-sys-color-tertiary-rgb, 128, 0, 128), 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.showcase-cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.showcase-cta h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 16px;
}

.showcase-cta p {
  font-size: 1.0625rem;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 32px;
  line-height: 1.7;
}

.showcase-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  border-radius: 100px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(var(--md-sys-color-primary-rgb, 0, 102, 204), 0.3);
}

.showcase-cta-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--md-sys-color-primary-rgb, 0, 102, 204), 0.4);
}

.showcase-cta-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.showcase-cta-link:hover svg {
  transform: translateX(4px);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .showcase-quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* ===== Mobile Hero - Completely Redesigned ===== */
  .showcase-hero-slider {
    height: 100svh;
    min-height: 600px;
    max-height: none;
  }

  .showcase-slide {
    padding-bottom: 100px;
    align-items: flex-end;
  }

  /* 背景画像を上部に見せる - Split Design */
  .showcase-slide-bg img {
    object-position: top center;
  }

  .showcase-slide-bg::after {
    background: linear-gradient(
      to bottom,
      rgba(10, 10, 10, 0) 0%,
      rgba(10, 10, 10, 0.3) 25%,
      rgba(10, 10, 10, 0.85) 50%,
      rgba(10, 10, 10, 0.98) 100%
    );
  }

  .showcase-slide-content {
    padding: 0 20px 0;
    padding-top: 0;
    max-width: 100%;
    text-align: center;
  }

  .showcase-slide-label {
    font-size: 0.625rem;
    letter-spacing: 0.25em;
    margin-bottom: 12px;
  }

  .showcase-slide-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    margin-bottom: 8px;
    line-height: 1.2;
  }

  .showcase-slide-subtitle {
    font-size: 0.875rem;
    margin-bottom: 12px;
  }

  .showcase-slide-description {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .showcase-slide-tags {
    justify-content: center;
    gap: 6px;
    margin-bottom: 24px;
  }

  .showcase-slide-tag {
    padding: 5px 12px;
    font-size: 0.6875rem;
  }

  .showcase-slide-cta {
    padding: 14px 28px;
    font-size: 0.875rem;
    width: auto;
    display: inline-flex;
  }

  /* ===== Mobile Navigation - Touch Optimized ===== */
  .showcase-slider-nav {
    bottom: 24px;
    gap: 16px;
  }

  .showcase-slider-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .showcase-slider-btn svg {
    width: 18px;
    height: 18px;
  }

  .showcase-slider-dots {
    gap: 10px;
  }

  .showcase-slider-dot {
    width: 8px;
    height: 8px;
  }

  .showcase-slider-dot.active {
    width: 24px;
    border-radius: 4px;
    transform: none;
  }

  .showcase-scroll-indicator {
    display: none;
  }

  /* ===== Mobile Swipe Hint ===== */
  .showcase-hero-slider::after {
    content: '';
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    animation: swipeHint 2s ease-in-out infinite;
  }

  @keyframes swipeHint {
    0%, 100% { opacity: 0.3; transform: translateX(-50%); }
    50% { opacity: 0.6; transform: translateX(-50%) scaleX(1.2); }
  }

  /* ===== Mobile Grid Section ===== */
  .showcase-grid-section {
    padding: 48px 16px;
  }

  .showcase-grid-header {
    margin-bottom: 32px;
  }

  .showcase-grid-header h2 {
    font-size: 1.5rem;
  }

  .showcase-grid-header p {
    font-size: 0.875rem;
  }

  /* Horizontal Scroll Cards */
  .showcase-quick-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 16px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .showcase-quick-grid::-webkit-scrollbar {
    display: none;
  }

  .showcase-quick-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
  }

  .showcase-quick-image {
    aspect-ratio: 4 / 3;
  }

  .showcase-quick-image img {
    object-position: center;
  }

  .showcase-quick-info {
    padding: 16px;
  }

  .showcase-quick-info h3 {
    font-size: 1rem;
  }

  .showcase-quick-subtitle {
    font-size: 0.8125rem;
    margin-bottom: 10px;
  }

  .showcase-color-palette {
    margin-bottom: 10px;
  }

  .showcase-color-swatch {
    width: 18px;
    height: 18px;
  }

  .showcase-concept {
    font-size: 0.75rem;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .showcase-industry-tag {
    font-size: 0.625rem;
    padding: 3px 8px;
  }

  .showcase-feature-badge {
    font-size: 0.5625rem;
    padding: 2px 6px;
  }

  /* ===== Mobile CTA ===== */
  .showcase-cta {
    padding: 48px 20px;
  }

  .showcase-cta h3 {
    font-size: 1.25rem;
  }

  .showcase-cta p {
    font-size: 0.9375rem;
    margin-bottom: 24px;
  }

  .showcase-cta-link {
    padding: 14px 32px;
    font-size: 0.9375rem;
  }
}

/* ===== Small Mobile (iPhone SE etc) ===== */
@media (max-width: 380px) {
  .showcase-slide-title {
    font-size: 1.5rem;
  }

  .showcase-slide-description {
    font-size: 0.8125rem;
  }

  .showcase-quick-card {
    flex: 0 0 260px;
  }

  .showcase-slider-btn {
    width: 40px;
    height: 40px;
  }
}
