    :root {
    --bg-color: rgb(253,250,240);
    --primary-coral: rgb(237,109,121);
    --primary-coral-hover: rgb(223,88,101);
    --border-pink: rgb(252,225,218);
    --dashed-pink: rgb(248,202,206);
    --text-main: rgb(85,85,85);
    --text-dark: rgb(51,51,51);
    --text-brown: rgb(105,59,16);
    --blue-dog: rgb(60,160,230);
    --blue-dog-bg: rgb(240,248,255);
    --pink-cat: rgb(237,109,121);
    --pink-cat-bg: rgb(255,245,246);
    --green-small: rgb(106,193,68);
    --green-small-bg: rgb(244,251,240);
    }
    body {
        margin: 0;
        padding: 0;
    }
    .myPet_container {
        max-width: 820px;
        margin: 0 auto;
        padding: 0 20px;
        color: var(--text-main) !important;
        font-family: "Hiragino Kaku Gothic Pro","ヒラギノ角ゴ Pro W3",Meiryo,メイリオ,Osaka,"MS PGothic",arial,helvetica,sans-serif;
        /*font-family: "Zen Maru Gothic", sans-serif;
        background-color: var(--bg-color);*/
    }
    .page-header {
        position: relative;
        padding: 0;
        font-size: 30px;
    }
    .page-header__box h2 {
        font-size: 32px;
        line-height: 0;
        margin: -3px 0 0;
        font-weight: bold;
        letter-spacing: 1px;
        border-bottom: none;
        text-align: center;
        /* display: flex;
        padding-left: 52px;
        align-items: center;
        justify-content: center; */
        color: #f05c5c;
        display: inline-block;
        vertical-align: middle;
    }
    .page-header__box h2 img{
        width: 100%;
        max-width: 250px;
        height: auto;
    }
    .page-header__box{
        border: 3px solid #fd9797;
        margin: 30px 0 0;
        border-radius: 10px;
        padding: 25px 40px 12px 15px;
        background: #ffe7e3;
        box-sizing: border-box;
        position: relative;
        display: flex;
        justify-content: center;
    }
    .page-header__box::before {
        content: "";
        display: inline-block;
        vertical-align: top;
        margin: -12px 10px 0px 0;
        /* position: absolute; */
        /* top: 10px;
        left: 10px; */
        width: 65px;
        height: 75px;
        background: url(/img/my_pet/icon001.png) center center / 70px no-repeat;
    }
    .page-header__box::after {
        content: "";
        display: inline-block;
        position: absolute;
        top: 0;
        right: 10px;
        width: 200px;
        height: 100px;
        background: url(/img/my_pet/icon_head.png) bottom center / 200px no-repeat;
    }
    .subtitle-box {
        display: block;
        position: relative;
        padding-bottom: 8px;
        margin-bottom: 10px;
    }

    .subtitle {
        margin: 25px 40px;
        letter-spacing: 1px;
    }
    .subtitle p{
        font-size: 14px;
        line-height: 1.8;
    }
    .registration-card {
        /* position: relative; */
        width: 660px;
        margin: 0 auto 40px;
        padding: 5px 35px 30px;
        background: rgb(255,255,255);
        border: 3px solid var(--border-pink);
        border-radius: 24px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    }
    .ribbon {
        display: block;
        position: relative;
        top: -7px;
        left: -3px;
        width: fit-content;
        line-height: 60px;
        text-align: center;
        padding: 0 7px;
        font-size: 34px;
        background: var(--primary-coral);
        color: rgb(255,255,255);
        box-sizing: border-box;
    }
    .ribbon .step-label {
        width: 50px;
        height: 65px;
        margin: 0;
        padding-top: 10px;
        color: rgb(255,255,255);
        border-right: 1px dashed rgb(255,255,255);
        border-left: 1px dashed rgb(255,255,255);
        line-height: 1.8em;
        font-size: 30px;
        font-weight: 700;
    }
    .ribbon::after {
        position: absolute;
        content: "";
        z-index: 1;
        bottom: -30px;
        left: 25px;
        width: 0;
        height: 0;
        border-width: 36px 15px 36px 0;
        border-color: transparent rgb(255,255,255) transparent transparent;
        border-style: solid;
        transform: rotate(90deg)
    }
    .card-header {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 10px;/*
        border-bottom: 2px dashed var(--border-pink);*/
        position: relative;
    }
    .ribbon-badge {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 60px;
        padding: 10px 0;
        margin-top: -10px;
        color: rgb(255,255,255);
        font-size: 30px;
        font-weight: bold;
        background: var(--primary-coral);
        border-right: 1px dashed rgb(255, 255, 255);
        border-left: 1px dashed rgb(255, 255, 255);
        border-radius: 4px 4px 0 0;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
    }
    .card-title {
        margin: 0;
        color: var(--primary-coral);
        font-size: 24px;
        font-weight: bold;
        border-bottom: none;
    }
    .card-title big {
        margin-right: 5px;
    }

    .card-title big{
        position: relative;
        width: 38px;
        height: 38px;
        display: inline-block;
        vertical-align: middle;
        line-height: 41px;
        margin: -7px 10px 0 5px;
        padding-left: 2px;
        text-align: center;
        box-sizing: border-box;
        font-size: 24px;
        letter-spacing: -2px;
    }
    .card-title big::after{
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border: 2px solid #f87a83;
        border-radius: 50%;
    }

    .num_circle{
        position: relative;
        width: 25px;
        height: 25px;
        display: inline-block;
        vertical-align: middle;
        line-height: 30px;
        margin: -7px 6px 0 3px;
        padding-left: 1px;
        box-sizing: border-box;
        letter-spacing: -1px;
    }
    .num_circle::after{
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border: 2px solid #f87a83;
        border-radius: 50%;
    }
    .mypet_modal_group .mypet_modal_chk_label big{
        position: relative;
        width: 34px;
        height: 34px;
        display: inline-block;
        vertical-align: middle;
        line-height: 39px;
        margin: -7px 7px 0 3px;
        padding-left: 2px;
        font-size: 20px;
        box-sizing: border-box;
        letter-spacing: -1px;
    }
    .mypet_modal_group .mypet_modal_chk_label big::after{
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border: 2px solid #53c3f1;
        border-radius: 50%;
    }

    .card-header .card-close{
        position: absolute;
        top: 0;
        right: 0;
        width: 64px;
        height: 32px;
        margin: 25px 0;
        color: #555;
        border: 1px solid #ccc;
        background: #eee;
        display: block;
        text-align: center;
        border-radius: 10px;
        padding: 5px;
        font-size: 14px;
        box-sizing: border-box;
        cursor: pointer;
    }
    .card-header .card-close:hover{
        background-color: #ddd;
    }
    .card-header .card-close span{
        margin-right: 3px;
    }

    .form-group {
        margin-bottom: 25px;
    }
    .form-label {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
        font-size: 18px;
        font-weight: bold;
    }
    .form-label::after {
        content: "";
        flex-grow: 1;
        height: 1px;
        margin-left: 8px;
        border-bottom: 1px dashed var(--dashed-pink);
    }
    .paw-icon {
        color: var(--primary-coral);
        font-size: 18px;
    }
    .paw-icon img {
        width: 30px;
        height: auto;
        vertical-align: bottom;
    }
    .pet-type-selector {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        margin-bottom: 15px;
    }


    .pet-type-label, .myPet_edit_pt-label {
        cursor: pointer;
    }
    .pet-type-input {
        display: none;
    }
    .pet-type-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        text-align: center;
        background: rgb(255,255,255);
        border: 1px solid rgb(204,204,204);
        border-radius: 15px;
        transition: all 0.2s ease;
    }
    .pet-type-card img {
        width: 100%;
        max-width: 125px;
        height: auto;
    }
    .pet-illust {
        margin-top: 5px;
        font-size: 40px;
        line-height: 1.2em;
    }
    .pet-name {
        font-size: 16px;
        font-weight: bold;
    }

    .pet-type-label:nth-child(1) .pet-type-card,
    .myPet_edit_pt-label:nth-child(1) .pet-type-card {
        border-color: var(--blue-dog);
    }
    .pet-type-label:nth-child(1) .pet-name,
    .myPet_edit_pt-label:nth-child(1) .pet-name,
    .type-status-text .pet-name-highlight.dog {
        color: var(--blue-dog);
    }
    /* .pet-type-input:checked + .pet-type-card.dog { */
    .pet-type-input.selected + .pet-type-card.dog {
        background: var(--blue-dog-bg);
        box-shadow: 0 0 0 1px var(--blue-dog);
    }
    /*.pet-type-input:checked + .pet-type-card img {max-width: 150px;}
        .pet-type-input:checked + .pet-type-card {padding: 8px 0;}*/
    .pet-type-label:nth-child(2) .pet-type-card,
    .myPet_edit_pt-label:nth-child(2) .pet-type-card {
        border-color: var(--pink-cat);
    }
    .pet-type-label:nth-child(2) .pet-name,
    .myPet_edit_pt-label:nth-child(2) .pet-name,
    .type-status-text .pet-name-highlight.cat {
        color: var(--pink-cat);
    }
    /* .pet-type-input:checked + .pet-type-card.cat {*/
    .pet-type-input.selected + .pet-type-card.cat {
        background: var(--pink-cat-bg);
        box-shadow: 0 0 0 1px var(--pink-cat);
    }
    .pet-type-label:nth-child(3) .pet-type-card,
    .myPet_edit_pt-label:nth-child(3) .pet-type-card {
        border-color: var(--green-small);
    }
    .pet-type-label:nth-child(3) .pet-name,
    .myPet_edit_pt-label:nth-child(3) .pet-name,
    .type-status-text .pet-name-highlight.small_animal {
        color: var(--green-small);
    }
    /* .pet-type-input:checked + .pet-type-card.small { */
    .pet-type-input.selected + .pet-type-card.small {
        background: var(--green-small-bg);
        box-shadow: 0 0 0 1px var(--green-small);
    }
    .type-status-text {
        font-size: 18px;
        text-align: center;
        display: none;
    }
    .type-status-text .pet-name-highlight{
        font-size: 24px;
    }
    .type-status-text::before, .type-status-text::after {
        content: "";
        display: inline-block;
        position: relative;
        left: -5px;
        width: 20px;
        height: 20px;
        background: url("/img/my_pet/icon002.png")center center/20px no-repeat;
    }
    .type-status-text::after {
        left: 5px;
        transform: scaleX(-1);
    }
    .birthdate-inputs {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        flex-wrap: wrap;
    }
    .select-wrapper {
        position: relative;
        display: inline-block;
    }
    .select-wrapper select {
        min-height: 60px;
        padding: 10px 30px 10px 12px;
        color: var(--text-dark);
        font-size: 18px;
        background: rgb(255,255,255);
        border: 1px solid rgb(220,220,220);
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
        appearance: none;
        -webkit-appearance: none;
        outline: none;
        cursor: pointer;
    }
    .select-wrapper::after {
        content: "▼";
        position: absolute;
        right: 10px;
        top: 50%;
        color: rgb(136,136,136);
        font-size: 10px;
        transform: translateY(-50%);
        pointer-events: none;
    }
    .unit-text {
        color: var(--text-dark);
        font-size: 18px;
    }
    .weight-input-area {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .weight-input-area input[type="text"] {
        width: 140px;
        min-height: 60px;
        height: auto;
        padding: 10px 12px;
        font-size: 16px;
        border: 1px solid rgb(220,220,220);
        border-radius: 8px;
        outline: none;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
        box-sizing: border-box;
    }
    .weight-input-area input[type="text"]::placeholder {
    color: #aaa;
    }
    .scale-icon img {
        width: 50px;
        height: auto;
        vertical-align: bottom;
    }
    .photo-section {
        display: flex;
        /* align-items: center; */
        gap: 15px;/*
        background-color: rgb(255,250,248);
        padding: 15px;
        border-radius: 12px;*/
    }
    .photo-upload-btn {
        border: 2px dashed var(--primary-coral);
        background-color: #fff;
        border-radius: 10px;
        min-width: 120px;
        min-height: 100px;
        max-width: 400px;
        max-height: 400px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--primary-coral);
        font-size: 11px;
        font-weight: bold;
        transition: background 0.2s;
        flex-shrink: 0;
        position: relative;
        overflow: hidden;
        border: 1px solid #ccc;
    }
    .photo-upload-btn:hover {
        background-color: #fff0f2;
    }
    .photo-upload-btn .camera-icon {
        width: 50px;
        margin: 0 auto;
        font-size: 24px;
    }
    .photo-upload-btn span{
        color: var(--primary-coral);
    }
    .camera-icon img {
        width: 100%;
        height: auto;
        vertical-align: bottom;
    }
    .photo-message {
        background-color: #fcf4dd;
        padding: 12px 18px;
        border-radius: 50px;
        font-size: 13px;
        color: #6a574f;
        font-weight: bold;
        position: relative;
        display: flex;
        align-items: center;
    }
    .photo-message::before {
        content: "";
        position: absolute;
        left: -8px;
        top: 50%;
        transform: translateY(-50%);
        border-style: solid;
        border-width: 6px 8px 6px 0;
        border-color: transparent #fcf4dd transparent transparent;
    }
    .submit-area {
        text-align: center;
    }/*
    .btn-submit {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 90%;
        max-width: 360px;
        padding: 18px 40px;
        color: rgb(255,255,255);
        font-size: 24px;
        font-weight: bold;
        background: var(--primary-coral);
        border: none;
        border-radius: 50px;
        box-shadow: 0 6px 15px rgba(237, 109, 121, 0.3);
        cursor: pointer;
        transition: all 0.2s ease;
    }
        
    .btn-submit:hover {
        background: var(--primary-coral-hover);
        box-shadow: 0 8px 20px rgba(237, 109, 121, 0.4);
        transform: translateY(-2px);
    }*/
    .submit-area .btn-submit {
        display: inline-block;
        position: relative;
        width: 565px;
        min-height: 80px;
        margin-bottom: 50px;
        padding: 15px 50px;
        color: rgb(255, 255, 255);
        font-size: 24px;
        font-weight: bold;
        text-decoration: none;
        text-shadow: 1px 1px 3px rgb(215, 60, 80);
        background: url(/img/my_pet/icon003a.png) center left 15px / 70px no-repeat, linear-gradient(rgb(255, 150, 150), rgb(240, 90, 110));
        border: 2px solid rgb(255, 118, 135);
        border-radius: 50px;
        box-shadow: 3px 3px 3px rgb(255, 149, 151, .7);
        box-sizing: border-box;
        line-height: .8em;
        cursor: pointer;
    }
    .submit-area .btn-submit:hover {
        top: 2px;
        left: 2px;
        background: url(/img/my_pet/icon003a.png) center left 15px / 70px no-repeat, linear-gradient(rgb(250, 120, 120), rgb(235, 70, 90));
        box-shadow: 1px 1px 2px rgb(255, 149, 151, .7);
    }
    .selected-pet {
        margin-top: 28px;
        text-align: center;
        font-size: 30px;
        font-weight: bold;
        color: #555;
    }


    .form-group-box{
        padding-bottom: 30px;
        padding-top: 30px;
        border-bottom: 3px dashed var(--border-pink);
    }
    .form-group-box:first-child{
        padding-top: 0;
    }
    .form-group-box:last-child{
        border-bottom: none;
    }

    /* 追加ボタン */
    #registration-card-top .add-area{
        margin: 20px 0;
    }
    #registration-card-top .add-area .btn-petadd{
        background: #fff;
        color: #f56b7a;
        border: 3px solid #f87a83;
        padding: 20px;
        box-sizing: border-box;
        display: block;
        font-size: 18px;
        font-weight: 700;
        line-height: 1;
        width: 400px;
        border-radius: 50px;
        margin: 0 auto;
        cursor: pointer;
    }
    #registration-card-top .add-area .btn-petadd:hover{
        background: #ffe3e6;
    }

    /* 写真表示エリアの枠組み調整 */
    #registration-card-top .camera-icon img{
        width: auto;
        max-width: 100%;
    }

    #registration-card-top .photo-upload-btn {
        position: relative;
        display: inline-block;
        cursor: pointer;
        overflow: hidden;
    }
    #registration-card-top .photo-upload-btn div{
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        right: 0;
        width: 70px;
        height: 70px;
        margin: auto;
        text-align: center;
        font-size: 13px;
        color: #f56b7a;
    }

    /* プレビュー画像 */
    .photo-preview-img {
        width: 100%;
        height: 100%;
        max-width: 400px;
        max-height: 400px;
        object-fit: cover;
        display: block;
    }

    /* 削除ボタン（×） */
    .photo-delete-btn {
        position: absolute;
        top: 5px;
        right: 5px;
        background: #fff;
        color: #333;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        text-align: center;
        line-height: 24px;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        z-index: 10;
        border: 1px solid #ccc;
    }

    /* エラーメッセージ */
    .errMsg{
        color: #ff0000;
        font-size: 16px;
        font-weight: 700;
        line-height: 2.5;
    }

    /* 確認画面モーダル */
    .mypet_modal_window{
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: 600px;
        height: 650px;
        margin: auto;
        z-index: 203;
        background-color: #fff;
        border-radius: 20px;
    }

    .mypet_modal_window .close_btn{
        position: absolute;
        top: -20px;
        right: -20px;
        width: 50px;
        height: 50px;
        display: block;
        z-index: 205;
        color: #53c3f1;
        background: #fff;
        border: 3px solid #53c3f1;
        border-radius: 50%;
        text-align: center;
        line-height: 51px;
        color: #53c3f1;
        font-size: 35px;
        font-weight: 400;
        cursor: pointer;
    }

    .mypet_modal_window .close_btn:hover{
        background-color: #d2f2ff;
    }

    .mypet_modal_chk .title{
        text-align: center;
        font-weight: 700;
        font-size: 22px;
        margin: 0;
        color: #ffff;
        background: #53c3f1;
        border-radius: 20px 20px 0 0;
        padding: 20px;
        line-height: 1;
        box-sizing: border-box;
        overflow: hidden;
    }
    .mypet_modal_chk{
        height: calc(100% - 12px);
    }
    .mypet_modal_chk .body{
        overflow-y: scroll;
        height: calc(100% - 70px);
        margin: 10px;
        padding: 15px;
        box-sizing: border-box;
    }
    .mypet_modal_group{
        margin: 20px 0;
    }
    .mypet_modal_group .mypet_modal_chk_label{
        color: #21a6dc;
        text-align: center;
        font-size: 20px;
        font-weight: 700;
        line-height: 2;
        border-bottom: 3px solid #53c3f1;
        padding-bottom: 7px;
        margin-bottom: 10px;
        position: relative;
    }
    .mypet_modal_group .mypet_tbl{
        border: none;
        border-collapse: separate;
        border-spacing: 5px;
        width: 98%;
        margin: 0 auto;
    }
    .mypet_modal_group .mypet_tbl th,
    .mypet_modal_group .mypet_tbl td{
        border: none;
        padding: 7px;
        box-sizing: border-box;
    }
    .mypet_modal_group .mypet_tbl th{
        width: 110px;
        color: #21a6dc;
        background: #e0f6ff;
        font-weight: 700;
        font-size: 14px;
        line-height: 2.5;
    }
    .mypet_modal_group .mypet_tbl td{
        padding-left: 12px;
    }
    .mypet_modal_group .mypet_tbl td.mypet_new_photo img{

    }

    .mypet_modal_chk .btnArea{
        width: 400px;
        margin: 20px auto;
    }
    .mypet_modal_chk .btnArea div{
        margin: 12px;
        padding: 15px;
    }

    .mypet_s-modal_window{
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: 900px;
        height: 560px;
        margin: auto;
        z-index: 203;
        background-color: #fff;
        border-radius: 20px;
    }
    .mypet_s-modal_window .close_btn{
        position: absolute;
        top: -20px;
        right: -20px;
        width: 50px;
        height: 50px;
        display: block;
        z-index: 205;
        color: var(--blue-dog);
        background: #fff;
        border: 3px solid var(--blue-dog);
        border-radius: 50%;
        text-align: center;
        line-height: 51px;
        font-size: 35px;
        font-weight: 400;
        cursor: pointer;
    }

    .mypet_s-modal_window .close_btn:hover{
        background-color: #d2f2ff;
    }
    .mypet_s-modal_chk{
        display: none;
    } 
    .mypet_s-modal_chk .body{
        height: calc(100% - 80px);
        padding: 20px;
        box-sizing: border-box;
        overflow-y: auto;
    }
    .mypet_s-modal_chk .title,
    .myPet_edit_s-modal_window .title{
        color: #fff;
        background: var(--blue-dog);
        text-align: center;
        font-size: 23px;
        font-weight: 700;
        padding: 20px;
        border-radius: 20px 20px 0 0;
    }
    /* .mypet_s-modal_chk.dog .title{
        background: var(--blue-dog);
    }
    .mypet_s-modal_chk.cat .title{
        background: var(--pink-cat);
    }
    .mypet_s-modal_chk.small_animal .title{
        background: var(--green-small);
    } */


    .mypet_s-modal__btnArea{
        width: 600px;
        margin: 20px auto;
        display: flex;
        flex-wrap: nowrap;
        position: absolute;
        left: 0;
        bottom: 0;
        right: 0;
    }
    .mypet_s-modal__btnArea div,
    .mypet_edit_s-modal__btnArea div{
        width: 100%;
        margin: 10px;
        padding: 20px;
        box-sizing: border-box;
    }
    .mypet_s-modal_group{
        display: flex;
        flex-wrap: wrap;
        justify-content: normal;
        gap: 10px 13px;
        width: 830px;
        margin: 0 auto;
    }
    .mypet_s-modal_group .option{
        width: calc(33% - 7px);
    }
    .mypet_s-modal_group .option input[type=radio]{
        display: none
    }
    .mypet_s-modal_group .option label{
        color: var(--blue-dog);
        border: 1px solid var(--blue-dog);
        background: var(--blue-dog-bg);
        background: #f0fbff;
        padding: 10px;
        box-sizing: border-box;
        text-align: center;
        font-size: 17px;
        line-height: 1.4;
        display: block;
        border-radius: 30px;
        cursor: pointer;
    }
    .mypet_s-modal_group .option.ln2 label{
        height: 67px;
        line-height: 47px;
    }
    .mypet_s-modal_group .option label:hover{
        color: #fff;
        border-color: var(--blue-dog);
        background-color: #93e1ff;
    }
    .mypet_s-modal_group .option.checked label{
        color: #fff;
        border-color: var(--blue-dog);
        background-color: var(--blue-dog);
    }

    /* 編集画面用の種類選択画面 */
    .myPet_edit_s-modal_window{
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 204;
        background: #fff;
        border-radius: 30px;
        padding: 0;
        overflow: hidden;
    }
    .myPet_edit_s-modal_window .mypet_edit_s-modal_chk{
        width: 100%;
        margin-left: 140%;
        opacity: 0;
    }
    .mypet_edit_s-modal_chk .title{
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 20px;
        line-height: 1;
    }
    .mypet_edit_s-modal__btnArea{
        width: 500px;
        margin: 30px auto;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
    }
 
    .myPet_edit_page { width: 100%; min-height: 100vh; background: #fff; padding: 35px 0px 50px; box-sizing: border-box; display: flex; justify-content: center; position: relative; }
    .myPet_edit_page::before {
        content: "";
        position: absolute;
        right: 0;
        top: 2px;
        left: 0;
        height: 2px;
        background: #53c3f1;
        border-radius: 2px;
    }
    .myPet_edit_inner { width: 100%; max-width: 1080px; display: flex; flex-direction: column; gap: 28px; }
    .myPet_edit_inner p[role="status"]{
        font-size: 14px;
        font-weight: 700;
        color: #705d0e;
        background: #fff4c6;
        padding: 15px 20px;
        border-radius: 10px;
        border: 2px solid #f5d759;
    }

    .myPet_edit_head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
    .myPet_edit_title { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: 0.04em; color: #1a1a1a; border: none !important; padding-left: 30px; }
    .myPet_edit_title::before{
        content: "";
        position: absolute;
        top: -3px;
        bottom: 0;
        left: 0;
        width: 8px;
        background: #0875cf;
        border-radius: 7px;
    }
    #myPet_editbox__edit-modal .myPet_edit_title::before{
        background: #ff868a;
    }

    .myPet_edit_count { font-size: 13px; color: #8a8a8a; letter-spacing: 0.04em; }

    /* .myPet_edit_list { display: flex; flex-direction: column; gap: 20px; } */
    /* .myPet_edit_card { background: #eaeaea; border-radius: 18px; padding: 28px 32px; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; } */

    .myPet_edit_photo { flex: 0 1 160px; width: 160px; height: 130px; background: #fff; border: 1px solid #d6d6d6; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-radius: 10px; overflow: hidden; }
    .myPet_edit_photo img { width: 100%; height: 100%; object-fit: cover; }
    .myPet_edit_photoText { font-size: 26px; letter-spacing: 0.12em; color: #1a1a1a; }

    .myPet_edit_info { flex: 1 1 280px; min-width: 260px; display: flex; flex-direction: column; gap: 14px; }
    .myPet_edit_row { display: flex; align-items: center; gap: 18px; }
    .myPet_edit_label { flex: none; width: 100px; text-align: center; background: #66c0f5; color: #fff; border-radius: 999px; padding: 7px 0; font-size: 14px; line-height: 1; letter-spacing: 0.1em; }
    .myPet_edit_value { font-size: 19px; color: #1a1a1a; text-wrap: pretty; }

    .myPet_edit_actions { flex: 0 1 200px; max-width: 210px; margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; }
    .myPet_edit_btn { flex: 1 1 190px; padding: 13px 0; border-radius: 999px; border: 1px solid #b9b9b9; background: #f4f4f4; color: #1a1a1a; font-family: inherit; font-size: 15px; cursor: pointer; line-height: 1;}
    /* .myPet_edit_btnEdit { letter-spacing: 0.08em; }
    .myPet_edit_btnEdit:hover { background: #53c3f1; border-color: #53c3f1; color: #fff; } */
    .myPet_edit_btnDelete,
    .myPet_edit_btnDelete a { letter-spacing: 0.3em; text-indent: 0.3em; color: #1a1a1a ; text-decoration:none; display: block; width: 100%; height: 100%;}
    .myPet_edit_btnDelete:hover { background: #fff; border-color: #8a8a8a; }

    .myPet_edit_addWrap { display: flex; justify-content: center; padding-top: 12px; }
    .myPet_edit_btnAdd { padding: 16px 56px; border-radius: 999px; border: none; background: #53c3f1; color: #fff; font-family: inherit; font-size: 16px; font-weight: 500; letter-spacing: 0.1em; cursor: pointer; }
    .myPet_edit_btnAdd:hover { background: #3fb3e4; }

    .edit_message{
        display: none;
        margin: 40px 0 0;
        font-size: 16px;
        font-weight: 700;
        line-height: 1;
        padding: 15px 20px;
        border-radius: 10px;
        color: #ff0000;
        background: #ffe8ec;
    }
    .edit_message span{ display: none; }

#myPet_editbox__edit-modal{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 900px;
    height: 600px;
    background: #fff;
    z-index: 201;
    margin: auto;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 30px;
}
#myPet_editbox__edit-modal .myPet_editbox__window{
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}
.myPet_edit__form-group{
    margin: 20px auto;
}
.myPet_edit__form-group .form-label{
    margin-bottom: 20px;
}
.myPet_edit__form-group.add-input-label{
    background: #ff868a;
    color: #fff;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    margin: 30px -35px;
    padding: 20px;
}
.myPet_edit__submit-area{
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
}
.myPet_edit__submit-area button{
    width: 50%;
    padding: 20px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    border-radius: 30px;
    cursor: pointer;
}
.myPet_edit__submit-area button.btn-submit{
    background: var(--primary-coral);
    color: #fff;
}
.myPet_edit__submit-area button.btn-submit:hover{
    background: rgb(199, 88, 99);
}
.myPet_edit__submit-area button.btn-cancel{
    background: #ececec;
}
.myPet_edit__submit-area button.btn-cancel:hover{
    background: #c5c4c4;
}

.filaria-select-area #fil_select_box{
    min-height: 60px;
    height: auto;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid rgb(220, 220, 220);
    border-radius: 8px;
    outline: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    position: relative;
}
.filaria-select-area #fil_select_box::after{
    content: "▼";
    position: absolute;
    right: 10px;
    top: 50%;
    color: rgb(136, 136, 136);
    font-size: 10px;
    transform: translateY(-50%);
    pointer-events: none;
}

#mes_textarea_box{
    padding: 10px 30px 10px 12px;
    color: var(--text-dark);
    font-size: 16px;
    background: rgb(255, 255, 255);
    border: 1px solid rgb(220, 220, 220);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.name-input-area{
    display: flex;
    align-items: center;
    gap: 10px;
}
.name-input-area input{
    width: 250px;
    min-height: 60px;
    height: auto;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid rgb(220, 220, 220);
    border-radius: 8px;
    outline: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
}

.select-sex-radio{
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
}
.select-sex-radio input[type=radio]{
    display: none;
}
.select-sex-radio label{
    width: 20%;
    font-size: 16px;
    font-weight: 700;
    border-radius: 7px;
    color: #777;
    border: 2px solid #eee;
    cursor: pointer;
    padding: 10px;
    text-align: center;
}
.select-sex-radio input[type=radio]#sel_male:checked + label{
    color: var(--blue-dog);
    border-color: var(--blue-dog);
    background-color: var(--blue-dog-bg);
}
.select-sex-radio input[type=radio]#sel_female:checked + label{
    color: var(--pink-cat);
    border-color: var(--pink-cat);
    background-color: var(--pink-cat-bg);
}
.select-sex-radio input[type=radio]#sel_other:checked + label{
    color: var(--green-small);
    border-color: var(--green-small);
    background-color: var(--green-small-bg);
}
/* mypet.php 一覧カード。表示の変更はElementsとこのスタイルで管理。 */
.myPet_edit_list{
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    width: 100%;
}
.myPet_edit_list .myPet_edit_card{
    position: relative;
    background: #eaeaea;
    border-radius: 20px;
    padding: 22px;
    width: calc(33% - 15px);
    display: flex;
    flex-direction: column;
    text-align: left;
    box-sizing: border-box;
}
.myPet_edit_list .myPet_edit_card_number{
    position: absolute;
    top: -10px;
    left: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0875cf;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}
.myPet_edit_list .myPet_edit_card_photo{
    margin: 10px auto 15px;
    width: 100%;
    height: 157px;
    border: 3px solid #fff;
    padding: 3px;
    box-sizing: border-box;
    border-radius: 10px;
    position: relative;
}
.myPet_edit_list .myPet_edit_card_photo::before{
    content: "NO PHOTO";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    height: 22px;
    font-size: 15px;
    color: #aaa;
    text-align: center;
    z-index: 1;
}
.myPet_edit_list .myPet_edit_card_photo:has(img:empty)::before{
    content: "";
}

.myPet_edit_list .myPet_edit_card_photo img{
    display: block;
    max-width: 100%;
    height: 150px;
    object-fit: contain;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.myPet_edit_list .myPet_edit_card_actions{
    justify-content: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
}
.myPet_edit_list .myPet_edit_btnEdit{
    position: relative;
    width: 50%;
    min-height: 44px;
    padding: 10px 18px;
    margin: 0;
    border: 0;
    border-radius: 30px;
    background: #0875cf;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}
.myPet_edit_list .myPet_edit_btnEdit:hover{
    background: #2da7d8;
}
.myPet_edit_list .mypet-member-delete{
    margin: 0;
    width: 50%;
}
.myPet_edit_list .myPet_edit_card_delete{
    min-height: 44px;
    width: 100%;
    padding: 8px 14px;
    border: 1px solid #b8b8b8;
    border-radius: 30px;
    background: #fff;
    color: #6d6d6d;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
    display: block;
}
.myPet_edit_list .myPet_edit_card_delete:hover{
    background: #eee;
}
.myPet_edit_list .myPet_edit_card_summary{
    font-size: 13px;
    color: #555;
    line-height: 1;
    padding: 5px;
    flex-grow: 1;
}
.myPet_edit_list .myPet_edit_card_summary .myPet_card_type{
    display: block;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
    font-family: Noto Sans JP;
    box-sizing: border-box;
    font-feature-settings: "palt";
}

.remove_photo_txt{
    color: #555;
    font-size: 16px;
    font-weight: 700;
    display: block;
    margin: 20px 0;
    padding-left: 33px;
    position: relative;
    cursor: pointer;
}
.remove_photo_txt span::before{
    content: "";
    width: 20px;
    height: 20px;
    background: #FFF;
    border: 3px solid #FB9B92;
    display: block;
    border-radius: 7px;
    position: absolute;
    left: 0;
}
.remove_photo_txt input[name=remove_photo]{
    display: none;
}
.remove_photo_txt input[name=remove_photo]:checked + span::before{
    background: #FFF;
}
.remove_photo_txt input[name=remove_photo]:checked + span::after{
    content: "\f00c";
    font-family: FontAwesome, icomoon;
    color: #FB8B92;
    position: absolute;
    left: 5px;
    font-size: 15px;
    font-weight: 400;
}


/* .myPet_edit_list .myPet_edit_card { position:relative; display:grid; grid-template-columns:minmax(0,45%) minmax(0,1fr) auto; gap:clamp(8px,2vw,20px); align-items:center; text-align:left; } */
/* .myPet_edit_list .myPet_edit_card_number { position:absolute; top:10px; left:12px; display:flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:50%; background:#0875cf; color:#fff; font-size:14px; font-weight:bold; line-height:1; } */
/* .myPet_edit_list .myPet_edit_card_summary { margin:0; min-width:0; overflow-wrap:anywhere; } */
/* .myPet_edit_list .myPet_edit_card_photo { min-width:0; text-align:left; } */
/* .myPet_edit_list .myPet_edit_card_photo img { display:block; max-width:100%; height:auto; margin:0; } */
/* .myPet_edit_list .myPet_edit_card_actions { justify-self:end; display:flex; flex-direction:column; gap:8px; } */
/* .myPet_edit_list .myPet_edit_btnEdit { position:static; min-height:44px; padding:10px 18px; margin:0; border:0; border-radius:8px; background:#0875cf; color:#fff; font-size:16px; font-weight:bold; line-height:1.4; white-space:nowrap; cursor:pointer; }
.myPet_edit_list .mypet-member-delete { margin:0; }
.myPet_edit_list .myPet_edit_card_delete { min-height:44px; width:100%; padding:8px 14px; border:1px solid #b33434; border-radius:8px; background:#fff; color:#a12b2b; font-size:14px; cursor:pointer; } */

#mypet_coupon_notice .tks-coupon {
    position: relative;
    padding: 30px 24px 40px;
    text-align: center;
    background: url("/img/my_pet/mypet_thanks/bg001.png")bottom center/cover no-repeat;
    box-shadow: 0 4px 12px rgba(0,0,0,.02);
    letter-spacing: .05em;
    margin: 0;
    border:3px solid #ffe0b7;
    border-radius:16px;
    color:#543c23;
}

#mypet_coupon_notice .tks-coupon__badge {
    display: inline-block;
    margin: 0 auto 20px;
    padding: 15px 50px;
    font-size: 20px;
    font-weight: bold;
    color: rgb(255,255,255);
    background: rgb(111,181,214);
    border: 3px solid rgb(255,255,255);
    box-shadow: 0 1px 0 rgba(109,179,212,.2);
    border-radius: 50px;
}
#mypet_coupon_notice .tks-coupon__ticket {
    position: relative;
    display: block;
    max-width: 400px;
    margin: 0 auto 20px;
    padding: 10px;
    color: rgb(255,255,255);
    background: linear-gradient(rgb(255,177,122), rgb(249,160,48));
    border-radius: 15px;
    box-shadow: 0 3px 0 rgba(255,149,151,.45);
}
#mypet_coupon_notice .tks-coupon__ticket .inner {
    padding: 15px 25px 0;
    color: rgb(255,255,255);
    font-size: 22px;
    border: 1px dashed rgb(255,255,255);
    border-radius: 10px;
}
#mypet_coupon_notice .tks-coupon__title {
    color: rgb(255,255,255);
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}
#mypet_coupon_notice .tks-coupon__title::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 20px;
    margin-right: 5px;
    background: url("/img/my_pet/mypet_thanks/icon007a.png")bottom center/22px no-repeat;
}
#mypet_coupon_notice .tks-coupon__title::after {
    content: "";
    display: inline-block;
    width: 15px;
    height: 25px;
    margin-left: 3px;
    background: url("/img/my_pet/mypet_thanks/icon05a.png")bottom center/15px no-repeat;
}
#mypet_coupon_notice .tks-coupon__ticket::before, #mypet_coupon_notice .tks-coupon__ticket::after {
    content: "";
    position: absolute;
    top: 50%;
    bottom: 50%;
    width: 35px;
    height: 35px;
    margin: auto;
    background: rgb(255,255,255);
    border-radius: 50%;
}
#mypet_coupon_notice .tks-coupon__ticket::before {
    left: -18px;
}
#mypet_coupon_notice .tks-coupon__ticket::after {
    right: -18px;
}
#mypet_coupon_notice .tks-coupon__amount {
    margin: 2px 0 0;
    font-size: 28px;
    font-weight: bold;
    line-height: 2.3em;
    letter-spacing: .02em;
}
#mypet_coupon_notice .tks-coupon__amount .num {
    font-size: 80px;
    letter-spacing: -.02em;
    vertical-align: -2px;
}
#mypet_coupon_notice .tks-coupon__amount .off {
    display: inline-block;
    margin-left: 6px;
    padding: 5px 10px 0;
    color: rgb(249,160,48);
    font-size: 24px;
    background: rgba(255, 255, 255);
    border-radius: 6px;
    line-height: 1em;
}
#mypet_coupon_notice .tks-coupon__given {
    margin: 0;
    padding: 0;
    font-size: 30px;
    font-weight: bold;
}


/* 初回特典モーダル：mypet_thanksのクーポン部分を限定して流用。 */
#mypet_coupon_notice .mypet_coupon_window { top:50%; bottom:auto; transform:translateY(-50%); width:calc(100% - 32px); max-width:760px; height:auto; max-height:90vh; margin:0 auto; padding:35px; overflow:auto; z-index:222301; box-sizing:border-box; }

#mypet_coupon_notice .tks-coupon__ticket { box-sizing:border-box; width:100%; max-width:470px; }
#mypet_coupon_notice .tks-coupon__ticket .inner { padding:15px 12px 8px; }
#mypet_coupon_notice .tks-coupon__given { color:#543c23; line-height:1.5; }
#mypet_coupon_notice .tks-coupon__given small { font-size:.75em; }
#mypet_coupon_notice .tks-coupon__limit { margin:0; color:#543c23; font-size:16px; line-height:1.6; }
#mypet_coupon_notice .tks-coupon__limit strong { color:#f17c6a; }
#mypet_coupon_notice .mypet_coupon_footer { padding-top:20px; text-align:center; }
#mypet_coupon_notice .mypet_coupon_footer p { margin:0; color:#333; font-size:16px; line-height:1.8; }
#mypet_coupon_notice #mypet_coupon_close { display:block; width:300px; max-width:100%; min-height:44px; margin:20px auto 0; padding:12px 20px; border:1px solid #999; border-radius:30px; background:#999; color:#fff; font-family:inherit; font-size:16px; line-height:1.5; cursor:pointer; }
#mypet_coupon_notice #mypet_coupon_close:hover{ border-color:#c7c7c7; background:#c7c7c7; }
#mypet_coupon_notice #mypet_coupon_close:focus-visible { outline:3px solid #0875cf; outline-offset:3px; }
