@charset "UTF-8";

/**
 * HTMLタグ
 */
/* md以下 */
@media (max-width: 768px) {
    html {
        /* ダブルタップによるズームを無効化 */
        touch-action: manipulation;
    }
}

/**
 * text
 */
/* 改行テキスト */
.break-text {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-all;
    white-space: normal;
}

/*
 * bootstrap
 */

/* row */
.row {
    --bs-gutter-x: 20px;
}
/* md以下 */
@media (max-width: 768px) {
    .row {
        --bs-gutter-x: 10px;
    }
}

/* モーダル */
.modal-content {
    box-shadow: 0px 3px 6px #00000029;
}
/* モーダルのグレーアウト背景 */
.modal-backdrop {
    background-color: transparent !important;
}

/* card */
.card-body {
    padding: 20px;
}
/* md以下 */
@media (max-width: 768px) {
    .card-body {
        padding: 10px;
    }
}

/* レスポンシブルテーブル内でもドロップダウン表示 */
.table-responsive .dropdown,
.table-responsive .btn-group,
.table-responsive .btn-group-vertical {
    position: static;
}

/* flex */
.flex-wrap {
    flex-wrap: wrap;
}
.flex-gap {
    gap: 10px;
}
.flex-column-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.flex-content-center {
    display: flex;
    gap: 10px;
    align-items: center;
}
.flex-space-between-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* md以下 */
@media (max-width: 768px) {
    .sp-flex-column {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

/**
 * input
 **/
/* text */
.custom-text {
    color: var(--color-dark-gray);
    border: 1px solid var(--color-gray);
    border-radius: 5px;
}
.custom-text::placeholder {
    color: var(--color-gray);
}
/* md以下 */
@media (max-width: 768px) {
    .custom-text {
        font-size: 14px;
    }
}

/* select */
.custom-select {
    color: var(--color-dark-gray);
    border: 1px solid var(--color-gray);
    border-radius: 5px;
}

/**
 * 専用コンポーネント
 */
/* アイコン */
.custom-icon {
    display: flex;
    align-items: center;
    gap: 3px;
}
.custom-icon img {
    width: 24px;
    height: 24px;
}

/* バッジ */
.custom-badge {
    display: inline-block;
    text-align: center;
    border-radius: 5px;
    font-size: 14px;
    line-height: 12px;
    padding: 5px 10px;
    white-space: nowrap;
}
.custom-badge.serial_mr:not(:last-child) {
    margin-right: 5px;
}

/* datepicker */
.custom-datepicker {
    width: 100%;
    cursor: pointer;
    position: relative;
    display: inline-block;
}
.custom-datepicker img {
    position: absolute;
    width: 20px;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    filter: var(--filter-dark-gray);
}
/* デフォルトの右側アイコンを隠す */
.custom-datepicker input::-webkit-calendar-picker-indicator {
    display: none;
}
/* iOS入力値を左寄せ */
.custom-datepicker input::-webkit-date-and-time-value {
    text-align: left;
}

/* 曜日選択一覧 */
.custom-weekday-list {
    position: relative;
    display: inline-flex;
    gap: 5px;
    align-items: center;
}
.custom-weekday-list .day-check-badge {
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    width: 25px;
    height: 25px;
    margin-bottom: 0;
    background-color: var(--color-gray);
    cursor: pointer;
    user-select: none;
}
.custom-weekday-list input.day-check-input:checked + .day-check-badge {
    background-color: var(--color-dark-blue);
}

/* タグ一覧選択 */
#select-tags {
    gap: 5px;
    align-items: center;
}
.tag-badge {
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 10px;
    margin: 3px;
    background-color: var(--color-gray);
    cursor: pointer;
    user-select: none;
}
input.tag-check-input:checked + .tag-badge {
    background-color: var(--color-dark-blue);
}
/* md以下 */
@media (max-width: 768px) {
    .tag-badge {
        font-size: 12px;
    }
}

/* モーダル */
.custom-modal .modal-header {
    color: var(--color-white);
    background-color: var(--color-dark-blue);
}
.custom-modal .modal-header .modal-title {
    font-size: 18px;
}
.custom-modal .modal-header .btn-close {
    filter: var(--filter-white);
    opacity: 1;
}
.custom-modal .modal-body {
    padding: 20px;
}
.custom-modal .modal-footer {
    padding-top: 0px;
}

/* 一覧検索項目 */
.search-item-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0px 10px;
}
/* md以下 */
@media (max-width: 768px) {
    .search-item-row .form-item {
        width: 100%;
    }
}

/* フォームアイテム */
.form-item:not(:last-child) {
    padding-bottom: 20px;
}
.form-item .title {
    font-size: 16px;
    font-weight: bold;
}
/* フォームアイテム ヘッダー表示用 */
.form-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
}
.form-item-header .form-item {
    padding-bottom: unset;
}

/**
 * その他
 **/
/* ポインター */
.pointer {
    cursor: pointer;
}
/* ハイライト */
.highlight {
    background-color: var(--color-light-blue);
}

/* クロスマーク */
.cross-mark {
    display: inline-block;
    position: relative;
    width: 1em;
    height: 1em;
}
.cross-mark::before, .cross-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    transform-origin: center;
}
.cross-mark::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.cross-mark::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}