/* ソリューション固有 */
.cm-tappy-cmp-selectimage {
    display: inline-flex;
    align-items: center;
}

.cm-tappy-cmp-selectimage .upload-area {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    width: 100%;
    height: 300px;
    position: relative;
    border: 1px dotted rgba(0, 0, 0, 0.4);
    text-align: center;
}

.cm-tappy-cmp-selectimage .upload-area i {
    position: fixed;
    font-size: 120px;
    opacity: 0.1;
}

.cm-tappy-cmp-selectimage .upload-area p {
    position: relative;
    opacity: 0.8;
    line-height: 1.5;
}

.cm-tappy-cmp-selectimage .upload-area label.input-file {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.cm-tappy-cmp-selectimage .upload-error-table {
    font-size: 0.9rem;
}

.cm-tappy-cmp-selectimage .upload-error-table .input-value {
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.cm-tappy table .vertical-border {
    border-left: solid 3px rgba(255, 255, 255, .75);
    padding-left: .5rem;
}

.cm-tappy button.btn-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: .9rem;
    line-height: 1;
    border-radius: 50%;
    padding: 0;
}

.cm-tappy button.btn-hint.focus,
.cm-tappy button.btn-hint:focus {
    box-shadow: none;
}

.cm-tappy .description {
    font-size: .8rem;
}

/* 機能固有 */
.cm-tappy-home-cmp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100px * var(--scale));
    height: calc(100px * var(--scale));
    aspect-ratio: 1;
}

.cm-tappy-home-cmp-icon.new::before {
    position: absolute;
    translate: -75% -175%;
    rotate: -22.5deg;
    content: 'New!';
    color: #a4e82f;
    font-size: calc(1rem * var(--scale));
    font-weight: bold;
}

.cm-tappy-home-cmp-icon img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.cm-tappy-home {
    font-family: "Noto Sans JP", sans-serif;
}

.cm-tappy-home .modal .text-modal-message {
    color: #666;
    margin-bottom: 0;
}

.cm-tappy-home .modal .text-modal-message .text-mark {
    white-space: nowrap;
    color: #ff7575;
    background: linear-gradient(transparent 60%, #fae392 60%);
}

.cm-tappy-home .modal .text-modal-message .text-red {
    white-space: nowrap;
    color: #ff7575;
}

.cm-tappy-home .modal .btn-modal-primary {
    color: #fff;
    background-color: rgb(25, 167, 142);
    box-shadow: 1px 1px 2px rgba(0, 0, 0, .3);
    transition: color .15s ease-in-out,
                background-color .15s ease-in-out,
                border-color .15s ease-in-out,
                box-shadow .15s ease-in-out,
                filter .15s ease-in-out;
}

.cm-tappy-home .modal .btn-modal-primary:not(.disabled):not(:disabled):hover {
    filter: brightness(.85);
}

.cm-tappy-home .modal .btn-modal-primary:not(.disabled):not(:disabled):focus {
    box-shadow: 0 0 0 .2rem rgba(25 167 142 / .5);
}

.cm-tappy-home .modal .btn-modal-secondary {
    color: #fff;
    background-color: rgb(104, 104, 104);
    box-shadow: 1px 1px 2px rgba(0, 0, 0, .3);
    transition: color .15s ease-in-out,
                background-color .15s ease-in-out,
                border-color .15s ease-in-out,
                box-shadow .15s ease-in-out,
                filter .15s ease-in-out;
}

.cm-tappy-home .modal .btn-modal-secondary:not(.disabled):not(:disabled):hover {
    filter: brightness(.85);
}

.cm-tappy-home .modal .btn-modal-secondary:not(.disabled):not(:disabled):focus {
    box-shadow: 0 0 0 .2rem rgba(104 104 104 / .5);
}

/* 画面固有 */
#cm-tappy-home-home .btn-theme-primary,
#cm-tappy-themesetting-themesetting .preview .btn-theme-primary {
    color: #fff;
    background-color: rgb(var(--button-color));
    border-color: rgb(var(--button-color));
    box-shadow: 1px 1px 2px rgba(0, 0, 0, .3);
    transition: color .15s ease-in-out,
                background-color .15s ease-in-out,
                border-color .15s ease-in-out,
                box-shadow .15s ease-in-out,
                filter .15s ease-in-out;
}

#cm-tappy-home-home .btn-theme-primary:not(.disabled):not(:disabled).focus,
#cm-tappy-home-home .btn-theme-primary:not(.disabled):not(:disabled):focus,
#cm-tappy-themesetting-themesetting .preview .btn-theme-primary:not(.disabled):not(:disabled).focus,
#cm-tappy-themesetting-themesetting .preview .btn-theme-primary:not(.disabled):not(:disabled):focus {
    box-shadow: 0 0 0 .2rem rgba(var(--button-color) / .5);
}

#cm-tappy-home-home .btn-theme-primary:not(.disabled):not(:disabled):hover,
#cm-tappy-themesetting-themesetting .preview .btn-theme-primary:not(.disabled):not(:disabled):hover {
    filter: brightness(.85);
}

#cm-tappy-home-home .btn-theme-outline-primary,
#cm-tappy-themesetting-themesetting .preview .btn-theme-outline-primary  {
    color: rgb(var(--button-color));
    background-color: rgba(255, 255, 255, .9);
    border-color: rgb(var(--button-color));
    transition: color .15s ease-in-out,
                background-color .15s ease-in-out,
                border-color .15s ease-in-out,
                box-shadow .15s ease-in-out,
                filter .15s ease-in-out;
}

#cm-tappy-home-home .btn-theme-outline-primary:not(.disabled):not(:disabled).focus,
#cm-tappy-home-home .btn-theme-outline-primary:not(.disabled):not(:disabled):focus,
#cm-tappy-home-home .btn-theme-outline-primary:not(.disabled):not(:disabled):hover,
#cm-tappy-themesetting-themesetting .preview .btn-theme-outline-primary:not(.disabled):not(:disabled).focus,
#cm-tappy-themesetting-themesetting .preview .btn-theme-outline-primary:not(.disabled):not(:disabled):focus,
#cm-tappy-themesetting-themesetting .preview .btn-theme-outline-primary:not(.disabled):not(:disabled):hover {
    box-shadow: 0 0 0 .2rem rgba(var(--button-color) / .5);
}

#cm-tappy-home-home .btn-theme-outline-primary:not(.disabled):not(:disabled).active,
#cm-tappy-home-home .btn-theme-outline-primary:not(.disabled):not(:disabled):active,
#cm-tappy-themesetting-themesetting .preview .btn-theme-outline-primary:not(.disabled):not(:disabled).active,
#cm-tappy-themesetting-themesetting .preview .btn-theme-outline-primary:not(.disabled):not(:disabled):active {
    color: #fff;
    background-color: rgb(var(--button-color));
    border-color: rgb(var(--button-color));
}

#cm-tappy-home-home .header,
#cm-tappy-themesetting-themesetting .preview .header {
    padding: .75rem 1rem;
    width: 100%;
    background-image: var(--bg-image);
    background-size: contain;
}

#cm-tappy-home-home .header h2,
#cm-tappy-themesetting-themesetting .preview .header h2 {
    color: rgb(var(--label-color));
}

#cm-tappy-home-home .header button.btn-menu {
    position: relative;
    padding: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ebebeb;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, .3);
    transition: color .15s ease-in-out,
                background-color .15s ease-in-out,
                border-color .15s ease-in-out,
                box-shadow .15s ease-in-out,
                filter .15s ease-in-out;
}

#cm-tappy-home-home .header button.btn-menu:not(.disabled):not(:disabled):focus {
    box-shadow: 0 0 0 .2rem rgba(235, 235, 235, .5);
}

#cm-tappy-home-home .header button.btn-menu:not(.disabled):not(:disabled):hover {
    filter: brightness(.85);
}

#cm-tappy-home-home .header button.btn-menu.new::before {
    display: inline-block;
    position: absolute;
    top: .4em;
    right: .4em;
    transform: translate(50%, -50%);
    width: 1em;
    height: 1em;
    border: 1px solid #ebebeb;
    border-radius: 50%;
    content: '';
    background-color: #e8ab30;
}

#cm-tappy-home-home .header button.btn-menu img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

#cm-tappy-home-home .body,
#cm-tappy-themesetting-themesetting .preview .body {
    flex-grow: 1;
    padding: .75rem 1rem;
    width: 100%;
    background-image: var(--bg-image);
    background-size: contain;
    overflow-y: auto;
}

#cm-tappy-home-home .body .form-control {
    background-color: rgba(255, 255, 255, .9);
}

#cm-tappy-home-home .body .text-theme-hint {
    color: rgb(var(--button-color));
    font-size: .8rem;
    padding-left: 1.05rem;
    position: relative;
}

#cm-tappy-home-home .body .text-theme-hint::before {
    font-family: "Font Awesome 5 Free";
    content: "\f05a";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
}

#cm-tappy-home-home .body .main-groups .groups {
    background-color: #dfdfdf;
    border: solid 1px #707070;
    border-radius: calc(16.5px + .25rem);
    width: fit-content;
}

#cm-tappy-home-home .body .main-groups .btn-group {
    color: #707070;
    background-color: #dfdfdf;
    border: none;
    border-radius: 16.5px;
    white-space: nowrap;
    font-size: .9rem;
    transition: color .15s ease-in-out,
                background-color .15s ease-in-out,
                border-color .15s ease-in-out,
                box-shadow .15s ease-in-out,
                filter .15s ease-in-out;
}

#cm-tappy-home-home .body .main-groups .btn-group.active {
    color: #fff;
    background-color: rgb(var(--button-color));
}

#cm-tappy-home-home .body .main-groups .btn-group:not(.disabled):not(:disabled):hover {
    filter: brightness(.85);
}

#cm-tappy-home-home .body .main-groups .btn-group:not(.disabled):not(:disabled):focus {
    box-shadow: 0 0 0 .25rem rgba(var(--button-color) / .5);
}

#cm-tappy-home-home .body .username-search {
    display: inline-flex;
    align-items: center;
    padding: 0 .25rem 0 .75rem;
    background-color: #dfdfdf;
    border: solid 1px #707070;
    border-radius: calc(16.5px + .25rem);
    transition: box-shadow .15s ease-in-out;
}

#cm-tappy-home-home .body .username-search .input-username {
    width: 10rem;
    padding: .375rem .5rem;
    border: none;
    border-radius: 16.5px 0 0 16.5px;
    background-color: inherit;
    font-size: .9rem;
}

#cm-tappy-home-home .body .username-search .input-username::placeholder {
    color: #707070;
}

#cm-tappy-home-home .body .username-search .btn-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 33.61px;
    width: 33.61px;
    color: #707070;
    background-color: inherit;
    border: none;
    border-radius: 16.5px;
    font-size: .9rem;
    line-height: 1.5;
    transition: color .15s ease-in-out,
                background-color .15s ease-in-out;
}

#cm-tappy-home-home .body .username-search .btn-search:hover,
#cm-tappy-home-home .body .username-search .btn-search:focus {
    box-shadow: none;
}

#cm-tappy-home-home .body .username-search:hover {
    box-shadow: inset 0 0 0 .25rem rgba(var(--button-color) / .5);
}

#cm-tappy-home-home .body .username-search:focus-within {
    box-shadow: inset 0 0 0 .25rem rgba(var(--button-color) / .5);
}

#cm-tappy-home-home .body .username-search .input-username:focus,
#cm-tappy-home-home .body .username-search .input-username:focus-visible {
    outline: none;
}

#cm-tappy-home-home .body .tab-groups {
    display: inline-flex;
    overflow-x: auto;
}

#cm-tappy-home-home .body .tab-groups .btn-group {
    flex-grow: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #707070;
    background-color: #dfdfdf;
    border: solid 1px #707070;
    border-radius: .75rem .75rem 0 0;
    white-space: nowrap;
    transition: color .15s ease-in-out,
                background-color .15s ease-in-out,
                border-color .15s ease-in-out,
                box-shadow .15s ease-in-out,
                filter .15s ease-in-out;
}

#cm-tappy-home-home .body .tab-groups .btn-group.active {
    background-color: #fff;
    border-bottom: solid 1px #fff;
}

#cm-tappy-home-home .body .tab-groups button.btn-group.active {
    color: #fff;
    background-color: rgb(var(--button-color));
}

#cm-tappy-home-home .body .tab-groups .btn-group.disabled,
#cm-tappy-home-home .body .tab-groups .btn-group:disabled {
    opacity: 1;
}

#cm-tappy-home-home .body .tab-groups button.btn-group:not(.disabled):not(:disabled):hover {
    filter: brightness(.85);
}

#cm-tappy-home-home .body .tab-groups button.btn-group:not(.disabled):not(:disabled):focus {
    box-shadow: inset 0 0 0 .25rem rgba(var(--button-color) / .5);
}

#cm-tappy-home-home .body .destination-selector {
    display: inline-flex;
    height: 450px;
    border: solid 1px #707070;
    border-top: none;
    border-radius: 0 0 .75rem .75rem;
    background-color: #fff;
}

#cm-tappy-home-home .body .sub-groups-wrapper {
    display: inline-flex;
    padding-left: .75rem;
    width: clamp(150px, 27.5%, 300px);
    min-width: clamp(150px, 27.5%, 300px);
    overflow-x: auto;
}

#cm-tappy-home-home .body .sub-groups {
    flex-grow: 1;
    display: inline-flex;
    flex-direction: column;
    margin-top: .25rem;
    border-right: solid 1px #707070;
    overflow-y: auto;
}

#cm-tappy-home-home .body .sub-groups .group {
    width: max-content;
    min-width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
}

#cm-tappy-home-home .body .sub-groups .btn-group {
    display: inline-flex;
    align-items: center;
    width: 100%;
    padding: .1rem .5rem;
    border: none;
    border-radius: 0;
    background-color: #fff;
    white-space: nowrap;
    font-size: .8rem;
    transition: color .15s ease-in-out,
                background-color .15s ease-in-out,
                box-shadow .15s ease-in-out,
                filter .15s ease-in-out;
}

#cm-tappy-home-home .body .sub-groups .btn-group::before {
    display: inline-block;
    width: 6px;
    margin-right: .4rem;
    font-size: 1.25rem;
    content: '　';
}

#cm-tappy-home-home .body .sub-groups .btn-group.active {
    color: #fff;
    background-color: #333;
}

#cm-tappy-home-home .body .sub-groups .btn-group.disabled,
#cm-tappy-home-home .body .sub-groups .btn-group:disabled {
    opacity: .3;
}

#cm-tappy-home-home .body .sub-groups .btn-group.active::before {
    color: #fff !important;
}

#cm-tappy-home-home .body .sub-groups .btn-group:not(.disabled):not(:disabled):hover {
    filter: brightness(.85);
}

#cm-tappy-home-home .body .sub-groups .btn-group:not(.disabled):not(:disabled):focus {
    box-shadow: inset 0 0 0 .25rem rgba(0, 0, 0, .3);
}

#cm-tappy-home-home .body .sub-groups .has-child > .group {
    display: none;
    padding-left: .75rem;
}

#cm-tappy-home-home .body .sub-groups .has-child > .btn-group::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: '\f0da';
    transition: color .15s ease-in-out,
                rotate .15s ease-in-out;
}

#cm-tappy-home-home .body .sub-groups .has-child[data-level="0"] > .btn-group::before {
    color: #333;
}

#cm-tappy-home-home .body .sub-groups .has-child[data-level="1"] > .btn-group::before {
    color: #9a9a9a;
}

#cm-tappy-home-home .body .sub-groups .has-child[data-level="2"] > .btn-group::before {
    color: #cacaca;
}

#cm-tappy-home-home .body .sub-groups .has-child.open > .group {
    display: block;
}

#cm-tappy-home-home .body .sub-groups .has-child.open > .btn-group::before {
    rotate: 90deg;
}

#cm-tappy-home-home .body .destinations-wrapper {
    flex-grow: 1;
    height: 100%;
    padding-bottom: .75rem;
}

#cm-tappy-home-home .body .destinations {
    height: 100%;
    margin: .25rem 0;
    overflow-x: none;
    overflow-y: auto;
}

#cm-tappy-home-home .body .btn-destination {
    display: flex;
    flex-wrap: wrap;
    font-size: .8rem;
    line-height: 1;
    width: calc(5rem + 1rem);
    min-width: calc(5rem + 1rem);
    padding: 0 .5rem .5rem .5rem;
}

#cm-tappy-home-home .body .btn-destination p {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: .5rem 0;
    aspect-ratio: 1;
}

#cm-tappy-home-home .body .btn-destination p img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

#cm-tappy-home-home .body .btn-destination span {
    flex-grow: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

#cm-tappy-home-home .body .area-selected {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 10px;
}

#cm-tappy-home-home .body .area-selected .selected-destination {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    padding: .2rem;
    margin-right: .4rem;
    margin-bottom: .8rem;
    background-color: #e0e0e0;
    border: 1px solid #ced4da;
    border-radius: 26px;
    transition: box-shadow .15s ease-in-out;
}

#cm-tappy-home-home .body .area-selected .selected-destination:focus-within {
    box-shadow: 0 0 0 .3rem rgba(172, 172, 172, .5);
}

#cm-tappy-home-home .body .area-selected .selected-destination button {
    padding: 0;
    width: 2.8rem;
    height: 2.8rem;
    color: #acacac;
    border: none;
    border-radius: 50%;
    font-size: 2.9rem;
    line-height: 0;
    transition: color .15s ease-in-out,
                background-color .15s ease-in-out,
                border-color .15s ease-in-out,
                box-shadow .15s ease-in-out,
                filter .15s ease-in-out;
}

#cm-tappy-home-home .body .area-selected .selected-destination button:hover {
    filter: brightness(.85);
}

#cm-tappy-home-home .body .area-selected .selected-destination button:focus {
    box-shadow: none;
}

#cm-tappy-home-home .modal img.vibrate {
    animation: 2s ease-in-out 0s infinite alternate vibration;
}

#cm-tappy-home-home .modal .text-date {
    padding: 0 .25rem .25rem .25rem;
    border-bottom: 3px solid #8ab28a;
    margin-left: 5%;
    white-space: nowrap;
}

#cm-tappy-home-home .modal .text-date .date {
    font-size: 2rem;
}

#cm-tappy-home-home .modal .text-date .day-of-week {
    font-size: 1.5rem;
}

#cm-tappy-home-home .modal .progress {
    position: relative;
    width: 300px;
    height: 1rem;
    background-color: #fff;
    border: 1px solid #707070;
    border-radius: .5rem;
    overflow: hidden;
}

#cm-tappy-home-home .modal .progress .bar {
    position: absolute;
    height: 100%;
    background-color: #8ab28a;
}

#cm-tappy-home-collection label.text-label {
    font-size: 1.5rem;
}

#cm-tappy-home-collection span.text-tips-exchange {
    white-space: nowrap;
    color: #19a78e;
    font-weight: bold;
}

#cm-tappy-home-collection .area-point {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    border: solid 1px #707070;
    border-radius: 15px;
    height: 30px;
    padding: .25rem .5rem;
    font-weight: 400;
    text-align: center;
}

#cm-tappy-home-collection .icon-point {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    color: #fff;
    background-color: #ccc;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: .6rem;
    margin-right: .25rem;
}

#cm-tappy-home-collection div.icons {
    display: flex;
    flex-wrap: wrap;
    padding: 1rem 2rem .5rem 2.5rem;
    width: 100%;
    border-radius: 2rem;
}

#cm-tappy-home-collection .normal div.icons {
    background-color: #ccc;
}

#cm-tappy-home-collection .special div.icons {
    background-color: #f3edc1;
}

#cm-tappy-home-collection .event div.icons {
    background-color: #f3bf88;
}

#cm-tappy-home-collection .icon-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100px * var(--scale));
    height: calc(100px * var(--scale));
    aspect-ratio: 1;
    border: solid 2px #707070;
    border-radius: 50%;
    background-color: #fff;
    font-size: calc(5rem * var(--scale));
}

#cm-tappy-home-collection .icon-thumbnail.clickable {
    cursor: pointer;
}

#cm-tappy-home-collection .icon-thumbnail.unknown::after {
    position: absolute;
    content: '？';
}

#cm-tappy-home-collection .icon-thumbnail.new::before {
    position: absolute;
    border: solid 1px #707070;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    background-color: #a4e82f;
    content: '';
    transform: translate(35.4px, -35.4px);
}

#cm-tappy-home-collection .icon-thumbnail img {
    width: 90%;
    height: 90%;
    border-radius: 50%;
    object-fit: contain;
}

#cm-tappy-home-collection .icon-thumbnail.unknown img {
    filter: blur(8px);
}

#cm-tappy-home-collection .modal span.text-icon-name,
#cm-tappy-home-collection .modal span.text-point-deficit {
    font-size: 1.5rem;
}

#cm-tappy-home-collection .modal span.text-icon-condition,
#cm-tappy-home-collection .modal span.text-exchanged-icon {
    font-size: 1.25rem;
}

#cm-tappy-home-collection .modal span.text-point-deficit {
    color: #19a78e;
    font-weight: bold;
}

#cm-tappy-personalreflection-personalreflection button.btn-prev,
#cm-tappy-personalreflection-personalreflection button.btn-next {
    line-height: 2.5rem;
    border: none;
}

#cm-tappy-themesetting-themesetting .preview {
    font-family: "Noto Sans JP", sans-serif;
}

/* アニメーション */
@keyframes vibration {
    0% {
        transform: translate(0px, 0px) rotate(0deg);
    }

    21% {
        transform: translate(0px, 0px) rotate(0deg);
    }

    23% {
        transform: translate(0px, 0px) rotate(-3deg);
    }

    25% {
        transform: translate(0px, 0px) rotate(0deg);
    }

    27% {
        transform: translate(0px, 0px) rotate(3deg);
    }

    29% {
        transform: translate(0px, 0px) rotate(0deg);
    }

    31% {
        transform: translate(0px, 0px) rotate(-3deg);
    }

    33% {
        transform: translate(0px, 0px) rotate(0deg);
    }

    35% {
        transform: translate(0px, 0px) rotate(3deg);
    }

    37% {
        transform: translate(0px, 0px) rotate(0deg);
    }

    100% {
        transform: translate(0px, 0px) rotate(0deg);
    }
}
