/* ==========================================================================
   健康診断予約報告 機能専用スタイルシート
   Figma: SP_健康診断予約報告ページ (228:1031) & SP_8 受付完了 (184:1048) 準拠
   ========================================================================== */

:root {
    --theme-primary: #702d7f;
    --theme-primary-hover: #4a1555;
    --theme-primary-light: rgba(112, 45, 127, 0.08);
}

body.theme-kensetsu,
.theme-kensetsu {
    --theme-primary: #019178;
    --theme-primary-hover: #00735f;
    --theme-primary-light: rgba(1, 145, 120, 0.08);
}

body {
    background-color: #ffffff !important;
}

/* 画面幅の制御（トップページおよび他ページと完全に統一） */
.mypage-container {
    max-width: 480px;
    margin: 0 auto;
    background-color: #ffffff;
    min-height: 80vh;
    box-sizing: border-box;
}

/* ==========================================================================
   共通ヘッダー情報・戻るリンク・タイトル帯 統一スタイル
   ========================================================================== */

/* 会員情報バー */
.member-header-info {
    background-color: #ffffff;
    padding: 16px 20px 14px;
    border-bottom: 1px solid #f0f0f0;
    margin: 0;
    box-sizing: border-box;
}

/* 会員番号行 */
.member-header-info .member-no-row,
.member-header-info .small,
.member-header-info .card-reissue-member-no,
.member-header-info .health-check-member-no,
.member-header-info .editinfo_title_no_dairi {
    font-size: 14px;
    font-weight: 500;
    color: #666666;
    line-height: 1.4;
    min-height: 1.4em;
    margin: 0 0 4px 0;
    padding: 0;
}

.member-header-info .member-no-val,
.member-header-info .top-member-no,
.member-header-info .top-company-no,
.member-header-info #title_no {
    font-weight: 700;
    color: #666666;
}

.member-header-info .member-no-row.is-invisible-no {
    visibility: hidden;
}

/* 氏名行 */
.member-header-info .member-name-heading,
.member-header-info .card-reissue-member-name,
.member-header-info .health-check-member-name,
.member-header-info .editinfo_title_name,
.member-header-info .editinfo_title_name_dairi,
.member-header-info .h4 {
    font-size: 22px;
    font-weight: 700;
    color: #333333;
    line-height: 1.35;
    margin: 0;
    padding: 0;
}

.member-header-info .member-name-val,
.member-header-info .top-member-name,
.member-header-info .top-company-name,
.member-header-info #title_name {
    font-size: 22px;
    font-weight: 700;
    color: #333333;
}

.member-header-info .member-honorific {
    font-size: 18px;
    font-weight: 500;
    color: #333333;
    margin-left: 4px;
}

/* 戻るナビゲーションバー */
.back-nav-bar,
.back-to-hub-bar {
    padding: 8px 20px 10px;
    background-color: #ffffff;
    box-sizing: border-box;
    margin: 0;
    line-height: 1;
}

/* 戻るリンク */
.back-nav-link,
.btn-back-to-hub {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--theme-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.back-nav-link:hover,
.btn-back-to-hub:hover {
    color: var(--theme-primary-hover);
    text-decoration: underline;
}

.back-nav-link i,
.btn-back-to-hub i {
    font-size: 12px;
    line-height: 1;
}

/* 戻り先がない画面用の不可視ナビゲーション（スペースと高さを維持） */
.back-nav-bar.is-invisible-nav .back-nav-link,
.back-nav-bar .back-nav-link.is-invisible-link {
    visibility: hidden;
    pointer-events: none;
}

/* タイトル見出し帯（テーマカラー連動） */
.page-title-banner,
.menu-header,
.card-reissue-title-banner,
.health-check-title-banner,
.accident-report-title-banner {
    background-color: var(--theme-primary);
    color: #ffffff;
    padding: 14px 20px;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    margin: 0 0 20px 0;
}

.page-title-banner h1,
.page-title-banner h2,
.page-title-banner .menu-title,
.menu-header h1,
.menu-header h2,
.menu-header .menu-title,
.menu-header .union-page-title,
.accident-report-title-banner h1,
.card-reissue-title-banner h1,
.health-check-title-banner h1 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin: 0;
    padding: 0;
    text-align: left;
}

/* メインコンテンツ領域 */
.health-check-content {
    flex: 1;
    padding: 24px 20px 48px;
}

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

.health-check-form-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 8px;
}

.health-check-form-label .required-badge {
    background-color: #ff4d4f;
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

/* 入力コントロール（外枠） */
.health-check-input-wrap {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: 54px;
    display: flex;
    align-items: center;
}

.health-check-input-wrap:focus-within {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px var(--theme-primary-light);
}

.health-check-input-wrap.has-error {
    border-color: #e53935;
    background-color: #fff9f9;
}

/* 入力フィールド */
.health-check-control {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0 18px;
    font-size: 16px;
    color: #333333;
    outline: none;
    box-sizing: border-box;
}

.health-check-control::placeholder {
    color: #999999;
    font-size: 15px;
}

/* セレクトボックスの矢印 */
.health-check-select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 42px;
}

.health-check-select-wrap select:disabled {
    cursor: not-allowed;
    background-color: #f5f5f5;
    color: #888888;
}

.health-check-select-wrap.is-disabled {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
}

.health-check-select-wrap .select-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666666;
    font-size: 14px;
}

.health-check-select-wrap.is-disabled .select-arrow {
    color: #aaaaaa;
}

/* カレンダーアイコン */
.health-check-date-wrap .calendar-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--theme-primary);
    font-size: 18px;
}

.health-check-date-wrap input[type="date"] {
    padding-left: 46px;
    cursor: pointer;
}

/* 分割セレクトボックス (□ 年 □ 月 □ 日) */
.split-date-container {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.split-select-wrap {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    height: 52px;
    display: flex;
    align-items: center;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 0;
}

.split-year-wrap {
    flex: 1.35;
}

.split-month-wrap {
    flex: 1;
}

.split-day-wrap {
    flex: 1;
}

.split-select-wrap:focus-within {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px var(--theme-primary-light);
}

.split-select-wrap.has-error {
    border-color: #e53935;
    background-color: #fff9f9;
}

.split-select-wrap.is-disabled {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    cursor: not-allowed;
}

.split-select-control {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0 24px 0 10px;
    font-size: 15px;
    color: #333333;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    text-align: center;
    text-align-last: center;
    box-sizing: border-box;
}

.split-select-control:disabled {
    cursor: not-allowed;
    color: #64748b;
}

.select-arrow-split {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #888888;
    font-size: 11px;
}

.split-unit-text {
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    white-space: nowrap;
    padding: 0 1px;
    flex-shrink: 0;
}


/* エラーメッセージ */
.health-check-error-msg {
    font-size: 12px;
    color: #e53935;
    margin-top: 6px;
    display: none;
}

/* 送信ボタンエリア */
.health-check-submit-area {
    margin-top: 36px;
    text-align: center;
}

.health-check-btn-submit {
    display: block;
    width: 100%;
    height: 48px;
    line-height: 48px;
    background-color: #ffca00;
    color: #333333;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s, transform 0.1s, opacity 0.2s;
}

.health-check-btn-submit:hover {
    background-color: #f0be00;
    color: #333333;
    text-decoration: none;
}

.health-check-btn-submit:active {
    transform: scale(0.99);
}

.health-check-btn-submit:disabled {
    background-color: #e0e0e0;
    color: #888888;
    cursor: not-allowed;
    box-shadow: none;
}

/* ==========================================================================
   受付完了画面 (health_check_done.php)
   ========================================================================== */

/* ==========================================================================
   受付完了画面 (health_check_done.php)
   ========================================================================== */

.health-check-done-content {
    background-color: #ffffff;
    padding: 40px 20px 56px;
    max-width: 480px;
    margin: 0 auto;
    box-sizing: border-box;
}

.health-check-done-title {
    font-size: 22px;
    font-weight: 700;
    color: #333333;
    line-height: 1.4;
    margin: 0 0 24px 0;
    text-align: center;
}

/* チェックアイコン */
.health-check-done-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.health-check-done-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* お礼メッセージ / リード文 (ボックス自体を左右中央配置、内部は左揃え、幅はテキスト長に自動調整) */
.health-check-done-lead {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 28px;
    font-size: 15px;
    color: #333333;
    line-height: 1.7;
    text-align: left;
}

.health-check-done-lead p {
    margin: 0 0 4px 0;
}

.health-check-done-lead p:last-child {
    margin-bottom: 0;
}

/* 今後の流れボックス */
.health-check-flow-box {
    background-color: #f0f2f2;
    border-radius: 8px;
    padding: 24px 20px;
    text-align: left;
    margin-bottom: 32px;
    box-sizing: border-box;
}

.health-check-flow-title {
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 12px;
    text-align: left;
}

.health-check-flow-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #333333;
    margin: 0;
    text-align: left;
}

.health-check-flow-email {
    font-weight: 700;
    color: var(--theme-primary, #702d7f);
    word-break: break-all;
}

/* 戻るボタンエリア */
.health-check-submit-area {
    margin-top: 0;
    text-align: center;
}

/* トップへ戻るボタン */
.health-check-btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    background-color: #ffca00;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s;
    box-sizing: border-box;
}

.health-check-btn-back:hover {
    background-color: #e6b600;
    text-decoration: none;
    color: #111111;
}