/* ========================================
   求人ページ専用CSS
======================================== */

/* ヒーローセクション */
.recruit-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a4d7d 0%, #2563a8 50%, #3b82f6 100%);
    overflow: hidden;
}

.recruit-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23ffffff"></path><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23ffffff"></path><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23ffffff"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.1;
}

.recruit-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.3), transparent 70%);
}

.recruit-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.recruit-hero-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.4;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.recruit-hero-subtitle {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.8;
    opacity: 0.95;
}

/* フォトギャラリーセクション */
.photo-gallery-section {
    background: linear-gradient(135deg, #1a4d7d 0%, #2563a8 100%);
    padding: 80px 0;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 200px);
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.gallery-item-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.gallery-item-2 {
    grid-column: 3 / 5;
    grid-row: 1 / 2;
}

.gallery-item-3 {
    grid-column: 3 / 4;
    grid-row: 2 / 4;
}

.gallery-item-4 {
    grid-column: 4 / 5;
    grid-row: 2 / 4;
}

.gallery-item-5 {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.gallery-item-6 {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-text {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

/* メッセージセクション */
.message-section {
    background: white;
    padding: 100px 0;
}

.message-box {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.message-title {
    font-size: 36px;
    font-weight: 900;
    color: #1a4d7d;
    margin-bottom: 40px;
}

.message-text {
    font-size: 18px;
    line-height: 2;
    color: #334155;
}

.highlight-text {
    display: inline-block;
    background: linear-gradient(transparent 60%, #F7E55C 60%);
    padding: 0 10px;
    font-weight: 700;
    color: #1a4d7d;
    font-size: 20px;
}

/* ウェルカムセクション */
.welcome-section {
    background: linear-gradient(135deg, #2563a8 0%, #1a4d7d 100%);
    padding: 100px 0;
}

.section-title-white {
    font-size: 42px;
    font-weight: 900;
    text-align: center;
    color: white;
    margin-bottom: 60px;
}

.welcome-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
}

.welcome-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
}

.welcome-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #F7E55C;
}

.welcome-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.6;
}

.welcome-card p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
}

/* 募集要項セクション */
.requirements-section {
    background: #f8fafc;
    padding: 100px 0;
}

.section-title-dark {
    font-size: 42px;
    font-weight: 900;
    text-align: center;
    color: #1a4d7d;
    margin-bottom: 60px;
}

.requirements-box {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.requirements-table {
    width: 100%;
    border-collapse: collapse;
}

.requirements-table tr {
    border-bottom: 1px solid #e2e8f0;
}

.requirements-table tr:last-child {
    border-bottom: none;
}

.requirements-table th {
    background: #f1f5f9;
    padding: 25px 20px;
    text-align: left;
    font-weight: 700;
    color: #1a4d7d;
    font-size: 16px;
    width: 30%;
    vertical-align: top;
}

.requirements-table td {
    padding: 25px 20px;
    color: #334155;
    font-size: 16px;
    line-height: 1.8;
}

.salary-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.salary-main {
    font-size: 22px;
    font-weight: 900;
    color: #1a4d7d;
}

.salary-sub {
    font-size: 16px;
    color: #ef4444;
    font-weight: 700;
}

.requirements-note {
    font-size: 14px;
    color: #64748b;
}

/* CTAセクション */
.cta-section {
    background: linear-gradient(135deg, #1a4d7d 0%, #2563a8 100%);
    padding: 100px 0;
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.cta-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.4;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.8;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-cta-primary {
    background: white;
    color: #1a4d7d;
}

.btn-cta-primary:hover {
    background: #F7E55C;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cta-secondary:hover {
    background: white;
    color: #1a4d7d;
    transform: translateY(-3px);
}

.cta-note {
    font-size: 14px;
    opacity: 0.8;
}

.sp-only {
    display: none;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 180px);
    }

    .gallery-item-1 {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }

    .gallery-item-2 {
        grid-column: 3 / 4;
        grid-row: 1 / 3;
    }

    .gallery-item-3 {
        grid-column: 1 / 2;
        grid-row: 3 / 5;
    }

    .gallery-item-4 {
        grid-column: 2 / 4;
        grid-row: 3 / 4;
    }

    .gallery-item-5 {
        grid-column: 2 / 3;
        grid-row: 4 / 5;
    }

    .gallery-item-6 {
        grid-column: 3 / 4;
        grid-row: 4 / 5;
    }

    .welcome-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .recruit-hero {
        height: 60vh;
        min-height: 400px;
    }

    .recruit-hero-title {
        font-size: 32px;
    }

    .recruit-hero-subtitle {
        font-size: 16px;
    }

    .photo-gallery-section {
        padding: 50px 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, 150px);
        gap: 10px;
    }

    .gallery-item-1 {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }

    .gallery-item-2 {
        grid-column: 1 / 2;
        grid-row: 3 / 5;
    }

    .gallery-item-3 {
        grid-column: 2 / 3;
        grid-row: 3 / 5;
    }

    .gallery-item-4 {
        grid-column: 1 / 2;
        grid-row: 5 / 7;
    }

    .gallery-item-5 {
        grid-column: 2 / 3;
        grid-row: 5 / 6;
    }

    .gallery-item-6 {
        grid-column: 2 / 3;
        grid-row: 6 / 7;
    }

    .message-section {
        padding: 60px 0;
    }

    .message-title {
        font-size: 26px;
    }

    .message-text {
        font-size: 16px;
    }

    .highlight-text {
        font-size: 17px;
    }

    .welcome-section {
        padding: 60px 0;
    }

    .section-title-white {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .requirements-section {
        padding: 60px 0;
    }

    .section-title-dark {
        font-size: 28px;
    }

    .requirements-box {
        padding: 30px 20px;
    }

    .requirements-table th,
    .requirements-table td {
        display: block;
        width: 100%;
        padding: 15px 10px;
    }

    .requirements-table th {
        padding-bottom: 5px;
        background: transparent;
        font-size: 14px;
    }

    .requirements-table td {
        padding-top: 5px;
        padding-bottom: 20px;
    }

    .salary-main {
        font-size: 19px;
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-title {
        font-size: 28px;
    }

    .cta-text {
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-cta {
        width: 100%;
        justify-content: center;
    }

    .sp-only {
        display: inline;
    }
}

/* ========================================
   求人応募フォームセクション
======================================== */
.recruit-form-section {
    padding: 80px 0;
    background: #f8fafc;
}

.recruit-form-header {
    text-align: center;
    margin-bottom: 50px;
}

.recruit-form-intro {
    font-size: 16px;
    color: #64748b;
    line-height: 1.8;
    margin-top: 15px;
}

.recruit-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.recruit-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.recruit-form .form-group {
    margin-bottom: 20px;
}

.recruit-form .form-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.recruit-form .required {
    color: #ef4444;
    font-weight: 700;
}

.recruit-form .form-input,
.recruit-form .form-select,
.recruit-form .form-textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.recruit-form .form-input:focus,
.recruit-form .form-select:focus,
.recruit-form .form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.recruit-form .form-input.error {
    border-color: #ef4444;
}

.recruit-form .form-textarea {
    resize: vertical;
    min-height: 120px;
}

.recruit-form .form-privacy {
    margin: 30px 0;
}

.recruit-form .privacy-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    color: #475569;
}

.recruit-form .privacy-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.recruit-form .privacy-link {
    color: #3b82f6;
    text-decoration: underline;
}

.recruit-form .form-submit-btn {
    width: 100%;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #1a4d7d 0%, #2563a8 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.recruit-form .form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(26, 77, 125, 0.3);
}

.recruit-form .form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* フォームメッセージ */
.form-message {
    padding: 20px 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    animation: slideDown 0.3s ease;
}

.form-message.success {
    background: #dcfce7;
    border: 2px solid #22c55e;
    color: #166534;
}

.form-message.success i {
    font-size: 24px;
    color: #22c55e;
}

.form-message.success h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 700;
}

.form-message.success p {
    margin: 0;
    line-height: 1.6;
}

.form-message.error {
    background: #fee2e2;
    border: 2px solid #ef4444;
    color: #991b1b;
}

.form-message.error i {
    font-size: 24px;
    color: #ef4444;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブ - フォーム */
@media (max-width: 768px) {
    .recruit-form-section {
        padding: 50px 0;
    }

    .recruit-form-wrapper {
        padding: 30px 20px;
        border-radius: 10px;
    }

    .recruit-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .recruit-form .form-submit-btn {
        font-size: 16px;
        padding: 15px 30px;
    }

    .form-message {
        padding: 15px 20px;
        font-size: 14px;
    }

    .form-message.success h3 {
        font-size: 16px;
    }
}

