/* rryz09.github.io — soft, quiet, PetitOnes-ish */
/* palette: pale-yellow ground × lavender text (dark theme: TODO later) */

:root {
  --bg: #fdf8e2;          /* pale yellow */
  --bg-card: #fffdf6;
  --text: #6f5fa0;        /* lavender */
  --text-soft: #9d92bb;
  --accent: #9a6fd0;      /* deeper lavender for links / emphasis */
  --accent-soft: #efe8fa; /* pale lavender fill */
  --mimosa: #f7e9a8;      /* soft yellow fill */
  --line: #efe6cf;
  --radius: 28px;
  --shadow: 0 10px 30px rgba(150, 130, 195, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "BIZ UDGothic",
    "Hiragino Kaku Gothic ProN", "Noto Sans CJK JP", "Noto Sans JP",
    "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  font-size: 16px;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

strong { color: var(--accent); font-weight: 700; }

/* hero */
.hero {
  padding: 80px 0 64px;
  text-align: center;
  background: radial-gradient(ellipse 90% 70% at 50% -10%, var(--accent-soft), transparent 70%);
}

.lang-switch {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-soft);
}

.lang-switch strong {
  padding: 3px 14px;
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
}

.lang-switch a {
  padding: 3px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.lang-switch a:hover {
  color: var(--accent);
  text-decoration: none;
}

.hero-icon {
  width: 128px;
  height: 128px;
  margin: 0 auto 20px;
  display: block;
  border-radius: 58% 42% 55% 45% / 50% 55% 45% 50%;
  background: var(--bg-card);
  box-shadow: var(--shadow), 0 0 0 6px var(--bg-card), 0 0 0 12px var(--accent-soft);
  animation: floaty 5s ease-in-out infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-icon { animation: none; }
}

.hero-kicker {
  font-size: 14px;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
}

.hero h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 8px 0 16px;
}

.hero-lead {
  font-size: 15px;
  color: var(--text-soft);
  letter-spacing: 0.06em;
}

.hero-sub {
  margin-top: 28px;
  font-size: 17px;
}

.hero-nav {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-nav a {
  padding: 7px 18px;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-soft);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}

.hero-nav a:hover { transform: translateY(-2px); }

.hero-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* sections */
section { padding: 64px 0; }
section + section { border-top: 1px dashed var(--line); }

h2 {
  font-size: 22px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

h2::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 58% 42% 55% 45% / 50% 55% 45% 50%;
  background: linear-gradient(135deg, var(--accent), var(--mimosa));
  flex: none;
}

section p + p { margin-top: 16px; }

em { font-style: normal; color: var(--accent); font-weight: 600; }

.en-summary {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: none;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.75;
}

/* project cards */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border: none;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
}

.card h3 { font-size: 17px; margin-bottom: 2px; }

.card-tag {
  font-size: 12.5px;
  color: var(--accent);
  margin-bottom: 10px;
}

.card p:not(.card-tag):not(.card-links) {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-soft);
}

.card-links {
  margin-top: 12px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13.5px;
}

/* career timeline */
.timeline { list-style: none; }

.timeline li {
  display: flex;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}

.tl-when {
  flex: none;
  width: 72px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14.5px;
  padding-top: 2px;
}

.tl-what { flex: 1; }

.sub-h {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--text);
}

.chip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-list li {
  padding: 5px 16px;
  background: var(--accent-soft);
  border: none;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--text);
}

.note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-soft);
}

/* guide list (取説) */
.guide-list {
  list-style: none;
  margin-top: 20px;
}

.guide-list li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
  color: var(--text-soft);
}

.guide-list li:last-child {
  border-bottom: none;
}

/* links */
.link-list { list-style: none; }
.link-list li { padding: 6px 0; }

/* footer */
footer {
  border-top: 1px dashed var(--line);
  padding: 40px 0 56px;
  text-align: center;
  color: var(--text-soft);
  font-size: 13px;
}

/* responsive */
.sp-only { display: none; }

@media (max-width: 640px) {
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 32px; }
  .hero-icon { width: 104px; height: 104px; }
  .cards { grid-template-columns: 1fr; }
  .sp-only { display: inline; }
  section { padding: 48px 0; }
}
