@charset "UTF-8";

/*--------------------------------
 レイアウト
---------------------------------*/
.wrapper {
    padding-top: 73px;
}

.section {
    padding: 90px 0;
}


.container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}


/*media Queries 767
----------------------------------------------------*/
@media screen and (max-width: 767px) {
    body {
        font-size: 14px;
    }

    .pc-only {
        display: none;
    }

    .sp-only {
        display: block;
    }

    /* 見出し */
    .title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .lead {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 20px;
    }

    .btn {
        padding: 10px;
    }


    /* レイアウト */
    .wrapper {
        padding-top: 57px;
    }

    .section {
        padding: 60px 0;
    }

    .container {
        padding: 0 20px;
    }

}





/*--------------------------------
 下層：Worksページ
---------------------------------*/

.article {
    font-family: var(--font-zen);
    padding: 80px 0;
}


/* モックアップ画像 */
.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    box-sizing: border-box;
}

.article-img {
    background-color: rgba(214, 211, 240, 0.5);
    max-width: 1200px;
    /* height: 900px; */
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    /* 垂直方向の中央揃えを追加 */
    padding: 50px 20px;
}

.article-img img {
    max-width: 800px;
    width: 100%;
    object-fit: contain;
}


/* サイト名グループ */
.article-name {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

/* サイト名 */
.article-title {
    text-align: center;
    font-family: var(--font-zen);
    font-weight: normal;
    font-size: var(--size-xl);
    border-right: 3px solid var(--main-color);
    width: 300px;
}

.article-title.works03 {
    width: 200px;
}

.article-title.works07,
.article-title.works08,
.article-title.works09 {
    width: 450px;
}



/* 使用スキル */
.article-name .subtitle {
    width: 200px;
    display: flex;
    justify-content: space-between;
}


.article-name .subtitle.works02 {
    justify-content: space-around;
}

.article-name .subtitle.works04,
.article-name .subtitle.works05,
.article-name .subtitle.works06 {
    flex-direction: column
}


.article-name .subtitle p {
    background-color: var(--sub-color);
    border: 1px solid var(--sub-color);
    border-radius: 30px;
    display: inline-block;
    height: fit-content;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 15px;
    padding-right: 15px;
}




/* サイトを見るボタン */
.article-btn {
    color: var(--text-color);
    border: 1px solid var(--text-color);
    padding: 15px;
    width: 200px;
    display: inline-block;
    background-color: #Fff;
    border-radius: 25px;
    margin-bottom: 30px;
}

.article-btn:hover {
    background-color: var(--sub-color);
    border: 1px solid var(--sub-color);
    transition: 0.3s;
}

/* 制作概要～ */
.article-body {
    max-width: 720px;
    margin: 0 auto;
    margin-bottom: 80px;
    padding-top: var(--contents-gutter);
}

.article-body-text {
    text-align: left;
    width: 100%;
    /* padding: 0 20px; */
    box-sizing: border-box;
}


.article-body h3 {
    width: 250px;
    position: relative;
    font-size: 18px;
    border-bottom: 3px solid var(--sub-color);
    display: inline-block;
    margin-bottom: 5px;
    padding-left: 1em;
    padding-right: 1em;
    padding-bottom: 0.5em;
}

.article-body h3:not(:first-child) {
    margin-top: 50px;
}

.article-body p {
    width: 100%;
    font-size: 1.8rem;
    line-height: 1.8;
    margin-bottom: 30px;
    box-sizing: border-box;
    /* padding-left: 1em;
    padding-right: 1em;
    padding-bottom: 0.5em; */
}

/* デザインプレビュー */
.design-img {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.design-img img {
    margin-top: var(--contents-gutter);
    margin-bottom: var(--contents-gutter);
    border: 1px solid var(--text-color);
}


.design-img.flex {
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.design-img.flex img.sp {
    max-width: 300px;
    object-fit: contain;
}

.design-img.flex img.pc {
    max-width: 600px;
    object-fit: contain;
}

/* Works一覧へ戻るボタン */
.home-link {
    text-align: center;
    border: 1px solid var(--text-color);
    padding: 15px;
    width: 200px;
    display: inline-block;
    background-color: #Fff;
    color: var(--text-color);
    border-radius: 25px;
    margin-top: 30px;
    margin-bottom: 30px;
    text-decoration: none;
}

.home-link:hover {
    background-color: var(--sub-color);
    border: 1px solid var(--sub-color);
    transition: 0.3s;
}

.home-link a {
    display: block;

}

.home-link a:active {
    color: var(--text-color);
}



/*media Queries 767
----------------------------------------------------*/
@media screen and (max-width: 767px) {

    /* 下層ページ */
    .article {
        padding: 50px 0;
    }

    .article-img {
        max-width: 100%;
        margin: 0 auto;
        height: auto;
    }


    .article-img img {
        max-width: 90%;
        height: auto;
    }

    /* サイト名グループ */
    .article-name {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-top: 30px;
    }

    /* サイト名 */
    .article-title {
        text-align: center;
        font-family: var(--font-zen);
        font-weight: normal;
        font-size: 2.2rem;
        border-right: none;
        width: auto;
    }

    /* 使用スキル */
    .article-name .subtitle {
        width: auto;
        font-size: var(--size-sm);
        gap: 10px;
    }

    .article-name .subtitle p {
        padding: 3px 10px;
    }

    .article-btn {
        width: 150px;
        padding: 10px;
        font-size: 14px;
        box-sizing: border-box;
    }



    .article-body h3 {
        width: auto;
        display: inline-block;
        font-size: 16px;
        padding-left: .8em;
    }

    .article-body h3:not(:first-child) {
        margin-top: 30px;
    }

    .article-body p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 20px;
    }

    .article-body-text {
        width: 100%;
        box-sizing: border-box;
        padding: 0 20px;
    }

    /* デザインプレビュー */
    /* PC画像をレスポンシブにし、SP画像を非表示にする */
    .design-img.flex img.pc {
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        display: block;
        margin: 0 auto 40px;
    }

    .design-img.flex img.sp {
        display: none;
    }






    /* Works一覧へ戻るボタン */
    .home-link {
        width: 150px;
        /* PCよりも小さい幅に調整 */
        padding: 10px;
        /* 余白を小さくする */
        font-size: 14px;
        /* フォントサイズも小さくする */
    }

    .home-link:hover {
        background-color: var(--sub-color);
        border: 1px solid var(--sub-color);
        transition: 0.3s;
    }








}


/*--------------------------------
 下層：aboutページ
---------------------------------*/
.profile.section {
    background-position: 50% 23%, 0% 0%;
    background-size: 60%;
    background-color: rgba(255, 255, 255, 0.2);
    background-blend-mode: lighten;
}



.profile-list {
    max-width: 100%;
    /* margin-left: 100px;
    margin-right: 100px; */
}

.profile-body {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.profile-name {
    text-align: left;
    font-size: var(--size-xl);
    margin-bottom: 30px;
    color: var(--text-color);
}

.profile-text {
    max-width: auto;
    text-align: left;
    gap: 20px;
    padding-bottom: 30px;
}

.profile-text.text04 {
    margin-bottom: 80px;
}



.btn:hover {
    background-color: var(--sub-color);
    border: 1px solid var(--text-color);
    transition: 0.3s;
}



/* ★動画 */
.movie {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: #b1aecb;


}


.movie video {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    max-width: 1000%;
    /* 最大幅 */
    max-height: 100vh;
    /* 最大高さ */
    transform: scale(0);
    /* animation: expand 3s forwards; */
    animation: fluffy 3s infinite, fluid-anim 20s infinite;
    border-radius: 61% 39% 16% 84% / 57% 72% 28% 43%;
}

@keyframes fluffy {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }
}


@keyframes fluid-anim {
    0% {
        border-radius: 65% 35% 55% 45% / 55% 50% 55% 45%;
    }

    12.5% {
        border-radius: 60% 75% 40% 80% / 70% 70% 60% 65%;
    }

    25% {
        border-radius: 55% 95% 65% 90% / 75% 65% 85% 70%;
    }

    37.5% {
        border-radius: 60% 40% 50% 45% / 60% 40% 60% 40%;
    }

    50% {
        border-radius: 55% 95% 65% 90% / 75% 65% 85% 70%;
    }

    62.5% {
        border-radius: 60% 40% 50% 45% / 60% 40% 60% 40%;
    }

    75% {
        border-radius: 60% 75% 40% 80% / 70% 70% 60% 65%;
    }

    87.5% {
        border-radius: 40% 60% 55% 45% / 50% 60% 40% 50%;
    }

    100% {
        border-radius: 65% 35% 55% 45% / 55% 50% 55% 45%;
    }
}



/*--------------------------------
NEXTボタン、BACKボタンのコンテナ
---------------------------------*/


.lower_link {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

/* リンクテキストの共通スタイル */
.arrow a {
    color: var(--text-color);
}

/* BACK・NEXTボタンの共通スタイル */
.arrow1,
.arrow2 {
    border: none;
    position: relative;
    border-bottom: 1px solid #666;
    width: 200px;
    max-width: 90%;
    padding-bottom: 5px;
}

/* aタグをブロック要素にして、親の領域いっぱいに広げる */
.arrow1 a,
.arrow2 a {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}


/* BACK・NEXTボタンのホバー時アニメーション */
.arrow1:hover::after,
.arrow2:hover::after {
    width: 100%;
}

/* BACKボタンの矢印（::before） */
.arrow1::before {
    content: "";
    display: block;
    width: 30px;
    height: 1px;
    background: #666;
    rotate: 140deg;
    position: absolute;
    left: -3px;
    bottom: 9px;
    transition: height 0.3s ease;
}

/* BACKボタンの矢印のホバー時アニメーション */
.arrow1:hover::before {
    height: 2px;
}

/* BACKボタンの下線（::after） */
.arrow1::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 1px;
    background-color: #666;
    transition: width 0.3s ease;
}

/* NEXTボタンの矢印（::before） */
.arrow2::before {
    content: "";
    display: block;
    width: 30px;
    height: 1px;
    background: #666;
    rotate: 40deg;
    position: absolute;
    right: -3px;
    bottom: 9px;
    transition: height 0.3s ease;
}

/* NEXTボタンの矢印のホバー時アニメーション */
.arrow2:hover::before {
    height: 2px;
}

/* NEXTボタンの下線（::after） */
.arrow2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #666;
    transition: width 0.3s ease;
}



/* WOrks01はBack非表示 */
.no-back-button .lower_link .arrow1 {
    visibility: hidden;
}

/* 09はNext非表示にする */
.no-next-button .lower_link .arrow2 {
    visibility: hidden;
}


/*media Queries 767
----------------------------------------------------*/
@media screen and (max-width: 767px) {

    /* PC用の下線を非表示にする */
    .arrow1,
    .arrow2 {
        border-bottom: none;
        width: auto;
        max-width: 100%;
    }


    .arrow1::after,
    .arrow2::after,
    .arrow1::before,
    .arrow2::before {
        content: none;
    }

    /* ボタンの配置を調整 */
    .lower_link {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }

    /* Works一覧へボタンのスタイルをリセット */
    .home-link {
        width: auto;
        padding: 0;
        margin: 0;
        border: none;
        background-color: transparent;
    }

    .home-link:hover {
        border: none;
        background-color: transparent;
        color: var(--main-color);
        transition: color 0.3s ease;
    }

    .home-link a {
        display: block;
        padding: 10px 0;
        font-size: 14px;
        color: var(--text-color);
    }


    /* BackとNextのボタンにフォントと矢印の装飾を追加 */
    .arrow1 a,
    .arrow2 a {
        position: relative;
        padding: 0 20px;
        font-size: 14px;
    }

    .arrow1 a:hover,
    .arrow2 a:hover {
        color: var(--main-color);
        transition: color 0.3s ease;
    }

    .arrow1 a::before {
        content: '<';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
        line-height: 1;
    }

    .arrow2 a::after {
        content: '>';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
        line-height: 1;
    }
}