/* 応募フォーム追加スタイル */
/* 画像プレビュー用スタイル */
.photoPreview {
    max-width: 200px;
    max-height: 150px;
    margin-top: 10px;
    border: 2px solid #b0b0b0;
    border-radius: 5px;
    display: none;
}

.photoPreview.show {
    display: block;
}

/* エラーメッセージ表示用スタイル */
.errorMessage {
    color: #e53935;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* 入力フィールドのエラー表示用スタイル */
.inputItemDataTextError {
    border-color: #e53935 !important;
    background-color: #ffebee !important;
}

/* フォーム項目名のスタイル */
.itemName {
    font-weight: bold;
}

/* 項目の備考・説明文のスタイル */
.itemRemarks {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* 注意書き用スタイル */
.itemRemarks.warning {
    color: #e53935;
    font-weight: bold;
    font-size: 13px;
    margin-top: 8px;
    padding: 8px;
    background-color: #ffebee;
    border-left: 4px solid #e53935;
    border-radius: 3px;
}

/* 必須マークのスタイル */
.inputRequired {
    color: #e53935;
    font-size: 12px;
    margin-left: 10px;
}

/* 任意マークのスタイル */
.inputOptional {
    color: #666;
    font-size: 12px;
    margin-left: 10px;
}

/* ラジオボタン用スタイル */
input[type="radio"] {
    margin-right: 8px;
    margin-left: 0;
    vertical-align: middle;
}

label {
    margin-right: 20px;
    vertical-align: middle;
    cursor: pointer;
    font-weight: normal;
}

/* ラジオボタンコンテナのスタイル */
.radio-group {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* チェックボックス用スタイル */
input[type="checkbox"] {
    margin-right: 8px;
    margin-left: 0;
    vertical-align: middle;
}

/* 応募ボタン用スタイル */
.apply-button {
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-button:enabled {
    background-color: #1a766b;
    color: white;
}

.apply-button:enabled:hover {
    background-color: #155e54;
    transform: translateY(-2px);
}

.apply-button:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

/* 同意チェックボックス用スタイル */
.agreement-section {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.agreement-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* テキストエリア用スタイル */
textarea.formmodule {
    width: 100%;
    min-height: 80px;
    padding: 15px;
    border: 2px solid #b0b0b0;
    border-radius: 5px;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
}

textarea.formmodule:focus {
    border-color: #1a766b;
    outline: none;
    box-shadow: 0 0 5px rgba(26, 118, 107, 0.3);
}

/* thanks.html用スタイル */
.thanks-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.thanks-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 20px;
}

.thanks-message {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.thanks-message p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.thanks-message p:last-child {
    margin-bottom: 0;
}

/* スマホでの文字サイズ調整 */
@media screen and (max-width: 768px) {
    .thanks-message p {
        font-size: 11px;
        line-height: 1.5;
    }
}

/* レスポンシブ表示制御クラス */
.pc-only {
    display: block;
}

.sp-only {
    display: none;
}

/* 説明セクション用スタイル */
.instruction-section {
    margin: 40px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.instruction-title {
    font-size: 18px;
    font-weight: bold;
    color: #1a766b;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #1a766b;
    padding-bottom: 10px;
}

.instruction-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.instruction-steps {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #1a766b;
}

.instruction-steps p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.instruction-text {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #1a766b;
}

.instruction-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.instruction-image {
    text-align: center;
    background-color: transparent;
}

.guide-image {
    max-width: 100%;
    height: auto;
    background-color: transparent;
    background-image: none;
}

.clickable-image {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.clickable-image:hover {
    transform: scale(1.02);
}

/* モーダル用スタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    color: #ccc;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* レスポンシブ対応 */
@media screen and (min-width: 768px) {
    .instruction-content {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .instruction-steps,
    .instruction-text {
        flex: 1;
    }
    
    .instruction-image {
        flex: 1;
        margin-left: 20px;
    }
}

@media screen and (max-width: 767px) {
    .instruction-section {
        margin: 20px 0;
        padding: 15px;
    }
    
    .instruction-title {
        font-size: 16px;
    }
    
    .instruction-steps p,
    .instruction-text p {
        font-size: 13px;
    }
}