@charset "utf-8";

/* フォント指定 */
@font-face {
    font-family: 'BirchStd';
    src: url('./fonts/BirchStd.otf') format('opentype');
}

/* 共通項目設定 */
* {
    font-family: 'BirchStd', sans-serif;
    margin: 0;
    transition: all .8s;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    list-style: none;
    text-decoration: none;
}

body {
    overflow-x: hidden;
}

a {
    color: #c0ab92;
}

/* header */
header {
    background-color: black;
    display: flex;
    justify-content: space-between;
    height: 90px;
    padding: 8px;

    .company-logo {
        display: block;
        width: 20%;
        height: 100%;
        display: flex;
        padding: 8px;

        img {
            object-fit: cover;
            display: block;
            margin: 0 8px;
        }
    }

    nav {
        width: 50%;
        display: block;

        ul {
            display: flex;
            width: 100%;
            height: 100%;

            li {
                width: 100%;
                height: 100%;
                display: flex;
                justify-content: center;
                align-items: center;

                a {
                    font-size: 2rem;
                    width: 100%;
                    height: 100%;
                    text-align: center;
                    line-height: 2.6;
                }

                a:hover {
                    background-color: #7f7f7f;
                }

            }

            img {
                width: 20%;
            }

            img:hover {
                cursor: pointer;
            }
        }
    }

    .lang-options {
        transform: translateY();
    }
}

/* 言語選択 */
.lang-options {
    position: absolute;
    top: 90px;
    right: 0;
    background-color: black;
    width: 20%;
    display: none;
    transform: translateY(-10px);
    opacity: 0;
    z-index: 1000;
}

.lang-options.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.lang-options a {
    display: block;
    padding: 15px 20px;
    color: #c0ab92;
    text-align: center;
}

.lang-options a:hover {
    background-color: #333;
}


/* main */
h1 {
    text-align: center;
    font-size: 7rem;
    padding: 48px 0;
}

article>p {
    text-align: center;
    padding: 28px 0;
    letter-spacing: 1.5px;
    line-height: 2.3;
    width: 50%;
    margin: 0 auto;
}

section>img {
    width: 2%;
    margin: 40px auto;
    display: block;
}

article {
    width: 80%;
    margin: 0 auto;
    padding: 18px;
    position: relative;
    z-index: 1;

    h6 {
        background-color: black;
        color: white;
        padding: 6px 18px;
        text-align: center;
        width: 20%;
        margin: 0 auto;
    }
}

.box {
    display: flex;
    justify-content: center;
    width: 70%;
    margin: 0 auto;
    position: relative;
    z-index: 1;

    .number {
        font-size: 10rem;
        padding: 20px;
    }

    img {
        width: 20%;
        height: 200px;
        margin: 0 40px;
    }

    .text {
        padding: 0 20px;

        h2 {
            font-size: 3rem;
            letter-spacing: 3.5px;
            padding: 20px 0;
        }

        p {
            font-size: 1.5rem;
        }
    }
}

/* shop section */
#shop {
    position: relative;
    z-index: 2;
    background-color: black;
    margin-top: 60px;
    padding: 40px 0;
}

/* footer */
footer {
    background-color: black;
    margin-top: 120px;
    padding: 18px 0;

    .image-items {
        width: 10%;
        margin: 0 auto;
        display: flex;

        img {
            padding: 0 8px;
            height: 30px;
        }
    }
}

/* ハンバーガーメニュー */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #c0ab92;
    margin: 5px 0;
    transition: all 0.3s;
}

/* モバイルナビゲーション */
@media (max-width: 900px) {

    /* ハンバーガー */
    .hamburger-menu {
        display: block;
    }

    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: black;
        transition: all 0.3s;
        z-index: 999;
    }

    header nav.active {
        right: 0;
    }

    header nav ul {
        flex-direction: column;
        padding-top: 90px;
    }

    header nav ul li {
        width: 100%;
        height: auto;
        padding: 20px 0;
    }

    header nav ul li a {
        font-size: 1.5rem;
    }

    /* ハンバーガーメニューのアニメーション */
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* header */
    header {
        .company-logo {
            width: 80%;
        }
    }
    header nav ul li img {
        max-width: 40px;
    }

    /* main */
    article {
        width: 100%;

        .box {
            width: 90%;

            .number {
                margin-left: 80px;
            }

            img {
                height: 180px;
                margin-left: 80px;
            }

            .text {
                padding: 0;
                width: 50%;

                p {
                    font-size: .9rem;
                }
            }
        }

        p {
            width: 80%;
        }
    }

    /* footer */
    footer {
        .image-items {
            width: 50%;
            margin: 0 auto;
            display: flex;
            justify-content: center;
        }
    }
}

@media (max-width: 700px) {
    /* main */
    h1 {
        font-size: 3.5rem;
        padding: 30px 0;
    }

    article {
        width: 100%;
        padding: 10px;
        margin-bottom: 40px;

        .box {
            width: 95%;
            flex-direction: column;
            align-items: center;
            margin: 20px auto;

            .number {
                font-size: 5rem;
                margin: 0;
                padding: 10px 0;
            }

            img {
                height: 150px;
                margin: 15px 0;
                width: 40%;
            }

            .text {
                padding: 0;
                width: 90%;
                text-align: center;

                h2 {
                    font-size: 2rem;
                    padding: 10px 0;
                }

                p {
                    font-size: 1rem;
                    line-height: 1.6;
                }
            }
        }

        h6 {
            margin: 15px auto;
            width: 60%;
            font-size: 0.9rem;
            padding: 4px 12px;
        }

        p {
            width: 90%;
            padding: 15px 0;
            font-size: 0.9rem;
            line-height: 1.8;
        }
    }

    section > img {
        width: 4%;
        margin: 30px auto;
    }

    #shop {
        margin-top: 40px;
        padding: 30px 0;
    }
}

@media (max-width: 450px) {
    header {
        height: 70px;
        padding: 5px;

        .company-logo {
            width: 60%;
            
            img {
                padding: 3px 0;
            }
        }
    }
    .lang-options {
        width: 40%;
    }

    h1 {
        font-size: 2.5rem;
        padding: 20px 0;
    }

    article {
        .box {
            .number {
                font-size: 4rem;
            }

            img {
                height: 200px;
                width: 50%;
            }

            .text {
                h2 {
                    font-size: 2rem;
                }

                p {
                    font-size: 0.9rem;
                    width: 100%;
                }
            }
        }

        h6 {
            width: 80%;
            font-size: 0.8rem;
        }

        p {
            font-size: 0.85rem;
            width: 100%;
            padding: 0;
        }
    }

    section > img {
        width: 20px;
        height: 150px;
        margin: 20px auto;
    }

    #shop {
        margin-top: 30px;
        padding: 20px 0;
    }
}