/* ==========================================================================
   Page: Jobs (仕事を知る)
   ========================================================================== */

:root {
    --jobs-coral: #fc7a62;
    --jobs-coral-soft: #fff4f1;
    --jobs-blue: #4875be;
    --jobs-teal: #35b8c0;
    --jobs-yellow: #e8b500;
    --jobs-text: #333;
    --jobs-muted: #666;
    --jobs-border: #eaded9;
    --jobs-bg-soft: #fdf6f4;
}

.site-main--jobs {
    background-color: #fff;
}

/* ---------- Hero ---------- */
.page-hero--jobs .page-hero__collage-photo--1,
.page-hero--jobs .page-hero__collage-photo--2 {
    border: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transform: none;
}

.page-hero--jobs .page-hero__collage-photo--1 {
    top: 0;
    right: 34%;
    width: 343px;
    height: 250px;
}

.page-hero--jobs .page-hero__collage-photo--2 {
    top: 137px;
    right: 2%;
    width: 356px;
    height: 274px;
}

.page-hero--jobs .page-hero__collage-photo--1 img,
.page-hero--jobs .page-hero__collage-photo--2 img {
    object-fit: contain;
    object-position: center;
}

/* ---------- Intro ---------- */

.jobs-intro {
    position: relative;
    z-index: 2;
    margin-top: -40px;
    padding: 5rem 4rem 2.5rem;
    background-color: #fff;
    border-radius: 40px 40px 0 0;
}

.jobs-intro__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: end;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.jobs-intro__heading {
    margin: 0 0 1.25rem;
    color: var(--jobs-text);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.6;
}

.jobs-intro__description p {
    margin: 0 0 0.6rem;
    color: #444;
    font-size: 0.875rem;
    line-height: 2;
}

.jobs-intro__description p:last-child {
    margin-bottom: 0;
}

.jobs-intro__visual {
    min-height: 185px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jobs-intro__visual img {
    display: block;
    width: min(100%, 320px);
    height: auto;
}

.jobs-page-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    max-width: 1100px;
    margin: 3rem auto 0;
}

.jobs-page-nav__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 48px;
    padding: 0.7rem 0.8rem 0.7rem 2rem;
    color: var(--jobs-text);
    background-color: var(--jobs-bg-soft);
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
}

.jobs-page-nav__arrow,
.jobs-schedule-nav__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
    line-height: 1;
}

.jobs-page-nav__item--coral .jobs-page-nav__arrow,
.jobs-schedule-nav__item--coral .jobs-schedule-nav__arrow {
    background-color: var(--jobs-coral);
}

.jobs-page-nav__item--blue .jobs-page-nav__arrow,
.jobs-schedule-nav__item--blue .jobs-schedule-nav__arrow {
    background-color: var(--jobs-blue);
}

.jobs-page-nav__item--teal .jobs-page-nav__arrow {
    background-color: var(--jobs-teal);
}

.jobs-schedule-nav__item--teal .jobs-schedule-nav__arrow {
    background-color: var(--jobs-teal);
}

/* ---------- Shared section heading ---------- */

.jobs-section-heading {
    max-width: 1100px;
    margin: 0 auto 2.75rem;
}

.jobs-section-heading--center {
    text-align: center;
}

.jobs-section-heading__label {
    display: block;
    color: #ddc3bc;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    line-height: 1;
    margin-bottom: 0.45rem;
}

.jobs-section-heading__plus {
    display: block;
    color: var(--jobs-coral);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.jobs-section-heading__title {
    margin: 0;
    color: var(--jobs-text);
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.6;
}

.jobs-section-heading__title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ---------- Positions ---------- */

.jobs-positions {
    padding: 5rem 0 0;
    background-color: #fff;
}

.jobs-position-list {
    display: grid;
}

.jobs-position {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    align-items: center;
    gap: 4.5rem;
    padding: 4.75rem max(4rem, calc((100vw - 1100px) / 2 + 0rem));
}

.jobs-position:nth-child(odd) {
    background-color: var(--jobs-bg-soft);
}

.jobs-position:nth-child(even) {
    background-color: #fff;
}

.jobs-position__title-row {
    display: flex;
    align-items: center;
    margin-bottom: 1.75rem;
}

.jobs-position__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
}

.jobs-position__title--normal {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
}

.jobs-position--coral {
    --jobs-accent: var(--jobs-coral);
    color: var(--jobs-coral);
}

.jobs-position--blue {
    --jobs-accent: var(--jobs-blue);
    color: var(--jobs-blue);
}

.jobs-position--teal {
    --jobs-accent: var(--jobs-teal);
    color: var(--jobs-teal);
}

.jobs-position__text {
    margin: 0 0 1.5rem;
    color: #444;
    font-size: 0.875rem;
    line-height: 2;
}

.jobs-position__text:last-child {
    margin-bottom: 0;
}

.jobs-position__divider {
    width: 100%;
    height: 1px;
    margin: 1.6rem 0;
    background-image: linear-gradient(to right, var(--jobs-border) 50%, transparent 50%);
    background-size: 6px 1px;
}

.jobs-position__subhead {
    margin: 0 0 0.9rem;
    color: #444;
    font-size: 0.875rem;
    font-weight: 700;
}

.jobs-position__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.jobs-position__tags li {
    padding: 0.45rem 0.8rem;
    color: #fff;
    background-color: var(--jobs-accent);
    border-radius: 4px;
    font-size: 0.8125rem;
    line-height: 1.3;
}

.jobs-position__image {
    overflow: hidden;
    border-radius: 4px;
}

.jobs-position__image img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* ---------- Schedule ---------- */

.jobs-schedule {
    padding: 5rem 4rem;
    background-color: #fff;
}

.jobs-schedule__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.jobs-schedule-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 100%;
}

.jobs-schedule-nav__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 54px;
    padding: 0.7rem 0.8rem 0.7rem 2rem;
    color: var(--jobs-text);
    background-color: var(--jobs-bg-soft);
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 700;
}

.jobs-divider {
    border-bottom: 1px dotted var(--jobs-border);
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.jobs-schedule-block {
    padding-bottom: 5rem;
    margin-bottom: 5rem;
    border-bottom: 1px dashed var(--jobs-border);
}

.jobs-schedule-block:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.jobs-schedule-block__title {
    margin: 0 0 2.25rem;
    color: currentColor;
    text-align: center;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.5;
}

.jobs-schedule-block--coral {
    --jobs-accent: var(--jobs-coral);
    color: var(--jobs-coral);
}

.jobs-schedule-block--blue {
    --jobs-accent: var(--jobs-blue);
    color: var(--jobs-blue);
}

.jobs-schedule-block--teal {
    --jobs-accent: var(--jobs-teal);
    color: var(--jobs-teal);
}

.jobs-schedule-block__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr);
    gap: 4rem;
    align-items: start;
}

.jobs-schedule-block__media img {
    display: block;
    width: 100%;
    height: 330px;
    object-fit: cover;
    border-radius: 4px;
}

.jobs-slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 1rem;
}

.jobs-slider-dots span {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background-color: #d8cbc6;
}

.jobs-slider-dots span.is-active {
    background-color: var(--jobs-accent);
}

.jobs-timeline-card__heading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    margin: 0 0 1.5rem;
    padding: 0.75rem 1rem;
    color: #fff;
    background-color: var(--jobs-accent);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.jobs-timeline {
    position: relative;
    display: grid;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
    list-style: none;
    color: #444;
}

.jobs-timeline::before {
    content: "";
    position: absolute;
    top: 1rem;
    bottom: 0.75rem;
    left: 4.95rem;
    width: 3px;
    background-color: #eaded9;
}

#nurse-schedule .jobs-timeline::before {
    display: none;
}

.jobs-timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 4rem 1rem minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    color: #444;
    font-size: 0.875rem;
    line-height: 1.6;
}

.jobs-timeline li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 4.87rem;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background-color: var(--jobs-accent);
}

.jobs-timeline time {
    grid-column: 1;
    color: var(--jobs-accent);
    font-family: monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.jobs-timeline li span {
    grid-column: 3;
}

.jobs-timeline-card__note {
    margin: 2rem 0 0;
    padding: 1rem 1.25rem;
    color: #555;
    background-color: var(--jobs-bg-soft);
    font-size: 0.8125rem;
    line-height: 1.8;
}

.jobs-work-list {
    display: grid;
    gap: 1rem;
    padding: 0;
    margin: 0;
    list-style: none;
    color: #444;
    font-size: 0.875rem;
    line-height: 1.8;
}

.jobs-work-list li {
    position: relative;
    padding-left: 1.15rem;
}

.jobs-work-list li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background-color: var(--jobs-accent);
}

/* ---------- FAQ ---------- */

.jobs-faq {
    padding: 5rem 4rem;
    background-color: #fff;
}

.jobs-faq__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.jobs-faq-list {
    max-width: 880px;
    margin: 0 auto;
}

.jobs-faq-item {
    margin-bottom: 1rem;
}

.jobs-faq-item__question {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) 32px;
    align-items: center;
    gap: 0.75rem;
    min-height: 54px;
    margin: 0;
    padding: 0.75rem 0.9rem;
    color: var(--jobs-text);
    background-color: var(--jobs-bg-soft);
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.6;
    cursor: pointer;
    list-style: none;
}

.jobs-faq-item__question::-webkit-details-marker {
    display: none;
}

.jobs-faq-item__mark {
    color: var(--jobs-coral);
    font-weight: 700;
}

.jobs-faq-item__question-text {
    color: var(--jobs-text);
}

.jobs-faq-item__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 3px;
    color: #fff;
    background-color: var(--jobs-coral);
    font: inherit;
    font-size: 1.25rem;
    line-height: 1;
}

.jobs-faq-item__toggle::before {
    content: "+";
}

.jobs-faq-item[open] .jobs-faq-item__toggle::before {
    content: "-";
}

.jobs-faq-item__answer {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.75rem;
    margin: 1rem 0 2rem;
    padding: 0 0.9rem;
    color: #444;
    font-size: 0.875rem;
    line-height: 2;
}

/* ---------- Related links ---------- */

.jobs-related {
    padding: 0 4rem;
    background-color: #ffffff;
}

.jobs-related__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.jobs-related__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.jobs-related-card {
    position: relative;
    display: grid;
    gap: 0.8rem;
    min-height: 150px;
    padding: 1.5rem;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
}

.jobs-related-card--coral {
    background-color: var(--jobs-coral);
}

.jobs-related-card--blue {
    background-color: var(--jobs-blue);
}

.jobs-related-card--teal {
    background-color: var(--jobs-teal);
}

.jobs-related-card__label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.jobs-related-card strong {
    align-self: center;
    font-size: 1.125rem;
    line-height: 1.5;
}

.jobs-related-card__arrow {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.16);
}

/* ---------- Voice ---------- */

.jobs-voice {
    position: relative;
    overflow: hidden;
    padding: 7rem 4rem 5rem;
    background-color: #fc9a86;
}

.jobs-voice__wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 110px;
    background-color: #fff;
    clip-path: ellipse(70% 54% at 50% 0%);
}

.jobs-voice__inner {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.jobs-section-heading--voice {
    position: relative;
    margin-bottom: 2rem;
    color: #fff;
}

.jobs-section-heading--voice .jobs-section-heading__label,
.jobs-section-heading--voice .jobs-section-heading__title {
    color: #fff;
}

.jobs-voice__illustration {
    position: absolute;
    top: -0.5rem;
    right: -5rem;
    width: 215px;
    height: auto;
}

.jobs-voice-list {
    display: grid;
    gap: 3rem;
}

.jobs-voice-card {
    display: grid;
    grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
    padding: 3.5rem;
    background-color: #fff;
    border-radius: 6px;
}

.jobs-voice-card:nth-child(n + 2) {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.jobs-voice-card__image {
    overflow: hidden;
    border-radius: 4px;
}

.jobs-voice-card__image img {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.jobs-voice-card__meta {
    display: grid;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    padding: 1rem 1.25rem;
    background-color: var(--jobs-bg-soft);
    color: #444;
    font-size: 0.875rem;
    line-height: 1.4;
    grid-auto-flow: column dense;
    justify-content: start;
}

.jobs-voice-card__meta span {
    color: #d7c9c5;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.jobs-voice-card__meta strong {
    color: currentColor;
    font-size: 0.9375rem;
}

.jobs-voice-card__meta em {
    padding-left: 1rem;
    border-left: 1px dashed #d8cbc6;
    font-style: normal;
}

.jobs-voice-card:nth-child(1) .jobs-voice-card__meta strong {
    color: var(--jobs-coral);
}

.jobs-voice-card:nth-child(2) .jobs-voice-card__meta strong {
    color: var(--jobs-blue);
}

.jobs-voice-card:nth-child(3) .jobs-voice-card__meta strong {
    color: var(--jobs-teal);
}

.jobs-voice-card__body p {
    margin: 0 0 1.2rem;
    color: #444;
    font-size: 0.875rem;
    line-height: 2;
}

.jobs-voice-card__body p:last-child {
    margin-bottom: 0;
}

.jobs-voice__button {
       display: flex;
    width: max-content;
    margin: 3rem auto 0;
    margin: 3rem auto 0;
    color: var(--jobs-coral);
}

.jobs-voice__button .split-cta__text,
.jobs-voice__button .split-cta__arrow {
    background-color: #fff;
    color: var(--jobs-coral);
}

.jobs-voice__button .split-cta__text {
    padding-left: 2rem;
}

/* Override the v2 section background (breadcrumb variant) on Jobs page */
.footer-banner.footer-banner--v2.footer-banner--jobs {
    background-color: #fc9a86;
}

.footer-banner.footer-banner--v2.footer-banner--jobs .footer-banner__bottom {
    border-radius: 0;
}
/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .page-hero--jobs .page-hero__collage-photo--1 {
        right: 28%;
        width: 250px;
        height: 150px;
    }

    .page-hero--jobs .page-hero__collage-photo--2 {
        width: 245px;
        height: 165px;
    }

    .jobs-position {
        padding-left: 4rem;
        padding-right: 4rem;
        gap: 3rem;
    }
}

@media (max-width: 900px) {
    .jobs-intro,
    .jobs-schedule,
    .jobs-faq,
    .jobs-related,
    .jobs-voice {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .jobs-intro__inner,
    .jobs-position,
    .jobs-schedule-block__grid,
    .jobs-related__cards,
    .jobs-voice-card {
        grid-template-columns: 1fr;
    }

    .jobs-intro__inner {
        gap: 2rem;
    }

    .jobs-position {
        padding: 4rem 2rem;
    }

    .jobs-position__image {
        order: -1;
    }

    .jobs-schedule-block__grid,
    .jobs-voice-card {
        gap: 2rem;
    }

    .jobs-voice__illustration {
        position: static;
        display: block;
        margin: -1rem 0 1.5rem auto;
        width: 150px;
    }
}

@media (max-width: 768px) {
    .page-hero--jobs .page-hero__collage {
        width: 65%;
    }

    .page-hero--jobs .page-hero__collage-photo--1 {
        top: 12%;
        right: 22%;
        width: 210px;
        height: 125px;
    }

    .page-hero--jobs .page-hero__collage-photo--2 {
        top: 42%;
        right: 3%;
        width: 205px;
        height: 135px;
    }

    .jobs-intro {
        border-radius: 24px 24px 0 0;
    }

    .jobs-page-nav,
    .jobs-schedule-nav {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .jobs-positions,
    .jobs-schedule,
    .jobs-faq,
    .jobs-related {
        padding-top: 4rem;
    }

    .jobs-section-heading--center {
        text-align: left;
    }

    .jobs-position__image img,
    .jobs-schedule-block__media img,
    .jobs-voice-card__image img {
        height: 240px;
    }

    .jobs-voice-card {
        padding: 1.5rem;
    }

    .jobs-voice-card__meta {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .jobs-voice-card__meta em {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 540px) {
    .page-hero--jobs .page-hero__collage {
        opacity: 0.55;
    }

    .jobs-intro,
    .jobs-schedule,
    .jobs-faq,
    .jobs-related,
    .jobs-voice {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .jobs-position {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .jobs-page-nav__item,
    .jobs-schedule-nav__item {
        padding-left: 1rem;
    }

    .jobs-timeline::before {
        left: 4.55rem;
    }

    .jobs-timeline li {
        grid-template-columns: 3.6rem 1rem minmax(0, 1fr);
    }

    .jobs-faq-item__question {
        grid-template-columns: 1.25rem minmax(0, 1fr) 28px;
    }

    .jobs-faq-item__answer {
        grid-template-columns: 1.25rem minmax(0, 1fr);
    }
}
