/* 会社概要・アクセス */
body.ae-company-page {
    margin: 0;
    background-color: #deecff;
    background-image: radial-gradient(
        circle, #fff 1.5px, transparent 1.5px
    );
    background-size: 24px 24px;
    color: #080b20;
    font-family: var(--font-family-base, Arial, sans-serif);
}

.ae-company,
.ae-company *,
.ae-company *::before,
.ae-company *::after {
    box-sizing: border-box;
}

.ae-company {
    width: 100%;
}
.ae-company .ae-company__intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 48px;
    width: calc(100% - 80px);
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 0 56px;
    text-align: left;
}

.ae-company__eyebrow {
    margin: 0 0 24px;
    font: 700 12px/1.6 "Courier New", monospace;
    letter-spacing: 0.08em;
}

.ae-company__english {
    margin: 0;
    font: 700 clamp(44px, 5vw, 80px)/0.98 Arial, sans-serif;
    letter-spacing: -0.06em;
}

.ae-company .ae-company__intro h1 {
    max-width: none;
    margin: 24px 0;
    color: #080b20;
    font-weight: 700;
    letter-spacing: 0;
    text-align: left;
}

.ae-company__lead {
    margin: 0;
    font-size: 16px;
    line-height: 1.9;
}

.ae-company__sheet {
    width: calc(100% - 48px);
    max-width: 1440px;
    margin: 0 auto 32px;
    border: 1px solid #b4ceff;
    border-radius: 48px;
    padding: 16px 40px 48px;
    background: #f8fbff;
    box-shadow: 0 12px 36px rgba(6, 75, 250, 0.07);
}

.ae-company .ae-company__section {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 48px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    border-bottom: 1px solid #c3ddff;
    padding: 48px 0;
    text-align: left;
}

.ae-company__heading,
.ae-company__access {
    min-width: 0;
}

.ae-company__number {
    margin: 0 0 12px;
    font: 700 14px/1.5 "Courier New", monospace;
}

.ae-company__section-english {
    margin: 0;
    font: 700 clamp(36px, 4vw, 64px)/0.98 Arial, sans-serif;
    letter-spacing: -0.06em;
}

.ae-company .ae-company__heading h2 {
    margin: 20px 0 0;
    color: #080b20;
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.5;
}

.ae-company__details {
    min-width: 0;
    margin: 0;
}

.ae-company__details > div {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 24px;
    border-bottom: 1px solid #d2e2ff;
    padding: 20px 0;
    font-size: 15px;
    line-height: 1.9;
}

.ae-company__details > div:last-child {
    border-bottom: 0;
}

.ae-company__details dt {
    font-weight: 700;
}

.ae-company__details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.ae-company .ae-company__access h3 {
    margin: 0 0 16px;
    font-size: 20px;
    line-height: 1.5;
}

.ae-company__access > p {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.9;
}

.ae-company__access a {
    color: #064bfa;
    text-underline-offset: 4px;
}

/* 詳細ページ：上部の戻るリンク */
.ae-careers-return-top {
    width: min(1280px, calc(100% - 36px));
    margin: 0 auto;
    padding: 24px 0 0;
    text-align: right;
}

.ae-careers-return-top a {
    display: inline-block;
    padding: 8px 0;
    color: #064bfa;
    font-size: 14px;
    font-weight: 700;
    text-underline-offset: 5px;
}

/* 本文との間隔は外側の配置枠で管理 */
.ae-company .ae-company__footer {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 40px 0 0;
    text-align: right;
}

/* 共通ボタン側の余白を重ねない */
.ae-company__footer > .ae-page-return {
    --ae-return-gap: 0px;
    --ae-return-bottom-gap: 0px;
}

.ae-company a:focus-visible {
    outline: 3px solid #064bfa;
    outline-offset: 5px;
}

@media (max-width: 780px) {
    .ae-company .ae-company__intro {
        width: calc(100% - 48px);
        padding: 40px 0;
    }

    .ae-company__eyebrow {
        margin-bottom: 16px;
        font-size: 10px;
        letter-spacing: 0.04em;
    }

    .ae-company__english {
        font-size: clamp(28px, 7.5vw, 40px);
        line-height: 1.05;
    }

    .ae-company .ae-company__intro h1 {
        margin: 16px 0 12px;
        font-size: 22px;
    }

.ae-company__lead {
    font-size: 11px;
    line-height: 1.75;
}

    .ae-company__sheet {
        width: calc(100% - 24px);
        margin-bottom: 16px;
        border-radius: 28px;
        padding: 8px 16px 32px;
    }

    .ae-company .ae-company__section {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px 0;
    }

    .ae-company__section-english {
        font-size: clamp(30px, 7.5vw, 42px);
    }

    .ae-company__details > div {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 16px 0;
    }
}
@media (max-width: 650px) {
    /* 上部の戻るリンクを他の詳細ページと統一 */
    .ae-company .ae-careers-return-top {
        width: calc(100% - 32px);
        padding-top: 12px;
    }

    .ae-company .ae-careers-return-top a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        font-size: 11px;
        line-height: 1.6;
    }

    /* 冒頭を「仕事内容・職種」と同じ配置・文字サイズに */
    .ae-company .ae-company__intro {
        width: calc(100% - 32px);
        padding: 32px 0 20px;
    }

    .ae-company .ae-company__eyebrow {
        display: none;
    }

    .ae-company .ae-company__english {
        font-size: clamp(28px, 8.5vw, 34px);
        line-height: 1.02;
        letter-spacing: -0.045em;
    }

    .ae-company .ae-company__intro h1 {
        margin: 4px 0;
        font-size: 18px;
        line-height: 1.4;
    }

    .ae-company .ae-company__lead {
        font-size: 11px;
        line-height: 1.7;
    }

    .ae-company .ae-company__heading h2 {
        margin: 4px 0 0;
    }

    /* スマホ：会社概要とアクセスを独立したカードに */
    .ae-company .ae-company__sheet {
        padding: 0 0 24px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .ae-company .ae-company__section {
        gap: 12px;
        padding: 20px 16px;
        border: 1px solid #b4ceff;
        border-radius: 28px;
        background: #f8fbff;
        box-shadow: 0 8px 24px rgba(6, 75, 250, 0.06);
    }

    .ae-company .ae-company__section + .ae-company__section {
        margin-top: 16px;
    }

    .ae-company .ae-company__number {
        margin-bottom: 6px;
        font-size: 10px;
        line-height: 1.4;
    }

    .ae-company .ae-company__section-english {
        font-size: 24px;
        line-height: 1.05;
    }

    .ae-company .ae-company__heading h2 {
        margin: 4px 0 0;
        font-size: 16px;
        line-height: 1.4;
    }

    .ae-company .ae-company__details > div {
        grid-template-columns: 100px minmax(0, 1fr);
        align-items: baseline;
        gap: 10px;
        padding: 10px 0;
        font-size: 13px;
        line-height: 1.6;
    }

    .ae-company .ae-company__access h3 {
        margin: 0 0 8px;
        font-size: 15px;
        line-height: 1.5;
    }

    .ae-company .ae-company__access > p {
        margin: 0 0 12px;
        font-size: 13px;
        line-height: 1.7;
        overflow-wrap: anywhere;
    }

    .ae-company .ae-company__map {
        margin-top: 14px;
    }
}
/* アクセス：管理画面から設定する地図 */
.ae-company__map {
    margin-top: 28px;
    overflow: hidden;
    border: 1px solid #b4ceff;
    border-radius: 16px;
    background: #e8f1ff;
}

.ae-company__map iframe {
    display: block;
    width: 100%;
    height: clamp(280px, 35vw, 420px);
    border: 0;
}
/* PC：会社概要とアクセスを独立したカードに */
@media (min-width: 781px) {
    body.ae-company-page .ae-company .ae-company__sheet {
        --ae-return-frame-inset: 0px;
        padding: 0 0 48px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .ae-company .ae-company__section {
        max-width: none;
        padding: 48px 40px;
        border: 1px solid #b4ceff;
        border-radius: 48px;
        background: #f8fbff;
        box-shadow: 0 12px 36px rgba(6, 75, 250, 0.07);
    }

    .ae-company .ae-company__section + .ae-company__section {
        margin-top: 24px;
    }
}

/* トップ：会社イラスト */
.ae-company__copy,
.ae-company__visual {
    min-width: 0;
}

.ae-company__visual img {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    margin-inline: auto;
    filter: drop-shadow(0 12px 12px rgba(6, 75, 250, 0.12));
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .ae-company__visual img {
        transition: transform 220ms ease, filter 220ms ease;
    }

    .ae-company__visual:hover img {
        transform: translateY(-6px);
        filter: drop-shadow(0 18px 16px rgba(6, 75, 250, 0.18));
    }
}

@media (max-width: 780px) {
    .ae-company .ae-company__intro {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ae-company__visual {
        width: min(100%, 420px);
        margin-inline: auto;
    }
}