/* Tokens based on design-mood.yaml (unikoukokun.com abstraction) */
:root {
  --bg: #fffaef;            /* neutral_background: off-white/cream */
  --surface: #ffffff;
  --text: #212529;          /* neutral_text */
  --text-muted: #6c757d;
  --primary: #f57905;       /* primary: warm orange */
  --primary-soft: #fff1e0;
  --secondary: #0088cc;     /* secondary: trust blue (AIツールタグ等) */
  --secondary-soft: #e6f5fc;
  --action: #22c55e;        /* action: vivid green (main CTA) */
  --action-dark: #16a34a;
  --alert: #ff0000;         /* alert_highlight: pure red */
  --border: #f0e6d8;
  --dark-bg: #111111;       /* inverted_section */
  --dark-text: #ffffff;
  --radius: 20px;
  --max-width: 960px;
  --shadow-soft: 0 12px 28px rgba(33, 37, 41, 0.08);
}

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

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 250, 239, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.nav { display: flex; gap: 28px; }

.nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav a:hover { color: var(--primary); }

/* Hero */
.hero {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 24px 90px;
  text-align: center;
}

.sparkle {
  position: absolute;
  font-size: 1.6rem;
  opacity: 0.8;
}

.sparkle-left {
  top: 60px;
  left: calc(50% - 190px);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 4rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

.hero-highlight { color: var(--primary); }

.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 20px;
}

.hero-meta-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--secondary);
  background: var(--secondary-soft);
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 32px;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-cta {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 999px;
  background: var(--action);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  background: var(--action-dark);
  box-shadow: 0 14px 28px rgba(34, 197, 94, 0.4);
}

.hero-cta-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: none;
}

.hero-cta-outline:hover {
  background: var(--primary-soft);
  transform: translateY(-2px);
  box-shadow: none;
}

.scroll-cue {
  margin: 48px auto 0;
  width: 22px;
  height: 34px;
  border: 2px solid var(--border);
  border-radius: 999px;
  position: relative;
}

.scroll-cue span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  transform: translateX(-50%);
  animation: scroll-bounce 1.6s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translate(-50%, 0); opacity: 1; }
  50% { transform: translate(-50%, 10px); opacity: 0.4; }
}

/* Section shared */
.section-title {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.section-desc {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.works, .about, .process, .ai-stack, .timeline-section, .notes {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 70px 24px;
}

.process, .ai-stack, .timeline-section, .notes {
  text-align: center;
}

.process .section-desc, .ai-stack .section-desc, .timeline-section .section-desc, .notes .section-desc {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Work grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.work-thumb {
  background: var(--primary-soft);
  padding: 28px 28px 0;
}

.work-thumb img {
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
}

.work-body { padding: 24px 28px 28px; }

.work-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.work-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.work-subtitle {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.work-process {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 18px;
}

.work-process li { display: flex; align-items: center; }

.work-process li:not(:last-child)::after {
  content: "→";
  margin: 0 8px;
  color: var(--text-muted);
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: 10px;
}

.work-tags:last-of-type { margin-bottom: 20px; }

.work-tags li {
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}

.work-tags-ai li {
  background: var(--secondary-soft);
  color: var(--secondary);
}

.work-links { display: flex; gap: 10px; }

.work-link {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--action);
  color: #fff;
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}

.work-link:hover { transform: translateY(-2px); background: var(--action-dark); }

.work-link-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: none;
}

.work-link-outline:hover { background: var(--primary-soft); transform: translateY(-2px); }

/* Empty placeholder card */
.work-card-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border-style: dashed;
  border-color: #e5c9a8;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: transparent;
}

.work-card-empty:hover { transform: none; box-shadow: none; }

/* About — inverted section for light/dark rhythm */
.about-inverted {
  max-width: none;
  background: var(--dark-bg);
  color: var(--dark-text);
  padding: 80px 24px;
  text-align: center;
}

.about-inverted .section-title,
.about-inverted .about-text { color: var(--dark-text); }

.about-inverted .about-text { color: rgba(255, 255, 255, 0.75); max-width: 520px; margin: 0 auto; }

/* Process — numbered steps */
.process-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin: 40px 0 48px;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 120px;
}

.step-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.05rem;
}

.step-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

/* Process — chat log */
.chat-log {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
  margin: 0 auto 48px;
  text-align: left;
}

.chat-msg {
  padding: 14px 20px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 85%;
}

.chat-speaker {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  opacity: 0.65;
  text-transform: uppercase;
}

.chat-msg-user {
  align-self: flex-start;
  background: var(--primary-soft);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-msg-ai {
  align-self: flex-end;
  background: var(--secondary-soft);
  color: var(--text);
  border-bottom-right-radius: 4px;
}

/* Process — stats (dark rhythm block) */
.process-stats {
  background: var(--dark-bg);
  color: var(--dark-text);
  border-radius: var(--radius);
  padding: 44px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  text-align: center;
  margin-bottom: 44px;
}

.stat-value {
  font-size: 1.7rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.process-cta { text-align: center; }

/* AI Stack */
.ai-tool-card {
  padding: 30px 26px;
  text-align: center;
}

.ai-tool-icon {
  font-size: 2.1rem;
  margin-bottom: 14px;
}

.ai-tool-usage {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.ai-tool-badge {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
}

/* Timeline */
.timeline {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.timeline-item { display: flex; gap: 20px; }

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 14px;
  flex-shrink: 0;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 6px;
}

.timeline-line {
  flex: 1;
  width: 2px;
  background: var(--border);
  margin-top: 4px;
}

.timeline-item:last-child .timeline-line { display: none; }

.timeline-content { padding-bottom: 36px; }

.timeline-year {
  font-weight: 900;
  color: var(--primary);
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.timeline-tool {
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-outcome {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Notes */
.notes-list {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.note-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.note-item:last-child { border-bottom: none; }

.note-title {
  font-weight: 800;
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.note-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.note-date {
  font-size: 0.76rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 6px;
}

.note-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--border);
  color: var(--text-muted);
  vertical-align: middle;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  text-align: center;
}

.footer-title {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 700;
}

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-built-badge {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 10px;
}

@media (max-width: 600px) {
  .hero { padding: 90px 20px 70px; }
  .nav { gap: 16px; }
  .sparkle-left { left: 20px; top: 20px; }
  .process-steps { gap: 20px; }
  .process-stats { padding: 32px 20px; }
  .chat-msg { max-width: 100%; }
}
