/* ===== Base ===== */
:root {
  --color-bg: #e8f5e9;
  --color-surface: #ffffff;
  --color-text: #1d1d1f;
  --color-muted: #6e6e73;
  --color-accent: #5b6cff;
  --color-accent-soft: #eef0ff;
  --color-border: #e8e8ed;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  --maxw: 960px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a:hover {
  opacity: 0.7;
}

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

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

section {
  padding: 72px 0;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(232, 245, 233, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--color-text);
  opacity: 1;
}

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 88px;
}

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

.hero__title {
  font-size: 2.8rem;
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hero__lead {
  color: var(--color-muted);
  font-size: 1.1rem;
  margin: 0 0 28px;
}

.hero__photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

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

.btn--primary:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(91, 108, 255, 0.35);
}

.btn--ghost {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  margin-left: 12px;
}

.btn--ghost:hover {
  opacity: 1;
}

/* ===== Section heading ===== */
.section-head {
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.section-head p {
  color: var(--color-muted);
  margin: 0;
}

/* ===== Cards / Skills ===== */
.grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

.card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.card p {
  color: var(--color-muted);
  margin: 0;
  font-size: 0.95rem;
}

.card__icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

/* ===== Work cards ===== */
.work-card {
  background: var(--color-surface);
  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__body {
  padding: 22px 24px 26px;
}

.work-card__tag {
  display: inline-block;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.work-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

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

/* ===== Hobby list ===== */
.hobby {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.hobby + .hobby {
  margin-top: 28px;
}

.hobby img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.hobby h3 {
  margin: 0 0 6px;
}

.hobby p {
  margin: 0;
  color: var(--color-muted);
}

/* ===== Contact ===== */
.contact-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 16px;
  text-align: left;
  max-width: 460px;
  margin-inline: auto;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg);
}

.contact-list .label {
  color: var(--color-muted);
  font-size: 0.85rem;
  min-width: 80px;
}

.contact-list .value {
  font-weight: 600;
}

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

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 56px;
  }
  .hero__photo {
    order: -1;
  }
  .hero__title {
    font-size: 2.2rem;
  }
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }
  .nav__links {
    gap: 18px;
  }
  .hobby {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  section {
    padding: 56px 0;
  }
}
