/*==========================================================================
# 全ページ共通
========================================================================== */
html {
    font-size: 0.6944444444vw;/* 1440pxのとき、0.1rem＝10pxになる */
    color: var(--color-black);
    overflow-x: hidden;


    --color-black:#454545;
    --color-blue:#2981BF;
    --color-green:#109333;
    --color-orange:#D88D2D;
    --color-bg:#FAFAFA;
    --color-bg-white:#FFFFFF;
    --color-bg-green:#F0F2F0;
    --color-bg-green2:#F3F5F4;
    --color-bg-blue:#F5F5F5;
    --color-bg-hover:#f9f9f9;
    --color-border:#C7C7C7;
    --color-border2:rgba(199, 199, 199, 0.40);
    --color-border3:#9F9F9F;
    --color-border4:#616161;

    --line-height-h:1.54;
    --line-height-p:1.72;

    --font-family-e:"Manrope", sans-serif;
     --font-family-j:"Noto Sans JP", sans-serif;

    --font-weight-b:700;
    --font-weight-m:500;

    --anime:0.3s cubic-bezier(0.12, 0.81, 0.41, 0.83);;
}
html.open{
    overflow: hidden;
    height: 100%;
}
@media screen and (min-width: 1680px) {
    html {
        font-size:12px;
    }
}
@media screen and (max-width: 768px) {
    html {
        font-size: 2.6666666667vw;/* 375pxのとき、0.1rem＝10pxになる */
    }
}


body{
    /* overflow-x: hidden; */

    color: var(--color-black);
    font-family: "Noto Sans JP", sans-serif;
    font-size: clamp(14px, 1.5rem, 18px);
    line-height: var(--line-height-p);
    font-weight: 500;
    background-color: var(--color-bg);
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img{
    width: 100%;
    height: auto;
}
svg {
    display: block;
    width: 100%;
    height: 100%
}
.border{
    width: 100%;
    height: 1px;
    display: block;
    background: var(--color-border);
}
a{
    text-decoration: none;
    color: var(--color-black);
    /* font-size: clamp(14px, 1.6rem, 19px); */
    line-height: var(--line-height-p);
}
h1,h2,h3,h4,h5,h6{
    font-weight: var(--font-weight-b);
    line-height: var(--line-height-h);
}
p{
    line-height: var(--line-height-p);
}
.mark::before {
    content: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 13' fill='none'%3E%3Cpath d='M25.3754 0H6.62459C2.96491 0 0 2.90915 0 6.5C0 10.0909 2.96491 13 6.62459 13H32V6.5C32 2.90915 29.0351 0 25.3754 0Z' fill='%23109333'/%3E%3C/svg%3E");
    margin-right: 4px;
    display: inline-block;
}
.head-width{
    margin-top: 70px;
}
.fc-green{
    color: var(--color-green);
}
.fc-blue{
    color: var(--color-blue);
}
.fc-orange{
    color: var(--color-orange);
}
.sp{
    display: none !important;
}
.border{
    margin-bottom: 4rem;
}

@media screen and (max-width: 768px) {
    body{
        font-size: clamp(13px, 1.4rem, 18px);
    }
    .head-width{
        margin-top: 60px;
    }
    .pc{
        display: none !important;
    }
    .sp{
        display: block !important;
    }
    .border{
        margin-bottom: 2.5rem;
    }
}

/*---------------幅------------------*/
.inner-w{
    padding: 0 8rem 0;
    box-sizing: border-box;
}
.inner-m{
    padding: 0 16.8rem 0;
    box-sizing: border-box;
}
.inner-single{
    width: 78rem;
    margin: 0 auto;
}
.archive-wrapper{
    margin-bottom: 15rem;
}
@media screen and (max-width: 768px) {
    .inner-w,.inner-m{
        padding-left: max(20px, 2rem);
        padding-right: max(20px, 2rem);
    }
    .inner-single{
        padding-left: max(20px, 2rem);
        padding-right: max(20px, 2rem);
        width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
    }
    .archive-wrapper{
        margin-bottom: 8rem;
    }
}


/*--------------- PHPの時消す！！--------------------*/
.archive-case-wrapper .article-btn{
    display: none;
}



/*==========================================================================
# ボタンデザイン
========================================================================== */
.button-contents{
    padding: 1.7rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 4px;

    font-size: clamp(13px, 1.5rem, 18px);
    box-sizing: border-box;
    font-weight: var(--font-weight-b);
    width: 40rem;
    height: 6rem;
}
.circle-button{
    border-radius: 40px 40px 0 40px;
    border: 1px solid var(--color-black);
    fill: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s cubic-bezier(0.12, 0.81, 0.41, 0.83);
}
.circle-button > svg{
    fill: var(--color-black);
}
.top-service-link:hover  .hover-circle-btn{
    border: 1px solid var(--color-green);
    background-color: var(--color-green);
}
.top-service-link:hover  .hover-circle-btn > svg path{
    fill: var(--color-bg-white);
}

/*--------------- ボタンカラー--------------------*/
.btn-bg-green{
    background-color: var(--color-green);
}
.btn-bg-green::before{
    background-color: var(--color-green);
    filter: saturate(2.4);
}
.btn-bg-blue{
    background-color: var(--color-blue);
}
.btn-bg-blue::before{
    background-color: var(--color-blue);
    filter: saturate(3);
}
.btn-bg-orange{
    background-color: var(--color-orange);
}
.btn-bg-orange::before{
    background-color: var(--color-orange);
    filter: saturate(1.4);
}
.btn-bg-green , .btn-bg-blue , .btn-bg-orange{
    color: var(--color-bg-white);
}
.btn-bg-green > .circle-button , .btn-bg-blue > .circle-button , .btn-bg-orange > .circle-button{
    border: 1px solid var(--color-bg-white);
}
.btn-bg-green > .circle-button > svg , .btn-bg-blue > .circle-button > svg , .btn-bg-orange > .circle-button > svg{
    fill: var(--color-bg-white);
}
.btn-bg-white, .btn-bg-trial{
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-black);
    color: var(--color-black);
}
.btn-bg-white::before{
    background-color: var(--color-green);
}
.btn-bg-trial::before{
    background-color: var(--color-blue);
}
.hover-bg-color:hover .circle-button{
    border: 1px solid var(--color-bg-white);
    fill: var(--color-bg-white);
}
.hover-bg-color:hover .circle-button > svg{
    fill: var(--color-bg-white);
}

/*--------------- article ボタン--------------------*/
.article-btn-contents{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 17px 24px;
    margin-top: 6rem;
    height: 5rem;

    background-color: #f5f5f5;
    border: 1px solid #454545;
    border-radius: 4px;
    width: 100%;
}
.article-txt {
    font-size: 1rem;
    font-weight: 600;
    color: #454545;
}

.article-btn-contents:hover .article-icon.circle-button {
    border-color: white;
}
.article-btn-contents:hover .article-icon svg path {
    fill: white;
}
.article-btn-contents::before{
    background-color: var(--color-green);
    border: 1px solid var(--color-green);
}
@media only screen  and (max-width: 768px){
    .button-contents{
        width: 100%;
        height: 5rem;
    }
    .article-btn-contents{
        margin-top: 4rem;
        height: 5rem;
}
}

/*==========================================================================
# hover 動き
========================================================================== */

/*--------------- タイトル アニメーション --------------------*/
.char {
    display: inline-block;
}
.anime-title1, .anime-title2, .anime-title3{
    overflow: hidden;
}


/*--------------- hover 線が入る --------------------*/
a:hover .hover-line-text{
    background-size: 100% 1px;
}
.hover-line-text{
    background-size: 0% 1px;
    background-position: bottom right;
    transition: background-size .2s cubic-bezier(0.58, 0.59, 0.35, 1.04);
    background-image: linear-gradient(currentcolor, currentcolor);
    background-repeat: no-repeat;
}

/*--------------- hover 色が変わる--------------------*/
.hover-bg-color{
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: color 0.3s ease-out;
}
.hover-bg-color:hover{
    color: var(--color-bg-white);
}
.hover-bg-color::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;

    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s cubic-bezier(0.12, 0.81, 0.41, 0.83);
}


.hover-bg-color:hover::before {
    transform: scaleY(1.2);
}

/*--------------- hover テキストが一回転--------------------*/
.hover-roll-btn {
    line-height: 1;
    display: grid
;
    grid-template-areas: "label";
    overflow: hidden;
    transition: color .3s cubic-bezier(0.58, 0.59, 0.35, 1.04);
}
.hover-roll-btn  span {
    display: block;
    grid-area: label;
    animation-duration: 0.1s;
}
.txt-before {
    transform: translateY(0);
}
.txt-after {
    transform: translateY(100%);
    color: var(--color-bg-white);
}
a:hover .txt-before {
    animation-name: transformTop;
}
a:hover .txt-after {
    animation-name: transformBottom;
}
@keyframes transformTop {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(0);
    }
    }
    @keyframes transformBottom {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

/*--------------- hover imgがアップ--------------------*/
div:has(.hover-img){
    overflow: hidden;
}
.hover-img{
    transition: scale .3s cubic-bezier(0.3, 0.015, 0.12, 1);
}
a:hover .hover-img{
    scale: 1.033;
}

/*==========================================================================
# header
========================================================================== */
header{
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background-color: var(--color-bg-white);
    color: var(--color-black);
    z-index: 500;
}
.header-inner{
    height: 100%;
    padding:0 8rem;
    box-sizing: border-box;

    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-black);
}
.drawer-header-nav,.toggle-btn{
    display: none;
}
.header-nav {
    margin-left: auto;
    display: flex;
    height: 100%;
}
.header-nav-ul{
    display: flex;
    gap: 3rem;
}
.header-nav-ul > li{
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    word-wrap: break-word;
    cursor:pointer;
    transition: all .3s cubic-bezier(0.3, 0.015, 0.12, 1);
}
.header-nav-ul a:hover {
    color: var(--color-green);
}
.header-nav-ul .sub-menu {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 30rem;
    background: var(--color-bg-white);
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.10);
    padding: 1.6rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}
.header-nav-ul li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.header-nav-ul .sub-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 1.4rem;
    border-top: 1px solid var(--color-border2);
}
.header-nav-ul .sub-menu li:first-child a {
    border-top: none;
}
.header-nav-ul .sub-menu li a:hover {
    color: var(--color-green);
    background-color: var(--color-bg-hover);
}
.header-nav-ul .current_page_item a, .header-nav-ul .current-menu-item a{
    border-bottom: 1px solid var(--color-black);
}
.header-nav-ul .sub-menu .current_page_item a, .header-nav-ul .sub-menu .current-menu-item a{
    color: var(--color-green);
    border-bottom: none;
    background-color: var(--color-bg-hover);
}
.header-btn{
    display: flex;
}
.header-contact-btn-contents{
    margin-left: 3rem;
    width: auto;
    height: auto;
    font-size: min(18px, 1.4rem);
}
.header-contact-btn-contents.trial-btn-contents{
    width: auto;
}
.header-logo{
    width: min(146px, 14.6rem);
}

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

    header{
        height: 60px;
        font-size: clamp(13px, 1.5rem, 22px);
    }
    .header-inner{
        padding:0 max(20px, 2rem);
    }
    .header-logo{
        width: min(100px, 10rem);
    }
    .header-contact-btn-contents{
        padding: 10px 1rem;
        font-size: min(15px, 1rem);
    }
    .header-right{
        display: flex;
        justify-content: space-between;
        gap: 1.6rem;
        padding-right: 0;
    }
    .header-nav{
        display: none;
    }
    .header-btn .trial-btn-contents{
        display: none;
    }
    /*-----ハンバーガーメニュー-----*/
    .toggle-btn{
        display: block;
        width: 50px;
        height: 35px;
        border-radius: 50px 50px 0 50px;
        background-color: var(--color-black);
        position: relative;
        border: none;
        z-index: 120;
    }
    .toggle-btn-item{
        display: inline-block;
        position: absolute;
        width: 40%;
        left: 16px;
        height: 2px;
        border-radius: 2px;
        background-color: #fff;
        transition: 0.3s cubic-bezier(0.12, 0.81, 0.41, 0.83);
    }
    .toggle-btn-item:nth-of-type(1) {
        top:10px;
    }
    .toggle-btn-item:nth-of-type(2) {
        top:17px;
    }
    .toggle-btn-item:nth-of-type(3) {
        top:24px;
    }
    /*openクラスが付与されると線が回転して×に*/
    .toggle-btn.open :nth-of-type(1) {
        top: 8px;
        left: 15px;
        transform: translateY(9px) rotate(-45deg);
        width: 40%;
    }
    .toggle-btn.open :nth-of-type(2) {
        opacity: 0;/*真ん中の線は透過*/
    }
    .toggle-btn.open :nth-of-type(3){
        top: 26px;
        left: 15px;
        transform: translateY(-9px) rotate(45deg);
        width: 40%;
    }
    /*-----ドロワーメニュー中身-----*/
    .drawer-header-nav{
        width: 100%;
        height: 100%;

        position: fixed;
        top: 60px;
        right: -100%;
        overflow-x: hidden;
        overflow-y: scroll;
        padding: 40px 2rem;
        margin-bottom: 80px;
        box-sizing: border-box;

        display: flex;
        flex-direction: column;

        transition: 0.4s cubic-bezier(0.12, 0.81, 0.41, 0.83);
        background-color: var(--color-bg-white);
        z-index: 150;
    }
    .drawer-header-nav-ul > li{
        padding: 1.2rem 20px;
        border-top: 1px solid var(--color-border2);
        font-weight: var(--font-weight-b);
        display: flex;
        flex-direction: column;

    }
    .drawer-header-nav-ul .sub-menu{
        padding-top: 10px;
    }
    .drawer-header-nav-ul .sub-menu li{
        display: flex;
        flex-direction: column;
        padding: 1.2rem 10px;
    }
    .drawer-header-nav-ul .sub-menu li a {
        font-size: clamp(13px, 1.3rem, 18px);
        font-weight: 500;
    }
    .open2{
        right: 0%;
    }
    .drawer-contact-btn-box{
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin: 40px 0 60px;
    }
}

/*==========================================================================
# footer
========================================================================== */
.footer-inner{
    padding: 10rem 8rem;
    border-radius: 0 14rem 14rem 14rem;
    background: #383838;
    color: var(--color-bg-white);
}
.footer-nav a{
    color: var(--color-bg-white);
}
.footer-inner-top{
    display: flex;
    justify-content: space-between;
}
.footer-logo{
    width: 20rem;
}
.footer-nav-ul{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    height: max(20px, 30rem);
    gap: 20px 90px;
    margin-right: 40px;
    margin-bottom: 50px;
}
.footer-nav-ul > li > a{
    border-bottom: 1px solid var(--color-bg-white);
}
.footer-nav-ul > li > .sub-menu{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}
.footer-nav-ul > li > .sub-menu a{
    font-size: clamp(10px, 1.3rem, 16px);
}
.footer-btn-box{
    display: flex;
    gap: 30px;
}
.footer-btn-contents{
    width: auto;
}
.footer-inner-bottom{
    display: flex;
    justify-content: space-between;
    margin-top: 80px;
    border-top: 1px solid var(--color-bg-white);
    padding-top: 30px;
}
.footer-inner-bottom p, .footer-inner-bottom a{
    color: var(--color-bg-white);
    font-size: clamp(10px, 1.3rem, 16px);
}

@media only screen  and (max-width: 768px){
    .footer-inner{
        padding: 8rem max(20px, 2rem);
        border-radius: 0 6rem 6rem 6rem;
    }
    .footer-inner-top{
        display: flex;
        flex-direction: column;
    }
    .footer-nav-ul{
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        height: 100%;
        gap: 30px;
        margin: 80px 0 40px;
    }
    .footer-nav-ul > li > .sub-menu{
        gap: 10px;
        margin-top: 20px;
    }
    .footer-btn-box{
        display: flex;
        flex-direction: column;
    }
    .footer-inner-bottom{
        display: flex;
        flex-direction:column-reverse;
        gap: 20px;
        margin-top: 40px;
        padding-top: 40px;
    }

}