/* 変数 */
:root {
  --breakpoint-sm: 736px;
  --section-max-width: 1280px;
  --section-inline-padding: 3.75rem;
}

/* 共通 */

html {
  font-size: 16px;
}
@media screen and (max-width: 736px) {
  html {
    font-size: 14px;
    overflow: auto;
  }
  html.drawerOpen {
    overflow: hidden;
  }
}
@media screen and (max-width: 374px) {
  html {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html:focus-within {
    scroll-behavior: smooth;
  }
}
section[tabindex = "-1"] {
  scroll-margin-top: 5rem;
  outline: none;
}
body {
  font-family: "Lato", "游ゴシック体", "YuGothic", "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
}
.pc {
  display: block;
}
.sp {
  display: none;
}
@media (max-width: 736px) {
  .pc {
    display: none !important;
  }
  .sp {
    display: block;
  }
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.section__title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3.75rem;
}
@media screen and (max-width: 736px) {
  .section__title {
    font-size: 1.28rem;
    margin-bottom: 2.85rem;
  }
}
.profile,
.works,
.works-page,
.contact {
  margin: 12.5rem auto 0;
}
.works-page {
  margin-top: 8.75rem;
}
@media screen and (max-width: 736px) {
  .profile,
  .works,
  .works-page,
  .contact {
    margin: 10rem auto 0;
  }
  .works-page {
    margin-top: 6.42rem;
  }
}

/* ヘッダー */

header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  background-color: #fff;
}
@media screen and (max-width: 736px) {
  header h1 {
    width: 5rem;
  }
  .header-button {
    width: 1.85rem;
  }
}
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.625rem;
  padding-inline: var(--section-inline-padding);
  max-width: var(--section-max-width);
  margin: 0 auto;
}
@media screen and (max-width: 736px) {
  .header__inner {
    padding-block: 1rem;
    padding-inline: 1.42rem;
  }
}
.header__nav {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 5rem;
}
@media screen and (max-width: 736px) {
  .drawer {
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  .drawer-backdrop {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
  }
  .drawer-nav {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 12.85rem;
    background-color: #fff;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4.28rem 2.85rem;
  }
  .nav {
    overflow: auto;
  }
  .drawer[data-expanded] {
    transition: visibility 0.3s ease;
  }
  .drawer[data-expanded] .drawer-backdrop {
    transition: opacity 0.3s ease;
  }
  .drawer[data-expanded] .drawer-nav {
    transition: transform 0.3s ease;
  }
  .drawer[data-expanded = "true"] {
    visibility: visible;
    transition-duration: 0s;
  }
  .drawer[data-expanded = "true"] .drawer-backdrop {
    opacity: 1;
  }
  .drawer[data-expanded = "true"] .drawer-nav {
    transform: translateX(0);
  }
  .drawer[data-expanded = "false"] {
    visibility: hidden;
  }
  .drawer[data-expanded = "false"] .drawer-backdrop {
    opacity: 0;
  }
  .drawer[data-expanded = "false"] .drawer-nav {
    transform: translateX(100%);
  }
  .nav__title {
    width: 7.14rem;
    margin: 0 auto;
  }
  .nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.85rem;
    margin-top: 4.28rem;
  }
  .nav-link {
    font-size: 1.28rem;
    font-weight: 700;
  }
  .nav-button {
    display: block;
    width: 4.14rem;
    margin: 5.71rem auto 0;
  }
}

/* 名前 */

.name__wrap {
  margin-top: 18.5rem;
  text-align: center;
}
@media screen and (max-width: 736px) {
  .name__wrap {
    margin-top: 13.5rem;
  }
}
.name {
  width: 27.5rem;
  margin: 0 auto;
}
@media screen and (max-width: 736px) {
  .name {
    width: 21rem;
  }
}
.name__caption {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 1.25rem;
}

/* Profile */

.profile {
  max-width: 24rem;
}
@media screen and (max-width: 736px) {
  .profile {
    max-width: 24rem;
  }
}
.profile__text {
  margin-bottom: 3.5rem;
}
@media screen and (max-width: 736px) {
  .profile__text {
    margin-bottom: 2.85rem;
  }
}
.profile__text-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.875rem;
}
@media screen and (max-width: 736px) {
  .profile__text-title {
    margin-bottom: 1.42rem;
  }
}
.profile__text-content {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
}

/* Works */

.works,
.works-page {
  padding-inline: var(--section-inline-padding);
  max-width: 55rem;
}
@media screen and (max-width: 736px) {
  .works,
  .works-page {
    max-width: 24rem;
    padding-inline: 0;
  }
}
.works__content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  font-weight: 500;
}
@media screen and (max-width: 736px) {
  .works__content {
    gap: .35rem;
  }
}
.works__item-title {
  font-size: 1rem;
  text-align: center;
  margin-top: 1.25rem;
}
@media screen and (max-width: 960px) {
  .works__item-title.long {
    font-size: 0.85rem;
  }
}
@media screen and (max-width: 736px) {
  .works__item-title {
    font-size: 0.85rem;
    margin-top: 0.71rem;
  }
}
.works__item-description {
  font-size: 0.875rem;
  margin-top: 0.625rem;
  text-align: center;
  line-height: 1.5;
}
@media screen and (max-width: 736px) {
  .works__item-description {
    font-size: 0.71rem;
    margin-top: 0.4rem;
  }
}
.works__link-wrap {
  text-align: center;
  margin-top: 3rem;
  width: fit-content;
  margin-left: auto;
  margin-inline: auto;
}
@media screen and (max-width: 736px) {
  .works__link-wrap {
    margin-top: 2.85rem;
  }
}
.works__link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.625rem 1.25rem;
  border-bottom: 1px solid #000;
}
.works__link-arrow {
  width: 2.875rem;
  height: auto;
  transition: transform 0.3s ease;
}
.works__link:hover .works__link-arrow {
  transform: translateX(0.5rem);
}
@media screen and (max-width: 736px) {
  .works__link:hover .works__link-arrow {
    transform: none;
  }
}

/* Contact */

.contact__company-name {
  font-size: 1.25rem;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 3.75rem;
}
@media screen and (max-width: 736px) {
  .contact__company-name {
    margin-bottom: 2.85rem;
  }
}
.contact__company-logo {
  width: 4.2rem;
}
@media screen and (max-width: 736px) {
  .contact__company-logo {
    width: 4.3rem;
    display: inline-block;
  }
}
.contact__company-information {
  max-width: 24rem;
  margin: 0 auto;
}
@media screen and (max-width: 736px) {
  .contact__company-information {
    max-width: 24rem;
  }
}
.contact__company-address,
.contact__company-mail {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 3.75rem;
  align-items: center;
  justify-content: flex-start;
  padding: 1.875rem 1rem;
}
@media screen and (max-width: 736px) {
  .contact__company-address,
  .contact__company-mail {
    grid-template-columns: 3.57rem 1fr;
    gap: 3rem;
    padding: 1.42rem 1.42rem;
  }
}
.contact__company-address {
  border-top: 1px solid #B2B2B2;
  border-bottom: 1px solid #B2B2B2;
}
.contact__company-mail {
  padding-top: 3.5rem;
}
.contact__company-address > img,
.contact__company-mail > img {
  justify-self: center;
}
@media screen and (max-width: 736px) {
  .contact__company-address > img {
    width: 1.42rem;
  }
  .contact__company-mail > img {
    width: 2rem;
  }
}
.contact__company-address-text {
  line-height: 1.625;
  font-size: 1rem;
  font-weight: 500;
}
.contact__company-address-link {
  display: inline-block;
  margin-top: .8rem;
  font-size: 1rem;
  font-weight: 500;
}
@media screen and (max-width: 736px) {
  .contact__company-address-link {
    margin-top: 0.4rem;
  }
}
.contact__company-address-link,
.contact__company-mail-link {
  line-height: 1.5;
  display: inline-block;
}
.contact__company-address-link::after,
.contact__company-mail-link::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: #B2B2B2;
  margin-top: 0.4rem;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
@media screen and (max-width: 736px) {
  .contact__company-address-link::after,
  .contact__company-mail-link::after {
    transform: scale(1);
  }
}
.contact__company-address-link:hover::after,
.contact__company-mail-link:hover::after {
  transform: scaleX(1);
}
@media screen and (max-width: 736px) {
  .contact__company-address-link:hover::after,
  .contact__company-mail-link:hover::after {
    transform: scale(1);
  }
}

/* footer */

.footer__inner {
  text-align: center;
  margin-top: 13.75rem;
  margin-bottom: 1.25rem;
}
@media screen and (max-width: 736px) {
  .footer__inner {
    margin-top: 8rem;
    margin-bottom: 1.25rem;
  }
}

/* worksページ */

.works-page {
  max-width: 80rem;
}
@media screen and (max-width: 736px) {
  .works-page {
    padding-inline: 1.42rem;
  }
}
.works-page .works__content {
  max-width: 80rem;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 3.75rem;
}
@media screen and (max-width: 736px) {
  .works-page .works__content {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.85rem;
  }
}
