body {
    margin-top: 0;
}

.sub-main .sub-titlle {
    background: #009991;
}

#hearing_form .point {
    clip-path: inset(0);
    margin-top: 0;
    margin-bottom: 0;
    padding: 150px 0;
    background: #eaf4f4;
}

/* ===============================
   基本レイアウト
================================ */
.contactTable {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
    color: #333333;
    font-size: 1.6rem;
    border-collapse: collapse;
}

.contactTable th, .contactTable td {
    padding: 14px 3%;
    border-bottom: 1px solid #cccccc;
    vertical-align: middle;
}

.contactTable th {
    width: 35%;
    line-height: 1.6;
    letter-spacing: .2rem;
    text-align: left;
}

/* ===============================
   必須マーク
================================ */
.must {
    margin-left: 6px;
    color: #e63946;
    font-weight: 700;
    font-size: 1.5rem;
}

/* ===============================
   入力ブロック
================================ */
.wrap {
    display: inline;
}

.Wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100%;

    gap: 8px;
}

span.label, span.title {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    line-height: 1.4;
}

/* ===============================
   基本入力欄
================================ */
.contactTable input[type="text"], .contactTable input[type="email"], .contactTable input[type="tel"], .contactTable input[type="number"], .contactTable input[type="date"], .contactTable input[type="time"], .contactTable textarea {
    width: 100%;
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    background-color: #ffffff;
    font-size: 1.6rem;
    line-height: 1.5;
    transition: border-color .3s ease, background .3s ease, box-shadow .2s ease;
}

.contactTable input:focus, .contactTable textarea:focus {
    border-color: #009991;
    box-shadow: 0 0 0 3px rgba(0, 153, 145, .15);
    background-color: #f0fdfa;
    outline: none;
}

.contactTable input:focus-visible, .contactTable textarea:focus-visible {
    outline: 2px solid #00b3a7;

    outline-offset: 2px;
}

.contactTable input[type="number"] {
    width: 15%;
    min-width: 90px;
    margin-right: 15px;
    text-align: right;
}

.contactTable input[type="date"] {
    width: 30%;
    min-width: 180px;
    margin-right: 15px;
}

.contactTable textarea {
    min-height: 110px;
    resize: vertical;
}

/* ===============================
   勤務時間 input
================================ */
.time-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 10px;
}

.time-wrapper input[type="time"] {
    width: 22%;
    padding: 8px 10px;
    text-align: center;
}

.time-wrapper .line {
    color: #666666;
    font-size: 1.5rem;
}

/* ===============================
   ラジオ・チェックボックス
================================ */
.wpcf7-checkbox, .wpcf7-radio {
    display: flex;
    flex-wrap: wrap;

    gap: 1em;
}

.wpcf7-list-item {
    display: flex !important;
    align-items: center;
    margin: 0 !important;
}

.wpcf7-list-item label {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    background-color: #ffffff;
    font-size: 1.6rem;
    line-height: 1.4;
    cursor: pointer;
    transition: all .3s ease;

    user-select: none;
}

.wpcf7-list-item input[type="checkbox"], .wpcf7-list-item input[type="radio"] {
    transform: scale(1.2);
    margin-right: 8px;

    accent-color: #009991;
}

.wpcf7-list-item input:checked + label {
    border-color: #009991;
    background-color: #f0fdfa;
    color: #009991;
    font-weight: 600;
}

.wpcf7-list-item label:hover {
    border-color: #009991;
    background-color: #f9f9f9;
}

/* ========== 丸型チェックボックススタイル ========== */
.wpcf7 .radio-like input[type="checkbox"] {
    position: relative;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 1px solid #595959;
    border-radius: 50%;
    cursor: pointer;
    transition: all .2s ease;

            appearance: none;
    -webkit-appearance: none;
       -moz-appearance: none;
}

.wpcf7 .radio-like input[type="checkbox"]:hover {
    border-color: #009991;
    background-color: #f9f9f9;
}

.wpcf7 .radio-like input[type="checkbox"]:checked {
    border-color: #009991;
    background-color: #f9f9f9;
}

.wpcf7 .radio-like input[type="checkbox"]:checked::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #009991;
    content: "";
}



/* ===============================
   「その他」入力欄
================================ */
.contactTable .input div[id*="-other-wrap"] {
    margin-top: 10px;
    transition: all .3s ease;
}

@media screen and (max-width: 768px) {
    .contactTable .input div[id*="-other-wrap"] {
        width: 100%;
    }
}

/* ===============================
   学歴・職務経歴
================================ */
#career-wrapper, #studies-wrapper {
    margin-top: 10px;
    padding: 15px;
    border-radius: 8px;
    background: #fafafa;
}

#career-wrapper .career-block, #studies-wrapper .studies-block {
    margin-bottom: 15px;
    padding: 15px;
    border-bottom: 1px dashed #dddddd;
}

#career-wrapper .career-block:last-child, #studies-wrapper .studies-block:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.studies-wrap {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

#career-wrapper .career-wrap, #studies-wrapper .stuies-wrap {
    margin: 10px 0;
}

/* ===============================
   追加ボタン
================================ */
#add-career, #add-studies {
    display: inline-block;
    padding: 9px 18px;
    border: none;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 153, 145, .2);
    background: linear-gradient(90deg, #009991, #00b3a7);
    color: #ffffff;
    font-weight: 500;
    font-size: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all .25s ease;
}

#add-career:hover, #add-studies:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 153, 145, .25);
    background: linear-gradient(90deg, #00a59b, #00c2b8);
}

/* ===============================
   区切り線
================================ */
.divider {
    margin: 16px 0;
    border-bottom: 1px solid #cccccc;
}



@media (max-width: 768px) {
tr {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contactTable th {
    width: 80vw;
    text-align: center;
}

.contactTable th, .contactTable td {
    width: 90vw;
}

span.label, span.title {
    text-align: center;
}
.time-wrapper input[type="time"] {
    width:40%;
}

#add-career, #add-studies {
    display: block;
    margin: 0 auto;
}

.btn-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

#handling {
    width: 80vw;
}

#handling ol {
    width: 65vw;
}
}









/* ボタン */
.btn-wrapper {
    display: flex;
    justify-content: space-evenly;
    margin-top: 60px;
}


.submit-wrapper, .confirm-wrapper {
    position: relative;
}

.submit-wrapper::before {
    position: absolute;
    top: 15px;
    right: 15px;
    bottom: -15px;
    left: -15px;
    z-index: 0; /* 背景として下に配置 */
    border-radius: 40px;
    background-color: #eaeaea;
    content: "";
    transition: all .3s ease;
}

.confirm-wrapper::before {
    opacity: 0;
    position: absolute;
    top: 15px;
    right: 15px;
    bottom: -15px;
    left: -15px;
    z-index: 0; /* 背景として下に配置 */
    border-radius: 40px;
    background-color: #eaeaea;
    content: "";
    transition: all .3s ease;
}

.edit-btn-wrapper::before {
    position: absolute;
    top: 15px;
    right: -15px;
    bottom: -15px;
    left: 15px;
    z-index: 0;
    border-radius: 40px;
    background-color: #eaeaea;
    content: "";
    transition: all .3s ease;
}

.confirm-wrapper.active-before::before {
    opacity: 1;
}

.submit-wrapper:hover::before, .confirm-wrapper:hover::before {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.submit {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    width: fit-content;
    padding: 0;
    border: 4px solid #009991;
    border-radius: 40px;
    background: transparent;
    cursor: pointer;
}

.contact-btn {
    position: relative;
    z-index: 1;
    padding: 10px 80px 30px;
    color: #063149;
    font-size: 1.5rem;
    text-align: center;
}

/* CONFIRMATION / EDIT / SEND ラベル */
.confirmation-wrapper::after, .edit-wrapper::after, .submit-wrapper-inner::after {
    position: absolute;
    top: 65%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    text-align: center;
}

.confirmation-wrapper::after {
    z-index: 1;
}

.confirmation-wrapper.active-after::after {
    z-index: 0;
}

.confirmation-wrapper::after {
    left: 30%; 
    content: "CONFIRMATION";
}
.edit-wrapper::after {
    left: 40%; 
    content: "EDIT";
}
.submit-wrapper-inner::after {
    left: 40%; 
    content: "SEND";
}

/* 横線 */
#submitBtnWrapper .submit::after, #editBtnWrapper .submit::after {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 4px;
    background: #009991;
    content: "";
}

#confirmBtnWrapper .submit::after {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 4px;
    content: "";
}

#confirmBtnWrapper .submit.active-after::after {
    background: #009991;
}

#confirmBtnWrapper .submit::after, #submitBtnWrapper .submit::after {
    left: 100%;
}

#editBtnWrapper .submit::after {
    right: 100%;
}

.confirmation-btn:disabled {
    border-radius: 40px;
    background: #cccccc;
    cursor: not-allowed;
}

/* hover アニメーション */
.submit:hover::after, .edit:hover::after {
    animation: border_anim .5s linear forwards;
}

.submit::after {
    pointer-events: none;
}







/* デフォルト非表示 */
.wpcf7-spinner {
    display: none !important;
}

.wpcf7-response-output {
    display: none !important;
}

/* 確認画面 */
.confirmation-title {
    text-align: center;
}

.answer {
    display: block;
    width: 100%;
    margin-bottom: 5px;
    padding: 10px 12px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    box-sizing: border-box;
    background-color: #ffffff;
    font-size: 1.6rem;
}

#confirm-birth {
    display: inline-block;
    width: 30%;
    min-width: 180px;
    margin-right: 15px;
}

#confirm-children-count, #confirm-transit-minutes, #confirm-commute-time-other {
    display: inline-block;
    width: 20%;
    min-width: 90px;
    margin-right: 15px;
    text-align: right;
}

#confirm-working_start_date {
    display: inline-block;
    width: 30%;
    min-width: 180px;
    margin-right: 15px;
}

/* 送信完了画面 */
#thanksMessage {
    width: 85vw;
    margin: 0 auto;
    padding: 120px 0 150px 0;
}

#thanksMessage h2:before {
    background: #009991;
}


/* 登録カード */
/* ===============================
   登録カードページ 共通レイアウト
================================ */
.registration-card {
    width: 80%;
    margin: 60px auto;
    padding: 0 20px;
    line-height: 1.8;
}

/* ===============================
   タイトル
================================ */
.card-title {
    display: inline-block;
    margin-bottom: 40px;
    padding-bottom: 6px;
    border-bottom: 3px solid #005bac;
    color: #005bac;
    font-weight: 700;
    font-size: 2.4rem;
    letter-spacing: .1em;
    text-align: center;
}

/* ===============================
   テーブルベース
================================ */
.registration-table {
    width: 100%;
    margin-bottom: 60px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
    background: #ffffff;
    font-size: 1.5rem;
    border-collapse: collapse;
}

/* 見出し行 */
.registration-table th[colspan="4"] {
    padding: 14px 20px;
    background-color: #005bac;
    color: #ffffff;
    font-size: 2.7rem;
    letter-spacing: .05em;
    text-align: left;
    text-align: center;
}

/* 通常セル */
.registration-table th, .registration-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e6e6e6;
    vertical-align: top;
}

.registration-table th {
    width: 25%;
    background: #f8f9fb;
    color: #222222;
    font-weight: 600;
}

/* 最後の行ボーダー除去 */
.registration-table tr:last-child th, .registration-table tr:last-child td {
    border-bottom: none;
}

/* ===============================
   キャリア（職務経歴）ブロック
================================ */
.career-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
}

.career-number {
    padding: 10px 10px;
    font-weight: bold;
    font-size: 2.3rem;
}

.career-label {
    display: inline-block;
    min-width: 8em;
    color: #333333;
    font-weight: 600;
}

.career-value {
    color: #555555;
}

/* ===============================
   ボタン（CSV出力）
================================ */
.csv-button-wrap {
    margin-top: 40px;
    text-align: center;
}

.csv-download {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
    background: #009991;
    color: #ffffff !important;
    font-weight: bold;
    text-decoration: none;
    transition: .3s;
}

.csv-download:hover {
    transform: translateY(-1px);
    background: #04746f;
}

/* ===============================
   スマホ対応
================================ */
@media (max-width: 768px) {
    .registration-table th, .registration-table td {
        display: block;
        width: 100%;
    }

    .registration-table th {
        padding: 10px 12px 6px;
        border-bottom: none;
        background: #f0f3f7;
    }

    .registration-table td {
        padding: 6px 12px 14px;
    }

    .csv-download {
        display: block;
        width: 100%;
        margin: 30px 0;
        text-align: center;
    }
}