@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.0/font/bootstrap-icons.css");

/* 変数設定 */
:root {
    /* color */
    --main-color: #0b5ed7;
    --main-hover-color: #0953c2;
    --success-color: #4091a8;
    --success-hover-color: #277c94;
    --secondary-color: #575863;
    --secondary-hover-color: #434556;
    --danger-color: #ee4b4b;
    --danger-hover-color: #de3030;
    --disabled-color: #808080;
    --body-background: #F5F4F5;

    --sub-text-color: #575757;
    
    /* border */
    --main-border: 1px solid rgba(0, 0, 0, .2);
}

/* Tag Default */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

a {
    text-decoration-line: none;
}

span, p {
    color: #333;
}

ul, li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    padding-bottom: 9.3rem;
}

/* .container-fluid {
    height: 100vh;
} */

.container_padding {
    padding-bottom: 3.5rem !important;
}

.section {
    background-color: #fff;
    /* padding: 4rem; */
    padding: 3.5rem 4rem 4rem;
    min-height: 76.3rem;
}

.text-over-ellipsis {
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-over {
    display: inline-block;
    white-space: normal;
}

/* Top_nav  */
.top_nav {
    padding: 3rem 2rem 2rem;
}
.top_nav > * {
    color: #808080;
    font-size: 1.4rem;
}
.top_nav a:hover {
    color: var(--main-hover-color);
}

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

#wrap{
    min-height: 100vh;
    /* width: 100vw; */
    position: relative;
}

/* Button */
.button {
    all: unset;
    border-radius: 50px;
    color: #fff !important;
    padding: .8rem 0rem !important;
    font-size: 1.6rem;
    width: 23rem;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color .25s ease;
}

.btn-sm {
    padding: .6rem 0rem !important;
    font-size: 1.5rem;
    width: 16rem;
}

.btn:hover {
    color: #fff;
}

.btn-main {
    background-color: var(--main-color);
    border-color: var(--main-color);
}

.btn-outline-secondary {
    background-color: #fff;
    color: var(--secondary-color) !important;
    border-color: var(--secondary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-disabled {
    background-color: var(--disabled-color);
    border-color: var(--disabled-color);
    cursor: not-allowed;
}

.btn-main:hover{ 
    background-color: var(--main-hover-color);
    border-color: var(--main-hover-color);
}

.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    color: #fff !important;
}

.btn-success:hover {
    background-color: var(--success-hover-color);
    border-color: var(--success-hover-color);
}

.btn-danger:hover {
    background-color: var(--danger-hover-color);
    border-color: var(--danger-hover-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover-color);
    border-color: var(--secondary-hover-color);
}
.btn-icon {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 8px 16px;
    gap: 8px;
}

.btn-icon .bi::before {
    line-height: inherit !important;
    vertical-align: middle !important;
}

/* Button Effect */
.btn-effect {
    display: inline-block;
    position: relative;
    text-transform: capitalize;
}
.btn-effect.btn-hover,
.btn-effect.btn-hover-l {
    transition: all 0.2s linear 0s;
}
.btn-effect.btn-hover:before {
    content: "\203A";
    font-size: 2.5rem;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    right: 0;
    top: -0.2rem;
    opacity: 0;
    height: 100%;
    width: 8rem;
    transition: all 0.2s linear 0s;
}
/* .btn-effect.btn-hover:hover {
    text-indent: -2rem;
} */
.btn-effect.btn-hover-l:before {
    content: "\2039";
    font-size: 2.5rem;
    color: #fff;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 0;
    top: -0.2rem;
    opacity: 0;
    height: 100%;
    width: 8rem;
    transition: all 0.2s linear 0s;
}
/* .btn-effect.btn-hover-l:hover {
    text-indent: 2rem;
} */
.btn-effect.btn-hover:hover:before,
.btn-effect.btn-hover-l:hover:before {
    opacity: 1;
    text-indent: 0px;
}

/* .btn-effect.btn-hover-down:before {
    content: "\2193";
    font-size: 2rem;
    top: 0;
} */


/* modal */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 5000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-header,
.modal-footer,
.modal-body {
    padding: .6rem 0 !important;
}

.modal-title {
    font-size: 2.2rem;
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 1rem 2rem;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 750px;

    position: relative;
}

.warning_msg {
    display: none;
}

.warning_msg.act {
    display: block;
}

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 2.8rem;
    font-weight: bold;
}
.close:hover,
.close:focus {
    /* color: black; */
    text-decoration: none;
    cursor: pointer;
}

#warningConfirmModal .modal-title {
    color: var(--danger-color);
    font-weight: 600;
}

#infoConfirmModal .modal-title {
    color: var(--main-color);
    font-weight: 600;
}

#infoConfirmModal .modal-body,
#warningConfirmModal .modal-body {    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem; 
    min-height: 15rem; 
    gap: 1.2rem;
    text-align: center;
}

#infoConfirmModal .modal-footer,
#warningConfirmModal .modal-footer {    
    display: flex;
    gap: 1.2rem;
}

/* Title */
.main-title {
    color: #333;
    margin-bottom: 3.2rem;
    font-size: 2.2rem;
}

.sub-title {
    color: #555;
    margin-bottom: .8rem;
    font-size: 1.6rem;
}

/* text */
.txt-xl {
    font-size: 3.2rem;
}
.txt-lg {
    font-size: 2rem;
}
.txt-md {
    font-size: 1.6rem;
}
.txt-sm {
    font-size: 1.4rem;
}
.txt-xs {
    font-size: 1.2rem;
}
.txt-title {
    font-size: 3rem;
}
.txt-text {
    font-size: 2.5rem;
}

.txt-gray {
    color: var(--sub-text-color);
}
.txt-danger {
    color: var(--danger-color);
}
.txt-main, 
.main-span {
    color: var(--main-color);
}


/* Footer */
footer{
    height: 12.7rem;
    background-color: #333;
    color: #fff;
    width: 100%;
}
.footer_padding {
    padding: 3rem;
    font-size: 1.55rem;
}
.footer_logo {
    width: 17.4rem;
}

/* scroll icon */
.mouse-icon {
    display: none;
    /* position: fixed; */
    position: absolute;
    bottom: 1.4rem;
    right: -1rem;
    transform: translate(-50%, 0);
    z-index: 999;
    width: 2.8rem;
    height: 4.3rem;
    border: 2px solid #000;
    border-radius: 2rem;
}
/* .mouse-icon.hidden {
    display: none;
} */

@keyframes Mouse_act {
    0% {
        transform: translateY(5px);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(5px);
    }

}

/* .mouse-icon::before {
    content: 'スクロール';
    display: block;
    position: fixed;
    bottom: 120%;
    left: 50%;
    width: 6rem;
    font-size: 1.2rem;
    color: #000;
    letter-spacing: 0px;
    font-weight: 600;
    transform: translateX(-50%);
} */

.mouse-icon .ball {
    /* position: fixed; */
    position: absolute;
    top: .8rem;
    left: 1rem;
    width: 4px;
    height: 4px;
    background: #000;
    border-radius: 50%;
    animation: Mouse_act 1s ease-out infinite;
}

/* 마우스 아래 화살표 */
.arrow-down {
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-right-color: black;
    border-bottom-color: black;
    transform: rotate(45deg);
    margin-top: 4.3rem;
    animation: arrow 1.15s linear infinite;
    position: absolute;
    right: 0.7rem;
  }
  
@keyframes arrow {
    0% {
        opacity: 0;
    }
    25% {
        opacity: 0.25;
    }
    50% {
        opacity: 0.5;
    }
    75% {
        opacity: 0.75;
    }

    100% {
        opacity: 1;
    }
}


/* progress */
.progress-text {
    font-size: 3.2rem !important;
    font-weight: 600;
    color: var(--main-color);
}

/* scroll-move */
.move img {
    width: 5rem;
}

.move-top {
    display: none;
    position: fixed;
    right: 0;
    bottom: 6rem;
    bottom: .4rem;
    z-index: 997;
}
.move-bottom {
    display: none;
    position: fixed;
    right: 0;
    bottom: .4rem;
    z-index: 997;
}

.move > div {
    padding: .6rem 1.5rem;
    display: none;
    justify-content: end;
    align-items: center;
    cursor: pointer;
    transition: .2s;
    margin-right: .4rem;
}

/* flash messgae */
.flash {
    height: 75px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 4999;
    background-color: #ffffff;
    box-shadow: 0 0 30px 2px #dddddd;
    animation: flash-show .3s ease 0s; 

    display: flex;
    align-items: center;
    font-size: 1.6rem;
    overflow: hidden;
    border-radius: 5px;
}

.flash.hide {
    animation: flash-hide .3s ease 0s;
    right: -100%;
    opacity: 0; 
}

.flash_icon {
    padding: 2.5rem;
    font-size: 2rem;
    color: white;    
}

.flash.success .flash_icon { background-color: var(--main-color); }
.flash.success .flash_text { color: var(--main-color); }
.flash.failure .flash_icon { background-color: var(--danger-color); }
.flash.failure .flash_text { color: var(--danger-color); }

.flash_text {
    display: inline-block;
    line-height: 75px;
    vertical-align: top;
    margin-right: 6rem;
    font-size: 1.6rem;
    font-weight: 300;
    color: rgba(25, 25, 25, 0.75); 
    padding-left: 1.2rem;
}
.flash_close {
    width: 1.6rem;
    height: 1.6rem;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem; 
}

.flash_close:hover span:before, .flash_close:hover span:after {
    background-color: rgba(25, 25, 25, 0.25); 
}

.flash_close span {
    width: 16px;
    height: 16px;
    position: relative; 
}

.flash_close span:before, .flash_close span:after {
    content: '';
    width: 16px;
    height: 2px;
    background-color: rgba(25, 25, 25, 0.5);
    transition: all 200ms ease;
    position: absolute;
    top: 7px; 
}

.flash_close span:before {
    transform: rotate(45deg); 
}

.flash_close span:after {
    transform: rotate(-45deg); 
}

.icon-center:before {
    vertical-align: middle;
    line-height: 1.6;
}
  
@keyframes flash-show {
    0% {
        right: -100%;
        opacity: 0; 
    }
    100% {
        right: 20px;
        opacity: 1; 
    } 
}
  
@keyframes flash-hide {
    0% {
        right: 20px;
        opacity: 1; 
    }
    100% {
        right: -100%;
        opacity: 0; 
    } 
}

/* Input, Select */
input {
    padding: 1.1rem 1.2rem;
    font-size: 1.4rem;
}

input, select {
    appearance: none; /* 브라우저 별 다른 기본 설정 삭제 */
    outline: none;
    background: transparent;
    cursor: pointer;
    min-width: 15rem;
    border: 1px solid #999999;
    border-bottom: 2px solid #999999;
    border-radius: 1rem;
    color: #000;
}

.form-control {
    border: 1px solid #999999 !important;
    border-bottom: 2px solid #999999 !important;
    border-radius: 1rem !important;
}


/* Media Query */
@media (max-width: 2000px) {
    .container {
        max-width: 1200px;
    }
}

@media (max-width: 1349.98px) {
    .container {
        max-width: 1100px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }
}

@media (max-width: 1080px) {
    .container {
        max-width: 900px;
    }
}

@media (max-width: 991.98px) {
    .container {
        max-width: 850px;
    }
}

@media (max-width: 767.98px) {
    /* footer */
    .copyright {
        margin-top: 1rem;
    }
}

@media (max-width: 428px) {
    .top_nav {
        padding: 2rem;
    }
    
    .move > div {
        padding: 0;
    }

    .btn-effect.btn-hover:before,
    .btn-effect.btn-hover-l:before {
        width: 5rem;
    }

    .txt-title {
        font-size: 3rem;
    }
    .txt-text {
        font-size: 1.8rem;
        margin-top: 2rem;
    }
}

@media (max-width: 414px) {
    .txt-title {
        font-size: 2.7rem;
    }
}

@media (max-width: 479px) {
    html {
        font-size: 60%;
    }

    /* footer */
    .footer_logo {
        width: 15.4rem;
    }

    .copyright {
        margin-top: 2rem;
        font-size: 1.4rem;
    }
}

@media (max-width: 320px) {
    html {
        font-size: 55%;
    }

    /* footer */
    .footer_logo {
        width: 14.4rem;
    }
}
