﻿@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@500;700&family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

:root {
  --bg: #f7f1e8;
  --surface: #ffffff;
  --surface-2: #fff7ee;
  --ink: #1f2933;
  --muted: #5f6c7b;
  --accent: #ff6b4a;
  --accent-2: #2a9d8f;
  --accent-3: #f4a261;
  --border: #e4dfd7;
  --shadow: 0 18px 40px rgba(31, 41, 51, 0.12);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

html[data-theme='sunset'] {
  --bg: #f7f1e8;
  --surface: #ffffff;
  --surface-2: #fff3e5;
  --accent: #ff6b4a;
  --accent-2: #2a9d8f;
  --accent-3: #f4a261;
}

html[data-theme='mint'] {
  --bg: #eff7f5;
  --surface: #ffffff;
  --surface-2: #eaf6f2;
  --accent: #2a9d8f;
  --accent-2: #247ba0;
  --accent-3: #f4a261;
}

html[data-theme='sakura'] {
  --bg: #f9f0f2;
  --surface: #ffffff;
  --surface-2: #fff1f4;
  --accent: #e76f51;
  --accent-2: #f4a261;
  --accent-3: #2a9d8f;
}

html[data-theme='lagoon'] {
  --bg: #eef4fb;
  --surface: #ffffff;
  --surface-2: #eef7fb;
  --accent: #247ba0;
  --accent-2: #2a9d8f;
  --accent-3: #f4a261;
}

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

body {
  font-family: 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  position: relative;
}

body::before,
body::after {
  content: '';
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
}

body::before {
  top: -120px;
  right: -100px;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 70%);
}

body::after {
  bottom: -140px;
  left: -120px;
  background: radial-gradient(circle at 30% 30%, var(--accent-2), transparent 70%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand .logo {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}

.brand .subtitle {
  color: var(--muted);
  font-size: 0.85rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 500;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav a:hover {
  border-color: var(--border);
  background: var(--surface-2);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.9rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-2);
}

html[data-auth='guest'] .status-dot {
  background: var(--accent-3);
}

.hero {
  margin-top: 28px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.65));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero h1 {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.hero p {
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 20px rgba(255, 107, 74, 0.25);
}

.button.secondary {
  background: var(--accent-2);
  box-shadow: 0 10px 20px rgba(42, 157, 143, 0.25);
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: none;
}

.button:hover {
  transform: translateY(-2px);
}

.section {
  margin-top: 32px;
}

.section-title {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
}

.card h3 {
  margin: 12px 0 8px;
  font-size: 1.1rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-weight: 600;
  color: var(--muted);
}

html[data-auth='guest'] .locked .lock-overlay {
  display: flex;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.form {
  display: grid;
  gap: 14px;
}

.form label {
  font-weight: 600;
  font-size: 0.9rem;
}

.input,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.95rem;
}

.input:focus,
select:focus {
  outline: 2px solid rgba(255, 107, 74, 0.25);
  border-color: var(--accent);
}

.helper {
  color: var(--muted);
  font-size: 0.82rem;
}

.notice {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px dashed var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.fade-up {
  animation: fadeUp 0.6s ease both;
}

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

.only-user {
  display: block;
}

.only-guest {
  display: block;
}

html[data-auth='guest'] .only-user {
  display: none !important;
}

html[data-auth='user'] .only-guest {
  display: none !important;
}

footer {
  margin-top: 60px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 28px;
  }
}
