/* ---------- Base ---------- */
:root {
  --color-bg: #fafaf7;
  --color-text: #1f1f1f;
  --color-muted: #6b6b6b;
  --color-accent: #3b6ef7;
  --color-border: #e6e6e2;
  --color-card: #ffffff;
  --radius: 12px;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  --max-width: 960px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  opacity: 0.7;
}

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

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

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

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

.nav-list a {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.nav-list a:hover,
.nav-list a.active {
  border-bottom-color: var(--color-accent);
  opacity: 1;
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 60px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
}

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

.hero-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  color: var(--color-muted);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 1rem;
  color: var(--color-text);
  max-width: 540px;
}

/* ---------- Sections ---------- */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 32px;
  padding-left: 12px;
  border-left: 4px solid var(--color-accent);
}

.about-text p + p {
  margin-top: 14px;
}

/* ---------- Skills / Tags ---------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.tag-list li {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--color-text);
}

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

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

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

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

.work-card-body {
  padding: 18px 20px 22px;
}

.work-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.work-card p {
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* ---------- Hobby ---------- */
.hobby-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  list-style: none;
}

.hobby-list li {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.hobby-list h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.hobby-list p {
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* ---------- Contact ---------- */
.contact-intro {
  color: var(--color-muted);
  margin-bottom: 36px;
  max-width: 600px;
}

.contact-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 48px;
}

.contact-list li {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.contact-list .label {
  font-size: 0.8rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.contact-list .value {
  font-size: 1rem;
  font-weight: 500;
}

/* ---------- Form ---------- */
.contact-form {
  display: grid;
  gap: 18px;
  max-width: 560px;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background-color: var(--color-card);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
}

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

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

.btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: #fff;
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  justify-self: start;
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .site-header .container {
    flex-direction: column;
    gap: 14px;
  }

  .nav-list {
    gap: 20px;
  }

  .hero {
    padding: 50px 0 30px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .hero-photo {
    margin: 0 auto;
    width: 160px;
    height: 160px;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .section {
    padding: 40px 0;
  }
}
