/* ============================================================
   株式会社うのはないろ — Custom Stylesheet
   Tailwind CDN handles utilities; this file owns custom rules.
   Design System: Liquid Glass × Premium 3D
   ============================================================ */

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #FDF2F8;
  color: #831843;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary: #DB2777;
  --primary-light: #F472B6;
  --cta: #CA8A04;
  --bg: #FDF2F8;
  --text: #831843;
  --muted: #9D174D;
}

/* ---------- Scroll-reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-44px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(44px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

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

  .reveal,
  .reveal-left,
  .reveal-right {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- Petal float animation (Hero deco) ---------- */
@keyframes floatPetal {
  0% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }

  50% {
    transform: translateY(-18px) rotate(6deg);
    opacity: 1;
  }

  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }
}

.petal {
  animation: floatPetal 4s ease-in-out infinite;
}

.petal:nth-child(2) {
  animation-delay: 0.8s;
}

.petal:nth-child(3) {
  animation-delay: 1.6s;
}

.petal:nth-child(4) {
  animation-delay: 2.4s;
}

/* ---------- SVG orbit ring (AI illustration) ---------- */
@keyframes slowSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.svg-orbit {
  animation: slowSpin 22s linear infinite;
  transform-origin: 190px 150px;
}

/* ---------- Hero gradient ---------- */
.hero-gradient {
  background: linear-gradient(135deg,
      #FDF2F8 0%,
      #FCE7F3 35%,
      #F9A8D4 68%,
      #FDE68A 100%);
}

/* ---------- Floating Navbar — Pink Glassmorphism ---------- */
#navbar {
  background: linear-gradient(135deg,
    rgba(253,242,248,0.93) 0%,
    rgba(252,231,243,0.87) 50%,
    rgba(253,242,248,0.93) 100%);
  backdrop-filter: blur(22px) saturate(1.9);
  -webkit-backdrop-filter: blur(22px) saturate(1.9);
  border: 1px solid rgba(244,114,182,0.42);
  box-shadow:
    0 4px 28px rgba(219,39,119,0.13),
    0 1px 0 rgba(255,255,255,0.8) inset;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background: rgba(253,236,246,0.97);
  box-shadow: 0 6px 36px rgba(131,24,67,0.14);
}

/* Logo text gradient */
.logo-text {
  background: linear-gradient(135deg, #831843 0%, #be185d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- ★ BUTTONS — 3D Gradient ---------- */

/* Primary pink */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(160deg, #f472b6 0%, #db2777 48%, #be185d 100%);
  color: #fff;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  box-shadow:
    0 8px 24px rgba(219,39,119,0.50),
    0 3px 8px  rgba(219,39,119,0.35),
    0 1px 0   rgba(255,255,255,0.32) inset,
    0 -2px 0  rgba(0,0,0,0.18) inset;
  text-shadow: 0 1px 3px rgba(131,24,67,0.35);
  transition: all 0.22s ease;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.btn-primary:hover {
  background: linear-gradient(160deg, #fb7fc5 0%, #e8308c 48%, #c91f6a 100%);
  box-shadow:
    0 14px 36px rgba(219,39,119,0.60),
    0 5px 14px  rgba(219,39,119,0.40),
    0 1px 0   rgba(255,255,255,0.36) inset;
  transform: translateY(-3px);
}
.btn-primary:hover::before { left: 130%; }
.btn-primary:active { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(219,39,119,0.45); }

/* Gold CTA */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(160deg, #fde68a 0%, #f59e0b 38%, #ca8a04 70%, #a16207 100%);
  color: #431407;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  box-shadow:
    0 10px 30px rgba(202,138,4,0.52),
    0 4px 10px  rgba(202,138,4,0.35),
    0 1px 0   rgba(255,255,255,0.50) inset,
    0 -2px 0  rgba(0,0,0,0.20) inset;
  text-shadow: 0 1px 2px rgba(255,220,100,0.50);
  transition: all 0.22s ease;
}
.btn-gold::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.30), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.btn-gold:hover {
  background: linear-gradient(160deg, #fef08a 0%, #fbbf24 38%, #d97706 70%, #b45309 100%);
  box-shadow:
    0 16px 40px rgba(202,138,4,0.65),
    0 6px 16px  rgba(202,138,4,0.42),
    0 1px 0   rgba(255,255,255,0.55) inset;
  transform: translateY(-3px);
  color: #3b1200;
}
.btn-gold:hover::before { left: 130%; }

/* Outline pink */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(160deg, rgba(255,255,255,0.96) 0%, rgba(253,242,248,0.90) 100%);
  color: #831843;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  border: 1.5px solid rgba(219,39,119,0.38);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  box-shadow:
    0 6px 20px rgba(219,39,119,0.16),
    0 2px 6px  rgba(219,39,119,0.10),
    0 1px 0   rgba(255,255,255,0.95) inset;
  transition: all 0.22s ease;
}
.btn-outline:hover {
  background: linear-gradient(160deg, #ffffff 0%, rgba(252,231,243,0.95) 100%);
  border-color: rgba(219,39,119,0.60);
  box-shadow:
    0 10px 28px rgba(219,39,119,0.24),
    0 3px 8px  rgba(219,39,119,0.16),
    0 1px 0   rgba(255,255,255,0.98) inset;
  transform: translateY(-2px);
  color: #db2777;
}

/* Outline gold */
.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(160deg, rgba(255,255,255,0.96), rgba(255,251,235,0.92));
  color: #92400e;
  font-weight: 600;
  padding: 0.75rem 1.875rem;
  border-radius: 9999px;
  border: 1.5px solid rgba(202,138,4,0.45);
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    0 6px 20px rgba(202,138,4,0.20),
    0 1px 0 rgba(255,255,255,0.95) inset;
  transition: all 0.22s ease;
}
.btn-outline-gold:hover {
  background: linear-gradient(160deg, #fffbeb, #fef3c7);
  border-color: rgba(202,138,4,0.70);
  box-shadow: 0 10px 28px rgba(202,138,4,0.30);
  transform: translateY(-2px);
  color: #78350f;
}

/* ---------- ★ BIZ-CARD — Rich Glassmorphism ---------- */
.biz-card {
  position: relative;
  background: linear-gradient(145deg,
    rgba(255,255,255,0.82) 0%,
    rgba(253,242,248,0.70) 100%);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(219,39,119,0.18);
  border-right: 1px solid rgba(219,39,119,0.12);
  border-radius: 1.25rem;
  padding: 1.5rem;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 10px 40px rgba(219,39,119,0.18),
    0 2px 8px  rgba(219,39,119,0.10),
    0 1px 0   rgba(255,255,255,0.95) inset;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: block;
}
/* Top gloss line */
.biz-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.90) 50%, transparent 100%);
}
/* Bottom-right glow */
.biz-card::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(219,39,119,0.12), transparent 70%);
  pointer-events: none;
}
.biz-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 22px 56px rgba(219,39,119,0.28),
    0 6px 18px rgba(219,39,119,0.18),
    0 1px 0   rgba(255,255,255,0.95) inset;
}

/* Biz-card icon wrappers */
.biz-icon-ai {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
  display: flex; align-items: center; justify-content: center;
  color: #db2777;
  box-shadow: 0 3px 10px rgba(219,39,119,0.22), 0 1px 0 rgba(255,255,255,0.8) inset;
  flex-shrink: 0;
}
.biz-icon-pottery {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, #fefce8, #fef9c3);
  display: flex; align-items: center; justify-content: center;
  color: #ca8a04;
  box-shadow: 0 3px 10px rgba(202,138,4,0.22), 0 1px 0 rgba(255,255,255,0.8) inset;
  flex-shrink: 0;
}
.biz-link {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #db2777;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s ease;
  font-weight: 500;
}
.biz-card:hover .biz-link { gap: 0.5rem; }

/* ---------- Service card hover ---------- */
.service-card {
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid transparent;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(219,39,119,0.0), transparent);
  transition: background 0.3s ease;
}
.service-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 42px rgba(219,39,119,0.16);
  border-bottom-color: rgba(219,39,119,0.40);
}
.service-card:hover::before {
  background: linear-gradient(90deg, transparent, rgba(219,39,119,0.55), transparent);
}
.service-icon-pink {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
  box-shadow: 0 4px 12px rgba(219,39,119,0.20), 0 1px 0 rgba(255,255,255,0.9) inset;
}
.service-icon-gold {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  box-shadow: 0 4px 12px rgba(202,138,4,0.20), 0 1px 0 rgba(255,255,255,0.9) inset;
}

/* ---------- AI Section ---------- */
.section-ai {
  position: relative;
  padding: 6rem 1rem;
  background: linear-gradient(155deg, #fffafc 0%, #ffffff 45%, #fef4f9 100%);
  overflow: hidden;
}
.section-ai .blob-1 {
  position: absolute; top: -140px; right: -140px;
  width: 560px; height: 560px;
  border-radius: 50% 40% 60% 45% / 50% 60% 40% 55%;
  background: radial-gradient(circle at 40% 40%,
    rgba(244,114,182,0.24) 0%, rgba(253,242,248,0.14) 52%, transparent 72%);
  pointer-events: none;
  animation: blobFloat 13s ease-in-out infinite;
}
.section-ai .blob-2 {
  position: absolute; bottom: -90px; left: -110px;
  width: 400px; height: 400px;
  border-radius: 55% 45% 50% 60% / 45% 55% 60% 50%;
  background: radial-gradient(circle at 60% 60%,
    rgba(202,138,4,0.16) 0%, rgba(254,230,138,0.09) 50%, transparent 68%);
  pointer-events: none;
  animation: blobFloat 17s ease-in-out infinite reverse;
}
.section-ai .dot-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(219,39,119,0.07) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  pointer-events: none;
}

/* ---------- Strengths Section ---------- */
.section-strengths {
  position: relative;
  padding: 5rem 1rem;
  background: linear-gradient(175deg, #fdf2f8 0%, #fef8fb 40%, #ffffff 70%, #fdf6fa 100%);
  overflow: hidden;
}
.section-strengths .blob-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(219,39,119,0.07) 0%, rgba(244,114,182,0.04) 40%, transparent 65%);
  pointer-events: none;
}
.section-strengths .blob-tr {
  position: absolute; top: -60px; right: -60px;
  width: 320px; height: 320px;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 55%;
  background: radial-gradient(circle, rgba(202,138,4,0.11) 0%, transparent 65%);
  pointer-events: none;
}

/* ---------- About Deco Card ---------- */
.about-deco-wrap {
  background: linear-gradient(135deg, #ffffff 0%, rgba(253,242,248,0.85) 100%);
  box-shadow:
    0 8px 36px rgba(219,39,119,0.11),
    0 2px 8px  rgba(219,39,119,0.07),
    0 1px 0   rgba(255,255,255,0.92) inset;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  position: relative;
  background: linear-gradient(135deg, #9d174d 0%, #be185d 25%, #db2777 55%, #ec4899 80%, #f9a8d4 100%);
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; top: -60%; left: -5%;
  width: 55%; height: 220%;
  background: linear-gradient(108deg, transparent 30%, rgba(255,255,255,0.10) 50%, transparent 70%);
  pointer-events: none;
}
.cta-banner::after {
  content: '';
  position: absolute; bottom: -80px; right: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(155deg, #6b1235 0%, #831843 42%, #7a1a3e 72%, #6b1235 100%);
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(244,114,182,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

/* ---------- Section label / eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before {
  content: '';
  display: inline-block; width: 20px; height: 2px;
  background: linear-gradient(90deg, #CA8A04, #FDE68A);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ---------- Hero H1 text-shadow ---------- */
#hero h1 {
  text-shadow: 0 2px 22px rgba(131,24,67,0.17), 0 1px 4px rgba(255,255,255,0.6);
}

/* ---------- Wave Divider ---------- */
.wave-divider { display: block; overflow: hidden; line-height: 0; margin-bottom: -1px; }
.wave-divider svg { display: block; width: 100%; }

/* ---------- Scroll hint ---------- */
.scroll-hint { color: rgba(219,39,119,0.55); }

/* ---------- Contact form card ---------- */
.form-card {
  background: #ffffff;
  border: 1px solid rgba(219,39,119,0.12);
  border-radius: 1.5rem;
  box-shadow:
    0 6px 40px rgba(219,39,119,0.10),
    0 2px 8px  rgba(219,39,119,0.06);
}

/* ---------- Blob animation ---------- */
@keyframes blobFloat {
  0%   { transform: scale(1) translate(0,0); }
  33%  { transform: scale(1.05) translate(14px,-10px); }
  66%  { transform: scale(0.97) translate(-10px,14px); }
  100% { transform: scale(1) translate(0,0); }
}

@media (prefers-reduced-motion: reduce) {
  .blob-1, .blob-2,
  .btn-primary::before, .btn-gold::before {
    animation: none;
    transition: none;
  }
}

/* ---------- Company info table (about.html) ---------- */
.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th {
  width: 28%;
  text-align: left;
  padding: 18px 24px;
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--primary);
  border-bottom: 1px solid #FCE7F3;
  vertical-align: top;
  white-space: nowrap;
}

.company-table td {
  padding: 18px 24px;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.85;
  border-bottom: 1px solid #FCE7F3;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 640px) {

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 6px 0;
  }

  .company-table th {
    font-size: 0.75rem;
    color: var(--primary);
    padding-bottom: 2px;
    border-bottom: none;
  }

  .company-table tr {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid #FCE7F3;
  }

  .company-table tr:last-child {
    border-bottom: none;
  }
}

/* ---------- Page hero (about / sub pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, #FDF2F8 0%, #FCE7F3 60%, #FDE68A 100%);
}

/* ---------- Background Slider ---------- */
@keyframes bgFadeInOut {
  0% {
    opacity: 0;
    transform: scale(1.05);
  }

  4%,
  20% {
    opacity: 1;
    transform: scale(1);
  }

  /* 4% is 3s, 20% is 15s */
  24%,
  100% {
    opacity: 0;
    transform: scale(1.05);
  }

  /* 24% is 18s */
}

.bg-slide {
  animation: bgFadeInOut 75s infinite;
}

.bg-slide.delay-1 {
  animation-delay: 15s;
}

.bg-slide.delay-2 {
  animation-delay: 30s;
}

.bg-slide.delay-3 {
  animation-delay: 45s;
}

.bg-slide.delay-4 {
  animation-delay: 60s;
}

/* ---------- Gold underline (nav links) ---------- */
.gold-underline {
  position: relative;
  display: inline-block;
}

.gold-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #CA8A04, #FDE68A, #CA8A04);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.gold-underline:hover::after {
  transform: scaleX(1);
}

/* ---------- SVG illustration wrappers ---------- */
.illus-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.illus-wrap::before {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
