body,html{
    margin: 0;
    overflow-x: hidden;
}

/*トップに戻るボタン*/
.pagetop {
    height: 50px;
    width: 50px;
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: #fff;
    border: solid 2px #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    box-shadow: 0 4px 6px rgb(0 0 0 / 30%);
}

.pagetop__arrow {
    height: 10px;
    width: 10px;
    border-top: 3px solid #000;
    border-right: 3px solid #000;
    transform: translateY(20%) rotate(-45deg);
}

/*ヘッダー&メインビジュアル*/
.container {
    width: 100%;
    height: 785px;
    position: relative;
}

.mainvisual{
    width: 100%;
    height: 785px;
    position: absolute;
    z-index: 1;
}

.logo{
    width: 225px;
    height: 84px;
    position: absolute;
    top: 20px;
    left: 40px;
    z-index: 2;
}


.sitemenu ul {
    display: flex;
    list-style: none;
    position: absolute;
    top: 45px;
    right: 45px;
    z-index: 2;
    gap: 80px; /* これでli同士のスペースを設定 */
}

.sitemenu a{
    font-family: Nunito;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.2em;
    color: white;
    margin: 0; 
    text-decoration: none; /*テキストの下線を表示しない*/
    display: flex;
    align-items: center; /* 垂直中央揃え */
    height: 30px; /* 親liと同じ高さを明示的に指定 */
}

.sitemenu li {
    margin: 0; /* 念のためリセット */
    height: 30px;
    display: flex;
    align-items: center; /* aタグの高さに揃える */
}



     /* ここから↓ハンバーガーボタンのデザイン */

     /* ハンバーガーボタンPCデザインは非表示 */
     .drawer__button,
     .drawer__nav {
       display: none;
     }
      /* ↑ここまでコピペ */

     .drawer__button {
        position: relative;
        width: 3rem;
        height: 3rem;
        background-color: transparent;
        border: none;
        cursor: pointer;
        z-index: 1000; /* メニューを開いている時もクリックできるよう設定 */
    }
    /* ハンバーガーボタン内の線 */
    .drawer__button > span {
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        width: 2rem;
        height: 2px;
        background-color:white;
        transform: translateX(-50%);
    }
    .drawer__button > span:first-child {
        transform: translate(-50%, calc(-50% - 0.5rem));
        transition: transform 0.3s ease;
    }
    .drawer__button > span:nth-child(2) {
        transform: translate(-50%, -50%);
        transition: opacity 0.3s ease;
    }
    .drawer__button > span:last-child {
        transform: translate(-50%, calc(-50% + 0.5rem));
        transition: transform 0.3s ease;
    }

     /* 展開時のデザイン */
    .drawer__button.active > span:first-child {
        transform: translate(-50%, -50%) rotate(-45deg);
    }
    .drawer__button.active > span:nth-child(2) {
        opacity: 0;
    }
    .drawer__button.active > span:last-child {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    /* メニューのデザイン */
.drawer__nav {
    position: fixed; /* 追従ヘッダーなどでも表示できるよう設定しておく */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000; /* ← これを追加して最前面に表示 */
  }

  .drawer__nav__inner {
    position: relative;
    width: 80%;
    height: 100%;
    background-color: white;
    padding: 4rem 1.5rem 1rem;
    margin: 0 0 0 auto;
    overflow: scroll;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .drawer__nav__menu {
    list-style: none;
    padding-left: 0;
  }
  .drawer__nav__link {
    display: block;
    color: black;
    text-decoration: none;
    padding: 1rem 1rem;
    border-bottom: solid 1px lightgray;
  }

  /* 展開時のデザイン */
.drawer__nav.active {
    opacity: 1;
    visibility: visible;
    display: inline-block;
  }
  .drawer__nav.active .drawer__nav__inner {
    transform: translateX(0);
    display: inline-block;
  }


  /* ↑ここまで */

/*WORKSつくったもの*/

.works-container h1{
    font-family: Nunito;
    font-size: 32px;
    font-weight: bold;
    color: black;
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.works-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.icon-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px; /* 段間のスペース */
    margin-top: 60px;
}

.row1{
    gap:200px;
    display: flex;
    justify-content: center;
  }

.row2{
    gap: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
}

  .works-icon {
    width: 350px;
    text-align: center;
  }


.works-icon img {
    width: 100%;
    height: auto;
    object-fit: cover; /* 中央寄せでトリミング */
}

.works-icon5 img,
.works-icon6 img {
    width: 470px;
    height: 255px;
    object-fit: contain; /* トリミングなしで画像全体を収める */
    background-color: #fff; /* 画像が小さい場合の背景色 */
}

.works-icon p,
.works-icon5 p,
.works-icon6 p{
    margin-top: 10px;
    font-size: 14px;
    color: #333;
    font-family: 'Nunito', sans-serif;
    text-align: center;
    
}

.banner1,.banner2,
.banner3,.banner4,
.website1,.website2{
    text-decoration: none; /*テキストの下線を表示しない*/
}


/*ABOUTわたしのこと*/
.about{
    width: 100%;
    height: 600px;
}

.about-container{
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 600px; /* aboutの高さに合わせるとちょうどいいかも */
    position: relative;
}

.about-container h1{
    font-family: Nunito;
    font-size: 32px;
    font-weight: bold;
    color: black;
    margin-top: 60px;
    margin-bottom: 0px;
}

.about-container img{
    width: 300px;
    height: 200px;
    margin-top: 60px;
}

.about-container p{
    font-family: Meiryo;
    font-size: 16px;
    font-weight: 500;
    color: black;
    margin-top: 60px;
    width: 512px;
    height: 150px;
    text-align: left;
}

/*CONTACTお問い合わせ*/
.contact{
    width: 100%;
    height: 240px;
    display: flex;
    justify-content: center;
    align-items: center; /* ← これを追加して縦中央に */
}

.contact-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.contact-container h1{
    font-family: Nunito;
    font-size: 32px;
    font-weight: bold;
    color: black;
}

.contact-container a{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 360px;
    height: 77px;
    border-radius:100px;
    background-color: #FFC000;
    color:white;
    font-family: Meiryo;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer; /* ← ボタン風のカーソルに */
}

/*フッター*/
.footer_container h2{
    font-family: Meiryo;
    font-size: 14px;
    font-weight: lighter;
}

.footer_container {
    background-color: #F5F5F5;
    width: 100%;
    height: 50px;
    margin-top: 0px;
    margin-bottom: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* スマホ表示用（画面幅430px以下） */
@media screen and (max-width: 430px) {

    *,
    *::before,
    *::after {
      box-sizing: border-box;
    }

    /* ヘッダー＆メインビジュアル */
    .container,
    .mainvisual {
        height: 60vh;
        object-fit: cover; /* 画像の比率を保ちながら、枠いっぱいに広げる */
        object-position: right;
    }

    .logo {
        width: 150px;
        height: auto;
        top: 10px;
        left: 10px;
    }

    .sitemenu ul {
        flex-direction: column;
        top: 80px;
        right: 10px;
        gap: 10px;
        padding: 10px;
        border-radius: 10px;
    }

    .sitemenu a {
        font-size: 16px;
        margin-left: 0;
        color: white;
    }

    .sitemenu {
        display: none;
        background-color: rgba(0, 0, 0, 0.8); /* 背景色追加 */
        position: absolute;
        top: 60px;
        right: 10px;
        padding: 10px;
        border-radius: 8px;
      }
    
      .drawer__button {
        display: block;
        position: absolute; /* または fixed */
        top: 20px;
        right: 20px;
        z-index: 1000;
      }

    /* WORKS */
    .works-container h1 {
        font-size: 24px;
        text-align: center;
    }

    .icon-container {
        gap: 30px;
        margin-top: 30px;
    }

    .row1,
    .row2 {
      flex-direction: column; /* 横並びを縦並びに */
      gap: 30px; /* gapも小さくする */
      align-items: center;
    }
  
    .works-icon,
    .works-icon5,
    .works-icon6 {
      width: 90%;
    }

    .works-icon5 img,
    .works-icon6 img {
        width: 100%;
        height: auto;
    }

    /* ABOUT */
    .about {
        height: auto;
    }

    .about-container {
        height: auto;
        margin-top: 20px;
    }

    .about-container h1 {
        font-size: 24px;
        margin: 20px 0 10px;
    }

    .about-container img {
        width: 90%;
        height: auto;
        margin-top: 20px
    }

    .about-container p {
        width: 90%;
        height: auto;
        font-size: 14px;
        line-height: 1.6;
        margin-top: 20px;
        text-align: left;
      }

       /* CONTACT */
       .contact-container h1{
        font-size: 24px;
       }

      .contact-container a{
        font-size: 16px;
        font-weight: lighter;
      }

      .no-scroll {
        overflow: hidden;
      }

      /* FOOTER */
      .footer_container h2{
        font-size: 12px;
        font-weight: lighter;
      }
}