@charset "UTF-8";

*{
    box-sizing: border-box;
    margin: 0;
    color: #121212;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    background-color: #f2f2f2ff;
    overflow-x: hidden;
}

body.is-fixed {
    overflow: hidden;
}

a{
    text-decoration: none;
    color: black;
}

ul{
    padding-left: 0;
}

.wrapper{
    padding: 20px 40px;
    background-color: #fafafa;
    background-image:
      linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    border-radius: 20px;
    overflow: hidden;
    width: 95%;
    margin-top: 3%;
    margin-bottom: 3%;
    margin-inline: auto;
    min-height: 100vh;
    max-width: 1550px;
  
}

.section__title{
    display: flex;
    align-items: baseline;
    gap: 1%;
}

.section__title p{
    font-size: 28px;
    font-weight: 700;
}

.section__dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #ff5c24ff;
    transform: translateY(-1px);
    flex-shrink: 0;
  }
  

.section__title span{
    font-size: 16px;
    margin-left: 5px;
}

/* ボタン本体 */
.btn-more {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    background-color: #F1F3F7;
    border-radius: 999px;
    font-size: 14px;
    letter-spacing: 0.12em;
    color: #161F35;
    border:1px solid #161F35;
    text-decoration: none;
    overflow: hidden;
    transition: color 0.3s ease;
}

.btn-more .text,
.btn-more .arrow {
    position: relative;
    z-index: 1;
    color: inherit;
    transition: transform 0.3s ease;
}
  
.btn-more:hover {
    color: #336FF8;
    background-color: #D9E4FF;
    border:1px solid #336FF8;
}

header{
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background-color: #f9f9f9ff;
    font-weight: 600;
}
.header__title a {
    display: flex;
    align-items: center;
    gap: 10px; /* アイコンとテキストの間隔 */
}
.header__title__text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin: 0;
}

.header__nav ul{
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.header__nav ul li{
    font-size: 18px;
    letter-spacing: 0.12em;
    cursor: pointer;
    position: relative;
}

/* 通常ナビリンク */
.header__nav li:not(.nav-cta) a {
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
}
  
.header__nav li:not(.nav-cta) a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s ease;
}
  
.header__nav li:not(.nav-cta) a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header__nav .nav-cta a {
    position: relative;
    overflow: hidden;
    height: 32px;
    padding: 0 16px;
    background-color: #eeeeee;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    letter-spacing: 0.1em;
    color: #b3b3b3;
    transition: color 0.3s ease;
}
  
.header__nav .nav-cta .label,
.header__nav .nav-cta .icon {
    position: relative;
    z-index: 1;
    color: inherit;
}
  
.header__nav .nav-cta a:hover {
    background-color: #1f61f7ff;
    color: #fff;
}
  
.header__nav .nav-cta a::after {
    display: none;
}


/* works */
.works{
    padding: 20px 40px 100px 40px;
}

.works__item {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 24px;
    row-gap: 64px;
    padding: 20px 40px;
}
  
.works__item__list__img {
    background-color: #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 450 / 450;
    cursor: pointer;
}

.works__item__list__img:hover img{
    transform:scale(1.1,1.1);
}
  
.works__item__list__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.3s;
}
.works__item__list__title{
    margin-top: 5%;
    font-size: 18px;
    font-weight: 600;
}

.works__item__list__tag{
    display: flex;
    gap: 2%;
    margin-top: 3%;
}

.works__item__list__tag p{
    color: #121212;
    background-color: #eeeeee;
    border-radius: 999px;
    border: 1px solid #b3b3b3;
    padding: 2px 10px 5px 10px;
    font-size: 13px;
}

.works__more {
    margin-top: 48px;
    text-align: center;
}
  

/* about */
.about{
    padding: 20px 40px 150px 40px;
}
  
.about__item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8%;
    align-items: center;
    padding: 20px 40px;
}
  
.about__img {
    position: relative;
    width: 100%;
    max-width: 450px;
}
  
.about__img__list {
    background-color: #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 350 / 450;
}
  
.about__img--back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
  
.about__img--front {
    position: absolute;
    bottom: -10%;
    right: -20%;
    width: 100%;
    aspect-ratio: 450 / 300;  /* ← 横長 */
    background-color: #cfcfcf;
    border-radius: 8px;
    overflow: hidden;
}
  
.about__img--front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
  
.about__text p {
    font-size: 16px;
    line-height: 30px;
    margin-bottom: 10%;
    padding-top: 2%;
}


/* footer */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    background-color: #000;
}
  
.back-to-top {
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.back-to-top .arrow {
    font-size: 10px;
    transform: translateY(-1px);
}
  
.back-to-top:hover {
    opacity: 0.7;
}
  
.footer__links {
    display: flex;
    gap: 24px;
}
  
.footer__links p {
    font-size: 12px;
    letter-spacing: 0.12em;
    color: #fff;
    text-decoration: none;
}



/* skill */
.skill{
    margin: 0 40px 100px 40px;
    padding: 30px 40px;
    background-color: #fff;
    border-radius: 20px;
}

.skill .section__title{
    border-bottom: 2px solid #f2f2f2ff;
    padding-bottom: 1%;
}

.skill__design,.skill__coding,.skill__movie{
    padding: 40px;
}

.skill__design,.skill__coding{
    border-bottom: 2px dotted #f2f2f2ff;
}

.skill__title{
    display: flex;
    align-items: center;
    gap: 1%;
    padding-bottom: 2%;
}

.skill__img{
    width: 50px;
    height: 50px;
    transform: rotate(-19deg);
    border-radius:
      43% 57% 43% 57% /
      57% 43% 57% 43%;
    background-color: #1f61f7ff;
  
    /* ここ重要 */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .skill__img img{
    width: 28px;   /* 好みで */
    height: 28px;
    object-fit: contain;
  
    /* 親の回転を打ち消したい場合 */
    transform: rotate(19deg);
  }
  
  .skill__title p{
    font-size: 28px;
    font-weight: 700;
  }
  .skill__tag{
    display: flex;
    gap: 1%;
    padding-top: 1%;
  }

  .skill__tag p{
    color: #b3b3b3;
    background-color: #eeeeee;
    border-radius: 999px;
    padding: 2px 10px 5px 10px;
    font-size: 13px;
  }


/* modal */
  .js-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
  
    display: none; /* ← ここだけ */
  
    background-color: rgba(0, 0, 0, 0.6);
  
    align-items: center;
    justify-content: center;
  
    padding: 40px;
  }
  
  .js-modal.is-active {
    display: flex; /* ← 表示はここだけ */
  }
  
.modal__container {
    background-color: #fff;
    color: #000;
    width: 100%;
    max-width: 900px;   /* ← 画面いっぱいにしない */
    max-height: 80vh;   /* ← 後ろが少し見える */
    overflow-y: auto;
    padding: 40px 40px 80px 40px;
    border-radius: 20px;
    text-align: left;
     /* スクロールバー非表示（主要ブラウザ対応） */
  -ms-overflow-style: none;  /* IE / Edge */
  scrollbar-width: none;     /* Firefox */
}
.modal__container::-webkit-scrollbar {
    display: none;             /* Chrome / Safari */
}

.modal__text .works__item__list__title{
    margin-top: 0;
    font-size: 28px;
}

.modal__text .works__item__list__tag,
.modal__text__p {
    margin-top: 2%;
}

.modal__text{
    margin-bottom: 5%;
    padding-inline: 2%;
}
  
.modal__img{
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-bottom: 10%;
}
.modal__img img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9; /* ← 統一したい比率 */
    object-fit: cover;   /* ← はみ出た部分をトリミング */
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(141, 141, 141, 0.35);
}

.modal__video {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-bottom: 10%;
}
  
.modal__video video{
    width: 100%;
    height: auto;              /* ← ここ重要 */
    aspect-ratio: 16 / 9;      /* ← 1080×1920 */
    object-fit: contain;         /* トリミングしたい場合 */
    border-radius: 12px;
    background-color: #edecf1;
    box-shadow: 0 10px 24px rgba(141, 141, 141, 0.35);
}
.modal__text__list li{
    list-style: none;
    display: flex;
    justify-content: space-between;
    border-top: 2px solid #f2f2f2ff;
    padding: 5%;
}
.modal__text__list li:last-child{
    border-bottom: 2px solid #f2f2f2ff;
}

.modal__text__list li h3{
    color: #1f61f7ff;
}


.modal__text__list li p{
    width: 80%;
    font-weight: 600;
}
.modal__text__list li p small{
    margin-top: 1%;
    color: #b3b3b3;
}
.sp-pdf{
    display: none;
}

/* タブレット */
@media (max-width: 1024px) {
    .header__nav ul{
        gap: 18px;
    }
    .works{
        padding: 30px 20px 100px 20px;
    }
    .works__item{
        padding: 30px 20px 20px 20px;
        grid-template-columns: repeat(2, 1fr);
    }
    .works__item__list__tag{
        margin-top: 5%;
    }
    .about{
        padding: 20px 20px 130px 20px;
    }
    .about__item{
        grid-template-columns: none;
        padding: 30px 20px;
        gap: 6%;
    }
    .about__img {
        width: 45%;
    }
    .about__img--front{
        bottom: 0%;
        right: -122%;
        width: 115%;
    }
    .about__more{
        text-align: center;
    }
    .modal__text__list li p{
        width: 70%;
    }
    .about__text p {
        font-size: 14px;
        line-height: 22px;
        padding-top: 1%;
    }
    .page-about .about{
        padding-top: 30px;
        padding-bottom: 100px;
    }
    .skill .section__title{
        padding-bottom: 5%;
    }
    .skill__title{
        padding-bottom: 4%;
    }
    .skill__tag{
        padding-top: 3%;
    }
}

/* SP */
@media (max-width: 430px){
    header{
        padding: 30px;
        background-color: transparent;
        position: fixed;
        height: 64px;
        width: 100%;
        top: 3%;
        z-index: 9999;
    }
    .header__title__text {
        font-size: 20px;
    }
    .header__nav ul{
        margin-top: 3px;
    }
    .header__nav ul li{
        font-size: 14px;
    }
    .wrapper{
        padding: 64px 30px;
        margin-top: 4%;
        margin-bottom: 8%;
        border-radius: 40px;
    }
    .works{
        padding: 20px 0;
    }
    .works__item{
        grid-template-columns: repeat(1, 1fr);
        row-gap: 40px;
    }
    .works__more{
        margin-top: 30px;
    }
    .about{
        padding: 40px 0;
    }
    .about__text{
        padding-top: 8%;
    }
    .about__text p{
        padding-top: 3%;
    }
    .about__text h3{
        font-size: 16px;
    }
    .about__img{
        width: 62%;
    }
    .about__img--front{
        bottom: -10%;
        right: -57%;
        width: 100%;
    }
    .page-about .about{
        padding: 20px 0;
    }
    .skill{
        margin: 80px 0 20px 0;
        padding: 30px 20px;
    }
    .skill__design, .skill__coding,.skill__movie{
        padding: 15px;
    }
    .skill__img{
        width: 40px;
        height: 40px;
    }
    .skill__img img{
        width: 20px;
        height: 20px;
    }
    .skill__title{
        gap: 4%;
    }
    .skill__title p{
        font-size: 20px;
    }
    .skill__text__p{
        font-size: 14px;
    }
    .skill__tag p{
        font-size: 12px;
    }
    .modal__container{
        padding: 20px 20px 40px 20px;
    }
    .modal__text{
        margin-bottom: 10%;
    }
    .modal__text .works__item__list__title{
        font-size: 20px;
    }
    .modal__text .works__item__list__tag, .modal__text__p{
        margin-top: 3%;
    }
    .modal__text .works__item__list__tag p{
        font-size: 12px;
    }
    .modal__text__p{
        font-size: 14px;
    }
    .modal__img{
        gap: 20px;
    }
    .modal__text__list li{
        flex-direction: column;
        gap: 5px;
    }
    .modal__text__list li p{
        width: 100%;
        font-size: 14px;
    }
    /* いったん非表示中 */
    .nav-cta{
        display: none;
    }
    .sp-pdf{
        display: block;
    }
    .floating-pdf {
        position: fixed;
        right: 30px;
        bottom: 40px;
        z-index: 1000;
      
        width: 72px;
        height: 72px;
      
        background: #2f6cff; /* 青 */
        border-radius: 48% 52% 46% 54% / 50% 45% 55% 50%; /* 生楕円 */
      
        display: flex;
        align-items: center;
        justify-content: center;
      
        box-shadow: 0 10px 24px rgba(47,108,255,.35);
        transition: transform .3s ease, box-shadow .3s ease;
      }
      .floating-pdf .icon-img {
        width: 40px;
        height: auto;
      }
      .floating-pdf:hover {
        transform: scale(1.06);
        box-shadow: 0 14px 32px rgba(47,108,255,.45);
      }
      .floating-pdf {
        opacity: 1;
        pointer-events: auto;
        transition: opacity .4s ease, transform .4s ease;
      }
      
      .floating-pdf.is-hide {
        opacity: 0;
        pointer-events: none; /* 消えてる時クリック不可 */
        transform: scale(0.9);
      }
        
      
}


  