/* スマホ用レイアウト（768px以下） */
@media screen and (max-width: 768px) {


    .pc {
        display: none !important;
      }

    /* 画面全体の余白や基本幅調整 */
    body {
      font-size: 12px;
      overflow-x: hidden;
    }
   /* ハンバーガーボタン */
   .hamburger {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 23px;
    height: 22px;
    z-index: 1001;
    cursor: pointer;
  }
  .hamburger span {
    position: absolute;
    display: block;
    height: 1px;
    width: 100%;
    background-color: rgb(55, 56, 60);
    transition: all 0.3s ease;
  }
  .hamburger span:nth-child(1){
    top: 0;
  }
  .hamburger span:nth-child(2){
    top: 10px;
  }
  /* メニューが開いた時のスタイル */
  .global-nav.active {
    height: 100vh;
  }

  .global-nav.active ul {
    display: flex;
  }

  /* メニュー開閉時のボタンアニメ（Xになる） */
  .hamburger.active span:nth-child(1) {
    /* transform: rotate(45deg) translateY(9px); */
    rotate: 45deg;
    top: 5px;

  }

  .hamburger.active span:nth-child(2) {
    /* transform: rotate(-45deg) translateY(-9px); */
    rotate: -45deg;
    top: 5px;

  }

 /* ▼ ファーストビュー背景固定とテキストスクロール */
 .mv {
    position: relative;
    height: 100vh;
    overflow: hidden;
    padding: 0 30px;
  }

  #fv-bg {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
  }

  .fv-scroll-text {
    position: relative;
    padding: 200vh 30px 0;
    font-size: 20px;
    color: white;
    line-height: 1.8;
    text-align: center;
    z-index: 2;
  }

  .fv-scroll-text p {
    max-width: 400px;
    margin: 0 auto;
  }

  /* 念のためオーバーフロー防止 */
  html, body {
    overflow-x: hidden;
  }

  .nav-menu{
    background-color: #F8F7F3;
  }
  .nav-menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  /* 表示制御クラス（JSで付け外し） */
  .global-nav.active {
    display: block;
  }
  .global-nav.active .nav-menu {
    opacity: 1;
    pointer-events: auto;
  }
  /* メニュー展開スタイル */
  .global-nav {
    position: fixed;
    top: 0;
    left: 0;
    padding-left: 50px;
    width: 100%;
    height: 0;
    overflow: hidden;
    background-color: #F8F7F3;
    z-index: 1000;
    transition: height 1s ease;
  }

  .global-nav .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    gap: 30px;
    display: none;
    font-size: 15px;
    opacity: 0;
    transition: opacity 1s ease 1s;
    pointer-events: none;
  }

  .nav-menu li{
    width: 200px;
    text-align: left;
  }
  .nav-menu a{
    font-size: 20px;
    letter-spacing: .3rem;
  }
  .nav-logo img{
    width: 120px;
    padding-top: 50px;
  }
    header nav {
      top: 20px;
      right: 20px;
    }
  
    header nav ul {
      flex-direction: column;
      gap: 10px;
      padding: 10px;
      border-radius: 8px;
    }
    .first-letter{
        color: #FF9000;
    }
    .nav-contact{
        display: flex;
    }
    .nav-contact img{
        margin-left: 15px;
    }
    .nav-sns{
        margin-top: 30px;
        display: flex;
        position: absolute;
        gap: 50px;
        align-items: center;
        writing-mode: vertical-rl;
        right: 70px;
        top: 20%;
    }
    .sns-icons img{
        width: 30px;
    }
    .nav-sns .line{
        background-color: rgb(55, 56, 60);
        width: .5px;
        height: 50px;
    }

    .home h1 {
      position: absolute;
      left: -120px;
      top: -100px;
    }
  
    h1 img {
      width: 160px;
      
    }
  .home h2{
    font-weight: 700;
    font-size: 38px;
    letter-spacing: 0.1em;
    line-height: 25px;
    padding-top: 100px;
    margin-bottom: 50px;
  }
  .home h2 span{
    font-size: 10px;
    letter-spacing: 0.1em;
  }
    #fv-bg {
      width: 100%;
      height: 100vh;
    }
  
    .title_text_left,
    .title_text_right {
      position: static;
      margin: 20px 0;
      text-align: left;
      color: #fff;
    }
  
    .title_text_left p,
    .title_text_right p {
      font-size: 12px;
    }
    .title_text_right{
        padding-top: 300px;
    }
    .scroll-down {
      display: none;
    }
  
    /* Aboutセクション */
    #about{
        padding: 0 30px;
    }
    .about_box {
      flex-direction: column;
      gap: 40px;
      padding: 0 10px;
    }
  
    .about_left,
    .about_text {
      width: 100%;
      gap: 50px;
    }
  
    .about_text{
        font-size: 12px;
    }
    .button img{
        width: 30px;
    }
    /* Serviceセクション */
    #service {
      margin: 0;
      padding: 0 30px;
    }
  
    .service-cards {
      flex-direction: column;
      width: 100%;
      gap: 40px;
    }
  
    .cards {
      width: 100%;
      height: auto;
    }
  
    .cards_inner {
      margin: 40px 20px;
    }
  
    .service_inner {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .service_inner p {
      width: 100%;
    }
    .cards_tittle {
        text-align: center;
        line-height: 20px;
        margin-bottom: 0;
      }
    /* Worksセクション */

  .works-list {
        padding: 0 15px;
        gap: 40px;
        width: 80%;
    }

    .work-link {
        flex-direction: column; /* 縦並びに変更 */
        gap: 20px;
        align-items: start;
        padding-bottom: 40px;
    }

    .work-text {
        width: fit-content;
        text-align: left;
    }

    .work-button {
        justify-content: start;
        margin-top: 0px;
    }
    .works .button {
        display: flex;
        justify-content: center;
        margin-top: 0px;
    }
    .work-item figure,
    .item {
        width: 100%;
        height: auto;
    }

    .work-text .tag {
        font-size: 12px;
        line-height: 24px;
    }

    .work-text .client-name {
        font-size: 18px;
        line-height: 25px;
    }

    .work-text .description {
        font-size: 18px;
        line-height: 28px;
    }

    /* 偶数のjustify調整 */
.work-item:nth-child(2) a,
.work-item:nth-child(4) a {
    flex-direction: column-reverse;
}
.work-text:nth-child(even) {
    text-align: left;
    width: fit-content;
}



    /* Flowセクション */
    .flow_list {
      padding: 30px;
      gap: 40px;
    }
  
    .flow_item {
      width: 260px;
      height: auto;
      padding: 14px;
    }
    .flow_item h3{
        font-size: 18px;
        font-weight: 400;
        line-height: 40px;
        padding-bottom: 20px;
        margin-top: 30px;
    }
  
    .flow_item p {
      width: 100%;
    }
    /* スクロールを促すテキスト */
    .scroll {
        position: relative;
        white-space: nowrap;
        width: 100%;
        font-size: 70px;
        color: #E8E6E0;
        background-color: transparent; /* 必要に応じて背景色を */
      }
      
      .scroll-text {
        display: inline-block;
        padding-left: 100%;
        animation: scroll-left 30s linear infinite;
        letter-spacing: 0.1em;
      }
      
      @keyframes scroll-left {
        0% {
          transform: translateX(0%);
        }
        100% {
          transform: translateX(-100%);
        }
      }
    
    /* Contactセクション */
    .contact{
        padding: 0 50px;
    }
    .contact_text{
        line-height: 30px;
    }
    .contact_text .text_small {
        width: 100%;
        font-size: 13px;
        line-height: 30px;
    }
    .contact_text .text_big{
    font-size: 17px;
    line-height: 30px;
  }
    .mail a {
      width: 100%;
      flex-wrap: wrap;
      font-size: 14px;
    }
    .mail p{
        font-size: 10px;
        line-height: 20px;
        margin-bottom: 20px;
      }
    .dl_box{
    font-size: 12px;
    }
    .dl_box p{
    margin-bottom: 30px;
    }
    .dl_text {
      flex-direction: column;
      align-items: flex-start;
      gap: 0px;
      margin-bottom: 30px;
    }
  
    .dl_text p {
      font-size: 12px;
      margin-bottom: 0;
    }
    .dl_link {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0 auto;
    }

    /* ページトップボタン */
    .page-top-btn {
      bottom: 20px;
      right: 20px;
      font-size: 10px;
    }
  
    .page-top-text {
      width: 70px;
      height: 70px;
      font-size: 10px;
    }
  
    .page-top-arrow {
      height: 40px;
    }
  
    /* Footer */
    footer{
        background-color: #F8F7F3;
        margin-top: 50px;
        margin-bottom: 0;
        padding-top: 50px;
    }
    .footer_inner{
        display: flex;
        justify-content: center;
        gap: 50px;
        padding-bottom: 40px;
    }
    .footer_box {
      margin-left: 0;
      text-align: center;
    }
  
    .footer_box ul {
      flex-direction: column;
      align-items: center;
      gap: 0px;
    }
  
    .follow-me {
      flex-direction: column;
      align-items: center;
      padding-top: 30px;
    }
  
    .follow-me p {
      padding-right: 0;
      font-size: 8px;
    }
  
    .follow-me span {
      display: none;
    }
    .follow-me img{
        width: 40px;
        height: auto;
    }
    small{
        font-size: 7px;
    }


  /* --------------ここから下層ページ--------------- */

  /* ----------ヘッダー----------- */


  body.sub .logo-sub {
    display: block;
    width: 120px;
    height: auto;
    position: fixed;
    top: 5px;
    left: 20px;
    z-index: 10;
  }

  .sub header {
    height: 50px;
  }

  .sub_h1 {
    margin-left: 30px;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .en {
    font-size: 70px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.1em;
    color: #FF9000;
    opacity: 20%;
  }

  .jpn {
    font-size: 18px;
    font-weight: 300;
    line-height: 30px;
    letter-spacing: 0.2em;
  }
.breadcrumb {
  width: fit-content;
  margin-top: 30px;
  margin-left: 30px;
  margin-bottom: 90px;
  color: #747070;
  font-size: 15px;
}
.breadcrumb a {
  color: #747070;
  font-size: 15px;
}
  /* section全体余白調整 */
  section {
    padding: 0px;
  }

  /* ===== SKILL セクション ===== */

  .circle-image-wrapper {
    width: 80px;
    margin: 0 auto;
    position: absolute;
    top: 0px;
    left: 52%;
  }

.skill_photo img{
  width: 200px;
  height: auto;
  margin: 0 auto;
  padding-bottom: 80px;
}

.section_titlle{
  position: relative;
  font-size: 13px;
  letter-spacing: 0.2em;
  line-height: 30px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 20px; /* 線と文字の間隔 */
  padding-bottom: 15px;
}
.section_titlle::before{
  content: "";
  flex: 0.2;
  height: 1px;
  background-color: rgb(55, 56, 60);
}
.skill_text{
  text-align: start;
  width: fit-content;
  margin: 0 auto;
  position: relative;
}
.skill_text p{
  font-size: 13px;
  line-height: 30px;
  letter-spacing: 0.2em;
  font-weight: 200;
  padding-top: 22px;
}


  /* ===== profile セクション ===== */

  .profile{
  width: 100%;
  background-color: #F8F7F3;
  font-weight: 300;
  margin-top: 100px;
  margin-bottom: 128px;
  }

  .profile h1{
    width: 161px;
    padding-bottom: 73px;
    padding-left: 30px;
  }
  .jinjya{
    width: 200px;
    margin: 0 auto;
    padding-bottom: 44px;
  }
  .name{
    display: flex;
    flex-direction: column;
    padding-bottom: 18px;
  }
  .name p{
    font-size: 16px;
    letter-spacing: 0.4em;
  }
  .name span{
    color: #FF9000;
    font-size: 7px;
    letter-spacing: 0.3em;
    line-height: 0.1px;
    }
  .profile_inner{
    width: fit-content;
    margin: 0 auto;
    font-weight: 300;
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .profile_text{
    font-size: 10px;
    line-height: 26px;
  }
  .profile_sns{
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding-bottom: 40px;
  }
  .profile_sns img{
    width: 35px;
  }
  .profile_bottom{
    position: relative; /* ここが重要 */
    padding-left: 30px;
    height: 300px; /* 必要に応じて高さ調整 */
    }
  .profile_bottom .sup {
    position: absolute;
    top: 0;
    left: 20%;
    width: 180px;
    z-index: 1;
  }
  
  .profile_bottom .disney {
    position: absolute;
    top: 60%;
    left: 50%;
    width: 150px;
    z-index: 2;
  }

        /* ーーーーーSTRENGTHセクションーーーーー */

      .strength h2{
        font-weight: 700;
        font-size: 50px;
        line-height: 40px;
        letter-spacing: 0.2em;
        padding-top: 200px;
        text-align: center;
        margin-bottom: 88px;
    }
    .strength h2 span{
        font-size: 13px;
    }
    .strength_inner{
      margin-left: 30px;
      margin-right: 30px;
      font-weight: 300;
    }
    .strength_line{
      display: block;
      height: 0.5px;          /* 太さを調整 */
      background-color: #9d9696; /* 色を指定 */
      margin: 80px auto;
    }
    .strength_listitem_left{
      padding-bottom: 20px;
    }
    .strength_smalltitlle{
      font-size: 40px;
      font-weight: 300;
      letter-spacing: 0.2em;
      line-height: 30px;
      color: #FF9000;
      opacity: 0.4;
      font-family: linotype-didot, serif;

    }
    .strength_titlle{
      font-size: 10px;
      letter-spacing: 0.2em;
      line-height: 30px;
    }
    .strength_listitem_right{
      font-size: 13px;
      line-height: 23px;
      letter-spacing: 0.2em;
    }



    /* ーーーーーSERVICEセクションーーーーー */


    .category-list{
      width: fit-content;
      margin: 0 auto;
      display: flex;
      padding-bottom: 100px;
    }
    /* 最初の要素だけ左線を消す */
    .category-list li:first-child {
      border-left: none;
    }
    
    .category-list li {
    padding: 0.1em 1.2em;
    font-weight: 300;
    font-size: 10px;
    letter-spacing: 0.1em;
    line-height: 20px;
    border-left: 0.5px solid rgb(55, 56, 60);
  }
 .service_plan {
    background-color: #F8F7F3;
    padding-top: 50px;
    padding-bottom: 30px;
    margin-left: 20px;
    margin-right: 20px;
    border-radius: 30px;
    position: relative;
  }

    .service_plan img{
      width: 30vw;
      opacity: 1;
    }

    .img_webdesign{
      position: absolute;
      left: 50px;
      top: 1380px;
    }
    .img_graphic{
      position: absolute;
      top: 600px;
      right: 50px;
        }
    .img_graphic2{
      position: absolute;
      right: 50px;
      bottom: 750px;
    }

    /* イラストにふわっとアニメーション */
    .scroll-float{
      transform: translateY(0);
      transition: transform 1s linear;
      pointer-events: none;
      animation: scrollMove 20s linear infinite alternate;
    }
    @keyframes scrollMove{
      0% {
        transform: translateY(0);
      }100% {
        transform: translateY(100px);
      }
    }

    .plan_item{
      padding-bottom: 50px;
    }
    .plan_tittle{
      display: flex;
      background-color: #fcfcfc;
      border-radius:  0 50px 50px 0;
      width: fit-content;
      gap: 13px;
      padding: 5px 30px;
      margin-bottom: 26px;
    }
    .right{
      border-radius:  50px 0 0 50px;
      margin-left: auto;
    }
    .plan_tittle h2{
      font-size: 20px;
      color: #FF9000;
      line-height: 40px;
      letter-spacing: .1em;
      font-weight: 300;
    }
    .plan_tittle span{
      font-size: 10px;
      letter-spacing: .2em;
      line-height: 40px;
      font-weight: 300;
    }
    .plan_text{
      margin-left: 30px;
      margin-right: 30px;
      font-size: 15px;
      letter-spacing: .1em;
      line-height: 30px;
    }
    .plan_smalltext{
      font-size: 10px;
    }
    .plan_text span{
      font-size: 10px;
    }
    .plan_right{
      text-align: right;
    }
    #basicplan,#setplan{
      margin-bottom: 50px;
    }

      /* -------------WORKSページ-------------- */

.design_container {
  padding-top: 50px;
  padding-bottom: 100px;
}
.design-item{
  padding-bottom: 50px;
}
.work-tag{
  font-size: 10px;
  line-height: 20px;
  height: 20px;
  letter-spacing: .15em;
  background-color: #F8F7F3;
  padding: 2px 3px;
  border-radius: 20px;
  color: #FF9000;
  display: inline-block;
  margin-top: 18px;
  margin-bottom: 10px;
  font-weight: 300;
}

.work-client{
  font-size: 10px;
  line-height: 15px;
  letter-spacing: .2em;
  padding: 0px;
}
.work-title{
  font-size: 15px;
  line-height: 25px;
  letter-spacing: .2em;
  padding: 0px;
}

  .design_list > * {
    flex: 1 1 calc(50% - 40px); /* 2列組っぽく調整 */
    max-width: 100%;
  }

.design_list img {
  width: 100%;             /* 親要素に合わせる */
  max-width: 350px;        /* 画像の最大幅（任意で調整） */
  height: 200px;           /* 高さを統一 */
  object-fit: cover;       /* トリミングして均一に見せる */
}

.design_list {
  display: flex;
  flex-wrap: wrap;              /* 折り返し可能に */
  justify-content: center;      /* 中央寄せ */
  gap: 0px;                    /* アイテム間の余白を消す */
  padding: 0 5%;               /* 常に左右に10%余白 */
  box-sizing: border-box;
  margin-bottom: 0px;         /* アイテム間の余白を消す */
}

.design-item {
  flex: 1 1 calc(33.333% - 40px); /* PCでは3列 */
  max-width: 300px;              /* アイテムの最大幅 */
  min-width: 200px;              /* 小さすぎないよう制御 */
}

.design-item img {
  width: 100%;
  height: auto;
  object-fit: cover;             /* トリミングで揃える場合 */
}

/* ーーーーーーーーープライバシーポリシーーーーーーーーーーーー */

.page-privacy h2 {
    font-size: 15px;
    margin-bottom: 30px;
  }

.privacy_inner p {
    font-size: 12px;
}

.page-privacy h3 {
    font-size: 15px;
    margin-bottom: 10px;
}

.privacy_inner ul {
    font-size: 12px;
    margin-bottom: 50px;
}



/* ーーーーーーーーーーDESIGNページーーーーーーーーーー */


.design_inner {
    width: fit-content;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
}
.work-thumb img {
    width: 100%;
    box-shadow: 10px 10px 15px 5px #dddddd;
    height: 200px;
    object-fit: cover;
}


/* ーーーーー Works個別投稿ページ ーーーーー */

  .works-hero {
    flex-direction: column-reverse; /* 縦並び上下逆に */
    height: auto;
    margin-top: -50px; /* ヘッダー分の調整は小さめに */
    margin-bottom: 100px;
    align-items: baseline;
  }

  .works-tittle-h1 {
    padding-left: 10px;
    text-align: center;
    padding-bottom: 40px;
  }

  .works-tittle-h1::after {
    left: 20%;
    transform: translateX(-100%); /* 線を中央寄せ */
  }

  .works-hero-text {
    max-width: 100%;
    text-align: left;
    margin-top: 100px;
    margin-bottom: 30px;
  }
  .works-intro{
    width: 80%;
  }
  .works-hero-image {
    max-width: 100%;
    width: 100%;
    aspect-ratio: auto;
  }

  .works-block {
        flex-direction: column;
        gap: 10px;
        text-align: left;
        align-items: baseline;
    }
  .works-block-h3 {
      width: 100%;
      text-align: center;
  }

    .works-block h3 {
        font-size: 20px;
        width: fit-content;
    }

  .works-block-text {
    width: 100%;
    font-size: 12px;
    line-height: 28px;
  }

  .works-intro {
    width: 80%;
    padding-bottom: 100px;
  }
  .works-intro p {
    font-size: 12px;
    line-height: 25px;
  }

  .works-mockup {
    height: auto;
    padding-bottom: 50px;
  }

  .works-mockup img {
    height: auto;
  }
.works-hero-text .works-category {
    color: #FF9000;
    font-size: 15px;
    letter-spacing: 0.2rem;
    line-height: 35px;
    font-weight: 300;
}

.works-client {
    font-size: 15px;
    line-height: 40px;
    letter-spacing: 0.2rem;
    font-weight: 300;
}

.works-title {
    font-size: 25px;
    line-height: 30px;
    letter-spacing: 0.2rem;
    font-weight: 300;
}
.works-detail{
  width: 80%;
  padding-bottom: 70px;

}
.works-site-link{
  margin-bottom: 70px;
}

/* FLOWセクションのH2余白設定 */

}