@charset "UTF-8";

/* ========== common ========== */
* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  font-style: normal;
  color: #1d1d1d;
  background-color: #fff;
  line-height: 1;
}

.hero__word,
.header__nav-link,
.mobile__nav-link,
h3 {
  font-family: "Futura", sans-serif;
  line-height: 1;
  font-weight: 500;
}
.section__topic {
  font-size: 4rem;
}

img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

h2 {
  color: var(--primary-black);
  font-family: Futura;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  padding: 160px var(--contentPadding) 80px;
  text-align: center;
}

:root {
  --primary-white: #fff;
  --primary-black: #1d1d1d;
  --primary-black-submit: #555;
  --contentWidth: 95.2%;
  --contentPadding: 2.8%;
}
.br-sp {
  display: none;
}

@media (max-width: 768px) {
  h2 {
    padding: 80px var(--contentPadding) 40px;
  }
  :root {
    --contentPadding: 5%;
  }
  .br-sp {
    display: inline;
  }
}
/* ========== header ========== */
header {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1000;
}
.header__inner {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 4.2vw;
}
.header__nav-list {
  display: flex;
  gap: 70px;
}
.header__nav-link {
  font-size: 16px;
}
.header__nav-item a:hover {
  opacity: 0.7;
}
/* ヘッダー分の余白をbody上部に追加 */
/* body {
  padding-top: 80px;
} */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #333;
}

.mobile__nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1001;
}

.mobile__nav-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}

.mobile__nav-item {
  font-size: 1.8rem;
}

.mobile__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  font-weight: normal;
  color: #333;
  cursor: pointer;
  z-index: 1100;
}

@media (max-width: 768px) {
  .header__nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile__nav.active {
    display: flex;
  }
}

/* ========== hero ========== */
.hero {
  width: 100vw;
  height: 100vh;
  position: relative;
  background: #71a0d6;
  background: linear-gradient(
    33deg,
    rgba(113, 160, 214, 1) 0%,
    rgba(196, 139, 164, 1) 25%,
    rgba(238, 124, 83, 1) 50%,
    rgba(238, 160, 74, 1) 75%,
    rgba(240, 197, 87, 1) 100%
  );
  background-size: 100% 100%;
  background-repeat: no-repeat;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

.hero__title {
  position: absolute;
  bottom: 0;
  padding-right: 30vw;
  mix-blend-mode: difference;
}

@media (max-width: 768px) {
  .hero__title {
    padding-right: 10vw;
  }
}

/* ========== works ========== */

.works {
  padding: 0 var(--contentPadding);
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: clamp(40px, 4.8vw, 75px);
  column-gap: clamp(10px, 3vw, 45px);
  padding-bottom: 80px;
}

.works__item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.works__image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #eee;
}

.works__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.works__text {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.6rem 0;
  text-align: center;
}

.works__text h3 {
  font-size: clamp(1.6rem, 4vw, 1.8rem);
}

.works__text p {
  margin-top: 1.6rem;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
}

@media (max-width: 768px) {
  .works__grid {
    grid-template-columns: repeat(2, 1fr);
    padding-bottom: 40px;
  }

  .works__text p {
    margin-top: 0.8rem;
  }
}

/* ========== about ========== */

.about {
  padding: 0 var(--contentPadding) 80px;
}

.about__inner {
  max-width: var(--contentWidth);
  margin: 0 auto;
  text-align: center;
}

.about__name {
  font-family: Futura;
  font-size: clamp(18px, 4vw, 30px);
  font-weight: 500;
}

.about__bio,
.about__skills {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 400;
  margin-top: 32px;
  line-height: 2;
}

.about__skills {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.about__skills-list {
  display: flex;
  gap: 2rem;
}

@media (max-width: 767px) {
  .about {
    padding: 0 var(--contentPadding) 40px;
  }
  .about__bio,
  .about__skills {
    line-height: 1.8;
    margin-top: 16px;
  }

  .about__skills {
    width: 80%;
    align-items: center;
    margin: 16px auto 0;
  }
  .about__skills-list {
    flex-wrap: wrap;
    row-gap: 0;
    column-gap: 1rem;
    justify-content: center;
  }
}
/* ========== access ========== */

.contact {
  padding: 0 var(--contentPadding);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 400;
  line-height: 1;
}

.contact__inner {
  max-width: var(--contentWidth);
  margin: 0 auto;
  text-align: center;
}

.contact__map {
  margin-top: 2rem;
}

.contact__map iframe {
  width: 100%;
  height: 290px;
  border: 0;
  display: block;
}

.contact__info {
  margin-top: 11rem;
}
/* ========== form ========== */

form {
  max-width: 684px;
  margin: 4rem auto 11rem;
  background: transparent;
}

legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-group {
  margin-bottom: 1.6rem;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  line-height: 2;
}

input,
textarea,
.form-group button {
  width: 100%;
  padding: 0.7em;
  border-radius: 4px;
  font-size: 1rem;
  background-color: var(--primary-white);
}
.form-group button {
  background-color: var(--primary-black-submit);
  color: var(--primary-white);
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;

  /* 立体的に見せる */
  box-shadow: 0 3px 0px #222, 0 3px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.1s ease-in-out;
}

/* ボタンを押したとき */
.form-group button:active {
  transform: translateY(3px); /* 下に押し込む */
  box-shadow: 0 0px 0px #222, 0 3px 5px rgba(0, 0, 0, 0.2);
}

.form-group button:hover {
  opacity: 0.8;
}
/* ========== background-wrapper ========== */

.background-wrapper {
  width: 100vw;
  min-height: 100vh;
  position: relative;
  background: #71a0d6;
  background: linear-gradient(
    33deg,
    rgba(113, 160, 214, 1) 0%,
    rgba(196, 139, 164, 1) 25%,
    rgba(238, 124, 83, 1) 50%,
    rgba(238, 160, 74, 1) 75%,
    rgba(240, 197, 87, 1) 100%
  );
  background-size: 100% 100%;
  background-repeat: no-repeat;
  overflow: hidden;
  z-index: 0;
}
.background-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 40%,
    rgba(255, 255, 255, 0.7) 70%,
    rgba(255, 255, 255, 1) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.background-wrapper > * {
  position: relative;
  z-index: 2;
}

/* ========== footer ========== */

.footer {
  padding: 40px var(--contentPadding) 25px;
}

.footer__divider {
  position: relative;
}

.footer-divider::before {
  content: "";
  display: block;
  width: var(--contentWidth);
  height: 1px;
  background-color: var(--primary-black);
  margin: 0 auto;
}

.footer__inner {
  max-width: var(--contentWidth);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

small {
  font-size: 12px;
  font-weight: 400;
}

.footer__nav-list {
  display: flex;
  gap: 0 60px;
}

.footer__nav-link {
  font-family: Futura;
  font-size: 16px;
  font-weight: 500;
}

.back-to-top {
  font-size: 12px;
  font-weight: 400;
  max-width: var(--contentWidth);
  margin: 35px auto 0;
  text-align: right;
}

@media (max-width: 768px) {
  .footer__nav-list {
    display: none;
  }
  small {
    margin: 0 auto;
  }
  .back-to-top {
    margin: 20px auto 0;
  }
}
