/* Base styles */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;600;700&display=swap');

:root {
  /* Aroma colors - 薄紫系 */
  --aroma-primary: #D4C5E8;
  --aroma-secondary: #E8DFF5;
  --aroma-accent: #9B7EBD;
  --aroma-light: #F8F5FC;
  --aroma-text: #4A3A5A;
  
  /* AI colors - オレンジ系 */
  --ai-primary: #FFB380;
  --ai-secondary: #FFD4B3;
  --ai-accent: #FF8C42;
  --ai-light: #FFF5ED;
  --ai-text: #5A3825;
  
  /* Other colors - 緑系 */
  --other-primary: #A8E6CF;
  --other-secondary: #C8F2E0;
  --other-accent: #56C596;
  --other-light: #F0FDF7;
  --other-text: #2D5A47;
  
  /* Neutral colors */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-600: #4B5563;
  --gray-800: #1F2937;
  --gray-900: #111827;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.7;
  color: var(--gray-800);
  overflow-x: hidden;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  line-height: 1.3;
}

/* Hero Section - ポップで楽しいデザイン */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #FFE8F5 0%, #FFEAA7 25%, #DFE6E9 50%, #A29BFE 75%, #FD79A8 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 浮遊する装飾要素 */
.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 20s ease-in-out infinite;
}

.hero-section::before {
  width: 500px;
  height: 500px;
  background: var(--aroma-accent);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.hero-section::after {
  width: 400px;
  height: 400px;
  background: var(--ai-accent);
  bottom: -100px;
  right: -100px;
  animation-delay: 5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(10deg); }
}

.hero-content {
  text-align: center;
  padding: 4rem 2rem 2rem;
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-banner {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: 3px solid white;
  animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #9B7EBD 0%, #FF8C42 50%, #56C596 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--gray-700);
  margin-bottom: 1.5rem;
  font-weight: 400;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #FF8C42 0%, #9B7EBD 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(255, 140, 66, 0.3);
  text-decoration: none;
  animation: pulse 2s ease-in-out infinite;
}

.hero-cta:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 140, 66, 0.5);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(255, 140, 66, 0.3); }
  50% { box-shadow: 0 10px 40px rgba(255, 140, 66, 0.5); }
}

/* Split Cards - トップページの分岐カード */
.split-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.split-card {
  position: relative;
  padding: 3rem 2rem;
  border-radius: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.split-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.split-card-aroma {
  background: linear-gradient(135deg, var(--aroma-secondary) 0%, var(--aroma-light) 100%);
  border: 2px solid var(--aroma-primary);
}

.split-card-aroma::before {
  background: linear-gradient(135deg, var(--aroma-primary) 0%, var(--aroma-accent) 100%);
}

.split-card-ai {
  background: linear-gradient(135deg, var(--ai-secondary) 0%, var(--ai-light) 100%);
  border: 2px solid var(--ai-primary);
}

.split-card-ai::before {
  background: linear-gradient(135deg, var(--ai-primary) 0%, var(--ai-accent) 100%);
}

.split-card-other {
  background: linear-gradient(135deg, var(--other-secondary) 0%, var(--other-light) 100%);
  border: 2px solid var(--other-primary);
}

.split-card-other::before {
  background: linear-gradient(135deg, var(--other-primary) 0%, var(--other-accent) 100%);
}

.split-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.split-card:hover::before {
  opacity: 0.1;
}

.split-card-content {
  position: relative;
  z-index: 2;
}

.split-card-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.split-card-aroma .split-card-icon {
  color: var(--aroma-accent);
}

.split-card-ai .split-card-icon {
  color: var(--ai-accent);
}

.split-card-other .split-card-icon {
  color: var(--other-accent);
}

.split-card-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.split-card-aroma .split-card-title {
  color: var(--aroma-text);
  font-family: 'Noto Serif JP', serif;
}

.split-card-ai .split-card-title {
  color: var(--ai-text);
}

.split-card-other .split-card-title {
  color: var(--other-text);
}

.split-card-description {
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.split-card-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.split-card-aroma .split-card-button {
  background: var(--aroma-accent);
  color: white;
}

.split-card-aroma .split-card-button:hover {
  background: #8B6EAD;
  transform: scale(1.05);
}

.split-card-ai .split-card-button {
  background: var(--ai-accent);
  color: white;
}

.split-card-ai .split-card-button:hover {
  background: #E87C32;
  transform: scale(1.05);
}

.split-card-other .split-card-button {
  background: var(--other-accent);
  color: white;
}

.split-card-other .split-card-button:hover {
  background: #46B586;
  transform: scale(1.05);
}

/* Section styles */
.section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 600;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-600);
  font-size: 1.1rem;
  margin-bottom: 4rem;
  font-weight: 300;
}

/* Service/Portfolio Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gray-100);
}

.card-content {
  padding: 2rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.card-description {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.card-price {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* Aroma section colors */
.section-aroma {
  background: linear-gradient(to bottom, var(--aroma-light), white);
}

.section-aroma .section-title {
  color: var(--aroma-text);
}

.section-aroma .card:hover {
  border-color: var(--aroma-accent);
}

.section-aroma .card-price {
  color: var(--aroma-accent);
}

/* AI section colors */
.section-ai {
  background: linear-gradient(to bottom, var(--ai-light), white);
}

.section-ai .section-title {
  color: var(--ai-text);
}

.section-ai .card:hover {
  border-color: var(--ai-accent);
}

.section-ai .card-price {
  color: var(--ai-accent);
}

/* Other section colors */
.section-other {
  background: linear-gradient(to bottom, var(--other-light), white);
}

.section-other .section-title {
  color: var(--other-text);
}

.section-other .card:hover {
  border-color: var(--other-accent);
}

.section-other .card-price {
  color: var(--other-accent);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: 600;
  font-family: 'Noto Serif JP', serif;
  color: var(--gray-800);
  text-decoration: none;
}

.navbar-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navbar-link {
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-link:hover {
  color: var(--aroma-accent);
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: white;
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: white;
}

/* Loading state */
.loading {
  text-align: center;
  padding: 4rem 2rem;
}

.spinner {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--aroma-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .split-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .navbar-links {
    gap: 1rem;
    font-size: 0.9rem;
  }
  
  .section {
    padding: 3rem 1rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}
