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

:root {
  --color-bg: #fdfcfa;
  --color-text: #222;
  --color-muted: #777;
  --color-border: #eae6e0;
  --color-accent: #c97b63;
  --color-accent-dark: #a8624c;
  --color-card: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.06);
  --radius: 8px;
  --container: 1000px;
}

html {
  scroll-behavior: smooth;
}

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

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

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

a:hover {
  color: var(--color-accent-dark);
}

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

section {
  padding: 80px 0;
}

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

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

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

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

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

.site-nav a {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav a.is-active {
  color: var(--color-accent);
}

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 60px;
  text-align: center;
}

.hero-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 32px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.hero-tagline {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 20px;
}

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

/* ---------- Section Heading ---------- */
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.section-subtitle {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 48px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-grid h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--color-accent);
}

.about-grid ul {
  list-style: none;
  padding: 0;
}

.about-grid li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--color-border);
  color: var(--color-text);
}

.about-grid li:last-child {
  border-bottom: none;
}

.about-grid li span {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-right: 12px;
}

/* ---------- Cards Grid (Works) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

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

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

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

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

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

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

/* ---------- Hobbies ---------- */
.hobbies {
  background: #f7f3ee;
}

.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.hobby {
  text-align: center;
}

.hobby img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

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

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

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-info h3 {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f4ece6;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.contact-list .label {
  display: block;
  font-size: 0.78rem;
  color: var(--color-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-list .value {
  display: block;
  color: var(--color-text);
  font-size: 0.95rem;
}

/* ---------- Form ---------- */
.form {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.form h3 {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--color-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 123, 99, 0.15);
}

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

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

.button:hover {
  background: var(--color-accent-dark);
  color: #fff;
}

.button:active {
  transform: translateY(1px);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .header-inner {
    flex-direction: column;
    gap: 12px;
    padding: 16px 24px;
  }

  .site-nav ul {
    gap: 20px;
  }

  .hero {
    padding: 60px 0 40px;
  }

  .hero-avatar {
    width: 140px;
    height: 140px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .form {
    padding: 24px;
  }
}
