@charset "UTF-8";

/* ==========================================================================
   統一フォントサイズ設計（基準: 16px = 1rem）
========================================================================== */
:root {
    /* --- 汎用サイズ階層 --- */
    --font-size-xs: 0.75rem;       /* 12px相当 : バッジ、ごく小さな補足 */
    --font-size-small: 0.875rem;   /* 14px相当 : テーブル内、補足説明 */
    --font-size-middle: 1rem;      /* 16px相当 : 本文、標準ボタン（基準） */
    
    /* ↓ PC用も少し控えめに微調整 ↓ */
    --font-size-l: 1.0625rem;      /* 17px相当 : やや大きめの文字、小見出し */
    --font-size-xl: 1.125rem;      /* 18px相当 : 中見出し */
    --font-size-xxl: 1.25rem;      /* 20px相当 : 大見出し（24px→20pxへ抑制） */

    /* --- 用途別のセマンティック（意味的）変数 --- */
    --font-size-input: 1rem;                  /* 16px相当 : 入力欄（※iOSズーム防止のため必須） */
    --font-size-screen-title: 1.25rem;        /* 20px相当 : 画面タイトル（少し抑制） */
    --font-size-screen-explanation: 0.875rem; /* 14px相当 : 画面上部の説明文 */
    --font-size-section-title: 1.125rem;      /* 18px相当 : 区分のタイトル */
    --font-size-contents-title: 1rem;         /* 16px相当 : 中区分のタイトル */

    --padding-vertical-btn: 13px;

    --checkbox-unified-size: 1.25rem;      /* 20px相当 : チェックボックス・ラジオボタンの統一サイズ */
    --checkbox-unified-margin-top: -0.15rem; /* テキスト（ラベル）のベースラインと合わせるための縦ズレ補正 */
}

/* ==========================================================================
   layout
========================================================================== */

label:focus {
    outline: 2px dashed rgb(176, 176, 176);
    outline-offset: 2px;
}

.app-background {
    background-color: white;
}

#overlay {
    position: fixed;
    top: 0;
    z-index: 1100;
    width: 100%;
    height: 100%;
    display: none;
    background: rgba(0, 0, 0, 0.6);
}

#overlay-fixedPhrase {
    position: fixed;
    top: 0;
    z-index: 1050;
    width: 100%;
    height: 100%;
    display: none;
    background: rgba(0, 0, 0, 0.6);
}

.cv-spinner {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px #ddd solid;
    border-top: 4px #2e93e6 solid;
    border-radius: 50%;
    animation: sp-anime 0.8s infinite linear;
}

@keyframes sp-anime {
    100% {
        transform: rotate(360deg);
    }
}

.is-hide {
    display: none;
}


/* TOP画面 */

main.top .container-fluid {
    padding: 20px;
    gap: 10px;
    flex-wrap: wrap;
}

.body-background-color {
    background-color: var(--color-background);
}

.custom-breadcrumb {
    width: fit-content;
    background: #fff;
    padding: 3px 3px;
    border-radius: 2rem;
}

.fit-content {
    width: fit-content
}

.custom-breadcrumb ul>li:after {
    color: #333;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    right: -6px;
    position: absolute;
    font-weight: bold;
}

.custom-breadcrumb ul>li {
    position: relative;
    padding: 5px 10px;
}

.custom-breadcrumb ul>li:hover {
    color: var(--color-main);
    background: var(--color-background);
    border-radius: 2rem;
    font-weight: 600;
}

.custom-breadcrumb ul>li:last-of-type {
    color: var(--color-main);
    background: var(--color-background);
    border-radius: 2rem;
    margin-left: 10px;
    font-weight: 600;
    box-shadow: inset 1px 2px 4px rgb(0 0 0 / 10%);
}

.custom-breadcrumb ul>li:last-of-type:after {
    content: "";
}

.custom-breadcrumb ul {
    display: flex;
    list-style: none;
    gap: 5px;
    font-size: var(--font-size-small);
    font-weight: 500;
    align-items: center;
    margin-bottom: 0;
    padding-left: 0;
}

#chooseTable tr:hover {
    background-color: lightskyblue;
}

.datepickr-clear {
    position: absolute;
    top: 6px;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
    right: 3px;
}

.flatpickr-clear,
.not-use-pastdate-custom-datepickr-clear,
.custom-already-payment-datepickr-clear,
.reservation-custom-datepickr-clear,
.zyuryo-reservation-custom-datepickr-clear,
.not-use-pastMonth-datepickr-clear,
.monthpickr-clear {
    position: absolute;
    top: 8px;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
    right: 3px;
}

.timepickr-clear {
    position: absolute;
    top: 8px;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
    right: 3px;
}

.payMonth-datepickr-clear {
    position: absolute;
    top: 6px;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
    right: 3px;
}

.payNextMonth-datepickr-clear {
    position: absolute;
    top: 6px;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
    right: 3px;
}

.payMonth-skip-datepickr-clear {
    position: absolute;
    top: 6px;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
    right: 3px;
}

.chooseRow {
    background-color: lightskyblue;
}

.calender-width {
    width: 130px;
}

.time-width {
    width: 100px;
}

.memberStore-input-width {
    width: 125px;
}

.amount-input-width {
    width: 108px;
}

.has-error {
    color: #630015 !important;
    border-color: #c20c33 !important;
    background-color: #ffd9e1 !important;
}

.custom-tooltip {
    --bs-tooltip-bg: #FF7474;
    font-family: 'Source Sans Pro', sans-serif;
}

.custom-tooltip .tooltip-inner {
    width: 220px;
    max-width: 220px;
    background-color: #FF7474;
}

.tooltip.bs-tooltip-right .tooltip-arrow::before {
    border-right-color: #FF7474;
}

.tooltip.bs-tooltip-left .tooltip-arrow::before {
    border-left-color: #FF7474;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #FF7474;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #FF7474;
}

.flatpickr-calendar .flatpickr-innerContainer .flatpickr-weekdays .flatpickr-weekday:nth-child(7n + 1),
.flatpickr-calendar .flatpickr-innerContainer .flatpickr-days .flatpickr-day:not(.flatpickr-disabled):not(.prevMonthDay):not(.nextMonthDay):nth-child(7n + 1) {
    color: red;
}


/* 土曜日：青 */

.flatpickr-calendar .flatpickr-innerContainer .flatpickr-weekdays .flatpickr-weekday:nth-child(7),
.flatpickr-calendar .flatpickr-innerContainer .flatpickr-days .flatpickr-day:not(.flatpickr-disabled):not(.prevMonthDay):not(.nextMonthDay):nth-child(7n) {
    color: blue;
}

.custom-flatpickr::-webkit-calendar-picker-indicator {
    display: none;
}

.custom-timepickr::-webkit-calendar-picker-indicator {
    display: none;
}

.cur-year {
    order: 1;
}

.cur-month:before {
    content: '年　';
}

.cur-month {
    order: 2;
}

.flatpickr-current-month span.cur-month {
    font-weight: 300;
    padding-top: 4px;
}

.gap-m {
    gap: 20;
}

.custom-form {
    border-radius: 2em;
    padding: 9px 25px;
    font-weight: 500;
    background: hsl(0deg 0% 100% / 90%);
    border: none;
}

.success-info-icon-color {
    color: #007bff
}

.error-info-icon-color {
    color: #C25338
}


/* ==========================================================================
   モーダル
========================================================================== */

.custom-modal-xxl {
    height: 90%;
    max-width: 1000px;
}

.custom-modal-xl {
    height: 90%;
    max-width: 800px;
}

.custom-modal-lg {
    height: 90%;
    max-width: 600px;
}

.custom-modal-md {
    height: 50%;
    width: 70%;
    max-width: 600px;
}

.info-modal {
    display: flex;
    align-items: center;
    height: 100%;
}

.info-modal-content {
    height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 0.5rem;
    outline: 0;
}

.confirm-modal-content {
    height: 220px;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 400px;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 0.5rem;
    outline: 0;
}

.custom-modal-content-lg {
    height: fit-content;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 0.3rem;
    outline: 0;
}

.custom-modal-content-md {
    height: 50%;
    position: relative;
    display: flex;
    width: 70%;
    flex-direction: column;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 0.5rem;
    outline: 0;
}

.modal-table {
    width: 75%;
}

.modal-tbody {
    width: 100%;
}

.modal-tbody>tr>th {
    width: 25%;
}

.modal-tbody>tr>td {
    width: 70%;
}


/* ==========================================================================
   フォントサイズ（ユーティリティ）
========================================================================== */

.font-size-s {
    font-size: var(--font-size-small);
}

.font-size-m {
    font-size: var(--font-size-middle);
}

.font-size-sl {
    font-size: var(--font-size-l);
}

.font-size-l {
    font-size: var(--font-size-xl);
}

.font-title-md {
    font-weight: 600;
    font-size: var(--font-size-xl);
}

.w-10 {
    width: 10% !important;
}

.w-20 {
    width: 20% !important;
}

.w-30 {
    width: 30% !important;
}

.w-40 {
    width: 40% !important;
}

.w-45 {
    width: 45% !important;
}

.w-50 {
    width: 50% !important;
}

.w-60 {
    width: 60% !important;
}

.w-70 {
    width: 70% !important;
}

.w-80 {
    width: 80% !important;
}

.w-85 {
    width: 85% !important;
}

.w-90 {
    width: 90% !important;
}

.w-50px {
    width: 50px !important;
}

.h-200px {
    height: 200px !important;
}

/* ==========================================================================
   フォント(色)
========================================================================== */

.default-font-color {
    color: var(--color-main);
}

/* ==========================================================================
   背景色
========================================================================== */

.default-bg-color {
    background: hsl(0deg 0% 100% / 50%);
}

/* ==========================================================================
   header
========================================================================== */

.header {
    background: #fff;
    padding: 0 10px;
}

.header .header-block,
.header-link {
    padding: 7px 10px;
    position: relative;
    font-weight: 500;
    font-size: var(--font-size-small);
}

.header-link:hover {
    background: var(--color-background);
    border-radius: 2rem;
    color: var(--color-main);
}

.logo-h {
    height: 40px;
    padding: 3px;
}

.logo-h img {
    height: 34px;
}

/* ==========================================================================
   nav
========================================================================== */

.navigetion-style {
    height: 58px;
    border: 0.5px solid #DDDDDD;
    background-color: hsl(0deg 0% 96%);
}

.menu-lists {
    display: flex;
    justify-content: start;
    height: 100%;
}

.menu-item {
    position: relative;
    width: 120px;
    height: 100%;
    align-items: center;
}

.menu-item:hover {
    background-color: hsl(0deg 3.19% 90.57%);
}

.menu-lists .selected-menu {
    background-color: hsl(0deg 3.19% 90.57%);
}

.menu-item a {
    position: absolute;
    font-size: var(--font-size-small);
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    word-wrap: break-word;
    white-space: normal;
    text-align: center;
    border-right: 3px solid rgb(192, 192, 192);
}

.menu-item a i {
    margin: 3px 0px;
    display: block;
    font-size: var(--font-size-l);
}

.menu-item:hover,
.menu-item a:hover {
    color: #777777;
}

.box-title {
    font-size: var(--font-size-xl);
    background: rgb(192, 192, 192);
    padding: 4px;
    color: #FFF;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.border-bottom-double {
    border-bottom: 6px double #000;
}

/* ==========================================================================
   container
========================================================================== */

.container-item {
    width: fit-content;
    height: fit-content;
    padding: 20px 20px 5px 20px;
    background: #fff;
    border-radius: 2rem;
    box-shadow: 5px 5px 5px rgb(0 0 0 / 10%);
    margin: 5px;
}

.container-body {
    flex-wrap: nowrap;
    gap: 10px;
}

.container-item-fit-content {
    min-width: 50%;
    width: fit-content;
    padding: 20px 20px 5px 20px;
    background: #fff;
    border-radius: 2rem;
    box-shadow: 5px 5px 5px rgb(0 0 0 / 10%);
    margin: 5px;
}

.container-item-w50 {
    width: 50%;
    padding: 20px 20px 5px 20px;
    background: #fff;
    border-radius: 2rem;
    box-shadow: 5px 5px 5px rgb(0 0 0 / 10%);
    margin: 5px;
}

.container-item-w75 {
    width: 75%;
    padding: 20px 20px 5px 20px;
    background: #fff;
    border-radius: 2rem;
    box-shadow: 5px 5px 5px rgb(0 0 0 / 10%);
    margin: 5px;
}

.container-item-w100 {
    width: 100%;
    padding: 20px 20px 5px 20px;
    background: #fff;
    border-radius: 2rem;
    box-shadow: 5px 5px 5px rgb(0 0 0 / 10%);
    margin: 5px;
}

.container-input-form {
    padding: 10px 25px;
    background: #fff;
    border-radius: 1rem;
    min-width: 400px;
    width: fit-content;
}

.container-input-form-top .input-form dl {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px 30px;
}

.container-search-results-bottom .--btn {
    width: fit-content;
    margin: 10px 0 10px auto;
    padding: 4px 4.2px 4px 4px;
    background: #fff;
    border-radius: 2rem;
}

.card-body .standard-text {
    font-size: var(--font-size-small);
    color: hsl(0deg 0% 40%);
}

.card-body .bold-text {
    font-size: var(--font-size-xl);
    font-weight: 600;
}

.card-body .date-text {
    font-size: var(--font-size-small);
    color: hsl(0deg 0% 40%);
    line-height: 1.5;
}

.btn-main {
    color: #ffffff;
    background: var(--color-main);
    border-color: var(--color-main);
    font-weight: 500;
}

.btn-main:hover {
    opacity: 0.7;
}

.btn-main:disabled {
    opacity: 0.35;
    pointer-events: none;
    box-shadow: none;
}

.fa,
.far,
.fas {
    margin-left: 5px;
    margin-right: 5px;
}

/* ==========================================================================
   フォーム
========================================================================== */

.form::placeholder {
    opacity: 0.5;
    color: var(--color-main);
    font-weight: 400;
}

.form:focus {
    outline: none;
    box-shadow: 0 0 5px 0 var(--color-main);
}

.form:hover {
    outline: none;
    box-shadow: 0 0 5px 0 var(--color-main);
}

/* ==========================================================================
   テーブル
========================================================================== */

.memberStore-btn-font-size {
    font-size: var(--font-size-middle);
}

/* 検索欄 */

.input-form table {
    font-size: var(--font-size-small);
}

.input-form-table {
    font-size: var(--font-size-small);
}

.input-form table th {
    text-align: left;
    height: 29.33px;
    padding: 0px 20px 0px 20px;
    font-weight: 500;
    font-size: var(--font-size-small);
}

.input-form table th:first-child {
    padding: 0px 20px 0px 0px;
}

.input-form table th.--vertical-align-top,
.input-form table td.--vertical-align-top {
    vertical-align: top;
}

.input-form table td {
    vertical-align: middle;
    font-weight: 500;
    height: 23px;
}

.input-form-table-td {
    vertical-align: middle;
    font-weight: 500;
    height: 23px;
}

.input-form-table-th {
    text-align: left;
    height: 29.33px;
    line-height: 25px;
    font-weight: 500;
    font-size: var(--font-size-small);
}


/* 検索結果 */

.search-results {
    overflow-x: auto;
    max-height: calc((100vh - 145px) * 0.46);
    overflow-y: auto;
    max-width: fit-content;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
}

.search-results table {
    width: fit-content;
    table-layout: fixed;
}

.search-results table.summary {
    margin-left: auto;
    margin-right: 0;
}

.search-results table thead {
    border-top: 0px solid var(--color-mainBrightnessUp);
    border-bottom: 1px solid var(--color-mainBrightnessUp);
    background: var(--color-gray);
    font-size: var(--font-size-small);
    position: sticky;
    top: 0;
    z-index: 50;
}

.search-results table tbody {
    background: #fff;
    font-size: var(--font-size-middle);
}

.search-results table.summary tbody {
    font-weight: bold;
}

.search-results table tr {
    border-bottom: 1px solid var(--color-mainBrightnessUp);
}

.search-results table th {
    padding: 5px 5px;
    text-align: left;
    font-weight: 500;
    vertical-align: middle;
    line-height: 1.2;
}

.search-results table td {
    padding: 2px 10px;
    vertical-align: middle;
    line-height: 1.2;
    word-break: break-all;
    overflow: hidden;
    white-space: nowrap;
}


/* 奇数行の背景色 */

.search-results table tr:nth-child(odd) td {
    background: var(--color-row-odd);
}

/* 偶数行の背景色 */

.search-results table tr:nth-child(even) td {
    background: var(--color-gray);
}

/* 削除フラグが立っている背景色 */

.search-results table tr.--delete td {
    background: var(--color-delete);
    border-bottom: none;
}

.search-results table tr:hover td {
    background: hsl(172deg 76% 29% / 10%);
}

.search-results table tr.--delete:hover td {
    background: var(--color-delete);
}


/* 権限マスタ */

.search-results table.--bgnone tr:nth-child(odd) td,
.search-results table.--bgnone tr:nth-child(even) td {
    background: var(--color-row-odd);
}

.search-results table.--bgnone tr:hover td {
    background: hsl(172deg 76% 29% / 10%);
}

.search-results table.summary tr:hover td {
    background: var(--color-row-odd);
}

/* 大項目背景色 */
.search-results table.--bgnone tr.primaryItem td {
    background: var(--color-primaryItem);
}

.search-results table.--bgnone tr.primaryItem:hover td {
    background: var(--color-primaryItem);
}

/* 中項目背景色 */
.search-results table.--bgnone tr.secondaryItem td {
    background: var(--color-secondaryItem);
}

.search-results table.--bgnone tr.secondaryItem:hover td {
    background: var(--color-secondaryItem);
}

.custom-search-results {
    overflow-x: auto;
    max-height: calc((100vh - 145px) * 0.55);
    overflow-y: auto;
    max-width: fit-content;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
}

.custom-search-results table {
    width: fit-content;
    table-layout: fixed;
}

.custom-search-results table.summary {
    margin-left: auto;
    margin-right: 0;
}

.custom-search-results table thead {
    border-top: 0px solid var(--color-mainBrightnessUp);
    border-bottom: 1px solid var(--color-mainBrightnessUp);
    background: var(--color-gray);
    font-size: var(--font-size-small);
    position: sticky;
    top: 0;
    z-index: 50;
}

.custom-search-results table tbody {
    background: #fff;
    font-size: var(--font-size-middle);
}

.custom-search-results table.summary tbody {
    font-weight: bold;
}

.custom-search-results table tr {
    border-bottom: 1px solid var(--color-mainBrightnessUp);
}

.custom-search-results table th {
    padding: 5px 5px;
    text-align: left;
    font-weight: 500;
    vertical-align: middle;
    line-height: 1.2;
}

.custom-search-results table td {
    padding: 2px 10px;
    vertical-align: middle;
    line-height: 1.2;
    word-break: break-all;
    overflow: hidden;
    white-space: nowrap;
}

/* 奇数行の背景色 */
.custom-search-results table .odd-bg td {
    background: var(--color-row-odd);
}

/* 偶数行の背景色 */
.custom-search-results table .even-bg td {
    background: var(--color-gray);
}

/* 削除フラグが立っている背景色 */
.custom-search-results table tr.--delete {
    border-bottom: none;
}

.custom-search-results table tr.--delete td {
    background: var(--color-delete);
}

.custom-search-results table tr:hover even-bg td {
    background: hsl(172deg 76% 29% / 10%);
}

.custom-search-results-hover-td {
    background: hsl(172deg 76% 29% / 10%) !important;
}

/* スクロールバー */
.custom-search-results::-webkit-scrollbar {
    width: 15px;
    height: 15px;
}

.custom-search-results::-webkit-scrollbar-track {
    background: hsl(0 0% 100% / 0.8);
    border-radius: 1rem;
}

.custom-search-results::-webkit-scrollbar-thumb {
    background: hsl(0 0% 80% / 1);
    border-radius: 1rem;
    border: 2px solid hsl(0 0% 100%);
}

.search-results::-webkit-scrollbar {
    width: 15px;
    height: 15px;
}

.search-results::-webkit-scrollbar-track {
    background: hsl(0 0% 100% / 0.8);
    border-radius: 1rem;
}

.search-results::-webkit-scrollbar-thumb {
    background: hsl(0 0% 80% / 1);
    border-radius: 1rem;
    border: 2px solid hsl(0 0% 100%);
}

/* 詳細画面 レイアウト用（テーブルの線無し） */
.detail table {
    font-size: var(--font-size-small);
}

.detail table th {
    text-align: left;
    padding: 0 20px 0 0;
    vertical-align: middle;
    font-weight: 400;
    font-size: var(--font-size-middle);
    word-break: keep-all;
}

.detail table td {
    vertical-align: middle;
    font-weight: 500;
    padding: 2px 0;
    word-break: break-all;
    font-size: var(--font-size-middle);
}

/* 詳細画面 テーブル用（テーブルの線有り） */
table.detail-table tbody {
    background: #fff;
    font-size: var(--font-size-small);
}

table.detail-table thead {
    background: hsl(0deg 0% 90%);
}

table.detail-table th {
    padding: 5px 8px;
    text-align: left;
    font-weight: 500;
    vertical-align: middle;
    line-height: 1.2;
}

table.detail-table tr td {
    padding: 5px 8px;
    vertical-align: middle;
    word-break: break-all;
    font-weight: 400;
    line-height: 1.2;
}

table.detail-table tr td span {
    display: inline-block;
}

table.detail-table tr {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

/* 奇数行の背景色 */
table.detail-table tr:nth-child(odd) td {
    background: #fff;
}

/* 偶数行の背景色 */
table.detail-table tr:nth-child(even) td {
    background: var(--color-gray);
}

/* 選択行の背景色 */
table.detail-table tr.--selected td {
    background: var(--color-selectedBg);
}

table.detail-table tr.--selected:hover td {
    background: var(--color-selectedBg);
}

table.detail-table tr:hover td {
    background: hsl(172deg 76% 29% / 10%);
}

/* ==========================================================================
   text
========================================================================== */

.text-true {
    color: var(--color-sub) !important;
    font-weight: 500;
}

.text-false {
    color: var(--color-red) !important;
    font-weight: 500;
}

.text-info {
    color: var(--color-main) !important;
    font-weight: 500;
}

/* 小さく出したい情報 */
.info-small {
    font-size: var(--font-size-small);
    color: hsl(0deg 0% 40%);
    line-height: 1.5;
}

.info-message {
    background: var(--color-mainOpacity01);
    color: var(--color-main);
    padding: 10px 0px;
    border-radius: 1rem;
    font-weight: 500;
    width: 100%;
    text-align: center;
}

.result-message {
    background: var(--color-subOpacity01);
    color: var(--color-sub);
    padding: 10px 0px;
    border-radius: 1rem;
    font-weight: 500;
    width: 100%;
    text-align: center;
}

.result-fail-message {
    background: var(--color-redBackground);
    color: var(--color-red);
    padding: 10px 0px;
    border-radius: 1rem;
    font-weight: 500;
    width: 100%;
    text-align: center;
}

/* ==========================================================================
   検索結果件数
========================================================================== */

.search-results-num {
    width: fit-content;
    padding: 10px 15px;
    background: var(--color-gray);
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    font-weight: 500;
    font-size: var(--font-size-small);
}

.search-results-num span {
    font-size: var(--font-size-xl);
    margin: 0 5px;
    font-weight: bold;
    color: var(--color-main);
}

/* ==========================================================================
   フォーム
========================================================================== */

/* 検索欄の年月日時分 */
.input-form-date {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* 契約番号 */
.input-form .menberNum {
    width: 150px;
}

/* E-mail */
.input-form .eMail {
    width: 400px;
}

/* inputのstyle */
/* type:text */
input.number {
    text-align: right;
}

input.form {
    border: 1px solid hsl(0deg 0% 70%) !important;
    border-radius: var(--inputbox-border-radius);
    padding-left: 5px;
}

input.form:hover {
    outline: none;
    box-shadow: 0 0 3px 0 var(--color-main);
}

input.form:focus {
    outline: none;
    border-color: var(--color-main);
    box-shadow: 0 0 3px 0 var(--color-main);
}

input.form:disabled,
input.form:disabled:hover,
input.form:read-only {
    background: var(--font-disabledBg);
    outline: none;
    border-color: transparent;
    box-shadow: none;
}

.numeric {
    text-align: right !important;
}

/* textarea */
textarea.form {
    border: 1px solid hsl(0deg 0% 70%);
    border-radius: var(--inputbox-border-radius);
    padding-left: 5px;
    caret-color: var(--color-main);
}

textarea.form:hover {
    outline: none;
    box-shadow: 0 0 3px 0 var(--color-main);
}

textarea.form:focus {
    outline: none;
    border-color: var(--color-main);
    box-shadow: 0 0 3px 0 var(--color-main);
}

/* スクロールバー */
textarea.form::-webkit-scrollbar {
    width: 15px;
    height: 15px;
}

textarea.form::-webkit-scrollbar-thumb {
    background: hsl(0 0% 80% / 1);
    border-radius: 1rem;
    border: 4px solid hsl(0 0% 100%);
}

.form.resize-vertical {
    resize: vertical;
}

/* type:radio */
.radio {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 10px;
    font-weight: 500;
}

.radio.--flex-direction-column {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
}

.radio>div>label>input[type="radio"] {
    margin-top: 0;
}

.radio label:hover {
    cursor: pointer;
}

.radio>div>label {
    display: flex;
    align-items: center;
}

/* type:checkbox */
.checkbox {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 10px;
    font-weight: 500;
}

.checkbox>div>label {
    display: flex;
    align-items: center;
}

.checkbox label:hover {
    cursor: pointer;
}

.modal .checkbox {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 10px;
    font-weight: 500;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
}

.modal .checkbox.bunkatsu label {
    width: 110px;
    text-align: left;
}

.modal .checkbox.shiharaiNum label {
    width: 160px;
    text-align: left;
}

/* type:select */
select.form {
    border: 1px solid hsl(0deg 0% 70%);
    border-radius: var(--inputbox-border-radius);
    width: 150px;
}

.authority-form {
    width: 225px !important;
}

select.form:hover {
    outline: none;
    box-shadow: 0 0 3px 0 var(--color-main);
    cursor: pointer;
}

select.form:focus {
    outline: none;
    border-color: var(--color-main);
    box-shadow: 0 0 3px 0 var(--color-main);
}

.form-select {
    font-size: var(--font-size-middle);
    border-radius: var(--inputbox-border-radius);
}

/* スクロールバー */
select.form::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

select.form::-webkit-scrollbar-track {
    background: hsl(0 0% 100% / 0.8);
    border-radius: 1rem;
}

select.form::-webkit-scrollbar-thumb {
    background: hsl(0 0% 80% / 1);
    border-radius: 1rem;
    border: 2px solid hsl(0 0% 100%);
}

.submit-btn {
    display: inline-block;
    padding: 14px 140px;
    background-color: #2294d6;
    border: none;
    border-radius: 3px;
    color: white;
    margin: 10px auto;
    cursor: pointer;
}

.input-frame {
    overflow: hidden;
}

/* ==========================================================================
   ページング
========================================================================== */

.linear {
    width: fit-content;
    margin: 10px auto;
    padding: 4px 4.2px 4px 4px;
    background: #fff;
    border-radius: 2rem;
}

.linear-previous,
.linear-next {
    width: fit-content;
    border-radius: 2rem;
    color: var(--color-main);
    background: var(--color-mainBrightnessUp);
    font-weight: 500;
    padding: 5px;
    box-shadow: 1px 1px 2px rgb(0 0 0 / 20%);
    font-size: var(--font-size-xl);
}

.linear-num {
    font-weight: bold;
    color: var(--color-main);
    font-size: var(--font-size-small);
    margin: 5px;
}

.linear-num span {
    color: var(--color-main);
    margin: 0 3px;
}

.imageLogoPointer {
    cursor: pointer;
}

.bunkatsuTitle {
    padding: 3px;
    cursor: pointer;
    position: relative;
    color: var(--color-main);
    font-weight: 500;
    background-color: var(--color-mainBrightnessUp);
    border-radius: 5px;
    text-align: left;
}

.bunkatsuTitle:after {
    color: var(--color-main);
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    right: 10px;
    position: absolute;
    font-size: var(--font-size-xxl);
    top: calc(0%);
    font-weight: 900;
}

.bunkatsuTitle.is-active:after {
    transform: rotate(-180deg);
}

.bunkatsuPulldown {
    display: none;
    padding: 10px;
}

.bunkatsuPulldown.is-active {
    display: block;
}

/* ==========================================================================
   button
========================================================================== */

/* レイアウト */
.btn-layout-flex {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    align-items: center;
}

/* ベース */
.btn {
    border: 0;
    cursor: pointer;
    display: block;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    text-align: center;
    text-decoration: none;
    position: relative;
    border: 3px solid #fff;
    line-height: 1;
    box-shadow: 1px 1px 2px rgb(0 0 0 / 20%);
}

.btn:hover {
    opacity: 0.7;
}

.btn:disabled {
    opacity: 0.35;
    pointer-events: none;
    box-shadow: none;
}

/* 白抜きボタン */
.btn.btn-outline {
    color: var(--color-main);
    background: #ffffff;
    border-color: var(--color-main);
    font-weight: 500;
}

/* サブカラーで塗りつぶし */
.btn.btn-subcolor {
    color: var(--color-main);
    background: var(--color-mainBrightnessUp);
    border-color: var(--color-mainOpacity01);
    font-weight: 500;
}

/* 赤枠線、白抜き、赤文字のボタンスタイル */
.btn.btn-cancel {
    color: red;
    background-color: white;
    border: 2px solid red;
    font-weight: 500;
}

.btn.btn-cancel:hover {
    background-color: #f8d7da;
    color: red;
    border-color: #f5c6cb;
}

/* ベージュっぽいボタンスタイル */
.btn.btn-beige {
    color: black;
    background-color: #f5e1b1;
    border: 2px solid #e3c8a4;
    font-weight: 500;
}

.btn.btn-beige:hover {
    background-color: #eae8d4;
    color: #8b5e3c;
    border-color: #d0bfae;
    font-weight: 500;
}

/* 灰色っぽい背景に黒文字のボタンスタイル */
.btn-edit {
    color: #000000;
    background-color: #d3d3d3;
    border: 2px solid #a9a9a9;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn-edit:hover {
    background-color: #b0b0b0;
    color: #000000;
    border-color: #8c8c8c;
}

/* 赤ボタン */
.btn.btn-red {
    color: var(--color-red);
    background: #ffffff;
    border-color: var(--color-red);
    font-weight: bold;
}

/* 大きいボタン */
.btn.btn-large {
    font-size: var(--font-size-middle);
    padding: 10px 0;
    width: 200px;
    border-radius: 50px;
}

/* 小さいボタン(検索ボタンなどに使用) */
.btn.btn-middle {
    font-size: var(--font-size-middle);
    padding: 5px 10px;
    min-width: 100px;
    width: fit-content;
    border-radius: 2rem;
    border-width: 2.5px;
}

/* 小さいボタン(表内などに使用) */
.btn.btn-small {
    font-size: var(--font-size-small);
    padding: 4px 10px;
    width: fit-content;
    border-radius: 2rem;
    border: none;
}

/* ボタン疑似要素 */
.btn.arrow::after {
    position: absolute;
    font-family: "Font Awesome 5 Free";
    content: "\f105";
    color: #fff;
    font-size: var(--font-size-l);
    font-weight: bold;
    right: 0.5em;
    top: calc(50% - 0.5em);
}

.btn-outline.btn::after {
    color: var(--color-main);
}

.btn-red.btn::after {
    color: var(--color-red);
}

.link-text {
    color: var(--color-main);
    text-decoration: underline;
}

.link-text:hover {
    opacity: 0.7;
    text-decoration: none;
}

#passwordEye01,
#passwordEye02 {
    display: none;
}

input::-ms-reveal {
    visibility: hidden
}

.passwordEye {
    position: absolute;
    top: calc(50% - 0.5em);
    right: 5px;
    font-size: var(--font-size-l);
    cursor: pointer;
}

.passwordEye i,
.passwordEyeLogin i {
    color: var(--font-midiumEmphasis);
}

/* ==========================================================================
   バッチ
========================================================================== */

.batch-normal,
.batch-call,
.batch-request,
.batch-abnormal {
    color: var(--color-text-on-button);
    padding: 2px 8px;
    width: fit-content;
    margin: auto;
    border-radius: 3px;
    font-size: var(--font-size-small);
}

.batch-normal {
    background: hsl(172deg 100% 30%);
}

.batch-call {
    background: hsl(172deg 100% 40%);
}

.batch-request {
    background: hsl(172deg 100% 45%);
}

.batch-abnormal {
    background: var(--color-batch-abnomal);
}

.toggle-button-1 {
    display: inline-block;
    position: relative;
    width: 40px;
    height: 20px;
    border-radius: 20px;
    background-color: #dddddd;
    cursor: pointer;
    transition: background-color .4s;
}

.toggle-button-1:has(:checked) {
    background-color: #4bd865;
}

.toggle-button-1::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 0 5px rgb(0 0 0 / 20%);
    background-color: #fff;
    content: '';
    transition: left .4s;
}

.toggle-button-1:has(:checked)::after {
    left: 20px;
}

.toggle-button-1 input {
    display: none;
}

.custom-checkbox-md {
    width: 20px;
    height: 20px;
}

.custom-checkbox-lg {
    width: 25px;
    height: 25px;
}

/* ==========================================================================
   加盟店検索テキストボックス
========================================================================== */

.member-store-textbox {
    height: var(--member-store-textbox-height);
    font-size: var(--font-size-small);
    border: 1px solid hsl(0deg 0% 70%);
    border-radius: var(--inputbox-border-radius);
}

.member-store-button {
    height: var(--member-store-textbox-height);
    font-size: var(--font-size-xs);
    border: 1px solid hsl(0deg 0% 70%)
}

/* ==========================================================================
   サイドバー
========================================================================== */

#side-bar {
    background-color: white;
    width: 1000px;
    height: 100%;
    position: fixed;
    top: 0;
    right: -1000px;
    z-index: 1050;
}

.sort-target:hover {
    background-color: #dcd6d6;
}

.sort-target {
    cursor: pointer;
}

.fixed-list {
    list-style: none;
    padding: 0;
}

.fixed-list li {
    background: #ebf4f8;
    border-bottom: 2px solid #ededed;
    border-left: 12px solid #99bdde;
    margin-bottom: 5px;
    padding: .5em;
    cursor: pointer;
}

.fixed-list li:hover {
    background: rgb(137 212 237);
}

.div-like-table-header {
    vertical-align: middle;
    font-weight: 400;
    font-size: var(--font-size-middle);
    word-break: keep-all;
    width: 200px;
}

.div-like-table-td {
    vertical-align: middle;
    font-weight: 400;
    font-size: var(--font-size-middle);
    word-break: keep-all;
}

.m-1 {
    margin: 0.25rem;
}

.nav-tabs {
    border: 1px solid;
    border-color: #e6ecef;
    background-color: #e6ecef;
}

.nav-tabs .nav-link {
    background-color: #dddada;
    color: black;
    border-bottom: 2px solid #dddada
}

.nav-tabs .nav-link.active {
    background-color: rgb(255 255 255);
    color: black;
    font-weight: bold;
    border-bottom: 2px solid #2589d0;
}

.input-as-label {
    border: none;
    padding: 0;
    background-color: transparent;
    color: #495057;
    font-size: var(--font-size-middle);
    line-height: 1.5;
    display: inline-block;
    width: 70px;
    cursor: text;
}

.input-as-label:focus {
    outline: none;
    box-shadow: none;
}

.payment-input-table-col {
    width: 160px;
}

.payment-show-table-item-col {
    width: 60%;
    max-width: fit-content;
}

.help-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #007bff;
    border-radius: 50%;
    color: white;
    font-size: var(--font-size-small);
    font-weight: bold;
    text-align: center;
    line-height: 24px;
    cursor: pointer;
    position: relative;
    font-family: Arial, sans-serif;
    vertical-align: middle;
}

/* ==========================================================================
   CSVモードる用のレイアウト
========================================================================== */

.table-container {
    width: 93%;
    margin: 10px auto;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-table td {
    padding: 5px !important;
    color: #555;
}

.custom-table th {
    padding: 10px !important;
    background-color: #007bff;
    color: #ffffff;
    font-weight: bold;
}

.custom-table tbody tr:hover {
    background-color: #f1f1f1;
}

@media (max-width: 768px) {

    .custom-table th,
    .custom-table td {
        padding: 8px;
    }
}

.link-style {
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

.form-table td,
.form-table th {
    padding: 0px 12px !important;
    vertical-align: middle;
}

.flatpickr-day.selected {
    background: #FF8C00 !important;
    border-color: #FF8C00 !important;
}

.flatpickr-day.inRange {
    background: #FFE4C4 !important;
    border-color: #FFE4C4 !important;
}

/* 標準のis-invalidと独自チェック用のクラスを同じスタイルに定義 */
.is-invalid,
.is-original-invalid {
    border-color: var(--color-font-error) !important;
    background-image: none !important;
}

.form-control.is-invalid,
.form-control.is-original-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + .75rem);
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

.form-control.is-invalid,
.form-control.is-original-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 .25rem rgba(220, 53, 69, .25);
}

input[readonly].is-invalid,
input.form-control[readonly].is-invalid {
    border-color: #dc3545 !important;
    background-image: none !important;
    background-color: #ffffff !important;
}

.error-message {
    color: var(--color-font-error);
    font-size: var(--font-size-small);
    margin-top: 2px;
}

.ml-10 {
    margin-left: 10px !important;
}

/* ==========================================================================
   フォント設定
========================================================================== */

.screen-title {
    font-size: var(--font-size-screen-title);
    margin-bottom: 8px;
}

.screen-explanation {
    font-size: var(--font-size-screen-explanation);
}

.content-confirmation-default-message {
    padding: 10px;
    font-size: var(--font-size-screen-explanation);
}

/* ==========================================================================
   ヘッダー・フッター
========================================================================== */

.custom-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: fit-content;
    max-height: 90px;
    background-color: #f8f8f8;
    padding: 12px 16px;
    border-top: 2px solid #ddd;
    z-index: 1000;
}

.custom-footer .btn-next {
    grid-column: 2;
    justify-self: center;
}

.custom-footer .btn-back {
    grid-column: 1;
}

.custom-footer .count-must-input {
    grid-column: 3;
    justify-self: right;
    min-width: 150px;
}

/* ==========================================================================
   ステータスインジケーター
========================================================================== */

.progress-container {
    position: relative;
    width: var(--progress-circle-width);
    height: var(--progress-circle-height);
}

.progress-circle {
    width: var(--progress-circle-width);
    height: var(--progress-circle-height);
    border-radius: 50%;
    border: 8px solid lightgray;
    position: absolute;
    top: 0;
    left: 0;
}

.progress-ring {
    width: var(--progress-circle-width);
    height: var(--progress-circle-height);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    background: conic-gradient(rgb(0, 72, 255) 0% 20%, #b1cfff 20% 100%);
}

.progress-inner {
    width: var(--progress-circle-inner-width);
    height: var(--progress-circle-inner-height);
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--progress-circle-inner-font-size);
    font-weight: bold;
    color: black;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
}

/* ==========================================================================
   フォームコンポーネント系統
========================================================================== */

.custom-screen {
    gap: 10px;
    align-items: center;
    display: flex;
    flex-direction: column;
    padding-bottom: 4rem;
}

.custom-section {
    background-color: transparent;
    width: 100%;
    height: fit-content;
    border: #D4CFC4 1px solid;
}

.section-title {
    font-size: var(--font-size-section-title);
    font-weight: 500;
    width: 100%;
    background-color: var(--color-section-title-bg);
    padding: 3px;
}

.custom-contents {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contents-title {
    font-size: var(--font-size-contents-title);
    width: 100%;
    background-color: var(--color-contents-title-bg);
    padding: 5px;
}

.contents-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0px 20px 10px 20px;
}

.contents-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ==========================================================================
   フォームコンポーネント系統 (input系統)
========================================================================== */

.count-must-input {
    padding: 5px 30px;
    font-size: var(--font-size-middle);
    background-color: #fff;
    color: #007bff;
    border-color: #007bff;
    border: 1px solid;
    cursor: pointer;
    border-radius: 10px;
    text-align: center;
}

.btn-small {
    padding: 8px 15px !important;
    min-width: 100px !important;
}

.com-btn-style {
    padding: var(--padding-vertical-btn) 20px;
    font-size: var(--font-size-middle);
    border: 1px solid;
    cursor: pointer;
    border-radius: 20px;
}

.btn-back {
    background-color: #fff;
    color: #ffa81c;
    border-color: #ffa81c;
    font-size: var(--font-size-middle);
    border-radius: 5px;
    margin-right: 3.5rem;
    width: fit-content;
    white-space: nowrap !important;
}

.btn-next {
    background-color: #007bff;
    min-width: 200px;
    color: white;
    white-space: nowrap;
}

.btn-next:disabled {
    background-color: rgb(229, 229, 229);
    min-width: 150px;
    color: var(--color-font-buton-disabled)
}

.exit {
    background-color: #dc3545;
    color: white;
}

.com-btn-style:hover {
    opacity: 0.8;
}

.btn-apply-round {
    background-color: #66cc66;
    border: 2px solid #fff;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 400;
}

.icon-container {
    background-color: #fff;
    border-radius: 50%;
    padding: 5px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.icon-container i {
    color: #00c853;
    font-size: var(--font-size-middle);
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-label {
    font-size: var(--font-size-small);
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 20px 5px 10px;
    border: 2px solid #fac8c8;
    border-radius: 20px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.radio-option.break-line {
    margin-left: auto;
}

.radio-option input {
    display: none;
}

.radio-button {
    width: 10px;
    height: 10px;
    border: 2px solid #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-option input:checked+.radio-button {
    background-color: #007bff;
    border-color: #007bff;
    position: relative;
}

.radio-option:has(input:checked) {
    background-color: #bee1fa;
}

.radio-group.custom-input-radio-must input[type="radio"]:checked+.radio-button {
    border: 2px solid #007bff;
}

.radio-group.custom-input-radio-must input[type="radio"]:checked+.radio-button+.radio-label,
.radio-group.custom-input-radio-must input[type="radio"]:checked+.radio-button {
    border-color: #007bff;
}

.custom-input-text::placeholder,
.custom-input-textarea::placeholder {
    color: var(--input-placeholder-color);
}

.checkbox-container {
    display: flex;
    gap: 10px;
}

.custom-checkbox {
    display: none;
}

.custom-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 40px;
    border: 2px solid #007bff;
    border-radius: 8px;
    background-color: #fff;
    color: #007bff;
    font-size: var(--font-size-middle);
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.custom-checkbox:checked+.custom-label {
    background-color: #007bff;
    color: #fff;
}

.custom-input-text {
    border: 1px solid;
    border-radius: var(--border-input-radius);
    font-size: var(--font-size-input);
    padding: 8px;
    box-sizing: border-box;
}

/* 必須入力項目input */
.custom-input-must {
    background-color: var(--color-input-must-bg);
    color: var(--color-font-default);
    border-color: var(--color-input-border);
}

.custom-input-must,
.custom-input-any {
    width: 280px;
}

.custom-input-must:focus {
    background-color: var(--color-input-focus-bg);
    border-color: var(--color-input-border);
}

.form-control {
    line-height: unset;
    font-size: var(--font-size-input);
}

.form-control::placeholder {
    color: var(--input-placeholder-color);
    font-size: var(--font-size-input);
}

.custom-input-any {
    background-color: #fff;
    color: var(--color-font-default);
    border-color: var(--color-input-border);
}

.custom-input-any:focus {
    background-color: var(--color-input-focus-bg);
}

.custom-input-success {
    background-color: var(--color-input-success-bg);
    color: var(--color-font-default);
    border-color: var(--color-input-border);
}

.custom-input-has-error {
    background-color: var(--color-input-error-bg);
    color: var(--color-font-default);
    border-color: var(--color-input-error-border);
}

.custom-input-error-message {
    color: var(--color-font-error);
    font-size: var(--font-size-small);
}

/* バッジ系統 */
.badge-optional {
    display: inline-block;
    padding: 4px 6px;
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: #333;
    background-color: #e0e0e0;
    border-radius: 8px;
    line-height: 1;
}

.help-icon {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    margin-left: 6px;
    border-radius: 50%;
    background: #3b82f6;
    border: 1px solid #2563eb;
    color: #ffffff;
    font-weight: 800;
    font-size: var(--font-size-xs);
    line-height: 1;
    cursor: pointer;
    user-select: none;
    vertical-align: middle;
    box-shadow: 0 1px 6px rgba(37, 99, 235, .20);
    transition: transform .12s ease, box-shadow .12s ease;
}

.help-icon::before {
    content: "!";
    transform: translateY(-0.3px)translateX(-0.5px)
}

.help-icon:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, .26);
}

.help-icon:active {
    transform: translateY(0);
}

.help-icon:focus-visible {
    outline: 3px solid rgba(147, 197, 253, .55);
    outline-offset: 2px;
}

/* ===== tooltip ===== */
.help-tooltip {
    position: absolute;
    z-index: 1080;
    background: #2563eb;
    color: #ffffff;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: var(--font-size-small);
    line-height: 1.4;
    font-weight: 400;
    max-width: 320px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .22), 0 2px 6px rgba(0, 0, 0, .10);
    opacity: 0;
    transform: translateY(-4px) scale(.98);
    pointer-events: none;
    transition: opacity .12s ease, transform .12s ease;
    word-break: break-word;
}

.help-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.help-tooltip::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 7px solid transparent;
    border-right-color: #2563eb;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
}

/* アコーディオン系統 */
.custom-accordion {
    border: none;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
    margin: 10px auto;
}

.custom-accordion-button {
    width: 100%;
    background: #f8f9fa;
    border: none;
    padding: 5px 0px 5px 15px;
    text-align: left;
    font-size: var(--font-size-middle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.custom-accordion-button:hover {
    background: #e9ecef;
}

.custom-accordion-content {
    display: none;
    padding: 10px 0px 0px 15px;
    border: none;
    border-top: none;
    background-color: var(--color-main-content-bg);
}

.custom-icon {
    font-size: var(--font-size-middle);
    font-weight: bold;
    padding-right: 15px;
    transition: transform 0.3s ease;
}

.custom-accordion-content>.contents-group {
    padding-bottom: 10px;
}

/* トグルスイッチ系統 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    width: 100%;
    height: 100%;
    background-color: #ccc;
    border-radius: 12px;
    transition: background-color 0.3s;
}

.slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch input:checked+.slider {
    background-color: #007bff;
}

.toggle-switch input:checked+.slider::before {
    transform: translateX(26px);
}

.checkbox-l {
    width: 20px;
    height: 20px;
}

.input-label-style {
    all: unset;
    display: inline-block;
    font-size: var(--font-size-middle);
    color: #333;
    cursor: default;
    padding: 4px 8px;
    background: transparent;
    border: none;
    width: auto;
    pointer-events: none;
}

.center-align {
    text-align: center;
}

.right-align {
    text-align: right;
}

.left-align {
    text-align: left;
}

/* ==========================================================================
   ブレークポイント利用系のCSS
========================================================================== */

.main-container {
    width: 90%;
    background: var(--color-main-content-bg);
    margin: 1.5rem;
}

.content-confirmation {
    width: 90%;
    background: var(--color-main-content-bg);
    margin: 0.5rem 1.5rem 0.5rem 1.5rem;
    min-height: 250px;
    border: 1px solid var(--color-input-border);
}

.custom-flex-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.custom-flex-column-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-wrap: wrap;
}

.custom-input-width-textcount-under5 {
    max-width: 100px;
    min-width: 70px;
}

.custom-input-width-textcount-under10 {
    width: 40%;
    max-width: 200px;
    min-width: 140px;
}

.custom-input-width-textcount-under20 {
    width: 50%;
    max-width: 350px;
    min-width: 250px;
}

.custom-input-width-textcount-over20 {
    width: 90%;
    min-width: 250px;
}

.custom-flex-nowrap-container {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.custom-div-label {
    width: 30%;
    min-width: 150px;
    max-width: 400px;
    font-size: var(--font-size-middle);
    word-wrap: break-word;
}

.custom-div-text {
    flex-grow: 1;
    font-size: var(--font-size-middle);
    word-wrap: break-word;
    align-items: center;
}

/* スマートフォン用設定 */
@media screen and (max-width:600px) {

    .main-container {
        width: 100%;
        margin: 0;
    }

    .content-confirmation {
        width: 100%;
        margin: 0 0 3rem 0;
    }

    .custom-footer {
        display: none;
    }

    .custom-footer-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: fit-content;
        max-height: 70px;
        background-color: #f8f8f8;
        padding: 5px 20px;
        border-top: 2px solid #ddd;
        z-index: 1000;
    }

    .custom-flex-container {
        align-items: stretch;
    }

    .custom-input-text {
        padding: 8px;
        box-sizing: border-box;
    }

    .simulation-tablet {
        display: none;
    }

    :root {
        /* スマホ用：大きさを抑えつつ「1px〜2px刻み」でわずかな階層を残す */
        --font-size-l: 1rem;            /* 16px相当 (middleと同じだが太字前提でカバー) */
        --font-size-xl: 1.0625rem;      /* 17px相当 */
        --font-size-xxl: 1.125rem;      /* 18px相当 (最大でも18pxに抑える) */

        /* セマンティック変数の上書き */
        --font-size-screen-title: 1.125rem; /* 18px相当 : スマホではこれ以上大きくしない */
        --font-size-section-title: 1.0625rem; /* 17px相当 */

        /* 各種コントロールのサイズ */
        --inputbox-border-radius: 7px;
        --progress-circle-width: 60px;
        --progress-circle-height: 60px;
        --progress-circle-inner-width: 45px;
        --progress-circle-inner-height: 45px;
        --progress-circle-inner-font-size: 12px;
        --padding-vertical-btn: 10px;
    }
}

@media screen and (min-width:601px) {
    .custom-footer-mobile {
        display: none;
    }

    .simulation-mobile {
        display: none;
    }
}

/* PC用設定 */
@media screen and (min-width: 1025px) {
    .main-container {
        width: 60%;
    }

    .content-confirmation {
        width: 60%;
    }
}

/* ==========================================================================
   Table Simulation Styles
========================================================================== */

.simulation-table-container,
.table-simulation-container {
    width: 100%;
    overflow-x: auto;
}

.simulation-table,
.table-simulation {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.simulation-table th,
.simulation-table td,
.table-simulation th,
.table-simulation td {
    padding: 8px;
    border: 1px solid #000;
    white-space: nowrap;
    font-weight: 500;
    font-size: var(--font-size-small);
    height: 20px;
    line-height: 20px;
}

.simulation-table thead,
.table-simulation thead {
    background: #E3F3FF;
    color: #333;
    position: sticky;
    top: 0;
    text-align: left;
}

.simulation-table tbody tr:nth-child(even),
.table-simulation tbody tr:nth-child(even) {
    background: #f9f9f9;
}

/* ==========================================================================
   Toggle Button Styles
========================================================================== */

.toggle-btn {
    cursor: pointer;
    padding: 3px 8px;
    margin-left: 20px;
    background-color: white;
    border: 1px solid #0095FF;
    color: #0095FF;
    border-radius: 16px;
    font-size: var(--font-size-xs);
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    min-width: 60px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.toggle-btn:hover {
    background-color: #0095FF;
    color: white;
}

.toggle-col {
    position: relative;
    text-align: left;
}

.additional-payment {
    display: none;
    overflow: hidden;
}

/* ==========================================================================
   Contents Container Styles
========================================================================== */

.contents-container {
    width: calc(100% - 52px);
    margin: 20px 26px;
    box-sizing: border-box;
    border: 1px solid #d4cfc4;
}

.contents-container-header {
    width: 100%;
    border: 1px solid #d4cfc4;
    display: flex;
    align-items: center;
    background-color: #eeebeb;
    gap: 10px;
    min-height: 33px;
    line-height: 33px;
    padding-left: 15px;
}

.contents-container-header input {
    margin: 0;
}

.contents-container-header span {
    color: #fb1111;
}

.contents-container-box {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #fcf8ee;
    transition: 0.3s ease;
}

.contents-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 15px;
    line-height: 33px;
}

/* ==========================================================================
   Enhanced Contents Group Styles
========================================================================== */

.contents-group {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 10px;
}

.contents-group label {
    cursor: pointer;
}

.contents-group input,
.contents-group select {
    background-color: #fff;
    min-width: 200px;
}

/* ==========================================================================
   Utility Classes
========================================================================== */

.w-90px {
    width: 90px !important;
    min-width: 90px !important;
}

.border-header {
    border-top: 1px solid #8c8c8c;
    border-bottom: 1px solid #8c8c8c;
}

.border-none {
    border: none;
}

.toggle-box {
    cursor: pointer;
}

/* ==========================================================================
   Mobile Simulation Styles
========================================================================== */

.simulation-container {
    width: 100%;
    padding: 10px 20px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.2);
}

.simulation-header {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-xxl);
    padding: 5px 0px;
}

.custom-sim-label {
    text-align: left;
    white-space: nowrap;
}

.custom-sim-text {
    text-align: right;
    white-space: nowrap;
}

.simulation-summary-title {
    border-bottom: 1px solid black;
    padding-bottom: 3px;
    margin-top: 10px;
}

.sim-payment-info,
.sim-payment-details summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    border-bottom: 1px solid #ddd;
}

.sim-label {
    text-align: left;
    flex: 1;
}

.sim-amount {
    text-align: right;
    flex: 1;
    white-space: nowrap;
}

.sim-toggle {
    text-align: right;
    flex-basis: 20px;
}

.sim-payment-details {
    margin-top: 8px;
}

/* ==========================================================================
   Responsive Adjustments for Common Components
========================================================================== */

@media (max-width: 768px) {
    .contents-group {
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 10px;
    }

    .contents-container {
        width: calc(100% - 20px);
        margin: 10px;
    }

    .simulation-table-container,
    .table-simulation-container {
        font-size: var(--font-size-xs);
    }
}

/* trang add css */

.custom-input-form {
    display: flex;
    flex-direction: column;
}

.custom-input-radio {
    min-width: 100px;
    display: flex;
    gap: 10px;
    align-items: center;
    gap: 8px;
    padding: 5px 20px 5px 10px;
    border: 2px solid #ccc;
    border-radius: 20px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.custom-input-radio input:checked+.radio-button {
    background-color: #007bff;
    border-color: #007bff;
    position: relative;
}

.custom-input-radio:has(input:checked) {
    background-color: #bee1fa;
    border-color: #007bff;
}

.custom-input-radio label {
    min-width: unset;
}

.form-check-input {
    min-width: 10px !important;
    max-width: 10px;
    max-height: 10px;
    min-height: 10px;
}

.custom-input-checkbox {
    min-width: 16px !important;
    max-width: 16px;
    width: 16px;
    height: 16px;
}

.form-check-input:checked[type=radio] {
    background-image: unset;
}

.ui-autocomplete {
    background-color: #fff;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    font-size: var(--font-size-small);
    padding: 0;
}

.ui-menu-item-wrapper {
    padding: 8px 12px;
    cursor: pointer;
}

.btn-outline-blue {
    color: #0d6efd;
    border: 1.5px solid #0d6efd;
    background-color: transparent;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 0.4rem;
    transition: all 0.2s ease-in-out;
}

.btn-outline-blue:hover,
.btn-outline-blue:focus {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0a58ca;
}

.btn-outline-blue:disabled {
    background-color: rgb(229, 229, 229);
    color: var(--color-font-buton-disabled);
    border-color: rgb(194, 192, 192);
}

.btn-outline-blue:active {
    color: #fff;
    background-color: #0a58ca;
    border-color: #0a58ca;
}

/* --- 汎用：青塗りつぶしボタン --- */
.btn-bg-blue {
    color: #fff;
    background-color: #0d6efd;
    border: 1px solid #0d6efd;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 0.4rem;
    transition: all 0.2s ease-in-out;
}

.btn-bg-blue:hover,
.btn-bg-blue:focus {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
    color: #fff;
}

.noteTextBlack {
    color: #000;
    font-size: var(--font-size-small);
}

.noteTextRed {
    color: #ff6363;
    font-size: var(--font-size-small);
}

.noteTextBlue {
    color: #4ba1ff;
    font-size: var(--font-size-small);
}

.custom-checkbox-unified {
    width: var(--checkbox-unified-size) !important;
    height: var(--checkbox-unified-size) !important;
    min-width: var(--checkbox-unified-size) !important;
    max-width: var(--checkbox-unified-size) !important;
    min-height: var(--checkbox-unified-size) !important;
    max-height: var(--checkbox-unified-size) !important;
    
    cursor: pointer;
    vertical-align: middle;
    margin-top: var(--checkbox-unified-margin-top) !important;
}

.form-check .form-check-input {
    float: unset;
    margin: 0;
}

.complete-screen-main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 30px 30px 55px;
    width: 90%;
    background: var(--color-main-content-bg);
    margin: 1.5rem;
}

/* タイトルエリア */
.complete-screen-title-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 40px 0;
}

.complete-screen-icon {
    width: 45px;
    height: auto;
}

.complete-screen-text {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
}

/* テキスト・フォント */
.complete-screen-font-l {
    font-size: 1.6rem;
}

/* ボタン関連 */
.complete-screen-btn-padding {
    padding: 15px 50px;
}

.complete-screen-btn-font {
    font-size: 1.4rem;
}

.complete-screen-btn-payment {
    margin-top: 50px;
    border: 1px solid #FE7700;
    display: flex;
    align-items: center;
    color: #FE7700;
    background: transparent;
    width: 200px;
    font-size: 20px;
}

/* ============================================================
   レスポンシブ制御 (オリジナルを完全踏襲)
   ============================================================ */

/* タブレット (1023px以下 〜 768px) */
@media (max-width: 1023px) {
    .complete-screen-title-container {
        gap: 16px;
        padding: 30px 0;
    }
    .complete-screen-icon {
        width: 40px;
    }
    .complete-screen-text {
        font-size: 2.0rem;
    }
    .complete-screen-font-l {
        font-size: 1.6rem;
    }
    .complete-screen-btn-font {
        font-size: 1.4rem;
    }
}

/* スマホ (767px以下 / オリジナルの600px指定を維持) */
@media (max-width: 600px) {
    .complete-screen-title-container {
        gap: 12px;
        padding: 20px 0;
    }
    .complete-screen-icon {
        width: 35px;
    }
    .complete-screen-text {
        font-size: 1.5rem;
        text-align: center;
    }
    .complete-screen-font-l {
        font-size: 1.3rem;
    }
    .complete-screen-btn-font {
        font-size: 1.0rem;
    }

    .complete-screen-main-container {
        width: 100%;
        margin: 0;
    }
}

/* PC用設定 */
@media screen and (min-width: 1025px) {
    .complete-screen-main-container {
        width: 60%;
    }

}