:root {
  --bg: #fafaf7;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-muted: #9b9b9b;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --border: #e8e6e1;
  --border-soft: #f0eeea;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s ease;
}
a:hover { opacity: 0.7; }

/* ===== Hero ===== */
.hero {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  background: #1a1a1a;
}

.hero-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 24px 56px;
  max-width: 880px;
  margin: 0 auto;
  color: #fff;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.05;
}

.hero-tagline {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.profile-icon {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: -44px 0 0 calc((100vw - 832px) / 2 + 24px);
  border: 4px solid var(--bg);
  background: var(--bg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  z-index: 2;
}
@media (max-width: 880px) {
  .profile-icon { margin-left: 24px; }
}

/* ===== Layout ===== */
main {
  max-width: 832px;
  margin: 0 auto;
  padding: 32px 24px 120px;
}

section { margin: 56px 0; }
section:first-of-type { margin-top: 24px; }

.eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

h1, h2, h3 { letter-spacing: -0.01em; }

h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 24px;
  line-height: 1.2;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 8px;
}

p { margin: 8px 0; color: var(--text); }

.lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 20px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 15px;
  margin-top: 8px;
}
.text-link::after {
  content: "→";
  transition: transform 0.2s ease;
}
.text-link:hover::after { transform: translateX(3px); }

/* ===== Timeline (経歴) ===== */
.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding: 6px 0 18px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.timeline-period {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.timeline-role {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.timeline-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.skillmap {
  display: block;
  width: 100%;
  height: auto;
  margin: 32px 0 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
}

/* ===== SNS Cards ===== */
.sns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 20px;
}

.sns-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  color: var(--text);
}
.sns-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  opacity: 1;
}
.sns-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}
.sns-meta { min-width: 0; }
.sns-name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
}
.sns-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

/* ===== Featured callout (Meety) ===== */
.featured {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.featured a { color: #fff; }
.featured-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 600;
}
.featured-title { font-size: 16px; font-weight: 600; margin-top: 2px; }
.featured-arrow {
  flex-shrink: 0;
  font-size: 22px;
  opacity: 0.9;
}

/* ===== Hobby Cards ===== */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.hobby-card {
  display: block;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  color: var(--text);
}
.hobby-card:hover {
  border-color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  opacity: 1;
}
.hobby-emoji { font-size: 22px; line-height: 1; margin-bottom: 8px; }
.hobby-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.hobby-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ===== Talks / Articles list ===== */
.talks-list {
  display: flex;
  flex-direction: column;
}
.talks-item {
  display: block;
  padding: 18px 0;
  border-top: 1px solid var(--border-soft);
  color: var(--text);
}
.talks-item:first-child { border-top: 0; }
.talks-item:hover { opacity: 1; }
.talks-item-link:hover .talks-title { color: var(--accent); }
.talks-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.talks-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 11px;
}
.talks-date { font-weight: 500; letter-spacing: 0.02em; }
.talks-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  margin: 0 0 4px;
  transition: color 0.15s ease;
}
.talks-venue {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* ===== Contact ===== */
.contact-card {
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-card ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
}
.contact-card li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-secondary);
}
.contact-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ===== Subpages ===== */
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-weight: 500;
}
.back::before { content: "←"; }
.back:hover { color: var(--text); opacity: 1; }

.page-title {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  line-height: 1.15;
}

.project-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.project-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 6px;
}
.project-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
}
.project-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 12px 0;
  margin-bottom: 12px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
}
.project-meta-label {
  color: var(--text-muted);
  margin-right: 8px;
}
.project-list {
  margin: 12px 0 0;
  padding-left: 20px;
}
.project-list li {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 4px 0;
}

/* ===== Footer ===== */
.footer {
  padding: 40px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-soft);
  margin-top: 80px;
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .hero { height: 280px; }
  .hero-title { font-size: 40px; }
  .hero-tagline { font-size: 16px; }
  .hero-content { padding-bottom: 40px; }
  main { padding: 24px 20px 80px; }
  section { margin: 40px 0; }
  h2 { font-size: 24px; }
  .page-title { font-size: 32px; }
  .sns-grid { grid-template-columns: 1fr; }
  .hobby-grid { grid-template-columns: 1fr; }
  .contact-card ul { grid-template-columns: 1fr; }
  .project-card { padding: 20px; }
  .project-meta { flex-direction: column; gap: 6px; }
}
