:root {
  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-hero: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --color-text: #1f2c3b;
  --color-muted: #6e7f96;
  --color-line: #d7e0eb;
  --color-card: #ffffff;
  --color-accent: #2f69ad;
  --color-bg-top: #f9fbfe;
  --color-bg-bottom: #eef4fa;
}

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

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

body {
  min-height: 100vh;
  color: var(--color-text);
  font-family: var(--font-ja);
  background-color: #ffffff;
}

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

.site-shell {
  width: calc(100% - 240px);
  max-width: 1440px;
  min-width: 0;
  margin-inline: auto;
}

.site-header,
.site-footer {
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(120%) blur(4px);
}

.site-header {
  border-bottom: 1px solid var(--color-line);
}

.site-footer {
  border-top: 1px solid var(--color-line);
}

.site-footer .site-chrome {
  position: relative;
}

.site-footer__copy {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--color-muted);
}

.site-chrome {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand__mark {
  width: 59px;
  height: 64px;
  display: block;
  flex: 0 0 auto;
}

.brand__name {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 36px;
}

.site-nav__link {
  position: relative;
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  padding-block: 6px;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #7ea7d8 0%, var(--color-accent) 100%);
  transition: transform 0.25s ease;
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after,
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  margin-top: 0;
  background-color: transparent;
  min-height: calc(100vh - 80px);
  min-height: calc(100svh - 80px);
}

.hero__shell {
  height: calc(100vh - 80px);
  height: calc(100svh - 80px);
  min-height: 760px;
  position: relative;
  display: grid;
  grid-template-columns: 782px 1fr;
  column-gap: 8px;
  align-items: start;
}

.hero__content {
  height: 100%;
  padding-top: clamp(40px, 10vh, 200px);
  min-width: 0;
}

.hero__title {
  margin: 0;
  width: 782px;
  height: 349px;
  font-family: var(--font-hero);
  font-size: 96px;
  font-weight: 700;
  line-height: 2;
  letter-spacing: 0.01em;
}

.hero__title-line {
  display: block;
}

.hero__lead {
  margin: clamp(32px, 8vh, 200px) 0 0;
  width: 768px;
  height: 77px;
  font-family: var(--font-ja);
  font-size: 64px;
  font-weight: 700;
  line-height: 1.2;
}

.hero__actions {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 6vh, 136px);
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  width: max-content;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  column-gap: 80px;
  row-gap: 0;
  z-index: 2;
}

.hero-button {
  flex: 0 0 374px;
  width: 374px;
  height: 90px;
  border-radius: 20px;
  font-family: var(--font-ja);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.hero-button:hover {
  transform: translateY(-2px);
}

.hero-button:active {
  transform: translateY(0);
}

.hero-button--ghost {
  color: var(--color-accent);
  background-color: #ffffff;
  border-color: #c8d7ea;
  box-shadow: 0 10px 24px rgba(31, 44, 59, 0.16);
}

.hero-button--ghost:hover {
  box-shadow: 0 14px 30px rgba(31, 44, 59, 0.22);
}

.hero-button--solid {
  color: #ffffff;
  background-color: var(--color-accent);
}

.hero-button--solid:hover {
  box-shadow: 0 10px 24px rgba(30, 71, 123, 0.34);
  filter: brightness(1.04);
}

.hero__visual {
  padding-top: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.hero__logo {
  width: 820px;
  max-width: 100%;
  height: auto;
  display: block;
}

.problem-block {
  width: calc(100% - 240px);
  max-width: 1440px;
  height: 221px;
  margin-inline: auto;
  position: relative;
  z-index: 0;
}

.problem-block::before {
  content: "";
  position: absolute;
  top: 0;
  right: calc(50% - 50vw);
  bottom: 0;
  left: calc(50% - 50vw);
  background-color: #f6f9fd;
  z-index: -1;
}

.problem-block__grid {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
  column-gap: 90px;
  row-gap: 28px;
  padding-inline: 56px;
  align-content: center;
  align-items: start;
}

.problem-block__item {
  margin: 0;
  padding-left: 20px;
  border-left: 2px solid #2b5794;
  font-family: var(--font-ja);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--color-text);
}

.steps-block {
  width: calc(100% - 240px);
  max-width: 1440px;
  height: 648px;
  margin-inline: auto;
  padding-top: 64px;
  background-color: transparent;
}

.steps-block__heading {
  margin: 0;
  font-family: var(--font-ja);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.steps-block__icons {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 320px);
  justify-content: center;
  column-gap: 48px;
}

.steps-block__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 320px;
}

.steps-block__icon {
  width: 320px;
  height: 320px;
  display: block;
  object-fit: contain;
}

.steps-block__label {
  margin: 8px 0 0;
  font-family: var(--font-ja);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  color: var(--color-text);
}

.work-block {
  --work-gallery-top: 194px;
  --work-item-height: 281px;
  --work-caption-offset: 24px;
  --work-caption-height: 76px;
  width: calc(100% - 240px);
  max-width: 1440px;
  height: 906px;
  margin-inline: auto;
  position: relative;
  z-index: 0;
}

.work-block::before {
  content: "";
  position: absolute;
  top: 0;
  right: calc(50% - 50vw);
  bottom: 0;
  left: calc(50% - 50vw);
  background-color: #f6f9fd;
  z-index: -1;
}

.work-block__heading {
  position: absolute;
  top: 120px;
  left: 120px;
  margin: 0;
  font-family: var(--font-ja);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.35;
}

.work-block__gallery {
  position: absolute;
  top: var(--work-gallery-top);
  left: 50%;
  transform: translateX(-50%);
  width: 1120px;
  height: var(--work-item-height);
  display: grid;
  grid-template-columns: repeat(3, 320px);
  justify-content: center;
  column-gap: 80px;
  align-items: start;
}

.work-block__item {
  position: relative;
  width: 320px;
  height: var(--work-item-height);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.work-block__image {
  width: 320px;
  height: auto;
  display: block;
}

.work-block__caption {
  position: absolute;
  left: 50%;
  top: calc(100% + var(--work-caption-offset));
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--font-ja);
  text-align: center;
  color: var(--color-text);
}

.work-block__caption-title {
  display: block;
  font-family: var(--font-ja);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
}

.work-block__caption-sub {
  display: block;
  margin-top: 8px;
  font-family: var(--font-ja);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
}

.work-block__cta {
  position: absolute;
  left: 50%;
  top: calc(var(--work-gallery-top) + var(--work-item-height) + var(--work-caption-offset) + var(--work-caption-height) + 120px);
  transform: translateX(-50%);
}

.work-block__cta:hover {
  transform: translateX(-50%) translateY(-2px);
}

.work-block__cta:active {
  transform: translateX(-50%);
}

.about-block {
  width: calc(100% - 240px);
  max-width: 1440px;
  height: 523px;
  margin-inline: auto;
  padding: 120px 120px 0;
  background-color: transparent;
}

.about-block__heading {
  margin: 0;
  font-family: var(--font-ja);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.35;
}

.about-block__content {
  margin-top: 64px;
  display: flex;
  align-items: flex-start;
  column-gap: 48px;
}

.about-block__portrait {
  width: 176px;
  height: 190px;
  display: block;
  object-fit: cover;
  flex: 0 0 auto;
}

.about-block__bio {
  min-width: 0;
}

.about-block__name {
  margin: 0;
  font-family: var(--font-ja);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
}

.about-block__line {
  margin: 16px 0 0;
  font-family: var(--font-ja);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
}

.about-block__name + .about-block__line {
  margin-top: 24px;
}

.contact-block {
  width: 100%;
  background-color: #f6f9fd;
}

.contact-block__inner {
  width: calc(100% - 240px);
  max-width: 1440px;
  height: 800px;
  margin-inline: auto;
  padding: 120px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 560px;
  column-gap: 96px;
  align-content: start;
  align-items: start;
}

.contact-block__intro {
  min-width: 0;
}

.contact-block__heading {
  margin: 0;
  font-family: var(--font-ja);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.35;
}

.contact-block__lead {
  margin: 40px 0 0;
  font-family: var(--font-ja);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
}

.contact-form {
  width: 560px;
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  row-gap: 24px;
  align-self: start;
}

.contact-form__field {
  display: grid;
  row-gap: 10px;
}

.contact-form__label {
  font-family: var(--font-ja);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-text);
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  border: 1px solid #c5d5e8;
  border-radius: 10px;
  background-color: #ffffff;
  color: var(--color-text);
  font-family: var(--font-ja);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.4;
  padding: 14px 16px;
}

.contact-form__input {
  height: 64px;
}

.contact-form__textarea {
  min-height: 170px;
  resize: vertical;
}

.contact-form__submit {
  align-self: center;
  width: 180px;
  height: 56px;
  border: 0;
  border-radius: 16px;
  background-color: var(--color-accent);
  color: #ffffff;
  font-family: var(--font-ja);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.contact-form__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(30, 71, 123, 0.28);
  filter: brightness(1.03);
}

.contact-form__submit:active {
  transform: translateY(0);
}

.portfolio-main {
  min-height: calc(100vh - 160px);
}

@media (max-width: 960px) {
  .site-shell {
    width: calc(100% - 40px);
  }

  .site-chrome {
    height: auto;
    min-height: 80px;
    padding-block: 8px;
    gap: 16px;
    flex-wrap: wrap;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-end;
    gap: 24px;
  }

  .site-footer__copy {
    position: static;
    transform: none;
    width: 100%;
    text-align: center;
    order: 3;
    padding-top: 6px;
  }

  .hero__shell {
    min-height: 0;
    height: auto;
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .hero__content {
    padding-top: 64px;
  }

  .hero__title {
    width: auto;
    height: auto;
    font-size: clamp(44px, 12vw, 64px);
    line-height: 1.35;
  }

  .hero__lead {
    margin-top: 16px;
    width: auto;
    height: auto;
    font-size: clamp(28px, 7vw, 44px);
    line-height: 1.35;
  }

  .hero__actions {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    margin-top: 36px;
    max-width: none;
    padding-bottom: 56px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px;
  }

  .hero-button {
    flex: 0 0 auto;
    width: 100%;
    height: 72px;
    font-size: 26px;
  }

  .hero__visual {
    padding-top: 0;
    padding-bottom: 52px;
  }

  .hero__logo {
    width: min(74vw, 420px);
    height: auto;
    transform: none;
    margin-inline: auto;
  }

  .problem-block {
    width: calc(100% - 40px);
    height: auto;
  }

  .problem-block__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    row-gap: 16px;
    padding: 24px;
  }

  .problem-block__item {
    font-size: 20px;
  }

  .steps-block {
    width: calc(100% - 40px);
    height: auto;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .steps-block__heading {
    font-size: clamp(28px, 6.2vw, 40px);
    line-height: 1.4;
  }

  .steps-block__icons {
    margin-top: 40px;
    grid-template-columns: minmax(0, 320px);
    justify-content: center;
    row-gap: 24px;
  }

  .steps-block__item {
    width: min(100%, 320px);
    margin-inline: auto;
  }

  .steps-block__icon {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }

  .work-block {
    width: calc(100% - 40px);
    height: auto;
    padding: 48px 24px;
  }

  .work-block__heading {
    position: static;
    margin: 0 0 32px;
    font-size: clamp(30px, 7vw, 40px);
    line-height: 1.3;
  }

  .work-block__gallery {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: auto;
    grid-template-columns: minmax(0, 320px);
    row-gap: 24px;
    column-gap: 0;
    justify-content: center;
  }

  .work-block__item {
    width: min(100%, 320px);
    margin-inline: auto;
    position: static;
    height: auto;
    display: block;
  }

  .work-block__image {
    width: 100%;
    height: auto;
  }

  .work-block__caption {
    position: static;
    transform: none;
    margin-top: 24px;
  }

  .work-block__caption-title,
  .work-block__caption-sub {
    white-space: normal;
  }

  .work-block__cta {
    position: static;
    transform: none;
    margin: 120px auto 0;
  }

  .work-block__cta:hover,
  .work-block__cta:active {
    transform: none;
  }

  .about-block {
    width: calc(100% - 40px);
    height: auto;
    padding: 48px 24px;
  }

  .about-block__heading {
    font-size: clamp(30px, 7vw, 40px);
    line-height: 1.3;
  }

  .about-block__content {
    margin-top: 32px;
    flex-direction: column;
    row-gap: 24px;
  }

  .about-block__portrait {
    width: min(176px, 54vw);
    height: auto;
    aspect-ratio: 176/190;
  }

  .about-block__name {
    font-size: clamp(34px, 9vw, 48px);
  }

  .about-block__line {
    font-size: clamp(24px, 6vw, 32px);
    line-height: 1.35;
  }

  .about-block__name + .about-block__line {
    margin-top: 20px;
  }

  .about-block__line + .about-block__line {
    margin-top: 14px;
  }

  .contact-block__inner {
    width: calc(100% - 40px);
    height: auto;
    padding: 48px 24px;
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .contact-block__heading {
    font-size: clamp(30px, 7vw, 40px);
    line-height: 1.3;
  }

  .contact-block__lead {
    margin-top: 24px;
    font-size: clamp(20px, 5vw, 24px);
    line-height: 1.45;
  }

  .contact-form {
    width: 100%;
    row-gap: 18px;
  }

  .contact-form__label {
    font-size: 20px;
  }

  .contact-form__input,
  .contact-form__textarea {
    font-size: 18px;
  }

  .contact-form__input {
    height: 56px;
  }

  .contact-form__textarea {
    min-height: 140px;
  }

  .contact-form__submit {
    width: 160px;
    height: 52px;
    font-size: 22px;
  }
}
