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

:root {
  --color-bg: #fafaf8;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #6b7280;
  --color-accent: #3b5bdb;
  --color-accent-light: #e8eeff;
  --color-border: #e5e7eb;
  --font-sans: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --max-width: 860px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: 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%;
}

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

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

.nav-logo {
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text);
  letter-spacing: 0.02em;
}
.nav-logo:hover {
  text-decoration: none;
  color: var(--color-accent);
}

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

.nav-links a {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
  text-decoration: none;
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.page-body {
  padding: 64px 0 120px;
}

/* ===== Hero (index) ===== */
.hero {
  padding: 80px 24px 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-photo img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-text h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 6px;
}

.hero-text .subtitle {
  font-size: 15px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-text p {
  color: var(--color-muted);
  max-width: 480px;
  font-size: 15px;
}

/* ===== Section ===== */
.section {
  margin-bottom: 64px;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.section-heading {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

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

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

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

.card-body {
  padding: 18px;
}

.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--color-accent-light);
  color: var(--color-accent);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}

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

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

/* ===== Skills / tags list ===== */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
}

/* ===== Profile table ===== */
.profile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.profile-table tr {
  border-bottom: 1px solid var(--color-border);
}
.profile-table th {
  width: 130px;
  text-align: left;
  padding: 14px 0;
  color: var(--color-muted);
  font-weight: 600;
}
.profile-table td {
  padding: 14px 0;
}

/* ===== Contact form ===== */
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 560px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.12);
}

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

.btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-family: var(--font-sans);
}
.btn:hover {
  background: #2f4ac7;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ===== SNS links ===== */
.sns-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sns-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s;
}
.sns-item:hover {
  border-color: var(--color-accent);
  text-decoration: none;
}

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

.sns-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}
.sns-info span {
  font-size: 12px;
  color: var(--color-muted);
}

/* ===== Hobby timeline ===== */
.hobby-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hobby-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.hobby-icon {
  font-size: 28px;
  width: 56px;
  height: 56px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.hobby-text h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hobby-text p {
  font-size: 13px;
  color: var(--color-muted);
}

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

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 48px 24px 40px;
    gap: 32px;
  }
  .hero-text p {
    margin: 0 auto;
  }
  .hero-text h1 {
    font-size: 28px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 28px 20px;
  }
  .nav-links {
    gap: 20px;
  }
}
