@charset "utf-8";

/******************
aboutpage
******************/

.main img {
    display: block;
    width: 100%;
}

.bg {
    background: #fafafa;
}

.heading {
    /* background: #e8decb; */
    background: url(../../images/common/bg01.png);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    margin-top: -6.5%;
    padding: 60px 0 100px;
    position: relative;
    z-index: 2;
}

.heading .heading_img {
    display: block;
    margin: auto;
}

.title {
    font-size: 29px;
    font-family: fot-tsukubrdgothic-std, sans-serif;
    font-weight: 700;
    text-align: left;
    border-bottom: 1px dotted #004077;
}

.sec {
    max-width: 910px;
    padding: 0 15px;
    margin: 0 auto;
    color: #004077;
}

.mt70 {
    margin-top: 70px;
}

@media print,
screen and (max-width: 767px) {
    .heading {
        padding: 10% 0 10%;
    }
	.heading .heading_img {
    width: 54%;
    max-height: 90px;
    }
    .title {
        font-size: 24px;
    }
    .mt70 {
        margin-top: 10%;
    }
}


/*
heading (新デザイン: アイコン＋テキスト版)
*/

.heading_new {
    display: flex;
    justify-content: center;
    padding: 60px 0 50px;
}

.heading_inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.heading_icon {
    display: block;
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
}

.heading_title {
    font-family: fot-tsukubrdgothic-std, sans-serif;
    font-weight: 700;
    color: #004077;
    font-size: 28px;
    letter-spacing: 0.18em;
    text-align: center;
}

.heading_sub {
    font-family: fot-tsukubrdgothic-std, sans-serif;
    font-weight: 700;
    color: #004077;
    font-size: 16px;
    text-align: center;
}

@media print, screen and (max-width: 767px) {
    .heading_new {
        padding: 8% 0 8%;
    }
    .heading_title {
        font-size: 22px;
    }
}

/*
sec01 (税理士/公認会計士/社会保険労務士・訪問スタッフ 共通カードグリッド)
*/

.wrap_sec {
    max-width: 928px;
    margin: 0 auto;
    padding-bottom: 64px;
}

.staff_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 24px;
    margin-top: 40px;
    /* margin-bottom: 64px; */
}

.staff_card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.staff_card .photo {
    position: relative;
    width: 100%;
    aspect-ratio: 279 / 229;
    border-radius: 8px;
    overflow: hidden;
    background: #bebebe;
}

.staff_card .photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.staff_card .photo::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 45%, #444 100%);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.staff_card .badges {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.staff_card .badge {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.staff_card .badge .label {
    display: inline-block;
    padding: 2px 6px 0px 6px;
    border-radius: 2px;
    color: #fff;
    font-family: fot-tsukubrdgothic-std, sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.75;
    white-space: nowrap;
}

.staff_card .badge .regnum {
    color: #fff;
    font-family: fot-tsukubrdgothic-std, sans-serif;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.75;
    white-space: nowrap;
}

.badge-zeirishi .label { background: #407cb0; }
.badge-kaikeishi .label { background: #2f8a7a; }
.badge-gyoseishi .label { background: #924779; }
.badge-syaroushi .label { background: #ac9f31; }
.badge-iryocons .label { background: #649d47; }

.staff_card .profile {
    width: 100%;
    display: flex;
    flex-direction: column;
    /* gap: 16px; */
}

.staff_card .role {
    font-size: 14px;
    color: #004077;
    /* margin-bottom: 10px; */
    line-height: 1;
}

.staff_card .name_row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.staff_card .name {
    font-size: 23px;
    color: #004077;
}

.staff_card .name_en {
    font-size: 14px;
    color: #006caa;
}

.staff_card dl {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
    margin-bottom: 16px;
}

.staff_card dl div {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.staff_card dl dt {
    flex: none;
    width: 80px;
    padding-left: 8px;
    border-left: 2px solid #006caa;
    font-size: 14px;
    line-height: 1.5;
    color: #006caa;
}

.staff_card dl dd {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #004077;
}

.staff_card .handwrite {
    width: 100%;
    margin-bottom: 16px;
}

.staff_card .handwrite img {
    display: block;
    width: 100%;
}

.staff_card .comment {
    font-size: 14px;
    color: #004077;
    line-height: 1.9;
}

@media print, screen and (max-width: 1024px) {
    .staff_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media print, screen and (max-width: 767px) {
    .staff_grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}