@font-face {
  font-family: 'Noto Sans JP';
  src: url('../fonts/NotoSansJP-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans JP';
  src: url('../fonts/NotoSansJP-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #f0f2f5;
}
.screen {
    display: none;
}
.screen.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* 印刷用のスタイル */
@media print {
    body * {
        visibility: hidden;
    }
    .print-area, .print-area * {
        visibility: visible;
    }
    .print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .no-print {
        display: none;
    }
}
.print-area {
    font-family: 'Noto Sans JP', sans-serif;
}

/* iframe のスタイルを明示的に指定 */
#pdf-iframe {
    border: none; /* iframe自身のボーダーを削除 */
}
/* スムーズなPDFビューアの高さ調整 */
.pdf-iframe-container {
    transition: height 0.3s ease-in-out;
}

/* アクティブなタブのスタイル */
.tab-active {
    border-color: #16a34a; /* Tailwind green-600 */
    color: #15803d; /* Tailwind green-700 */
}
.clickable-row {
    cursor: pointer;
}
.selected-row {
    background-color: #dcfce7; /* Tailwind green-100 */
}
label {
    font-weight: 500; /* Medium weight for better readability */
}
.form-input {
    background-color: white;
    border: 1px solid #9ca3af; /* gray-400 */
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

/* メッセージ系：正常 */
.message {

}
.message.success {
    color: #155724;
    /*background-color: #d4edda; */
    border-color: #c3e6cb;
}

/* メッセージ系：警告 */
.message.warning {
    color: #856404;
    /*background-color: #fff3cd; */
    border-color: #ffeeba;
}

/* メッセージ系：異常 */
.message.error {
    color: #721c24;
    /*background-color: #f8d7da; */
    border-color: #f5c6cb;
}

/* スイッチの外枠 */
.custom-switch-input {
    appearance: none;
    -webkit-appearance: none;
    width: 2.6em !important;
    height: 1.4em !important;
    background-color: #ccc; /* OFFの色 */
    border-radius: 1em !important;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
    border: none !important;
    outline: none;
    display: inline-block;
    vertical-align: middle;
}

/* ONの時の背景色（お好みの色に変えられます） */
.custom-switch-input:checked {
    background-color: #4cd964; /* Android/iOS風の緑 */
}

/* 中の白い丸（●） */
.custom-switch-input::before {
    content: "";
    position: absolute;
    top: 0.15em;
    left: 0.15em;
    width: 1.1em;
    height: 1.1em;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ONの時に丸を右にスライドさせる */
.custom-switch-input:checked::before {
    transform: translateX(1.2em);
}

/* ローディング中のカーソルを「待機」にする */
.is-submitting {
    cursor: wait !important;
}

/* もしFontAwesomeを使っているなら、ボタン内のアイコンが回ります */
.fa-spin {
    margin-right: 8px;
}

/* Style.css に追加 */
input.bg-red-300 {
    background-color: #fca5a5 !important; /* 直接色を指定 */
}

input.bg-red-100 {
    background-color: #fee2e2 !important; /* 薄い赤色 */
}

/* Edgeの自動アイコンを非表示にする設定 */
input::-ms-reveal,
input::-ms-clear {
  display: none !important;
}