/* ===================================
   ClaudeHack — Pastel POP Style
   =================================== */

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

:root {
  --pink:     #FFB3C6;
  --pink-lt:  #FFEEF3;
  --mint:     #B5EAD7;
  --mint-lt:  #E8FAF3;
  --lavender: #C7B8EA;
  --lav-lt:   #F0ECFC;
  --peach:    #FFDAB9;
  --sky:      #AED6F1;
  --yellow:   #FFF3B0;

  --text:     #3D3250;
  --text-sub: #7E7597;
  --white:    #FFFFFF;
  --bg:       #FDF8FF;

  --sidebar-w: 240px;
  --radius:    18px;
  --shadow:    0 4px 24px rgba(140, 100, 200, 0.10);
  --shadow-sm: 0 2px 10px rgba(140, 100, 200, 0.08);

  --font-en: 'Nunito', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ja);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.7;
}

/* ===================================
   レイアウト
   =================================== */

.layout {
  display: flex;
  min-height: 100vh;
}

/* ===================================
   サイドバー
   =================================== */

.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--white);
  border-right: 2px solid var(--pink-lt);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem 1.5rem;
  border-bottom: 2px dashed var(--lavender);
  margin-bottom: 1.25rem;
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-text {
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #C084FC, #F472B6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ナビゲーション */
.sidebar-nav { flex: 1; }

.nav-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-sub);
  text-transform: uppercase;
  padding: 0 0.75rem;
  margin-bottom: 0.4rem;
}

.sidebar-nav ul {
  list-style: none;
  margin-bottom: 0.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-sub);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.nav-item:hover {
  background: var(--lav-lt);
  color: var(--text);
  transform: translateX(3px);
}

.nav-item.active {
  background: linear-gradient(135deg, var(--lav-lt), var(--pink-lt));
  color: #9333EA;
  font-weight: 700;
}

.nav-icon {
  font-size: 1.1rem;
  width: 1.4rem;
  text-align: center;
}

.sidebar-footer {
  padding: 1rem 0.75rem 0.5rem;
  border-top: 2px dashed var(--mint);
  font-size: 0.78rem;
  color: var(--text-sub);
  text-align: center;
}

/* ===================================
   メニュートグル（モバイル）
   =================================== */

.menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 2px solid var(--lavender);
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: var(--shadow-sm);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(60, 40, 90, 0.25);
  z-index: 90;
  backdrop-filter: blur(2px);
}

/* ===================================
   メインコンテンツ
   =================================== */

.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
}

/* ===================================
   ヒーローセクション
   =================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 3rem 4rem;
  background: linear-gradient(135deg, var(--lav-lt) 0%, var(--pink-lt) 50%, var(--mint-lt) 100%);
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 90vh;
}

/* デコ絵文字 */
.hero-deco {
  position: absolute;
  font-size: 2rem;
  animation: float 4s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}
.deco-1 { top: 12%; left: 8%;  animation-delay: 0s; }
.deco-2 { top: 8%;  right: 12%; animation-delay: 0.8s; font-size: 1.6rem; }
.deco-3 { bottom: 18%; left: 5%; animation-delay: 1.4s; font-size: 1.8rem; }
.deco-4 { bottom: 12%; right: 8%; animation-delay: 0.4s; }

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

.hero-inner {
  flex: 1;
  max-width: 520px;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: var(--white);
  border: 2px solid var(--lavender);
  color: #9333EA;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-family: var(--font-ja);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 1rem;
}

.highlight {
  position: relative;
  display: inline-block;
  color: #9333EA;
}

.highlight::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 2px;
  height: 12px;
  background: var(--yellow);
  border-radius: 4px;
  z-index: -1;
  transform: rotate(-1.5deg);
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-sub);
  margin-bottom: 2rem;
  line-height: 1.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===================================
   ボタン
   =================================== */

.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(140, 100, 200, 0.25);
}

.btn-primary {
  background: linear-gradient(135deg, #C084FC, #F472B6);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(192, 132, 252, 0.4);
}

.btn-ghost {
  background: var(--white);
  color: var(--text);
  border: 2px solid var(--lavender);
}

/* ===================================
   ヒーロー イラスト エリア
   =================================== */

.hero-illustration {
  position: relative;
  width: 360px;
  height: 360px;
  flex-shrink: 0;
  z-index: 1;
}

.blob {
  position: absolute;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  opacity: 0.55;
  animation: morph 6s ease-in-out infinite;
}

.blob-pink {
  width: 200px;
  height: 200px;
  background: var(--pink);
  top: 20px;
  left: 60px;
  animation-delay: 0s;
}

.blob-mint {
  width: 170px;
  height: 170px;
  background: var(--mint);
  bottom: 30px;
  right: 30px;
  animation-delay: 1.5s;
}

.blob-lavender {
  width: 140px;
  height: 140px;
  background: var(--lavender);
  bottom: 60px;
  left: 20px;
  animation-delay: 0.8s;
}

@keyframes morph {
  0%, 100% { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
  33%       { border-radius: 40% 60% 45% 55% / 60% 40% 55% 45%; }
  66%       { border-radius: 55% 45% 40% 60% / 45% 55% 60% 40%; }
}

.card-float {
  position: absolute;
  background: var(--white);
  border-radius: 16px;
  padding: 0.8rem 1rem;
  box-shadow: 0 6px 20px rgba(140, 100, 200, 0.15);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  animation: floatCard 3.5s ease-in-out infinite;
  z-index: 2;
  min-width: 80px;
}

.card-float span { font-size: 1.8rem; display: block; margin-bottom: 0.2rem; }
.card-float p { margin: 0; }

.card-1 { top: 10px;  left: 10px;  animation-delay: 0s; }
.card-2 { top: 50px;  right: 0;    animation-delay: 0.7s; }
.card-3 { bottom: 20px; left: 30px; animation-delay: 1.3s; }

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

/* ===================================
   セクション共通
   =================================== */

.section {
  padding: 4rem 3rem;
}

.section--colored {
  background: linear-gradient(135deg, var(--mint-lt) 0%, var(--yellow) 100%);
}

.section-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-tag {
  display: inline-block;
  background: var(--lavender);
  color: #5B21B6;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--text-sub);
}

/* ===================================
   アプリカード
   =================================== */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.app-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  border: 2px solid transparent;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(140, 100, 200, 0.15);
}

.app-card--coming {
  border-color: var(--lavender);
  opacity: 0.85;
}

.app-card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.app-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.app-card p {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 1rem;
}

.app-card-tag {
  display: inline-block;
  background: var(--yellow);
  color: #92400E;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.app-card-tag--new {
  background: linear-gradient(135deg, #C084FC, #F472B6);
  color: white;
}

.app-card--link {
  text-decoration: none;
  cursor: pointer;
  border-color: var(--lavender);
}

.app-card--link:hover {
  border-color: #C084FC;
  background: var(--lav-lt);
}

/* ===================================
   カテゴリチップ
   =================================== */

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.category-chip {
  background: var(--white);
  border: 2px solid var(--mint);
  color: var(--text);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, background 0.2s;
  cursor: default;
}

.category-chip:hover {
  background: var(--mint-lt);
  transform: scale(1.05);
}

/* ===================================
   Aboutボックス
   =================================== */

.about-box {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--lavender);
}

.about-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.about-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.about-item p {
  font-size: 0.9rem;
  color: var(--text-sub);
}

/* ===================================
   レスポンシブ
   =================================== */

@media (max-width: 860px) {
  .hero {
    flex-direction: column;
    padding: 5rem 1.5rem 3rem;
    min-height: auto;
    text-align: center;
  }

  .hero-illustration {
    width: 280px;
    height: 280px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .section {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .overlay.show {
    display: block;
  }

  .menu-toggle {
    display: flex;
  }

  .main-content {
    margin-left: 0;
    padding-top: 3.5rem;
  }
}
