:root {
  --background: #f7f8fa;
  --navy: #1f2e4a;
  --pink: #b07b98;
  --pink-text: #95627f;
  --muted: #667085;
  --rule: rgba(31, 46, 74, 0.7);
  --soft-rule: rgba(31, 46, 74, 0.22);
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--navy);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--navy);
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 15px;
  line-height: 1.9;
}

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

.visually-hidden {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip-path: inset(50%);
  white-space: nowrap;
}

main {
  overflow: clip;
}

.intro {
  position: relative;
  display: grid;
  overflow-x: clip;
  overflow-y: visible;
  min-height: min(52vw, 620px);
  margin-bottom: 117px;
  place-items: center;
  isolation: isolate;
}

.intro__title {
  margin: 0;
}

.intro__content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 48px));
  text-align: center;
}

.intro__logo {
  width: 190px;
  margin: 0 auto 5px;
}

.intro__portfolio {
  margin: 0 0 51px;
  background: transparent;
  color: var(--navy);
  font-family: Nunito, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.55px;
  line-height: 1.8;
  white-space: nowrap;
}

.intro__copy {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
}

.intro__copy span {
  display: table;
  margin: 0 auto 9px;
  padding: 2px 11px 3px;
  background: rgba(255, 255, 255, 0.88);
}

.intro__copy span:last-child {
  margin-bottom: 0;
}

.intro__want {
  display: inline-block;
  margin: 0 2px;
  color: var(--pink);
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1.48em;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  vertical-align: -0.04em;
}

.intro-nav {
  display: flex;
  width: min(430px, 100%);
  justify-content: space-between;
  margin: 78px auto 0;
  padding-bottom: 46px;
}

.intro-nav__link {
  position: relative;
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(31, 46, 74, 0.72);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 5px 4px 0 rgba(176, 123, 152, 0.16);
  color: var(--navy);
  font-family: Nunito, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 220ms ease, color 220ms ease;
}

.intro-nav__link::after {
  position: absolute;
  width: 2px;
  height: 40px;
  top: calc(50% + 32px);
  left: calc(50% - 1px);
  border-radius: 999px;
  background: var(--pink);
  content: "";
  transition: transform 220ms ease;
}

.intro-nav__link::before {
  position: absolute;
  z-index: 1;
  width: 12px;
  height: 2px;
  top: calc(100% + 24px);
  left: 50%;
  border-radius: 999px;
  background: var(--pink);
  content: "";
  transform-origin: left center;
  transform: rotate(-45deg);
  transition: transform 220ms ease;
}

.intro-nav__link:hover {
  background: rgba(255, 255, 255, 0.66);
  color: var(--pink-text);
}

.intro-nav__link:hover::after {
  transform: translateY(7px);
}

.intro-nav__link:hover::before {
  transform: translateY(7px) rotate(-45deg);
}

.intro-nav__link:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 5px;
}

.back-to-top {
  position: fixed;
  z-index: 20;
  right: clamp(20px, 3vw, 44px);
  bottom: clamp(20px, 3vw, 40px);
  display: grid;
  width: 64px;
  height: 64px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(31, 46, 74, 0.72);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 5px 4px 0 rgba(176, 123, 152, 0.2);
  color: var(--pink);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  visibility: hidden;
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 5px;
}

.back-to-top__arrow {
  position: relative;
  display: block;
  width: 2px;
  height: 25px;
  border-radius: 999px;
  background: currentColor;
}

.back-to-top__arrow::before {
  position: absolute;
  width: 10px;
  height: 2px;
  top: 0;
  left: 1px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.intro__mark,
.about__mark,
.contact__mark {
  position: absolute;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  user-select: none;
}

.intro__mark {
  width: min(70vw, 1000px);
  right: -16vw;
  top: 9%;
  transform: rotate(9deg);
}

.section {
  position: relative;
  width: min(var(--content-width), calc(100% - 72px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  margin-bottom: 44px;
}

.section-heading::before,
.section-heading::after {
  height: 1px;
  background: var(--rule);
  content: "";
}

.section-heading h2 {
  margin: 0;
  color: var(--pink);
  font-family: Nunito, sans-serif;
  font-size: 31px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.works {
  padding-top: 24px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 44px;
  row-gap: 54px;
}

.work-card {
  min-width: 0;
}

.work-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.work-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #e9e9e8;
}

.work-card__image--linked::after {
  position: absolute;
  inset: 0;
  background: rgba(31, 46, 74, 0.78);
  content: "";
  opacity: 0;
  transition: opacity 220ms ease;
}

.work-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.work-card:hover .work-card__image img {
  transform: scale(1.025);
}

.work-card__overlay {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -40%);
  transition: opacity 220ms ease, transform 220ms ease;
  white-space: nowrap;
}

.work-card__arrow {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.work-card__link:hover .work-card__image--linked::after,
.work-card__link:focus-visible .work-card__image--linked::after {
  opacity: 1;
}

.work-card__link:hover .work-card__overlay,
.work-card__link:focus-visible .work-card__overlay {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.work-card__link:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 5px;
}

.work-card__image--placeholder {
  display: grid;
  place-items: center;
  background: #eef0f2;
}

.work-card__image--placeholder img {
  width: 42%;
  height: auto;
  opacity: 0.13;
}

.work-card__meta {
  padding: 0 2px 16px;
}

.work-card__category {
  margin: 0 0 5px;
  color: var(--pink-text);
  font-family: Nunito, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  line-height: 1.4;
}

.work-card__title {
  margin: 0;
  color: var(--navy);
  font-family: Nunito, "Zen Kaku Gothic New", sans-serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.45;
}

.work-card__title--jp {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 16px;
}

.about {
  min-height: 410px;
  padding-top: 106px;
  isolation: isolate;
}

.about__mark--heading {
  width: min(42vw, 528px);
  top: -120px;
  left: -13vw;
  transform: rotate(-17deg);
}

.about__content {
  width: min(820px, 100%);
  margin: 0 auto;
  text-align: left;
}

.contact__content {
  width: min(620px, 100%);
  margin: 0 auto;
  text-align: center;
}

.about__content > p,
.contact__content p {
  margin: 0;
  font-size: 15px;
}

.about__content > p + p {
  margin-top: 28px;
}

.about-group {
  margin-top: 54px;
}

.about-group h3 {
  margin: 0 0 16px;
  color: var(--pink-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.about-group p {
  margin: 0;
  font-size: 15px;
}

.about-group .about-group__note {
  margin-top: 24px;
}

.about-group ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-group li {
  position: relative;
  padding-left: 15px;
  font-size: 15px;
}

.about-group li::before {
  position: absolute;
  top: 0.9em;
  left: 1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pink);
  content: "";
}

.about-tool-list {
  display: grid;
  gap: 18px;
  margin: 0;
}

.about-tool-list div {
  display: grid;
  grid-template-columns: minmax(175px, 0.8fr) minmax(0, 2fr);
  gap: 24px;
}

.about-tool-list dt {
  color: var(--navy);
  font-family: Nunito, "Zen Kaku Gothic New", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.about-tool-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.contact {
  padding-top: 96px;
  padding-bottom: 200px;
}

.contact__mark {
  width: min(122vw, 1520px);
  top: -445px;
  right: -52vw;
  transform: rotate(13deg);
  z-index: 0;
}

.contact .section-heading,
.contact__content {
  position: relative;
  z-index: 1;
}

.contact__link {
  position: relative;
  display: inline-flex;
  min-width: 258px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 21px;
  margin-top: 27px;
  padding: 7px 8px 7px 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--pink-text), #50647e);
  color: #fff;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: filter 180ms ease, transform 180ms ease;
}

.contact__arrow {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
}

.contact__arrow svg {
  width: 18px;
  height: 18px;
}

.contact__link:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.contact__link:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 5px;
}

.footer {
  display: grid;
  min-height: 235px;
  place-content: center;
  gap: 13px;
  padding: 48px 24px;
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.footer__logo {
  display: block;
  width: 118px;
  margin: 0 auto;
  transition: opacity 0.25s ease;
}

.footer__brand {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

.footer__brand:hover .footer__logo {
  opacity: 0.78;
}

.footer__brand:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 6px;
}

.footer p {
  margin: 0;
  font-family: Nunito, sans-serif;
  font-size: 14px;
  letter-spacing: 0.7px;
}

@media (max-width: 700px) {
  body {
    font-size: 14px;
  }

  .intro {
    min-height: 470px;
    margin-bottom: 45px;
  }

  .intro__logo {
    width: 170px;
    margin-bottom: 6px;
  }

  .intro__content {
    width: min(360px, calc(100% - 48px));
  }

  .intro__portfolio {
    margin-bottom: 45px;
    font-size: 11px;
    letter-spacing: 1.25px;
    white-space: normal;
  }

  .intro__copy {
    font-size: 15px;
  }

  .intro-nav {
    width: min(290px, 100%);
    margin-top: 60px;
    padding-bottom: 42px;
  }

  .intro-nav__link {
    width: 78px;
    height: 78px;
    font-size: 10px;
  }

  .intro-nav__link::after {
    height: 33px;
    top: calc(50% + 28px);
  }

  .intro-nav__link::before {
    top: calc(100% + 21px);
  }

  .back-to-top {
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
  }

  .back-to-top__arrow {
    height: 22px;
  }

  .intro__mark {
    width: 760px;
    right: -200px;
    top: 14%;
  }

  .section {
    width: min(100% - 40px, 520px);
    padding: 66px 0;
  }

  .section-heading {
    gap: 15px;
    margin-bottom: 31px;
  }

  .section-heading h2 {
    font-size: 25px;
  }

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

  .work-card__meta {
    padding-bottom: 14px;
  }

  .work-card__title {
    font-size: 19px;
  }

  .about {
    min-height: 370px;
  }

  .about__mark--heading {
    width: 432px;
    top: -82px;
    left: -150px;
  }

  .contact__mark {
    width: 590px;
    max-width: none;
    top: -140px;
    right: -180px;
    opacity: 0.08;
  }

  .about-group {
    margin-top: 42px;
  }

  .about-group p,
  .about-group li {
    font-size: 14px;
  }

  .about-tool-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .about-tool-list dt,
  .about-tool-list dd {
    font-size: 13px;
  }

  .contact {
    padding-bottom: 140px;
  }

  .footer {
    min-height: 190px;
  }
}
