@charset "UTF-8";

@import url(/css/reset.css);
@import url(/css/setting.css);

body{
    color: var(--colorG);
    font-family: var(--font01);
    font-size: var(--font-normal);
    line-height: 1.7em;
    width: 100%;
    margin: 0 auto;
    position: relative;
    background: var(--colorW);
}

html{
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

img{
    width: 100%;
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

picture{
    display: block;
}

a{
    text-decoration: none;
    transition: opacity .3s ease;
}

/* a:hover{
    opacity: .8;
} */

:focus-visible{
    outline: 3px solid var(--color05);
    outline-offset: 4px;
}

.d-none{
    display: none;
}

.contents{
    width: 100%;
    margin: 0 auto;
    padding: var(--space01) 0;
}

.contents_inner{
    width: 90%;
    max-width: var(--width02);
    margin: 0 auto;
}

/* ==================================================
   HEADER
================================================== */

header{
    background: var(--colorW);
    position: relative;
    z-index: 100;
    width: 100%;
}

header .header_inner{
    width: 96%;
    max-width: 1560px;
    margin: 0 auto;
    padding: 22px 0 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

header h1{
    min-width: 0;
    color: var(--color01);
}

header h1 > span{
    display: block;
    color: var(--colorG);
    font-size: 12px;
    line-height: 1.5em;
    margin: 0 0 10px;
}

header h1 picture{
    width: clamp(330px, 31vw, 480px);
}

header .header_top{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

header .tel{
    color: var(--color01);
    text-align: center;
}

header .tel > span{
    display: block;
    color: var(--colorG);
    font-size: 12px;
    line-height: 1.5em;
    white-space: nowrap;
}

header .tel p{
    font-size: clamp(26px, 2.6vw, 40px);
    font-weight: 700;
    line-height: 1.3em;
    white-space: nowrap;
}

header .tel p a{
    background: url(/images/icon-tel.svg) no-repeat left center / 36px auto;
    padding: 0 0 0 43px;
}

header .link_line,
header .link_mail{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 12px 18px 12px 48px;
    font-size: 15px;
    line-height: 1.5em;
    font-weight: 700;
    text-align: center;
    border-radius: var(--radius01);
    position: relative;
}

header .link_line{
    color: var(--colorW);
    background: var(--color04);
}

header .link_mail{
    color: var(--color01);
    background: var(--gradient01);
}

header .link_line:before,
header .link_mail:before{
    content: "";
    width: 32px;
    height: 32px;
    position: absolute;
    top: 50%;
    left: 10px;
    transform: var(--takasa01);
    background: url(/images/icon-line.svg) no-repeat center / contain;
}

header .link_mail:before{
    background-image: url(/images/icon-mail.svg);
}

header .head-menu__pc{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 30px;
    padding: 12px 3%;
    border-top: 1px solid var(--colorB);
    border-bottom: 1px solid var(--colorB);
    font-size: var(--font-menu);
    line-height: 1.5em;
}

/* ------------------------------
   SP MENU
------------------------------ */

header .head-menu__sp{
    display: none;
}

.menu-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    width: 48px;
    height: 48px;
    position: relative;
    z-index: 102;
    color: var(--color01);
}

.menu-icon,
.menu-icon:before,
.menu-icon:after{
    display: block;
    width: 30px;
    height: 3px;
    background: currentColor;
    position: relative;
    transition: transform .3s ease;
}

.menu-icon:before,
.menu-icon:after{
    content: "";
    position: absolute;
    left: 0;
    top: -9px;
}

.menu-icon:after{
    top: 9px;
}

.menu-label{
    font-size: 10px;
    line-height: 1em;
    margin: 7px 0 0;
}

.menu-btn[aria-expanded="true"]{
    color: var(--colorW);
}

.menu-btn[aria-expanded="true"] .menu-icon{
    background: transparent;
}

.menu-btn[aria-expanded="true"] .menu-icon:before{
    top: 0;
    transform: rotate(45deg);
}

.menu-btn[aria-expanded="true"] .menu-icon:after{
    top: 0;
    transform: rotate(-45deg);
}

#Viewmenu{
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--clear01);
    color: var(--colorW);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 100px 8% 40px;
    z-index: 101;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease, visibility .3s ease;
}

#Viewmenu.is-active{
    visibility: visible;
    opacity: 1;
}

#Viewmenu h2{
    font-size: 24px;
    margin: 0 0 20px;
    font-weight: 700;
}

#Viewmenu ul li a{
    display: block;
    border-bottom: 1px solid rgba(255,255,255,.3);
    padding: 14px 0;
}

body.menu-open{
    overflow: hidden;
}

body.menu-open .menu-btn{
    position: fixed;
    top: 20px;
    right: 4%;
}

/* ==================================================
   FOOTER
================================================== */

footer{
    color: var(--colorW);
    background: var(--color03);
    padding: 50px 0;
}

footer .footer_inner{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    width: 92%;
    max-width: var(--width01);
    margin: 0 auto;
}

footer .left{
    width: 43%;
    max-width: 440px;
}

footer .left > span{
    display: block;
    font-size: var(--font-mini);
    margin: 0 0 12px;
}

footer .center{
    display: flex;
    flex-wrap: wrap;
    gap: 20px 50px;
    font-size: var(--font-menu);
}

footer .center a{
    display: block;
    padding: 3px 15px 3px 0;
    position: relative;
}

footer .center a:after{
    content: "";
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    width: 4px;
    height: 4px;
    transform: rotate(45deg);
    position: absolute;
    right: 0;
    top: 50%;
}

#FloatMenu{
    display: none;
}

/* ==================================================
   769px以上
================================================== */

@media screen and (min-width:769px){
    a[href^="tel:"] {
        pointer-events: none;
    }
}

/* ==================================================
   1100px以下
================================================== */

@media screen and (max-width:1100px){
    header .header_top,
    header .head-menu__pc{
        display: none;
    }

    header .head-menu__sp{
        display: block;
        flex-shrink: 0;
    }

    header .header_inner{
        width: 92%;
        border-bottom: 1px solid var(--colorB);
    }
}

/* ==================================================
   768px以下
================================================== */

@media screen and (max-width:768px){
    .pc-disp{
        display: none;
    }

    body{
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }

    header .header_inner{
        width: 100%;
        padding: 14px 4%;
        gap: 10px;
    }

    header h1{
        flex: 1;
    }

    header h1 > span{
        font-size: clamp(7px, 1.8vw, 11px);
        margin: 0 0 8px;
    }

    header h1 picture{
        width: 100%;
        max-width: 460px;
    }

    footer{
        padding: 35px 0;
    }

    footer .footer_inner{
        width: 90%;
        flex-direction: column;
        gap: 28px;
    }

    footer .left{
        width: 100%;
        max-width: 380px;
    }

    footer .center{
        width: 100%;
        gap: 24px;
    }

    footer .center ul{
        flex: 1;
        min-width: 0;
    }

    #FloatMenu{
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 10px 4% calc(10px + env(safe-area-inset-bottom));
        background: var(--colorW);
        box-shadow: 0 -2px 12px rgba(0,0,0,.1);
        z-index: 90;
    }

    #FloatMenu ul{
        display: flex;
        gap: 8px;
    }

    #FloatMenu li{
        flex: 1;
        min-width: 0;
    }

    #FloatMenu li a{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        min-height: 60px;
        border-radius: 8px;
        color: var(--colorW);
        background: var(--color02);
        font-size: clamp(9px, 2.5vw, 14px);
        font-weight: 700;
        line-height: 1.4em;
    }

    #FloatMenu li a:before{
        content: "";
        width: 26px;
        height: 26px;
        background: url(/images/icon-tel.svg) no-repeat center / contain;
        filter: brightness(0) invert(1);
    }

    #FloatMenu .Menu02 a{
        background: var(--color04);
    }

    #FloatMenu .Menu02 a:before{
        background-image: url(/images/icon-line.svg);
        filter: none;
    }

    #FloatMenu .Menu03 a{
        color: var(--color01);
        background: var(--gradient01);
    }

    #FloatMenu .Menu03 a:before{
        background-image: url(/images/icon-mail.svg);
        filter: none;
    }
}

@media screen and (min-width:769px){
    .sp-disp{
        display: none;
    }
}

@media (prefers-reduced-motion:reduce){
    html{
        scroll-behavior: auto;
    }

    *,
    *:before,
    *:after{
        transition: none !important;
    }
}

/* ==================================================
   COPYRIGHT
================================================== */

footer{
    padding-bottom: 0;
}

footer .copy{
    background: var(--color02);
    color: var(--colorW);
    font-size: var(--font-mini);
    line-height: 1.6em;
    text-align: center;
    margin: 40px 0 0;
    padding: 18px 5%;
}


/* ==================================================
   PAGETOP
================================================== */

#pagetop{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 64px;
    height: 64px;
    background: var(--color02);
    color: var(--colorW);
    border: 1px solid var(--colorW);
    border-radius: 8px;
    box-shadow: var(--shadow01);
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 95;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);

    transition:
        opacity .3s ease,
        visibility .3s ease,
        transform .3s ease,
        background .3s ease;
}

#pagetop:before{
    content: "";
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(45deg);
    margin: 5px 0 0;
}

#pagetop span{
    font-size: 10px;
    font-weight: 700;
    line-height: 1em;
}

#pagetop.is-show{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* #pagetop.is-show:hover{
    opacity: .8;
} */

/* フッターに重なる位置ではゴールドに変更 */
/* #pagetop.page-end{
    background: var(--gradient01);
    color: var(--color01);
} */


@media screen and (max-width:768px){

    footer .copy{
        font-size: 10px;
        margin-top: 28px;
        padding: 16px 5%;
    }

    #pagetop{
        width: 52px;
        height: 52px;
        right: 12px;
        bottom: calc(92px + env(safe-area-inset-bottom));
        gap: 7px;
    }

    #pagetop span{
        font-size: 8px;
    }

}

/* ==================================================
   FIXED HEADER
================================================== */

html{
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body{
    padding-top: var(--header-height);
}

@media screen and (max-width:768px){

    header{
        position: fixed;
        top: 0;
        left: 0;
        height: var(--header-height);
        background: var(--colorW);
    }

    header .header_inner{
        height: 100%;
        padding-top: 12px;
        padding-bottom: 12px;
    }

}


/* ==================================================
   LINK ACTION
================================================== */

a{
    transition:
        color .3s ease,
        background-color .3s ease,
        filter .3s ease;
}

/* マウスでホバーできる端末に適用 */
@media (hover:hover) and (pointer:fine){

    /* ロゴ：紺色を明るく */
    header h1 picture a:hover{
        filter: brightness(1.35);
    }

    /* 電話番号：白背景上で読みやすい青 */
    header .tel p a:hover{
        color: var(--hover-blue);
    }

    /* PCナビ：淡い背景＋紺色 */
    header .head-menu__pc a:hover{
        color: var(--color01);
        background-color: var(--hover-light);
    }

    /* LINE：白文字を保つため緑を濃く */
    header .link_line:hover{
        background: var(--hover-line);
        color: var(--colorW);
    }

    /* メール：ゴールドを明るく */
    header .link_mail:hover{
        background: var(--gradient01-hover);
        color: var(--color01);
    }

    /* メニューボタン */
    .menu-btn:not([aria-expanded="true"]):hover{
        color: var(--hover-blue);
    }

    /* スマホメニュー内：青背景を明るく */
    #Viewmenu ul li a:hover{
        background-color: var(--hover-blue);
        color: var(--colorW);
    }

    /* フッターロゴ：白を少し落として変化を付ける */
    footer .left picture a:hover{
        filter: brightness(.85);
    }

    /* フッター内リンク：明るいゴールド */
    footer .center a:hover{
        color: var(--hover-gold);
    }

    /* 固定相談メニュー */
    #FloatMenu .Menu01 a:hover{
        background: var(--hover-blue);
        color: var(--colorW);
    }

    #FloatMenu .Menu02 a:hover{
        background: var(--hover-line);
        color: var(--colorW);
    }

    #FloatMenu .Menu03 a:hover{
        background: var(--gradient01-hover);
        color: var(--color01);
    }

    /* PAGETOP */
    #pagetop.is-show:hover{
        background: var(--hover-blue);
        color: var(--colorW);
    }

}