@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;600;800&family=Zen+Kaku+Gothic+New:wght@300;400;500&display=swap');

:root {
  /* Washi paper palette */
  --bg: #F8F4EE;
  --bg-warm: #F3EDE4;
  --surface: #EDE7DC;
  --text: #2C2520;
  --text-secondary: #7A6E62;
  --text-faint: #B8ADA0;
  --accent: #C4956A;
  --accent-deep: #A67B52;
  --accent-glow: rgba(196, 149, 106, 0.12);
  --ink: #3D3530;
  --ink-light: rgba(61, 53, 48, 0.06);
  --divider: #DDD5C8;

  /* Seasonal accents — spring default */
  --season-primary: #D4A0AA;
  --season-secondary: #A8C088;
  --season-glow: rgba(212, 160, 170, 0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Washi paper texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* Ink brush stroke divider */
.brush-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0 auto;
  position: relative;
}

.brush-divider::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  position: relative;
}

/* Seasonal ink wash background */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, var(--season-glow) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: inkBloom 8s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  animation: inkBloom 10s ease-in-out infinite alternate-reverse;
}

@keyframes inkBloom {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Vertical Japanese accent */
.vertical-accent {
  writing-mode: vertical-rl;
  font-family: 'Shippori Mincho', serif;
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  color: var(--text-faint);
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
}

.brand-mark {
  font-family: 'Shippori Mincho', serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 1s ease 0.2s forwards;
}

.hero-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 1s ease 0.4s forwards;
}

.hero-subtitle {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 1s ease 0.6s forwards;
}

.scroll-hint {
  opacity: 0;
  animation: fadeUp 1s ease 1s forwards;
}

.scroll-hint span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.3); }
}

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

/* ============ APP CARDS ============ */
.apps-section {
  padding: 80px 24px 100px;
  max-width: 900px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Shippori Mincho', serif;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--text-faint);
  text-align: center;
  margin-bottom: 48px;
  text-transform: uppercase;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.app-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 36px 40px;
  background: var(--bg-warm);
  border: 1px solid var(--divider);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.app-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--season-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow:
    0 8px 32px rgba(44, 37, 32, 0.06),
    0 2px 8px rgba(44, 37, 32, 0.04);
}

.app-card:hover::before {
  opacity: 1;
}

.app-icon {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Shippori Mincho', serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--bg);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.app-icon--kuu { background: linear-gradient(135deg, #C4956A, #A67B52); }
.app-icon--kokoro { background: linear-gradient(135deg, #7AAA68, #5C8A4C); }
.app-icon--hibi { background: linear-gradient(135deg, #7EB8C9, #5A96AA); }

.app-info {
  position: relative;
  z-index: 1;
}

.app-name {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.app-name-en {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.app-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.app-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
  background: var(--accent-glow);
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(196, 149, 106, 0.2);
}

.app-status::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.app-status--dev {
  color: var(--text-faint);
  background: var(--ink-light);
  border-color: var(--divider);
}

.app-status--dev::before {
  background: var(--text-faint);
}

.app-card .arrow {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  font-size: 1.1rem;
  color: var(--text-faint);
  transition: all 0.3s ease;
  z-index: 1;
}

.app-card:hover .arrow {
  color: var(--accent);
  transform: translateY(-50%) translateX(0);
}

/* ============ PHILOSOPHY ============ */
.philosophy {
  padding: 80px 24px;
  text-align: center;
  position: relative;
}

.philosophy-text {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 32px auto 0;
  letter-spacing: 0.05em;
  line-height: 2.2;
}

/* ============ FOOTER ============ */
footer {
  padding: 48px 24px 64px;
  text-align: center;
  border-top: 1px solid var(--divider);
}

.footer-brand {
  font-family: 'Shippori Mincho', serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--text-faint);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.65rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}

/* ============ APP LANDING PAGE ============ */
.app-hero-page {
  padding: 100px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.app-hero-page::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, var(--season-glow) 0%, transparent 65%);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.app-hero-icon {
  position: relative;
  z-index: 1;
  width: 100px;
  height: 100px;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Shippori Mincho', serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--bg);
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.app-hero-title {
  position: relative;
  z-index: 1;
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(2.4rem, 7vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.35s forwards;
}

.app-hero-tagline {
  position: relative;
  z-index: 1;
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 440px;
  margin: 0 auto;
  letter-spacing: 0.08em;
  line-height: 2;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

/* Feature cards */
.features {
  max-width: 680px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature {
  padding: 28px 32px;
  background: var(--bg-warm);
  border: 1px solid var(--divider);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  align-items: start;
  transition: border-color 0.3s;
}

.feature:hover {
  border-color: var(--accent);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.feature h3 {
  font-family: 'Shippori Mincho', serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}

.feature p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============ LEGAL PAGES ============ */
.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 24px 100px;
}

.legal-header {
  margin-bottom: 48px;
}

.legal-header h1 {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.legal-header .updated {
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}

.legal h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.legal p, .legal ul {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 2;
}

.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 4px; }

.legal a {
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-glow);
  transition: border-color 0.2s;
}

.legal a:hover {
  border-color: var(--accent);
}

.legal hr {
  margin: 52px 0 36px;
  border: none;
  border-top: 1px solid var(--divider);
}

.legal strong {
  color: var(--text);
  font-weight: 500;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  .vertical-accent { display: none; }

  .app-card {
    padding: 28px 24px;
    gap: 20px;
  }

  .app-card .arrow { display: none; }

  .app-icon { width: 60px; height: 60px; font-size: 1.5rem; border-radius: 15px; }

  .hero { min-height: 90vh; padding: 48px 20px; }

  .features { padding: 40px 20px 60px; }
  .feature { padding: 22px 20px; grid-template-columns: 36px 1fr; gap: 14px; }
  .feature-icon { width: 36px; height: 36px; font-size: 1rem; }

  .legal { padding: 60px 20px 80px; }
}

@media (min-width: 700px) {
  .app-grid {
    gap: 20px;
  }
}
