/* ===================================================
   Voice App Lab — Design System CSS
   corp.every.tv design language with VAL content
   =================================================== */

/* === Base Reset === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

@media (max-width: 1023px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: #222;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

html {
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* === Loading Screen === */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo {
  width: 200px;
  animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.95);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* === Container === */
.val-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 1023px) {
  .val-container {
    padding: 0 20px;
  }
}

/* === Header === */
.val-header {
  position: fixed;
  z-index: 10;
  width: 100%;
  top: 20px;
  left: 0;
  pointer-events: none;
}

@media (max-width: 767px) {
  .val-header {
    top: 16px;
    right: 16px;
    left: auto;
    width: auto;
  }
}

.val-header-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 48px;
  pointer-events: auto;
}

@media (max-width: 767px) {
  .val-header-inner {
    padding: 0;
  }
}

.val-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.val-header-bar.scrolled {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.06), 0 1px 6px rgba(0, 0, 0, 0.03);
}

@media (max-width: 767px) {
  .val-header-bar {
    padding: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .val-header-bar.scrolled {
    background: none;
    box-shadow: none;
  }
}

/* Header nav: show on 768px+ (override global pc-only/sp-only at 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .header-nav.pc-only {
    display: flex;
  }

  .header-cta.pc-only {
    display: block;
  }

  .hamburger.sp-only {
    display: none;
  }
}

.val-header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.val-header-logo img {
  height: 50px;
  width: auto;
  display: block;
  transition: opacity 0.3s;
  margin-top: -10px;
  margin-bottom: -10px;
}

@media (max-width: 767px) {
  .val-header-logo {
    display: none;
  }

  .header-actions {
    gap: 0;
  }
}

/* Header Navigation (Desktop) */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav-link {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.25s, color 0.25s;
  white-space: nowrap;
}

.header-nav-link:hover {
  background: rgba(42, 150, 204, 0.08);
  color: #2a96cc;
}

.header-cta {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #2a96cc;
  padding: 10px 24px;
  border-radius: 8px;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.header-cta:hover {
  opacity: 0.8;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  width: 24px;
  height: 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.hamburger .line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #1B1B1B;
  border-radius: 1px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
}

@media (max-width: 767px) {
  .hamburger.sp-only {
    display: flex;
    width: 48px;
    height: 48px;
    background: #1B1B1B;
    border-radius: 50%;
    padding: 16px 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }

  .hamburger.sp-only .line {
    background: #fff;
    height: 1.5px;
  }
}


/* === Organic Blob Shapes === */
.blob {
  position: absolute;
  pointer-events: none;
  will-change: transform, border-radius;
  opacity: 0.85;
}

.blob--primary {
  background: linear-gradient(135deg, #5ab8d6, #a0d4ef);
}

.blob--yellow {
  background: linear-gradient(135deg, #e8d590, #f5e8b8);
}

.blob--gray {
  background: linear-gradient(135deg, #b8c8d8, #d5e0ec);
}

.blob--teal {
  background: linear-gradient(200deg, #6dceb8, #b0e8da);
}

.blob--skyblue {
  background: linear-gradient(135deg, #8ec5f0, #c8e2fa);
}

.blob--pink {
  background: linear-gradient(315deg, #e0a8c8, #f0cde0);
}

.blob--orange {
  background: linear-gradient(200deg, #e8b895, #f5d8c0);
}

.blob--light {
  background: linear-gradient(135deg, #c0b8e0, #ddd8f0);
}

.blob--line {
  background: linear-gradient(135deg, #06C755, #05a847);
}

/* Blob morphing animations — min 30% corners, gentle sway rotation */
@keyframes blobMorph1 {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(0deg);
  }

  25% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    transform: rotate(20deg);
  }

  50% {
    border-radius: 35% 65% 65% 35% / 70% 30% 35% 65%;
    transform: rotate(-5deg);
  }

  75% {
    border-radius: 65% 35% 35% 65% / 30% 70% 65% 35%;
    transform: rotate(15deg);
  }

  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(0deg);
  }
}

@keyframes blobMorph2 {
  0% {
    border-radius: 65% 35% 30% 70% / 35% 65% 70% 30%;
    transform: rotate(0deg);
  }

  33% {
    border-radius: 30% 70% 65% 35% / 70% 30% 30% 70%;
    transform: rotate(-15deg);
  }

  66% {
    border-radius: 70% 30% 35% 65% / 30% 70% 65% 35%;
    transform: rotate(10deg);
  }

  100% {
    border-radius: 65% 35% 30% 70% / 35% 65% 70% 30%;
    transform: rotate(0deg);
  }
}

@keyframes blobMorph3 {
  0% {
    border-radius: 70% 30% 35% 65% / 65% 35% 70% 30%;
    transform: rotate(0deg);
  }

  33% {
    border-radius: 35% 65% 70% 30% / 30% 70% 35% 65%;
    transform: rotate(18deg);
  }

  66% {
    border-radius: 65% 35% 30% 70% / 70% 30% 35% 65%;
    transform: rotate(-8deg);
  }

  100% {
    border-radius: 70% 30% 35% 65% / 65% 35% 70% 30%;
    transform: rotate(0deg);
  }
}

@keyframes blobMorphService {
  0% {
    border-radius: 35% 65% 70% 30% / 65% 35% 30% 70%;
    transform: rotate(0deg);
  }

  25% {
    border-radius: 70% 30% 30% 70% / 30% 70% 70% 30%;
    transform: rotate(-12deg);
  }

  50% {
    border-radius: 30% 70% 65% 35% / 70% 30% 35% 65%;
    transform: rotate(8deg);
  }

  75% {
    border-radius: 65% 35% 35% 65% / 35% 65% 65% 35%;
    transform: rotate(-18deg);
  }

  100% {
    border-radius: 35% 65% 70% 30% / 65% 35% 30% 70%;
    transform: rotate(0deg);
  }
}

.blob-morph1 {
  animation: blobMorph1 18s ease-in-out infinite;
}

.blob-morph2 {
  animation: blobMorph2 22s ease-in-out infinite;
}

.blob-morph3 {
  animation: blobMorph3 16s ease-in-out infinite;
}

.blob-morph-service {
  animation: blobMorphService 24s ease-in-out infinite;
}

@keyframes blobAppear {
  from {
    opacity: 0;
    transform: scale(0.3);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hero blob: morph + appear combined */
.blob-morph1.blob--appear {
  animation: blobMorph1 18s ease-in-out infinite, blobAppear 1.5s ease forwards;
  opacity: 0;
}

.blob-morph2.blob--appear {
  animation: blobMorph2 22s ease-in-out infinite, blobAppear 1.5s ease forwards;
  opacity: 0;
}

.blob-morph3.blob--appear {
  animation: blobMorph3 16s ease-in-out infinite, blobAppear 1.5s ease forwards;
  opacity: 0;
}

/* === Background Text Marquee === */
.marquee-track {
  display: flex;
  width: max-content;
}

.marquee-track--left {
  animation: marqueeLeft 120s linear infinite;
}

.marquee-track--right {
  animation: marqueeRight 90s linear infinite;
}

@keyframes marqueeLeft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes marqueeRight {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.marquee-text {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 900;
  font-size: 160px;
  line-height: 1.3;
  color: #ecf5fa;
  white-space: nowrap;
  user-select: none;
  letter-spacing: 0.02em;
}

.marquee-text--sm {
  font-size: 120px;
}

@media (max-width: 1023px) {
  .marquee-text {
    font-size: 70px;
  }
  .marquee-text--sm {
    font-size: 52px;
  }
}

/* === Scroll Reveal Animation === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  animation: revealIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.reveal-d1 {
  animation-delay: 0.15s;
}

.reveal-d2 {
  animation-delay: 0.3s;
}

.reveal-d3 {
  animation-delay: 0.45s;
}

.reveal-d4 {
  animation-delay: 0.6s;
}

.reveal-d5 {
  animation-delay: 0.75s;
}

@keyframes revealIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-blur {
  opacity: 0;
  filter: blur(15px);
  transform: scale(0.95);
}

.reveal-blur.visible {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
  animation: revealBlurIn 1.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@keyframes revealBlurIn {
  from {
    opacity: 0;
    filter: blur(15px);
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

@keyframes circleReveal {
  from {
    transform: scale(0.5);
    filter: blur(15px);
    opacity: 0;
  }

  to {
    transform: scale(1);
    filter: blur(0);
    opacity: 1;
  }
}

/* === Section Title === */
.section-title-en {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1B1B1B;
  margin-bottom: 8px;
}

.section-title-jp {
  font-weight: 900;
  font-size: 40px;
  line-height: 1.4;
  color: #1B1B1B;
}

@media (max-width: 1023px) {
  .section-title-jp {
    font-size: 28px;
  }
}

/* === Hero Section === */
@keyframes heroScaleIn {
  from {
    transform: scale(2.0);
    filter: blur(6px);
  }

  to {
    transform: scale(1);
    filter: blur(0px);
  }
}

.val-hero {
  position: relative;
  overflow: hidden;
  background: #fff;
  animation: heroScaleIn 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.5s both;
}

.val-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.val-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 140px;
  padding-bottom: 80px;
}

@media (max-width: 767px) {
  .val-hero-content {
    padding-top: 40px;
    padding-bottom: 60px;
  }
}

.hero-purpose-label {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: #2a96cc;
}

.hero-purpose-text {
  font-weight: 900;
  font-size: 40px;
  line-height: 1.5;
}

@media (max-width: 1023px) {
  .hero-purpose-text {
    font-size: 26px;
  }
}

.hero-mission-text {
  font-weight: 900;
  font-size: 22px;
  line-height: 1.6;
  margin-top: 12px;
  color: rgba(0, 0, 0, 0.55);
}

@media (max-width: 1023px) {
  .hero-mission-text {
    font-size: 16px;
  }
}

.hero-sub-text {
  font-size: 15px;
  line-height: 1.8;
  color: #777;
  margin-top: 24px;
}

@media (max-width: 1023px) {
  .hero-sub-text {
    font-size: 14px;
  }
}

/* === Trust Section === */
.val-trust {
  position: relative;
  z-index: 2;
  background: #fff;
  border-top: 1px solid #E0E0E0;
  border-bottom: 1px solid #E0E0E0;
  padding: 48px 0;
}

@media (max-width: 1023px) {
  .val-trust {
    padding: 32px 0;
  }
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}

.trust-badge-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.trust-badge-text {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  color: #1B1B1B;
}

.trust-badge-sub {
  font-size: 11px;
  color: #777;
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: #ddd;
  flex-shrink: 0;
}

@media (max-width: 1023px) {
  .trust-divider {
    display: none;
  }
}

/* === Problem Section === */
.val-problem {
  position: relative;
  z-index: 2;
  padding: 160px 0;
  background: #ecf5fa;
  overflow-x: clip;
}

@media (max-width: 1023px) {
  .val-problem {
    padding: 96px 0;
  }
}

.val-values-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 60px rgba(0, 0, 0, 0.07), 0 2px 20px rgba(0, 0, 0, 0.04);
}

.problem-card {
  background: #fff;
  border-radius: 12px;
  border: 2px solid transparent;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 8px 8px 32px rgba(0, 0, 0, 0.06);
  cursor: pointer !important;
  transition: translate 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.2s ease;
}

.problem-card:hover {
  translate: 0 -4px;
  box-shadow: 8px 12px 40px rgba(0, 0, 0, 0.1);
  border-color: #2a96cc;
}

.problem-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.problem-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.problem-card:hover .problem-card-img img {
  transform: scale(1.03);
}

.problem-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* === Develop Section === */
.val-develop {
  position: relative;
  padding: 160px 0;
  overflow: hidden;
}

@media (max-width: 1023px) {
  .val-develop {
    padding: 96px 0;
  }
}

/* Use case cards */
.usecase-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  padding: 36px;
  display: flex;
  flex-direction: column;
  box-shadow: 8px 8px 32px rgba(0, 0, 0, 0.06);
}

@media (max-width: 1023px) {
  .usecase-card {
    padding: 24px 20px;
  }
}

.usecase-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.usecase-card-icon svg {
  width: 28px;
  height: 28px;
}

.usecase-card-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}

@media (max-width: 1023px) {
  .usecase-card-title {
    font-size: 16px;
  }
}

.usecase-card-desc {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}

/* Phase steps */
.phase-steps {
  background: #fff;
  border-radius: 12px;
  box-shadow: 8px 8px 32px rgba(0, 0, 0, 0.06);
  padding: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

@media (max-width: 767px) {
  .phase-steps {
    padding: 24px;
    flex-direction: column;
  }
}

.phase-step {
  flex: 1;
  min-width: 200px;
  padding: 16px 20px;
  position: relative;
  text-align: center;
}

.phase-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: #E0E0E0;
}

@media (max-width: 767px) {
  .phase-step:not(:last-child)::after {
    right: 20%;
    top: auto;
    bottom: 0;
    height: 1px;
    width: 60%;
  }

  .phase-step {
    padding: 16px 0;
  }
}

.phase-step-num {
  font-weight: 900;
  font-size: 32px;
  color: #2a96cc;
  line-height: 1;
  margin-bottom: 8px;
}

.phase-step-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}

.phase-step-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #777;
}

.phase-step-note {
  font-size: 11px;
  color: #2a96cc;
  margin-top: 4px;
  font-weight: 500;
}

/* LINE horizontal card */
.line-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  box-shadow: 8px 8px 32px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: translate 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.line-card:hover {
  translate: 0 -4px;
  box-shadow: 8px 12px 40px rgba(0, 0, 0, 0.1);
}

.line-card-img {
  flex: 0 0 33%;
  min-height: 200px;
  overflow: hidden;
}

.line-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .line-card {
    flex-direction: column;
  }

  .line-card-img {
    flex: none;
    max-height: 180px;
  }
}

.line-card-body {
  flex: 1;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 1023px) {
  .line-card-body {
    padding: 24px 20px;
  }
}

.line-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 11px;
  background: rgba(6, 199, 85, 0.08);
  color: #06C755;
}

/* === Services Section (6-card grid) === */
.val-services {
  position: relative;
  padding: 160px 0;
  background: #ecf5fa;
  overflow-x: clip;
}

@media (max-width: 1023px) {
  .val-services {
    padding: 96px 0;
  }
}

.service-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 8px 8px 32px rgba(0, 0, 0, 0.06);
  transition: translate 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.service-card:hover {
  translate: 0 -4px;
  box-shadow: 8px 12px 40px rgba(0, 0, 0, 0.1);
}

.service-card-img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #ecf5fa;
}

.service-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover .service-card-img-wrap img {
  transform: scale(1.03);
}

.service-card-content {
  padding: 24px;
  flex: 1;
}

.service-card-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}

.service-card-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

/* === Member Section === */
.val-member {
  position: relative;
  padding: 160px 0;
  overflow: hidden;
}

@media (max-width: 1023px) {
  .val-member {
    padding: 96px 0;
  }
}

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

@media (max-width: 767px) {
  .member-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 360px;
    margin: 0 auto;
  }
}

/* Member cards */
.member-card {
  background: #fff;
  border-radius: 12px;
  border: 2px solid transparent;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  cursor: pointer;
  transition: translate 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.member-card:hover {
  translate: 0 -4px;
  box-shadow: 0 10px 32px rgba(42, 150, 204, 0.18);
  border-color: #2a96cc;
}

@media (max-width: 1023px) {
  .val-member .member-card {
    min-width: 0;
  }
}

/* === Member Modal === */
.member-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: memberModalFadeIn 0.25s ease;
}

@keyframes memberModalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes memberModalSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.member-modal {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  animation: memberModalSlideUp 0.3s ease;
}

.member-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f0f0f0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: background 0.2s, color 0.2s;
}

.member-modal-close:hover {
  background: #e0e0e0;
  color: #222;
}

.member-modal-body {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.member-modal-img {
  flex: 0 0 auto;
  width: clamp(140px, 22vw, 200px);
}

.member-modal-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.member-modal-info {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 600px) {
  .member-modal {
    padding: 28px 20px;
  }

  .member-modal-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .member-modal-img {
    width: 160px;
  }
}

/* === Problem Card (clickable) — cursor fallback === */
.problem-card,
.problem-card * {
  cursor: pointer !important;
}

/* === Problem Modal === */
.problem-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: memberModalFadeIn 0.25s ease;
}

.problem-modal {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 36px 36px;
  animation: memberModalSlideUp 0.3s ease;
}

.problem-modal-body {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.problem-modal-img {
  flex: 0 0 auto;
  width: clamp(160px, 24vw, 220px);
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
}

.problem-modal-content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.problem-modal-quote {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.7;
  color: #1b1b1b;
  margin: 0 0 4px;
  padding: 4px 0 0 20px;
  border: none;
  position: relative;
}

.problem-modal-quote::before {
  content: '\201C';
  font-size: 52px;
  color: #2a96cc;
  opacity: 0.2;
  position: absolute;
  top: -8px;
  left: -4px;
  line-height: 1;
  font-family: Georgia, serif;
}

.problem-modal-step {
  border-radius: 10px;
  padding: 20px 22px;
}

.problem-modal-step--pain {
  background: #f3f4f6;
}

.problem-modal-step--cause {
  background: #fef9ec;
  border-left: 3px solid #f5a623;
}

.problem-modal-step--approach {
  background: #ecf5fa;
  border-left: 3px solid #2a96cc;
}

.problem-modal-step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 14px;
  color: #444;
}

.problem-modal-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2a96cc;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.problem-modal-step--pain .problem-modal-step-num {
  background: #888;
}

.problem-modal-step--cause .problem-modal-step-num {
  background: #f5a623;
}

.problem-modal-step-text {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  margin: 0;
}

.problem-modal-arrow {
  text-align: center;
  color: #ccc;
  font-size: 18px;
  line-height: 1;
  margin: 6px 0;
}

@media (max-width: 640px) {
  .problem-modal {
    padding: 28px 18px 24px;
  }

  .problem-modal-body {
    flex-direction: column;
    align-items: center;
  }

  .problem-modal-img {
    width: 160px;
  }
}

/* === Girigiri Section (YouTube) === */
.val-girigiri {
  position: relative;
  padding: 160px 0;
  background: #ecf5fa;
  overflow-x: clip;
}

.val-news-inner {
  position: relative;
  z-index: 1;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 1023px) {
  .val-news-inner {
    padding: 0 20px;
  }
}

@media (max-width: 1023px) {
  .val-girigiri {
    padding: 96px 0;
  }
}

.yt-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 8px 8px 32px rgba(0, 0, 0, 0.06);
  transition: translate 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.yt-card:hover {
  translate: 0 -4px;
  box-shadow: 8px 12px 40px rgba(0, 0, 0, 0.1);
}

.yt-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1B1B1B;
}

.yt-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.3s;
}

.yt-card:hover .yt-play-overlay {
  opacity: 1;
}

.yt-play-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yt-play-icon svg {
  width: 16px;
  height: 16px;
  margin-left: 3px;
}

.yt-card-body {
  padding: 16px;
}

.yt-card-label {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 10px;
  color: #fff;
  background: #2a96cc;
  margin-bottom: 8px;
}

.yt-card-title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* YouTube button */
.btn-youtube {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  background: #FF0000;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s;
}

.btn-youtube:hover {
  opacity: 0.8;
}

/* === Video/Blog Expandable Grid === */
.val-video-grid,
.val-blog-grid {
  position: relative;
  padding: 160px 0;
  overflow-x: clip;
}

@media (max-width: 1023px) {

  .val-video-grid,
  .val-blog-grid {
    padding: 96px 0;
  }
}

.expand-grid-hidden {
  display: none;
}

.expand-grid-hidden.expanded {
  display: grid;
}

.expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  background: transparent;
  color: #1B1B1B;
  border: 2px solid #1B1B1B;
  cursor: pointer;
  transition: all 0.3s;
}

.expand-btn:hover {
  background: #1B1B1B;
  color: #fff;
}

.expand-btn.hidden {
  display: none;
}

/* Blog card */
.blog-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 8px 8px 32px rgba(0, 0, 0, 0.06);
  transition: translate 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.blog-card:hover {
  translate: 0 -4px;
  box-shadow: 8px 12px 40px rgba(0, 0, 0, 0.1);
}

.blog-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.blog-card-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-card-platform {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 10px;
  color: #fff;
}

.blog-card-platform--zenn {
  background: #3EA8FF;
}

.blog-card-platform--note {
  background: #41C9B4;
}

.blog-card-platform--qiita {
  background: #55C500;
}

.blog-card-title {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === News List Section === */
.val-news-list {
  position: relative;
  padding: 160px 0;
  background: #ecf5fa;
}

@media (max-width: 1023px) {
  .val-news-list {
    padding: 96px 0;
  }
}

.news-list-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
  transition: opacity 0.3s;
}

.news-list-item:hover {
  opacity: 0.6;
}

.news-list-date {
  font-size: 13px;
  color: #777;
  flex-shrink: 0;
  min-width: 90px;
}

.news-list-title {
  font-weight: 600;
  font-size: 17px;
  line-height: 1.6;
  color: #1B1B1B;
}

@media (max-width: 1023px) {
  .news-list-item {
    flex-direction: column;
    gap: 4px;
  }

  .news-list-title {
    font-size: 14px;
  }
}

/* === Contact Section === */
.val-contact {
  position: relative;
  padding: 160px 0;
  background: #fff;
  overflow-x: clip;
}

@media (max-width: 1023px) {
  .val-contact {
    padding: 96px 0;
  }
}

/* === Button Styles === */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  background: #1B1B1B;
  color: #fff;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  border: none;
  cursor: pointer;
}

.btn-pill:hover {
  opacity: 0.7;
}

.btn-pill .arrow {
  width: 12px;
  height: 12px;
}

.btn-pill--outline {
  background: transparent;
  color: #1B1B1B;
  border: 2px solid #1B1B1B;
}

.btn-pill--outline:hover {
  background: #1B1B1B;
  color: #fff;
}

.btn-pill--dark {
  background: #1B1B1B;
}

.btn-pill--white {
  background: #fff;
  color: #2a96cc;
}

.btn-pill--white:hover {
  opacity: 0.85;
}

.btn-pill--hero-cta {
  padding: 20px 36px;
  font-size: 18px;
  gap: 14px;
  background: #1E3A5C;
  box-shadow: 0 0 0 6px rgba(147, 197, 225, 0.5);
}

.hero-cta-free {
  display: inline-block;
  background: #E8A000;
  color: #1a1a1a;
  font-weight: 900;
  font-size: 14px;
  padding: 5px 14px;
  border-radius: 6px;
  letter-spacing: 0.08em;
}

@media (max-width: 767px) {
  .btn-pill--hero-cta {
    padding: 18px 28px;
    font-size: 16px;
  }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: #1B1B1B;
  transition: opacity 0.3s;
}

.link-arrow:hover {
  opacity: 0.6;
}

.link-arrow .arrow-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1B1B1B;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-arrow .arrow-circle svg {
  width: 8px;
  height: 8px;
  fill: #fff;
}

/* Slider navigation */
.slider-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.slider-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #E0E0E0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

@media (max-width: 1023px) {
  .slider-btn {
    width: 40px;
    height: 40px;
  }
}

.slider-btn:hover {
  border-color: #1B1B1B;
}

.slider-btn svg {
  width: 12px;
  height: 12px;
  fill: #1B1B1B;
}

.slider-btn:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.slider-counter {
  font-size: 14px;
  font-weight: 700;
  color: #1B1B1B;
  min-width: 60px;
  text-align: center;
}

/* === Footer === */
.val-footer {
  position: relative;
  z-index: 1;
  background: #172e3d;
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 40px;
  overflow: hidden;
}

.footer-pattern {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* 上段: ロゴ + ナビ */
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.3s;
}

.footer-logo:hover img {
  opacity: 1;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-nav a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: rgba(255, 255, 255, 1);
}

/* 下段: 社名 + SNS + コピーライト */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
}

.footer-company {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-sns-link {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s;
}

.footer-sns-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 767px) {
  .val-footer {
    padding: 40px 0 32px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-nav {
    gap: 6px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* === Scroll-to-top === */
.scroll-top-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2a96cc;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  border: none;
  font-size: 10px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s;
  z-index: 9;
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  opacity: 0.8;
}

@media (max-width: 767px) {
  .scroll-top-btn {
    right: 16px;
    bottom: 24px;
  }
}

.scroll-top-btn svg {
  width: 12px;
  height: 12px;
  fill: #fff;
}

/* === Parallax helper === */
[data-parallax] {
  transition: transform 0.1s linear;
}

/* === Accessibility === */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #2a96cc;
  outline-offset: 2px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-blur {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none !important;
  }
}

/* === Mobile Menu Body Lock === */
.menu-open {
  overflow: hidden;
}

/* === Responsive Utilities === */
.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

@media (max-width: 1023px) {
  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }
}

/* === Mobile Menu — Full-screen Overlay === */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #172e3d 0%, #1f4d60 50%, #172e3d 100%);
}

.mobile-menu-deco {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  pointer-events: none;
}

.mobile-menu-deco--1 {
  width: 300px;
  height: 300px;
  background: #2a96cc;
  top: -60px;
  right: -80px;
}

.mobile-menu-deco--2 {
  width: 200px;
  height: 200px;
  background: #6ebcd6;
  bottom: 10%;
  left: -40px;
}

.mobile-menu-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 0;
}

.mobile-menu-logo img {
  height: 32px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.mobile-menu-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-nav {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 40px 20px;
}

.mobile-menu-nav-link {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  text-align: center;
  width: 100%;
  max-width: 320px;
  transition: background 0.3s;
  opacity: 0;
  transform: translateY(16px);
  animation: none;
}

.mobile-menu.open .mobile-menu-nav-link {
  animation: menuItemReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mobile-menu-nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

@keyframes menuItemReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu-footer {
  position: relative;
  z-index: 1;
  padding: 20px 20px 32px;
  text-align: center;
}

.mobile-menu-sns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

/* ===================================================
   AI Companion Widget
   =================================================== */

/* --- Pulse Dot --- */
.companion-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2a96cc;
  box-shadow: 0 0 6px rgba(42, 150, 204, 0.3);
  animation: companionPulse 2s ease-in-out infinite;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.companion-dot.active {
  width: 18px;
  height: 18px;
  box-shadow: 0 0 14px rgba(42, 150, 204, 0.5);
  animation: companionPulse 0.5s ease-in-out infinite;
}

@keyframes companionPulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Thinking Bubble --- */
.companion-bubble {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(42, 150, 204, 0.2);
  border-radius: 20px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  animation: companionBubbleIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.companion-focus-badge {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: #2a96cc;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.companion-bubble-text {
  font-size: 12px;
  color: #555;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes companionBubbleIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateX(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
}

/* --- Activity Bars --- */
.companion-activity-bar {
  width: 3px;
  border-radius: 1.5px;
  background: #2a96cc;
  animation: activityBar 0.8s ease-in-out infinite;
}

@keyframes activityBar {
  0%, 100% {
    height: 4px;
  }
  50% {
    height: 14px;
  }
}

/* --- Message Card --- */
.companion-card {
  position: relative;
  width: 280px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(42, 150, 204, 0.15);
  padding: 14px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  animation: companionCardIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.companion-card.pinned {
  cursor: default;
  border-color: rgba(42, 150, 204, 0.35);
}

.companion-card.fading {
  opacity: 0;
}

.companion-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
}

.companion-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border: none;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  padding: 0;
}

.companion-close:hover {
  background: rgba(0, 0, 0, 0.15);
  color: #333;
}

@keyframes companionCardIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.companion-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.companion-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2a96cc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}

.companion-tag {
  font-size: 10px;
  font-weight: 600;
  color: #2a96cc;
  background: rgba(42, 150, 204, 0.08);
  padding: 2px 8px;
  border-radius: 10px;
}

.companion-card-text {
  font-size: 13px;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

.companion-card-accent {
  height: 2px;
  background: #2a96cc;
  border-radius: 1px;
  margin-top: 10px;
  opacity: 0.3;
}

/* --- Mobile --- */
@media (max-width: 767px) {
  .ai-companion {
    right: 12px !important;
    bottom: 16px !important;
    max-width: calc(100vw - 24px);
    overflow: hidden;
  }

  .companion-card {
    width: auto;
    max-width: calc(100vw - 60px);
    min-width: 0;
    padding: 10px 12px;
  }

  .companion-bubble {
    max-width: calc(100vw - 60px);
    min-width: 0;
    white-space: normal;
    overflow: hidden;
  }

  .companion-card-text {
    font-size: 11px;
    line-height: 1.45;
  }

  .companion-card-accent {
    margin-top: 6px;
  }

  .companion-bubble-text {
    font-size: 11px;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .companion-dot,
  .companion-dot.active {
    animation: none;
    opacity: 1;
  }

  .companion-bubble {
    animation: none;
  }

  .companion-card {
    animation: none;
  }

  .companion-activity-bar {
    animation: none;
    height: 8px;
  }
}