@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Lato:wght@400;600&display=swap');

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

:root {
  /* Brand */
  --brand-cyan:      #21bddb;
  --brand-cyan-dark: #1294ad;
  --brand-cyan-deep: #006f8e;

  /* Text — translucent black scale */
  --text-primary:    rgba(0, 0, 0, 0.84);
  --text-secondary:  rgba(0, 0, 0, 0.74);
  --text-tertiary:   rgba(0, 0, 0, 0.56);
  --text-quaternary: rgba(0, 0, 0, 0.4);
  --text-disabled:   rgba(0, 0, 0, 0.24);
  --text-heading:    #24282a;
  --text-helper:     #9e9e9e;

  /* Surfaces (cute pink theme) */
  --surface-0: #fff5f8;
  --surface-1: #ffe4ec;
  --surface-2: #ffd1dc;
  --surface-3: rgba(255, 105, 140, 0.08);

  /* Shadows */
  --shadow-cta:  rgba(0, 0, 0, 0.02) 0 0 0 1px, rgba(0, 0, 0, 0.1) 0 2px 6px 0;
  --shadow-pill: rgba(0, 0, 0, 0.02) 0 0 0 1px, rgba(0, 0, 0, 0.1) 0 0 0 1px;

  /* Font stacks */
  --font-heading: Poppins, "Helvetica Neue", Helvetica, Arial,
    "Hiragino Sans", ヒラギノ角ゴシック, "Hiragino Kaku Gothic ProN",
    "ヒラギノ角ゴ Pro W3", "Noto Sans JP", Roboto,
    メイリオ, Meiryo, "ＭＳ Ｐゴシック", sans-serif;

  --font-body: "Helvetica Neue", Helvetica, Arial,
    "Hiragino Sans", ヒラギノ角ゴシック, "Hiragino Kaku Gothic ProN",
    "ヒラギノ角ゴ Pro W3", Roboto,
    メイリオ, Meiryo, "ＭＳ Ｐゴシック", sans-serif;

  --font-form: Lato, "Helvetica Neue", Helvetica,
    "Hiragino Sans", "ヒラギノ角ゴシック Pro", "Hiragino Kaku Gothic Pro",
    メイリオ, Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;

  /* Spacing (8px grid) */
  --space-xs:  4px;
  --space-s:   8px;
  --space-m:  16px;
  --space-l:  24px;
  --space-xl: 48px;
  --space-xxl: 72px;

  /* Border Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-pill: 100px;

  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--surface-0);
  color: var(--text-heading);
  font-size: 14px;
  line-height: 1.57;
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
}

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

a {
  color: var(--brand-cyan-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface-0);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-l);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-heading);
}

.nav__logo:hover {
  color: var(--brand-cyan);
  text-decoration: none;
}

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  transition: color 0.15s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--brand-cyan);
  text-decoration: none;
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-l);
}

.section {
  padding: var(--space-xxl) 0;
  background: var(--surface-0);
}

.section--alt {
  background: var(--surface-1);
}

/* ===== Typography ===== */
.page-title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-quaternary);
  margin-bottom: var(--space-xl);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-heading);
  margin-bottom: var(--space-xl);
}

/* ===== Hero ===== */
.hero {
  padding: 100px 0 80px;
  background: var(--surface-0);
}

.hero__label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-cyan-dark);
  background: rgba(33, 189, 219, 0.12);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-m);
}

.hero__name {
  font-family: var(--font-heading);
  font-size: 72px;
  font-weight: 700;
  line-height: 1.33;
  color: var(--text-heading);
  margin-bottom: var(--space-m);
}

.hero__tagline {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.014em;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 560px;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-s);
  background: var(--brand-cyan);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-cta);
  transition: opacity 0.15s;
}

.hero__cta:hover {
  opacity: 0.86;
  text-decoration: none;
}

/* ===== Profile ===== */
.profile {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.profile__avatar {
  border-radius: 50%;
  overflow: hidden;
  width: 200px;
  height: 200px;
}

.profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile__bio {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.57;
  color: var(--text-primary);
}

.profile__bio p + p {
  margin-top: var(--space-m);
}

/* ===== Tags ===== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-top: var(--space-m);
}

.tag {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-cyan-dark);
  background: rgba(33, 189, 219, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

/* ===== Section more link ===== */
.section-more {
  margin-top: var(--space-l);
  font-size: 14px;
}

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

.card {
  background: var(--surface-0);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.08) 0 0 0 1px;
  transition: box-shadow 0.15s;
}

.card:hover {
  box-shadow: rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(0, 0, 0, 0.1) 0 8px 24px 0;
}

.card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card__body {
  padding: var(--space-l);
}

.card__category {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-helper);
  margin-bottom: var(--space-xs);
}

.card__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--text-heading);
  margin-bottom: var(--space-s);
}

.card__desc {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.57;
  color: var(--text-primary);
}

/* ===== Hobby List ===== */
.hobby-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-m);
}

.hobby-item {
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: var(--space-l);
  display: flex;
  gap: var(--space-m);
  align-items: flex-start;
}

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

.hobby-item__title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text-heading);
  margin-bottom: var(--space-xs);
}

.hobby-item__text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.57;
  color: var(--text-quaternary);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-info__item {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  padding: var(--space-m) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
}

.contact-info__label {
  font-weight: 600;
  min-width: 80px;
  color: var(--text-helper);
  white-space: nowrap;
}

.contact-photo {
  border-radius: var(--radius-md);
  width: 100%;
}

/* ===== Form ===== */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-quaternary);
}

.form__input {
  font-family: var(--font-form);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.71;
  padding: 6px 12px;
  height: 39px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  color: var(--text-primary);
  outline: none;
  transition: background 0.15s;
}

.form__input:focus {
  background: rgba(0, 0, 0, 0.09);
}

.form__textarea {
  font-family: var(--font-form);
  font-size: 14px;
  font-weight: 400;
  padding: 6px 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  background: transparent;
  color: #000000;
  outline: none;
  min-height: 140px;
  resize: vertical;
  transition: border-color 0.15s;
}

.form__textarea:focus {
  border-color: var(--brand-cyan);
}

/* ===== Button ===== */
.btn {
  display: inline-block;
  padding: 10px 16px;
  background: var(--brand-cyan);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-cta);
  transition: opacity 0.15s;
  align-self: flex-start;
}

.btn:hover {
  opacity: 0.86;
}

/* ===== Footer ===== */
.footer {
  background: var(--surface-0);
  text-align: center;
  padding: var(--space-xxl) var(--space-l) 12px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 2.29;
  color: var(--text-secondary);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero__name {
    font-size: 40px;
  }

  .hero__tagline {
    font-size: 18px;
  }

  .section-heading,
  .page-title {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 60px 0;
  }

  .hero__name {
    font-size: 36px;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .profile {
    grid-template-columns: 1fr;
  }

  .profile__avatar {
    width: 140px;
    height: 140px;
  }

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

  .nav__links {
    gap: 20px;
  }
}
