:root {
    /* 色 */
    --bg-beige: #FAF7EF;
    --bg-brown: #B9885A;
    --color-darkBrown: #5A5048;
    --bg-title: #D4C4A5;

    /* 文字 */
    --Title: 3.2rem;
    --TitleTxt: 2.4rem;
    --SubTitle: 2rem;
    --Txt: 1.6rem;
    --DetailTxt: 1.2rem;
    --MessageTxt: 1.1rem;
}
html{
    font-size: 62.5%;
    scroll-padding-top: 150px;
    /* scroll-behavior: smooth; */
}
body{
    margin: 0;
}

a{
    text-decoration: none;
}
li{
    list-style: none;
}

.pc-contain{
    min-height: 100vh;
    position: relative;
}
.lineup {
    display: none;
}

@media (min-width: 1000px){
    .pc-contain {
        background: url(https://colorstw.com/assets/images/item/tile-proj/bg.png) center center / cover no-repeat fixed;
    }
    /*  ラインナップ   */
    .lineup{
        display: block;
        position: fixed;
        top: 70%;
        left: calc(50% + 215px + 150px);
        transform: translateY(-50%);
        font-size: var(--Txt);
        .lineupTitle{
            padding-bottom: 20px;
        }
        a{
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 20px;
            color: #000;
        }
        span{
            width: 30px;
            height: 30px;
            flex-shrink: 0;
        }
        .brown{
            background: #8B6644;
        }
        .beige{
            background: var(--bg-title);
        }
    }
}

.contain{
    width: 100%;
    max-width: 430px;  
    min-width: 380px;
    min-height: 100vh;
    margin: 0 auto;
    background: var(--bg-beige);
    overflow: hidden;
    position: relative;
    clip-path: inset(0 0 0 0);
}

/*   ハンバーガーメニュー   */
.hamburgerMenu {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%); 
    width: 100%;
    max-width: 430px;
    min-width: 380px;         
    height: 80px;
    background-color: var(--bg-beige);
    z-index: 101;
    display: flex;
    justify-content: flex-end;
}
.hamburger-btn {
    --bar-height: 4px;
    --bar-gap: 10px;

    width: 80px;
    height: 80px;
    background-color: var(--bg-brown);
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: var(--bar-gap); 
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 101;
}
.bar {
    width: 45px;
    height: var(--bar-height); 
    background-color: #fff;
    /* border-radius: 2px; */
    transition: 0.3s ease;
}

.hamburger-btn.open .bar:nth-child(1) { 
    transform: translateY(calc(var(--bar-height) + var(--bar-gap))) rotate(45deg); 
}
.hamburger-btn.open .bar:nth-child(2) { 
    opacity: 0; 
}
.hamburger-btn.open .bar:nth-child(3) { 
    transform: translateY(calc((var(--bar-height) + var(--bar-gap)) * -1)) rotate(-45deg); 
}

/*   ドロワーメニュー   */
.drawer {
    z-index: 100;
    position: fixed;
    top: 0;
    left: 50%;
    margin-left: 215px;
    background-color: #FFF1d8;
    width: 230px;
    height: 100vh;
    transform: translateX(0); 
    transition: transform 0.3s ease;
    overflow-y: auto;
}
.drawer.open { 
    transform: translateX(-230px); 
}

.drawer-nav-list {
    padding: 80px 0 20px;
    margin: 0;
    list-style: none;
}
.drawer-nav-item {
    padding: 20px 40px;
    text-align: right;
    font-size: var(--SubTitle);
    position: relative;
}
.drawer-nav-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 20px;
    
    background-color: var(--bg-brown);
    height: 1px;
    width: 80%;
}
.drawer-nav-item a {
    color: #333;
    text-decoration: none;
    display: block;
}
.drawer-nav-item:last-child { 
    border-bottom: none; 
}

.language-toggle {
    background: none;
    border: none;
    padding: 0;
    font-size: var(--SubTitle);
    color: #333;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}
.arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.3s;
}

.language-item.open .arrow { 
    transform: rotate(180deg); 
}
.language-dropdown {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;           
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.language-item.open .language-dropdown { 
    max-height: 200px; 
}
.language-option {
    padding: 15px 0 0;
    font-size: var(--Txt);
    color: #000;
    cursor: pointer;
}


/*   メインビジュアル  */
.mainVisual{
    /* margin-top: 80px; */
    animation: mainVisual 19s linear infinite;
    width: auto;
    height: 700px;
    background: rgb(255, 255, 255, 0.5);
    background-blend-mode: overlay;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
@keyframes mainVisual{
    0%, 15%{
        background-image: url(https://colorstw.com/assets/images/item/tile-proj/main_01.png);
        background-size: cover;
        background-repeat: no-repeat;
    }
    20%, 35%{
        background-image: url(https://colorstw.com/assets/images/item/tile-proj/main_02.png);
        background-size: cover;
        background-repeat: no-repeat;
    }
    40%, 55%{
        background-image: url(https://colorstw.com/assets/images/item/tile-proj/main_03.png);
        background-size: cover;
        background-repeat: no-repeat;
    }
    60%, 75%{
        background-image: url(https://colorstw.com/assets/images/item/tile-proj/main_04.png);
        background-size: cover;
        background-repeat: no-repeat;
    }
    80%, 95%{
        background-image: url(https://colorstw.com/assets/images/item/tile-proj/main_05.png);
        background-size: cover;
        background-repeat: no-repeat;
    }
    100%{
        background-image: url(https://colorstw.com/assets/images/item/tile-proj/main_01.png);
        background-size: cover;
        background-repeat: no-repeat;
    }
}

#svgMask{
    width: 85%;
    transform: rotate(-5deg);
}
.st0 {
    fill: none;
}
#mainTxt {
    fill: none; 
    stroke: #ffffff; 
    stroke-width: 30;
    stroke-linecap: round; 
    stroke-linejoin: round; 
    stroke-dasharray: 2000; 
    stroke-dashoffset: 1870; 
    shape-rendering: geometricPrecision;
}

/* 日本ver */
.mainJa{
    animation: draw 7s ease forwards;
}
/* 台湾ver */
.mainTw{
    animation: draw 5s ease forwards;
}
@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.tileBox{
    width: 100%;
    height: 225px;
    margin: 20px 0 10px;
    position: relative;
    .lti{
        position: absolute;
        top: 0;
        left: 0;
        width: 60%;
        height: 100%;
    }
    .rti{
        position: absolute;
        top: 0;
        right: 0;
        width: 65%;
        height: 100%;
    }
}


/*   見出しテキスト   */
.Texts{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-top: 80px;
    .subTitle{
        font-size: var(--SubTitle);
    }
    .Title{
        font-size: var(--Title);
    }
}

.content{
    padding: 0 20px;
}


/* before / after*/
.BeforeAfter{
    position: relative;
    width: 100%;
    padding:50px 0;
    img{
        width: 100%;
        display: block;
    }
    /* コメント部分（Before） */
    .comment_before{
        position: absolute;
        top: -50px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;
        gap: 11px;
        display: flex;
        align-items: center;
        width:360px;
        img{
            width: 70px;
            height: 100px;
        }
        p{
            padding: 9px 10px;
            background-color: #fff;
            border:1px solid var(--bg-brown);
            border-radius: 8px;
            font-size: var(--MessageTxt);
        }
    }
    /* コメント部分（After） */
    .comment_after{
        position: absolute;
        bottom: -47px;
        transform:none;
        right: 8px;
        left: auto;

        z-index: 2;
        gap: 11px;
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        width:360px;
        img{
            width: 70px;
            height: 100px;
            object-fit: contain;
        }
        p{
            padding: 9px 10px;
            background-color: #fff;
            border:1px solid var(--bg-brown);
            border-radius: 8px;
            font-size: var(--MessageTxt);
        }
    }
    /*   アニメーション下   */
    .scrollIn{
        opacity: 0;
        .scrollImg{
            width: 390px;
            height: 300px;
        }
    }
    .bottomIn{
        animation: slideIn 1s forwards;
        animation-delay: 0.3s;
    }

    /*   アニメーション左   */
    .linkWrap{
        position: relative;
        opacity: 0;
    }
    .link{
        position: absolute;
        bottom: 30px;
        left: 10px;
        width: 85px;
        height: auto;
    }
}
.leftIn{
    animation: leftIn 1s forwards;
}
@keyframes slideIn{
    0%{
        opacity:0; 
        transform: translateY(100px);
    }
    100%{
        opacity:1; 
        transform: translateY(0);
    }
}
@keyframes leftIn{
    0%{
        opacity:0; 
        transform: translateX(-70px);
    }
    100%{
        opacity:1; 
        transform: translateX(0);
    }
}

/*   タイルフロー   */
.flowWrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 430px;
    margin: 0 auto;
    img {
        object-fit: cover;
    }
    /* アニメーション設定 */
    .flow-box.scrollIn {
    opacity: 0;
    }
    .flow-box.bottomIn{
    animation: slideIn 1s forwards;
    animation-delay: .3s;
    }
    
    /* ディレイを設定 */
    .flow-box:nth-of-type(1).bottomIn{ animation-delay: .1s; }
    .flow-box:nth-of-type(2).bottomIn{ animation-delay: .2s; }
    .flow-box:nth-of-type(3).bottomIn{ animation-delay: .3s; }
    .flow-box:nth-of-type(4).bottomIn{ animation-delay: .4s; }
}
.phrase{
    padding-top: 60px;
    text-align: center;
    padding-bottom: 20px;
    h2{
        margin-bottom: 5px;
        font-size: var(--TitleTxt);
        font-weight: bold;
    }
    h3{
        margin-top: 0;
        font-size: var(--SubTitle);
        font-weight: normal;
    }
}
/* flowの共通設定 */
.flow-box {
    display: flex;
    width: 100%;
    height: 200px;
    box-shadow: 0px 2px 5px gainsboro;
    color: var(--color-darkBrown);
    overflow: hidden;
    img {
        flex: 1;
        min-width: 0;
        height: 100%;
    }
    .text-content {
        flex: 0 0 160px; 
        display: flex;
        flex-direction: column;
    }
    .flowTitle{
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 35px;
        background: var(--bg-title);
        height: 60px;
        font-size: var(--SubTitle);
        font-weight: normal;
        margin: 0;
        white-space: nowrap;
        span{
            display: flex;
            justify-content: center;
            align-items: center;
            background: var(--bg-brown);
            color: var(--bg-beige);
            width: 40px;
            height: 60px;
            flex-shrink: 0;
        }
    }
    .flowSecondTitle{
        gap: 30px;
    }
    p {
        text-align: left;
        color: var(--color-darkBrown);
        font-size: var(--DetailTxt);
        line-height: 1.6;
        margin: 0;
        padding: 40px 30px;
        flex: 1;
        background-color: var(--bg-beige);
    }
}
/* flow-04 */
.flowLast {
    width: 100%;
    height: auto; 
    flex-direction: column;
    box-sizing: border-box;
    .text-content{
        flex: none;
    }
    .flowTitle {
        display: flex;
        align-items: center;
        justify-content: space-between; 
        height: 55px;
        background-color: #8B6644;
        color: var(--bg-beige);
    }
    .flowTitle span {
        width: 50px;
        height: 55px;
        background-color: var(--bg-brown);
        color: #fff;
        font-size: var(--SubTitle);
    }
    .flowTitle::after {
        content: "";
        display: inline-block;
        width: 50px;
    }
    img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}

/* scroll */
.ScrollTitle{
    padding-top: 40px;
    font-size: var(--SubTitle);
    text-align: center;
    padding-bottom: 20px;
}
.scrollTile{
    display: flex;
    gap: 30px;
    overflow-x: auto;
    margin-bottom: 80px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    &::-webkit-scrollbar {
        display: none;
    }
    img{
        width: 150px;
        max-width: 150px;
        height: auto;
        flex-shrink: 0;
    }
}

/* タイル診断ボタン */
.tileTest{
    width: 100%;
    height: 200px;
    margin: 0px 0 75px;
    position: relative;
    .tileLeft{
        position: absolute;
        top: 0;
        left: 0;
        width: auto;
        height: 100%;
        object-fit: contain;
    }
    .tileRight{
        position: absolute;
        top: 0;
        right: 0;
        width: auto;
        height: 100%;
        object-fit: contain;
    }
}
.testTexts{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 5px;
    p{
        font-size: var(--Txt);
        span{
            color: #8B6644;
        }
    }
    .tileBtn{
        margin-top: 16px;
        width: 60%;
        height: 80px;
        border-radius: 60px;
        background: var(--bg-brown);
        a{
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            height: 100%;
            color: #fff;
            font-size: var(--SubTitle);
        }
    }
}


/* aras */
.aras{
    display: flex;
    align-items: center;
    justify-content: center;
    .arasWrap{
        display: flex;
        align-items: center;
        flex-direction: column;
        width: 100%;
        height: 540px;
        background: #F0F0F0;
        border-radius: 200px;
    }

    .aras1{
        position: absolute;
        top: 10px;
        width: 100%;
    }
    .sideLeftWrap{
        opacity: 0;
        img{
            width: 120px;
            height: auto;
        }
    }
    .lside{
        width: 120px;
    }
    .leftSideIn{
        animation: sideLeft 2s forwards;
        animation-delay: .2s;
    }

    .aras2{
        position: absolute;
        top: -10px;
        width: 100%;
        height: auto;
    }
    .sideRightWrap{
        opacity: 0;
    }
    .side{
        width: 85px;
    }
    .rightSideIn{
        animation: sideRight 2s forwards;
        animation-delay: .2s;
    }

    img{
        width: 100%;
        height: 300px;
    }
    h2{
        font-size: var(--Title);
        padding-bottom: 20px;
        font-weight: normal;
    }
    .atext{
        font-size: var(--Txt);
        padding-top: 20px;
    }
    .btn{
        margin-top: 20px;
        width: 150px;
        height: 50px;
        background: #D7D7D7;
        border-radius: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: var(--Txt);
        box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
        a{
            color: #000;
            display: block;
            padding: 10px 20px;
        }
    }
}

@keyframes sideRight{
    0%{opacity:0; transform: translateX(200px);}
    100%{opacity:1; transform: translateX(80px);}
}
@keyframes sideLeft{
    0%{opacity:0; transform: translateX(-300px);}
    100%{opacity:1; transform: translateX(-180px);}
}


/* moku */
.moku{
    margin: 15px 0 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    .mokuWrap{
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        background: var(--color-darkBrown);
        box-shadow: 0 0 3px 5px var(--color-darkBrown);
        border-radius: 100px;
        width: 100%;
        height: 490px;
        padding: 0 0 20px;
    }
    .moku1{
        position: absolute;
        top: 3px;
        left: 10px;
        width: auto;
        height: 120px;
    }
    .moku2{
        position: absolute;
        top: 8px;
        right: 13px;
        width: auto;
        height: 140px;
    }
    img{
        width: 100%;
        height: 300px;
    }
    .texts{
        width: 180px;
        height: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        position: relative;
        z-index: 0;
    }
    .texts::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        inset: 0;
        border-radius: 50%;
        background: linear-gradient(180deg, rgba(255, 240, 175, 0.70) 0%, rgba(255, 240, 175, 0.35) 111.48%);
        filter: blur(2px);
        z-index: -1;

        opacity: 0;
        transform: scale(0.8);
        transition:
            opacity 1s ease .3s,
            transform 1s ease .3s;
            transition-delay: .45s;
    }
    .light::before{
        opacity: 1;
        transform: scale(1);
    }
    .mtext{
        font-size: var(--Txt);
        padding-top: 20px;
    }
    h2{
        font-size: var(--Title);
        padding-bottom: 20px;
        font-weight: normal;
    }
    .btn{
        position: relative;
        margin-top: 20px;
        width: 140px;
        height: 40px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: var(--Txt);
        z-index: 0;
        a{
            color: #000;
            display: block;
            padding: 10px 20px;
            position: relative;
            z-index: 1;
        }
    }
    .btn::before{
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 16px;
        background: #B7AA83;
        box-shadow: 0 0 3px 5px #B7AA83;
        opacity: 0;
        transform: scale(0.8);
        transition:
            opacity 1s ease,
            transform 1s ease;
        z-index: -1;
    }
    .btn.light::before{
        opacity: 1;
        transform: scale(1);
    }
}

.footer{
    padding: 30px;
    height: 420px;
    background: var(--bg-brown);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footerTitle{
    font-size: var(--SubTitle);
    color: #fff;
    span{
        font-size: var(--Title);
    }
}
.footerLogo{
    width: 85px;
    height: auto;
    padding: 30px 0 45px;
}
.snsWrap{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 55px;
    .icon{
        width: 60px;
        height: auto;
    }
}