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

:root {
  --bg: #fafaf8;
  --bg-alt: #f2efe9;
  --text: #1a1a1a;
  --text-muted: #6b6460;
  --accent: #5c8a6e;
  --accent-hover: #487059;
  --border: #e0dbd4;
  --white: #ffffff;
  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(0,0,0,0.07);
  --shadow-hover: 0 6px 28px rgba(0,0,0,0.12);
  --transition: 0.25s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Header / Nav ===== */
header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo span {
  color: var(--accent);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ===== Main ===== */
main {
  flex: 1;
}

/* ===== Hero ===== */
.hero {
  background-color: var(--bg-alt);
  padding: 6rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.hero h1 .en {
  display: block;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.hero-role {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero p {
  max-width: 560px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

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

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(92,138,110,0.3);
}

.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== Section ===== */
section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ===== About Grid ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-content .section-title {
  margin-bottom: 1rem;
}

.about-text {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.9;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag {
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.3rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== Info List ===== */
.info-list {
  list-style: none;
  margin: 1.5rem 0;
}

.info-list li {
  display: flex;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}

.info-list li .label {
  color: var(--text-muted);
  min-width: 80px;
  font-weight: 500;
}

/* ===== Works Grid ===== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

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

.work-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.work-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.work-card-body {
  padding: 1.25rem;
}

.work-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.work-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.work-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Hobbies ===== */
.hobbies-section {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hobbies-section section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.hobby-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.hobby-card:hover {
  box-shadow: var(--shadow);
}

.hobby-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.hobby-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.hobby-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Page Hero (sub pages) ===== */
.page-hero {
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem 3rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===== Contact ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-links li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.93rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.contact-links li a:hover {
  color: var(--accent);
}

.contact-links .icon {
  font-size: 1.1rem;
  width: 1.5rem;
  text-align: center;
}

/* ===== Form ===== */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.25rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.93rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(92,138,110,0.15);
}

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

/* ===== Footer ===== */
footer {
  background-color: var(--text);
  color: #aaa;
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
}

footer a {
  color: var(--accent);
}

/* ===== Divider ===== */
.divider {
  width: 40px;
  height: 3px;
  background-color: var(--accent);
  border: none;
  margin: 1rem 0 1.5rem;
  border-radius: 2px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .about-grid,
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-inner {
    padding: 0 1.25rem;
  }

  nav ul {
    gap: 1.25rem;
  }

  section {
    padding: 3.5rem 1.25rem;
  }

  .hero {
    padding: 4rem 1.25rem;
  }
}

@media (max-width: 480px) {
  nav ul li a {
    font-size: 0.82rem;
  }

  .works-grid,
  .hobby-grid {
    grid-template-columns: 1fr;
  }
}
