/* Recruitment new-grad / career pages.
   Layout/sidebar base: page-about.css. ENTRY block base: page-recruitment.css. */

.sn-breadcrumb-wrap,
.rng-title-band-wrap,
.ab-body-layout {
    max-width: 1280px;
    padding-right: 2rem;
    padding-left: 2rem;
    box-sizing: border-box;
}
.rng-title-band-wrap { margin: 24px auto 0; }

/* Contain horizontal overflow — only .rng-table-wrap scrolls sideways. */
.rng-main-wrap { overflow-x: hidden; }
.rng-main { min-width: 0; max-width: 100%; }

.rng-title-band {
    display: inline-block;
    background: #4DB1AF;
    color: #fff;
    font-size: 26px; font-weight: 700;
    line-height: 1;
    padding: 18px 48px 18px 28px;
    margin: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Sticky offset closer to header (page-about.css default is 129px). */
.ab-sidebar { top: 32px; }

.ab-sidebar-link.rng-side-child { padding-left: 30px; }
/* Parent rows (▶) render as <span> — kill hover state. */
.ab-sidebar-link.ab-sidebar-parent { cursor: default; }
.ab-sidebar-link.ab-sidebar-parent:hover { background: #E9ECEE; color: #006E6C; }

.rng-section { margin-bottom: 50px; }
.rng-section-last { margin-bottom: 0; }
.rng-section-title {
    display: flex; align-items: center; gap: 16px;
    font-size: 36px; font-weight: 700; color: #008F8D;
    letter-spacing: -0.02em;
    margin: 0 0 26px;
}
.rng-section-title::before,
.rng-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #008F8D;
}

/* border-collapse:separate is required so the rounded corner cells don't get
   clipped by overflow:hidden (collapse mode drops the outer border on rounds). */
.rng-table-wrap {
    background: #fff;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}
.rng-table {
    width: 100%;
    min-width: 640px; /* Force horizontal scroll on mobile instead of squashing cells. */
    border-collapse: separate;
    border-spacing: 0;
}
.rng-table th,
.rng-table td {
    border-right: 1px solid #CDD2D8;
    border-bottom: 1px solid #CDD2D8;
    padding: 14px 12px;
    font-size: 16px;
    line-height: 24px;
    color: #000;
    vertical-align: middle;
    text-align: left;
}
.rng-table th { border-left: 1px solid #CDD2D8; }
.rng-table tr:first-child th,
.rng-table tr:first-child td { border-top: 1px solid #CDD2D8; }
.rng-table tr:first-child th { border-top-left-radius: 8px; }
.rng-table tr:first-child td { border-top-right-radius: 8px; }
.rng-table tr:last-child th { border-bottom-left-radius: 8px; }
.rng-table tr:last-child td { border-bottom-right-radius: 8px; }
.rng-table th {
    background: #F5F6F7;
    width: 155px;
    min-width: 155px;
    font-weight: 700;
}
.rng-table td { overflow-wrap: break-word; }
/* Content cell stores one <p> per line via RichText — keep spacing tight. */
.rng-table td p { margin: 0; }
.rng-table td p:not(:last-child) {
    margin-bottom: 8px;
}
/* Only 仕事の内容 / 業務内容 row has dashed borders under item paragraphs (matches legacy .recruit-mb10) */
.rng-table tr.rng-row-job-desc td p:not(:last-child) {
    padding-bottom: 8px;
    border-bottom: 1px dashed #999999;
}

/* Editor-only WYSIWYG for the content field in the block sidebar. */
.rcr-sidebar-field { margin-bottom: 12px; }
.rcr-sidebar-field__label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    color: #1e1e1e;
}
.rcr-rte { border: 1px solid #949494; border-radius: 2px; overflow: hidden; background: #fff; }
.rcr-rte__toolbar {
    display: flex;
    gap: 2px;
    padding: 4px;
    background: #f0f0f0;
    border-bottom: 1px solid #ddd;
}
.rcr-rte__area {
    min-height: 90px;
    padding: 8px;
    font-size: 13px;
    line-height: 1.6;
    outline: none;
}
.rcr-rte__area:focus { box-shadow: inset 0 0 0 1px #1e1e1e; }
.rcr-rte__area p { margin: 0 0 6px; }
.rcr-rte__area ul { margin: 0 0 6px; padding-left: 20px; list-style: disc; }

.rng-table td a {
    color: #016FFF;
    font-weight: 700;
    text-decoration: underline;
}
.rng-table td a:hover { opacity: .8; }

.rng-flow-scroll { overflow-x: auto; }
.rng-flow {
    display: flex;
    min-width: 760px;
}
.rng-flow-step { flex: 1; min-width: 0; }
.rng-flow-step + .rng-flow-step { margin-left: -14px; }
.rng-flow-month {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #008F8D;
    line-height: 40px;
    margin-bottom: 4px;
}
.rng-flow-arrow {
    height: 111px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    color: #fff;
    padding: 10px 30px 10px 36px;
    box-sizing: border-box;
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%, 22px 50%);
}
.rng-flow-step:first-child .rng-flow-arrow {
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%);
    padding-left: 24px;
}
.rng-flow-step-1 .rng-flow-arrow { background: #107673; }
.rng-flow-step-2 .rng-flow-arrow { background: #199B98; }
.rng-flow-step-3 .rng-flow-arrow { background: #7EC8BF; }
.rng-flow-step-4 .rng-flow-arrow { background: #DDF0EF; color: #1C787C; }

.rng-contact p {
    font-size: 16px;
    line-height: 24px;
    color: #42526B;
    margin: 0;
}
.rng-contact a { color: #016FFF; text-decoration: none; }
.rng-contact a:hover { text-decoration: underline; }

.rng-entry-wrap { padding-bottom: 100px; }

/* Layout spacing shared by both newgrad + career (this file only enqueues on
   those two templates). Overrides base rules from page-about.css and
   page-recruitment.css (.rec-section--block :first/:last-of-type). */
.ab-body-layout { padding-bottom: 60px; }
section.rec-entry-section.rec-section--block {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 30px;
}
.rec-entry-box {
    padding-top: 42px;
    padding-bottom: 42px;
}

/* Match the sidebar-stack breakpoint used by other .ab-sidebar pages, which get
   it from their dual .sn-req-sidebar class (page-contact.css @991px). This
   sidebar can't add that class because it needs its own top:32px offset. */
@media (max-width: 991px) {
    .ab-body-layout { flex-direction: column; gap: 24px; }
    .ab-sidebar { width: 100%; position: static; top: auto; }
}
@media (max-width: 960px) {
    .rng-title-band-wrap { margin-top: 16px; }
}
@media (max-width: 768px) {
    .sn-breadcrumb-wrap,
    .rng-title-band-wrap,
    .ab-body-layout {
        padding-right: 20px;
        padding-left: 20px;
    }
    .ab-body-layout { padding-top: 24px; padding-bottom: 40px; }
    section.rec-entry-section.rec-section--block {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 20px;
    }
    .rec-entry-box { padding-top: 32px; padding-bottom: 32px; }
    /* Sidebar typography synced with /inquiry/ (.sn-mm-sidebar-* @768px). */
    .ab-sidebar-title { font-size: 14px; line-height: 20px; padding: 14px 16px; min-height: 52px; }
    .ab-sidebar-link { font-size: 14px; padding: 14px 16px; min-height: 52px; line-height: 20px; }
    .ab-sidebar-link.rng-side-child { padding-left: 24px; }
    .rng-title-band { font-size: 20px; padding: 14px 32px 14px 20px; }
    .rng-section-title { font-size: 24px; gap: 12px; }
    .rng-table th { width: 110px; min-width: 110px; font-size: 14px; padding: 12px 10px; }
    .rng-table td { font-size: 14px; padding: 12px 10px; }
    .rng-flow-month { font-size: 18px; line-height: 28px; }
    .rng-flow-arrow { font-size: 14px; line-height: 20px; padding: 10px 24px 10px 30px; }
    .rng-contact p { font-size: 14px; line-height: 22px; }
    .rng-entry-wrap { padding-bottom: 60px; }
}
@media (max-width: 480px) {
    .sn-breadcrumb-wrap,
    .rng-title-band-wrap,
    .ab-body-layout {
        padding-right: 16px;
        padding-left: 16px;
    }
    .ab-body-layout { padding-top: 16px; padding-bottom: 24px; }
    section.rec-entry-section.rec-section--block { margin-bottom: 16px; }
    .rec-entry-box { padding-top: 24px; padding-bottom: 24px; }
    /* Sidebar typography synced with /inquiry/ (.sn-mm-sidebar-* @480px). */
    .ab-sidebar-title { font-size: 13px; padding: 12px 14px; min-height: 48px; line-height: 20px; }
    .ab-sidebar-link { font-size: 13px; padding: 12px 14px; min-height: 48px; line-height: 20px; }
    .ab-sidebar-link.rng-side-child { padding-left: 20px; }
    .rng-title-band-wrap { margin-top: 12px; }
    .rng-title-band {
        display: block;
        font-size: 18px;
        padding: 12px 20px;
        text-align: left;
        border-radius: 4px;
    }
    .rng-section { margin-bottom: 36px; }
    .rng-section-title { font-size: 20px; gap: 10px; margin-bottom: 20px; }
    .rng-table th { width: 90px; min-width: 90px; font-size: 13px; padding: 10px 8px; }
    .rng-table td { font-size: 13px; padding: 10px 8px; }

    /* Drop the chevron on mobile — stack vertically, no horizontal scroll. */
    .rng-flow-scroll { overflow: visible; }
    .rng-flow { flex-direction: column; min-width: 0; }
    .rng-flow-step + .rng-flow-step { margin-left: 0; margin-top: 10px; }
    .rng-flow-arrow {
        clip-path: none;
        height: auto;
        min-height: 56px;
        padding: 14px 20px;
        border-radius: 6px;
        line-height: 20px;
        font-size: 13px;
    }
    .rng-flow-step:first-child .rng-flow-arrow { padding-left: 20px; clip-path: none; }
    .rng-flow-month { font-size: 15px; line-height: 22px; margin-bottom: 2px; }
    .rng-contact p { font-size: 13px; line-height: 20px; }
    .rng-entry-wrap { padding-bottom: 40px; }
}
