:root {
  --bg-color: rgba(250,182,182);
  --bg-image: url("../img/bg.png");
  --second-color: #20502E;
  --main-color: #F7F7F7;

  --font-Ja: "fot-tsukuardgothic-std", sans-serif;
  --font-En: "figtree", sans-serif;
  --font-color: #2B2B2B;

  --container-max-width: 1240px;
}

/* -------------------------
 * フォントサイズ
 * ------------------------- */
html {
  --10px: clamp( 10px, calc( 9.072164948453608px + 0.24742268041237112vw ), 16px );
  --14px: clamp(0.875rem, (0.6875rem + 0.75vw), 2rem);
  --16px: clamp( 1rem, ( 0.8333333333333333rem + 0.6666666666666667vw ), 2rem );
  --24px: clamp(1rem, (0.75rem + 1vw), 2.5rem);
  --20px: clamp( 1.25rem, calc( 1.125rem + 0.5vw ), 2rem );
  --21px: 1.3125rem;
  --32px: clamp(2rem, calc(2rem + 0vw), 2rem);

}

a {
  text-decoration: none;
  color: var(--main-color);
}

h1,nav,h2,h3 {
  font-family: var(--font-En);
  font-size: var(--24px);
  letter-spacing: 1.2px;
  color: var(--font-color);
}

p {
  font-family: var(--font-Ja);
  font-size: var(--14px);
  line-height: 1.7;
  color: var(--font-color);
}

body {
  background-color: var(--bg-color);
  background-image: var(--bg-image);
  overflow-x: hidden;
}

article {
  .hero {
    display: flex;
    width: 100vw;
    height: 100vh;
    position: relative;
    /* タイトル */
    .mv-image {
      position: absolute;
      z-index: 3;
      width: calc(100vw / 1.5);
      bottom: 20px;
      right: 90px;
      @media screen and (max-width: 650px) {
        top: 50px;
        left: 10vw;
        width: calc(33.333vw / 2.8);
      }
    }
    /* サイドバー ここから*/
    aside {
      z-index: 4;
      text-align: center;
      .wrapper {
        background-color: var(--second-color);
        position: fixed;
        width: 20%;
        padding-top: 56px;
        a:hover {
          opacity: 0.5;
        }
        h1 {
          font-size: clamp(12px, (5.661971830985916px + 1.6901408450704223vw), 30px);
          @media screen and (max-width: 650px) {
            display: none
          }
        }
        nav {
          padding-top: 56px;
          .nav-list {
            padding-left: 0px;
            li {
                list-style: none;
                padding-bottom: 48px; 
                a:hover {
                  border-bottom: 1px solid var(--main-color);
                }
              }
              .sns-icon {
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 20px;
                a:hover {
                  opacity: 0.4;
                }
              }
            }
          }
        }
      } /* サイドバーここまで */
  }

  /* -------------------------
 * 背景色
 * ------------------------- */
  .hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50vw;
    height: 100%;
    background-color: var(--second-color);
    z-index: 1;
@media screen and (max-width: 510px) {
      height: 90%;
    }
  }
  
  /* -------------------------
 * MV画像
 * ------------------------- */
  .hero::after {
    content: "";
    position: absolute;
    top: 40%;
    left: 67%;
    width: 70%;
    height: 100%;
    background: url("../img/mv.jpg") center/cover no-repeat;
    transform: translate(-50%, -50%);
    z-index: 2;
    border-bottom-left-radius: 124px;
  }

  /* -------------------------
 * ハンバーガーアイコン
 * ------------------------- */
  .hamburger {
    display: none;
    span {
      display: block;
      border-radius: 1.5px;
      display: block;
      background-color: var(--main-color);
      width: 22px; 
      height: 2px;
    }
  }
  /* 開いたとき */
  .hamburger.is-active span {
    &:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
    }
    &:nth-child(2) {
      opacity: 0;
    } 
    &:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
    }
  } 
  
  main {
    .container {
      max-width: var(--container-max-width);
      margin: 0 auto;
      padding: 10% 0;
      @media screen and (max-width: 650px) {
        max-width: none;
      }
		@media screen and (max-width: 510px) {
		 padding: 0 0 20% 0;
		}
      .card {
        max-width: 715px;
        background-color: var(--main-color);
        text-align: center;
        width: calc(750vw / 14); /* calc( 表示させたいピクセル数 vw/ 表示させたい画面幅 ÷100) */
        margin: 0 auto;
        border-radius: 5px;
        padding: 24px 0;
        font-size: var(--14px);
        border: 2px dashed var(--bg-color);
        box-shadow: 0 0 0 8px var(--main-color);
        position: relative;
		@media screen and (max-width: 650px) {
            width: calc(890vw / 10);
          }
        &::after {
          content: "";
          background: no-repeat url("../img/main_img.png") center/contain;
          display: inline-block;
          width: 600px;
          height: 90px;
          left: 100%;
          top: 100%;
          position: absolute;
          transform: translate(-42%, -55%);
          @media screen and (max-width: 650px) {
            width: 75%;
            left: 65%;
          }
        }
        p {
          line-height: 3.5;
          text-wrap: balance;
          word-break:auto-phrase;
        }
      }
    }
  }

  /* -------------------------
 * 650px以下
 * ------------------------- */
  @media screen and (max-width: 650px) {
    .hero {
      flex-direction: column;
      aside {
        .wrapper {
          width: 30%;
          position: static;
          padding-top: 24px;
          background: none;
        }
      }
    }
    /* ハンバーガーアイコン */
    .hamburger {
      display: flex;
      position: fixed;
      border-radius: 50%;
      background-color: var(--second-color);
      cursor: pointer;
      z-index: 999;
      top: 20px;
      right: 20px;
      width: 50px;
      height: 50px;
      border: none;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 6px;
    }
    aside {
      width: 100%;
    }
    .nav {
      justify-content: center;
      position: fixed;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100vh;
      background-color: var(--second-color);
      transition: left 0.3s ease;
      z-index: 900;
      padding: 60px 20px;
      display: flex;
      flex-direction: column;
      gap: 50px;
      opacity: 0.9;
      &.is-active {
        left: 0;
      }
    }
  }
}

footer {
  background-color: var(--second-color);
  .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    text-align: center;
    padding: 24px 0;
    color: var(--main-color);
    @media screen and (max-width:650px){
      max-width: none;
    }
    .wrapper {
      display: inline-block;
      text-align: left;
      padding-bottom: 16px;
      h2 {
        color: var(--main-color);
      }
      p {
        font-size: var(--24px);
        font-family: var(--font-En);
        color: var(--main-color);
      }
    }
    small {
      width: 50%;
      border-top: 0.8px solid var(--main-color);
      padding-top: 16px;
      color: var(--main-color);
    }
  }
}

/* -------------------------
 * ページトップアイコン
 * ------------------------- */
.page-top {
  position: fixed;
  right: 30px;
  bottom: 20px;
  width: clamp(15px, (13.5px + 0.375vw), 24px);
  height: auto;
  z-index: 1000;
  opacity: 0;
  pointer-events:none;
  transition: opacity 0.3s ease;
  img {
    width: 100%;
  }
  @media screen and (max-width: 425px) {
    right:12px;
  }
}
.page-top.active {
    opacity: 1;
    pointer-events: auto;
}

/* aboutページ,worksページで画像非表示 */
.page-id-10 .hero::after,
.page-id-10 .hero::before,
.page-id-230 .hero::after,
.page-id-230 .hero::before {
  content: none;
} 

.page-id-10 .hero,
.page-id-230 .hero {
  height: 0;
}

.page-id-10 .container h1,
.page-id-230  .container h1 {
  background: var(--main-color);
  padding: 50px;
  text-align: center;
  position: relative;
  @media screen and (max-width: 650px) {
    padding: 32px;
  }
  &::before {
    content: "";
    background: url('../img/title_img.png') no-repeat;
    position: absolute;
    display: block;
    width: clamp(240px, 30vw, 410px);
    height: 100%;
    bottom: 15%;
    background-size: 90%;
    left: 0%;
    transform: rotate(-12deg);
    @media screen and (max-width: 500px) {
      bottom: 30%;
    }
  }
}

/* -------------------------
 * aboutページ
 * ------------------------- */
.page-id-10 {
  --container-max-width: 70%;
  .container {
    margin: 0 0 0 auto;
    padding: 0;
    .has-text-align-left {
      padding: 7% 0 3% 0;
      @media screen and (max-width: 650px) {
        padding: 10% 0 3% 10px;
      }
    }
    .card-wrapper {
      display: flex;
      justify-content: center;
      gap: 1.5rem;
      padding-right: 1rem;
      @media screen and (max-width: 768px){
        display: block;
      }
      h3 {
        font-family: var(--font-Ja);
        padding: 20px 0;
      }
      .thumb {
        width: clamp( 100px, calc( 55.55555555555556px + 6.944444444444445vw ), 250px );         
        height: clamp( 100px, calc( 55.55555555555556px + 6.944444444444445vw ), 250px );
        border-radius: 50%;     
        background: var(--second-color);
        margin: 0 auto;
        position: relative;
        img {
          width: 65%;
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
        }
      }
      .card {
        background: var(--main-color);
        border: none;
        box-shadow: none;
        padding: 24px 20px;
        max-width: none;
        @media screen and (max-width: 768px){
          margin-bottom: 5%;
        }
        @media screen and (max-width: 650px){
          width: 95%;
        }
        .item {
          display: flex;
          gap: 3%;
          b {
            font-family: var(--font-Ja);
            padding-top: 0.5%;
          }
        }
        &::after {
          content: none;
        }
        p {
          line-height: 1.7;
          word-break: break-all;
          text-align: justify;
          text-wrap: wrap;
		　line-break: strict;
        }
        hr {
          border-top: 2px dotted var(--font-color);
        }
      }
    }
    .description {
      margin: 0 auto;
      width: 60%;
    }
    .wp-block-image {
      width: 80%;
      margin: 0 auto;
    }
  }
  /* -------------------------
 *  Swiper
 * ------------------------- */
  .swiper {
    width: 100%;
  }
  .swiper-slide {
    aspect-ratio: 16 / 10; 
    display: flex;
    border-radius: 5px;
	@media screen and (max-width: 650px) {
	   aspect-ratio: 1 / 1; 
	  }
  }
  .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .swiper-wrapper {
    transition-timing-function: linear;
  }
}

/* -------------------------
 *  Worksページ
 * ------------------------- */
.page-id-230 {
  --container-max-width: 70%;
  .container {
    margin: 0 0 0 auto;
    padding: 0;
    .works-wrapper {
      display: flex;
      justify-content: space-around;
      flex-wrap: wrap;
      gap: 30px;
      padding: 10% 0;
      .works-card {
        background: var(--main-color);
        border-radius: 5px;
        cursor: pointer;
        width: 45%;
        transition-duration: .5s;
        &:hover {
          transform: scale(1.05);
          box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        }
        @media screen and (max-width: 650px) {
          width: 90%;
          display: block;
        }
        .thumb {
          width: 90%;
          margin: 0 auto;
          aspect-ratio: 3 / 2;
          overflow: hidden;
          padding-top: 5%;
          img {
            height: 100%;
            width: 100%;
            object-position: center;
            object-fit: cover;
          }
        }
        .description {
          padding: 3% 5%;
          font-family: var(--font-Ja);
          font-size: var(--14px);
          .annotation {
            font-size: var(--10px);
            padding-bottom: 1%;
          }
        }
      }
      /* ポップアップウィンドウ */
      .popup {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        overflow-y: scroll;
        background: rgba(94, 94, 94, 0.7);
        .popup-card {
          background: #fff;
          padding: 2%;
          border-radius: 5px;
          width: clamp(450px, 50%, 1400px);
          position: relative;
          top: 50px;
          margin: 0 auto;
		  padding-bottom: 80px;
          p:nth-of-type(1),
          p:nth-of-type(2),
          p:nth-of-type(3) {
            text-align: center;
          }
          @media screen and (max-width: 470px) {
            width: 95%;
          }
          a {
            color: var(--font-color);
            font-size: var(--10px);
          }
          img {
            padding: 2% 0 8% 0;
          }
          .popup-close {
            position: fixed;
            top: 95%;
            border-radius: 50%;
            background: var(--bg-color);
            width: 50px;
            height: 50px;
            border: none;
            transform: translate(-50%,-50%);
            left: 50%;
            cursor: pointer;
            transition-duration: .4s;
            &:hover {
              transform: translate(-50%,-50%) scale(1.2);
            }
            @media screen and (min-width: 2000px) {
              width: 90px;
              height: 90px;
            }
            &::before,&::after {
              content: "";
              position: absolute;
              width: 3px;
              height: 20px;
              border-radius: 5px;
              background: var(--main-color);
              @media (min-width: 2000px) {
                height: 30px;
              }
            }
            &::before {
              transform: translate(-50%,-50%) rotate(45deg);
            }
            &::after {
              transform: translate(-50%,-50%) rotate(-45deg);
            }
          }
          .annotation {
            font-size: var(--10px);
          }
          .wrapper {
            display: flex;
            justify-content: space-between;
            padding-bottom: 8%;
            .description {
              width: 65%;
              text-align: justify;
              line-break: strict;
			   @media (max-width: 470px) {
                width: 72%;
              }
            }
            span {
              font-size: var(--10px);
              @media screen and (max-width: 450px) {
                display: block;
              }
            }
            p {
               text-align: left;
            }
          }
        }
        &.active {
          display: block;
        }
      }
    }
  }
}