/*
Theme Name: Twenty Sixteen Child (Miki-Mori)
Theme URI: https://group.miki-mori.co.jp/
Description: Twenty Sixteen の子テーマ。採用エントリーフォーム (CF7) → Google Drive / Sheets 連携用。
Author: Miki-Mori
Author URI: https://group.miki-mori.co.jp/
Template: twentysixteen
Version: 1.7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentysixteen-child
*/

/* =============================================================
   採用エントリーフォーム (/entry/) 専用スタイル
   ※ .entry-form-wrap でスコープしているので他ページには影響しない
   ============================================================= */

.entry-form-wrap {
    max-width: 720px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: #333;
    line-height: 1.7;
    font-size: 16px;
}
.entry-form-wrap h1.entry-title {
    font-size: 28px;
    font-weight: 900;
    color: #111;
    margin: 0 0 12px;
    padding-bottom: 16px;
    border-bottom: 3px solid #46a052;
    letter-spacing: 0.02em;
}
.entry-form-wrap .entry-lead {
    font-size: 14px;
    color: #555;
    margin: 0 0 32px;
    line-height: 1.7;
}

/* H-1: 必須マークを赤バッジ化 */
.entry-form-wrap .entry_req {
    display: inline-block;
    background: #d32f2f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 3px;
    vertical-align: middle;
    line-height: 1;
    transform: translateY(-1px);
}

/* セクション */
.entry-form-wrap .entry_sec {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

/* M-1: ラベル左の緑ボーダー */
.entry-form-wrap .entry_label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 0 0 14px;
    padding: 8px 0 8px 14px;
    line-height: 1;
}
.entry-form-wrap .entry_label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(calc(-50% - 1px));
    width: 4px;
    height: 1.1em;
    background: #46a052;
    border-radius: 2px;
}

.entry-form-wrap .entry_form {
    margin-bottom: 10px;
}
.entry-form-wrap .entry_form.entry_row_2 {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.entry-form-wrap .entry_form.entry_row_2 .entry_col {
    flex: 1;
    min-width: 220px;
    margin: 0;
}
.entry-form-wrap .entry_sublabel {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #555;
    font-weight: 500;
}
.entry-form-wrap .entry_note {
    font-size: 12px;
    color: #888;
    margin: 6px 0 0;
    line-height: 1.6;
}

/* 入力欄: モバイルタップ領域確保 + iOS zoom 回避 (16px) */
.entry-form-wrap input[type="text"],
.entry-form-wrap input[type="email"],
.entry-form-wrap input[type="tel"],
.entry-form-wrap input[type="date"],
.entry-form-wrap input[type="number"],
.entry-form-wrap textarea,
.entry-form-wrap select {
    width: 100%;
    max-width: 480px;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    color: #333;
}
.entry-form-wrap input:focus,
.entry-form-wrap textarea:focus,
.entry-form-wrap select:focus {
    border-color: #46a052;
    outline: none;
    box-shadow: 0 0 0 3px rgba(70, 160, 82, 0.15);
}
.entry-form-wrap textarea {
    max-width: 640px;
    min-height: 100px;
    resize: vertical;
    line-height: 1.7;
}
.entry-form-wrap input[readonly] {
    background: #f5f5f5;
    color: #444;
    cursor: default;
}

/* 同意エリア */
.entry-form-wrap .entry_consent_sec {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin-top: 24px;
    border: 0;
}
.entry-form-wrap .entry_privacy_summary {
    font-size: 12px;
    color: #555;
    margin: 0 0 12px;
    line-height: 1.7;
}
.entry-form-wrap .entry_consent_sec a {
    color: #46a052;
    text-decoration: underline;
}
.entry-form-wrap .entry_consent_sec .wpcf7-list-item {
    margin: 0;
}

/* H-3: 送信ボタン フルワイド＋ローディング */
.entry-form-wrap .entry_btn_wrap {
    text-align: center;
    margin: 32px 0 16px;
}
.entry-form-wrap .entry_submit_btn,
.entry-form-wrap input.entry_submit_btn[type="submit"] {
    display: block;
    width: 100%;
    max-width: 420px;
    height: 56px;
    margin: 0 auto;
    background: #46a052;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    letter-spacing: 0.08em;
    -webkit-appearance: none;
    appearance: none;
}
.entry-form-wrap .entry_submit_btn:hover,
.entry-form-wrap input.entry_submit_btn[type="submit"]:hover {
    background: #3a8a44;
}
.entry-form-wrap .entry_submit_btn:disabled,
.entry-form-wrap input.entry_submit_btn[type="submit"]:disabled {
    background: #9ec3a5;
    cursor: wait;
    opacity: 0.85;
}

/* エラー表示 */
.entry-form-wrap .wpcf7-not-valid-tip {
    color: #d32f2f;
    font-size: 13px;
    margin-top: 6px;
    display: block;
    font-weight: 500;
}
.entry-form-wrap .wpcf7-not-valid {
    border-color: #d32f2f !important;
    background: #fff8f8;
}
.entry-form-wrap .wpcf7-response-output {
    margin: 24px 0 !important;
    padding: 14px 16px !important;
    border-radius: 6px;
    border: 2px solid !important;
    font-size: 14px;
}

/* Drag and Drop ファイルアップロード領域 */
.entry-form-wrap .codedropz-upload-wrapper {
    max-width: 640px;
}
.entry-form-wrap .codedropz-upload-container {
    border: 2px dashed #bbb !important;
    border-radius: 6px !important;
    background: #fafafa !important;
    padding: 20px !important;
    text-align: center;
}
.entry-form-wrap .codedropz-upload-container h3 {
    font-size: 15px !important;
    font-weight: 600 !important;
    margin: 0 0 6px !important;
    color: #555 !important;
    line-height: 1.4 !important;
}
.entry-form-wrap .codedropz-upload-container .codedropz-upload-inner {
    font-size: 14px;
}
.entry-form-wrap .codedropz-upload-container span,
.entry-form-wrap .codedropz-upload-text-wrap span {
    font-size: 13px !important;
    color: #888 !important;
    margin: 0 !important;
    display: inline-block;
}
.entry-form-wrap .codedropz-btn-wrap a,
.entry-form-wrap .codedropz-upload-btn {
    font-size: 14px !important;
    color: #46a052 !important;
    font-weight: 500;
    text-decoration: underline;
}
.entry-form-wrap .codedropz-upload-container .has-files-count {
    font-size: 11px !important;
    color: #999 !important;
    margin-top: 6px !important;
    display: block;
}
.entry-form-wrap .dnd-upload-status {
    margin-top: 8px;
    font-size: 13px;
}
.entry-form-wrap .dnd-upload-image {
    max-width: 60px;
    max-height: 60px;
    margin-right: 8px;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .entry-form-wrap {
        margin: 24px auto;
        padding: 0 16px;
    }
    .entry-form-wrap h1.entry-title {
        font-size: 22px;
    }
    .entry-form-wrap .entry_form.entry_row_2 .entry_col {
        min-width: 100%;
    }
    .entry-form-wrap input[type="text"],
    .entry-form-wrap input[type="email"],
    .entry-form-wrap input[type="tel"],
    .entry-form-wrap input[type="date"],
    .entry-form-wrap textarea,
    .entry-form-wrap select {
        max-width: 100%;
    }
}

/* ===== Entry Page Header / Footer (導線) ===== */
.entry-page-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
    margin-bottom: 8px;
}
.entry-page-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.entry-page-logo {
    display: inline-block;
    line-height: 0;
}
.entry-page-logo img {
    height: 40px;
    width: auto;
    display: block;
}
.entry-page-back-link {
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s ease;
}
.entry-page-back-link:hover,
.entry-page-back-link:focus {
    color: #46a052;
    text-decoration: underline;
}
.entry-page-footer {
    background: #f3f4f6;
    border-top: 1px solid #e5e7eb;
    padding: 24px 0;
    margin-top: 60px;
}
.entry-page-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}
.entry-page-copyright {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}
@media (max-width: 600px) {
    .entry-page-header-inner {
        flex-direction: column;
        gap: 10px;
    }
    .entry-page-logo img {
        height: 32px;
    }
    .entry-page-back-link {
        font-size: 13px;
    }
    .entry-page-footer {
        margin-top: 40px;
    }
}

/* ===== 採用記事 応募ボタン (案D: グラデ+矢印+影) ===== */
/* 設置場所: 選考フローセクション(グレー背景)内、「内定」の直後 */
/* 親テーマ twentysixteen の a スタイル(色/下線/box-shadow)を全部上書き */
.recruit-apply-wrap {
    text-align: center;
    margin: 50px 0 10px;
}
.recruit-apply-btn,
.recruit-apply-btn:link,
.recruit-apply-btn:visited {
    display: inline-block !important;
    width: 380px !important;
    max-width: 90% !important;
    box-sizing: border-box !important;
    background: linear-gradient(90deg, #46a052 0%, #2d7a3a 100%) !important;
    background-color: #46a052 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 26px 0 !important;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    line-height: 1.4 !important;
    border: none !important;
    border-radius: 60px !important;
    box-shadow: 0 4px 14px rgba(70, 160, 82, 0.4) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    text-shadow: none !important;
    text-align: center !important;
}
.recruit-apply-btn:hover,
.recruit-apply-btn:focus,
.recruit-apply-btn:active {
    background: linear-gradient(90deg, #3a8845 0%, #246031 100%) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(70, 160, 82, 0.5) !important;
    transform: translateY(-2px);
}
.recruit-apply-btn::after {
    content: " →";
    margin-left: 4px;
}
@media (max-width: 600px) {
    .recruit-apply-btn,
    .recruit-apply-btn:link,
    .recruit-apply-btn:visited {
        width: 90% !important;
        padding: 22px 0 !important;
        font-size: 19px !important;
    }
}
