@charset "utf-8";

#kenpo-tokutei-page {
    width: 690px;
    color: #333;
    font-size: 14px;
    line-height: 1.8;
}

#kenpo-tokutei-page .kenpo-tokutei-title {
    width: 690px;
    min-height: 96px;
    margin: 0 0 24px 0;
    padding: 30px 28px 24px 28px;
    box-sizing: border-box;
    border: 1px solid #7ea8c6;
    background: #d9eefb;
    color: #075f92;
    font-size: 27px;
    font-weight: bold;
    line-height: 1.35;
    text-align: center;
}

.kenpo-tokutei-intro,
.kenpo-tokutei-notice,
.kenpo-tokutei-errors,
.kenpo-complete-box {
    margin: 0 0 22px;
    padding: 18px 20px;
    border: 1px solid #bdd9eb;
    background: #f7fbfe;
}

.kenpo-tokutei-lead {
    margin-top: 0;
    color: #005f99;
    font-size: 20px;
}

.kenpo-tokutei-important {
    margin-bottom: 0;
    padding: 11px 13px;
    border-left: 5px solid #e79200;
    background: #fff7e6;
}

.kenpo-tokutei-notice-warn,
.kenpo-inline-warning {
    border-color: #e9c46a;
    background: #fff9e8;
}

.kenpo-tokutei-notice-dev {
    border-color: #9ab7cc;
    background: #f3f7fa;
}

.kenpo-tokutei-final-notices {
    background: #fffaf0;
    border-color: #e8d6a8;
}

.kenpo-tokutei-final-notices p:last-child {
    margin-bottom: 0;
}

.kenpo-tokutei-errors {
    border-color: #d77;
    background: #fff3f3;
    color: #8a1f1f;
}

.kenpo-tokutei-errors p,
.kenpo-tokutei-errors ul,
.kenpo-tokutei-notice p,
.kenpo-tokutei-notice ul {
    margin-top: 0;
    margin-bottom: 8px;
}

.kenpo-form-section {
    margin: 0 0 22px;
    border: 1px solid #c7dbe8;
    background: #fff;
}

.kenpo-form-section h4 {
    margin: 0;
    padding: 11px 16px;
    border-bottom: 1px solid #c7dbe8;
    background: #eaf5fb;
    color: #075b8e;
    font-size: 17px;
}

.kenpo-form-body {
    padding: 16px 18px 18px;
}

.kenpo-check-row,
.kenpo-option-row {
    display: block;
    box-sizing: border-box;
    margin: 7px 0;
    padding: 9px 10px;
    border: 1px solid #e1e7eb;
    background: #fafcfd;
    cursor: pointer;
}

.kenpo-check-row input,
.kenpo-option-row input,
.kenpo-radio-group input,
.kenpo-check-inline input {
    margin-right: 7px;
    vertical-align: middle;
}

.kenpo-required {
    display: inline-block;
    margin-left: 5px;
    padding: 1px 6px;
    border-radius: 3px;
    background: #c94545;
    color: #fff;
    font-size: 11px;
    font-weight: normal;
    line-height: 1.5;
}

.kenpo-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
}

.kenpo-field-wide {
    grid-column: 1 / -1;
}

.kenpo-field label,
.kenpo-field-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.kenpo-field input[type="text"],
.kenpo-field input[type="email"],
.kenpo-field input[type="tel"],
.kenpo-form-body > input[type="text"],
.kenpo-field select,
.kenpo-form-body > select {
    box-sizing: border-box;
    width: 100%;
    padding: 8px 9px;
    border: 1px solid #9fb6c5;
    border-radius: 3px;
    background: #fff;
    font: inherit;
}

.kenpo-field small,
.kenpo-option-row small,
.kenpo-small-note {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.kenpo-radio-group label,
.kenpo-check-inline label {
    display: inline-block;
    margin: 4px 18px 4px 0;
}

.kenpo-subfield {
    margin-top: 12px;
}

.kenpo-subfield input[type="text"] {
    box-sizing: border-box;
    width: 100%;
    padding: 8px 9px;
    border: 1px solid #9fb6c5;
    border-radius: 3px;
}

.kenpo-birth-selects {
    display: flex;
    gap: 8px;
}

.kenpo-birth-selects select {
    width: auto;
    min-width: 90px;
}

.kenpo-option-list {
    margin-bottom: 10px;
}

.kenpo-option-row {
    display: flex;
    align-items: flex-start;
}

.kenpo-consent-row {
    border-color: #9cc3dd;
    background: #f1f8fc;
}

.kenpo-submit-area,
.kenpo-confirm-actions {
    margin: 24px 0;
    text-align: center;
}

.kenpo-primary-button,
.kenpo-secondary-button {
    display: inline-block;
    box-sizing: border-box;
    min-width: 210px;
    padding: 12px 24px;
    border: 1px solid #0873b4;
    border-radius: 4px;
    background: #087fc4;
    color: #fff !important;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
}

.kenpo-primary-button:hover {
    background: #06689f;
}

.kenpo-primary-button:disabled {
    border-color: #aaa;
    background: #bbb;
    cursor: not-allowed;
}

.kenpo-secondary-button {
    border-color: #8d9aa2;
    background: #f4f6f7;
    color: #333 !important;
}

.kenpo-inline-form {
    display: inline-block;
    margin-left: 12px;
}

.kenpo-confirm-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.kenpo-confirm-table th,
.kenpo-confirm-table td {
    padding: 10px 12px;
    border: 1px solid #c9d7df;
    vertical-align: top;
    text-align: left;
    word-wrap: break-word;
}

.kenpo-confirm-table th {
    width: 30%;
    background: #edf6fb;
    color: #174e70;
}

.kenpo-complete-box {
    padding: 26px;
    text-align: center;
}

.kenpo-complete-receipt {
    margin: 0 0 20px;
    color: #075b8e;
}

.kenpo-complete-receipt strong {
    font-size: 25px;
    letter-spacing: 1px;
}

.kenpo-back-home {
    text-align: center;
}

.kenpo-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media screen and (max-width: 760px) {
    #kenpo-tokutei-page,
    #kenpo-tokutei-page .kenpo-tokutei-title {
        width: 100%;
    }
    .kenpo-field-grid {
        display: block;
    }
    .kenpo-field {
        margin-bottom: 16px;
    }
    .kenpo-birth-selects {
        flex-wrap: wrap;
    }
    .kenpo-confirm-table,
    .kenpo-confirm-table tbody,
    .kenpo-confirm-table tr,
    .kenpo-confirm-table th,
    .kenpo-confirm-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .kenpo-inline-form {
        display: block;
        margin: 12px 0 0;
    }
}

.kenpo-venue-list {
    margin: 12px 0 18px;
    border-top: 1px solid #c9dbe7;
}

.kenpo-venue-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 10px;
    border-right: 1px solid #c9dbe7;
    border-bottom: 1px solid #c9dbe7;
    border-left: 1px solid #c9dbe7;
    background: #fff;
}

.kenpo-venue-date {
    flex: 0 0 115px;
    color: #075b8e;
}

.kenpo-venue-detail {
    flex: 1 1 auto;
}

.kenpo-venue-detail span {
    display: block;
    margin-top: 2px;
    color: #666;
    font-size: 12px;
}

.kenpo-venue-row-closed {
    background: #f3f3f3;
    color: #777;
}

.kenpo-closed-label {
    flex: 0 0 auto;
    padding: 2px 7px;
    border: 1px solid #aaa;
    background: #eee;
    color: #666;
    font-size: 11px;
}

.kenpo-option-body {
    display: block;
    width: 100%;
}

.kenpo-option-price {
    display: inline-block;
    margin-left: 10px;
    color: #075b8e;
    font-weight: bold;
}

.kenpo-option-note {
    color: #9a3d2f !important;
}

@media screen and (max-width: 760px) {
    .kenpo-venue-row {
        display: block;
    }
    .kenpo-venue-date {
        margin-bottom: 4px;
    }
    .kenpo-closed-label {
        display: inline-block;
        margin-top: 6px;
    }
    .kenpo-option-price {
        display: block;
        margin: 3px 0 0;
    }
}

/* v0.4 個人情報同意欄：既存の人間ドック／各種健康診断フォームに近い表示 */
.kenpo-privacy-attention {
    margin: 0 0 18px;
    padding: 10px 12px;
    border: 1px solid #e14b45;
    background: #fff1f1;
    color: #d62626;
    line-height: 1.6;
}

.kenpo-agreement {
    box-sizing: border-box;
    max-height: 165px;
    margin: 0 0 16px;
    padding: 10px 12px;
    overflow-y: auto;
    border: 1px solid #c9c9c9;
    background: #fff;
    color: #333;
    font-size: 12px;
    line-height: 1.65;
}

.kenpo-agreement p {
    margin: 0 0 10px;
}

.kenpo-agreement ol {
    margin-top: 6px;
    margin-bottom: 10px;
    padding-left: 22px;
}

.kenpo-agreement li {
    margin-bottom: 6px;
}

.kenpo-pp2,
.kenpo-pp3 {
    padding-left: 20px !important;
}

/* v0.4 スマートフォン対応。既存PC表示には影響させない。 */
@media screen and (max-width: 760px) {
    html,
    body {
        min-width: 0 !important;
        width: 100%;
        overflow-x: hidden;
    }

    div#stage,
    #header,
    div#content,
    #gnavi,
    #foot01,
    #copyright {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
    }

    #header h2 {
        float: none;
        width: 100%;
    }

    #header h2 img {
        display: block;
        width: auto;
        max-width: 100%;
        height: auto;
    }

    #gnavi ul.menu {
        box-sizing: border-box;
        width: 100%;
        overflow: hidden;
    }

    #gnavi ul.menu li[class^="gmenu"],
    #gnavi ul.menu li[class^="gmenu"] a {
        box-sizing: border-box;
        width: 50% !important;
        background-size: 100% 40px;
        background-repeat: no-repeat;
    }

    div#content {
        display: flex;
        flex-direction: column;
        padding: 0 12px;
    }

    div#main {
        order: 1;
        float: none;
        width: 100%;
        margin: 20px 0 0;
    }

    div#side {
        order: 2;
        float: none;
        width: 250px;
        max-width: 100%;
        margin: 22px auto 30px;
    }

    #kenpo-tokutei-page .kenpo-tokutei-title {
        min-height: 0;
        margin-bottom: 18px;
        padding: 20px 14px;
        font-size: 22px;
    }

    .kenpo-tokutei-intro,
    .kenpo-tokutei-notice,
    .kenpo-tokutei-errors,
    .kenpo-complete-box {
        padding: 14px;
    }

    .kenpo-form-section h4 {
        padding: 10px 12px;
        font-size: 16px;
    }

    .kenpo-form-body {
        padding: 13px 12px 15px;
    }

    .kenpo-check-row,
    .kenpo-option-row {
        padding: 11px 9px;
    }

    .kenpo-check-row input,
    .kenpo-option-row input,
    .kenpo-radio-group input,
    .kenpo-check-inline input {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }

    .kenpo-radio-group label,
    .kenpo-check-inline label {
        margin: 6px 14px 6px 0;
    }

    .kenpo-field input[type="text"],
    .kenpo-field input[type="email"],
    .kenpo-field input[type="tel"],
    .kenpo-form-body > input[type="text"],
    .kenpo-field select,
    .kenpo-form-body > select,
    .kenpo-subfield input[type="text"] {
        min-height: 44px;
        font-size: 16px;
    }

    .kenpo-birth-selects {
        display: grid;
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 6px;
    }

    .kenpo-birth-selects select {
        width: 100%;
        min-width: 0;
    }

    .kenpo-venue-row {
        padding: 10px;
    }

    .kenpo-venue-date {
        width: auto;
    }

    .kenpo-primary-button,
    .kenpo-secondary-button {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        padding: 12px 10px;
        font-size: 16px;
    }

    .kenpo-agreement {
        max-height: 230px;
        font-size: 13px;
    }

    .ftadd {
        float: none;
        margin: 0 auto 12px;
    }

    .ftlink {
        box-sizing: border-box;
        width: 100% !important;
        padding: 0 8px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .flbox {
        box-sizing: border-box;
        width: 50%;
        min-height: 0;
        margin-bottom: 18px;
        padding-right: 5px;
    }

    #copyright {
        padding: 0 10px;
        font-size: 11px;
    }
}

@media screen and (max-width: 400px) {
    .flbox {
        width: 100%;
    }
}


/* ============================================================
   v0.5 追加調整（2026-08-29）
   ・確認画面の2ボタン位置・高さを統一
   ・スマートフォン時のグローバルナビ幅を修正
   ============================================================ */
.kenpo-confirm-actions {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 16px;
}

.kenpo-confirm-actions .kenpo-inline-form {
    display: flex;
    margin: 0;
}

.kenpo-confirm-actions .kenpo-primary-button,
.kenpo-confirm-actions .kenpo-secondary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 210px;
    min-width: 210px;
    min-height: 56px;
    margin: 0;
    padding: 12px 24px;
    line-height: 1.4;
    font-family: inherit;
}

@media screen and (max-width: 760px) {
    #gnavi ul.menu li[class^="gmenu"] {
        box-sizing: border-box;
        width: 50% !important;
        height: 40px !important;
        background-size: 100% 40px !important;
        background-repeat: no-repeat !important;
    }

    #gnavi ul.menu li[class^="gmenu"] a {
        box-sizing: border-box;
        width: 100% !important;
        height: 40px !important;
        background-size: 100% 40px !important;
        background-repeat: no-repeat !important;
    }

    .kenpo-confirm-actions {
        flex-direction: column;
        gap: 12px;
    }

    .kenpo-confirm-actions .kenpo-inline-form {
        width: 100%;
        margin: 0;
    }

    .kenpo-confirm-actions .kenpo-primary-button,
    .kenpo-confirm-actions .kenpo-secondary-button {
        width: 100%;
        min-width: 0;
        min-height: 50px;
    }
}


/* v1.1: 腸内フローラ検査は案内表示のみ（申込チェックなし） */
.kenpo-option-row.kenpo-option-information {
    cursor: default;
    background: #f5f9fb;
    border-left: 4px solid #8bbfd9;
}


/* ============================================================
   v1.9 追加調整（2026-09-02）
   ・確認画面の実施日に曜日を表示
   ・送信ボタンの二重押し防止表示
   ・入力エラー時に最初の修正箇所へ移動
   ・送信直前に仮申し込みであることを再表示
   ============================================================ */
.kenpo-confirm-final-note {
    box-sizing: border-box;
    margin: 22px 0 10px;
    padding: 13px 16px;
    border: 1px solid #e5c27a;
    border-left: 5px solid #e79200;
    background: #fff8e8;
    color: #4c3b17;
    text-align: left;
}

.kenpo-confirm-final-note strong {
    margin-right: 0.35em;
}

#kenpoConfirmSubmitButton[aria-busy="true"] {
    opacity: 0.78;
    cursor: wait;
}
