/* ========================================
   ASCLEPIUS / COMPANY
   This stylesheet owns company.php only.
======================================== */

.asc-company,
.asc-company *,
.asc-company *::before,
.asc-company *::after {
    box-sizing: border-box;
}

.asc-company {
    color: var(--asc-ink, #18384B);
    background: var(--asc-white, #FFFFFF);
    font-family: var(--asc-body, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif);
    font-size: 16px;
    line-height: 1.95;
    letter-spacing: 0.015em;
    overflow-wrap: anywhere;
}

/* Restore inheritance after the legacy site reset. */
.asc-company :where(div, p, span, h1, h2, h3, a, dl, dt, dd, ol, li, address) {
    margin: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
}

.asc-company [id] {
    scroll-margin-top: 116px;
}

.asc-company a {
    color: var(--asc-navy, #18384B);
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.asc-company a:hover {
    color: var(--asc-navy, #18384B);
    opacity: 1;
    text-decoration-thickness: 2px;
}

.asc-company a:focus-visible {
    outline: 2px solid var(--asc-blue, #2F7FA3);
    outline-offset: 5px;
    border-radius: 3px;
}

.asc-company-container {
    width: min(calc(100% - 96px), 1140px);
    margin-inline: auto;
}

.asc-company .asc-company-eyebrow {
    color: var(--asc-navy, #18384B);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.65;
    letter-spacing: 0.12em;
}

.asc-company h1,
.asc-company h2,
.asc-company h3 {
    color: var(--asc-navy, #18384B);
    font-weight: 650;
    text-wrap: balance;
    overflow-wrap: normal;
}

.asc-company h2 {
    font-size: clamp(23px, 2.4vw, 30px);
    line-height: 1.65;
    letter-spacing: -0.025em;
}

.asc-company h3 {
    font-size: 19px;
    line-height: 1.65;
    letter-spacing: -0.015em;
}

/* PAGE INTRODUCTION */

.asc-company-hero {
    margin-top: 24px;
    border-bottom: 1px solid var(--asc-line, #DCE7E9);
    background: linear-gradient(125deg, #FFFFFF 35%, var(--asc-bg, #F5F8F9) 100%);
}

.asc-company-breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 12px;
    list-style: none;
    color: var(--asc-ink, #18384B);
    font-size: 12px;
    line-height: 1.7;
}

.asc-company-breadcrumb li + li::before {
    margin-right: 12px;
    content: "/";
}

.asc-company-breadcrumb a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: inherit;
}

.asc-company-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(36px, 6vw, 88px);
    padding-block: 40px 64px;
}

.asc-company-hero__heading h1 {
    margin-top: 12px;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.4;
    letter-spacing: -0.035em;
}

.asc-company .asc-company-hero__lead {
    margin-top: 23px;
    color: var(--asc-navy, #18384B);
    font-size: clamp(19px, 1.9vw, 23px);
    line-height: 1.75;
    font-weight: 550;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.asc-company .asc-company-hero__note {
    max-width: 560px;
    margin-top: 14px;
    color: var(--asc-ink, #18384B);
    font-size: 15px;
}

.asc-company-identity {
    min-width: 0;
    padding: clamp(26px, 3.4vw, 40px);
    border: 1px solid var(--asc-line, #DCE7E9);
    border-top: 3px solid var(--asc-teal, #39AEB4);
    border-radius: 4px 4px 16px 16px;
    background: var(--asc-white, #FFFFFF);
}

.asc-company .asc-company-identity__label {
    color: var(--asc-navy, #18384B);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.8;
    letter-spacing: 0.1em;
}

.asc-company .asc-company-identity__name {
    margin-top: 14px;
    color: var(--asc-navy, #18384B);
    font-size: clamp(21px, 2.2vw, 26px);
    line-height: 1.65;
    font-weight: 650;
    letter-spacing: -0.025em;
}

.asc-company .asc-company-identity__english {
    margin-top: 4px;
    color: var(--asc-ink, #18384B);
    font-size: 13px;
    line-height: 1.75;
    letter-spacing: 0.035em;
}

.asc-company .asc-company-identity__note {
    margin-top: 21px;
    font-size: 14px;
    line-height: 1.85;
}

.asc-company-identity a {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    min-height: 44px;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 600;
}

/* DOMESTIC EXPERIENCE */

.asc-company-experience {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
    gap: clamp(32px, 6vw, 90px);
    padding-block: 68px;
}

.asc-company .asc-company-experience__year {
    margin-top: 9px;
    color: var(--asc-navy, #18384B);
    font-size: clamp(42px, 4.3vw, 58px);
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.asc-company-experience__year span {
    color: var(--asc-teal, #39AEB4);
}

.asc-company .asc-company-experience__caption {
    margin-top: 10px;
    color: var(--asc-ink, #18384B);
    font-size: 13px;
    line-height: 1.75;
}

.asc-company-experience__body p {
    margin-top: 20px;
}

/* COMPANY PROFILE */

.asc-company-profile {
    padding-block: 68px;
    border-block: 1px solid var(--asc-line, #DCE7E9);
    background: var(--asc-bg, #F5F8F9);
}

.asc-company-profile__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
    align-items: start;
    gap: clamp(32px, 6vw, 90px);
}

.asc-company-section-head h2 {
    margin-top: 10px;
}

.asc-company-section-head > p:last-child {
    max-width: 690px;
    margin-top: 13px;
    color: var(--asc-ink, #18384B);
    font-size: 15px;
}

.asc-company-facts {
    min-width: 0;
    border-top: 1px solid var(--asc-navy, #18384B);
}

.asc-company-facts > div {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
    padding-block: 21px;
    border-bottom: 1px solid var(--asc-line, #DCE7E9);
}

.asc-company-facts dt {
    color: var(--asc-ink, #18384B);
    font-size: 14px;
    font-weight: 550;
    line-height: 1.9;
}

.asc-company-facts dd {
    min-width: 0;
    color: var(--asc-navy, #18384B);
    font-size: 16px;
    line-height: 1.85;
}

.asc-company-address__postal {
    display: block;
    margin-bottom: 2px;
}

.asc-company .asc-company-phone {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.asc-company-facts a {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
}

.asc-company .asc-company-link-arrow {
    flex: none;
    font-size: 17px;
    line-height: 1;
}

/* SUPPORT */

.asc-company-support {
    padding-block: 76px;
}

.asc-company-support__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-top: 36px;
}

.asc-company-support__item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-top: 24px;
    border-top: 1px solid var(--asc-line, #DCE7E9);
}

.asc-company .asc-company-support__number {
    color: var(--asc-navy, #18384B);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
}

.asc-company-support__item h3 {
    margin-top: 15px;
}

.asc-company-support__item p {
    flex: 1;
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.95;
}

.asc-company-support__item a {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 12px;
    min-height: 44px;
    margin-top: 18px;
    font-size: 14px;
    font-weight: 600;
}

/* ACCESS */

.asc-company-access {
    padding-block: 64px 70px;
    background: var(--asc-bg, #F5F8F9);
    border-block: 1px solid var(--asc-line, #DCE7E9);
}

.asc-company-access__heading {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: end;
    gap: 36px;
    margin-bottom: 30px;
}

.asc-company .asc-company-access__address {
    color: var(--asc-ink, #18384B);
    font-size: 15px;
    line-height: 1.9;
    font-style: normal;
}

.asc-company-access__address span {
    display: block;
    margin-bottom: 5px;
    color: var(--asc-navy, #18384B);
    font-weight: 600;
}

.asc-company-map {
    overflow: hidden;
    border: 1px solid var(--asc-line, #DCE7E9);
    border-radius: 12px;
    background: var(--asc-ice, #DDF4F7);
}

.asc-company-map iframe {
    display: block;
    width: 100%;
    height: clamp(300px, 36vw, 420px);
    border: 0;
}

/* CONTACT */

.asc-company-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 38px;
    padding-block: 68px 76px;
}

.asc-company-contact > div {
    min-width: 0;
}

.asc-company-contact h2 {
    margin-top: 10px;
    font-size: clamp(23px, 2.2vw, 28px);
}

.asc-company-contact > div > p:last-child {
    margin-top: 12px;
    color: var(--asc-ink, #18384B);
    font-size: 15px;
}

.asc-company .asc-company-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex: none;
    min-height: 56px;
    max-width: 100%;
    padding: 15px 24px;
    border: 1px solid var(--asc-navy, #18384B);
    border-radius: 8px;
    background: var(--asc-navy, #18384B);
    color: var(--asc-white, #FFFFFF);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 600;
    text-decoration: none;
}

.asc-company .asc-company-button:hover {
    border-color: var(--asc-navy, #18384B);
    background: var(--asc-navy, #18384B);
    color: var(--asc-white, #FFFFFF);
    box-shadow: 0 0 0 3px rgba(57, 174, 180, 0.18);
}

/* TABLET */

@media (max-width: 1023px) {
    .asc-company-container {
        width: min(calc(100% - 64px), 1140px);
    }

    .asc-company-hero__grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        gap: 32px;
    }

    .asc-company-experience,
    .asc-company-profile__grid {
        grid-template-columns: minmax(0, 0.75fr) minmax(0, 2fr);
        gap: 36px;
    }

    .asc-company-facts > div {
        grid-template-columns: 145px minmax(0, 1fr);
        gap: 18px;
    }

    .asc-company-support__grid {
        gap: 24px;
    }

    .asc-company-access__heading {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .asc-company-contact {
        align-items: flex-start;
        flex-direction: column;
        gap: 25px;
    }
}

/* MOBILE */

@media (max-width: 767px) {
    .asc-company {
        font-size: 15px;
        line-height: 1.95;
    }

    .asc-company-container {
        width: calc(100% - 40px);
    }

    .asc-company-hero {
        margin-top: 18px;
    }

    .asc-company-hero__grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-block: 25px 42px;
    }

    .asc-company-hero__heading h1 {
        font-size: 34px;
    }

    .asc-company .asc-company-hero__lead {
        margin-top: 18px;
        font-size: 20px;
        text-wrap: pretty;
    }

    .asc-company-identity {
        padding: 24px;
    }

    .asc-company-experience,
    .asc-company-profile__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .asc-company-experience,
    .asc-company-profile {
        padding-block: 44px;
    }

    .asc-company .asc-company-experience__year {
        font-size: 44px;
    }

    .asc-company-experience__body p {
        margin-top: 15px;
    }

    .asc-company-facts > div {
        grid-template-columns: 1fr;
        gap: 6px;
        padding-block: 17px;
    }

    .asc-company-facts dt {
        font-size: 13px;
    }

    .asc-company-facts dd {
        font-size: 15px;
    }

    .asc-company-support {
        padding-block: 48px;
    }

    .asc-company-support__grid {
        grid-template-columns: 1fr;
        gap: 26px;
        margin-top: 28px;
    }

    .asc-company-support__item {
        padding-top: 22px;
    }

    .asc-company-support__item h3 {
        margin-top: 10px;
    }

    .asc-company-support__item a {
        margin-top: 12px;
    }

    .asc-company-access {
        padding-block: 44px;
    }

    .asc-company-map iframe {
        height: 300px;
    }

    .asc-company-contact {
        padding-block: 45px 50px;
    }

    .asc-company .asc-company-button {
        align-self: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .asc-company a {
        transition: none;
    }
}
