/*
Theme Name: カブトプラテク
Author: grasp
Description: カブトプラテクのテーマ
Version: 1.0
*/
main {
    padding-bottom: 160px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 100px;
    }
}

#subTop-title .inner .left {
    width: 50%;
}

#subTop-title .inner .right {
    width: 50%;
    max-width: 582px;
}

#subTop-title .message {
    font-size: 3.6rem;
    line-height: 1.4;
    letter-spacing: 0.1em;
}

#subTop-title .desc {
    margin-top: 30px;
    line-height: 1.9;
}

@media (max-width: 768px) {
    #subTop-title .desc {
        line-height: 1.8;
    }

    #subTop-title .message {
        font-size: 2.2rem;
    }

    #subTop-title .inner .left {
        width: 40%;
    }

    #subTop-title .inner .right {
        width: 60%;
        max-width: 582px;
    }
}

#anchor {
    margin-bottom: 95px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    display: flex;
    justify-content: flex-start;
    transition: transform 1s ease;
    transform: translateX(0%);
}

.is-anchor-fixed #anchor {
    transform: translateX(-150%);
}

#anchor .inner {
    padding: 15px 100px 15px 60px;
    background-color: rgba(255, 255, 255, 0.85);
    width: auto;
    height: 60px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 60px) 100%, 0 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, calc(100% - 60px) 100%, 0 100%);
}

#anchor ul {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}

#anchor ul li .hover-gradient-text.hasIcon {
    font-size: 1.4rem;
}

#anchor ul li .hover-gradient-text.hasIcon .arrow {
    width: 30px;
    height: 30px;
}

@media (max-width: 768px) {
    #anchor {
        margin-bottom: 80px;
    }

    #anchor .inner {
        padding: 11px 50px 10px 10px;
        width: calc(100% - 20px);
        max-width: 352px;
        height: 88px;
        clip-path: polygon(0 0, 100% 0, calc(100% - 44px) 100%, 0 100%);
        -webkit-clip-path: polygon(0 0, 100% 0, calc(100% - 44px) 100%, 0 100%);
    }

    #anchor ul {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    #anchor ul li .hover-gradient-text.hasIcon {
        font-size: 1.3rem;
    }

    #anchor ul li .hover-gradient-text.hasIcon .arrow {
        width: 22px;
        height: 22px;
    }

    #anchor ul li .hover-gradient-text.hasIcon .arrow .icon {
        width: 9.3px;
    }
}

.mb15 {
    margin-bottom: 15px;
}

#message .whitePlate {
    padding: 132px 130px 68px;
}

#message .content-box.flexBlock {
    align-items: center;
}

#message .content-box.flexBlock>.text {
    width: 45.3%;
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    font-size: 1.5rem;
}

#message .content-box.flexBlock h2.grad-text {
    font-size: 4.0rem;
    line-height: 1.4;
    margin-bottom: 80px;
}

#message .content-box.flexBlock>.text .sub-title {
    font-size: 3.6rem;
    line-height: 1.4;
    margin-bottom: 30px;
}

#message .content-box.flexBlock>.img {
    width: 47%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#message .content-box.flexBlock>.img .name {
    display: flex;
    justify-content: flex-start;
    font-size: 1.4rem;
    flex-direction: column;
    margin-top: 10px;
    padding-right: 30px;
}

#message .content-box.flexBlock>.img .fade-item {
    border-radius: 4px;
    overflow: hidden;
}

.name-plate {
    position: relative;
    padding: 1px 5px;
    align-items: center;
    gap: 10px;
}

.name-plate>.jp {
    font-size: 1.8rem;
}

.name-plate>span {
    position: relative;
    display: block;
}

.name-plate:before {
    content: '';
    width: calc(100% + 30px);
    height: 100%;
    top: 0;
    left: -15px;
    background: linear-gradient(to right, #0B308E 0%, #0665B5 33%, #028CD2 62%, #00A5E4 86%, #00AEEB 100%);
    position: absolute;
    display: block;
    transform: skewX(-45deg);
}

@media (max-width: 768px) {
    #message .whitePlate {
        padding: 60px 22px 40px;
    }

    #message .content-box.flexBlock>.text,
    #message .content-box.flexBlock>.img {
        width: 100%;
    }

    #message .content-box.flexBlock>.img {
        order: 1;
        align-items: center;
        margin-bottom: 50px;
    }

    #message .content-box.flexBlock>.text {
        order: 2;
    }

    #message .content-box.flexBlock h2.grad-text {
        font-size: 3.0rem;
        text-align: center;
        margin-bottom: 30px;
    }

    #message .content-box.flexBlock>.img>.rel.fade-item.clip-anim {
        max-width: 320px;
    }

    #message .content-box.flexBlock>.img .name {
        padding-right: 0;
    }

    #message .content-box.flexBlock>.text .sub-title {
        font-size: 2.2rem;
    }
}

#profile>.inner.flexBlock {
    flex-direction: column;
    align-items: center;
}

.section h2 {
    font-size: 4.0rem;
}

#profile .rel.clip-anim {
    margin: 30px auto 35px;
    border-radius: 4px;
    overflow: hidden;
}

#profile .profile-table {
    border-top: 1px solid rgba(233, 233, 233, 0.5);
    font-size: 1.4rem;
    flex-direction: column;
    max-width: 1120px;
    width: 100%;
}

#profile .profile-table>div {
    position: relative;
    display: block;
    padding: 25px 15px;
    border-bottom: 1px solid rgba(233, 233, 233, 0.5);
    list-style: 1.6;
}

#profile .profile-table>div>.flexBlock {
    width: 100%;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 70px;
}

#profile .profile-table>div>.flexBlock>:nth-child(1) {
    font-size: 1.5rem;
    font-weight: 700;
    min-width: 140px;
}

#profile .animated-btn {
    width: calc(100% - 30px);
    max-width: 310px;
    height: 70px;
    font-size: 1.8rem;
    position: relative;
    display: flex;
    margin-top: 30px;
}

#profile .animated-btn>span {
    width: 100%;
    justify-content: center;
    gap: 30px;
}

@media (max-width: 768px) {
    #profile .profile-table>div>.flexBlock {
        gap: 2px;
        flex-direction: column;
    }

    #profile .profile-table>div>.flexBlock>span {
        width: 100%;
    }

    .section h2 {
        font-size: 3.0rem;
    }

    #profile .animated-btn {
        margin: 30px auto 0;
    }
}

#policy {
    display: flex;
    align-items: center;
    flex-direction: column;
}

#policy h2 {
    text-align: center;
}

#policy .whitePlate {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 50px;
    padding-bottom: 50px;
    margin-bottom: 50px;
}

#policy .whitePlate h3 {
    font-size: 3.0rem;
    margin-bottom: 10px;
}

.policy-list {
    width: 100%;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
    gap: 20px;
}

.policy-list2 {
    width: 100%;
    padding-left: 50px;
    padding-right: 50px;
    max-width: 1200px;
    justify-content: space-between;
    margin-left: auto;
    margin-right: auto;
}

.policy-list2>div {
    position: relative;
    width: calc(50% - 50px);
    font-size: 1.4rem;
}

.policy-list2 .title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    justify-content: flex-start;
    gap: 10px;
    align-items: center;
    line-height: 1.4;
}

.policy-list2 .title>img {
    width: 176px;
}


@media (max-width: 768px) {
    #policy .whitePlate h3 {
        font-size: 2.2rem;
    }

    .policy-list {
        flex-direction: column;
        align-items: center;
    }

    .policy-list2 {
        padding-left: 10px;
        padding-right: 10px;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 30px;
    }

    .policy-list2>div {
        width: 100%;
    }

    .policy-list2 .title {
        font-size: 2.2rem;
        gap: 5px;
    }

    .policy-list2 .title>img {
        width: 125px;
    }
}

#history {
    background: rgba(19, 43, 67, 0.5);
    margin-bottom: 200px;
    padding: 100px 0;
    display: flex;
    align-items: center;
    flex-direction: column;
}

#history>.inner {
    max-width: 752px;
    flex-direction: column;
    align-items: flex-start;
}

#history>.inner .year {
    position: relative;
    line-height: 1.75;
    align-items: flex-start;
    justify-content: flex-start;
    padding-bottom: 70px;
    padding-left: 38px;
}

#history>.inner .year:before,
#history>.inner .year:after {
    content: '';
    position: absolute;
    display: block;
}

#history>.inner .year:after {
    width: 14px;
    height: 14px;
    background: #FFFFFF;
    border-radius: 50%;
    left: 0;
    top: 18px;
}

#history>.inner .year:before {
    left: 6.5px;
    width: 1px;
    height: 100%;
    top: 25px;
    background: rgba(255, 255, 255, 0.3);
}

#history>.inner .year:last-child:before {
    display: none;
}

#history>.inner .year>:nth-child(1) {
    font-size: 2.0rem;
    line-height: 1;
    margin-right: 85px;
    position: relative;
    min-width: 146px;
}

#history>.inner .year>:nth-child(1):after {
    content: '';
    position: absolute;
    display: block;
    width: 65px;
    height: 1px;
    background: #FFFFFF;
    right: 0;
    top: 51%;
    transform: translateX(calc(100% + 10px));
}

#history>.inner .year>:nth-child(1) .manrope {
    font-size: 4.6rem;
}

#history>.inner .year>:nth-child(2) {
    font-size: 1.5rem;
}

#history>.inner .year>:nth-child(2) .manrope {
    font-size: 3.0rem;
}

#history>.inner .year>:nth-child(2) small {
    font-size: 2.0rem;
    margin-right: 7px;
}

#history>.inner .year>:nth-child(2)>div {
    display: flex;
    align-items: center;
}

#profile .profile-table>div>.flexBlock.company-code {
    align-items: stretch;
}

.company-code>span {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.company-code a {
    width: 240px;
    margin-left: 50px;
}

@media (min-width: 769px) {
    .company-code a:hover {
        animation: hoverUp 0.7s ease-out forwards;
    }
}

@media (max-width: 768px) {
    .company-code>span {
        flex-direction: column;
        align-items: flex-start;
    }

    .company-code a {
        max-width: 280px;
        width: 100%;
        margin-left: 0px;
        margin-top: 15px;
    }
}

@keyframes hoverUp {

    0%,
    100% {
        transform: scale(1, 1);
    }

    50% {
        transform: scale(1.03, 1.03);
    }
}

@media (max-width: 800px) {
    #history>.inner .year::after {
        top: 15px;
    }

    #history>.inner .year>:nth-child(1) .manrope {
        font-size: 3.8rem;
    }

    #history>.inner .year>:nth-child(2) .manrope {
        font-size: 2.0rem;
    }

    #history>.inner .year> :nth-child(2) small {
        font-size: 1.4rem;
        margin-right: 7px;
    }

    #history>.inner .year>:nth-child(1) {
        margin-right: 65px;
        min-width: inherit;
    }

    #history>.inner .year>:nth-child(1):after {
        width: 40px;
        transform: translateX(calc(100% + 10px));
    }
}

@media (max-width: 768px) {
    #history>.inner .year>:nth-child(1):after {
        display: none;
    }

    #history>.inner .year {
        flex-direction: column;
    }

    #history>.inner .year>div {
        width: 100%;
    }

    #history>.inner .year> :nth-child(2)>div {
        align-items: baseline;
        margin-top: 15px;
    }

    #history>.inner .year {
        padding-bottom: 60px;
    }
}

.map-container {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#access>.inner.flexBlock {
    align-items: center;
    justify-content: space-between;
    font-size: 1.4rem;
}

#access>.inner.flexBlock .map-container {
    width: 60%;
}

#access>.inner.flexBlock .info {
    width: 35%;
}

#access>.inner.flexBlock .info .tel {
    font-size: 1.8rem;
}

#access>.inner.flexBlock .info .tel .semibold {
    font-size: 2.6rem;
}

#access>.inner.flexBlock .info .fax {
    font-size: 1.6rem;
}

#access>.inner.flexBlock .plate {
    margin: 15px 0 10px;
}

#access>.inner.flexBlock .info p {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    #access>.inner.flexBlock {
        flex-direction: column;
    }

    #access>.inner.flexBlock .info {
        width: 100%;
    }

    #access>.inner.flexBlock .map-container {
        width: 100%;
        margin: 15px auto;
    }

    #access>.inner.flexBlock h2 {
        margin-left: auto;
        margin-right: auto;
        position: relative;
        display: block;
        text-align: center;
    }

    #access>.inner.flexBlock .plate {
        margin: 10px 0 5px;
    }

    #access>.inner.flexBlock .info p {
        margin-bottom: 0px;
    }
}

#floated-anchor-box {
    width: 100%;
    position: fixed;
    top: 134px;
    z-index: 1000;
}

@media print,
screen and (max-width: 768px) {
    #floated-anchor-box {
        top: 60px;
    }
}

#floated-anchor-box .title {
    display: none;
    align-items: center;
    justify-content: center;
    height: 32px;
    background: #161616;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    position: relative;
}

@media print,
screen and (max-width: 768px) {
    #floated-anchor-box .title {
        display: flex;
        justify-content: center;
        cursor: pointer;
    }

    #floated-anchor-box .title:after {
        content: '';
        position: absolute;
        display: block;
        width: 22px;
        height: 22px;
        transform-origin: center center;
        background: url('../imgs/common/arrow_down.svg') no-repeat center center;
        background-size: 13px auto;
        top: 5px;
        right: 25px;
        transition: transform 0.5s ease;
    }

    #floated-anchor-box.is-open-sub .title:after {
        transform: rotate(180deg);
    }
}

#floated-anchor-box .anchor-container {
    padding: 0 20px;
    margin: 0 auto;
    width: calc(100% - 120px);
    max-width: 1320px;
    pointer-events: none;
}

@media print,
screen and (max-width: 1100px) {
    #floated-anchor-box .anchor-container {
        width: calc(100% - 40px);
    }
}

@media print,
screen and (max-width: 768px) {
    #floated-anchor-box .anchor-container {
        margin: 0 10px;
        padding: 21px 15px 23px;
        width: auto;
        background-color: #FFF;
        border-radius: 0 0 14px 14px;
        pointer-events: auto;
    }
}

#floated-anchor-box .anchor-container ul {
    width: fit-content;
    pointer-events: auto;
    padding-left: 15px;
    display: flex;
    position: relative;
    flex-direction: column;
    gap: 12px;
    pointer-events: all;
}

#floated-anchor-box .anchor-container ul:before {
    content: '';
    position: absolute;
    display: block;
    left: 3.5px;
    top: 12px;
    width: 1px;
    height: calc(100% - 24px);
    background: #8EA2E3;
}

@media print,
screen and (max-width: 768px) {
    #floated-anchor-box .anchor-container ul {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 24px;
        width: 100%;
        padding-left: 0;
        flex-direction: row;
        flex-wrap: wrap;
    }

    #floated-anchor-box .anchor-container ul:before {
        display: none;
    }
}

#floated-anchor-box {
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.is-anchor-fixed #floated-anchor-box {
    opacity: 1;
    pointer-events: all;
}

.is-anchor-fixed #floated-anchor-box .anchor-container ul {
    pointer-events: all;
}

@media print,
screen and (min-width: 769px) {

    #floated-anchor-box .anchor-container ul li:before {
        content: '';
        position: absolute;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        left: -15px;
        top: 11px;
        background: #8EA2E3;
    }

    #floated-anchor-box .anchor-container ul li.is-active:before {
        background: #FFFFFF;
    }

    #floated-anchor-box .anchor-container ul li {
        pointer-events: none;
        opacity: 0;
        transform: translateY(-100%);
        transition: opacity 0.3s, transform 0.5s ease;
        position: relative;
        display: block;
    }

    .is-anchor-fixed #floated-anchor-box .anchor-container ul li {
        pointer-events: all;
        opacity: 1;
        transform: translateY(0%);
    }

    #floated-anchor-box .anchor-container ul li:nth-child(2) {
        transition-delay: 0.2s;
    }

    #floated-anchor-box .anchor-container ul li:nth-child(3) {
        transition-delay: 0.4s;
    }

    #floated-anchor-box .anchor-container ul li:nth-child(4) {
        transition-delay: 0.6s;
    }

    #floated-anchor-box .anchor-container ul li:nth-child(5) {
        transition-delay: 0.8s;
    }
}

#floated-anchor-box .anchor-container ul li a {
    color: #8EA2E3;
    transition: 0.3s;
    font-family: 1.4rem;
}

#floated-anchor-box .anchor-container ul li.is-active a {
    color: #FFFFFF;
}

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

    #floated-anchor-box .anchor-container ul li.is-active a,
    #floated-anchor-box .anchor-container ul li a {
        display: flex;
        align-items: center;
        color: #161616;
    }
}

#floated-anchor-box .anchor-container ul li a .ico {
    display: none;
    width: 22px;
    height: 22px;
    margin-left: 5px;
}

@media print,
screen and (max-width: 768px) {
    #floated-anchor-box .anchor-container ul li a .ico {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: #161616;
    }

    #floated-anchor-box .anchor-container ul li a .ico>img {
        width: 10px;
        height: auto;
    }
}

#floated-anchor-box .anchor-container ul li a:hover {
    color: #FFF;
}

@media print,
screen and (max-width: 768px) {
    #floated-anchor-box .anchor-container ul li a:hover {
        color: #161616;
    }
}