/* 応募ページ専用スタイル */

/* ヒーローセクション */
.apply-hero {
    position: relative;
    padding: 90px 0 80px;
    background: linear-gradient(160deg, #ffffff 0%, #ecf3f8 45%, #e3eff7 100%);
    color: var(--ocean-deep);
    overflow: hidden;
}

.apply-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(83, 207, 254, 0.18), transparent 55%),
                radial-gradient(circle at bottom left, rgba(27, 141, 230, 0.12), transparent 60%);
}

.apply-hero__inner {
    position: relative;
    z-index: 1;
}

.apply-hero__copy .page-title {
    font-size: 36px;
    line-height: 1.4;
    letter-spacing: 0.03em;
    margin-bottom: 20px;
    color: var(--ocean-deep);
}

.apply-hero__lead {
    font-size: 16px;
    line-height: 1.9;
    color: rgba(5, 34, 53, 0.7);
    max-width: 780px;
}

/* 応募フォームセクション */
.apply-form-section {
    position: relative;
    padding: 80px 0 100px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.apply-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(3, 36, 54, 0.12);
    border: 1px solid rgba(3, 88, 113, 0.08);
}

/* フォームグループ */
.form-group {
    margin-bottom: 36px;
}

.form-group:last-of-type {
    margin-bottom: 0;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ocean-deep);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.required-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: white;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    border-radius: 3px;
}

/* 入力フィールド */
.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    color: #2c3e50;
    border: 2px solid #e0e8ef;
    background: #fafbfc;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--ocean-accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #a0aec0;
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.7;
}

/* 文字カウンター */
.form-counter {
    margin-top: 8px;
    font-size: 13px;
    color: #718096;
    text-align: right;
}

/* ファイルアップロード */
.file-upload-wrapper {
    position: relative;
}

.form-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 2px dashed #cbd5e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    border-color: var(--ocean-accent);
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
}

.form-file-input:focus + .file-upload-label {
    border-color: var(--ocean-accent);
    box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.1);
}

.file-upload-icon {
    font-size: 24px;
}

.file-upload-text {
    font-size: 15px;
    color: #4a5568;
    font-weight: 500;
}

.file-upload-label.has-file {
    border-color: var(--ocean-accent);
    background: linear-gradient(135deg, #e6f7fb 0%, #d1f0f7 100%);
}

.file-upload-label.has-file .file-upload-text {
    color: var(--ocean-deep);
}

/* ヘルプテキスト */
.form-help {
    margin-top: 8px;
    font-size: 13px;
    color: #718096;
}

/* チェックボックス */
.form-group--checkbox {
    padding: 24px;
    background: #f7fafc;
    border-left: 4px solid var(--ocean-accent);
}

.form-checkbox-label label{
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.7;
    color: #2d3748;
}

.form-checkbox {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--ocean-accent);
}

.checkbox-text {
    flex: 1;
}

.privacy-link {
    color: var(--ocean-accent);
    text-decoration: underline;
    transition: color 0.3s;
}

.privacy-link:hover {
    color: var(--ocean-light);
}

/* エラーメッセージ */
.form-error {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #e53e3e;
    font-weight: 500;
    min-height: 18px;
}

.form-group.has-error .form-input,
.form-group.has-error .form-textarea,
.form-group.has-error .file-upload-label {
    border-color: #e53e3e;
    background: #fff5f5;
}

/* 送信ボタン */
.form-submit {
    margin-top: 48px;
    text-align: center;
}

.apply-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(130deg, #1B8DE6 0%, #53CFFE 45%, #ABE1FA 100%);
    color: white;
    border: none;
    padding: 20px 60px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(27, 141, 230, 0.3);
}

.apply-submit-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(27, 141, 230, 0.4);
    background: linear-gradient(130deg, #2A9BF0 0%, #63D0FF 45%, #B8E7FC 100%);
}

.apply-submit-button:active:not(:disabled) {
    transform: translateY(-1px);
}

.apply-submit-button:disabled {
    background: linear-gradient(135deg, #a0aec0, #cbd5e0);
    cursor: not-allowed;
    box-shadow: none;
}

/* ========================================
   サンクスページ
   ======================================== */

/* サンクスセクション */
.thanks-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    min-height: 60vh;
}

.thanks-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 60px 50px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(3, 36, 54, 0.12);
    border: 1px solid rgba(3, 88, 113, 0.08);
}

.thanks-content .section-label {
    margin: 0 auto 28px;
}

.thanks-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    font-size: 40px;
    font-weight: bold;
    border-radius: 50%;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.thanks-title {
    font-size: 32px;
    color: var(--ocean-deep);
    margin-bottom: 30px;
    letter-spacing: 0.03em;
}

.thanks-message {
    text-align: left;
    margin-bottom: 40px;
}

.thanks-message p {
    font-size: 15px;
    line-height: 1.9;
    color: #4a5568;
    margin-bottom: 16px;
}

.thanks-message p:last-child {
    margin-bottom: 0;
}

/* 連絡先情報 */
.thanks-contact {
    padding: 24px;
    background: #f7fafc;
    border-left: 4px solid var(--ocean-accent);
    margin-bottom: 40px;
    text-align: left;
}

.contact-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ocean-deep);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.contact-info {
    font-size: 15px;
    color: #2d3748;
    margin-bottom: 8px;
}

.contact-info:last-child {
    margin-bottom: 0;
}

.contact-link {
    color: var(--ocean-accent);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--ocean-light);
    text-decoration: underline;
}

/* サンクスページのアクションボタン */
.thanks-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.thanks-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.06em;
}

.thanks-button.primary {
    background: linear-gradient(135deg, #0F5EAA, #52C4F9);
    color: white;
    box-shadow: 0 4px 12px rgba(10, 97, 130, 0.25);
}

.thanks-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 97, 130, 0.35);
}

.thanks-button.secondary {
    background: white;
    color: var(--ocean-deep);
    border: 2px solid var(--ocean-accent);
}

.thanks-button.secondary:hover {
    background: var(--ocean-accent);
    color: white;
    transform: translateY(-2px);
}

/* 関連リンク */
/* レスポンシブ */
@media (max-width: 1024px) {
    .apply-form {
        padding: 50px 40px;
    }

}

@media (max-width: 768px) {
    .apply-hero {
        padding: 60px 20px 40px;
    }

    .apply-hero__copy .page-title {
        font-size: 28px;
    }

    .apply-form-section {
        padding: 60px 20px;
    }

    .apply-form {
        padding: 40px 28px;
    }

    .form-label {
        font-size: 14px;
    }

    .form-input,
    .form-textarea {
        padding: 12px 16px;
        font-size: 14px;
    }

    .file-upload-label {
        padding: 16px 20px;
    }

    .apply-submit-button {
        width: 100%;
        padding: 18px 40px;
        font-size: 15px;
    }

    .thanks-section {
        padding: 60px 20px;
    }

    .thanks-content {
        padding: 40px 28px;
    }

    .thanks-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .thanks-title {
        font-size: 24px;
    }

    .thanks-actions {
        flex-direction: column;
    }

    .thanks-button {
        width: 100%;
    }

}
