/* ========================================
   リセット & ベーススタイル
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 桜色グラデーションカラー */
  --sakura-light: #FFE4E1;
  --sakura-pink: #FFB7C5;
  --sakura-rose: #FF9EB5;
  --sakura-deep: #FF85A1;
  --sakura-accent: #FF6B9D;
  
  /* テキストカラー */
  --text-primary: #5A5A5A;
  --text-secondary: #8A8A8A;
  --text-white: #FFFFFF;
  
  /* シャドウ */
  --shadow-soft: 0 4px 20px rgba(255, 107, 157, 0.15);
  --shadow-medium: 0 8px 30px rgba(255, 107, 157, 0.25);
  --shadow-strong: 0 12px 40px rgba(255, 107, 157, 0.35);
}

body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 
               'Meiryo', sans-serif;
  background: linear-gradient(135deg, var(--sakura-light) 0%, var(--sakura-pink) 100%);
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========================================
   コンテナ
   ======================================== */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 20px 90px 20px; /* 下部ナビゲーション分のパディングを追加 */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========================================
   ヘッダー
   ======================================== */
.header {
  text-align: center;
  padding: 40px 20px 30px;
  animation: fadeInDown 0.8s ease-out;
}

.title {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--sakura-accent) 0%, var(--sakura-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(255, 107, 157, 0.3);
}

.subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* ========================================
   メインエリア
   ======================================== */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  animation: fadeIn 1s ease-out 0.3s backwards;
}

/* ========================================
   カード
   ======================================== */
.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  padding: 40px 30px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.card-content {
  text-align: center;
}

.description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 35px;
  line-height: 1.8;
}

/* ========================================
   生成ボタン
   ======================================== */
.generate-btn {
  background: linear-gradient(135deg, var(--sakura-accent) 0%, var(--sakura-rose) 100%);
  color: var(--text-white);
  border: none;
  border-radius: 50px;
  padding: 18px 50px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.generate-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.generate-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.generate-btn:hover::before {
  width: 300px;
  height: 300px;
}

.generate-btn:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.btn-icon {
  font-size: 1.5rem;
  animation: pulse 2s infinite;
}

.btn-text {
  position: relative;
  z-index: 1;
}

/* ========================================
   結果表示エリア
   ======================================== */
.result-area {
  animation: fadeInUp 0.6s ease-out;
}

.result-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 30px;
  padding: 30px;
  box-shadow: var(--shadow-medium);
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.image-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sakura-light) 0%, var(--sakura-pink) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 107, 157, 0.2);
  border-top-color: var(--sakura-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ========================================
   プロフィール
   ======================================== */
.profile-container {
  padding: 10px;
}

.profile-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sakura-accent);
  margin-bottom: 8px;
  text-align: center;
}

.profile-concept {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 25px;
  font-style: italic;
}

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-section {
  background: linear-gradient(135deg, var(--sakura-light) 0%, rgba(255, 228, 225, 0.5) 100%);
  border-radius: 15px;
  padding: 20px;
}

.detail-section h3 {
  font-size: 1rem;
  color: var(--sakura-accent);
  margin-bottom: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-section h3::before {
  content: '•';
  font-size: 1.5rem;
}

.detail-section p {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.7;
}

/* ========================================
   下部ナビゲーション
   ======================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 -4px 20px rgba(255, 107, 157, 0.15);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 20px;
  z-index: 1000;
  border-top: 1px solid rgba(255, 182, 193, 0.3);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 12px;
  min-width: 70px;
}

.nav-item:hover {
  background: rgba(255, 182, 193, 0.1);
  color: var(--sakura-accent);
}

.nav-item.active {
  color: var(--sakura-accent);
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.2) 0%, rgba(255, 133, 161, 0.15) 100%);
}

.nav-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
  transition: transform 0.3s ease;
}

.nav-item:hover .nav-icon {
  transform: scale(1.15);
}

.nav-item.active .nav-icon {
  animation: bounce 0.6s ease;
}

.nav-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

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

/* ========================================
   アニメーション
   ======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

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

/* ========================================
   レスポンシブ対応
   ======================================== */
@media (max-width: 480px) {
  .container {
    padding: 15px;
  }
  
  .header {
    padding: 30px 15px 20px;
  }
  
  .title {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 0.9rem;
  }
  
  .card {
    padding: 30px 20px;
    border-radius: 25px;
  }
  
  .description {
    font-size: 1rem;
  }
  
  .generate-btn {
    padding: 16px 40px;
    font-size: 1.1rem;
  }
  
  .result-card {
    padding: 20px;
    border-radius: 25px;
  }
  
  .profile-name {
    font-size: 1.75rem;
  }
  
  .profile-concept {
    font-size: 1rem;
  }
  
  .detail-section {
    padding: 15px;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 40px 20px;
  }
  
  .header {
    padding: 60px 20px 40px;
  }
  
  .title {
    font-size: 3rem;
  }
  
  .card {
    padding: 50px 40px;
  }
}

/* ========================================
   ランディングページ専用スタイル
   ======================================== */
.landing-main {
  gap: 50px;
  padding-top: 20px;
}

/* ヒーローセクション */
.hero-section {
  text-align: center;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease-out;
}

.hero-content {
  max-width: 500px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--sakura-accent) 0%, var(--sakura-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 40px;
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--sakura-accent) 0%, var(--sakura-deep) 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  text-decoration: none;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

/* 特徴セクション */
.features-section {
  padding: 40px 20px;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.section-heading {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  animation: float 3s ease-in-out infinite;
}

.feature-card:nth-child(2) .feature-icon {
  animation-delay: 0.5s;
}

.feature-card:nth-child(3) .feature-icon {
  animation-delay: 1s;
}

.feature-card:nth-child(4) .feature-icon {
  animation-delay: 1.5s;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CTAセクション */
.cta-section {
  text-align: center;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.cta-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.cta-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 40px;
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--sakura-accent) 0%, var(--sakura-deep) 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  text-decoration: none;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
  animation: pulse 1s ease-in-out infinite;
}

/* アニメーション */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-description {
    font-size: 0.9rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .section-heading {
    font-size: 1.5rem;
  }
  
  .cta-title {
    font-size: 1.5rem;
  }
}
