/* ===== Registration Flow Styles ===== */

/* --- Layout --- */
.p-register {
    padding: 40px 0 80px;
    margin-top: 64px;
    background: #F9F9F9;
    min-height: calc(100vh - 160px);
}

.p-register__container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px 64px;
}

.p-register__content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin-top: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.p-register__heading {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #343434;
    margin-bottom: 24px;
    text-align: center;
}

.p-register__description {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 32px;
}

/* --- Step Indicator --- */
.p-stepIndicator__title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 900;
    font-size: 48px;
    font-style: normal;
    line-height: 150%;
    letter-spacing: 1.92px;
    color: #1F8A63;
    text-align: center;
    margin-bottom: 24px;
}

.p-stepIndicator {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 0 20px;
}

.p-stepIndicator__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.p-stepIndicator__circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #E5F4EE;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.p-stepIndicator__item.--active .p-stepIndicator__circle {
    background: #1F8A63;
}

.p-stepIndicator__number {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #1F8A63;
    line-height: 1;
}

.p-stepIndicator__item.--active .p-stepIndicator__number {
    color: #fff;
}

.p-stepIndicator__label {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #343434;
    text-align: center;
    line-height: 1.5;
}

.p-stepIndicator__item.--active .p-stepIndicator__label {
    color: #343434;
    font-weight: 500;
}

.p-stepIndicator__line {
    height: 2px;
    background: #1F8A63;
    flex: 1;
    margin-top: 19px;
}

.p-stepIndicator__line.--active {
    background: #1F8A63;
}

/* --- Form Elements --- */
.p-regForm {
    margin-bottom: 24px;
}

.p-regForm__section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.p-regForm__section:last-of-type {
    border-bottom: none;
}

.p-regForm__sectionTitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.5;
    color: #343434;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #1F8A63;
}

.p-regForm__subTitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    color: #343434;
    margin: 20px 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.p-regForm__note {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #343434;
    line-height: 1.5;
    margin-bottom: 16px;
}

.p-regForm__row {
    margin-bottom: 20px;
}

.p-regForm__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    color: #343434;
    margin-bottom: 8px;
}

.p-regForm__label.--required::after {
    content: '必須';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #343434;
    font-size: 12px;
    font-weight: 400;
    padding: 0 8px;
    height: 20px;
    border: 1px solid #DDDDDD;
    border-radius: 12px;
    line-height: 1;
}

.p-regForm__input {
    position: relative;
}

.p-regForm__input.--postal {
    display: flex;
    align-items: center;
    gap: 4px;
}

.p-regForm__postalPrefix {
    font-size: 14px;
    color: #343434;
    flex-shrink: 0;
}

/* --- Address Inline Layout --- */
.p-regForm__rowInline {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.p-regForm__labelInline {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #343434;
    line-height: 1.5;
    width: 120px;
    flex-shrink: 0;
    padding-top: 8px;
}

.p-regForm__inputInline {
    flex: 1;
    min-width: 0;
}

.p-regForm__postalRow {
    display: flex;
    align-items: center;
    gap: 4px;
}

.p-regForm__field {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: 'Noto Sans JP', sans-serif;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #343434;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.p-regForm__field::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.p-regForm__field:focus {
    outline: none;
    border-color: #1F8A63;
    box-shadow: 0 0 0 3px rgba(31, 138, 99, 0.1);
}

.p-regForm__select {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: 'Noto Sans JP', sans-serif;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #343434;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
    box-sizing: border-box;
}

.p-regForm__error {
    color: #E53935;
    font-size: 12px;
    margin-top: 4px;
}

/* --- Service Toggle --- */
.p-regForm__serviceSelect {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.p-regForm__serviceToggle {
    flex: 1;
    cursor: pointer;
}

.p-regForm__serviceCheckbox {
    display: none;
}

.p-regForm__serviceBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 56px;
    padding: 16px 16px 16px 48px;
    border: 1px solid #1F8A63;
    border-radius: 4px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    color: #343434;
    background: #fff;
    transition: all 0.2s;
    text-align: center;
    box-sizing: border-box;
}

/* 未選択時チェックボックス */
.p-regForm__serviceBtn::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 1px solid #B6DCCF;
    border-radius: 3px;
    background: #fff;
}

/* 選択時 */
.p-regForm__serviceCheckbox:checked + .p-regForm__serviceBtn {
    border-color: #1F8A63;
    background: #1F8A63;
    color: #fff;
    font-weight: 700;
}

/* 選択時チェックボックス */
.p-regForm__serviceCheckbox:checked + .p-regForm__serviceBtn::before {
    background: #fff;
    border-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L4.5 7.5L11 1' stroke='%231F8A63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* --- Same Checkbox --- */
.p-regForm__sameCheck {
    margin-bottom: 8px;
}

.p-regForm__checkbox {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.5;
    color: #343434;
}

.p-regForm__checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 1px solid #1F8A63;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
}

.p-regForm__checkbox input[type="checkbox"]:checked {
    background: #1F8A63;
}

.p-regForm__checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 8px;
    transform: translate(-50%, -60%);
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L4.5 7.5L11 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

/* --- Radio --- */
.p-regForm__radioGroup {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.p-regForm__radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.5;
    color: #343434;
}

.p-regForm__radio input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #1F8A63;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
}

.p-regForm__radio input[type="radio"]:checked {
    background: #fff;
}

.p-regForm__radio input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #1F8A63;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* --- Buttons --- */
.p-register__actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
}

.p-register__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 40px;
    height: 56px;
    border-radius: 50px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    min-width: 280px;
    text-align: center;
    box-sizing: border-box;
}

.p-register__btn.--primary {
    background: linear-gradient(135deg, #1F8A63, #2AAF7F);
    color: #fff;
    box-shadow: 0 4px 12px rgba(31, 138, 99, 0.3);
}

.p-register__btn.--primary:hover {
    box-shadow: 0 6px 16px rgba(31, 138, 99, 0.4);
    transform: translateY(-1px);
}

.p-register__btn.--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.p-register__btn.--secondary {
    background: #fff;
    color: #1E6A52;
    border: 2px solid #1E6A52;
}

.p-register__btn.--secondary:hover {
    background: #E5F4EE;
}

/* --- Confirm Section --- */
.p-confirm__section {
    margin-bottom: 64px;
}

.p-confirm__sectionHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #1F8A63;
}

.p-confirm__sectionTitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.5;
    color: #343434;
}

.p-confirm__note {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #343434;
    line-height: 1.5;
    margin-bottom: 12px;
}

.p-confirm__editLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    height: 40px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #343434;
    background: #fff;
    border: 1px solid #6C6C6C;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
    box-sizing: border-box;
}

.p-confirm__editLink:hover {
    background: #F4F4F4;
}

.p-confirm__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    background: none;
    border: none;
    border-radius: 0;
    margin-bottom: 8px;
}

.p-confirm__label {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #343434;
}

.p-confirm__value {
    font-size: 14px;
    color: #343434;
    line-height: 1.5;
}

/* --- Complete Page --- */

.p-complete__title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #343434;
    text-align: center;
}

.p-complete__title sup {
    font-size: 0.6em;
}

.p-complete__notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
}

.p-complete__noticeText {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #343434;
    text-align: center;
}

.p-complete__noticeNote {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #343434;
    text-align: center;
}

.p-complete__lineSection {
    display: flex;
    align-items: center;
    gap: 25px;
}

.p-complete__lineCard {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #E5F4EE;
    border-radius: 16px;
    padding: 32px 24px;
    flex: 1;
}

.p-complete__lineLeft {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    flex: 1;
}

.p-complete__lineIcon {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
}

.p-complete__lineBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 232px;
    height: 56px;
    border: 2px solid #1E6A52;
    border-radius: 6px;
    background: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #1E6A52;
    text-decoration: none;
    transition: background 0.2s;
    box-sizing: border-box;
}

.p-complete__lineBtn:hover {
    background: #F0FAF5;
}

.p-complete__lineDesc {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #000;
    text-align: center;
}

.p-complete__lineRight {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.p-complete__lineQr {
    width: 129px;
    height: 129px;
    padding: 13px;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
}

.p-complete__lineQrImage {
    width: 100%;
    height: 100%;
    display: block;
}

.p-complete__lineStaff {
    width: 128px;
    height: 147px;
    flex-shrink: 0;
}

.p-complete__lineOr {
    display: none;
}

.p-complete__lineDesc {
    order: 1;
}

/* --- 操作説明セクション --- */
.p-complete__guide {
    background: #F3E4BC;
    padding: 48px 0 24px;
}

.p-complete__guideInner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.p-complete__guideTitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #343434;
    text-align: center;
}

.p-complete__guideDesc {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #343434;
    text-align: center;
}

/* --- こんな方におすすめセクション --- */
.p-complete__wave {
    display: block;
    width: 100%;
    height: auto;
    margin-top: -2px;
    margin-bottom: -2px;
}

.p-complete__wave.--goldToGreen {
    background: linear-gradient(to bottom, #F3E4BC 1px, #E5F4EE 1px);
}

.p-complete__wave.--greenToWhite {
    background: linear-gradient(to bottom, #E5F4EE 1px, #FFFFFF 1px);
}

.p-complete__recommend {
    background: #E5F4EE;
    padding: 80px 24px 24px;
}

.p-complete__recommendInner {
    margin: 0 auto;
}

.p-complete__recommendContent {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 24px;
}

.p-complete__recommendStaff {
    width: 280px;
    height: 280px;
    flex-shrink: 0;
}

.p-complete__recommendCard {
    background: #fff;
    border-radius: 24px;
    padding: 40px 48px;
}

.p-complete__recommendTitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #1F8A63;
    margin-bottom: 16px;
    text-align: center;
}

.p-complete__checklistItems {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.p-complete__checklistItems li {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #343434;
    line-height: 1.5;
}

.p-complete__checklistItems li::before {
    content: '';
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 16.5L13 21.5L24 11' stroke='%231F8A63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 32px 32px;
}

/* --- 予約カレンダーセクション --- */
.p-complete__booking {
    background: #fff;
    padding: 48px 0 80px;
}

.p-complete__bookingInner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.p-complete__bookingImage {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Flow Section (Step1) - LP-TOPの .p-flow コンポーネントを再利用 --- */
/* 登録ページ内では padding と ::before の背景バーを調整 */
.p-register .p-flow {
    padding-block: 40px 0;
    background-color: transparent;
}

.p-register .p-flow::before {
    display: none;
}

/* --- Header --- */
.l-header.--child .l-headerContainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.l-headerTitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #333;
}

/* --- Utility --- */
.sp-only {
    display: none;
}

/* ===== Responsive (SP) ===== */
@media screen and (max-width: 768px) {
    .p-register {
        padding: 20px 0 60px;
    }

    .p-register__container {
        padding: 0 16px;
    }

    .p-register__content {
        padding: 24px 20px;
        margin-top: 20px;
    }

    .p-register__heading {
        font-size: 18px;
    }

    .p-stepIndicator {
        padding: 0;
    }

    .p-stepIndicator__label {
        font-size: 10px;
    }

    .p-stepIndicator__circle {
        width: 30px;
        height: 30px;
    }

    .p-stepIndicator__number {
        font-size: 14px;
    }

    .p-stepIndicator__line {
        flex: 0 0 24px;
    }

    .p-register__btn {
        width: 100%;
        min-width: unset;
    }

    .p-register__actions {
        flex-direction: column;
    }

    .p-regForm__serviceSelect {
        flex-direction: column;
    }

    .p-regForm__sectionTitle {
        font-size: 20px;
    }

    .p-regForm__rowInline {
        flex-direction: column;
        gap: 4px;
    }

    .p-regForm__labelInline {
        width: auto;
        padding-top: 0;
    }

    .p-regForm__field,
    .p-regForm__select {
        font-size: 16px;
    }

    .sp-only {
        display: inline;
    }

    /* --- Complete page SP --- */
    .p-complete__title {
        font-size: 18px;
    }

    .p-complete__noticeText {
        font-size: 13px;
    }

    .p-complete__noticeNote {
        font-size: 13px;
    }

    .p-complete__lineSection {
        display: grid;
        grid-template-columns: auto auto;
        justify-content: center;
        background: #E5F4EE;
        border-radius: 16px;
        padding: 24px 20px;
        gap: 16px;
    }

    .p-complete__lineCard {
        display: contents;
    }

    .p-complete__lineLeft {
        grid-column: 1 / -1;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 13px;
    }

    .p-complete__lineDesc {
        order: -1;
    }

    .p-complete__lineOr {
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex;
        align-items: center;
        gap: 12px;
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 14px;
        font-weight: 400;
        color: #1F8A63;
        margin: 0;
    }

    .p-complete__lineOr::before,
    .p-complete__lineOr::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #B6DCCF;
    }

    .p-complete__lineRight {
        grid-column: 1;
        grid-row: 3;
        justify-self: end;
    }

    .p-complete__lineStaff {
        grid-column: 2;
        grid-row: 3;
        align-self: end;
        width: 120px;
        height: auto;
    }

    .p-complete__lineBtn {
        width: 100%;
        max-width: 232px;
    }

    .p-complete__guideTitle {
        font-size: 22px;
    }

    .p-complete__guideDesc {
        font-size: 15px;
    }

    .p-complete__recommend {
        padding: 40px 16px 24px;
    }

    .p-complete__recommendContent {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .p-complete__recommendStaff {
        width: 160px;
        height: auto;
    }

    .p-complete__recommendCard {
        padding: 24px 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .p-complete__recommendTitle {
        font-size: 20px;
    }

    .p-complete__checklistItems li {
        font-size: 15px;
    }

    .p-complete__booking {
        padding: 32px 0 60px;
    }

    .p-complete__bookingInner {
        padding: 0 16px;
    }

    .p-confirm__sectionTitle {
        font-size: 20px;
    }
}
