/* トップページの事業リンク */
#enterpriseBlock > .blockLink > .top-business-links,
#enterpriseBlock > #blockBuilding > .enterpriseBlock_link {
    clear: both;
    float: none;
    width: calc(100% - 32px);
    margin: 16px auto 20px;
    border: 0;
}

#enterpriseBlock > .blockLink > .top-business-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

#enterpriseBlock .top-business-links > a,
#enterpriseBlock #bill_link {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    min-height: 48px;
    padding: 8px;
    border: 1px solid #b50012;
    background: #fff;
    color: #b50012;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
}

#enterpriseBlock #bill_link {
    float: none;
    width: 100%;
    height: auto;
}

/* 別サイトに移動する事業リンクのアイコン */
#enterpriseBlock .top-business-links > a[href^="https://"]::after,
#enterpriseBlock #bill_link[href^="https://"]::after {
    --external-link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M7 3H3v10h10V9M9 2h5v5m0-5L7 9' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    content: "";
    flex: 0 0 12px;
    height: 12px;
    background-color: currentColor;
    -webkit-mask: var(--external-link-icon) center / contain no-repeat;
    mask: var(--external-link-icon) center / contain no-repeat;
}

#enterpriseBlock .top-business-links > a:hover,
#enterpriseBlock .top-business-links > a:focus-visible,
#enterpriseBlock #bill_link:hover,
#enterpriseBlock #bill_link:focus-visible {
    background-color: #b50012;
    color: #fff;
}

@media print, screen and (min-width: 641px) {
    #enterpriseBlock > .blockLink {
        display: flex;
        flex-direction: column;
    }

    #enterpriseBlock > .blockLink > .enterpriseBlock_title {
        align-self: center;
    }

    #enterpriseBlock > .blockLink > p {
        min-height: 0;
    }

    #enterpriseBlock > #blockTsuhan > .dl_wrap {
        height: auto;
    }

    #enterpriseBlock > .blockLink > .top-business-links,
    #enterpriseBlock > #blockBuilding > .enterpriseBlock_link {
        position: static;
        width: auto;
        margin: auto 20px 20px;
        padding-top: 24px;
    }
}
