:root {
  --bg: #FAF7F4;
  --card: #FFFFFF;
  --text: #2D2832;
  --heading: #3D2E38;
  --sub: #5C4553;
  --accent: #D4856A;
  --muted: #777777;
  --placeholder: #E0D5CC;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.container {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 20px 32px;
}

/* ---------- Profile ---------- */
.profile {
  text-align: center;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.05s;
}

.profile__image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  background-color: var(--placeholder);
}

.profile__greeting {
  margin: 0 0 12px;
  font-family: "Caveat", cursive;
  font-size: 32px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.profile__name {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #5C4553;
}

.profile__title {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--sub);
}

/* ---------- Socials ---------- */
.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-top: 20px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.15s;
}

.socials__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--text);
  transition: opacity 0.2s ease, color 0.2s ease;
}

.socials__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.socials__item--x img {
  width: 82%;
  height: 82%;
}

.socials__item:hover {
  opacity: 0.7;
  color: var(--accent);
}

/* ---------- Bio ---------- */
.bio {
  max-width: 420px;
  margin: 28px auto 0;
  text-align: center;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.25s;
}

.bio p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--sub);
}

/* ---------- Links ---------- */
.links {
  max-width: 560px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--card);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

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

.card:nth-of-type(1) {
  animation-delay: 0.35s;
}

.card:nth-of-type(2) {
  animation-delay: 0.45s;
}

.card:nth-of-type(3) {
  animation-delay: 0.55s;
}

.card__icon {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: contain;
  background-color: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.card__body {
  min-width: 0;
}

.card__title {
  font-weight: 600;
  font-size: 16px;
  color: var(--heading);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card__desc {
  margin-top: 2px;
  font-size: 13px;
  color: var(--sub);
  line-height: 1.4;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 40px;
  text-align: center;
  color: var(--muted);
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.65s;
}

.footer small {
  font-size: 12px;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile,
  .socials,
  .bio,
  .card,
  .footer {
    opacity: 1;
    animation: none;
  }
  .card:hover {
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .container {
    padding-top: 64px;
  }

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

  .profile__name {
    font-size: 32px;
  }
}
