/* Google Fontsの読み込み*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

body {
    font-family: "Noto Sans JP", serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    text-size-adjust:100%;
    -webkit-text-size-adjust:100%;
}

/* ナビバー */
.custom-navbar {
    background-color: #404040;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    height: 85px;
    border-radius: 7px;

    .brand {
        font-size: 1.5rem;
        font-weight: bold;
    }
    .icon {
        font-size: 1.5rem;
        background-color: white;
        border-radius: 7px;
        color: black;
        width: 3rem;
        height: 3rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media (min-width: 768px) { /* 768pxはBootstrapのMediumコンテナのブレークポイントと同一 */
    .custom-navbar {
        padding: 0 5rem;
    }
}

/* メインコンテンツ */
main {
    max-width: 600px !important;
    font-size: 1.2rem;
}

@media (min-width: 768px) {
    main {
        max-width: 600px !important;
        font-size: 1.2rem;
    }
}

/* テキストインプット */
/*
.form-control:focus {
    background-color: #fff;
    border-color: #404040 !important;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25) !important;
}
input[type="text"]:focus {
    outline: none;
}
    */

/* チェックボックス */
.checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    display: none;
}

.checkbox-label {
    display: block;
    width: 100%;
    padding: 1rem;
    border: 1px solid #404040;
    border-radius: 7px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.checkbox-group input[type="checkbox"]:checked + .checkbox-label {
    background-color: #404040;
    color: #fff;
    border-color: #404040;
}

.checkbox-group input[type="checkbox"]:disabled + .checkbox-label {
    cursor: default;
}

form[action*="confirm"] .checkbox-label {
    cursor: default;
}

/* フォームラベル */
.form-label {
    width: 100%;
}

/* エラー表示 */
.text-danger {
    font-size: 0.875rem; /* Adjust the size as needed */
}

/* スライドイン・スライドアウト */
.slide-in {
    animation: slideIn 0.5s forwards;
}

.slide-out {
    animation: slideOut 0.5s forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}
