@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bayon&display=swap');

:root {
    --index-gray: #F2E7DC;
    /*--index-gray: #F2E7DC;*/
    --bg: #F1F0EA;
    --primary: #3C2040;
    --primary-light: #f1e8ea;
    --black: #3b3539;
    --gray-100: #E5E4E1;
    --gray-200: #BEC5C5;
    --gray-300: #949999;
    --gray-400: #7B8080;
    --gray-500: #3D4040;
    --red: #cb1766;
    --red-light: #ee659d;
    --green: #659f36;
    --orange: #FF8552;
    --dark-red: #6f849;
}

.dev {
    position: relative;
    padding: 0.5rem 0;
    color: #03a696;
}

.dev:before {
    content: "開發說明";
    padding: 0.25rem;
    margin: 0.25rem;
    border-radius: 0.5rem;
    color: #F2E7DC;
    background-color: #03a696;
    font-size: 0.875rem;
}

.dev-block {
    position: relative;
    margin: 1rem 0;
    border: 2px dashed var(--danger);
    padding: 1rem;
    border-radius: 1rem;
}

.dev-block:before {
    content: "開發中";
    color: var(--danger);
    font-size: 1.25rem;
}

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    width: 100%;
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    position: relative;
    background-color: var(--bg);
    color: var(--black);
    font-family: "Noto Sans TC", "Heiti TC", "微軟正黑體", CS_font, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

body.entrance {
    background-color: var(--index-gray);
}

:focus {
    outline: none;
}

figure {
    margin: 0;
}

a {
    color: var(--black);
    text-decoration: none;
    cursor: pointer;
}

/*@media (min-width: 900.01px) {*/
/*    :focus {*/
/*        outline: 1px dashed var(--gray-500) !important;*/
/*    }*/
/*}*/

/* === ACCESSKEY === */
.accesskey {
    position: absolute;
    color: var(--gray-300);
    left: -20px;
    top: 0;
    z-index: 100;
}

.accesskey:focus {
    color: var(--primary);
}

.accesskey.u {
    top: 8px;
    left: 4px;
}

.accesskey.c {
    left: -20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.content-full .accesskey.c {
    left: -20px; /* pl + 原定位 */
}

/* skip to main */
.jump-to-main {
    position: absolute;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -999;
}

.jump-to-main:focus,
a.jump-to-main:active {
    color: white;
    background-color: var(--primary);
    left: 50%;
    width: 200px;
    height: auto;
    overflow: auto;
    margin: 1rem auto;
    padding: 0.5rem;
    border-radius: 0.5rem;
    text-align: center;
    font-size: 1rem;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    -webkit-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 999;
}

@media (max-width: 900px) {
    .accesskey,
    .jump-to-main {
        display: none;
    }
}

/* === UTILITY === */
.clearfix:after {
    content: "";
    display: block;
    clear: both;
}

i.left {
    padding-right: 0.25rem;
}

i.right {
    padding-left: 0.25rem;
}

.ms-auto {
    margin-left: auto !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.pt-2-5 {
    padding-top: 2.5rem !important;
}

.pt-5 {
    padding-top: 5rem !important;
}

.pb-5 {
    padding-bottom: 5rem !important;
}

.pb-7-5 {
    padding-bottom: 7.5rem !important;
}

.mt-n4 {
    margin-top: -1.5rem !important;
}

.mobile-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

/*.gap-2 {*/
/*    gap: 0.5rem !important;*/
/*}*/

/*.gap-3 {*/
/*    gap: 1rem !important;*/
/*}*/

h2,
.h2 {
    margin-bottom: 0;
    font-size: 1.75rem;
    line-height: 1.6;
    font-weight: 500;
}

.h3 {
    font-size: 1.5rem;
    line-height: 1.6;
    font-weight: 500;
}

.h4 {
    font-size: 1.25rem;
}


.fs-1 {
    font-size: 3rem !important;
    line-height: 1.7;
}

.fw-400 {
    font-weight: 400 !important;
}

.fw-500 {
    font-weight: 500 !important;
}

.divider-horizontal {
    display: block;
    width: 1px;
    height: 0.75rem;
    margin-top: 0.575rem;
    background-color: var(--gray-500);
}

.divider-vertical {
    display: block;
    width: 100%;
    height: 1px;
    margin-top: 0.575rem;
    background-color: var(--gray-500);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-button {
    background: blue;
}

::-webkit-scrollbar-track-piece {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary);
}

::-webkit-scrollbar-track {
    box-shadow: transparent;
}

@media (max-width: 899.99px) {
    .border-bottom-sm {
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid var(--primary-light);
    }

    .space-between-sm {
        justify-content: space-between !important;
    }
}

@media (min-width: 900px) {
    .d-none-md,
    .mobile-flex {
        display: none !important;
    }

    .d-flex-md {
        display: flex !important;
    }

    h2,
    .h2 {
        font-size: 2rem;
        line-height: 1.6;
    }

    .pt-md-5 {
        padding-top: 5rem !important;
    }

    .mt-md-0 {
        margin-top: 0 !important;
    }

    .pb-md-7-5 {
        padding-bottom: 7.5rem !important;
    }
}

/* === COLOR === */
/* Text */
.text-primary {
    color: var(--primary) !important;
}

.text-gray-500 {
    color: var(--gray-500);
}

.text-success {
    color: var(--green) !important;
}

.text-danger {
    color: var(--red) !important;
}

/* Background */
.bg-index-gray {
    background-color: var(--index-gray) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-white {
    background-color: #F2E7DC !important;
}

.bg-success {
    background-color: var(--green) !important;
}

/* Background */
.border-primary {
    border-color: var(--primary) !important;
}

/* === NAVBAR === */
.navbar {
    position: absolute;
    display: block;
    width: 100%;
    padding: 0;
    -webkit-transition: 0.4s ease;
    -o-transition: 0.4s ease;
    transition: 0.4s ease;
    z-index: 1000;
}

.navbar-top {
    display: flex;
    height: 4rem;
    align-items: center;
    padding: 1rem 1.25rem;
    background-color: var(--bg);
    border-bottom: 1px solid var(--gray-100);
}

.entrance .navbar-top {
    background-color: #fafafa;
}

.navbar-nav {
    position: fixed;
    left: -100vw;
    top: 0;
    display: flex;
    width: 100vw;
    height: 100vh;
    flex-direction: column !important;
    gap: 0;
    margin-left: auto;
    color: #F2E7DC;
    background-color: var(--black);
    font-size: 0.875rem;
    line-height: 80px;
    cursor: pointer;
    transition: left 0.5s ease;
}

.navbar-nav.show {
    left: 0;
}

.navbar-brand {
    display: flex;
    padding: 0;
    align-items: center;
    color: var(--black);
}

.navbar-brand img {
    width: 2rem;
    height: 2rem;
    margin-right: 0.625rem;
}

.menu-open {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: auto;
    transition: 0.3s ease;
}

.menu-open:before {
    font-family: 'Font Awesome 5 Free';
    content: '\f0c9';
    font-weight: 900;
    color: var(--primary);
}

.menu-close {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    margin: 1.25rem 1.25rem 1.25rem auto;
    transition: 0.3s ease;
}

.menu-close:before {
    font-family: 'Font Awesome 5 Free';
    content: '\f00d';
    font-weight: 900;
    color: var(--primary);
}

.navbar-brand h1 {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    font-weight: 700;
    line-height: 1.5;
}

.navbar-brand .logotype-sm {
    font-size: 0.6rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--black);
}

.navbar-brand .logotype-lg {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--black);
}

.navbar-top .navbar-nav a {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 1.25rem;
    padding: 1rem 0 !important;
    color: #F2E7DC;
    border-bottom: 1px solid var(--primary);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.625;
    transition: 0.3s ease;
}

.navbar-top .navbar-nav a.nav-link__user {
    gap: 0.25rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.navbar-top .navbar-nav a.nav-link__user:before,
.navbar-top .navbar-nav .user-dropdown a.dropdown-toggle:before {
    content: "";
    font-family: 'Font Awesome 5 Free';
    content: '\f007';
    font-weight: 900;
    color: var(--primary);
}

.navbar-top .navbar-nav a.dropdown-toggle.nav-link__user:after {
    display: none;
}

.navbar-top .navbar-nav a:hover,
.navbar-top .navbar-nav a:active {
    border-color: var(--primary);
    background-color: transparent;
}

.navbar-top .navbar-nav a.active {
    color: var(--primary);
    background-color: transparent;
}

.navbar-nav .dropdown {
    position: relative;
    height: fit-content;
}

.navbar-nav .dropdown.user-dropdown {
    display: none;
}

.navbar-nav .dropdown .dropdown-toggle.show {
    color: #F2E7DC;
    border-bottom-color: transparent;
}

.navbar-nav .dropdown .dropdown-toggle:after,
.navbar-nav .dropdown.user-dropdown .dropdown-toggle:after {
    width: 1.5rem;
    height: 1.5rem;
    margin-left: auto;
    color: var(--primary);
    border: none;
    font-family: 'Font Awesome 5 Free';
    content: '\f078';
    font-weight: 900;
    transform-origin: center;
    transition: 0.3s ease;
}

.navbar-nav .user-dropdown .dropdown-toggle:after {
    /*display: none;*/
}

.navbar-nav .dropdown .dropdown-toggle:not(.show):hover:after {
    background-color: var(--primary-light);
}

.navbar-nav .dropdown .dropdown-toggle.show:after {
    transform: rotate(-180deg);
    transform-origin: center;
}

.navbar-nav .dropdown-menu {
    position: relative;
    top: auto;
    width: 100%;
    padding: 0;
    margin: 0;
    border-radius: 0;
    background-color: transparent;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.25);
}

.navbar-nav .dropdown-menu li:last-child a {
    padding-bottom: 1rem !important;
    border-bottom: 1px solid var(--primary);
}

.navbar-nav .dropdown-menu .dropdown-item {
    width: auto;
    padding: 0.5rem 0 0.5rem 1rem !important;
    color: #F2E7DC;
    border-bottom: none;
    line-height: 1.7;
}

.navbar-nav .dropdown-menu .dropdown-item:hover {
    background-color: transparent;
    border-color: transparent !important;
    color: var(--primary);
}

.navbar-nav .dropdown-menu .dropdown-divider {
    display: none;
}

.slide {
    position: fixed;
    /*left: 0;*/
    left: -100vw;
    top: 0;
    -webkit-transition: 0.5s ease;
    -o-transition: 0.5s ease;
    transition: 0.5s ease;
    overflow: hidden;
    z-index: 101;
}

.slide.in {
    left: 0;
}

.slide-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(28, 28, 28, 0.8);
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    z-index: 101;
}

/* Mobile menu list */
.mobile-accordion {
    width: 100vw;
    height: 100vh;
    background-color: var(--black);
    overflow-y: auto;
}

.mobile-accordion .nav-top {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
}

@media (min-width: 900px) {
    .frontend .navbar-top {
        height: 5.5rem;
    }

    .frontend .navbar-top {
        padding: 1.25rem 5.25rem;
    }

    .frontend .navbar .navbar-brand img {
        width: 3rem;
        height: 3rem;
        margin-right: 1rem;
    }

    .frontend .navbar-brand .logotype-sm {
        font-size: 0.875rem;
    }

    .frontend .navbar-brand .logotype-lg {
        font-size: 1.125rem;
    }

    .frontend .menu-open {
        display: none;
    }

    .frontend .menu-close {
        display: none;
        margin: 0 0 0 auto;
    }

    .frontend .navbar-nav {
        display: flex;
        position: relative;
        left: initial;
        width: auto;
        height: auto;
        flex-direction: row !important;
        gap: 1.25rem;
        background-color: transparent;
    }

    .frontend .navbar-top .navbar-nav a {
        padding: 0.25rem 0.5rem !important;
        margin: auto 0;
        color: var(--black);
        border-bottom-color: transparent;
        font-size: 1rem;
        line-height: 1.5;
    }

    .frontend .navbar-top .navbar-nav a.nav-link__user {
        display: none;
        margin-top: 0;
    }

    .frontend .navbar-nav .dropdown {
        position: relative;
        height: fit-content;
        margin: auto;
    }

    .frontend .navbar-nav .dropdown.user-dropdown {
        display: block;
    }

    .frontend .navbar-nav .dropdown.user-dropdown .dropdown-toggle {
        display: flex;
        gap: .5rem;
    }

    .frontend .navbar-nav .dropdown .dropdown-toggle.show {
        color: var(--black);
    }

    .frontend .navbar-nav .dropdown-menu {
        position: absolute;
        top: 100%;
        right: 0;
        width: auto;
        margin: 0.5rem 0;
        padding: 0.75rem 0.5rem;
        border-radius: 0.5rem;
        background-color: #F2E7DC;
    }

    .frontend .navbar-nav .dropdown-menu li:last-child a {
        padding-bottom: 0.25rem !important;
        border-bottom: none;
    }

    .frontend .navbar-nav .dropdown-menu .dropdown-item {
        padding: 0.25rem 0.5rem !important;
        color: var(--black);
    }

    .frontend .navbar-nav .dropdown-menu .dropdown-item:hover {
        background-color: var(--primary);
        color: var(--primary-light);
    }

    .frontend .navbar-nav .dropdown-menu .dropdown-divider {
        display: block;
    }
}

/* === LAYOUT === */
main {
    position: relative;
}

.main-content {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 10rem);
    padding-top: 4rem;
    background-color: var(--bg);
}

section {
    position: relative;
    flex-grow: 1;
    padding: 2.5rem 1.25rem;
    margin: 0;
}

.container {
    position: relative;
    width: 100%;
    padding: 0;
}

@media (min-width: 900px) {
    section {
        padding: 3rem 5.25rem;
    }

    .main-content {
        padding-top: 5.5rem;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1370px;
    }
}

.content-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.content-right {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    gap: 1.5rem;
}

.content-right .w-30 {
    width: 30%;
}

.content-right .w-40 {
    width: 40%;
}

.content-right .w-grow {
    flex-grow: 1;
}

/* === FOOTER === */
.footer {
    position: relative;
    display: flex;
    align-items: center;
    padding: 2.5rem 1.25rem;
    background-color: var(--primary);
    color: #F2E7DC;
    font-size: 1rem;
    font-family: "Noto Sans TC";
}

.footer-main {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-brand .footer-logo {
    display: none;
    width: 3rem;
}

.footer-logotype {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
}

.footer-logotype .logotype-sm {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
}

.footer-logotype .logotype-lg {
    font-size: 1.125rem;
    font-weight: 700;
}

.footer-link {
    display: flex;
    row-gap: 0.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.footer a {
    color: #F2E7DC;
    -webkit-transition: 0.3s ease;
    -o-transition: 0.3s ease;
    transition: 0.3s ease;
}

.footer a:hover {
    color: var(--gray-200);
}

.footer-link .footer-item {
    position: relative;
}

.footer-link .footer-item:not(:first-child) {
    margin-left: 2rem;
}

.footer-link .footer-item.count {
    flex-basis: 100%;
    margin-left: 0;
    text-align: center;
}

.footer-link .footer-item:not(:first-child)::before {
    content: "";
    position: absolute;
    left: -1rem;
    top: 50%;
    width: 1px;
    height: 1rem;
    background: #F2E7DC;
    transform: translateY(-50%);
}

.footer-link .footer-item.count:before {
    display: none;
}

.footer-link .a11y-badge {
    width: 100%;
    text-align: center;
}

.footer-link .a11y-badge img {
    height: 1.5rem;
    object-fit: contain;
}

.footer-sub {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    line-height: 2;
}

.footer-sub .office-info {
    display: flex;
    width: 100%;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
    /*border-top: 1px solid var(--gray-500);*/
    /*border-bottom: 1px solid var(--gray-500);*/
}

.footer-sub .office-info .logo {
    width: 2rem;
    height: 2rem;
    margin-bottom: 0;
}

.footer-sub .office-info .office-info__text {
    display: flex;
    gap: 0.25rem;
    flex-direction: column;
    font-size: 0.875rem;
}

.footer-sub .copyright {
    padding-top: 1.5rem;
    font-size: 0.8125rem;
    font-weight: 300;
    text-align: center;
}

.footer-sub .copyright > span {
    display: block;
}

/* Scroll to Top */
.scroll-top {
    transition: 0.4s ease;
    z-index: 999;
}

.scroll-top .scroll-top-btn {
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background-color: #F2E7DC;
    color: var(--primary);
    border-radius: 50%;
    font-size: 1.125rem;
    transition: 0.4s ease;
}

.scroll-top .scroll-top-btn svg {
    width: 2rem;
    height: 2rem;
    transform: rotate(180deg);
    fill: var(--primary);
    transition: 0.4s ease;
}

.scroll-top .scroll-top-btn:hover svg,
.scroll-top .scroll-top-btn:focus svg {
    margin-bottom: 0.25rem;
}

.scroll-top .scroll-top-btn > span {
    position: absolute;
    font-size: 0.75rem;
    color: transparent;
}

@media (min-width: 900px) {
    .footer {
        height: 10rem;
        padding: 3rem 5.25rem;
    }

    .footer-main {
        flex-direction: row;
    }

    .footer-brand {
        flex-direction: row;
    }

    .footer-brand .footer-logo {
        display: block;
        width: 4.35rem;
        margin-right: 1.4375rem;
    }

    .footer-logotype {
        align-items: flex-start;
        margin-top: 0;
    }

    .footer-logotype .logotype-sm {
        font-size: 1.125rem;
    }

    .footer-logotype .logotype-lg {
        font-size: 1.25rem;
    }

    .footer-link {
        gap: 0;
        justify-content: end;
        margin-top: 0;
    }

    .footer-link .footer-item.count {
        flex-basis: auto;
        margin-left: 2rem;
    }

    .footer-link .footer-item.count:before {
        display: block;
    }

    .footer-link .a11y-badge {
        width: auto;
        padding-left: 1rem;
    }

    .footer-sub {
        flex-direction: row;
    }

    .footer-sub .office-info {
        width: auto;
        padding: 0;
        border-color: transparent;
    }

    .footer-sub .office-info .office-info__text {
        gap: 1rem;
        flex-direction: row;
        font-size: 1rem;
    }

    .footer-sub .copyright {
        padding-top: 0;
        font-size: 1rem;
        font-weight: 400;
        text-align: right;
    }

    .footer-sub .copyright > span {
        display: inline;
    }

    .scroll-top .scroll-top-btn {
        width: 5rem;
        height: 5rem;
    }

    .scroll-top .scroll-top-btn:hover svg,
    .scroll-top .scroll-top-btn:focus svg {
        margin-bottom: 1rem;
    }
}

/* === CARD === */
.card {
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
}

.card .h3 {
    margin-bottom: 1rem;
}

@media (min-width: 678px) {
    .vw-30 {
        width: 30vw !important;
    }

    .vw-40 {
        width: 40vw !important;
    }
}


/* === TOOLTIP === */
.tooltip-inner {
    max-width: 25rem;
    padding: 0.625rem 1rem;
    background-color: var(--black);
    border-radius: 0.25rem;
    font-size: 0.875rem;
    text-align: left;
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.25);
}

.tooltip-inner ul {
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.tooltip-inner ul li {
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.tooltip-inner ul li .title {
    min-width: 5rem;
    font-weight: 700;
}


/* === BUTTON === */
.btn {
    display: flex;
    height: fit-content;
    gap: 0.25rem;
    padding: 0.5rem 1.375rem 0.5rem 1.375rem;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1.5;
    transition: 0.3s ease;
}

.btn,
.btn:active {
    border: none;
    color: var(--black);
}

.btn-check:checked + .btn,
.btn.active,
.btn.show,
.btn:first-child:not(.disabled):active,
:not(.btn-check) + .btn:not(.disabled):active {
    --bs-btn-active-bg: var(--primary);
    --bs-btn-active-border-color: var(--primary);
}

.btn-text {
    border: 1px solid transparent;
    transition: .3s ease;
}

.btn-text:hover,
.btn-text:active {
    background-color: transparent !important;
    border-color: var(--black) !important;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--index-gray);
}

.btn-primary:hover {
    background-color: var(--index-gray);
    color: var(--primary);
}

.btn-primary.disabled,
.btn-primary:disabled {
    background-color: var(--gray-100) !important;
    color: var(--gray-200) !important;
    cursor: not-allowed;
    pointer-events: initial;
}

.btn-primary:focus-visible {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 .25rem rgba(10, 60, 98, .25);
}

.btn-secondary {
    background-color: var(--orange);
    color: #F2E7DC;
}

.btn-secondary:hover {
    background-color: var(--orange);
    color: var(--black);
}

.btn-secondary.disabled,
.btn-primary:disabled {
    background-color: var(--gray-100) !important;
    color: var(--gray-200) !important;
    cursor: not-allowed;
    pointer-events: initial;
}

.btn-secondary:focus-visible {
    background-color: var(--orange);
    border-color: var(--orange);
    box-shadow: 0 0 0 .25rem rgba(10, 60, 98, .25);
}

.btn-outline {
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--primary);
    line-height: 1.7;
    font-weight: 500;
    transition: 0.3s ease;
}

.btn-outline:disabled,
.btn-outline.disabled {
    background-color: var(--bg);
    border-color: var(--bg);
    color: var(--gray-400);
    cursor: not-allowed;
}

.btn-outline:hover,
.btn-outline:active {
    border: 1px solid var(--primary-light);
}

.btn-sm {
    padding: 0.25rem .75rem !important;
}


/* === FORM === */
input[type="checkbox"] {
    box-sizing: border-box;
    width: 1.25rem;
    height: 1rem;
    margin: 0.25rem;
    padding: 0;
    border: 2px solid var(--primary-light);
    appearance: none;
    background-color: transparent;
    border-radius: 0.125rem;
    outline: none;
    transition: outline 0.1s;
    cursor: pointer;
}

input[type="checkbox"]:checked {
    background-size: cover;
}

input[type="checkbox"]:checked {
    border-color: var(--primary);
    font-family: 'Font Awesome 5 Free';
    content: '\f00c';
    font-weight: 900;
    color: var(--primary);
}

input[type="checkbox"]:disabled {
    background-color: var(--gray-100);
    cursor: not-allowed;
}

input[type="checkbox"]:disabled:checked {
    background-color: var(--gray-100);
    --bs-form-check-bg-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23285185' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3E%3C/svg%3E");
}

input[type="checkbox"]:focus {
    outline-offset: 0.25rem;
}

.form-check-input:disabled,
.form-control:disabled,
.form-check-input:disabled ~ .form-check-label, .form-check-input[disabled] ~ .form-check-label {
    opacity: 1;
    pointer-events: none;
}

@media (hover: hover) {
    input[type="checkbox"]:not(:disabled):hover {
        border-color: var(--primary);
    }
}

.form-block {
    width: 100%;
}

.form-block.form-inline {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
    align-items: center;
    white-space: nowrap;
}

.filter-block-top .form-block.form-inline {
    margin-bottom: 0.75rem;
}

/* overwrite php form 自動加入的.mb-3*/
.form-block .mb-3 {
    width: 100%;
    margin-bottom: 0 !important;
}

.form-label.required:after {
    content: "*";
    color: var(--red);
    padding-left: 0.125rem;
    font-weight: normal;
}

label {
    font-weight: 500;
}

.form-control {
    display: block;
    width: 100%;
    font-size: 1rem;
    appearance: none;
}

.form-control::placeholder {
    color: var(--gray-300);
}

.form-control,
.form-select {
    border: 1px solid var(--primary);
}

.form-container,
.form-control,
.form-select {
    padding: .5rem 1rem;
    border-radius: 0.5rem;
    background-color: var(--bg);
    color: var(--black);
    line-height: 1.7 !important;
    transition: 0.3s ease;
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-control:disabled {
    cursor: not-allowed;
}

.form-control.form-control-sm {
    padding: 0.375rem 1rem !important;
    font-size: 1rem;
}

.form-container.disabled,
.form-container:disabled {
    background-color: var(--gray-100);
    color: var(--gray-300);
    cursor: not-allowed;
}

.form-container::placeholder {
    color: var(--gray-400);
}

.form-container:hover {
    border-color: var(--primary);
}

input.form-container {
    width: 15rem;
}

button.form-container {
    background-color: transparent;
}

select {
    position: relative;
    -webkit-appearance: none;
    -moz-appearance: none;
    -o-appearance: none;
    appearance: none;
    outline: none;
    background-color: #F2E7DC;
    background-image: none;
}

select.form-container,
select.form-select,
input.form-container {
    padding-right: 3rem !important;
}

select.form-container,
select.form-select {
    width: 100%;
}

select.form-container:after,
select.form-select:after {
    font-family: 'Font Awesome 5 Free';
    content: '\f078';
    font-weight: 900;
    color: var(--primary);
    transition: 0.3s ease;
}

.form-control:focus,
.form-control:active,
.form-container:focus,
.form-container:active {
    background-color: var(--primary-light);
    box-shadow: none;
    border-color: var(--primary);
}

.form-container::placeholder {
    color: var(--gray-400);
}

@media (min-width: 900px) {
    .form-block {
        width: auto;
    }

    .form-block.form-inline {
        gap: 0.75rem;
    }

    .form-block.form-md-inline {
        display: flex;
        gap: 0.5rem;
        justify-content: flex-start;
        align-items: center;
        white-space: nowrap;
    }

    .filter-block-top .form-block.form-inline {
        margin-bottom: 0;
    }

    .form-container {
        border: 1px solid var(--primary-light);
    }

    .form-container {
        padding: 0.875rem 1rem 0.875rem 1.5rem !important;
    }

    select.form-container,
    select.form-select {
        /*min-width: 10rem;*/
        /*width: auto;*/
    }
}

/* SWITCH */
.form-switch {
    display: flex;
    align-items: center;
    justify-content: end;
    margin-top: 0.75rem;
}

.form-switch button.form-container {
    position: relative;
    padding: 0.25rem 0.5rem;
    color: var(--black);
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
}

.form-switch button.form-container:first-child:after {
    content: "";
    position: absolute;
    display: block;
    right: 0;
    top: 50%;
    width: 1px;
    height: 1rem;
    background-color: var(--black);
    transform: translateY(-50%);
}

.form-switch button.form-container.active {
    color: var(--primary);
}

@media (min-width: 900px) {
    .form-switch {
        justify-content: center;
        margin-top: 0;
    }

    .form-switch button.form-container {
        border: 1px solid var(--primary);
        border-radius: 6.25rem;
    }

    .bg-primary .form-switch button.form-container {
        border: 1px solid #F2E7DC;
    }

    .form-switch button.form-container:first-child:after {
        display: none;
    }

    .form-switch button.form-container.active,
    .form-switch button.form-container:hover {
        color: var(--black);
        background-color: var(--primary);
    }

    .bg-primary .form-switch button.form-container.active,
    .bg-primary .form-switch button.form-container:hover {
        background-color: #F2E7DC;
    }

    .form-switch button.form-container:first-child {
        padding-right: 1rem;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .form-switch button.form-container:last-child {
        padding-left: 1rem;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .form-switch button.form-container:not(:first-child) {
        padding-left: 1rem !important;
        padding-right: 1.5rem !important;
        margin-left: -1px;
        border-left: 0;
    }
}

.form-label {
    font-weight: 600;
    line-height: 1.7;
}

.form-check-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check {
    padding-left: 1.75rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    min-height: 1.25rem;
    margin-top: 0;
    border-color: var(--primary-light);
}

.form-check-input:focus {
    border-color: var(--primary-light);
    box-shadow: none;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:active {
    filter: initial;
}

.form-check-input:active[type="radio"],
.form-check-input:checked[type="radio"] {
    position: relative;
    background-image: none;
    background-color: transparent;
}

.form-check-input:active[type="radio"]:after,
.form-check-input:checked[type="radio"]:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: var(--primary);
    transform: translate(-50%, -50%);
}

.form-check .form-check-input {
    margin-left: -1.75rem;
}

/* CUSTOM FORM CONTAINER */
.form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin: 0 auto 2.5rem;
}

.form-wrapper button {
    width: 10rem;
    margin-top: 1rem;
}

.form-wrapper .form-block.form-inline {
    margin-bottom: 2rem !important;
}

.form-wrapper .form-label {
    flex-grow: 1;
    font-weight: 500;
}

.form-wrapper .form-block.form-inline .form-label {
    margin-bottom: 0;
}

.form-wrapper .form-container {
    width: 24rem;
}

@media (min-width: 900px) {
    .form-wrapper {
        width: 29.5rem;
        margin: 0 auto 5rem;
    }
}

/* FILE UPLOAD DISPLAY*/
.file-block {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    padding-bottom: 2rem;
}

.file-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    width: calc(50% - 1.25rem / 2);
    padding: 1rem 1.25rem;
    border: 1px solid var(--primary);
    border-radius: 0.25rem;
    color: var(--gray-500);
    transition: 0.3s ease;
}

.file-item:hover {
    background-color: var(--bg);
}

/*.file-item:after {*/
/*    content: '\f56d';*/
/*    width: 2.375rem;*/
/*    height: 1.5rem;*/
/*    color: var(--primary);*/
/*    font-family: 'Font Awesome 5 Free';*/
/*    font-weight: 900;*/
/*    text-align: right;*/
/*    transition: 0.3s ease;*/
/*}*/

@media (min-width: 768px) {
    .file-block {
        flex-direction: row;
    }
}

/*== TABLE ==*/
/* include ckeditor table */
.section-content__full .content .c-tb-table,
.section-content__full .content .table {
    padding-bottom: 2rem;
}

.c-tb-table,
.section-content__full .content table {
    border-radius: 0.25rem;
    border-collapse: separate;
    border-spacing: 0;
}

.c-tb-thead,
.section-content__full .content table thead {
    display: none;
    width: 100%;
    background: var(--primary);
    color: #F2E7DC;
    border-collapse: collapse;
}

.section-content__full .content table thead tr {
    background-color: transparent;
    color: #F2E7DC;
}

.section-content__full .content table thead tr th {
    font-weight: 400;
}

.c-tb-thead,
.c-tb-tbody,
.section-content__full .content table thead,
.section-content__full .content table tbody {
    vertical-align: middle;
}

.c-tb-table .c-tb-tbody:not(:first-child) {
    margin-bottom: 1rem;
}

.c-tb-tbody .c-tb-tr,
.section-content__full .content table tr {
    color: var(--black);
}

.c-tb-tbody .c-tb-tr:not(:first-child),
.section-content__full .content table tr:not(:first-child) {
    margin-top: 1rem;
}

.c-tb-thead .c-tb-th,
.c-tb-tbody .c-tb-th,
.c-tb-tbody .c-tb-td,
.section-content__full .content table th,
.section-content__full .content table td {
    display: flex;
    padding: 0.5rem 1rem;
    text-align: left;
    vertical-align: middle;
    line-height: 1.7;
}

.c-tb-tbody .c-tb-tr .c-tb-td,
.section-content__full .content table td {
    width: 100%;
    border-bottom: 1px solid var(--primary-light);
}

.c-tb-tbody .c-tb-tr .c-tb-td:last-child {
    border-color: var(--primary);
}

.c-tb-tbody .c-tb-tr .c-tb-td:before {
    content: attr(data-label);
    display: inline-flex;
    width: 6rem;
    min-width: 6rem;
    color: var(--primary);
}

.section-content__full .content table {
    width: 100%;
}

@media (min-width: 768px) {
    .c-tb-thead,
    .section-content__full .content table thead {
        display: table-header-group;
    }

    .c-tb-thead,
    .c-tb-tbody,
    .section-content__full .content table thead,
    .section-content__full .content table tbody {
        vertical-align: middle;
        border-color: inherit;
    }

    .c-tb-tbody,
    .section-content__full .content table tbody {
        display: table-row-group;
    }

    .c-tb-tr,
    .section-content__full .content table tr {
        display: table-row;
        vertical-align: inherit;
        border-color: inherit;
    }

    .c-tb-thead .c-tb-th,
    .c-tb-tbody .c-tb-th,
    .c-tb-tbody .c-tb-td,
    .section-content__full .content table th,
    .section-content__full .content table td {
        display: table-cell;
        text-align: center;
    }

    .c-tb-tbody .c-tb-tr .c-tb-td,
    .section-content__full .content table td {
        width: auto;
        border-color: var(--primary-light) !important;
    }

    .c-tb-tbody .c-tb-tr:last-child .c-tb-td,
    .section-content__full .content table tr:last-child td {
        border-color: var(--primary) !important;
    }

    .c-tb-tbody .c-tb-tr .c-tb-td:before {
        display: none;
    }
}

/*== JCONFIRM ==*/
.frontend .jconfirm .jconfirm-bg {
    background: rgba(26, 24, 23, 0.8);
    opacity: initial;
}

.frontend .jconfirm .jconfirm-box {
    width: calc(100vw - 2.5rem);
    margin: auto;
    padding: 1.5rem 1.25rem !important;
    border-radius: 1rem;
}

.frontend .jconfirm .jconfirm-box div.jconfirm-title-c {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-bottom: 1.5rem;
    font-size: 1.25rem;
    line-height: 1.625;
}

.frontend .jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.frontend .jconfirm .jconfirm-box div.jconfirm-content-pane {
    margin-bottom: 1.5rem;
    overflow-y: scroll;
}

.frontend .jconfirm .jconfirm-box .jconfirm-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding-bottom: 0;
    float: initial;
}

.frontend .jconfirm .jconfirm-box .jconfirm-buttons button {
    padding: 0.5rem 2.5rem !important;
    margin: 0;
    background: var(--primary);
    border: 1px solid var(--primary);
    font-size: 1rem !important;
    line-height: 1.75;
    font-weight: normal !important;
    transition: 0.3s ease;
}

.frontend .jconfirm .jconfirm-box .jconfirm-buttons button:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

.frontend .jconfirm .jconfirm-box .jconfirm-buttons button.btn-default {
    background: #F2E7DC !important;
    color: var(--black);
}

.frontend .jconfirm .jconfirm-box .jconfirm-buttons button.btn-default:hover {
    background: #F2E7DC;
    border-color: var(--primary-light);
}

.frontend .jconfirm .jconfirm-box .jconfirm-buttons .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.frontend .jconfirm .jconfirm-box .jconfirm-buttons .btn-danger {
    background-color: var(--red);
    border-color: var(--red);
    color: #F2E7DC;
}

.frontend .jconfirm .jconfirm-box .jconfirm-buttons .btn-danger:hover {
    background-color: var(--red-light);
    border-color: var(--red-light);
    color: var(--black);
}

@media (min-width: 900px) {
    .frontend .jconfirm .jconfirm-box {
        width: 100%;
        padding: 2.5rem !important;
    }
}

.bad input,
.bad select,
.bad textarea {
    position: relative;
    left: 0;
}

.bad input,
.bad select,
.bad textarea,
.bad .custom-control-label::before,
.form-control.is-invalid,
.was-validated .form-control:invalid {
    border: 1px solid var(--red);
    -webkit-box-shadow: 0 0 4px -2px var(--red);
    box-shadow: 0 0 4px -2px var(--red);
    -moz-animation: 0.7s 1 shake linear;
    -webkit-animation: 0.7s 1 shake linear;
}


/* === STEP ===*/
.stepper {
    position: sticky;
    top: 3rem;
    height: fit-content;
}

.step-wrapper {
    width: 14rem;
    margin-top: 1.5rem;
}

.step-item {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .5rem;
    margin-bottom: calc(2.5rem + .5rem * 2);
    color: var(--gray-400);
    font-size: 1.5rem;
    transition: .3s ease;
}

.step-item:not(:last-child):after {
    content: "";
    position: absolute;
    left: 1.5rem;
    top: calc(100% + .5rem);
    display: block;
    width: 1px;
    height: 2.5rem;
    background-color: var(--gray-200);
}

.step-item__number {
    display: flex;
    width: 3rem;
    height: 3rem;
    justify-content: center;
    align-items: center;
    border-radius: 3rem;
    border: 1px solid var(--gray-400);
    font-family: "Bayon";
    font-variation-settings: 'wght' 400;
    font-weight: 400;
    transition: .3s ease;
}

.step-item.end:hover .step-item__number {
    background-color: var(--green);
    color: #F2E7DC;
}

.step-item__text {
    font-size: 1.25rem;
}

.step-item.end:hover .step-item__text,
.step-item.end:hover .step-item__text a {
    color: var(--green) !important;
}

a.step-item__text:hover {
    color: var(--primary);
}

.step-item.active .step-item__number {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #F2E7DC;
}

.step-item.end .step-item__number {
    color: var(--green);
    border-color: var(--green);
}

.step-item.active .step-item__text {
    color: var(--black);
}

.step-wrapper.step-horizontal {
    display: flex;
    width: 100%;
    flex-direction: row;
    gap: 3rem 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.step-wrapper.step-horizontal .step-block {
    /*flex-basis: 30%;*/
}

.step-wrapper.step-horizontal .step-block .step-item:hover {
    color: var(--primary);
}

.step-wrapper.step-horizontal .step-item {
    margin-bottom: 1rem;
}


.step-wrapper.step-horizontal .step-item:after {
    position: relative;
    width: calc(100% - 4rem);
    height: 1px;
    left: 0;
}

.step-wrapper.step-horizontal .step-item__number {
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    font-size: 1rem;
}

.step-wrapper.step-horizontal .step-item__text {
    font-size: 1.25rem;
    white-space: nowrap;
}

.step-wrapper.step-horizontal .step-content {
    margin-left: 2rem;
}

.step-wrapper.step-horizontal .step-item.end {
    color: var(--green);
}

.step-wrapper.step-horizontal .step-item.unend {
    color: var(--red);
}

.step-wrapper.step-horizontal .step-item.unend .step-item__number {
    color: var(--red);
    border-color: var(--red);
}

.step-wrapper.step-horizontal .step-item.unend:hover .step-item__number {
    background-color: var(--red);
    color: #F2E7DC;
}

.step-wrapper.step-horizontal .step-item.unend:hover .step-item__text {
    color: var(--red);
}


@media (min-width: 768px) {
    .step-wrapper.step-horizontal .step-block {
        flex-basis: 30%;
    }
}

.alert-primary {
    --bs-alert-bg: var(--primary-light);
    --bs-alert-border-color: var(--primary);
}


.action-block {
    display: flex;
    position: sticky;
    bottom: 0;
    flex-direction: column-reverse;
    justify-content: space-between;
    margin: 1.5rem -1.5rem -1.5rem -1.5rem;
    padding: 3.5rem 1.5rem 1.5rem 1.5rem;
    row-gap: 1rem;
    border-top: 1px solid var(--gray-100);
    background-color: #F2E7DC;
    border-radius: 0 0 1rem 1rem;
}

.action-block.no-hint {
    padding-top: 1.5rem;
}

.action-block .action-items {
    display: flex;
    gap: 1rem;

}

.action-block .count {
    position: absolute;
    left: 1.5rem;
    top: 1rem;
}

.action-items .btn {
    flex-basis: 50%;
}


@media (min-width: 768px) {
    .action-block {
        flex-direction: row;
    }

    .action-items .btn {
        white-space: nowrap;
    }
}


section.fill-section {
    width: 900px;
    max-width: 900px;
    margin: 0 auto;
}


/* === TOASTIFY ===*/
.toastify {
    display: flex;
    align-items: center;
    background: #F2E7DC;
    color: var(--black);
    border-radius: .5rem;
    box-shadow: 0 3px 6px -1px rgba(0, 0, 0, 0.12), 0 10px 36px -4px rgba(40, 81, 133, 0.45);
}

.toastify.success {
    background-color: var(--green);
    color: #F2E7DC;
    box-shadow: 0 3px 6px -1px rgba(23, 117, 12, 0.12), 0 10px 36px -4px rgba(77, 133, 40, 0.45);

}

.toastify.danger {
    background-color: var(--red);
    color: #ffecf5;
    box-shadow: 0 3px 6px -1px rgba(117, 12, 68, 0.12), 0 10px 36px -4px rgba(133, 40, 79, 0.45);

}

.toastify.warning {
    background-color: var(--orange);
    color: #3E2000;
    box-shadow: 0 3px 6px -1px rgba(117, 52, 12, 0.12), 0 10px 36px -4px rgba(133, 100, 40, 0.45);

}

.toastify:before {
    padding-right: .5rem;
    font-family: 'Font Awesome 5 Free';
    font-size: 2rem;
    font-weight: 900;
}

.toastify.success:before {
    content: '\f4da';
}

.toastify.danger:before {
    content: '\f119';
}

.toastify.warning:before {
    content: '\f5c2';
}

.toast-close {
    width: 1.5rem;
}

.toast-close:before {
    content: "\f00d";
    font-family: 'Font Awesome 5 Free';
    font-size: 1rem;
    font-weight: 900;
}


/* === PAGINATION === */
.pagination {
    display: flex;
    gap: .125rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.pagination-link {
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    justify-content: center;
    align-items: center;
    padding: 0 .5rem;
    border: 1px solid transparent;
    border-radius: .75rem;
    font-size: 1rem;
    color: var(--black);
    transition: .3s ease;
}

.pagination-link:not(.disabled) {
    cursor: pointer;
}

.pagination-item:not(.disabled) .pagination-link:hover {
    color: var(--gray-400);
}

.pagination-item:not(.disabled) .pagination-control:hover {
    background-color: var(--gray-400);
}

.pagination-item.active .pagination-link {
    border-color: var(--primary);
}

.pagination-link.pagination-control,
.pagination-item.next .pagination-link,
.pagination-item.prev .pagination-link {
    --svg: url(../img/chev.svg);
    -webkit-mask: var(--svg);
    mask: var(--svg);
    -webkit-mask-position: center center;
    -webkit-mask-repeat: no-repeat;
    background-color: var(--black);
}

.pagination-link.pagination-next,
.pagination-item.next .pagination-link {
    transform: rotate(-180deg);
}

.pagination-item.disabled .pagination-control,
.pagination-item.disabled .pagination-link {
    background-color: var(--gray-200);
}

.pagination-item.last,
.pagination-item.first {
    display: none;
}