/* トップページ固有スタイル */

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Video Background (placeholder for now) */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder: gradient now handled by .site-bg */
.hero-bg-placeholder {
  position: absolute;
  inset: 0;
}

@keyframes gradientFlow {
  0%, 100% {
    background-position: 0% 0%, 100% 100%, 50% 100%;
    opacity: 1;
  }
  25% {
    opacity: 0.8;
  }
  50% {
    background-position: 100% 100%, 0% 0%, 50% 0%;
    opacity: 1;
  }
  75% {
    opacity: 0.9;
  }
}

/* Dark overlay for text readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Main Typography - CCA Style */
.hero-title {
  display: flex;
  justify-content: center;
  gap: clamp(40px, 8vw, 120px);
  margin-bottom: 48px;
}

.hero-title-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title-big {
  font-family: var(--font-serif);
  font-size: clamp(80px, 18vw, 240px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--color-text);
}

.hero-title-small {
  font-family: var(--font-serif);
  font-size: clamp(14px, 2.5vw, 28px);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-top: -4px;
  transform: translateX(8px);
}

/* Subtitle */
.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(13px, 1.8vw, 16px);
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--color-text);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.scroll-indicator span {
  font-family: var(--font-serif);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 1;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.5;
    transform: scaleY(0.8);
  }
}

/* ========================================
   Works Section
   ======================================== */
.works {
  position: relative;
  z-index: 1;
  padding: var(--space-section) 0;
  background-color: var(--color-bg);
  overflow: hidden;
}

.works-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.works-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.works-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

/* ========================================
   28 Services Section
   ======================================== */
/* Spiral Container — full-width on desktop */
.spiral-container {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.spiral-svg {
  width: 100%;
  height: 100%;
}

/* Center text (kept for SVG fallback, hidden when HTML overlay active) */
.spiral-center { display: none; }

/* Spiral text */
.spiral-text {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.02em;
  fill: var(--color-text-sub);
  cursor: pointer;
  transition: fill 0.2s ease;
  stroke: transparent;
  stroke-width: 12px;
  paint-order: stroke fill;
  font-feature-settings: "lnum";
}

.spiral-text:hover {
  fill: var(--color-text);
}

.spiral-text-1 { font-size: 11px; }
.spiral-text-2 { font-size: 12px; }
.spiral-text-3 { font-size: 13px; }
.spiral-text-4 { font-size: 14px; }
.spiral-text-5 { font-size: 15px; }

/* ========================================
   Service Category Section
   ======================================== */
.service-category {
  position: relative;
  z-index: 1;
  padding: calc(var(--space-section) / 2) 0 var(--space-section);
  background: transparent;
}

.service-category-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--color-text-sub);
  margin-bottom: 48px;
}

/* Accordion */
.accordion {
  display: flex;
  flex-direction: column;
}

.accordion-item {
  border-top: 1px solid var(--color-border);
}

.accordion-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.accordion-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-text);
  flex: 1;
  transition: color 0.3s ease;
}

.accordion-header:hover .accordion-title {
  color: var(--color-text-sub);
}

.accordion-count {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--color-text-sub);
  min-width: 24px;
  text-align: right;
  font-feature-settings: "lnum";
}

.accordion-icon {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--color-text-sub);
  width: 24px;
  text-align: center;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  padding-bottom: 32px;
}

.accordion-desc {
  font-family: var(--font-sans-jp);
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-sub);
  margin-bottom: 24px;
}

.num {
  font-family: var(--font-serif);
  font-feature-settings: "lnum";
}

.accordion-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
}

.accordion-list li {
  font-family: var(--font-sans-jp);
  font-size: 14px;
  color: var(--color-text);
  padding-left: 20px;
  position: relative;
}

.accordion-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-text-sub);
}

@media (max-width: 600px) {
  .accordion-list {
    grid-template-columns: 1fr;
  }

  .accordion-title {
    font-size: 16px;
  }
}

/* ========================================
   Service Cards Section
   ======================================== */
.service-cards {
  position: relative;
  z-index: 1;
  padding: 0 0 var(--space-section);
  background: transparent;
}

.service-cards-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 横長ガラスカード（BCG参考：左写真・右テキスト） */
.service-glass-card {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px) brightness(1.05) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) brightness(1.05) saturate(1.2);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1),
              inset 0 -1px 1px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  overflow: hidden;
  min-height: 320px;
}

.service-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 30%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.4) 70%,
    transparent 100%
  );
  z-index: 1;
}

.service-glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.015) 35%,
    rgba(255, 255, 255, 0.04) 45%,
    rgba(255, 255, 255, 0.07) 50%,
    rgba(255, 255, 255, 0.04) 55%,
    rgba(255, 255, 255, 0.015) 65%,
    transparent 80%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 2.5s ease;
}

.service-glass-card:hover::after {
  left: 150%;
}

.service-card-photo {
  width: 320px;
  height: 320px;
  flex-shrink: 0;
  background: #111;
  overflow: hidden;
}

.service-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card-body {
  flex: 1;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.service-card-label {
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--color-text-sub);
  font-feature-settings: 'lnum';
}

.service-card-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-text);
  line-height: 1.1;
}

.service-card-desc {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-sub);
  flex: 1;
}

.service-card-arrow {
  position: absolute;
  bottom: 28px;
  right: 40px;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--color-text-sub);
  transition: transform 0.3s ease, color 0.3s ease;
}

.service-glass-card:hover .service-card-arrow {
  transform: translateX(6px);
  color: var(--color-text);
}

/* 写真右バリアント */
.service-glass-card--reverse {
  flex-direction: row-reverse;
}

/* テキスト中央バリアント */
.service-glass-card--centered .service-card-body {
  align-items: center;
  text-align: center;
  justify-content: center;
  padding: 56px 80px;
}

.service-glass-card--centered .service-card-arrow {
  position: static;
  margin-top: 8px;
}

/* レスポンシブ: カードが正方形を割ったら縦列・中央揃え */
@media (max-width: 768px) {
  .service-glass-card,
  .service-glass-card--reverse {
    flex-direction: column;
    min-height: auto;
  }

  .service-card-photo {
    width: 100%;
    height: 240px;
  }

  .service-card-body {
    padding: 28px 24px;
    align-items: center;
    text-align: center;
  }

  .service-card-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .service-card-desc {
    font-size: 13px;
  }

  .service-card-label {
    font-size: 10px;
  }

  .service-card-arrow {
    position: static;
    margin-top: 8px;
  }

  .service-glass-card--centered .service-card-body {
    padding: 28px 24px;
  }
}

/* ========================================
   Reskilling Cover Section
   ======================================== */
.reskilling-cover {
  position: relative;
  z-index: 1;
  padding: 32px 0 var(--space-section);
  background: transparent;
}

.reskilling-cover-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reskilling-cover-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reskilling-cover-title {
  display: flex;
  flex-direction: column;
  font-family: 'Cormorant', serif;
  font-size: clamp(52px, 9vw, 96px);
  font-weight: 600;
  color: var(--color-text);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.reskilling-cover-divider {
  width: 40px;
  height: 2px;
  background: var(--color-text);
  margin: 40px 0 30px 0;
}

.reskilling-cover-company {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.reskilling-cover-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  opacity: 0.6;
  letter-spacing: 0.15em;
  line-height: 1.6;
}

.reskilling-cover-side-space {
  height: 20px;
}

/* ========================================
   CTA / Contact Section
   ======================================== */

/* ========================================
   Works / Glass Card
   ======================================== */
.works-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

/* Glass Card */
.glass-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 320px;
  padding: 64px 48px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px) brightness(1.05) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) brightness(1.05) saturate(1.2);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1),
              inset 0 -1px 1px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  overflow: hidden;
}

/* Top edge highlight */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 30%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.4) 70%,
    transparent 100%
  );
}

/* Hover shine effect */
.glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.015) 35%,
    rgba(255, 255, 255, 0.04) 45%,
    rgba(255, 255, 255, 0.07) 50%,
    rgba(255, 255, 255, 0.04) 55%,
    rgba(255, 255, 255, 0.015) 65%,
    transparent 80%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 2.5s ease;
}

.glass-card:hover::after {
  left: 150%;
}

/* Glass Content */
.glass-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.glass-label {
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--color-text-sub);
}

.glass-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

.glass-arrow {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  color: var(--color-text-sub);
  z-index: 1;
}

/* ========================================
   Products Carousel
   ======================================== */
.products-carousel {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.carousel-slide:first-child {
  cursor: pointer;
}

/* Carousel Navigation */
.carousel-nav-group {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 8px;
}

.carousel-nav {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--color-text-sub);
  transition: color 0.3s ease;
  z-index: 1;
}

/* Nav buttons inside product-content flow inline */
.product-content .carousel-nav,
.product-content .carousel-nav-group .carousel-nav {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
}

.carousel-nav:hover {
  color: var(--color-text);
}

.nav-arrow {
  display: inline-block;
  animation: arrowPulse 1.5s ease-in-out infinite;
}

.carousel-prev .nav-arrow {
  animation: arrowPulseLeft 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% {
    transform: translateX(0);
    opacity: 1;
  }
  50% {
    transform: translateX(6px);
    opacity: 0.6;
  }
}

@keyframes arrowPulseLeft {
  0%, 100% {
    transform: translateX(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-6px);
    opacity: 0.6;
  }
}

/* Product Card Layout */
.product-card {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  padding-bottom: 0;
}

.product-main {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  height: 100%;
}

.product-icon {
  flex-shrink: 0;
  width: 320px;
  height: 320px;
  border-radius: 0;
  overflow: hidden;
}

.product-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* OWL画像: テーマ切替 */
.owl-light { display: none; }
:root[data-theme="light"] .owl-dark { display: none; }
:root[data-theme="light"] .owl-light { display: block; }

.product-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  text-align: left;
  padding: 40px 48px;
  flex: 1;
}

.product-url {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--color-text-sub);
  opacity: 0.6;
  margin-bottom: 4px;
}

.product-desc {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-sub);
}

/* Product Trio: 3-up vertical cards */
.product-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

.product-trio-card {
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 0;
  min-height: auto;
  text-decoration: none;
  color: var(--color-text);
}

.product-trio-icon {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.product-trio-icon img {
  width: 100%;
  height: auto;
  display: block;
}

.product-trio-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 8px 16px 12px;
}

/* ============================================
   BENTO SHOWCASE Section
   ============================================ */
.bento-section {
  position: relative;
  z-index: 1;
  background: transparent;
}

.bento-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 96px var(--container-padding);
}

.bento-headline {
  font-family: var(--font-serif);
  font-size: clamp(40px, 7vw, 110px);
  font-weight: 300;
  letter-spacing: 0.03em;
  text-align: center;
  color: var(--color-text);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 0;
  text-shadow:
    0 0 40px rgba(0, 0, 0, 0.9),
    0 0 80px rgba(0, 0, 0, 0.7),
    0 0 120px rgba(0, 0, 0, 0.5);
}

:root[data-theme="light"] .bento-headline {
  text-shadow:
    0 0 40px rgba(255, 255, 255, 0.95),
    0 0 80px rgba(255, 255, 255, 0.8),
    0 0 140px rgba(255, 255, 255, 0.6);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 0;
  max-width: 1024px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Creative section — 2-col layout */
.bento-grid--creative {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
}

.bento-item--creative-left {
  aspect-ratio: 1 / 1;
}

.bento-item--creative-video {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--bento-radius, 20px);
  background: #000;
}
.bento-item--creative-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.bento-item--creative-right {
  grid-column: 2;
  grid-row: 1 / 3;
  aspect-ratio: auto;
}

/* Bento Items Base */
.bento-item {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0;
  box-shadow: inset -1px -1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background 0.4s ease,
              transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease;
  /* Stagger reveal — hidden */
  opacity: 0;
  transform: translateY(32px) scale(0.97);
}

/* Stagger reveal — visible */
.bento-item.bento-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.4s ease,
              box-shadow 0.4s ease;
}

/* Hover float */
.bento-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
  box-shadow: inset -1px -1px 0 rgba(255, 255, 255, 0.08),
              0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Spotlight glow overlay */
.bento-item > .bento-spotlight {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.06) 0%,
    transparent 40%
  );
}

.bento-grid:hover .bento-item > .bento-spotlight {
  opacity: 1;
}

/* Spotlight border glow */
.bento-item > .bento-spotlight-border {
  position: absolute;
  inset: -1px;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.13) 0%,
    transparent 40%
  );
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1px;
  border-radius: inherit;
}

.bento-grid:hover .bento-item > .bento-spotlight-border {
  opacity: 1;
}

/* ── Card color variations ── */
/* Variants */
.bento-item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-item--wide {
  grid-column: span 2;
}

.bento-item--tall {
  grid-row: span 2;
}

/* ==========================================
   LLM Integration Demo (card B)
   ========================================== */
.bento-llm-demo {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 14px;
}

.llm-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 12px 16px 28px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  pointer-events: none;
}

.llm-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.llm-label--dark {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: #fff;
  text-transform: none;
  line-height: 1.3;
}

/* 稼働中ドット */
.llm-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: llm-dot-pulse 2s ease-in-out infinite;
}

@keyframes llm-dot-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

/* Chat area */
.llm-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  overflow: hidden;
  padding-top: 32px;
}

/* Chat bubbles */
.llm-msg {
  max-width: 88%;
  font-family: var(--font-sans);
  font-size: 10px;
  line-height: 1.55;
  padding: 6px 10px;
  border-radius: 12px;
  animation: llm-msg-in 0.28s ease forwards;
  opacity: 0;
  word-break: break-all;
  word-break: break-word;
}

@keyframes llm-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* User bubble — right */
.llm-msg--user {
  align-self: flex-end;
  background: rgba(80, 80, 80, 1);
  color: #fff;
  border-bottom-right-radius: 3px;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* AI bubble — left */
.llm-msg--ai {
  align-self: flex-start;
  background: rgba(120, 90, 60, 1);
  border: 1px solid rgba(120, 90, 60, 1);
  color: #fff;
  border-bottom-left-radius: 3px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 1px 3px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(180, 140, 100, 0.18);
}

/* Light mode — same as dark (dark bg card) */

/* ==========================================
   Dashboard Demo (card C)
   ========================================== */
.bento-dash {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 16px 14px;
  gap: 10px;
}

.dash-kpis {
  display: flex;
  gap: 6px;
}

.dash-kpi {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-kpi-label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.dash-kpi-value {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.dash-kpi-delta {
  font-family: var(--font-sans);
  font-size: 9px;
  color: #4ade80;
}

.dash-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding-bottom: 2px;
}

.dash-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: rgba(180, 140, 100, 0.35);
  transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 4px;
}

.dash-bar--today {
  background: var(--color-accent);
  box-shadow: 0 0 8px rgba(180, 140, 100, 0.4);
}

:root[data-theme="light"] .dash-kpi {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .dash-kpi-value {
  color: rgba(0, 0, 0, 0.82);
}

:root[data-theme="light"] .dash-kpi-label {
  color: rgba(0, 0, 0, 0.4);
}

/* Image holder cards (EH, I1, I2) */
.bento-img-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* ▼ 画像を設定する場合:
       background-image: url('/pics/your-image.jpg');
       background-size: cover;
       background-position: center;
  */
  background: linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
}

/* ── Card color variations ── */
/* AI Chat — concrete texture + dark overlay */
/* ── DX Showcase layout ── */
.dx-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.dx-pair {
  flex: 1;
  display: flex;
  gap: 0;
  aspect-ratio: 1 / 1;
  border-radius: var(--bento-radius, 20px);
  overflow: hidden;
}
.dx-card {
  flex: 1;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: var(--bento-bg);
}

.dx-card--chat {
  background: rgba(30, 30, 30, 0.95);
}
:root[data-theme="light"] .dx-card--chat {
  background: #f5f5f5;
}
:root[data-theme="dark"] .dx-card--chat,
:root:not([data-theme="light"]) .dx-card--chat {
  background: rgba(30, 30, 30, 0.95);
}

/* DX description card */
.dx-card--desc {
  display: flex;
  align-items: center;
  padding: 28px;
  background: #fff;
}
.dx-card--desc .dx-desc-title {
  color: #111;
}
.dx-card--desc .dx-desc-text {
  color: #555;
}
.dx-card--desc .dx-desc-list li {
  color: #555;
}
.dx-desc-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-feature-settings: "lnum";
}
.dx-desc-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
.dx-desc-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.dx-desc-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dx-desc-list li {
  font-size: 12px;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}
.dx-desc-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Dashboard — teal tint */
.bento-item--dash {
  background: rgba(34, 211, 238, 0.03);
}
.bento-item--dash:hover {
  background: rgba(34, 211, 238, 0.07);
}

/* Consulting — emerald tint */
.bento-item--consult {
  background: rgba(52, 211, 153, 0.03);
}
.bento-item--consult:hover {
  background: rgba(52, 211, 153, 0.07);
}

/* ==========================================
   Workflow Nodes Animation (card 3)
   ========================================== */
.dx-card--nodes {
  display: flex;
  align-items: center;
  justify-content: center;
}
:root[data-theme="dark"] .dx-card--nodes,
:root:not([data-theme="light"]) .dx-card--nodes {
  background: rgba(30, 30, 30, 0.95);
}
:root[data-theme="light"] .dx-card--nodes {
  background: #f5f5f5;
}

.wf-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 28px 20px;
  width: 100%;
}

/* ── ノード ── */
.wf-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 16px 20px;
  width: 80%;
  max-width: 180px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateY(-12px);
}

:root[data-theme="dark"] .wf-node,
:root:not([data-theme="light"]) .wf-node {
  background: rgba(50, 50, 50, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.wf-node-icon {
  flex-shrink: 0;
  color: rgba(180, 140, 100, 0.8);
  display: flex;
  align-items: center;
}
:root[data-theme="dark"] .wf-node-icon,
:root:not([data-theme="light"]) .wf-node-icon {
  color: rgba(180, 140, 100, 0.9);
}

.wf-node-sub {
  font-family: var(--font-sans);
  font-size: 10px;
  color: rgba(0, 0, 0, 0.45);
  text-align: center;
}

:root[data-theme="dark"] .wf-node-sub,
:root:not([data-theme="light"]) .wf-node-sub {
  color: rgba(255, 255, 255, 0.45);
}

/* ── コネクタ ── */
.wf-connector {
  display: flex;
  justify-content: center;
  height: 32px;
  opacity: 0;
}

.wf-connector-line {
  width: 2px;
  height: 0;
  background: rgba(180, 140, 100, 0.6);
  border-radius: 1px;
}

/* ── アニメーション ── */
.wf-node.animate {
  animation: wf-drop 0.4s ease-out forwards;
}

.wf-connector.animate .wf-connector-line {
  animation: wf-line-grow 0.35s ease-out forwards;
}

.wf-connector.animate {
  opacity: 1;
}

@keyframes wf-drop {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes wf-line-grow {
  from { height: 0; }
  to   { height: 100%; }
}

/* ==========================================
   Chart Animation (card 4)
   ========================================== */
.dx-card--chart {
  display: flex;
  align-items: center;
  justify-content: center;
}
:root[data-theme="dark"] .dx-card--chart,
:root:not([data-theme="light"]) .dx-card--chart {
  background: rgba(30, 30, 30, 0.95);
}
:root[data-theme="light"] .dx-card--chart {
  background: #f5f5f5;
}

.chart-svg {
  width: 85%;
  height: 85%;
}

.chart-grid {
  stroke: rgba(0, 0, 0, 0.06);
  stroke-width: 1;
}
:root[data-theme="dark"] .chart-grid,
:root:not([data-theme="light"]) .chart-grid {
  stroke: rgba(255, 255, 255, 0.06);
}

.chart-base {
  stroke: rgba(0, 0, 0, 0.15);
  stroke-width: 1;
}
:root[data-theme="dark"] .chart-base,
:root:not([data-theme="light"]) .chart-base {
  stroke: rgba(255, 255, 255, 0.15);
}

.chart-bar {
  fill: rgba(180, 140, 100, 0.25);
}

.chart-month {
  font-family: var(--font-sans);
  font-size: 9px;
  fill: rgba(0, 0, 0, 0.35);
  text-anchor: middle;
}
:root[data-theme="dark"] .chart-month,
:root:not([data-theme="light"]) .chart-month {
  fill: rgba(255, 255, 255, 0.35);
}

.chart-line {
  fill: none;
  stroke: rgba(180, 140, 100, 0.9);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}

.chart-dot {
  fill: rgba(180, 140, 100, 1);
  opacity: 0;
}

/* Animate */
.chart-bar.animate {
  transition: height 0.6s ease-out, y 0.6s ease-out;
}

.chart-line.animate {
  animation: chart-draw 1.2s ease-out forwards;
}

.chart-dot.animate {
  animation: chart-dot-pop 0.3s ease-out forwards;
}

@keyframes chart-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes chart-dot-pop {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}

/* Performance card (F) — amber */
.dx-card--cost {
  background: #e5e5e5;
}

/* Neural Network — blue-violet */
.bento-item--nn {
  background: rgba(139, 92, 246, 0.03);
}
.bento-item--nn:hover {
  background: rgba(139, 92, 246, 0.07);
}

/* Database — cyan tint */
.bento-item--db {
  background: rgba(34, 211, 238, 0.04);
}
.bento-item--db:hover {
  background: rgba(34, 211, 238, 0.07);
}

/* ==========================================
   Cost Cut Gauge (card C)
   ========================================== */
.cost-cut-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 28px;
  gap: 20px;
  font-feature-settings: "lnum";
}


.cost-cut-heading {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  text-align: center;
  opacity: 0;
  transform: translateY(-20px);
}

.cost-cut-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cost-cut-list li {
  text-decoration: line-through;
  text-decoration-color: rgba(239, 68, 68, 0.7);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  opacity: 0;
  transform: translateY(-20px);
}
.cost-cut-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.cost-cut-arrow {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.4);
}
.cost-cut-zero {
  font-family: var(--font-sans);
  font-size: 40px;
  font-weight: 700;
  color: #22c55e;
  line-height: 1;
  opacity: 0;
  transform: translateY(-20px);
}

/* Drop animation */
@keyframes cost-drop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cost-cut-heading.animate,
.cost-cut-list li.animate,
.cost-cut-zero.animate {
  animation: cost-drop 0.4s ease-out forwards;
}

/* Light mode */
:root[data-theme="light"] .dx-card--cost {
  background: #f5f5f5;
}
:root[data-theme="light"] .cost-cut-heading {
  color: rgba(0, 0, 0, 0.9);
}
:root[data-theme="light"] .cost-cut-list li {
  color: rgba(0, 0, 0, 0.85);
  text-decoration-color: rgba(239, 68, 68, 0.6);
}
:root[data-theme="light"] .cost-cut-result {
  border-top-color: rgba(0, 0, 0, 0.1);
}
:root[data-theme="light"] .cost-cut-arrow {
  color: rgba(0, 0, 0, 0.3);
}
:root[data-theme="light"] .dx-card--desc {
  background: #fff;
}

/* Dark mode */
:root[data-theme="dark"] .dx-card--cost,
:root:not([data-theme="light"]) .dx-card--cost {
  background: rgba(30, 30, 30, 0.95);
}
:root[data-theme="dark"] .dx-card--desc,
:root:not([data-theme="light"]) .dx-card--desc {
  background: rgba(40, 40, 40, 0.95);
}
:root[data-theme="dark"] .dx-desc-title,
:root:not([data-theme="light"]) .dx-desc-title {
  color: rgba(255, 255, 255, 0.95);
}
:root[data-theme="dark"] .dx-desc-text,
:root:not([data-theme="light"]) .dx-desc-text {
  color: rgba(255, 255, 255, 0.75);
}
:root[data-theme="dark"] .dx-desc-list li,
:root:not([data-theme="light"]) .dx-desc-list li {
  color: rgba(255, 255, 255, 0.75);
}

.bento-stat-group {
  display: flex;
  align-items: center;
  gap: 32px;
}

.bento-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bento-stat-num {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1;
}

.bento-stat-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.bento-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
}

/* ==========================================
   Lighthouse Gauge (card F)
   ========================================== */
.perf-gauges {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 16px 32px;
}

.perf-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.perf-arc {
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.perf-score-text {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  fill: rgba(255, 255, 255, 0.88);
}

.perf-score-text--ja {
  font-size: 11px;
}

.perf-gauge-label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.perf-arrow {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 22px;
  flex-shrink: 0;
}

:root[data-theme="light"] .perf-score-text {
  fill: rgba(0, 0, 0, 0.82);
}

:root[data-theme="light"] .perf-gauge-label {
  color: rgba(0, 0, 0, 0.4);
}

/* ==========================================
   Consulting Flow (card EH)
   ========================================== */
.consult-flow {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 100px;
  gap: 0;
}

.consult-scatter {
  flex: 1;
  position: relative;
}

.cs-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(180, 140, 100, 0.7);
  opacity: 0;
  transform: scale(0);
}

.cs-dot--sm {
  width: 5px;
  height: 5px;
}

.cs-label {
  position: absolute;
  bottom: 0;
  left: 0;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}

.consult-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 0;
  flex-shrink: 0;
}

.consult-arrow {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
}

.consult-chip {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(180, 140, 100, 0.12);
  border: 1px solid rgba(180, 140, 100, 0.3);
  border-radius: 20px;
  padding: 3px 10px;
}

.consult-growth {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.growth-svg {
  width: 100%;
  height: 70px;
}

.growth-area {
  fill: rgba(12, 206, 107, 0.08);
}

.growth-line {
  fill: none;
  stroke: #0cce6b;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}

.growth-dot {
  fill: #0cce6b;
  opacity: 0;
}

.cs-label--growth {
  position: static;
  color: rgba(255, 255, 255, 0.25);
}

/* Automation / AI Workflow card (G) */
.wf-top-label {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 2;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
}
.bento-item--auto {
  background: rgba(99, 102, 241, 0.05);
}
.bento-item--auto:hover {
  background: rgba(99, 102, 241, 0.09);
}

/* ── Workflow SVG node graph ── */
.wf-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* flowing dash animation on connection paths */
.wf-path {
  animation: wf-flow 1.6s linear infinite;
}

@keyframes wf-flow {
  to { stroke-dashoffset: -18; }
}

/* node text labels */
.wf-label {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 9px;
  fill: rgba(255, 255, 255, 0.72);
  dominant-baseline: middle;
}

.wf-label--bold {
  fill: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

/* AI Agent node pulse glow */
.wf-node--ai rect:first-of-type {
  animation: wf-ai-pulse 2.4s ease-in-out infinite;
}

@keyframes wf-ai-pulse {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(245,158,11,0.3)); }
  50%       { filter: drop-shadow(0 0 8px rgba(245,158,11,0.65)); }
}

/* ── Neural Network SVG ── */
.nn-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.nn-label {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  fill: rgba(255, 255, 255, 0.28);
}

/* Content inside cards */
.bento-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento-placeholder {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  opacity: 0.4;
}

/* ==========================================
   Database Card (J)
   ========================================== */
.db-demo {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 16px 80px;
}

.db-table {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  flex-shrink: 0;
}

.db-table-head {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(180, 140, 100, 0.12);
  padding: 5px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.db-table-row {
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.6);
  padding: 4px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.db-table-row:last-child { border-bottom: none; }

.db-pk {
  font-size: 7px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border-radius: 3px;
  padding: 1px 3px;
}

.db-fk {
  font-size: 7px;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.12);
  border-radius: 3px;
  padding: 1px 3px;
}

.db-relation {
  width: 28px;
  height: 60px;
  flex-shrink: 0;
}

.db-rel-line {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

.db-rel-dot {
  fill: rgba(255, 255, 255, 0.2);
  opacity: 0;
}

:root[data-theme="light"] .db-table-row { color: rgba(0, 0, 0, 0.55); }
:root[data-theme="light"] .db-rel-line  { stroke: rgba(0, 0, 0, 0.15); }

.bento-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 24px 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
}

.bento-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.bento-item-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

/* Large card & Chat card — always white text */
.bento-item--large .bento-item-title,
.bento-item--creative-left .bento-item-title {
  color: #fff;
  font-size: 32px;
  font-weight: 450;
}
.bento-item--large .bento-tag,
.dx-card--chat .bento-tag {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
}
.dx-card--chat .llm-bubble,
.dx-card--chat .llm-bubble--user {
  color: #fff;
}

/* ==========================================
   Before/After Comparison Slider
   ========================================== */
.comparison-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  /* 画像なし時のプレースホルダー背景 */
  background: #1a1a2e;
}

.comparison-before,
.comparison-after {
  position: absolute;
  inset: 0;
}

.comparison-before {
  background-image: url('/pics/before.png');
  background-size: cover;
  background-position: center;
}

.comparison-after {
  background-image: url('/pics/after.png');
  background-size: cover;
  background-position: center;
  clip-path: inset(0 0 0 50%);
}

.comparison-before img,
.comparison-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

/* Labels */
.comparison-label {
  position: absolute;
  top: 16px;
  z-index: 3;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 10px;
  border-radius: 20px;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.comparison-label--before { left: 16px; }
.comparison-label--after  { right: 16px; }

/* Divider line */
.comparison-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 3;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Handle circle */
.comparison-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  cursor: ew-resize;
  pointer-events: auto;
}

.comparison-handle svg {
  width: 20px;
  height: 20px;
  color: #1a1a1a;
}

/* Responsive */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .bento-item--large {
    grid-column: span 2;
    grid-row: span 1;
  }
  .bento-item--tall {
    grid-row: span 1;
  }
}

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    border-radius: 12px;
  }
  .bento-item {
    aspect-ratio: 4 / 3;
  }
  .bento-item--large,
  .bento-item--wide {
    grid-column: span 1;
  }
  .bento-item--large,
  .bento-item--tall {
    grid-row: span 1;
    aspect-ratio: 16 / 9;
  }
  .bento-grid--creative {
    grid-template-columns: 1fr;
  }
  .bento-item--creative-left {
    aspect-ratio: 16 / 9;
  }
  .bento-item--creative-video {
    aspect-ratio: 16 / 9;
  }
  .bento-item--creative-right {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 9 / 16;
  }
  .dx-showcase {
    flex-direction: column;
  }
  .dx-pair {
    aspect-ratio: auto;
  }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .hero-content {
    padding: 0 24px;
  }

  .hero-title {
    gap: clamp(24px, 6vw, 40px);
    margin-bottom: 32px;
  }

  .hero-title-big {
    font-size: clamp(56px, 20vw, 100px);
  }

  .hero-title-small {
    font-size: clamp(11px, 3vw, 16px);
    margin-top: -2px;
  }

  .hero-subtitle {
    font-size: 12px;
    letter-spacing: 0.15em;
  }

  .scroll-indicator {
    bottom: 32px;
  }

  .glass-card {
    padding: 48px 32px;
  }

  .glass-label {
    font-size: 11px;
  }

  .glass-title {
    font-size: 24px;
  }

  .spiral-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Product Card: 縦列・正方形アイコン・文字縮小・中央揃え */
  .product-card {
    flex-direction: column;
  }

  .product-main {
    flex-direction: column;
  }

  .product-icon {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    max-height: 50%;
  }

  .product-content {
    padding: 20px 24px;
    text-align: center;
    align-items: center;
    flex: 1;
  }

  .product-desc {
    font-size: 12px;
    line-height: 1.7;
  }

  .carousel-nav-group {
    justify-content: center;
  }

  .product-trio {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-trio-body {
    padding: 8px 16px 12px;
  }

  .product-trio-body .product-desc {
    font-size: 12px;
    line-height: 1.7;
  }
}

/* ========================================
   Journal Section
   ======================================== */
.journal {
  position: relative;
  z-index: 1;
  padding: var(--space-section) 0;
  background: transparent;
}

.journal-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.journal-header {
  margin-bottom: 48px;
}

.journal-label {
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.journal-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.1;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .journal-grid {
    grid-template-columns: 1fr;
  }
}

.journal-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.journal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.journal-card-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.journal-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.journal-card-cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.15) 0%, rgba(100, 160, 255, 0.08) 50%, rgba(138, 180, 248, 0.12) 100%);
}

.journal-card-body {
  padding: 24px;
}

.journal-card-date {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.journal-card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 8px;
}

.journal-card-excerpt {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-sub);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.journal-more {
  text-align: right;
  margin-top: 32px;
}

.journal-more a {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.journal-more a:hover {
  color: var(--color-text);
}

.journal-coming-soon {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.journal-coming-soon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 30%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.4) 70%,
    transparent 100%
  );
}

.journal-coming-soon-text {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
}

/* ========================================
   Light Mode: Glass card overrides
   ======================================== */
[data-theme="light"] .service-glass-card,
[data-theme="light"] .glass-card,
[data-theme="light"] .journal-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 2px 16px rgba(0, 0, 0, 0.06),
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    inset 0 -1px 1px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .journal-card:hover {
  border-color: rgba(0, 0, 0, 0.15);
}

/* ========================================
   Subscription CTA Section
   ======================================== */
.subscription {
  position: relative;
  z-index: 1;
  padding: var(--space-section) 0 32px;
  background: transparent;
  overflow: hidden;
}

.subscription-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Visual wrapper: spiral + overlay + headline — centered */
.subscription-visual {
  position: relative;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
}

/* Overlay on top of spiral */
.subscription-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.25) 60%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

[data-theme="light"] .subscription-overlay {
  background: radial-gradient(
    circle at center,
    rgba(248, 248, 248, 0.65) 0%,
    rgba(248, 248, 248, 0.3) 60%,
    transparent 100%
  );
}

/* Headline text positioned over spiral */
.subscription-headline {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  gap: 4px;
}

.subscription-number {
  font-family: var(--font-serif);
  font-size: clamp(80px, 14vw, 160px);
  font-weight: 500;
  line-height: 1;
  color: var(--color-text);
  font-feature-settings: "lnum";
}

.subscription-headline-text {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3.5vw, 40px);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.3;
  color: var(--color-text);
}

.subscription-sub {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 32px;
}

.subscription-cta {
  display: inline-block;
  font-family: var(--font-sans-jp);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--color-bg);
  background: var(--color-text);
  border: 1px solid var(--color-text);
  cursor: pointer;
  padding: 22px 72px;
  border-radius: 4px;
  border: 2px solid var(--color-text);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  pointer-events: auto;
  margin-top: 24px;
}

.subscription-cta:hover {
  background: transparent;
  color: var(--color-text);
}

/* Responsive: Subscription */
@media (max-width: 768px) {
  .subscription-visual {
    max-width: 500px;
  }

  .subscription-number {
    font-size: 64px;
  }

  .subscription-headline-text {
    font-size: 18px;
  }

  .subscription-sub {
    font-size: 18px;
  }

  .subscription-cta {
    padding: 16px 40px;
    font-size: 13px;
  }
}

/* ========================================
   Light Mode: Glass shimmer overrides
   ======================================== */
[data-theme="light"] .service-glass-card::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(60, 60, 60, 0.08) 30%,
    rgba(60, 60, 60, 0.12) 50%,
    rgba(60, 60, 60, 0.08) 70%,
    transparent 100%
  );
}

[data-theme="light"] .service-glass-card::after {
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(60, 60, 60, 0.03) 35%,
    rgba(60, 60, 60, 0.06) 45%,
    rgba(60, 60, 60, 0.10) 50%,
    rgba(60, 60, 60, 0.06) 55%,
    rgba(60, 60, 60, 0.03) 65%,
    transparent 80%
  );
}

[data-theme="light"] .glass-card::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(60, 60, 60, 0.08) 30%,
    rgba(60, 60, 60, 0.12) 50%,
    rgba(60, 60, 60, 0.08) 70%,
    transparent 100%
  );
}

[data-theme="light"] .glass-card::after {
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(60, 60, 60, 0.03) 35%,
    rgba(60, 60, 60, 0.06) 45%,
    rgba(60, 60, 60, 0.10) 50%,
    rgba(60, 60, 60, 0.06) 55%,
    rgba(60, 60, 60, 0.03) 65%,
    transparent 80%
  );
}

/* ========================================
   Pricing Modal
   ======================================== */
.pricing-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.pricing-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.pricing-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pricing-dialog {
  position: relative;
  width: 92%;
  max-width: 1080px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 36px 32px 28px;
  transform: translateY(24px);
  transition: transform 0.35s ease;
}

.pricing-modal.is-open .pricing-dialog {
  transform: translateY(0);
}

.pricing-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--color-text-sub);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

.pricing-close:hover {
  color: var(--color-text);
}

.pricing-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-align: center;
  margin-bottom: 6px;
}

.pricing-lead {
  font-family: var(--font-sans-jp);
  font-size: 12px;
  color: var(--color-text-sub);
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.8;
}

/* ── Swiper: Desktop 4-col grid override ── */
.pricing-swiper {
  overflow: hidden;
}

/* PC・タブレット：コンパクト化 + バッジ表示 */
@media (min-width: 641px) {
  .pricing-dialog {
    padding: 18px 24px 14px;
  }
  /* RECOMMENDED バッジが上方向に飛び出るため overflow:visible + スライドに余白 */
  .pricing-swiper {
    overflow: visible;
  }
  .pricing-swiper .swiper-slide {
    padding-top: 14px;
  }
  .pricing-swiper .swiper-pagination {
    display: none;
  }
  .pricing-title {
    font-size: 34px;
    margin-bottom: 4px;
  }
  .pricing-lead {
    font-size: 11px;
    margin-bottom: 10px;
    line-height: 1.6;
  }
  .pricing-card {
    padding: 12px 10px;
  }
  .pricing-card-label {
    font-family: var(--font-serif);
    font-size: 12px;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
  }
  .pricing-card-price {
    margin-bottom: 8px;
  }
  .pricing-card-price .num {
    font-size: 20px;
  }
  .pricing-card-estimate {
    font-size: 13px;
  }
  .pricing-card-period {
    font-size: 10px;
  }
  .pricing-card-features {
    margin-bottom: 10px;
  }
  .pricing-card-features li {
    font-size: 10.5px;
    padding: 3px 0;
  }
  .pricing-card-btn {
    padding: 7px 12px;
    font-size: 11px;
  }
  .pricing-card-subscribe {
    padding: 7px 12px;
    font-size: 11px;
  }
  .pricing-card-actions {
    gap: 6px;
  }
  .pricing-note {
    margin-top: 10px;
    font-size: 10px;
  }
}

/* ── Swiper: Mobile carousel ── */
@media (max-width: 640px) {
  .pricing-swiper {
    padding-bottom: 36px;
  }

  .pricing-swiper .swiper-slide {
    height: auto;
  }

  .pricing-swiper .swiper-pagination {
    bottom: 8px;
  }

  .pricing-swiper .swiper-pagination-bullet {
    background: var(--color-text-sub);
    opacity: 0.4;
  }

  .pricing-swiper .swiper-pagination-bullet-active {
    background: var(--color-text);
    opacity: 1;
  }
}

.pricing-card {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.pricing-card:hover {
  border-color: var(--color-text-sub);
}

.pricing-card--featured {
  border-color: var(--color-text);
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .pricing-card--featured {
  background: rgba(0, 0, 0, 0.02);
}

.pricing-card-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-text);
  color: var(--color-bg);
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-card-label {
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-text-sub);
  margin-bottom: 10px;
}

.pricing-card-price {
  margin-bottom: 16px;
}

.pricing-card-price .num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  font-feature-settings: "lnum";
  letter-spacing: 0.02em;
}

.pricing-card-estimate {
  font-family: var(--font-sans-jp);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.pricing-card-period {
  font-family: var(--font-sans-jp);
  font-size: 12px;
  color: var(--color-text-sub);
  margin-left: 2px;
}

.pricing-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  width: 100%;
  flex: 1;
}

.pricing-card-features li {
  font-family: var(--font-sans-jp);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--color-text);
  padding: 5px 0;
  border-bottom: 1px solid var(--color-border);
}

.pricing-card-features li:last-child {
  border-bottom: none;
}

.pricing-card-btn {
  display: inline-block;
  margin-top: auto;
  font-family: var(--font-sans-jp);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--color-bg);
  background: var(--color-text);
  border: 1px solid var(--color-text);
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
}

.pricing-card-btn:hover {
  background: transparent;
  color: var(--color-text);
}

.pricing-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  width: 100%;
}

.pricing-card-subscribe {
  display: inline-block;
  font-family: var(--font-sans-jp);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #fff;
  background: var(--color-accent, #2563eb);
  border: 1px solid var(--color-accent, #2563eb);
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, opacity 0.3s;
  white-space: nowrap;
}

.pricing-card-subscribe:hover {
  opacity: 0.85;
}

.pricing-card-subscribe:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Pricing Note */
.pricing-note {
  font-family: var(--font-sans-jp);
  font-size: 11px;
  line-height: 1.7;
  color: var(--color-text-sub);
  text-align: center;
  margin-top: 20px;
}

/* Responsive: Pricing Modal */
@media (max-width: 768px) {
  .pricing-dialog {
    width: 94%;
    padding: 28px 16px 20px;
  }

  .pricing-title {
    font-size: 22px;
  }

  .pricing-lead {
    font-size: 11.5px;
    margin-bottom: 20px;
  }
}

/* ========================================
   Consultation Modal
   ======================================== */
.consult-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.consult-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.consult-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.consult-dialog {
  position: relative;
  width: 90%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 40px 32px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.consult-modal.is-open .consult-dialog {
  transform: translateY(0);
}

.consult-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--color-text-sub);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

.consult-close:hover {
  color: var(--color-text);
}

.consult-plan-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-text-sub);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 3px 12px;
  margin-bottom: 14px;
}

.consult-plan-tag:empty {
  display: none;
}

.consult-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.consult-lead {
  font-family: var(--font-sans-jp);
  font-size: 13px;
  color: var(--color-text-sub);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* Google button */
.consult-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 20px;
  font-family: var(--font-sans-jp);
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.consult-google-btn:hover {
  border-color: var(--color-text-sub);
  background: rgba(128, 128, 128, 0.05);
}

.consult-google-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Email readonly display */
.consult-email-readonly {
  padding: 10px 14px;
  font-family: var(--font-sans-jp);
  font-size: 14px;
  background: var(--color-surface, rgba(128,128,128,0.08));
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text-sub);
  user-select: all;
}

/* Plan select */
.consult-select {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-sans-jp);
  font-size: 14px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.consult-select:focus {
  border-color: var(--color-text-sub);
}

/* Form */
.consult-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.consult-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.consult-label {
  font-family: var(--font-sans-jp);
  font-size: 12px;
  color: var(--color-text-sub);
}

.consult-required {
  color: #e53e3e;
}

.consult-input,
.consult-textarea {
  padding: 10px 14px;
  font-family: var(--font-sans-jp);
  font-size: 14px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text);
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
}

.consult-input:focus,
.consult-textarea:focus {
  border-color: var(--color-text-sub);
}

.consult-form-error {
  font-family: var(--font-sans-jp);
  font-size: 12px;
  color: #e53e3e;
  min-height: 16px;
}

.consult-submit-btn {
  width: 100%;
  padding: 13px 24px;
  font-family: var(--font-sans-jp);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  background: var(--color-text);
  border: 1px solid var(--color-text);
  border-radius: 6px;
  color: var(--color-bg);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.consult-submit-btn:hover {
  background: transparent;
  color: var(--color-text);
}

.consult-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Calendar picker */
.consult-cal-loading {
  text-align: center;
  padding: 32px 0;
  color: var(--color-text-sub, #999);
  font-size: 14px;
}

.consult-cal-picker {
  margin-bottom: 24px;
  font-feature-settings: "lnum" 1;
}

/* ── Nav row ── */
.consult-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.consult-cal-nav-title {
  font-weight: 600;
  font-size: 16px;
  color: #444;
  letter-spacing: 0.02em;
}

.consult-cal-nav-btn {
  appearance: none;
  background: none;
  border: 1px solid var(--color-border, #ddd);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: background 0.15s, border-color 0.15s;
}

.consult-cal-nav-btn:hover {
  background: rgba(0,0,0,0.05);
  border-color: #bbb;
}

.consult-cal-nav-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

/* ── Table ── */
.consult-cal-table {
  width: 100%;
  border-collapse: collapse;
}

.consult-cal-table th {
  padding: 8px 4px;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-sub, #999);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.consult-cal-table td {
  padding: 11px 4px;
  text-align: center;
  border-radius: 8px;
  font-size: 15px;
  font-feature-settings: "lnum" 1;
  color: #555;
}

.consult-cal-table td.available {
  cursor: pointer;
  color: var(--color-accent, #1a73e8);
  font-weight: 600;
}

.consult-cal-table td.available:hover {
  background: rgba(26,115,232,0.07);
}

.consult-cal-table td.selected {
  background: var(--color-accent, #1a73e8);
  color: #fff;
  font-weight: 600;
}

.consult-cal-table td.no-slots {
  color: #ccc;
  cursor: default;
}

.consult-cal-table td.disabled {
  color: #ccc;
  cursor: default;
}

/* ── Time slots ── */
.consult-time-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
  min-height: 0;
}

@media (max-width: 768px) {
  .consult-time-slots {
    grid-template-columns: repeat(3, 1fr);
  }
}

.consult-time-slot {
  appearance: none;
  padding: 11px 0;
  border: 1px solid var(--color-border, #ddd);
  border-radius: 24px;
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font-sans, 'Inter', 'Noto Sans JP', sans-serif);
  font-feature-settings: "lnum" 1;
  font-weight: 400;
  letter-spacing: 0.04em;
  background: transparent;
  color: #555;
  text-align: center;
  width: 100%;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s;
}

.consult-time-slot:hover {
  border-color: var(--color-accent, #1a73e8);
  color: var(--color-accent, #1a73e8);
  background: rgba(26,115,232,0.04);
}

.consult-time-slot.active {
  background: var(--color-accent, #1a73e8);
  color: #fff;
  border-color: var(--color-accent, #1a73e8);
  box-shadow: 0 2px 10px rgba(26,115,232,0.28);
  font-weight: 500;
}

.consult-selected-slot {
  font-size: 14px;
  font-family: var(--font-sans, 'Inter', 'Noto Sans JP', sans-serif);
  font-feature-settings: "lnum" 1;
  color: var(--color-accent, #1a73e8);
  font-weight: 600;
  margin-bottom: 14px;
  min-height: 22px;
}

/* Step 4: Complete */
.consult-complete-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.consult-complete-box {
  background: var(--color-surface, rgba(128,128,128,0.06));
  border: 1px solid var(--color-border, #eee);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  text-align: center;
}

.consult-complete-datetime {
  font-size: 17px;
  font-weight: 600;
  font-family: var(--font-sans, 'Inter', 'Noto Sans JP', sans-serif);
  font-feature-settings: "lnum" 1;
  margin-bottom: 18px;
  color: var(--color-text, #333);
}

.consult-complete-detail {
  background: #fff;
  border: 1px solid var(--color-border, #e5e5e5);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 18px;
  position: relative;
  text-align: left;
}

.consult-detail-text {
  font-family: var(--font-sans, 'Inter', 'Noto Sans JP', sans-serif);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--color-text, #444);
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0 0 12px;
}

.consult-copy-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: 1px solid var(--color-border, #ddd);
  border-radius: 6px;
  font-family: var(--font-sans, 'Inter', 'Noto Sans JP', sans-serif);
  font-size: 12.5px;
  cursor: pointer;
  background: transparent;
  color: #666;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.consult-copy-detail-btn:hover {
  background: rgba(0,0,0,0.04);
  border-color: #aaa;
}

.consult-copy-detail-btn.copied {
  background: #e8f5e9;
  color: #2e7d32;
  border-color: #a5d6a7;
}

.consult-copy-icon {
  font-size: 14px;
}

.consult-complete-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.consult-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1px solid var(--color-border, #ddd);
  border-radius: 8px;
  font-family: var(--font-sans, 'Inter', 'Noto Sans JP', sans-serif);
  font-size: 13px;
  cursor: pointer;
  background: transparent;
  color: var(--color-text, #333);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.consult-action-btn:hover {
  background: rgba(0,0,0,0.04);
  border-color: var(--color-text-sub, #aaa);
}

.consult-action-btn.copied {
  background: var(--color-accent, #1a73e8);
  color: #fff;
  border-color: var(--color-accent, #1a73e8);
}

@media (max-width: 480px) {
  .consult-dialog {
    padding: 32px 18px;
  }
  .consult-complete-actions {
    flex-direction: column;
  }
  .consult-action-btn {
    justify-content: center;
    width: 100%;
  }
}

/* ============================================
   WEB DESIGN & CODING Section
   ============================================ */
.webdesign-section {
  position: relative;
}

/* 16:9 hero with code background */
.webdesign-hero {
  position: relative;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.webdesign-code-bg {
  position: absolute;
  inset: 0;
  background: var(--color-bg);
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: clamp(8px, 0.82vw, 13px);
  line-height: 1.72;
  padding: clamp(14px, 2.2vw, 36px) clamp(20px, 3vw, 52px);
  overflow: hidden;
  user-select: none;
  color: #c9d1d9;
  white-space: pre;
}

/* Syntax token colors — dark mode (GitHub Dark palette) */
.webdesign-code-bg .ck { color: #ff7b72; }  /* selector, @rule, keyword */
.webdesign-code-bg .cp { color: #79c0ff; }  /* property */
.webdesign-code-bg .cv { color: #a5d6ff; }  /* value string */
.webdesign-code-bg .cf { color: #d2a8ff; }  /* function / pseudo */
.webdesign-code-bg .cn { color: #f2cc60; }  /* number, color literal */
.webdesign-code-bg .cc { color: #8b949e; }  /* comment */

/* Light mode — white code background + GitHub Light palette */
:root[data-theme="light"] .webdesign-code-bg {
  color: #24292f;
}
:root[data-theme="light"] .webdesign-code-bg .ck { color: #cf222e; }
:root[data-theme="light"] .webdesign-code-bg .cp { color: #0550ae; }
:root[data-theme="light"] .webdesign-code-bg .cv { color: #0a3069; }
:root[data-theme="light"] .webdesign-code-bg .cf { color: #8250df; }
:root[data-theme="light"] .webdesign-code-bg .cn { color: #953800; }
:root[data-theme="light"] .webdesign-code-bg .cc { color: #6e7781; }

/* Overlay — 両モードとも不使用 */
.webdesign-overlay {
  display: none;
}

/* Title */
.webdesign-title-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.webdesign-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6.5vw, 104px);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--color-text);
  text-transform: uppercase;
  line-height: 1.12;
  /* 白文字（ダーク）→ 黒シャドウ */
  text-shadow:
    0 0 40px rgba(0, 0, 0, 0.9),
    0 0 80px rgba(0, 0, 0, 0.7),
    0 0 120px rgba(0, 0, 0, 0.5);
}

:root[data-theme="light"] .webdesign-title {
  /* 黒文字（ライト）→ 白シャドウ */
  text-shadow:
    0 0 40px rgba(255, 255, 255, 0.95),
    0 0 80px rgba(255, 255, 255, 0.8),
    0 0 140px rgba(255, 255, 255, 0.6);
}

/* Demo area (tabs + iframe) */
.webdesign-demo {
  background: var(--color-bg);
  padding: 0 40px 96px;
}

.webdesign-tabs {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
  scrollbar-width: none;
}

.webdesign-tabs::-webkit-scrollbar {
  display: none;
}

.webdesign-tab {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--color-text-sub);
  background: none;
  border: none;
  padding: 20px 28px;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.webdesign-tab:hover {
  color: var(--color-text);
}

.webdesign-tab.active {
  color: var(--color-text);
}

.webdesign-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-text);
}

/* iframe wrapper */
.webdesign-iframe-wrap {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.webdesign-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.webdesign-frame.active {
  opacity: 1;
  pointer-events: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .webdesign-title {
    font-size: clamp(22px, 8.5vw, 48px);
    letter-spacing: 0.02em;
  }

  .webdesign-demo {
    padding: 0 16px 64px;
  }

  .webdesign-tab {
    font-size: 12px;
    padding: 16px 14px;
  }

  .webdesign-iframe-wrap {
    aspect-ratio: 16 / 9;
  }
}
