@charset "utf-8";

/*====================
scroll
====================*/
html {
    scroll-behavior: smooth;
}

.scrollBtn {
    position: fixed;
    bottom: 35px;
    right: 20px;
    width: 125px;
    height: 125px;
    z-index: 999; /* 他の要素より上に表示 */
    opacity: 0; /* 初期は透明 */
    visibility: hidden; /* 初期は非表示 */
    transition: opacity 0.5s ease, visibility 0.5s ease;
    animation: float 2.5s ease-in-out infinite;
}

.scrollBtn.show {
    opacity: 1;
    visibility: visible;
}

.scrollBtn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px); /* ボタンが浮き上がる高さ */
    }
}

.scrollBtn.hide {
    display: none; /* スクロールボタンを非表示にする */
}

/*====================
fadeIn
====================*/
.fadeIn {
    transform: translate(0, 50px);
    opacity: 0;
    transition: 0.8s;
}

.fadeIn.animated {
    transform: translate(0, 0);
    opacity: 1;
}

/*====================
custom-cursor
====================*/
.custom-cursor {
    width: 20px;
    height: 20px;
    background-color: rgba(10, 30, 84, 0.8);
    border: 0px solid rgba(10, 30, 84, 0.8);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, background-color 0.3s ease;
    z-index: 10000;
    cursor: none;
}

.custom-cursor.hover {
    transform: scale(2) translate(-50%, -50%);
    background-color: rgba(10, 30, 84, 0.3);
    border: 0px solid rgba(10, 30, 84, 0.3);
}

* {
    cursor: none; /* 全体でデフォルトカーソルを無効化 */
}

/*====================
works
====================*/
h2 {
    display: none;
}

.title__box {
    padding-top: 48px;
    align-items: center;
}

.title__logo {
    display: flex;
    padding: 20px 20px 0;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat';
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 4.32px;
}

.line {
    display: flex;
    padding: 40px;
    align-items: center;
    gap: 10px;
    margin-left: 16px;
    margin-right: 16px;
}

.works__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 0 24px;
}

.works__content a img {
    width: 310px;
    height: 210px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.25);
    display: block;
}

.content__box {
    display: flex;
    padding: 8px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 334px;
}

.works__content{
    overflow: hidden;
}

.works__content a{
    transition: all .3s ease-in-out;
    transform: scale(1.1);
}

.works__content img{
    width: 100%;
    vertical-align: middle;
    box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.25);

}

.works__content a:hover{
    transform: scale(1);
}

.sub__theme {
    display: flex;
    padding: 8px 0px 20px;
    gap: 10px;
}

.theme01, .theme02 {
    position: relative; /* 擬似要素の位置調整のため */
    padding: 8px 27px;
    font-size: 1.2rem;
    letter-spacing: 0.6px;
    min-width: 120px; /* 任意の幅で統一 */
    text-align: center;
}

.theme01 {
    background-color: rgba(255, 255, 255, 0);
    color: var(--primary-brown);
    z-index: 1;
    border: 2px solid var(--primary-brown);
    border-radius: 20px;
}

.theme01::before {
    content: '';
    position: absolute;
    top: -5px; /* 要素の上下にスペースを空ける */
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 20px; /* 角を丸くする */
    background-color: rgba(255, 255, 255, 0);
    z-index: -1; /* 擬似要素がテキストの背面に配置されるようにする */
}

.theme02 {
    background-color: rgba(255, 255, 255, 0);
    color: var(--primary-white);
    z-index: 1;
    border: 2px solid var(--primary-brown);
    border-radius: 20px;
}

.theme02::before {
    content: '';
    position: absolute;
    top: 0px; /* 要素の上下にスペースを空ける */
    left: 0px;
    right: 0px;
    bottom: 0px;
    border-radius: 20px; /* 角を丸くする */
    background-color: var(--primary-brown);
    z-index: -1; /* 擬似要素がテキストの背面に配置されるようにする */
}

.site__title {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 1.8px;
}

.site__subtitle {
    font-size: 1.4rem;
    font-style: normal;
    font-weight: 300;
    line-height: 26px; /* 185.714% */
    letter-spacing: 1.4px;
}

.overview {
    display: flex;
    width: 375px;
    max-width: 100%;
    padding: 24px 0px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.overview__item {
    display: flex;
    width: 375px;
    max-width: 100%;
    padding: 40px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    align-self: stretch;
    border-bottom: 0.3px solid #838ba1;
}

.overview__item:last-child {
    border-bottom: 0;
} 

.overview__title {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 30px;
    letter-spacing: 2.7px;
}

.overview__txt {
    text-align: justify;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 26px; /* 216.667% */
    letter-spacing: 1.8px;
}

@media screen and (min-width: 768px) {
    .article {
        display: flex;
        max-width: 1440px;
        padding: 180px 0px 80px 0px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 48px;
        margin: 0 auto;
    }
    
    .title__box {
        width: 1160px;
        padding: 10px;
        align-items: center;
        margin: 0 auto;
    }

    .title__logo {
        font-size: 4.6rem;
        font-style: normal;
        font-weight: 900;
        line-height: normal;
        letter-spacing: 8.28px;
    }

    .works__item {
        display: flex;
        width: 1160px;
        padding: 56px 0px;
        justify-content: space-between;
        align-items: center;
        align-content: center;
        gap: 80px 0px;
        flex-wrap: wrap;
    }

    .works__content {
        display: flex;
        width: 1160px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        flex-shrink: 0;
    }

    .works__content img {
        display: block;
        width: 1100px;
        max-width: 100%;
        margin: 0 auto;
        flex-shrink: 0;
        box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.25);
    }

    .sub__theme {
        display: flex;
        padding: 24px 0px;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 16px;
    }

    .content__box {
        width: 1100px;
    }

    .site__title {
        font-size: 2.3rem;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
        letter-spacing: 2.3px;
        margin-bottom: 8px;
    }

    .site__title:hover {
        font-weight: bold;
    }

    .site__subtitle {
        font-size: 1.8rem;
        font-style: normal;
        font-weight: 300;
        letter-spacing: 2.5px;
    }

    .overview {
        display: block;
        width: 1160px;
        max-width: 100%;
        margin: 0 auto;
        flex-shrink: 0;
    }

    .overview__item {
        display: flex;
        width: 1160px;
        max-width: 100%;
        padding: 48px 24px 48px;
        flex-direction: row;
        align-items: flex-start;
        gap: 88px;
        align-self: stretch;
        border-bottom: 0.3px solid #838ba1;
    }

    .overview__title {
        width: 200px;
        max-width: 100%;
        font-size: 2.1rem;
        font-weight: 500;
        line-height: 30px;
        letter-spacing: 3.15px;
    }

    .overview__txt {
        width: 800px;
        max-width: 100%;
        text-align: justify;
        font-size: 1.7rem;
        font-weight: 300;
        line-height: 30px; /* 176.471% */
        letter-spacing: 2.55px;
    }
}

/*====================
design
====================*/
.design__box {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.design__item {
    display: flex;
    padding: 0 24px;
    flex-direction: column;
    margin: 0 auto;
}

.design__box img {
    max-width: 100%;
    margin: 0 auto;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.25);

}

@media screen and (min-width: 768px) {
    .design__box {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        margin-bottom: 56px;
        gap: 72px;
    }

    .design__img {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }

    .design__img img {
        width: 700px;
        flex-shrink: 0;
        box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.25);
    }
}

/*====================
other works
====================*/

.subdivision {
    display: flex;
    padding: 24px 0px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat';
    font-size: 1.5rem;
    letter-spacing: 2.05px;
}

.subdivision__link:hover {
    font-weight: bold;
}

.works__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    gap: 40px;
}

.works__container a img {
    width: 310px;
    height: 210px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.25);
    display: block;
}

.works__box {
    /* display: flex; */
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 334px;
}

.works__container{
    overflow: hidden;
}

.works__container a{
    transition: all .3s ease-in-out;
    transform: scale(1.1);
}

.works__container img{
    width: 100%;
    vertical-align: middle;
}

.works__container a:hover{
    transform: scale(1);
}

.sub__theme {
    display: flex;
    padding: 8px 0px 20px;
    gap: 10px;
}

.theme01, .theme02 {
    position: relative; /* 擬似要素の位置調整のため */
    padding: 8px 27px;
    font-size: 1.2rem;
    letter-spacing: 0.6px;
    min-width: 120px; /* 任意の幅で統一 */
    text-align: center;
}

.theme01 {
    background-color: rgba(255, 255, 255, 0);
    color: var(--primary-brown);
    z-index: 1;
    border: 2px solid var(--primary-brown);
    border-radius: 20px;
}

.theme01::before {
    content: '';
    position: absolute;
    top: -5px; /* 要素の上下にスペースを空ける */
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 20px; /* 角を丸くする */
    background-color: rgba(255, 255, 255, 0);
    z-index: -1; /* 擬似要素がテキストの背面に配置されるようにする */
}

.theme02 {
    background-color: rgba(255, 255, 255, 0);
    color: var(--primary-white);
    z-index: 1;
    border: 2px solid var(--primary-brown);
    border-radius: 20px;
}

.theme02::before {
    content: '';
    position: absolute;
    top: 0px; /* 要素の上下にスペースを空ける */
    left: 0px;
    right: 0px;
    bottom: 0px;
    border-radius: 20px; /* 角を丸くする */
    background-color: var(--primary-brown);
    z-index: -1; /* 擬似要素がテキストの背面に配置されるようにする */
}

.site__subtitle {
    font-size: 1.4rem;
    font-style: normal;
    font-weight: 300;
    line-height: 26px; /* 185.714% */
    letter-spacing: 1.4px;
}

@media screen and (min-width: 768px) {
    .subdivision {
        display: flex;
        width: 1160px;
        padding: 32px;
        justify-content: flex-end;
        align-items: center;
        gap: 24px;
        margin: 0 auto;
        font-family: 'Montserrat';
        font-size: 2.1rem;
        font-weight: 300;
        letter-spacing: 2.1px;
    }

    .works__item {
        display: flex;
        width: 1160px;
        padding: 56px 0px;
        justify-content: space-between;
        align-items: center;
        align-content: center;
        gap: 80px 0px;
        flex-wrap: wrap;
    }

    .works__container {
        display: flex;
        width: 550px;
        padding: 24px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 40px;
        flex-shrink: 0;
    }

    .works__container a img {
        width: 470px;
        height: 310px;
    }

    .sub__theme {
        display: flex;
        padding: 24px 0px;
        flex-direction: row;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 16px;
    }

    .works__box {
        width: 500px;
    }

    .site__title {
        font-size: 2.3rem;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
        letter-spacing: 2.3px;
        margin-bottom: 8px;
    }

    .site__title:hover {
        font-weight: bold;
    }

    .site__subtitle {
        font-size: 1.8rem;
        font-style: normal;
        font-weight: 300;
        letter-spacing: 2.5px;
    }
}

/*====================
footer
====================*/
.footer {
    margin-top: 72px;
}