/* ===== BASE ===== */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  max-width: 1980px;
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Noto Serif JP", serif;
  color: #333;
  letter-spacing: 0.08em;
  /* background: #faf9f6; */
  overflow-x: hidden;
}
a {
  text-decoration: none;
}
li {
  list-style: none;
}
img {
  width: 100%;
  display: block;
}
.about__text h2 span {
  color: #6b7427;
  font-weight: bold;
}
.title_style h2 {
  font-family: "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 36px;
  letter-spacing: 0.2rem;
  /* line-height: 0.5; */
  color: #333;
  margin-bottom: 20px;
}
.title_style h2 span {
  color: #6b7427;
  font-weight: bold;
}
.fontstyle_maru {
  font-family: "fot-tsukuardgothic-std", sans-serif;
  font-weight: normal;
  font-style: normal;
}

/* スクロールしたら下から出現 */
.fadein_from-above {
  transform: translateY(-20px);
  opacity: 0;
  transition: all 1s ease;
}
.fadein_from-above.show {
  transform: translateY(0);
  opacity: 1;
}
/* スクロールしたら下から出現 */
.fadein_from-below {
  transform: translateY(20px);
  opacity: 0;
  transition: all 2s ease;
}
.fadein_from-below.show {
  transform: translateY(0);
  opacity: 1;
}
/* スクロールしたらその場で出現 */
.fadein_on-the-spot {
  transform: translateY(0px);
  opacity: 0;
  transition: all 3s ease;
}
.fadein_on-the-spot.show {
  transform: translateY(0);
  opacity: 1;
}
.fadein-fv {
  transform: translateY(0px);
  opacity: 0;
  transition: all 3s ease;
}
.fadein-fv.show {
  transform: translateY(0);
  opacity: 1;
}
/* スクロールしたら左から出現 */
.fadein_from-left {
  transform: translateX(-20px);
  opacity: 0;
  transition: all 0.5s ease;
}
.fadein_from-left.show {
  transform: translateX(0);
  opacity: 1;
}


/* ===== HERO ===== */
#top_mv {
    background: url(../img/bg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
    z-index: -1;
}
.wave {
  /* position: absolute; */
  /* bottom: 0; */
  /* left: 0; */
  width: 100%;
  height: 120px;
  background: url(../img/wave.png);
  background-repeat: no-repeat;
  background-size: contain;
}
.mv_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 150px 40px;
}
.hero__title {
  font-family: "adventures-unlimited", sans-serif;
  font-size: 72px;
  letter-spacing: 0.6rem;
  color: #6b7427
  /* margin-bottom: 30px; */
}
.hero__image {
  max-width: 800px;
  width: 100%;
  position: relative;
  display: inline-block;
}

/* 傾いた影 */
.hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #e5e0d6; /* 影の色 */
  z-index: -1;
  transform: translate(-14px, 18px) rotate(-5deg);
}
/* 画像本体 */
.hero__image img {
  display: block;
  width: 100%;
  position: relative;
  z-index: 1;
}



/* ===== WORKS ===== */
.works {
  padding: 100px 40px 150px;
  text-align: center;
}
/* .works h2 {
  text-align: center;
} */
.works__text {
  margin-bottom: 80px;
}
.works__text h2 {
  /* font-family: "adventures-unlimited", sans-serif; */
  font-family: "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: 36px;
  color: #333;
  letter-spacing: 0.2rem;
  font-weight: 400;
  font-style: normal;
  line-height: 0.5;
}
.works__text p {
  font-family: "fot-tsukuardgothic-std", sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 14px;
  color: #000;
  text-align: center;
  margin-top: 15px;
}
.works__text h2 span {
  color: #6b7427;
  font-weight: bold;
}
.works__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  max-width: 1100px;
  width: 100%;
  margin: auto;
}
.works__list h3 {
  font-size: 21px;
  font-weight: bold;
  text-align: left;
  margin-top: 5px;
}
.works__list a {
  color: #333;
}
.works__card {
  border: 1px solid #6b7427;
  border-radius: 5px;
  /* max-width: 500px; */
  height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
/* .works__card {
  border: 1px solid #6b7427;
  border-radius: 5px;
  padding: 40px;
} */
.works__card:hover {
  opacity: 0.7;
}
.works__tag {
  display: flex;
  gap: 5px;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.1rem;
}
.works__tag span {
  background: #6b7427;
  color: #fff;
  width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}



/* ===============================
   PC MOCKUP
================================ */
.mockup.pc {
  position: relative;
  width: 100%;
  max-width: 420px;
  overflow: hidden; 
  transition: transform 0.3s ease;
}

/* Webサイト（流れる部分） */
.mockup.pc .site {
  position: absolute;
  top: 5.5%;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 80%;
  border-radius: 3%;
  transition: transform 60s cubic-bezier(.2,.8,.2,1);
}
.mockup.pc:hover {
  transform: scale(1.1);
}

/* hoverで上に流す */
/* .works__card:hover .mockup.pc .site {
  transform: translateY(-30%);
} */
.works__card:hover {
  cursor: pointer;
}

/* PCフレーム（固定） */
.mockup.pc .frame {
  position: relative;
  z-index: 2;
  width: 100%;
  pointer-events: none;
}
.works_img {
  transition: transform 0.3s ease;
}
.works_img img {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.works_img:hover{
  transform: scale(1.1);
}


/* ===== ABOUT ===== */
.about_top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px 200px;
}

.about__image {
  position: relative;
  display: inline-block;
}
.about__image img {
  display: block;
  height: 400px;
  width: 400px;
  object-fit: cover;
  overflow: hidden;
  /* position: relative;
  z-index: 1; */
}
.about__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #e5e0d6;
  z-index: -1;
  transform: translate(-14px, 18px) rotate(-5deg);
}

.about__text h2 span {
  color: #6b7427;
  font-weight: bold;
}
.about__text h2 {
  font-family: "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 36px;
  letter-spacing: 0.2rem;
  /* line-height: 0.5; */
  color: #333;
  margin-bottom: 30px;
}
.about__text p {
  font-family: "fot-tsukuardgothic-std", sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 16px;
  color: #000;
}
.about__text h3 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}
.fontstyle_maru {
  line-height: 2;
  letter-spacing: 0.1rem;
  /* margin-bottom: 40px; */
}
.more {
  margin-top: 30px;
  border: 1px solid #333;
  border-radius: 3px;
  font-weight: bold;
  text-decoration: none;
  width: 200px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #6b7427;
}
.more:hover {
  background-color: #6b7427;
  border: none;
  color: #fff;
  transition: color 0.5s ease;
}

/* ===== CONTACT ===== */
.contact {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  background: #6b7427;
  color: #fff;
  padding: 150px 40px;
  /* margin-top: 150px; */
}
.contact h2 {
  font-family: "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.2rem;
  margin-bottom: 30px;
}
.contact__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #274065;
  font-size: 18px;
  font-weight: bold;
  max-width: 350px;
  width: 100%;
  height: 90px;
  background: #fff;
  border-radius: 3px;
}
.contact__btn img {
  width: 26px;
}
.contact__btn:hover {
  color: #fff;
  background-color: #274065;
  transition: color 0.5s ease;
}
.icon-hover {
  display: none;
}
.contact__btn:hover .icon-default {
  display: none;
}
.contact__btn:hover .icon-hover {
  display: inline;
}


/* ==================================
上へ戻るボタン
================================== */
.page-top {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  right: 60px;
  bottom: 20px;
  cursor: pointer;
  opacity: 0; 
  pointer-events: none; 
  border: 0;
  background: none;
  transition: opacity 2s ease, transform 2s ease; 
  /* z-index: 100; */
}
.page-top span:before {
  position: absolute;
  top: -22px;
  left: 5px;
  transform: rotate(-45deg);
  display: block;
  width: 12px;
  height: 12px;
  content: "";
  border: 0.5px solid #000;
  border-width: 1px 1px 0px 0px;
}
.page-top span:after {
  position: absolute;
  width: 50px;
  height: 50px;
  border: 1px solid #000;
  content: "";
  top: -43px;
  left: -15px;
  border-radius: 50%;
}
.page-top.active {
  opacity: 1; 
  pointer-events: auto; 
  transform: translateY(0); 
}
.page-top_wrap:hover {
  opacity: 0.5;
}


/* ==================================
レスポンシブ
================================== */
@media (min-width: 841px) {
}

@media (max-width: 840px) {
  .mv_wrap {
    flex-direction: column;
    padding: 100px 20px;
  }

  .works {
    padding: 80px 20px;
  }
  .works__list {
    gap: 40px 2%;
  }
  .works__card {
    padding: 15px;
  }

  /* about */
  .about_top {
    padding: 0 20px;
  }

  /* フッター */
  .contact {
    flex-direction: column;
    align-items: baseline;
    gap: 40px;
    padding: 100px 10px;
  }
}


@media (max-width: 540px) {
  /* base */
  .sp_none {
    display: none;
  }

  #top_mv {
    min-height: unset;
  }
  /* mv */
  .mv_wrap {
    flex-direction: column;
    align-items: baseline;
    gap: 40px;
    padding: 150px 20px 80px;
  }
  .mv_wrap {
    width: 90%;
    margin: 0 auto;
  }
  /* works */
  .works {
    padding: 0 20px 80px;
  }
  .works__text {
    margin-bottom: 20px;
  }
  .works__list {
    grid-template-columns: auto;
    gap: 40px;
  }
  .works__list h3 {
    font-size: 18px;
  }
  /* about */
  .about_top {
    flex-direction: column;
    padding: 0 20px;
    margin-bottom: 80px;
  }
  .about__text p {
    margin-bottom: 30px;
  }
  .about__image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    overflow: hidden;
  }

  /* contact */
  .contact {
    flex-direction: column;
    padding: 80px 20px;
  }
}