/* --- 変数定義 --- */
:root {
    --brand-light: #927bd6;
    --brand-dark: #1B152D;
    --text-color: #ffffff;
    --text-gray-300: #d1d5db;
    --text-gray-400: #9ca3af;
    --text-gray-500: #6b7280;
    --bg-black: #000000;
    --bg-footer: #050505;
}

body {
    background-color: #0A0A0A;
    font-size: 1.75rem;
}

.details {
    padding: 0 8px;
}

/* --- アニメーション --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}


/* --- 1. 募集タイトル --- */
.recruit-header {
    margin: 32px 0 64px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    margin-bottom: 12px;
    border-radius: 9999px;
    border: 1px solid var(--brand-light);
    color: var(--brand-light);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.hero-meta {
    display: inline-flex;
    gap: 24px;
    margin: 0 0 12px 12px;
    flex-wrap: wrap;
    animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.75rem;
    letter-spacing: 0.5px;
}

.hero-tag .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-light);
    flex-shrink: 0;
}

.hero-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 12px -3px rgba(0, 0, 0, 0.5);
    filter: grayscale(20%);
}

.main-title {
    font-size: 5rem;
    margin: 8px 0 16px 0;
}

.sub-title {
    font-size: 2.25rem;
    font-weight: normal;
    color: var(--text-gray-300);
    margin-top: 8px;
    display: block;
}

/* --- 2. アピールセクション --- */
.appeal-section {
    margin-bottom: 30px;
}

.appeal-flex {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    margin-bottom: 25px;
}

@media (min-width: 768px) {
    .appeal-flex {
        flex-direction: row;
    }

    .appeal-image-wrapper,
    .appeal-text-wrapper {
        width: 50%;
    }

    .appeal-flex:nth-child(even) {
        flex-direction: row-reverse;
    }
}

.appeal-image-wrapper {
    width: 100%;
    position: relative;
}

.appeal-image-bg {
    position: absolute;
    inset: 0;
    background-color: var(--text-gray-500);
    border-radius: 8px;
    filter: blur(16px);
    opacity: 0.2;
    transform: translate(3px, 3px);
}

.appeal-image {
    width: 100%;
    border-radius: 8px;
    position: relative;
    z-index: 10;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    box-shadow: 0 8px 12px -3px rgba(0, 0, 0, 0.5);
    filter: grayscale(20%);
}

.appeal-text-wrapper {
    width: 100%;
}

.appeal-heading {
    font-size: 3rem;
    margin: 0 0 16px 0;
    color: var(--brand-light);
    line-height: 1.4;
}

.appeal-text {
    color: #fff;
    line-height: 1.625;
    font-size: 1.75rem;
    margin-bottom: 16px;
}

/* --- 3. こんな人におすすめ --- */

.recommend-box {
    position: relative;
    background-image: radial-gradient(circle at top right, rgba(27, 21, 45, 0.4), transparent 40%),
        radial-gradient(circle at bottom left, rgba(27, 21, 45, 0.4), transparent 40%);
    border: 1px solid var(--brand-dark);
    border-radius: 16px;
    padding: 32px;
    overflow: hidden;
    margin-bottom: 40px;
}


.recommend-bg-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 256px;
    height: 256px;
    background-color: rgba(146, 123, 214, 0.1);
    border-radius: 50%;
    filter: blur(64px);
    transform: translate(50%, -50%);
}

.section-title {
    font-size: 3rem;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 10;
}

.section-title svg {
    color: var(--brand-light);
    width: 24px;
    height: 24px;
}

.check-list {
    list-style: none;
    font-size: 2rem;
    position: relative;
    z-index: 10;
    padding-left: 24px;
    color: #e5e7eb;
}

.check-list li {
    position: relative;
    padding-left: 12px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.check-list li:last-child {
    margin-bottom: 0;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: -28px;
    top: -4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(146, 123, 214, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
    color: white;
    margin-top: 2px;
}

/* ── DIAGNOSIS SECTION ── */
.diagnosis-section {
    padding: 10px 0 60px;
    position: relative;
}

.diagnosis-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.diagnosis-desc {
    margin-bottom: 15px;
}

.diagnosis-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--text-gray-300);
    border-radius: 14px;
    overflow: hidden;
}

.diag-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0;
    padding: 28px 36px;
    border-bottom: 1px solid var(--text-gray-300);
    transition: background 0.25s;
    position: relative;
}

.diag-row:last-child {
    border-bottom: none;
}

.diag-label {
    font-weight: 400;
    transition: color 0.3s;
    line-height: 1.5;
}

.diag-label.left {
    text-align: right;
    padding-right: 32px;
}

.diag-label.right {
    text-align: left;
    padding-left: 32px;
}

.diag-label.active {
    color: #fff;
    font-weight: 500;
}

.diag-dots {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.diag-dots::before {
    content: '';
    position: absolute;
    left: 6px;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 1px;
    background: var(--text-gray-500);
    z-index: 0;
}

.diag-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--text-gray-300);
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
    flex-shrink: 0;
}

.diag-dot:hover {
    border-color: var(--brand-light);
    transform: scale(1.15);
}

.diag-dot.selected {
    background: var(--brand-light);
    border-color: var(--brand-light);
    box-shadow: 0 0 0 4px rgba(146, 123, 214, 0.25), 0 0 14px rgba(146, 123, 214, 0.4);
    transform: scale(1.2);
}

.diagnosis-result {
    margin-top: 24px;
    border: 1px solid var(--text-gray-300);
    border-radius: 14px;
    padding: 36px 40px;
    transition: border-color 0.4s;
}

.diagnosis-result.active {
    border-color: var(--brand-light);
}

.result-bar-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.result-pole {
    letter-spacing: 1px;
    color: var(--gray-text);
    white-space: nowrap;
    min-width: 70px;
}

.result-pole:last-child {
    text-align: right;
}

.result-track {
    flex: 1;
    height: 6px;
    background: var(--text-gray-300);
    border-radius: 999px;
    position: relative;
}

.result-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--brand-dark), var(--brand-light));
    border-radius: 999px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.result-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-light);
    border: 3px solid var(--black);
    box-shadow: 0 0 0 2px var(--brand-light), 0 0 12px rgba(146, 123, 214, 0.5);
    left: 0%;
    transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s;
    opacity: 0;
}

.diagnosis-result.active .result-thumb {
    opacity: 1;
}

.result-msg {
    text-align: center;
    color: var(--gray-text);
    min-height: 1.4em;
    transition: opacity 0.4s;
}

.result-msg strong {
    color: var(--brand-light);
    font-weight: 600;
}

/* --- 入社までの流れ --- */

.recruit-step {
    padding: 5rem 0 8rem;
    max-width: 1280px;
    margin: 0 auto;
    margin-bottom: 50px;
}

.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.section-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: #927bd6;
}

.section-eyebrow span {
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #927bd6;
    font-weight: 500;
}

/* ─── SECTION TITLE ──────────────────────────────── */
.recruit-step .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 40px;
    letter-spacing: 0.02em;
}

.recruit-step .section-title em {
    font-style: italic;
    color: #927bd6;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 3.5rem;
    letter-spacing: 0.04em;
}


/* ─── STEPS GRID ─────────────────────────────────── */
.steps-grid {
    display: flex;
    gap: 24px;
}


/* Arrow divider */
.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #927bd6;
    align-self: center;
}

.step-arrow svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ─── STEP CARD ──────────────────────────────────── */
.step-card {
    position: relative;
    flex: 1;
    padding: 24px;
    border: 1px solid rgba(146, 123, 214, 0.25);
    border-radius: 12px;
    color: #fff;
}

/* ===== バッジ ===== */
.step-card:nth-child(1)::before,
.step-card:nth-child(3)::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 999px;
  background: #927bd6;
  color: #fff;
  white-space: nowrap;
  z-index: 2;
}

/* 文言 */
.step-card:nth-child(1)::before {
    content: "採用決定";
}

.step-card:nth-child(3)::before {
    content: "試用期間終了";
}

.step-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid rgba(146, 123, 214, 0.5);
}

/* Step number */
.step-num {
    width: 100%;
    color:#927bd6;
    text-align: center;
    margin: 0 0 1rem;
    font-size: 14px;
}

.step-heading {
    font-size: 2.5rem;
    font-weight: 100;
    text-align: center;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.step-body {
    font-size: 1.75rem;
    color: #FFF;
    line-height: 1.8;
}

/* --- 4. 募集要項テーブル --- */
.requirements-section {
    margin-bottom: 96px;
}

.requirements-section .section-title {
    border-bottom: 1px solid var(--brand-dark);
    padding-bottom: 16px;
}

.table-responsive {
    overflow-x: auto;
}

.req-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

.req-table tr {
    border-bottom: 1px solid var(--brand-dark);
    transition: background-color 0.3s;
}

.req-table th {
    padding: 20px 16px;
    width: 33.333%;
    font-size: 2.25rem;
    color: var(--text-gray-300);
    font-weight: 500;
    vertical-align: top;
}

.req-table td {
    padding: 20px 16px;
    font-size: 2rem;
    color: var(--text-gray-300);
    line-height: 1.625;
}

.text-small {
    font-size: 1.75rem;
    color: var(--text-gray-400);
    display: block;
    margin-top: 4px;
}

/* --- 5. 応募ボタン (CTA) --- */
.contact-section {
    line-height: 1.8;
}

.contact-section .title-h2 {
    margin-block-start: 2rem;
}

.cta-section {
    text-align: center;
    margin-top: 48px;
    padding-bottom: 48px;
}

.cta-text {
    margin-bottom: 24px;
    color: var(--text-gray-300);
}

.btn-apply {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    font-size: 1.125rem;
    font-weight: bold;
    color: #ffffff;
    background: linear-gradient(to right, var(--brand-dark), #3b2b6b);
    border-radius: 9999px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(146, 123, 214, 0.3);
    transition: all 0.3s;
}

.btn-apply:hover {
    background: linear-gradient(to right, #3b2b6b, var(--brand-dark));
    box-shadow: 0 0 30px rgba(146, 123, 214, 0.6);
    transform: translateY(-4px);
}

.btn-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
}

.btn-apply:hover .btn-shimmer {
    animation: shimmer 1.5s infinite;
}

.btn-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-content svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.btn-apply:hover .btn-content svg {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .recruit-header {
        margin: 20px 0 60px;
    }

    .appeal-flex {
        gap: 0;
    }

    .appeal-heading {
        font-size: 2.75rem;
    }

    .appeal-image {
        margin-bottom: 20px;
    }

    .main-title {
        font-size: 3rem;
    }

    .sub-title {
        font-size: 1.75rem;
    }

    .appeal-section {
        margin-bottom: 20px;
    }

    .recommend-box {
        padding: 20px 10px;
        margin-bottom: 50px;
    }

    .check-list {
        font-size: 1.75rem;
    }

    .check-list li {
        margin-bottom:30px;
    }

    .diagnosis-section {
        padding: 10px 5px 40px;
    }

    .diag-row {
        padding: 20px 8px;
    }

    .diag-label {
        font-size: 1.5rem;
    }

    .diag-label.left {
        padding-right: 16px;
    }

    .diag-label.right {
        padding-left: 16px;
    }

    .diag-dots {
        gap: 8px;
    }

    .diag-dot {
        width: 16px;
        height: 16px;
    }

    .result-bar-wrap {
        gap: 12px;
    }

    .result-pole {
        font-size: 1.5rem;
        min-width: auto;
        width: 100px;
        white-space: wrap;
    }

    .diagnosis-result {
        padding: 24px 10px;
    }

    .recruit-step {
        padding: 20px 0;
    }

    .steps-grid {
        flex-direction: column;
            gap: 32px;
    }
  .step-card:not(:last-child)::after {
    top: auto;
    bottom: -12px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid rgba(146, 123, 214, 0.5);
    border-bottom: none;
  }

  .step-num {
    margin: 0 0 1rem;
  }

    .req-table th {
        font-size: 2rem;
    }

    .req-table td {
        font-size: 1.75rem;
    }
}