* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    "Hiragino Maru Gothic ProN",
    "Yu Gothic",
    system-ui,
    sans-serif;
  background:
    radial-gradient(circle at 15% 10%, #fff08a 0 11%, transparent 12%),
    radial-gradient(circle at 85% 16%, #8ed7ff 0 10%, transparent 11%),
    radial-gradient(circle at 75% 82%, #ffe66d 0 12%, transparent 13%),
    linear-gradient(135deg, #fff8c9 0%, #e7f6ff 45%, #fffef4 100%);
  color: #21324a;
  overflow-x: hidden;
}

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

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 32px));
  height: 68px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.72);
  border: 3px solid #21324a;
  border-radius: 999px;
  box-shadow: 0 8px 0 #21324a;
  backdrop-filter: blur(14px);
  z-index: 50;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #ffe66d;
  border: 2px solid #21324a;
  border-radius: 50%;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 0.85rem;
  font-weight: 800;
}

.nav a {
  padding: 8px 10px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav a:hover {
  background: #ffe66d;
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 170px 7vw 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-badge {
  width: fit-content;
  margin-bottom: 22px;
  padding: 10px 16px;
  background: #5ebcff;
  color: #fff;
  border: 3px solid #21324a;
  border-radius: 999px;
  box-shadow: 5px 5px 0 #21324a;
  font-weight: 900;
}

.hero h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(2.7rem, 13vw, 4.4rem);

  line-height: 1.12;

  letter-spacing: -0.04em;

  max-width: 100%;
  color: #21324a;
  text-shadow:
    4px 4px 0 #ffe66d,
    7px 7px 0 #8ed7ff;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 610px;
  margin: 36px 0 0;
  font-size: 1rem;
  line-height: 2;
  font-weight: 700;
  color: rgba(33, 50, 74, 0.78);
}

.hero-buttons {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 14px 22px;
  border: 3px solid #21324a;
  border-radius: 999px;
  box-shadow: 5px 5px 0 #21324a;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 #21324a;
}

.btn.main {
  background: #ffe66d;
}

.btn.sub {
  background: #ffffff;
}

.floating-card {
  position: absolute;
  z-index: 1;
  width: 210px;
  padding: 18px;
  background: #ffffff;
  border: 3px solid #21324a;
  border-radius: 26px;
  box-shadow: 8px 8px 0 #21324a;
  transform: rotate(-4deg);
}

.floating-card span {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 10px;
  background: #ffe66d;
  border: 2px solid #21324a;
  border-radius: 999px;
  font-weight: 900;
}

.floating-card p {
  margin: 0;
  font-weight: 800;
  line-height: 1.5;
}

.card-one {
  top: 28%;
  right: 9vw;
}

.card-two {
  right: 18vw;
  bottom: 16%;
  transform: rotate(5deg);
}

.card-two span {
  background: #8ed7ff;
}

.bubble {
  position: absolute;
  border: 3px solid #21324a;
  border-radius: 50%;
  box-shadow: 5px 5px 0 #21324a;
}

.bubble-yellow {
  width: 72px;
  height: 72px;
  background: #ffe66d;
  top: 18%;
  left: 8%;
}

.bubble-blue {
  width: 96px;
  height: 96px;
  background: #8ed7ff;
  right: 6%;
  top: 55%;
}

.bubble-small {
  width: 38px;
  height: 38px;
  background: #ffffff;
  left: 52%;
  bottom: 18%;
}

.section {
  padding: 110px 7vw;
}

.section-label {
  width: fit-content;
  margin: 0 0 20px;
  padding: 8px 14px;
  background: #ffe66d;
  border: 3px solid #21324a;
  border-radius: 999px;
  box-shadow: 4px 4px 0 #21324a;
  font-size: 0.8rem;
  font-weight: 900;
}

.section h2 {
  margin: 0 0 24px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

.section p {
  max-width: 760px;
  font-size: 1rem;
  line-height: 2;
  font-weight: 700;
  color: rgba(33, 50, 74, 0.78);
}

.about {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.7), rgba(255,255,255,0.35));
  border-top: 3px solid #21324a;
  border-bottom: 3px solid #21324a;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 44px;
}

.work-card {
  min-height: 360px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 4px solid #21324a;
  border-radius: 34px;
  box-shadow: 10px 10px 0 #21324a;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover {
  transform: translate(5px, 5px) rotate(-1deg);
  box-shadow: 5px 5px 0 #21324a;
}

.work-card.estp:hover {
  transform: translate(5px, 5px) rotate(1deg);
}

.work-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  background: #ffe66d;
  border: 3px solid #21324a;
  border-radius: 20px;
  box-shadow: 5px 5px 0 #21324a;
  font-size: 1.7rem;
}

.work-card.estp .work-icon {
  background: #8ed7ff;
}

.work-type {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
  color: #5b86c8;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.work-card h3 {
  margin: 0 0 14px;
  font-size: 2.4rem;
  letter-spacing: -0.05em;
}

.work-card p {
  margin: 0;
  line-height: 1.8;
}

.work-card span {
  margin-top: auto;
  padding-top: 28px;
  font-weight: 900;
  color: #21324a;
}

.profile {
  margin: 0 7vw 90px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 34px;
  align-items: center;
  background: #fff;
  border: 4px solid #21324a;
  border-radius: 38px;
  box-shadow: 12px 12px 0 #21324a;
}

.profile-stamp {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle, #ffe66d 0 38%, #8ed7ff 39% 70%, #fff 71%);
  border: 4px solid #21324a;
  border-radius: 50%;
  transform: rotate(8deg);
}

.profile-stamp span {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
}

.profile-stamp small {
  display: block;
  margin-top: 6px;
  font-weight: 900;
}

.footer {
  padding: 0 7vw 48px;
  font-weight: 900;
  color: rgba(33, 50, 74, 0.55);
}

@media (max-width: 860px) {
  .site-header {
    top: 12px;
    width: calc(100% - 24px);
    height: auto;
    min-height: 64px;
    padding: 12px 16px;
  }

  .nav {
    gap: 6px;
    font-size: 0.72rem;
  }

  .hero {
    padding: 140px 24px 80px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 16vw, 5.2rem);
  }

  .floating-card {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    margin-top: 28px;
    width: 100%;
    max-width: 260px;
  }

  .card-two {
    right: auto;
    bottom: auto;
    margin-left: auto;
  }

  .bubble {
    display: none;
  }

  .section {
    padding: 86px 24px;
  }

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

  .work-card {
    min-height: 320px;
    border-radius: 28px;
  }

  .profile {
    margin: 0 24px 76px;
    padding: 30px 24px;
    grid-template-columns: 1fr;
    border-radius: 30px;
  }

  .profile-stamp {
    width: 190px;
    justify-self: center;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 2.65rem;
    letter-spacing: -0.03em;
  }
}
