@charset "UTF-8";

/* 右側追従ページ内リンク
=======================================================*/
#page_link {
    position: fixed;
    top: 100px;
    right: 1.5%;
    writing-mode: vertical-rl;
    display: flex;
    flex-direction: row;
    white-space: nowrap;
    opacity: 0;
    transition-duration: 0.3s;
    pointer-events: none;
    transition-timing-function: ease-out;
}
#page_link.on {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#page_link li {
    position: relative;
    margin-bottom: 2em;
    padding-top: 1.3em;
    font-size: 11px;
    line-height: 1em;
}
#page_link li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 1em;
    height: 1em;
    transform: translateX(-45%);
    background-color: var(--color_5);
    border-radius: 50px;
}

#page_link.on li:hover,
#page_link.on li:active {
    color: var(--color_2);
}
#page_link.on li:hover::before,
#page_link.on li:active::before {
    background-color: var(--color_2);
}

#page_link.is-hidden {
    opacity: 0;
    transition: 0.3s;
}

@media screen and (max-width: 480px) {
    #page_link {
        display: none;
    }
}

/* 経営理念
=======================================================*/
#philosophy {
    padding: 10% 5%;
}


.philosophy__inner {
    position: relative;
    padding: 80px 10% 160px;
    background-color: var(--color_3);
    background-image: url(../img/management_philosophy_bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
    opacity: 0;
}
.philosophy__inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color_3);
    opacity: 0.7;
}

.philosophy__inner.scroll-active {
    opacity: 1;
    transition: 1.5s;
}

.philosophy__contents {
    position: relative;
    z-index: 1;
}

.philosophy__contents h2 {
    /*font-size: 32px; */
    font-size: clamp(24px, 2.22vw, 56px);
    line-height: 1.8em;
    letter-spacing: 0.2em;
    text-align: center;
    opacity: 0;
    transform: translateY(15px);
}

.philosophy__contents p.title_en {
    margin-bottom: 100px;
    color: var(--color_2);
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(15px);
}
/*▼js*/
.philosophy__inner.scroll-active .philosophy__contents h2 {
    opacity: 1;
    transform: translateY(0);
    transition: 1s;
    transition-delay: 0.6s;
}
.philosophy__inner.scroll-active .philosophy__contents p.title_en {
    opacity: 1;
    transform: translateY(0);
    transition: 0.8s;
    transition-delay: 0.8s;
}
/*▲js*/


.philosophy__contents-innner {
    display: flex;
    justify-content: space-between;
}
/*3つの理念*/
.philosophy__list {
    width: fit-content;
}

.philosophy__item {
    width: fit-content;
    margin-bottom: 20%;
    opacity: 0;
    transform: translateX(-15px);
}

.philosophy__item:last-of-type {
    margin-bottom: 0;
}

.philosophy__item h3 {
    /*font-size: 40px;*/
    font-size: clamp(24px, 2.77vw, 56px);
    letter-spacing: 0.2em;
}

.philosophy__item h3 span {
    color: var(--color_2);
}

.philosophy__item h3 > br {
    display: none;
}

.philosophy__item p {
    margin-top: 2%;
    letter-spacing: 0.2em;
}

.philosophy__item p span {
    position: relative;
    display: inline-block;
    width: fit-content;
    margin-top: 3%;
    /*font-size: 20px; */
    font-size: clamp(20px, 1.389vw, 36px);
}
.philosophy__item p span::before {
    content: "";
    position: absolute;
    bottom: 10%;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(90deg, #4CACF4, var(--color_3));
    z-index: -1;
}
.philosophy__item p span > br {
    display: none;
}

/*▼js*/
.philosophy__list.scroll-active .philosophy__item {
    opacity: 1;
    transform: translateX(0);
    transition: 1s;
}
.philosophy__list.scroll-active .philosophy__item:nth-of-type(1)  {
    transition-delay: 1.5s;
}
.philosophy__list.scroll-active .philosophy__item:nth-of-type(2)  {
    transition-delay: 4.5s;
}
.philosophy__list.scroll-active .philosophy__item:nth-of-type(3)  {
    transition-delay: 6.5s;
}
/*▲js*/

/*▲ 3つの理念 ▲*/
/*▼ 右側circle ▼*/
.philosophy__list-sub {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 25%;
    height: auto;
    aspect-ratio: 1 / 3;
}

.circle__item {
    position: relative;
    display: flex;
    align-items: center;
    transform: translateX(20%);
    opacity: 0;
    filter: blur(100px);
}
.circle__item:nth-of-type(2n) {
    transform: translateX(-20%);
}
.circle__item::before {
    display: inline-block;
    content: "";
    position: absolute;
    top: 75px;
    left: 75px;
    top: 50%;
    left: 30%;
    width: 0;
    height: 2px;
    transform: rotate(106deg);
    transform-origin: left center;
    background-color: var(--color_2);
    z-index: -1;
}
.circle__item:nth-of-type(2)::before {
    transform: rotate(71deg);
}
.circle__item:last-of-type:before {
    display: none;
}

.circle__item span {
    display: block;
    aspect-ratio: 1 / 1;
    width: 70%;
    border-radius: 50%;
    background-color: var(--color_1);
}

.circle__item p {
    margin-left: -50%;
    /*font-size: 32px;*/
    font-size: clamp(24px, 2.22vw, 56px);
    letter-spacing: 0.14em;
    white-space: nowrap;
}

/*▼js*/
.philosophy__list-sub.scroll-active .circle__item {
    opacity: 1;
    filter: blur(0);
    transition: 0.8s;
    transition-delay: 2.8s;
}
.philosophy__list-sub.scroll-active .circle__item:nth-of-type(2)  {
    transition-delay: 5s;
}
.philosophy__list-sub.scroll-active .circle__item:nth-of-type(3)  {
    transition-delay: 7s;
}

.philosophy__list-sub.scroll-active .circle__item::before {
    width: 130%;
    transition: 2s;
    transition-delay: 3.6s;
}
.philosophy__list-sub.scroll-active .circle__item:nth-of-type(2)::before  {
    transition-delay: 5.6s;
}
.philosophy__list-sub.scroll-active .circle__item:nth-of-type(3)::before  {
    transition-delay: 7.6s;
}
/*▲js*/
/*▲ 右側circle ▲*/
@media screen and (min-width: 1920px){
    .philosophy__inner {
        padding: 160px 10% 240px;
    }
    .philosophy__list-sub {
        margin-right: 10%;
    }
    .circle__item::before {
        height: 3px;
        transform: rotate(110deg);
    }
    .circle__item:nth-of-type(2)::before {
        transform: rotate(66deg);
    }
}
@media screen and (max-width: 1024px) {    
    .philosophy__inner {
        padding: 80px 5% 160px;
    }
}

@media screen and (max-width: 896px) {  
    .philosophy__inner {
        padding: 80px 5% 80px;
    }
    .philosophy__contents-innner {
        display: block;
    }
    .philosophy__contents p.title_en {
        margin-bottom: 80px;
    }
    .philosophy__list {
        margin: 0 auto;
    }
    .philosophy__item {
        margin-bottom: 15%;
    }
    .philosophy__list-sub {
        width: 40%;
        margin: 80px auto 0;
        aspect-ratio: 1 / 1.5;
    }
    .circle__item {
        transform: translateX(40%);
    }
    .circle__item:nth-of-type(2n) {
        transform: translateX(-40%);
    }
    .circle__item::before {
        width: 100%;
        height: 2px;
        transform: rotate(140deg);
    }
    .circle__item:nth-of-type(2n)::before {
        transform: rotate(40deg);
    }
    .circle__item p {
        margin-left: -50%;
        font-size: clamp(24px, 4.62vw, 40px);
    }
    

    /*▼js*/
    .philosophy__inner.scroll-active .philosophy__contents h2,
    .philosophy__inner.scroll-active .philosophy__contents p.title_en {
        opacity: 1;
        transition: none;
    }
    /*▲js*/
    /*3つの理念*/
    .philosophy__list.scroll-active .philosophy__item:nth-of-type(1)  {
        transition-delay: 0.8s;
    }
    .philosophy__list.scroll-active .philosophy__item:nth-of-type(2)  {
        transition-delay: 1.8s;
    }
    .philosophy__list.scroll-active .philosophy__item:nth-of-type(3)  {
        transition-delay: 2.8s;
    }
    /*▼ 右側circle ▼*/
    .philosophy__list-sub {
        opacity: 0;
        transform: translateY(15px);
    }
    .philosophy__list-sub.scroll-active {
        opacity: 1;
        transform: translateY(0);
        transition: 1s 0.6s;
    }
    .philosophy__list-sub.scroll-active .circle__item,
    .philosophy__list-sub.scroll-active .circle__item::before {
        transition: none;
    }
    /*▲js*/
}
@media screen and (max-width: 480px) {
    .philosophy__item {
        margin-bottom: 25%;
    }
    .philosophy__item h3 {
        line-height: 1.8em;
    }
    .philosophy__item h3 > br {
        display: block;
    }
    .philosophy__item p {
        margin-top: 8%;
        line-height: 1.6em;
    }
    .philosophy__item p span {
        color: var(--color_2);
    }
    .philosophy__item p span > br {
        display: block;
    }
    .philosophy__item p span::before {
        display: none;
    }
    .philosophy__list-sub {
        width: 50%;
        aspect-ratio: 1 / 2;
    }
}

/* 税理士紹介
=======================================================*/
#tax-accountant {
    padding-top: 100px;
}
#tax-accountant > .h2__container {
    position: relative;
    width: 45%;
    padding-top: 5%;
    padding-bottom: 10%;
    padding-left: 12%;
    color: var(--color_1);
    z-index: 0;
}
#tax-accountant > .h2__container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    width: 0;
    height: 100%;
    background-color: var(--color_2);
    z-index: -1;
}

#tax-accountant.scroll-active > .h2__container::before {
    width: 100%;
    transition: 0.7s;
    transition-delay: 1s;
    transition-timing-function: ease-out;
}

#tax-accountant > .h2__container h2 {
    /*font-size: 40px;*/
    font-size: clamp(30px, 2.77vw, 56px);
}

#tax-accountant > .h2__container > p,
#tax-accountant > .h2__container > h2 {
    opacity: 0;
}

#tax-accountant.scroll-active > .h2__container > p,
#tax-accountant.scroll-active > .h2__container > h2 {
    opacity: 1;
    transition: 1s;
    transition-delay: 1.8s;
}

#tax-accountant > .contents {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 160px;
    padding: 0 10%;
    opacity: 0;
    transform: translateY(10px);
}
#tax-accountant.scroll-active > .contents {
    opacity: 1;
    transform: translateY(0);
    transition: 0.8s;
    transition-delay: 2.8s;
}

#tax-accountant > .contents::before {
    content: "";
    position: absolute;
    top: 10%;
    right: 50%;
    transform: translateX(70%);
    width: 50%;
    height: 100%;
    background-image: url(../img/bg_mark.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left top;
    opacity: 0.5;
    z-index: -1;
}
#tax-accountant > .contents:last-of-type::before {
    display: none;
}

#tax-accountant > .contents .contents__inner-text {
    width: 45%;/*
    margin-top: 120px;*/
    margin-bottom: 5%;
}

#tax-accountant > .contents .contents__inner-text p.name {
    /*font-size: 40px;*/
    font-size: clamp(30px, 2.77vw, 56px);
    line-height: 1.8em;
}

#tax-accountant > .contents .contents__inner-text p.name span {
    color: var(--color_2);
}

#tax-accountant > .contents .contents__inner-text p.message {
    /*margin: 80px 0 0;*/
    margin: 12% 0 0;
}

#tax-accountant > .contents .contents__inner-img {
    width: 33%;
    min-width: 300px;
    margin-left: 5%;
}
#tax-accountant > .contents .contents__inner-img img.sp {
    display: none;
}

/*プロフィール・経歴*/
#tax-accountant > .contents:last-of-type {
    position: static;
    justify-content: space-between;
    align-items:flex-start;
    margin-bottom: 160px;
    padding: 0 10%;
}

.profile__container, .experience__container {
    width: 40%;
}

.profile__container h3, .experience__container h3 {
    margin-bottom: 30px;
    padding-left: 1em;
    /*font-size: 24px;*/
    font-size: clamp(24px, 1.667vw, 40px);
    line-height: 1.6em;
    color: var(--color_2);
    border: var(--color_2) 0.138vw solid;
}


.profile__container dl, .experience__container dl {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    line-height: 1.8em;
}

.profile__container dl dt, .experience__container dl dt {
    width: 30%;
    padding-right: 2%;
}

.profile__container dl dd, .experience__container dl dd {
    width: 70%;
}

.profile__container dl dt {
    color: var(--color_2);
}
.profile__container dl dt, .profile__container dl dd {
    padding: 15px 0;
    border-bottom: var(--color_2) 0.04vw solid;
}

@media screen and (max-width: 1300px) {
    #tax-accountant > .contents {
        padding-top: 10%;
        justify-content: space-between;
    }
    #tax-accountant > .contents::before {
        top: 50%;
        transform: translate(90%, -30%);
    }
    #tax-accountant > .contents .contents__inner-text {
        width: 55%;
    }
    .profile__container {
        width: 42%;
    }
    .experience__container {
        width: 52%;
    }
}

@media screen and (max-width: 1024px) {
    #tax-accountant > .h2__container {
        width: 45%;
        max-width: 500px;
        min-width: 400px;
        padding-right: 5%;
    }
    #tax-accountant > .h2__container p {
        line-height: 1.6em;
    }
    .profile__container, .experience__container {
        font-size: 90%;
    }
}

@media screen and (max-width: 896px) {
    #tax-accountant > .h2__container {
        padding-left: 8%;
    }
    #tax-accountant > .contents {
        flex-direction: column-reverse;
        margin-top: 8%;
        margin-bottom: 80px;
        padding: 0 10%;
    }
    #tax-accountant > .contents::before {
        top: 0;
        right: auto;
        left: 5%;
        transform: translateX(0);
        width: 90%;
    }
    #tax-accountant > .contents .contents__inner-text {
        width: 100%;
        margin-bottom: 0;
    }
    #tax-accountant > .contents .contents__inner-text p.message {
        margin: 10% 0 0;
    }
    /*プロフィール・経歴*/
    #tax-accountant > .contents:last-of-type {
        flex-direction: column;
        margin-bottom: 10%;
    }
    .profile__container, .experience__container {
        width: 100%;
        margin-bottom: 80px;
        font-size: 100%;
    }
    .experience__container {
        margin-bottom: 0;
    }
}

@media screen and (max-width: 480px) {
    #tax-accountant {
        padding-top: 60px;
    }
    #tax-accountant > .contents,
    #tax-accountant > .contents:last-of-type {
        padding: 0 5%;
    }    
    #tax-accountant > .contents .contents__inner-img img.pc {
        display: none;
    }
    #tax-accountant > .contents .contents__inner-img img.sp {
        display: block;
    }
    .profile__container, .experience__container {
        margin-bottom: 50px;
    }
    .profile__container h3, .experience__container h3 {
        margin-bottom: 15px;
    }
    .profile__container dl dt, .experience__container dl dt {
        width: 34%;
        font-size: 85%;
        line-height: 1.6em;
        margin-bottom: 15px;
    }
    .profile__container dl dd, .experience__container dl dd {
        width: 66%;
        font-size: 85%;
        line-height: 1.6em;
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 370px) {
    #tax-accountant > .h2__container p {
        font-size: 13px;
    }
    .profile__container dl dt, .experience__container dl dt {
        width: 100%;
        font-size: 100%;
        margin-bottom: 0;
    }
    .profile__container dl dd, .experience__container dl dd {
        width: 100%;
        padding-left: 1em;
        font-size: 100%;
    }
}

/* 会社概要　COMPANY OVERVIEW
=======================================================*/
#company-overview {
    padding-top: 100px;
    padding-bottom: 15%;
}

#company-overview > .h2__container {
    position: relative;
    width: 45%;
    padding-top: 5%;
    padding-bottom: 10%;
    padding-left: 12%;
    color: var(--color_1);
    z-index: 0;
}

#company-overview > .h2__container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    width: 0;
    height: 100%;
    background-color: var(--color_2);
    z-index: -1;
}

#company-overview.scroll-active > .h2__container::before {
    width: 100%;
    transition: 0.7s;
    transition-delay: 1s;
    transition-timing-function: ease-out;
}

#company-overview > .h2__container h2 {
    /*font-size: 40px;*/
    font-size: clamp(30px, 2.77vw, 56px);
}

#company-overview > .h2__container > p,
#company-overview > .h2__container > h2 {
    opacity: 0;
}

#company-overview.scroll-active > .h2__container > p,
#company-overview.scroll-active > .h2__container > h2 {
    opacity: 1;
    transition: 1s;
    transition-delay: 1.8s;
}

#company-overview > .contents {
    width: 76%;
    margin: -6% auto 0;
    padding: 8% 10%;
    background-color: var(--color_1);
    opacity: 0;
    transform: translateY(10px);
    z-index: 1;
}
#company-overview.scroll-active > .contents {
    opacity: 1;
    transform: translateY(0);
    transition: 0.8s;
    transition-delay: 2.8s;
}


#company-overview > .contents dl {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

#company-overview > .contents dl dt {
    width: 30%;
    padding: 1.4em 5px 1.4em 2em;
    background-color: var(--color_3);
    border-bottom: var(--color_2) 0.04vw solid;
}

#company-overview > .contents dl dd {
    width: 70%;
    padding: 1.4em 5px 1.4em 3em;
    background-color: var(--color_1);
    border-bottom: var(--color_2) 0.04vw solid;
}
#company-overview > .contents dl dd br {
    display: none;
}

@media screen and (min-width: 1920px) {
    #company-overview > .contents {
        padding: 5% 10%;
    }
}

@media screen and (max-width: 1024px) {
    #company-overview > .h2__container {
        width: 45%;
        max-width: 500px;
        min-width: 400px;
        padding-right: 5%;
    }
    #company-overview > .h2__container p {
        line-height: 1.6em;
    }
    #company-overview > .contents {
        width: 80%;
    }
}

@media screen and (max-width: 896px) {
    #company-overview > .h2__container {
        padding-left: 8%;
    }
    #company-overview > .contents {
        padding: 8% 5%;
    }
    #company-overview > .contents dl {
        display: block;
    }
    #company-overview > .contents dl dt {
        width: 100%;
        padding: 0.5em 0.5em;
        border-bottom: none;
    }
    #company-overview > .contents dl dd {
        width: 100%;
        padding: 1.4em 1em;
        border-bottom: none;
    }
}
@media screen and (max-width: 480px) {
    #company-overview {
        padding-top: 60px;
    }
    #company-overview > .contents {
        width: 90%;
        padding: 8% 2.5%;
    }
    #company-overview > .contents dl dd br {
        display: block;
    }
}
@media screen and (max-width: 330px) {
    #company-overview > .contents dl dd {
        padding: 1.4em 0.5em;
    }
}
