/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #1e3a8a;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #6b7280;
  --color-accent: #3b5bdb;
  --color-accent-light: #eef2ff;
  --color-border: #e5e7eb;
  --font-sans: 'Helvetica Neue', Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
}

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

a:hover {
  text-decoration: underline;
}

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

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

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

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color 0.2s;
}

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

/* Layout */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero {
  padding: 80px 0 64px;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-photo {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-surface);
  box-shadow: var(--shadow);
}

.hero-body h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-body .tagline {
  font-size: 1.05rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-body p {
  color: var(--color-muted);
  max-width: 480px;
}

/* Section */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--color-border);
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.section-title span {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--color-accent);
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

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

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-accent-light);
  color: var(--color-accent);
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
}

/* Skills / List */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-badge {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow);
}

/* About rows */
.about-table {
  width: 100%;
  border-collapse: collapse;
}

.about-table tr + tr td {
  border-top: 1px solid var(--color-border);
}

.about-table td {
  padding: 14px 0;
  font-size: 0.9375rem;
}

.about-table td:first-child {
  width: 140px;
  font-weight: 600;
  color: var(--color-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Page Header */
.page-header {
  padding: 64px 0 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-header p {
  color: var(--color-muted);
  margin-top: 8px;
}

/* Works filter tabs */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.tab {
  padding: 7px 20px;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  transition: all 0.2s;
}

.tab.active,
.tab:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info p {
  color: var(--color-muted);
  margin-bottom: 28px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  transition: transform 0.2s;
}

.contact-link-item:hover {
  transform: translateX(4px);
  text-decoration: none;
  color: var(--color-accent);
}

.contact-icon {
  width: 36px;
  height: 36px;
  background: var(--color-accent-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-form {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-form h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  background: var(--color-bg);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn {
  display: inline-block;
  padding: 11px 28px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: var(--font-sans);
}

.btn:hover {
  background: #2f4bc7;
  transform: translateY(-1px);
}

/* Footer */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Responsive */
@media (max-width: 700px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 48px 0 40px;
  }

  .hero-body h1 {
    font-size: 1.8rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 20px;
  }
}
