.require {
    color: red;
}
.prefBtn {
    margin-right: 3px;
}
.pagination a,
.pagination button,
.pagination input,
.pagination label {
    text-align: left;
    height: 2.5em;
}
.btn-success,
.btn-danger {
    text-align: left;
    width: 10em;
    font-size: 1em;
}
.uk-modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
    flex-wrap: wrap;
}
.uk-modal-footer .uk-button {
    font-size: 14px;
    line-height: 1.4;
    padding: 6px 12px;
    margin-left: 8px;
    vertical-align: middle;
    white-space: nowrap;
}

/* モーダル表示時に uk-container を制限する */
#modal-address .uk-container {
    max-width: 100%;
    padding: 0 10px;
    margin: 0;
}

/* 入力欄がモーダルからはみ出さないようにする */
#modal-address input,
#modal-address select,
#modal-address textarea {
    max-width: 100%;
    box-sizing: border-box;
}

/* モーダル閉じるボタン */
#btn-close-address-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    border: none;
    background-color: rgba(0, 0, 0, 0.05);
    font-size: 2em;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}
#btn-close-address-modal:hover {
    background-color: rgba(0, 0, 0, 0.15);
}

/* 住所切り替えボタン */
.address-radio-label {
    display: inline-block;
    border: 2px solid #ccc;
    border-radius: 6px;
    padding: 10px 16px;
    margin: 6px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.2s ease;
    background: #fff;
    user-select: none;
    position: relative;
}
  
/* hover時に薄く変化 */
.address-radio-label:hover {
    border-color: #999;
    background-color: #f8f8f8;
}
  
/* inputを非表示にする */
.address-radio-label input[type="radio"] {
    display: none;
}
  
/* 枠線を青くする */
.address-radio-label input[type="radio"]:checked ~ .label-text {
    color: #0077ff;
    font-weight: bold;
}
.address-radio-label input[type="radio"]:checked ~ .label-text::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    border: 2px solid #0077ff;
    pointer-events: none;
}

/* 新規住所ボタン */
.address-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 16px;
    font-weight: bold;
    color: #0077ff;
    background-color: #f8fbff;
    border: 1px solid #0077ff;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    min-width: 36px; /* aタグだけでもちゃんと幅が出るように最低幅指定 */
    height: 36px;     /* 高さも揃うように */
    box-sizing: border-box;
}
.address-new:hover {
    background-color: #e1efff;
}
#address-modal-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 1em;
    color: #222;
    line-height: 1.3;
}
.back-link {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 1em;
}
@media screen and (max-width: 768px) {
    /*.prefBtn {
        width: 15vw;
        height: 2em;
        font-size: 12px;
        line-height: 2em;
        text-align: center;
        display: inline-block;
        vertical-align: middle;
    }*/
    .pagination .address-new {
        font-size: 1em;
    }
    .btn-success,
    .btn-danger {
        text-align: left;
        width: 10em;
        font-size: 1em;
    }
    .address-radio-label {
        padding: 8px 12px;
        font-size: 1em;
        margin: 4px;
    }
}
