@charset "UTF-8";

:root {
  --header-height: 86px;
}

@media (max-width: 767px) {
  :root {
    --header-height: 64px;
  }
}

html {
  scroll-behavior: smooth; /* スムーススクロール */
}

section {
  scroll-margin-top: var(--header-height); /* スムーススクロール */
}

body {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 2;
  color: #000;
  background: #f1f0ec;
  letter-spacing: 0.02em;
  -webkit-text-size-adjust: 100%;
}

a {
  transition: all 0.3s;
}

a:hover {
  opacity: 0.4;
}

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

p {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* header */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: #f1f0ec;
  border-bottom: solid 1px #000;
  z-index: 100;
}

header .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.5rem 3rem;
}

@media (max-width: 767px) {
  header .inner {
    margin: 0.75rem 1.5rem;
  }
}

header .logo {
  font-size: 18px;
  font-weight: 600;
}

header nav ul {
  display: inline-flex;
  gap: 3rem;
}

@media (max-width: 767px) {
  header nav ul {
    flex-direction: column;
  }
}

/* hamburger */

.hamburger {
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 200;
  border: none;
  background: none;
  cursor: pointer;
}

.hamburger {
  display: none;
}

@media (max-width: 767px) {
  .hamburger {
    display: block;
  }
}

.hamburger span {
  width: 24px;
  height: 1px;
  background: #111;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: 0.3s;
}

.hamburger span:nth-child(1) {
  top: 10px;
}

.hamburger span:nth-child(2) {
  top: 19px;
}

.hamburger span:nth-child(3) {
  top: 28px;
}

.hamburger.active span:nth-child(1) {
  transform: translate(-50%, 9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translate(-50%, -9px) rotate(-45deg);
}

.nav {
  display: block;
}

@media (max-width: 767px) {
  .nav {
    display: flex;
    position: fixed;
    inset: 0;
    background: #f1f0ec;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 150;
  }
}

.nav ul {
  text-align: center;
}

.nav.active {
  opacity: 1;
  visibility: visible;
}

/* main */

main {
  padding-top: var(--header-height);
}

.mv {
  min-height: calc(100vh - var(--header-height));
  height: calc(100vh - var(--header-height));
  position: sticky;
  top: var(--header-height);
}

@media (max-width: 767px) {
  .mv {
    height: 75svh;
    min-height: 75svh;
  }
}

.mv__lead {
  position: absolute;
  top: 3rem;
  left: 3rem;
  font-size: clamp(1.125rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .mv__lead {
    top: 2rem;
    left: 1.5rem;
  }
}

.mv__title {
  position: absolute;
  bottom: 3rem;
  left: 0;
  width: 100%;
}

.mv__title img {
  width: 100%;
  height: auto;
}

.mv__role {
  display: inline-block;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.mv__role.is-change {
  opacity: 0;
  transform: translateY(10px);
}

/* common */

.contents {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  background: #f1f0ec;
}

#about,
#works {
  background: #fff;
}

.section .inner {
  max-width: 1920px;
  width: calc(100% - 6rem);
  margin-inline: auto;
  padding-block: clamp(5rem, 10vw, 10rem);
}

@media (max-width: 767px) {
  .section .inner {
    width: calc(100% - 3rem);
  }
}

.section-title {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 3rem;
}

.section-title span {
  display: block;
  font-size: clamp(1rem, 0.3vw + 0.95rem, 1.125rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.125rem, 1.5vw, 1.5rem);
  font-weight: 600;
}

.sp {
  display: none;
}

@media (max-width: 767px) {
  .sp {
    display: block;
  }
  .pc {
    display: none;
  }
}

/* about */

.about-text {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  font-weight: 600;
  line-height: 3rem;
}

@media (max-width: 767px) {
  .about-text {
    line-height: 2.2rem;
  }
}

/* service */

.service-list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
}

@media (max-width: 767px) {
  .service-list {
    flex-direction: column;
    gap: 2rem;
  }
}

.service-item {
  width: calc((100% - 3rem * 2) / 3);
}

@media (max-width: 1023px) {
  .service-item {
    width: calc((100% - 3rem) / 2);
  }
}

@media (max-width: 767px) {
  .service-item {
    width: 100%;
    padding-bottom: 2rem;
    border-bottom: solid 1px #000;
  }

  .service-item:last-of-type {
    padding-bottom: 0;
    border-bottom: none;
  }
}

.service h3 {
  margin-bottom: clamp(1rem, 1vw + 1rem, 2rem);
}

/* works */

.works-list {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
}

@media (max-width: 767px) {
  .works-list {
    flex-direction: column;
    gap: 1.5rem;
  }
}

.works-item {
  width: calc((100% - 3rem * 2) / 3);
}

@media (max-width: 1023px) {
  .works-item {
    width: calc((100% - 3rem) / 2);
  }
}

@media (max-width: 767px) {
  .works-item {
    width: 100%;
  }
}

.works-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* skills */

.skills-list {
  display: flex;
  flex-direction: column;
}

@media (max-width: 767px) {
  .skills-list {
    gap: 2rem;
  }
}

.skills-item {
  display: flex;
  gap: 5rem;
  padding-bottom: 2rem;
}

@media (max-width: 767px) {
  .skills-item {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    border-bottom: solid 1px #000;
  }

  .skills-item:last-of-type {
    padding-bottom: 0;
    border-bottom: none;
  }
}

.skills-item h3 {
  width: 7em;
}

/* contact */

.contact {
  background: #000;
  color: #fff;
}

.contact .section-text {
  margin-bottom: 1rem;
}

@media (max-width: 767px) {
  .contact .section-text {
    margin-bottom: 3rem;
  }
}

.contact .section-text img {
  width: 100%;
  height: auto;
}

.contact .section-title,
.contact .section-title span {
  margin-bottom: 0;
}

.contact .section-title span {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .contact .section-title {
    text-align: center;
  }
}

.contact .section-title a {
  margin-left: 1em;
}

@media (max-width: 767px) {
  .contact .section-title a {
    display: block;
  }
}

.contact .section-title img {
  vertical-align: text-top;
  padding-top: 2px;
}

/* footer */

footer {
  background: #000;
  color: #fff;
  border-top: solid 1px #fff;
  text-align: center;
  padding-block: 3rem;
}

@media (max-width: 767px) {
  footer {
    padding-block: 5rem;
  }
}

footer nav {
  margin-bottom: 3rem;
}

@media (max-width: 767px) {
  footer nav {
    margin-bottom: 5rem;
  }
}

footer nav ul {
  display: inline-flex;
  gap: 3rem;
}

@media (max-width: 767px) {
  footer nav ul {
    flex-direction: column;
    gap: 3rem;
  }
}

/* -------------
detail
---------------*/

.detail-img {
  margin-bottom: 3rem;
}

.detail-text {
  margin-bottom: 3rem;
}

.detail-list {
  display: flex;
  flex-direction: column;
}

@media (max-width: 767px) {
  .detail-list {
    gap: 2rem;
  }
}

.detail-item {
  display: flex;
  gap: 5rem;
  padding-bottom: 2rem;
}

@media (max-width: 767px) {
  .detail-item {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    border-bottom: solid 1px #000;
  }

  .detail-item:last-of-type {
    padding-bottom: 0;
    border-bottom: none;
  }
}

.detail-item h3 {
  width: 7em;
}

.detail-item h3.url {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-item h3.url img {
  width: 1rem;
}

.detail-img_single {
  margin-top: 3rem;
  text-align: center;
}

.detail-img_flex {
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
}

.detail-img_flex img {
  width: calc(100% / 2 - 1.5rem);
}

@media (max-width: 767px) {
  .detail-img_flex {
    flex-direction: column;
    gap: 1.5rem;
  }

  .detail-img_flex img {
    width: 100%;
  }
}

/* pagenation */
.pagenation {
  border-top: solid 1px #000;
}

.pagenation .inner {
  max-width: 1920px;
  width: calc(100% - 6rem);
  margin-inline: auto;
  padding-block: clamp(3rem, 10vw, 5rem);
}

@media (max-width: 767px) {
  .pagenation .inner {
    width: calc(100% - 3rem);
  }
}

.pagenation-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pagenation-item a {
  display: inline-flex;
  gap: 1.5rem;
  font-size: clamp(1.125rem, 1.5vw, 1.5rem);
  font-weight: 600;
}

@media (max-width: 767px) {
  .pagenation-item a {
    gap: 0.5rem;
  }
}

/* back */

.back {
  background: #fff;
  text-align: center;
}

.back .inner {
  padding-block: clamp(3rem, 10vw, 5rem);
}

.back a {
  font-size: clamp(1.125rem, 1.5vw, 1.5rem);
  font-weight: 600;
}
