/* ==========================================================================
   Multi-page components
   ========================================================================== */
.global-nav a[aria-current="page"]::after { transform: scaleX(1); }
.center-button { display:flex; margin-top:48px; justify-content:center; }
.center-button--light { margin-top:55px; }

/* Home */
.home-service-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.home-service-card { overflow:hidden; border-radius:var(--radius); background:var(--white); box-shadow:var(--shadow); transition:transform .3s ease,box-shadow .3s ease; }
.home-service-card:hover { transform:translateY(-6px); box-shadow:0 24px 65px rgba(15,69,83,.18); }
.home-service-card>img { width:100%; aspect-ratio:4/3; object-fit:cover; }
.home-service-card>div { padding:28px 26px 30px; }
.home-service-card span,.home-link-panel>span { color:var(--aqua); font-family:"Montserrat",sans-serif; font-size:10px; font-weight:800; letter-spacing:.15em; }
.home-service-card h3 { margin:5px 0 10px; font-size:27px; }
.home-service-card p { margin:0; color:var(--muted); font-size:13px; }
.home-service-card b { display:flex; margin-top:22px; color:var(--blue); align-items:center; gap:8px; font-size:12px; }
.home-service-card b i { font-size:18px; font-style:normal; }
.home-links__grid { display:grid; grid-template-columns:1fr 1fr; gap:26px; }
.home-link-panel { position:relative; overflow:hidden; min-height:440px; padding:58px 52px; border-radius:26px; color:var(--white); background:var(--navy); }
.home-link-panel::before,.home-link-panel::after { position:absolute; border-radius:50%; content:""; }
.home-link-panel::before { right:-80px; bottom:-90px; width:310px; height:310px; border:55px solid rgba(255,255,255,.08); }
.home-link-panel::after { right:52px; bottom:48px; width:54px; height:54px; border:1px solid rgba(255,255,255,.35); background:linear-gradient(135deg,transparent 48%,var(--white) 49% 51%,transparent 52%); transform:rotate(-45deg); }
.home-link-panel--recruit { background:var(--blue); }
.home-link-panel>span { color:var(--yellow); }
.home-link-panel h2 { margin:22px 0; font-size:clamp(30px,3vw,44px); line-height:1.45; }
.home-link-panel p { margin:0; color:rgba(255,255,255,.72); font-weight:700; }

/* Lower-page visual */
.page-hero { position:relative; overflow:hidden; height:540px; color:var(--white); background:var(--navy); }
.page-hero::after { position:absolute; inset:0; background:linear-gradient(90deg,rgba(7,38,51,.84),rgba(7,38,51,.24)); content:""; }
.page-hero>img { width:100%; height:100%; object-fit:cover; }
.page-hero__content { position:absolute; z-index:2; top:55%; right:0; left:0; transform:translateY(-50%); }
.page-hero__content p { margin:0 0 6px; color:var(--aqua); font-family:"Montserrat",sans-serif; font-size:14px; font-weight:800; letter-spacing:.22em; }
.page-hero__content h1 { margin:0 0 10px; font-size:clamp(44px,6vw,72px); line-height:1.2; }
.page-hero__content span { color:rgba(255,255,255,.78); }
.breadcrumb { display:flex; padding-top:18px; color:var(--muted); align-items:center; gap:10px; font-family:"Montserrat","Noto Sans JP",sans-serif; font-size:11px; }
.sub-lead__grid,.company-message__grid { display:grid; grid-template-columns:.9fr 1.1fr; gap:95px; align-items:start; }
.sub-lead h2,.company-message h2 { margin:0; font-size:clamp(34px,4vw,54px); line-height:1.45; }
.sub-lead__grid>div:last-child p,.company-message__grid>div:last-child p { margin:0 0 20px; color:var(--muted); }

/* Business */
.business-detail { scroll-margin-top:90px; }
.business-detail__grid { display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:center; }
.business-detail__grid--reverse .business-detail__image { order:2; }
.business-detail__image { position:relative; }
.business-detail__image img { width:100%; aspect-ratio:4/3; border-radius:24px; object-fit:cover; box-shadow:var(--shadow); }
.business-detail__image b { position:absolute; right:22px; bottom:8px; color:rgba(255,255,255,.86); font-family:"Montserrat",sans-serif; font-size:72px; line-height:1; }
.business-detail__content h2 { margin:0 0 22px; font-size:clamp(34px,4vw,50px); }
.business-detail__content>p:not(.eyebrow) { margin:0; color:var(--muted); }
.check-list { display:grid; margin:30px 0 0; padding:0; grid-template-columns:1fr 1fr; gap:10px; list-style:none; }
.check-list li { position:relative; padding:10px 12px 10px 36px; border-radius:9px; background:var(--aqua-light); font-size:13px; font-weight:700; }
.check-list li::before { position:absolute; top:10px; left:12px; color:var(--aqua); content:"✓"; }
.mini-cta { display:flex; margin-top:55px; padding:28px 34px; border:1px solid var(--line); border-radius:var(--radius); background:var(--white); box-shadow:var(--shadow); align-items:center; justify-content:space-between; gap:30px; }
.mini-cta p { margin:0; color:var(--muted); font-size:13px; }
.mini-cta strong { color:var(--ink); font-size:16px; }
.environment { color:var(--white); background:var(--navy-deep); }
.environment .section-heading>p { color:rgba(255,255,255,.68); }
.environment-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.environment-grid article { padding:36px 32px; border:1px solid rgba(255,255,255,.14); border-radius:var(--radius); background:rgba(255,255,255,.05); }
.environment-grid .material-symbols-rounded { color:var(--aqua); font-size:46px; }
.environment-grid h3 { margin:16px 0 10px; }
.environment-grid p { margin:0; color:rgba(255,255,255,.67); font-size:13px; }

/* Works */
.works-page-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:52px 28px; }
.works-page-card>div { position:relative; overflow:hidden; border-radius:var(--radius); }
.works-page-card img { width:100%; aspect-ratio:4/3; object-fit:cover; transition:transform .45s ease; }
.works-page-card:hover img { transform:scale(1.035); }
.works-page-card>div span { position:absolute; right:15px; bottom:5px; color:rgba(255,255,255,.85); font-family:"Montserrat",sans-serif; font-size:48px; font-weight:800; }
.works-page-card>p { margin:17px 0 1px; color:var(--aqua); font-size:11px; font-weight:800; }
.works-page-card h2 { margin:0 0 12px; font-size:24px; }
.works-page-card dl { display:flex; margin:0; color:var(--muted); gap:8px 14px; font-size:12px; }
.works-page-card dd { margin:0 16px 0 0; }
.field-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.field-grid>div { display:grid; padding:32px 18px; border-radius:var(--radius); background:var(--white); box-shadow:var(--shadow); text-align:center; place-items:center; }
.field-grid .material-symbols-rounded { margin-bottom:8px; color:var(--aqua); font-size:45px; }

/* Company */
.signature { padding-top:15px; text-align:right; }
.signature strong { margin-left:10px; color:var(--ink); font-size:20px; }
.access__grid { display:grid; overflow:hidden; min-height:430px; border-radius:24px; background:var(--bg); grid-template-columns:1.35fr .65fr; }
.access__grid iframe { width:100%; height:100%; min-height:430px; border:0; }
.access__grid>div { display:flex; padding:42px; flex-direction:column; align-items:flex-start; justify-content:center; }
.access__grid>div>.material-symbols-rounded { color:var(--aqua); font-size:40px; }
.access__grid h3 { margin:12px 0 6px; font-size:21px; }
.access__grid p { margin:0 0 22px; color:var(--muted); font-size:13px; }

/* Recruit / Contact */
.recruit-points--page { width:100%; margin:0; }
.contact-page { color:var(--white); background:var(--navy-deep); }
.contact__heading--page .eyebrow { color:var(--aqua); }
.contact__heading--page>p:last-child { color:rgba(255,255,255,.7); }

/* Shared contact strip */
.wide-cta { position:relative; overflow:hidden; padding:78px 0; color:var(--white); background:var(--blue); }
.wide-cta::after { position:absolute; top:-150px; right:-100px; width:420px; height:420px; border:65px solid rgba(255,255,255,.08); border-radius:50%; content:""; }
.wide-cta__inner { position:relative; z-index:2; display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:center; }
.wide-cta .eyebrow { color:var(--yellow); }
.wide-cta h2 { margin:0 0 12px; font-size:clamp(30px,3.5vw,46px); line-height:1.4; }
.wide-cta__inner>div>p:last-child { margin:0; color:rgba(255,255,255,.72); font-size:13px; }
.wide-cta__actions { display:grid; gap:13px; }
.wide-cta__phone { display:flex; padding:10px 22px; border:1px solid rgba(255,255,255,.3); border-radius:14px; align-items:center; gap:15px; }
.wide-cta__phone>.material-symbols-rounded { color:var(--yellow); font-size:34px; }
.wide-cta__phone small,.wide-cta__phone strong { display:block; }
.wide-cta__phone small { color:rgba(255,255,255,.7); font-size:10px; }
.wide-cta__phone strong { font-family:"Montserrat",sans-serif; font-size:28px; line-height:1.3; }

@media (max-width:767px) {
    .center-button,.center-button--light { margin-top:34px; }
    .home-service-grid,.home-links__grid,.sub-lead__grid,.company-message__grid,.business-detail__grid,.works-page-grid,.wide-cta__inner { grid-template-columns:1fr; }
    .home-service-card>div { padding:23px 21px 26px; }
    .home-link-panel { min-height:350px; padding:38px 28px; }
    .home-link-panel h2 { font-size:29px; }
    .page-hero { height:420px; }
    .page-hero__content { top:58%; }
    .page-hero__content h1 { font-size:42px; }
    .page-hero__content span { font-size:12px; }
    .breadcrumb { padding-top:13px; font-size:9px; }
    .sub-lead__grid,.company-message__grid { gap:30px; }
    .sub-lead h2,.company-message h2 { font-size:31px; }
    .business-detail__grid { gap:30px; }
    .business-detail__grid--reverse .business-detail__image { order:initial; }
    .business-detail__image b { font-size:48px; }
    .business-detail__content h2 { margin-bottom:15px; font-size:31px; }
    .check-list { grid-template-columns:1fr; }
    .mini-cta { display:block; margin-top:36px; padding:23px 20px; }
    .mini-cta .button { margin-top:17px; }
    .environment-grid,.field-grid { grid-template-columns:1fr 1fr; }
    .environment-grid { gap:12px; }
    .environment-grid article { padding:26px 19px; }
    .environment-grid .material-symbols-rounded { font-size:36px; }
    .environment-grid h3 { font-size:16px; }
    .environment-grid p { font-size:11px; }
    .works-page-grid { gap:38px; }
    .works-page-card h2 { font-size:20px; }
    .field-grid>div { padding:24px 8px; font-size:12px; }
    .access__grid { grid-template-columns:1fr; }
    .access__grid iframe { min-height:320px; }
    .access__grid>div { padding:28px 22px; }
    .recruit-points--page { margin:0; }
    .wide-cta { padding:58px 0; }
    .wide-cta__inner { gap:32px; }
}

/* Company panel background */
.home-link-panel--company {
    background: linear-gradient(90deg, rgba(9, 24, 47, .94), rgba(19, 42, 74, .58)),
        url("../images/home-company.webp") center / cover no-repeat;
}

/* Recruit panel background */
.home-link-panel--recruit {
    background: linear-gradient(90deg, rgba(9, 24, 47, .92), rgba(242, 201, 76, .34)),
        url("../images/home-company2.webp") center / cover no-repeat;
}

/* Make the company and recruit photos more visible */
.home-link-panel--company {
    background:
        linear-gradient(90deg, rgba(9, 24, 47, .78) 0%, rgba(19, 42, 74, .36) 58%, rgba(19, 42, 74, .18) 100%),
        url("../images/home-company.webp") center / cover no-repeat;
}

.home-link-panel--recruit {
    background:
        linear-gradient(90deg, rgba(9, 24, 47, .80) 0%, rgba(19, 42, 74, .34) 56%, rgba(242, 201, 76, .16) 100%),
        url("../images/home-company2.webp") center / cover no-repeat;
}

/* Smaller headings in the home link cards */
.home-links .home-link-panel h2 {
    font-size: clamp(27px, 2.5vw, 38px);
}

@media (max-width: 767px) {
    .home-links .home-link-panel h2 {
        font-size: 25px;
    }
}

/* Flow arrows: centered cleanly between cards */
.flow-list {
    column-gap: 40px;
    row-gap: 32px;
}

.flow-list li:not(:last-child)::after {
    z-index: 4;
    top: 50%;
    right: -40px;
    bottom: auto;
    width: 40px;
    height: 40px;
    color: var(--blue);
    background: var(--white);
    box-shadow: 0 8px 20px rgba(19, 42, 74, .12);
    content: "arrow_forward";
    font-family: "Material Symbols Rounded";
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    transform: translateY(-50%);
}

@media (max-width: 1024px) and (min-width: 768px) {
    .flow-list li:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .flow-list {
        gap: 32px;
    }

    .flow-list li:not(:last-child)::after {
        top: auto;
        right: 50%;
        bottom: -36px;
        transform: translateX(50%) rotate(90deg);
    }

    .flow-list li:nth-child(2)::after {
        display: grid;
    }
}

/* Keep flow-arrow shadows above the following cards */
.flow-list li {
    overflow: visible;
}

.flow-list li:nth-child(1) { z-index: 4; }
.flow-list li:nth-child(2) { z-index: 3; }
.flow-list li:nth-child(3) { z-index: 2; }
.flow-list li:nth-child(4) { z-index: 1; }

/* Work-card descriptions */
.works-page-card > .works-page-card__description {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.8;
}

/* Match the recruit intro title with other lower-page titles */
.recruit-intro h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.45;
}

@media (max-width: 767px) {
    .recruit-intro h2 {
        font-size: 31px;
    }
}

/* Static recruit listings */
.job-list {
    display: grid;
    gap: 56px;
}

.job-panel--static {
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.job-panel__visual {
    overflow: hidden;

    background: var(--navy);
}

.job-panel__visual img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform .5s ease;
}

.job-panel--static:hover .job-panel__visual img {
    transform: scale(1.025);
}

.job-panel__body {
    padding: 46px 56px 50px;
}

.job-panel__entry {
    display: flex;
    margin-top: 32px;
    justify-content: flex-end;
}

@media (max-width: 767px) {
    .job-list {
        gap: 36px;
    }

    .job-panel__visual {
        aspect-ratio: 4 / 3;
    }

    .job-panel__body {
        padding: 28px 20px 30px;
    }

    .job-panel__entry {
        margin-top: 24px;
    }

    .job-panel__entry .button {
        width: 100%;
    }
}

/* Center the phone text independently from its icon */
.wide-cta__phone {
    position: relative;
    justify-content: center;
    text-align: center;
}

.wide-cta__phone > .material-symbols-rounded {
    position: absolute;
    left: 32px;
}

.wide-cta__phone > span:last-child {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (max-width: 767px) {
    .wide-cta__phone > .material-symbols-rounded {
        left: 20px;
    }
}


/* Representative message on the home page */
.home-representative .button {
    margin-top: 12px;
}

/* Company movie on the home page */
.home-movie {
    color: var(--white);
    background: var(--navy-deep);
}

.home-movie .section-heading > p {
    color: rgba(255, 255, 255, .7);
}

.home-movie__frame {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: #000;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.home-movie__frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 767px) {
    .home-movie__frame {
        border-radius: 16px;
    }
}

/* Contact form steps / confirmation / completion */
.form-message ul {
    margin: 0;
    padding-left: 1.4em;
}

.contact-steps {
    display: grid;
    max-width: 720px;
    margin: 0 auto 46px;
    padding: 0;
    color: rgba(255, 255, 255, .55);
    grid-template-columns: repeat(3, 1fr);
    list-style: none;
}

.contact-steps li {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
}

.contact-steps li:not(:last-child)::after {
    position: absolute;
    z-index: 0;
    top: 20px;
    left: calc(50% + 24px);
    width: calc(100% - 48px);
    height: 1px;
    background: rgba(255, 255, 255, .24);
    content: "";
}

.contact-steps b {
    position: relative;
    z-index: 1;
    display: grid;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: var(--navy-deep);
    place-items: center;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
}

.contact-steps .is-current,
.contact-steps .is-done {
    color: var(--white);
}

.contact-steps .is-current b {
    border-color: var(--yellow);
    color: var(--navy-deep);
    background: var(--yellow);
}

.contact-steps .is-done b {
    border-color: var(--yellow);
    color: var(--yellow);
}

.contact__heading--center {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.contact-confirm,
.contact-complete {
    max-width: 920px;
    margin: 0 auto;
    padding: 48px 54px;
    border-radius: 24px;
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
}

.contact-confirm__list {
    margin: 0;
}

.contact-confirm__list > div {
    display: grid;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    grid-template-columns: 190px 1fr;
    gap: 24px;
}

.contact-confirm__list > div:first-child {
    border-top: 1px solid var(--line);
}

.contact-confirm__list dt {
    font-size: 13px;
    font-weight: 800;
}

.contact-confirm__list dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--muted);
}

.contact-confirm__actions {
    display: grid;
    margin-top: 38px;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-confirm__actions .button {
    width: 100%;
}

.contact-confirm__actions .button--outline {
    border-color: var(--line);
    color: var(--navy);
}

.contact-complete {
    text-align: center;
}

.contact-complete > .material-symbols-rounded {
    color: var(--yellow);
    font-size: 72px;
}

.contact-complete .eyebrow {
    margin-top: 12px;
}

.contact-complete h2 {
    margin: 10px 0 18px;
    font-size: clamp(28px, 4vw, 42px);
}

.contact-complete > p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
}

.contact-complete .button {
    margin-top: 32px;
}

@media (max-width: 767px) {
    .contact-steps {
        margin-bottom: 32px;
    }

    .contact-steps li {
        font-size: 10px;
    }

    .contact-steps b {
        width: 36px;
        height: 36px;
    }

    .contact-steps li:not(:last-child)::after {
        top: 18px;
        left: calc(50% + 21px);
        width: calc(100% - 42px);
    }

    .contact-confirm,
    .contact-complete {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .contact-confirm__list > div {
        display: block;
        padding: 18px 0;
    }

    .contact-confirm__list dt {
        margin-bottom: 7px;
    }

    .contact-confirm__actions {
        grid-template-columns: 1fr;
    }

    .contact-confirm__actions .button--outline {
        order: 2;
    }

    .contact-complete > .material-symbols-rounded {
        font-size: 58px;
    }
}
