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

:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #6b7280;
  --color-accent: #3b6ef6;
  --color-accent-light: #eff3fe;
  --color-border: #e5e7eb;
  --radius: 12px;
  --max-width: 860px;
  --nav-height: 64px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  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%;
  border-radius: var(--radius);
}

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

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  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 {
  font-size: 14px;
  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;
}

/* Main Layout */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 96px;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 48px 0 64px;
  border-bottom: 1px solid var(--color-border);
}

.hero__text {}

.hero__eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero__name {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero__tagline {
  font-size: 18px;
  color: var(--color-muted);
  margin-bottom: 28px;
  max-width: 480px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: #2a5ce0;
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
  margin-left: 12px;
}

.btn--ghost:hover {
  background: var(--color-accent-light);
  text-decoration: none;
}

.hero__avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--color-border);
}

.hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

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

.section:last-child {
  border-bottom: none;
}

.section__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.section__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

/* About */
.about__body {
  font-size: 16px;
  color: var(--color-muted);
  max-width: 640px;
  line-height: 1.85;
}

.about__body p + p {
  margin-top: 16px;
}

/* Skills */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.skill-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

/* Works Grid */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

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

.work-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.work-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 0;
}

.work-card__body {
  padding: 18px 20px 20px;
}

.work-card__category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.work-card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.work-card__desc {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.65;
}

/* Hobbies */
.hobbies-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.hobby-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.hobby-item__icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}

.hobby-item__name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.hobby-item__desc {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.55;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

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

.contact-info__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.contact-info__body {
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

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

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--color-text);
  font-weight: 500;
}

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

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.form__input,
.form__textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color 0.2s;
  outline: none;
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(59, 110, 246, 0.12);
}

.form__textarea {
  resize: vertical;
  min-height: 140px;
}

/* Page Header */
.page-header {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 8px;
}

.page-header__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.page-header__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.page-header__desc {
  font-size: 17px;
  color: var(--color-muted);
  max-width: 520px;
}

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

/* Responsive */
@media (max-width: 640px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__avatar {
    margin: 0 auto;
    width: 140px;
    height: 140px;
    order: -1;
  }

  .hero__tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
