/**
 * らしくジョブ - スタイルシート
 * 転職支援サービスのランディングページ
 */

/* ========================================
   リセットとベーススタイル
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background: #FFFFFF;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   コンテナ
======================================== */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px 20px;
}

/* ========================================
   ヘッダー
======================================== */
.header {
    text-align: center;
    color: white;
    margin-bottom: 25px;
    padding: 20px 10px;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 1px;
    opacity: 0.95;
}

.main-copy {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sub-copy {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    opacity: 0.95;
}

.service-info {
    margin-bottom: 20px;
    opacity: 0.95;
}

.area-info {
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 500;
}

.job-info {
    font-size: 16px;
    font-weight: 500;
}

.job-info strong {
    font-size: 20px;
    font-weight: 800;
}

/* ========================================
   実績バッジ
======================================== */
.authority-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 14px 18px;
    border-radius: 16px;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.badge-number {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.badge-label {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.9;
    line-height: 1.3;
}

.header .cta-text {
    font-size: 16px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.3);
    padding: 14px 28px;
    border-radius: 50px;
    display: inline-block;
    margin-top: 12px;
    backdrop-filter: blur(10px);
}

/* ========================================
   マスコットキャラクター
======================================== */
.mascot {
    text-align: center;
    margin-bottom: 30px;
}

.mascot-icon {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ========================================
   プログレスバー
======================================== */
.progress-container {
    background: white;
    border-radius: 16px 16px 0 0;
    padding: 30px 20px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 35px;
}

.progress-line {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 4px;
    background: #e0e0e0;
    z-index: 0;
}

.progress-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #4A90E2;
    transition: width 0.4s ease;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #999;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step.active {
    border-color: #4A90E2;
    color: #4A90E2;
    background: white;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.step.completed {
    border-color: #4A90E2;
    background: #4A90E2;
    color: white;
}

/* ========================================
   フォームコンテンツ
======================================== */
.form-content {
    background: white;
    padding: 0 20px 35px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* 求人数バッジ */
.job-count-badge {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    border-radius: 12px;
    padding: 16px 24px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.job-count-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

.job-count-number {
    font-size: 24px;
    font-weight: 900;
    color: white;
    letter-spacing: 0.5px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.question {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    line-height: 1.5;
}


/* ========================================
   選択肢
======================================== */
.options {
    display: grid;
    gap: 14px;
    margin-bottom: 25px;
}

.option-2col {
    grid-template-columns: 1fr 1fr;
}

.option-1col {
    grid-template-columns: 1fr;
}

.option {
    background: white;
    border: 2px solid #E8F0F8;
    border-radius: 16px;
    padding: 22px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option:hover {
    border-color: #4A90E2;
    background: #F7FBFE;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.15);
}

.option:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.2);
}

.option.selected {
    border-color: #4A90E2;
    background: #EBF4FC;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

.option-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* ========================================
   テキスト入力
======================================== */
.input-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.input-hint {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/*岸本作成 Step4の説明テキスト2-1*/
.step4bottominfo_H {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.5;
}

/*岸本作成 Step4の説明テキスト2-2*/
.step4bottominfo_p {
	display: block;
	text-align: center;
    margin-top: 3px;
    font-size: 13px;
    color: #666;
    line-height: 1.3;
}

/*岸本作成 Step4の説明テキスト2-3*/
.step4bottominfo_pb {
	display: block;
	text-align: center;
	font-weight: 700;
    font-size: 16px;
    color: #333;
}

/*岸本作成 Step4の説明テキスト2-4*/
.step4bottominfo_p_style {
    color: #D53133;
	font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: white;
    min-height: 56px;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath fill='%23666' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px;
    padding-right: 48px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

input::placeholder {
    color: #999;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* ========================================
   ボタン
======================================== */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    font-family: inherit;
}

.btn-primary {
    background: #4A90E2;
    color: white;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    padding: 18px 40px;
    font-size: 18px;
    width: 100%;
    min-height: 56px;
}

.btn-primary:hover:not(:disabled) {
    background: #357ABD;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.3);
}

/* 送信ボタン（緑色） - デフォルトは無効状態（灰色） */
#submitBtn {
    background: #cccccc;
    color: #666666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: not-allowed;
    opacity: 0.6;
    transition: all 0.4s ease;
}

#submitBtn:disabled {
    background: #cccccc;
    color: #666666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

/* 入力完了時の有効化（緑色グラデーション） */
#submitBtn:not(:disabled) {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.5);
    cursor: pointer;
    opacity: 1;
}

#submitBtn:not(:disabled):hover {
    background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
}

#submitBtn:not(:disabled):active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.4);
}

/* 入力完了時のパルスアニメーション */
#submitBtn.btn-highlight {
    animation: submitButtonPulse 2s ease-in-out infinite;
}

@keyframes submitButtonPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(40, 167, 69, 0.8);
    }
}

/* ボタン内アイコン（追加用） */
.btn-icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 20px;
    vertical-align: middle;
}

.btn-secondary {
    background: transparent;
    color: #999;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    align-self: center;
    min-width: auto;
}

.btn-secondary:hover {
    color: #666;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

.btn-secondary:active {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   完了画面
======================================== */
.completion-message {
    text-align: center;
    padding: 40px 20px;
}

.completion-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.completion-message h2 {
    font-size: 26px;
    color: #4A90E2;
    margin-bottom: 15px;
    font-weight: 700;
}

.completion-message p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

/* ========================================
   フッター
======================================== */
.footer {
    background: rgba(0, 0, 0, 0.2);
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-top: auto;
}

.update-time {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-notes {
    margin-bottom: 20px;
    padding: 0 10px;
}

.note {
    font-size: 11px;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 8px;
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.copyright {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 15px;
}

.privacy-mark {
    width: 60px;
    height: auto;
    opacity: 0.9;
}

/* ========================================
   レスポンシブ - スマートフォン
======================================== */
@media (max-width: 768px) {
    body {
        background: #FFFFFF;
    }

    .container {
        padding: 0 12px 12px;
    }

    /* ヘッダー */
    .header {
        margin-bottom: 20px;
        padding: 15px 8px;
    }

    .brand-name {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .main-copy {
        font-size: 22px;
        margin-bottom: 14px;
        line-height: 1.5;
    }

    .sub-copy {
        font-size: 16px;
        margin-bottom: 14px;
    }

    .area-info {
        font-size: 13px;
    }

    .job-info {
        font-size: 15px;
    }

    .job-info strong {
        font-size: 18px;
    }

    .authority-badges {
        gap: 10px;
        margin: 16px 0;
    }

    .badge {
        padding: 12px 14px;
        min-width: 90px;
        border-radius: 14px;
    }

    .badge-number {
        font-size: 18px;
    }

    .badge-label {
        font-size: 10px;
    }

    .header .cta-text {
        font-size: 14px;
        padding: 12px 20px;
    }

    /* マスコット */
    .mascot {
        margin-bottom: 20px;
    }

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

    /* プログレスバー */
    .progress-container {
        padding: 20px 15px 18px;
        border-radius: 12px 12px 0 0;
    }

    .progress-steps {
        margin-bottom: 25px;
    }

    .step {
        width: 36px;
        height: 36px;
        font-size: 14px;
        border-width: 2px;
    }

    .step.active {
        box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    }

    .progress-line {
        top: 17px;
        height: 3px;
    }

    /* フォームコンテンツ */
    .form-content {
        padding: 0 15px 30px;
        border-radius: 0 0 12px 12px;
    }

    /* 質問テキスト */
    .question {
        font-size: 18px;
        margin-bottom: 25px;
        padding: 0 5px;
        line-height: 1.5;
    }
	
    /* 求人数バッジ */
    .job-count-badge {
        padding: 14px 20px;
        margin-bottom: 20px;
        border-radius: 10px;
    }

    .job-count-label {
        font-size: 12px;
    }

    .job-count-number {
        font-size: 22px;
    }

    /* 選択肢 */
    .options {
        gap: 12px;
    }

    .options.option-2col {
        grid-template-columns: 1fr 1fr;
    }

    .option {
        padding: 20px 12px;
        border-radius: 14px;
        border-width: 2px;
        min-height: 60px;
    }

    .option-label {
        font-size: 15px;
    }

    /* 入力フィールド */
    .input-group {
        margin-bottom: 18px;
    }

    .input-label {
        font-size: 14px;
        margin-bottom: 8px;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        padding: 16px 16px;
        font-size: 16px; /* iOSのズーム防止のため16px以上 */
        border-radius: 12px;
        min-height: 56px;
    }

    select {
        background-size: 14px;
        background-position: right 16px center;
    }

    /* ボタン */
    .button-group {
        gap: 10px;
        margin-top: 25px;
    }

    .btn-primary {
        padding: 18px 32px;
        font-size: 17px;
        min-height: 56px;
    }

    .btn-secondary {
        padding: 10px 16px;
        font-size: 13px;
    }

    /* 完了画面 */
    .completion-message {
        padding: 30px 15px;
    }

    .completion-icon {
        font-size: 60px;
        margin-bottom: 15px;
    }

    .completion-message h2 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .completion-message p {
        font-size: 15px;
        line-height: 1.7;
    }

    /* フッター */
    .footer {
        padding: 25px 15px;
    }

    .update-time {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .footer-notes {
        margin-bottom: 18px;
    }

    .note {
        font-size: 10px;
        line-height: 1.5;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-links a {
        font-size: 13px;
    }

    .copyright {
        font-size: 11px;
        margin-top: 15px;
    }
}

/* ========================================
   レスポンシブ - 小さいスマホ (375px以下)
======================================== */
@media (max-width: 375px) {
    .container {
        padding: 0 10px 10px;
    }

    .brand-name {
        font-size: 17px;
        margin-bottom: 14px;
    }

    .main-copy {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .sub-copy {
        font-size: 15px;
    }

    .area-info {
        font-size: 12px;
    }

    .job-info {
        font-size: 14px;
    }

    .job-info strong {
        font-size: 17px;
    }

    .badge {
        padding: 10px 12px;
        min-width: 85px;
    }

    .badge-number {
        font-size: 16px;
    }

    .badge-label {
        font-size: 9px;
    }

    .header .cta-text {
        font-size: 13px;
        padding: 10px 18px;
    }

    .progress-container {
        padding: 18px 12px 16px;
    }

    .step {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .question {
        font-size: 17px;
        margin-bottom: 20px;
    }

    /* 求人数バッジ */
    .job-count-badge {
        padding: 12px 18px;
        margin-bottom: 18px;
    }

    .job-count-label {
        font-size: 11px;
    }

    .job-count-number {
        font-size: 20px;
    }

    .option {
        padding: 18px 10px;
        min-height: 56px;
    }

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

    .btn-primary {
        padding: 17px 28px;
        font-size: 16px;
        min-height: 54px;
    }

    .btn-secondary {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ========================================
   レスポンシブ - 極小スマホ (320px以下)
======================================== */
@media (max-width: 320px) {
    .container {
        padding: 8px;
    }

    .footer {
        padding: 20px 10px;
    }

    .note {
        font-size: 9px;
    }

    .brand-name {
        font-size: 16px;
        margin-bottom: 12px;
        padding: 12px 6px;
    }

    .header {
        padding: 12px 6px;
    }

    .main-copy {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .sub-copy {
        font-size: 14px;
    }

    .area-info {
        font-size: 11px;
    }

    .job-info {
        font-size: 13px;
    }

    .job-info strong {
        font-size: 16px;
    }

    .authority-badges {
        gap: 8px;
    }

    .badge {
        padding: 8px 10px;
        min-width: 80px;
        border-radius: 12px;
    }

    .badge-number {
        font-size: 15px;
    }

    .badge-label {
        font-size: 9px;
    }

    .header .cta-text {
        font-size: 12px;
        padding: 9px 16px;
    }

    .progress-container {
        padding: 16px 10px 14px;
    }

    .step {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .form-content {
        padding: 0 12px 25px;
    }

    .question {
        font-size: 16px;
        margin-bottom: 18px;
    }

    /* 求人数バッジ */
    .job-count-badge {
        padding: 10px 16px;
        margin-bottom: 16px;
        border-radius: 8px;
    }

    .job-count-label {
        font-size: 10px;
    }

    .job-count-number {
        font-size: 18px;
    }

    .options {
        gap: 10px;
    }

    .option {
        padding: 16px 8px;
        min-height: 52px;
    }

    .option-label {
        font-size: 13px;
    }

    .btn-primary {
        padding: 16px 24px;
        font-size: 16px;
        min-height: 52px;
    }

    .btn-secondary {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* ========================================
   レスポンシブ - タブレット (769px - 1024px)
======================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 700px;
        padding: 20px;
    }

    .header h1 {
        font-size: 30px;
    }

    .options.option-2col {
        gap: 18px;
    }

    .option {
        padding: 26px 18px;
    }
}