/*******************
TOP共通スタイル
*******************/
.top-section{
    padding-top: 170px;
    padding-bottom: 180px;
}

.top-section__title{
    font-family: "Shippori Mincho", serif;
    font-style: normal;
    font-size: 40px;
    font-weight: bold;
    letter-spacing: 0.03em;
    line-height: 1.35;
    text-align: center;
    padding-bottom: 0.6em;
    position: relative;
}

.top-section__title--white{
    color: #fff;
}

.top-section__title::before{
    content: "";
    display: inline-block;
    background-color: var(--text-red);
    width: 60px;
    height: 2px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.top-section__title--white::before{
    background-color: #fff;
}

.top-section__title--no-line::before{
    content: none;
}

.top-section__content{
    margin-top: 80px;
}

@media screen and (max-width: 1249px){
    .top-section {
        padding-top: max(100px, 13.6vw);
        padding-bottom: max(100px, 14.4vw);
    }

    .top-section__content {
        margin-top: max(60px, 8vw);
    }

    .top-section__title {
        font-size: clamp(26px, 3.2vw, 40px);
    }
}

@media screen and (max-width: 767px){
    .top-section__title {
        font-size: clamp(24px, 3.645vw, 28px);
    }
}

/*******************
fv
*******************/
.fv{
    background-image: url(../images/top/fv_pc.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
    aspect-ratio: 1920/1080;
    position: relative;
}

.fv__inner{
    width: 100%;
    height: 100%;
    padding-left: 5.2vw;
    padding-right: 5.2vw;
}

.fv__catch{
    font-weight: bold;
    line-height: 1;
    text-align: center;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
}

.fv__catch span{
    display: block;
}

.fv__catch span:nth-of-type(1){
    font-size: 28px;
    letter-spacing: 0.03em;
    line-height: 1.4;
}

.fv__catch span:nth-of-type(2){
    color: var(--header-fv-blue);
    font-size: 100px;
    white-space: nowrap;
}

.fv__catch span:nth-of-type(3){
    color: var(--header-fv-blue);
    font-size: 44px;
    margin-top: 0.1em;
    margin-right: 1em;
}

.fv__catch span:nth-of-type(4) {
    background-color: var(--dark-red);
    color: #fff;
    font-size: 60px;
    margin-top: 0.2em;
    padding: 0.08em 0 0.2em;
    clip-path: polygon(0.5em 0%, 100% 0%, calc(100% - 0.5em) 100%, 0% 100%);
}

.fv__catch-blue{
    color: var(--blue);
}

@media screen and (min-width: 1921px){
    .fv{
        height: 1080px;
        aspect-ratio: auto;
    }
}

@media (min-width: 768px) and (max-width: 1499px) {
    .fv__catch span:nth-of-type(1) {
        font-size: max(18px, 1.75vw);
    }

    .fv__catch span:nth-of-type(2) {
        font-size: max(60px, 6.25vw);
    }

    .fv__catch span:nth-of-type(3) {
        color: var(--header-fv-blue);
        font-size: max(30px, 2.94vw);
    }

    .fv__catch span:nth-of-type(4) {
        font-size: max(32px, 3.75vw);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .fv {
        background-position: center;
        height: 575px;
        aspect-ratio: auto;
    }
}

@media screen and (max-width: 1023px){
    .fv__catch span:nth-of-type(2) {
        white-space: normal;
    }
}

@media screen and (max-width: 767px){
    .fv {
        background-image: url(../images/top/fv_sp.jpg);
        aspect-ratio: 120/149;
    }

    .fv__catch {
        top: 26%;
    }

    .fv__catch span:nth-of-type(1) {
        font-size: min(4.3vw, 28px);
        white-space: nowrap;
    }

    .fv__catch span:nth-of-type(2) {
        white-space: nowrap;
        font-size: min(12.5vw, 63px);
    }

    .fv__catch span:nth-of-type(3) {
        margin-top: 0.2em;
        margin-right: 0.7em;
        font-size: min(6.66vw, 44px);
    }

    .fv__catch span:nth-of-type(4) {
        margin-top: 0.1em;
        font-size: min(6.33vw, 60px);
    }
}

/*******************
top-support
*******************/
.top-support{
    padding-bottom: 0;
}

.top-support__content{
    padding-bottom: 65px;
    position: relative;
}

/* .top-support__content .inner{
    display: contents;
} */

.top-support__items {
    display: flex;
    flex-direction: column;
    gap: 100px;
    align-items: center;
}
/*
.top-support__item{
    border-top: 3px solid var(--navy);
    border-left: 3px solid var(--navy);
    border-bottom: 3px solid var(--dark-red);
    border-right: 3px solid var(--dark-red);
    padding: 60px 80px;
}
*/
.top-support__item {
    min-width: auto;
    margin: 0;
    display: flex;
    background-color: #f6f6f6;
    width: 100%;
}
.top-support__item:nth-child(2){
    flex-direction: row-reverse;
}

.top-support__item-img{
    /*ax-width: 343px;
    flex-basis: 31%;*/
    width: 343px;
}
.top-support__item-content{
    /*max-width: 757px;
    flex-basis: 69%;*/
    width: calc(100% - 343px);
    /*padding: 60px 0;*/
    display: flex;
    align-items: center;
}
.top-support__item-content-inner{
    max-width: 640px;
    width: 86%;
    margin: 0 auto;
}
.top-support__item-info{
    font-family: "Shippori Mincho", serif;
    font-size: 14px;
    color: #0a1e4b;
    font-weight: bold;
    border-left: 2px solid #0a1e4b;
    line-height: 1.2;
    padding-left: 10px;
    margin-bottom: 15px;
}


.top-support__item-title{
    color: var(--navy);
    font-family: "Shippori Mincho", serif;
    font-style: normal;
    font-weight: bold;
    font-size: 38px;
    letter-spacing: 0.03em;
    line-height: 1;
    text-indent: -0.1em;
}

.top-support__item-title span{
    font-size: 1.184em;
}

.top-support__item-text{
    font-size: 18px;
    letter-spacing: 0.04em;
    text-align: justify;
    margin-top: 36px;
}

.top-support__item-link{
    /* margin-top: 57px; */
    margin-top: 60px;
}

.top-support__item-link .link-btn{
    letter-spacing: 0.14em;
    width: 100%;
    font-size: 20px;
    padding: 0.8em 1.2em 0.8em;
}
.top-support__item-link .link-btn::after{
    right: 1.5em;
    top: 42%;
}

.top-support .swiper-button-prev{
    transform: translateX(-50%);
    left: calc(50% - 590px);
}

.top-support .swiper-button-next{
    transform: translateX(-50%);
    right: calc(50% - 625px);
}

.swiper-pagination-bullet{
    background-color: #ccc;
    border-radius: 0;
    width: 15px;
    height: 15px;
    margin: 0 12px !important;
    opacity: 1;
}

.swiper-pagination-bullet-active{
    background-color: var(--navy);
}

.swiper-button-next:after,
.swiper-button-prev:after{
    color: var(--navy);
    font-size: 52px;
}

.swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction {
    bottom: 1px;
}

.top-support__item-img-sp{
    display: none;
}
@media screen and (max-width: 1249px){
    .top-support .swiper-button-prev {
        left: calc(14px + 80px);
    }

    .top-support .swiper-button-next {
        right: calc(-14px + 80px);
    }

    .top-support__item-link .link-btn {
        font-size: max(18px, 1.92vw);
    }
}

@media (min-width: 768px) and (max-width: 1499px) {
    /* .top-support__item {
        max-width: 66vw;
        margin: 0 5.8vw;
        padding: 6.6vw;
        height: auto;
    } */

    .top-support__item-title {
        font-size: max(30px,3.04vw);
    }

    .top-support__item-text {
        /* font-size: max(16px,1.44vw); */
        /* margin-top: max(26px, 3vw); */
    }
}

@media screen and (max-width: 1023px){
    .top-support .swiper-button-next {
        right: calc(-14px + 9vw);
    }

    .top-support .swiper-button-prev {
        left: calc(-14px + 11.5vw);
    }

    /* .top-support__item {
        min-width: 550px;
        margin: 0 5.8vw;
        padding: 8.1vw 6.6vw;
        margin: 0 40px;
    } */

    .top-support .swiper-button-prev {
        left: calc(-14px + 13.5vw);
    }

    .top-support .swiper-button-next {
        right: calc(-14px + 11vw);
    }

    .top-support__item-link .link-btn {
        font-size: 16px;
    }
    .top-support__item-link .link-btn::before{
        right: 15px;
    }

    .top-support__item-img {
        width: 243px;
        overflow: hidden;
    }
    .top-support__item-img img{
        max-width: none;
        width: 343px;
        margin-left: -80px;
    }
    .top-support__item-content{
        width: calc(100% - 243px);
    }
    .top-support__item-link{
        margin-top: 30px;
    }
}

@media screen and (max-width: 849px){
    .top-support .swiper-button-next {
        right: calc(50% - 340px);
    }

    .top-support .swiper-button-prev {
        left: calc(50% - 320px);
    }
    .top-support__item-img img{
        width: 373px;
        margin-left: -95px;
    }
}

@media screen and (max-width: 767px){
    .top-support__content {
        padding-bottom: 0;
    }

    .top-support__content .inner{
        display: block;
    }

    /* .swiper-button-next, .swiper-button-prev{
        display: none;
    }

    .swiper-pagination {
        display: none;
    } */

    /* .top-support__items {
        flex-direction: column;
        gap: 60px;
    }

    .top-support__item {
        min-width: auto;
        margin: 0;
    } */

    .top-support__item {
        padding: 40px 30px;
        display: block;
    }
    .top-support__item-img{
        width: 100%;
    }
    .top-support__item-img img{
        width: 100%;
        margin-left: 0;
    }

    .top-support__item-content{
        width: 100%;
        margin-top: 30px;
    }
    .top-support__item-content-inner{
        max-width: none;
        width: 100%;
    }

    .top-support__item-title {
        font-size: 30px;
    }

    .top-support__item-text {
        font-size: 16px;
    }

    .top-support__item-img-pc{
        display: none;
    }
    .top-support__item-img-sp{
        display: block;
    }

    .top-support__item-link .link-btn{
        font-size: max(16px,1.92vw);
        letter-spacing: 0.14em;
        line-height: 1.3;
        text-align: center;
        padding: 1.15em 1.2em 1.2em;
        width: 700px;
        max-width: 100%;
    }
}

@media screen and (max-width: 599px){
    .top-support__items {
        gap: 40px;
    }

    .top-support__item-title {
        font-size: 26px;
    }

    .top-support__item-text {
        font-size: 15px;
        margin-top: 26px;
    }

    .top-support__item-link .link-btn {
        /*font-size: 14px;
        padding: 0.8em 3em 0.8em;*/
        padding: 1.15em 2em 1.2em 2em;
    }
}

@media screen and (max-width: 399px){
    .top-support__item-title {
        font-size: 22px;
    }
}


/*******************
top-reason
*******************/
.top-reason__content{
    margin-top: 80px;
}

.top-reason__items > *+*{
    margin-top: 140px;
}

/* .top-reason__items{
    font-size: 18px;
    line-height: 2;
} */

.top-reason__item{
    display: flex;
    flex-direction: column-reverse;
}

.top-reason__item-body{
    margin-top: 55px;
}

.top-reason__item-title{
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 0.04em;
    line-height: 1.4;
    padding-bottom: 0.5em;
    position: relative;
}

.top-reason__item-title::before{
    content: "";
    display: block;
    background-color: var(--navy);
    height: 2px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

.top-reason__item-title span{
    color: var(--text-red);
}

.top-reason__item-text{
    font-size: 18px;
    line-height: 2;
    margin-top: 45px;
    text-align: justify;
}

.top-reason__item-text > *+*{
    margin-top: 2em;
}

.top-reason__item-text p span{
    font-weight: bold;
}

.top-reason__link{
    margin-top: 75px;
    text-align: center;
}

@media screen and (max-width: 1249px){
    .top-reason__content {
        margin-top: max(60px, 8vw);
    }

    .top-reason__item-title {
        font-size: clamp(22px, 2.88vw, 36px);
    }

    .top-reason__item-body {
        margin-top: max(20px, 4.4vw);
    }

    .top-reason__items > *+* {
        margin-top: max(60px, 11.2vw);
    }

    .top-reason__item-text {
        margin-top: max(20px, 3.6vw);
    }
}

@media screen and (max-width: 767px){
    .top-reason__item-text{
        font-size: 16px;
    }

    .top-reason__link {
        margin-top: 50px;
    }
}

@media screen and (max-width: 599px){
    .top-reason__item-img img{
        min-height: 160px;
        height: 100%;
        object-fit: cover;
    }
}

/*******************
top-case
*******************/
.top-case{
    background-image: url(../images/top/top-case-bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.top-case__text{
    font-size: 18px;
    font-weight: 500;
    text-align: justify;
    margin-top: 80px;
}

.top-case__content{
    /*background-color: #fff;*/
    /*padding: 90px 0;*/
    margin-top: 80px;
}

.top-case__content-body{
    width: 100%;
    max-width: 800px;
    /*padding-left: 25px;
    padding-right: 25px;*/
    margin-inline: auto;
}

.top-case__sub-title{
    font-family: "Shippori Mincho", serif;
    color: var(--navy);
    font-size: 32px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    position: relative;
    border-top: 2px solid var(--navy);
    border-bottom: 2px solid var(--navy);
    padding: 15px 0;
}

/*.top-case__sub-title::before{
    content: "";
    display: block;
    background-color: var(--navy);
    height: 2px;
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    z-index: 0;
}

.top-case__sub-title span{
    display: inline-block;
    background-color: #fff;
    padding: 0 1em;
    position: relative;
    z-index: 1;
}*/

.top-case__items{
    margin-top: 45px;
}

.top-case__item{
    background-color: #fff;
    /*border-bottom: 1px solid #000;*/
    border-left: 2px solid #9a0000;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.777;
    text-align: justify;
    padding: 25px 30px 25px 35px;
    position: relative;
}
.top-case__item + .top-case__item{
    margin-top: 10px;
}


/*.top-case__item::before{
    content: "";
    display: inline-block;
    background-color: var(--text-red);
    width: 6px;
    height: 6px;
    position: absolute;
    left: 0.4em;
    top: 1.9em;
}*/

@media screen and (max-width: 1194px){
    .top-case__sub-title {
        font-size: clamp(22px, 2.677vw, 32px);
    }
}

@media screen and (max-width: 767px){
    .top-case__text {
        font-size: 16px;
        margin-top: 60px;
    }

    .top-case__item {
        font-size: 16px;
        padding: 15px 20px 15px 25px;
    }

    .top-case__content {
        /*padding: 60px 0;*/
        margin-top: 60px;
    }

    .top-case__items {
        margin-top: 30px;
    }
}

/*******************
top-lawyer
*******************/
.top-lawyer{
    overflow-x: hidden;
}
.top-lawyer__items{
    display: flex;
    flex-wrap: wrap;
    gap: 39px 36px;
}

.top-lawyer__item{
    display: flex;
    align-items: flex-end;
    background-color: #f8f8f8;
}

.top-lawyer__item:first-of-type{
    flex-basis: 100%;
}

.top-lawyer__item:nth-of-type(n+2){
    flex-basis: calc((100% - 36px) / 2);
}

.top-lawyer__item:first-of-type .top-lawyer__item-img{
    /* width: 360px; */
    width: 30%;
}

.top-lawyer__item:nth-of-type(n+2) .top-lawyer__item-img{
    /* width: 266px; */
    flex-basis: 45.7%;
}

.top-lawyer__item-body{
    flex: 1;
    padding: 50px 45px 50px 2px;
}

.top-lawyer__item:first-of-type .top-lawyer__item-body{
    width: 70%;
}

.top-lawyer__item:nth-of-type(n+2) .top-lawyer__item-body{
    width: 54.3%;
}

.top-lawyer__item:nth-of-type(n+2)
.top-lawyer__item-body{
    padding-top: 55px;
}

.top-lawyer__item-affiliation{
    display: block;
    font-size: 14px;
    letter-spacing: 0.07em;
    line-height: 1.4285;
    width: fit-content;
}

.top-lawyer__item:first-of-type .top-lawyer__item-affiliation {
    background-color: #101648;
    color: #fff;
    padding: 0.5em 2.1em 0.6em 1.2em;
    clip-path: polygon(0 0, 100% 0%, calc(100% - 20px) 100%, 0% 100%);
}

.top-lawyer__item-name{
    display: block;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 0.03em;
    line-height: 1.4;
    /* margin-top: 0.4em; */
    margin-top: 0.6em;
}

.top-lawyer__item:first-of-type 
.top-lawyer__item-name{
    font-size: 30px;
    letter-spacing: 0.04em;
    margin-top: 0.7em;
}

.top-lawyer__item-name span{
    color: #7b7b7b;
    font-size: 16px;
    padding-left: 0.9em;
}

.top-lawyer__item-field{
    margin-top: 10px;
}

.top-lawyer__item-field dt{
    /*color: var(--navy);*/
    font-size: 16px;
    color: #23386f;
    font-weight: 500;
    /* margin-top: 0.8em; */
}

.top-lawyer__item-field dd{
    border-top: 1px solid #000;
    font-size: 14px;
    line-height: 1.714;
    margin-top: 0.1em;
    padding-top: 0.7em;
    letter-spacing: 0.04em;
    text-align: justify;
}

.top-lawyer__item-link{
    margin-top: 10px;
    text-align: right;
}

.top-lawyer__item:nth-of-type(n+2)
.top-lawyer__item-link{
    margin-top: 57px;
}

.lawyer__link{
    margin-top: 90px;
    text-align: center;
}

@media (min-width: 768px) and (max-width: 1249px) {
    .top-lawyer__items {
        gap: 3.12vw 2.88vw;
    }

    .top-lawyer__item:nth-of-type(n+2) {
        flex-basis: calc((100% - 2.88vw) / 2);
    }

    .top-lawyer__item-name {
        font-size: max(16px, 1.6vw);
    }

    .top-lawyer__item-name span {
        font-size: 14px;
    }

    .top-lawyer__item-body {
        padding: 4vw 4vw 5vw 0 !important;
    }

    .top-lawyer__item:first-of-type 
    .top-lawyer__item-name {
        font-size: max(20px, 2.4vw);
    }

    .top-lawyer__item:nth-of-type(n+2)
    .top-lawyer__item-link {
        margin-top: max(20px, 4.4vw);
    }
}

@media screen and (max-width: 1023px){
    .top-lawyer__item-body {
        padding: 3vw 3vw 3vw 0 !important;
    }

    .top-lawyer__item-affiliation {
        font-size: 12px;
    }

    .top-lawyer__item-field dt {
        font-size: 15px;
    }

    .top-lawyer__item-field dd {
        font-size: 13px;
    }
}

@media screen and (max-width: 767px){
    .top-lawyer__item:first-of-type {
        padding: 30px;
    }

    .top-lawyer__item:nth-of-type(n+2) {
        flex-basis: 100%;
    }

    .top-lawyer__item {
        flex-wrap: wrap;
        align-items: center;
    }

    .top-lawyer__item:first-of-type .top-lawyer__item-body {
        padding:  20px 0 0 !important;
    }

    .top-lawyer__item:first-of-type .top-lawyer__item-img {
        width: 100%;
    }

    .top-lawyer__item:first-of-type .top-lawyer__item-img img{
        width: 50%;
        margin-inline: auto;
        min-width: 200px;
    }

    .top-lawyer__item:nth-of-type(n+2) .top-lawyer__item-img img{
        padding-right: 20px;
    }

    .top-lawyer__item:first-of-type 
    .top-lawyer__item-name {
        font-size: 28px;
    }

    .top-lawyer__item-link {
        margin-top: 30px;
        /* text-align: center; */
    }

    .top-lawyer__item-affiliation {
        font-size: 14px;
    }

    .lawyer__link {
        margin-top: 50px;
    }
}

@media screen and (max-width: 599px){
    .top-lawyer__item:first-of-type .top-lawyer__item-affiliation {
        width: 100%;
        clip-path: none;
        padding: 0.5em 0.5em 0.6em;
        text-align: center;
    }

    .top-lawyer__item:first-of-type 
    .top-lawyer__item-name {
        font-size: 26px;
        text-align: center;
    }

    .top-lawyer__item-field dt {
        font-size: 15px;
        text-align: center;
        margin-top: 20px;
    }

    .top-lawyer__item:nth-of-type(n+2)
    .top-lawyer__item-link {
        margin-top: 30px;
    }

    .top-lawyer__item-affiliation {
        font-size: 13px;
    }

    .top-lawyer__item-name {
        font-size: 20px;
    }
}

@media screen and (max-width: 499px){
    .top-lawyer__items {
        gap: 30px;
    }

    .top-lawyer__item:nth-of-type(n+2) {
        flex-direction: column;
    }

    .top-lawyer__item:nth-of-type(n+2) .top-lawyer__item-img img {
        padding-right: 0;
    }

    .top-lawyer__item-affiliation {
        width: 100%;
    }

    .top-lawyer__item:nth-of-type(n+2)
    .top-lawyer__item-body {
        width: 100%;
        padding: 20px 0 0 !important;
        text-align: center;
    }

    .top-lawyer__item:nth-of-type(n+2) {
        padding: 0 30px 30px;
    }

    .top-lawyer__item:nth-of-type(n+2) .top-lawyer__item-img img {
        width: 50%;
        margin-inline: auto;
        min-width: 200px;
    }

    .top-lawyer__item-name span {
        padding-left: 0;
        display: block;
    }

    .top-lawyer__item-link {
        text-align: center;
    }
}
    
/*******************
top-office
*******************/
.top-office{
    background-color: var(--navy);
}

.top-office__items{
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.top-office__item{
    background-color: #fff;
}
.top-office__item a{
    position: relative;
}
.top-office__item:first-of-type{
    flex-basis: 100%;
    display: flex;
    margin-bottom: 2px;
}

.top-office__item:nth-of-type(n+2){
    /*flex-basis: calc((100% - (12px*3)) / 4);*/
    flex-basis: calc((100% - (20px*2)) / 3)
}

.top-office__item:first-of-type .top-office__item-img{
    flex-basis: 49.5%;
}

.top-office__item-img img{
    height: 100%;
    object-fit: cover;
    display: none;
}
.top-office__item:first-of-type .top-office__item-img img{
    display: block;
}
.top-office__item:first-of-type .top-office__item-img .top-office__item-img-sp{
    display: none;
}

.top-office__item:first-of-type .top-office__item-body{
    flex-basis: 50.5%;
    padding: 26px 0 30px 40px;
}

.top-office__item-body-detail{
    padding-right: 30px;
}

.top-office__item-body-name{
    border-bottom: 2px solid var(--navy);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 1.4;
    padding-bottom: 0.8em;
}

.top-office__item-address{
    font-size: 20px;
    font-weight: 500;
    font-style: normal;
    letter-spacing: -0.02em;
    line-height: 1.35;
    margin-top: 20px;
}

.top-office__item-tel{
    display: flex;
    font-size: 18px;
    font-weight: 500;
    align-items: center;
    line-height: 1.4;
    margin-top: 0.6em;
}

.top-office__item-tel-text{
    display: inline-block;
    background-color: var(--navy);
    color: #fff;
    padding: 0 0.65em;
}

.top-office__item-tel-num{
    padding-left: 0.5em;
    letter-spacing: 0.03em;
    position: relative;
    top: -0.1em;
}

.top-office__item-link{
    margin-top: 20px;
    text-align: right;
}

.top-office__item-name{
    font-weight: bold;
    width: 100%;
    height: 89px;
    line-height: 1;
    letter-spacing: 0.03em;
    text-align: center;
    position: relative;
    font-size: 18px;
    /*position: absolute;
    top:0;
    left: 0;*/
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(../images/top/top-office-tokyo.jpg);
    background-position: center left;
    background-repeat: no-repeat;
    background-size: cover;
}


.top-office__item:nth-child(3) .top-office__item-name{
    background-image: url(../images/top/top-office-sapporo.jpg);
}
.top-office__item:nth-child(4) .top-office__item-name{
    background-image: url(../images/top/top-office-utsunomiya.jpg);
}
.top-office__item:nth-child(5) .top-office__item-name{
    background-image: url(../images/top/top-office-saitama.jpg);
}
.top-office__item:nth-child(6) .top-office__item-name{
    background-image: url(../images/top/top-office-chiba.jpg);
}
.top-office__item:nth-child(7) .top-office__item-name{
    background-image: url(../images/top/top-office-yokohama.jpg);
}
.top-office__item:nth-child(8) .top-office__item-name{
    background-image: url(../images/top/top-office-nagoya.jpg);
}
.top-office__item:nth-child(9) .top-office__item-name{
    background-image: url(../images/top/top-office-osaka.jpg);
}
.top-office__item:nth-child(10) .top-office__item-name{
    background-image: url(../images/top/top-office-kobe.jpg);
}
.top-office__item:nth-child(11) .top-office__item-name{
    background-image: url(../images/top/top-office-himeji.jpg);
}
.top-office__item:nth-child(12) .top-office__item-name{
    background-image: url(../images/top/top-office-hiroshima.jpg);
}
.top-office__item:nth-child(13) .top-office__item-name{
    background-image: url(../images/top/top-office-fukuoka.jpg);
}
.top-office__item-name::before {
    content: '';
    width: 8px;
    height: 8px;
    border-top: solid 1px var(--text-red);
    border-right: solid 1px var(--text-red);
    position: absolute;
    right: 20px;
    top: 47%;
    transform: rotate(45deg) translateY(-50%);
}

.top-office__link{
    margin: 85px auto 0;
    text-align: center;
}

.top-office__link a{
    width: 100%;
    max-width: 700px;
}

@media (min-width: 768px) and (max-width: 1049px) {
    .top-office__item-body-name {
        font-size: max(16px, 2.28vw);
    }

    .top-office__item:first-of-type .top-office__item-body {
        padding: 2.47vw 0 2.85vw 3.8vw;
    }

    .top-office__item-address {
        font-size: max(15px, 2.095vw);
        margin-top: max(15px, 2.095vw);
    }

    .top-office__item-img img{
        min-height: 90px;
    }
}

@media screen and (max-width: 1049px){
    .top-office__link {
        margin-top: max(50px, 8.5vw);
    }
}

@media screen and (max-width: 799px){
    .top-office__item:nth-of-type(n+2) {
        /*flex-basis: calc((100% - (12px*2)) / 3);*/
        flex-basis: calc((100% - (20px*1)) / 2);
    }
}

@media screen and (max-width: 767px){
    .top-office__item-body-name {
        font-size: 20px;
    }

    .top-office__item:first-of-type .top-office__item-body {
        padding: 24px 0 26px 30px;
    }

    .top-office__item-address {
        font-size: 14px;
        margin-top: 14px;
    }

    .top-office__item-tel {
        font-size: 16px;
    }

    .top-office__item-name {
        font-size: 16px;
        /*height: 50px;
        line-height: 50px;*/
    }

    .top-office__item-img img{
        min-height: 90px;
    }

    .top-office__link a::before{
        right: 6em;
    }

    .top-office__link a::after{
        right: 5.9em;
    }
}

@media screen and (max-width: 599px){
    /*.top-office__item:nth-of-type(n+2) {
        flex-basis: calc((100% - (12px*1)) / 2);
    }*/

    .top-office__item:first-of-type {
        flex-direction: column;
    }

    .top-office__item-img img {
        max-height: 220px;
    }

    .top-office__item-link {
        text-align: center;
    }

    .top-office__link a::before{
        right: 22px;
    }

    .top-office__link a::after{
        right: 20px;
    }

    .top-office__item:first-of-type .top-office__item-img .top-office__item-img-pc{
        display: none;
    }
    .top-office__item:first-of-type .top-office__item-img .top-office__item-img-sp{
        display: block;
    }
}
@media screen and (max-width: 499px){
    .top-office__item:nth-of-type(n+2) {
        flex-basis: 100%;
    }
}
@media screen and (max-width: 399px){
    .top-office__item:first-of-type {
        margin-bottom: 0;
    }

    .top-office__item:nth-of-type(n+2) {
        flex-basis: 100%;
    }
}

/*******************
top-newsletter
*******************/
.top-newsletter{
    background-image: url(../images/top/top-newsletter-bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

.top-newsletter__content{
    margin-top: 80px;
}

.top-newsletter__items > *+*{
    margin-top: 24px;
}

.top-newsletter__item{
    background-color: #fff;
    padding: 0 64px 24px 0;
    position: relative;
}

.top-newsletter__item::before{
    content: "";
    display: inline-block;
    background-color: var(--navy);
    width: 40px;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
}

.top-newsletter__item::after {
    content: '';
    width: 12px;
    height: 12px;
    border-top: solid 1px #fff;
    border-right: solid 1px #fff;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: rotate(45deg) translateY(-50%);
    z-index: 2;
}

.top-newsletter__item-heading{
    display: flex;
    align-items: center;
    letter-spacing: 0.03em;
}

.top-newsletter__item-body{
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.03em;
    line-height: 1.777;
    text-align: justify;
    padding-left: 24px;
    margin-top: 20px;
}

.top-newsletter__item{
    display: block;
}

.top-newsletter__item:hover,.top-newsletter__item:focus{
    cursor: pointer;
}

.top-newsletter__item-vol {
    font-family: "Shippori Mincho", serif;
    display: inline-block;
    background-color: var(--text-red);
    clip-path: polygon(0 0, 100% 0%, calc(100% - 30px) 100%, 0% 100%);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    height: 40px;
    line-height: 40px;
    padding: 0 3em 0 1.8em;
}

.top-newsletter__item-heading time{
    display: inline-block;
    color: var(--navy);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    padding-left: 0.6em;
    padding-top: 0.3em;
}

.top-newsletter__link{
    margin-top: 90px;
    text-align: center;
}


@media screen and (max-width: 1049px){
    .top-newsletter__content {
        margin-top: max(60px, 8vw);
    }

    .top-newsletter__link {
        margin-top: max(50px, 8.57vw);
    }
}

@media screen and (max-width: 1023px){
    .top-newsletter__item-vol {
        font-size: 16px;
        height: 36px;
        line-height: 36px;
    }

    .top-newsletter__item-heading time {
        font-size: 17px;
    }
}

@media screen and (max-width: 1023px){
    .top-newsletter__item-body {
        font-size: 16px;
    }
}

/*******************
top-column
*******************/
.top-column__content{
    margin-top: 80px;
}

.post__cards{
    display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	column-gap: 44px;
    place-content: center
}

.post__card {
    max-width: 400px;
}

.post__card a{
    display: block;
}

.post__card a:hover,.post__card a:focus{
    cursor: pointer;
}

.post__card-body{
    margin-top: 16px;
}

.post__card-time{
    font-size: 14px;
    line-height: 1;
}

.post__card-title{
    font-size: 20px;
    font-weight: bold;
    line-height: 1.8;
    text-align: justify;
    margin-top: 7px;
}

.post__card-tags{
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post__card-tag{
    background-color: #f1f1f1;
    border-radius: 13px;
    font-size: 14px;
    line-height: 1;
    padding: 0.1em 0.2em 0.13em 0.7em;
    position: relative;
}

.post__card-tag::before{
    content: "#";
    position: absolute;
    left: 0;
}

.top-column__link{
    margin-top: 90px;
    text-align: center;
}

.post__card-img img{
    border-radius: 5px;
    aspect-ratio: 370/200;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 1049px){
    .top-column__link {
        margin-top: max(50px, 8.09vw);
    }
}

@media screen and (max-width: 1023px){
    .top-column__content{
        margin-top: max(60px, 8vw);
    }
    .post__cards{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        column-gap: 30px;
    }

    .post__card-title {
        font-size: 18px;
    }
}

@media screen and (max-width: 767px){
    .post__cards {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }

    .post__card a{
        display: flex;
        gap: 30px;
        align-items: center;
    }

    .post__card-body {
        margin-top: 0;
    }
    
    .post__card-img,.post__card-body{
        flex-basis: calc((100% - 30px) / 2);
    }
}

@media screen and (max-width: 599px){
    .post__cards {
         justify-items: center;
    }
    .post__card a {
        display: block;
    }
}



/*札幌（事務所案内）*/


.sapporo .top-office__item-name::before {
display: none;
}

.sapporo .color {
	padding: 0 10px;
    color: #fff;
    background: #b33440;
	margin-top: 10px;
	font-size: 16px;
}

.sapporo p{
    line-height: 1.5;
    padding-top: 1em;
}
