/* urara.dev — soft & fluffy dolphin theme */

:root {
  --bg: #f0f8fc;
  --bg-gradient-start: #e8f4fa;
  --bg-gradient-end: #f7fbfd;
  --fg: #2a3e4f;
  --muted: #7a8b99;
  --line: #d8e7f0;
  --card: #ffffff;
  --accent: #5ab4dc;
  --accent-soft: #a8d8ed;
  --accent-pale: #e1f0f8;
  --shadow: 0 8px 24px rgba(90, 180, 220, 0.12);
  --shadow-hover: 0 12px 32px rgba(90, 180, 220, 0.22);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 760px;
  --font-jp: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans",
             "Yu Gothic UI", "Meiryo", sans-serif;
  --font-en: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #122029;
    --bg-gradient-start: #0e1a23;
    --bg-gradient-end: #182835;
    --fg: #e6eef4;
    --muted: #8aa0b0;
    --line: #243643;
    --card: #1a2b38;
    --accent: #7cc5e8;
    --accent-soft: #4e8aa8;
    --accent-pale: #1e3543;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* 波の装飾（ページ上部） */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(168, 216, 237, 0.25) 0%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

/* 泡の装飾 */
body::after {
  content: "";
  position: fixed;
  bottom: -100px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(168, 216, 237, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

main, .site-header, .site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 36px;
  padding-bottom: 28px;
  margin-bottom: 32px;
}
.site-title {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.site-title a {
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.site-title a::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent) 100%);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.site-nav a {
  margin-left: 24px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.site-nav a:hover {
  background: var(--accent-pale);
  color: var(--accent);
  text-decoration: none;
}
.site-nav a[aria-current="page"] {
  background: var(--accent-pale);
  color: var(--accent);
}

/* Intro */
.intro {
  margin-bottom: 64px;
  padding: 36px 32px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.intro::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, var(--accent-pale) 0%, transparent 70%);
  border-radius: 50%;
}
.tagline {
  font-size: 1.1rem;
  color: var(--fg);
  line-height: 2;
  margin: 0;
  position: relative;
}
.tagline strong {
  color: var(--accent);
  font-weight: 700;
  background: linear-gradient(transparent 65%, var(--accent-pale) 65%);
  padding: 0 4px;
}

/* セクション見出し */
.works h2,
.page h2 {
  font-size: 1.5rem;
  margin: 0 0 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}
.works h2::before,
.page h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 28px;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  border-radius: 4px;
}

/* Works empty state */
.works .empty {
  color: var(--muted);
  font-style: normal;
  padding: 48px 24px;
  text-align: center;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}
.works .empty::before {
  content: "🐬";
  display: block;
  font-size: 2.5rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 8px rgba(90, 180, 220, 0.3));
}

/* Works list (作品が増えたら使う) */
.work-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}
.work-card a {
  display: block;
  padding: 24px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--fg);
  transition: transform 0.2s, box-shadow 0.2s;
}
.work-card a:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.work-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
}
.work-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 10px;
}
.work-desc { margin: 0; color: var(--fg); }

/* About / Privacy / generic page */
.page {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 36px;
}
.page h3 {
  font-size: 1.1rem;
  margin: 32px 0 14px;
  font-weight: 700;
  color: var(--accent);
}
.page h3::before {
  content: "♡ ";
  color: var(--accent-soft);
}
.page p, .page ul { margin: 0 0 16px; }
.page ul { padding-left: 24px; }
.page ul li { margin-bottom: 6px; }
.page .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.page code {
  background: var(--accent-pale);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: 600;
}

/* About のアイコン枠（将来使う） */
.profile-icon {
  display: flex;
  justify-content: center;
  margin: 0 0 24px;
}
.profile-icon img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  box-shadow: var(--shadow);
  border: 4px solid var(--card);
}

/* 404 */
.not-found {
  text-align: center;
  padding: 80px 0;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.not-found h2 {
  font-size: 5rem;
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 700;
}
.not-found p { margin: 8px 0; }

/* Footer */
.site-footer {
  margin-top: 96px;
  padding-top: 32px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* Mobile */
@media (max-width: 600px) {
  .site-header {
    padding-top: 24px;
    padding-bottom: 20px;
  }
  .site-title { font-size: 1.25rem; }
  .site-nav a { margin-left: 12px; padding: 6px 10px; font-size: 0.9rem; }
  .intro { padding: 28px 24px; }
  .page { padding: 28px 24px; }
  .tagline { font-size: 1rem; }
}
