@charset "utf-8";

/* =====================
w__contents section PC
===================== */
.w__contents {
    padding: 120px 60px;
}

.ww__1 {
    max-width: 1440px;
    margin: 0 auto;
}

.button-detail--w {
    margin-top: 30px;
}

 .mokup img {
    width: 90vw;
    border-radius: 12px;
    aspect-ratio: 1012 / 645;
    width: 100%;
    height: 100%;
    object-fit: cover;
 }
 .mokup__image--pc {
    display: block; 
}
.mokup__image--sp {
    display: none; 
}

.w__name {
    font-size: clamp(16px, 2.08vw, 30px);
    font-weight: 500;
}

.w--sub {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.w__txt {
    margin-top: 3rem;
    font-size: 1.8rem;
    line-height: 32px;
    width: 80%;
}

.url {
    font-size: 1.8rem;
    color: var(--oranji);
}

.mokup {
    margin-top: 120px;
}



.ww__2 {
    margin-top: 80px;
}

.w__title {
    font-size: clamp(1.3rem, 1.5vw, 1.6rem);
    letter-spacing: 0.12em;
}

.detail {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 120px;
    margin-top: 60px;
    align-items: start;
}


.web__training img{
    width: 60%;
}


.label {
    font-weight: bold;
    margin-top: 8px;
}

.content ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.homework {
    display: flex;
    flex-direction: column;
}

.w__1:first-of-type {
        margin-top: 0;
    }
.w__1.w__1__rogo{
    margin-top: 30px;
}

.w__1 {
    font-size: 1.4rem;
    line-height: 1.9;
    width: 80%;
    margin-top: 1.6rem;
    width: 100%;
}

.mokup--m{
    border-radius: 12px;
    width: 100%;
}
.mokup video{
    width: 100%;
    height: auto;
    object-fit: contain; 
    
}

.mokup2 {
    display: flex;
}

.mokup2 img {
    width: 60.25vw;
    aspect-ratio: 297 / 232;
    margin: auto;
    border-radius: 12px;
    object-fit: cover;
    margin-top: 120px;
    margin-right: 0;
}
.mokup--p img{
        object-fit: contain;
    }

.content__rogo img {
    width: 40vw;
    max-width: 180px;
}

.w__1__rogo{
    margin-top: 30px;
}



/* =====================
w__contents section ipad
===================== */

@media (max-width: 1230px) {
    .w__contents {
        padding: 80px 30px;
    }

    .w__txt,
    .section-divider {
        width: 100%;
        font-size: 1.4rem;
    }

    .mokup {
        margin-top: 80px;
    }

    .mokup img {
        width: 100%;
        border-radius: 12px;
        
    }
    

    .ww__2 {
        margin-top: 60px;
    }

    .detail {
        grid-template-columns: 120px 1fr;
        gap: 80px;
    }

    .mokup2 img {
        margin-top: 60px;
    }
     .mokup--p img{
       width: 70%;
       aspect-ratio: auto;
       border-radius: 0;
    }
    .content__rogo img {
    margin-top: 20px;

}
}
/* =====================
w__contents section SP
===================== */
@media screen and (max-width: 768px) {

    .w__contents {
        padding: 60px 14px;
    }

    .mokup {
        margin-top: 60px;
    }
    .mokup__image--pc {
        display: none; 
    }
    .mokup__image--sp {
        display: block; 
    }

    .detail {
        gap: 80px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 30px;

    }

    

    .w__1 {
        font-size: 1.3rem;
        margin-top: 9px;
    }

    .ww__2 {
        margin-top: 40px;
    }
    .w__1.w__1__rogo{
        margin-top: 30px;
    }


}


/* =====================
ww__3 section PC
===================== */

.ww__3 {
    padding: 120px 60px;
    background-color: #D2D2D0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.title__s {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    text-align: center;
}

.scroll__name {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-align: center;
}

.scroll-guide {
    font-size: 1.6rem;
}



.ww__p {
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration-line: underline;
    margin: 80px 0 60px 0;
}


.scroll-box {
    width: 90%;
    aspect-ratio: 1081 / 777;
    overflow-y: scroll;
    overflow-x: hidden;
    margin: 0 auto;
    border-radius: 8px;
}



.img-pc {
    /* PC用画像をデフォルトで表示 */
    display: block;
    width: 100%; 
    height: auto;
}

.img-sp {
    /* SP用画像をデフォルトで非表示 */
    display: none;
}

.scroll-box__sp {
    width: 40vw;
    aspect-ratio: 394 / 852;
    overflow-y: scroll;
    overflow-x: hidden;
    margin: 0 auto;
    border-radius: 8px;
}

.scroll-box__sp img {
    width: 100%;
    height: auto;
    display: block;
}

.ppp-1 {
    margin-top: 120px;
}
.banner img{
    max-width: 450px;
    width: 68vw;
}

/* =====================
ww__3 section ipad
===================== */
@media (max-width: 1230px) {
    .ww__3 {
        padding: 80px 30px;
    }

    .ww__p {
        margin: 60px 0 30px 0;
    }

    .scroll-guide {
        font-size: 1.3rem;
    }

    .ppp-1 {
        margin-top: 80px;
    }

}

/* =====================
ww__3 section SP
===================== */
@media screen and (max-width: 768px) {
    .ww__3 {
        padding: 60px 14px;
    }

    .ppp-1 {
        margin-top: 30px;
    }
    .scroll-box__sp {
        width: 60%;
    }
.img-pc {
        /* PC用画像を非表示に切り替え */
        display: none;
    }

    .img-sp {
        /* SP用画像を表示に切り替え */
        display: block;
        width: 100%; 
        height: auto;
    }
    
}


/* =====================
other-works section PC
===================== */
.other-works {
    padding: 120px 160px;
}

 .other-works__wrapper {
    display: flex;
    max-width: 934px;
    justify-content: center;
    align-items: center;
    gap: 70px;
    margin: 0 auto;
}

.other-works__card {
    display: flex;
    flex-direction: column;
    width: 432px; 
    gap: 30px;
}

.other-works__card img {
    width: 100%;
    max-width: 430px;
    aspect-ratio: 430 / 289;
    display: block;
    border-radius: 12px;
}
.other-works__title {
    font-size: clamp(16px, 1.4vw, 18px);
    margin-bottom: 24px;
    font-weight: 700;
    line-height: 25px;
    position: relative; 
    display: inline-block; 
    transition: color 0.3s ease;
}

/* 2. 擬似要素 (下線 ::after) の初期状態 */
.other-works__title::after {
    content: "";
    position: absolute;
    bottom: -5px; /* テキストからの距離 */
    left: 0; 
    height: 1px;
    background-color: #ccc;  
    width: 0; 
    transition: width 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}

.other-works__title:hover::after {
    width: 100%; 
}
.other-works__type,
.other-works__tags {
    font-size: clamp(13px, 1.2vw, 14px);
    margin-bottom: 16px;
}

.other-works__tags {
    color: var(--gray);
}

.porks__more--www {
    margin: 60px 0 120px;
}

/* =====================
other-works section ipad
===================== */
@media (max-width: 1230px) {
    .other-works {
        padding: 80px 30px;
    }

    .porks__more--www {
        margin: 60px 0;
    }

    .other-works__wrapper {
        gap: 30px; /* ギャップを30pxに設定 */
        margin: 0 auto; 
    }
    .other-works__card {
        width: 452px; 
    }
}
@media (max-width: 960px) { 
    .other-works__wrapper {
        max-width: 100%; 
        flex-direction: column; 
        align-items: center;
        gap: 40px; 
    }
    
    .other-works__card {
        width: 430px; 
    }
}

/* =====================
other-works section SP
===================== */
@media (max-width: 768px) {
    .other-works {
        padding: 60px 14px;
    }

    .other-works__wrapper {
        display: flex;
        flex-direction: column;
        /* 【修正点1】子要素を中央揃えにする */
        align-items: center; 
    }
    .other-works__card img {
        /* 【修正点2】親要素の幅に合わせる（親要素で幅を73vwに設定するため） */
        width: 100%; 
        /* max-widthもSPで維持されるようにしておくと安全 */
        max-width: 430px; 
    }

   .other-works__card {
        width: 73vw; 
        max-width: 430px;
        gap: 20px;
    }

    .porks__more--www {
        margin: 30px 0;
    }
    .other-works__type{
        margin-bottom: 12px;
    }
    .other-works__title {
        margin-bottom: 18px;
    }
}