/* ファイル名の日付は、内容を最後に変えた日 (旧 common_20250619.css)。ブラウザが古い内容をキャッシュから
   使い続けないように、内容を変えたらファイル名の日付を改め、読み込む土台 (templates/base.html・
   templates/base_school.html) の参照も揃える (ほかの日付付きの CSS と同じ扱い) */
html{
    font-size: 62.5%;
}
body{
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue","游ゴシック Medium","Yu Gothic",YuGothic,YuGothicMedium,"Hiragino Kaku Gothic ProN",Meiryo,sans-serif;
    /* font-family:  "Hiragino Sans W3", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3","Yu Gothic","游ゴシック Medium","メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;  */
    font-size: 1.4rem;
    font-weight: 500;
    /* line-height: 1.7; */
    padding-top: 105px;
    /* タブレットの幅: 固定ヘッダーが 105px より高くなったとき（パンくずが 2 行以上に折り返したとき）は、
       本文の開始位置をヘッダーの実際の高さに合わせる。--pc-header-h は templates/base.html のヘッダー直後の
       スクリプトが入れる。105px 以下のとき・ヘッダーの無い画面・スクリプトが動かないときは従来の 105px。
       max() と var() を解釈しないブラウザは上の行の 105px を使う。 */
    padding-top: max(105px, var(--pc-header-h, 105px));
}
/* kenbun start 2025/9/5 ドラッグ動作を行う時に一時的にクラスを付与して選択状態を防ぐ */
body.dragging,
body.dragging * {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}
/* kenbun end 2025/9/5 */

/*
.btn{
    padding: 0.5rem;
}*/

.btn-lg{
    padding: 1rem ;
}

header{
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1050;
}

.footer-bg{
    background-color: #e9ecef !important;
}
footer a{
   color:#0099ff;
   font-size: 1.1rem;
}
.copy-right{
    font-size: 1.1rem;
}

.nonfield.errorlist {
    color:red;
}

.errorlist {
    color:red;
}


.table {
    font-size: 1.2rem;
}


.form-control{
  font-size: 1.2rem;
}

/* リードオンリーのselectを選択できないようにする */
/*
.disable-select{
    pointer-events: none;
}
*/
input[readonly]{
    background-color: #E9ECEF80;
}
select[readonly]{
    pointer-events: none;
}
/* チェック自体にしか効かない*/
input[type="checkbox"][readonly]{
    pointer-events: none;
}
input[type="checkbox"][readonly] ~ label{
    pointer-events: none;
}
/** IE11ではfieldset disabledが効かないため */
fieldset[disabled]{
    pointer-events: none;
}

.navbar{
    display: flex;
    font-family: "Meiryo";
    margin-bottom: 1px;
}
.navbar-brand{
    font-size: 20px;
}
.navbar-nav{
    font-size: 15px;
}
.navbar .megamenu{
    padding: 1rem 2rem 1rem;
    background-color: white;
    border-color: #7dcea7;
    color: #7dcea7;
    font-size: 15px;
}
.navbar .megamenu li{
    margin-left: 24px;
    list-style: circle;
    color: #3399FF;
}
.navbar .megamenu a{
    color: #3399FF;
}
.navbar .col-megamenu{
    padding-bottom: 20px;
}
nav.navbar {
    background-color: #bbbbbb !important;
}
a.nav-link.header-menu {
    color: rgba(255, 255, 255, 1.0) !important;
}
a.nav-link.header-menu:hover {
    color: rgba(255, 255, 255, 0.5) !important;
}

.dropdown-menu{
    background-color: #7dcea7;
    color: #fff;
}
.dropdown-item{
    color: #fff;
}
/* kenbun start 2025/7/1 学校向けメニュー */
.school-menu {
    position: relative;
    display: grid;
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
}
.scroll-content {
    width: 100%;
    display: flex;
    transition: transform 0.2s ease;
    gap: 25px;
}
@media(min-width: 767px){
    .school-menu {
        width: auto;
    }
}
.scroll-button {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    padding: 0px;
    width: 15px;
    height: 100%;
    z-index: 1;
    border-radius: 5px;
}
.scroll-button.left {
    left: 0;
}
.scroll-button.right {
    right: 0;
}
.scroll-button:hover {
    background-color: rgba(0, 0, 0, 0.5);
}
.icon-menu {
    text-wrap: nowrap;
    white-space: nowrap;
    font-size: 13px;
    color: #fff;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding-top: 4px;
}
.icon-menu:hover {
    color: #fff;
    text-decoration: none;
    background-color: #aaaaaa;
}
.icon-badge {
    top: 4px;
    right: 0px;
    color: white;
}
.four-letter-space {
    letter-spacing: 3px;
}
.six-letter-space {
    letter-spacing: -1px;
}
.message-box {
    display: flex;
    flex-direction: column-reverse;
    position: fixed;
    bottom: 20px;
    left: 20px;
    height: calc(100vh - 40px);
    width: 300px;
    pointer-events: none; /* 背後のボタンなどが反応するように */
}
.message-box div {
    position: relative;
    margin-top: 15px;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.slide-left {
    transform: translateX(-100%);
    opacity: 0;
    transition: all 1s ease;
}
/* flatpickr 土日祝の色(日曜はじまり) 2025/8/27 add */
.flatpickr-weekday:nth-child(1) {
    color: rgba(255, 0, 0, 0.6);
}
.flatpickr-weekday:nth-child(7) {
    color: rgba(0, 0, 255, 0.6);
}
.flatpickr-day.saturday:not(.selected) {
    color: rgb(0, 0, 255);
}
.flatpickr-day.prevMonthDay.saturday:not(.selected),
.flatpickr-day.nextMonthDay.saturday:not(.selected) {
    color: rgba(0, 0, 255, 0.2);
}
.flatpickr-day.sunday:not(.selected),
.flatpickr-day.jp-holiday:not(.selected) {
    color: rgb(255, 0, 0);
}
.flatpickr-day.prevMonthDay.sunday:not(.selected),
.flatpickr-day.nextMonthDay.sunday:not(.selected),
.flatpickr-day.prevMonthDay.jp-holiday:not(.selected),
.flatpickr-day.nextMonthDay.jp-holiday:not(.selected) {
    color: rgba(255, 0, 0, 0.2);
}
/* kenbun 学校調査のタブ色 2025/10/14 */
.nav-link.ordered {
  color: var(--yellow, #ffc107);
}
.nav-link.answered {
  color: var(--teal, #20c997);
}
.nav-link.confirmation {  
  color: var(--orange, #fd7e14);
}
.nav-link.completed { 
  color: var(--dark, #343a40);
}
.nav-link.non-paticipant {
  color: var(--gray, #6c757d);
}
.nav-link.ordered:hover,
.nav-link.answered:hover,
.nav-link.confirmation:hover,
.nav-link.completed:hover,
.nav-link.non-paticipant:hover {
  filter: brightness(85%);
}
.nav-link.active-ordered {
  background-color: var(--yellow, #ffc107);
  color: #fff;
}
.nav-link.active-answered {
  background-color: var(--teal, #20c997);
  color: #fff;
}
.nav-link.active-confirmation {
  background-color: var(--orange, #fd7e14);
  color: #fff;
}
.nav-link.active-completed {
  background-color: var(--gray, #6c757d);
  color: #fff;
}
.nav-link.active-non-paticipant {
  background-color: var(--gray, #6c757d);
  color: #fff;
}
/* datatables 1.X.X 後方互換用 */
.dt-legacy-input {
    border: 1px solid #aaa;
    border-radius: 3px;
    padding: 5px;
    background-color: transparent;
    color: inherit;
}
/* kenbun end 2025/7/1 */

.modal-content{
    border-width: 0px !important;  
}
.modal-header{
    align-items: center;
    background-color: #59c18f !important;
    color: #fff !important;
    padding: 12px 16px 12px;
    font-size: 1.6rem;
}
.modal-body{
    padding: 8px 5px 0px !important;
}
.close{
    color: #fff !important;
    text-shadow: none !important;
    font-size: 2.8rem;
    font-weight: 400;
}

.notice{
    overflow:auto !important;
    font-family: "Meiryo";
    font-weight: 400;
}
.notice tr{
    color: #093145 !important;
}
.notice tr td:nth-of-type(1){
    width: 150px;
}
/* kenbun start 2025/10/16 お知らせの優先度：高のcolor設定、ヘッダーを表示しカラーを設定 */
.notice tr td span a{
    color: #107896;
}
.notice tr td span.text-danger a{
    color: inherit;
}
/*
.notice tr td a{
    color: #107896 !important;
}
*/
.notice table{
    width: 100% !important;
    border-style: none none solid;
    border-color: #d0d0d0 !important;
    border-width: 1px;
}
.notice table footer{
    border-style: none !important;
}
.notice thead{
    background-color: #e9ecef;
    /* display: none; */
}
/* kenbun end 2025/10/16 */
.badge-parent >.badge-notify{
    background:#dc3545;
    color: rgba(255, 255, 255, 0.8);
    position:relative;
    top: 7px;
    left: -12px;
    margin-right: -20px;
    height: 18px;
    width: 18px;
    border-radius: 9px;
    text-align: center;
}
.badge-new{
    margin-left: 10px !important;
    font-family: "Meiryo";
}

.table-striped tbody tr:nth-of-type(odd){
    background: none !important;
}
.table-striped tbody tr:nth-of-type(even){
    background: #f5f5f5 !important;
}
.table-hover tbody tr:hover td{
    background:#e6e6fa !important;
}
.table-bordered tbody tr td{
    border-style: none !important;
}

.breadcrumb{
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    /* padding: 1rem 1rem 0.4rem; */
    margin-bottom: 1rem;
    /* margin-top: -20px; */
    list-style: none;
    background-color: #e0e0e0;
    font-size: 15px;
}

.nav-container{
    margin-bottom: 10px;
}

div.col{
    position: static;
}

div.alert{
    position: static;
}

div.card{
    position: static;
}

::placeholder {
    color: #bbbbbb !important;
}

@media all and (min-width: 992px){
    .notice-dialog{
        max-width: 80% !important;
        /* margin-right: 5% !important; */
    }
}
@media(max-width: 991px){
    .notice-dialog{
        max-width: 98% !important;
        align-items: center !important;
    }
}
@media(min-width: 767px){
    .navbar .has-megamenu{
        position: static!important;
    }
    .navbar .megamenu{
        left: 0;
        right: 0;
        width: 100%;
        margin-top: 0;
    }
}
@media screen and (max-width: 767px){
.dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_paginate{
        float: none;
        text-align: right !important;
    }
}
/* 学校情報画面のタブ群 (survey/_nav_first.html の ul#SchoolTab) が、幅が足りないと
 * 2 段に折り返す。「訪問者・担当実施支援員」への名称変更で、実施支援員は 768〜991px 幅でも
 * 折り返すようになった。名称は顧客確認で変わり得るので、名称に依存しない 1 段の横スクロールにする。
 * (学校用の土台は 767px 以下で既に同じ扱い: school_theme.css の D-5) */
ul#SchoolTab {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}
ul#SchoolTab > .nav-item {
    flex: 0 0 auto;
}

/* タブレットの幅: ヘッダーのメニューを三本線のボタンに畳んでいる幅（templates/base.html の navbar-expand-lg／xl より
 * 狭い幅）で、開いたメニューの体裁。header は position: fixed なので、開いた中身が画面の高さを超えると
 * 下の項目（ログアウトなど）にスクロールでも届かない。画面の高さに収めて、メニューの中を縦にスクロールさせる。
 * 横に並べる幅（lg は 992px 以上、xl は 1200px 以上）には当てない（当てるとメガメニューが切れる）。 */
@media (max-width: 991.98px){
    header .navbar-expand-lg > .navbar-collapse{
        max-height: calc(100vh - 53px);
        overflow-y: auto;
        padding: 0 15px 8px;
    }
}
@media (max-width: 1199.98px){
    header .navbar-expand-xl > .navbar-collapse{
        max-height: calc(100vh - 53px);
        overflow-y: auto;
        padding: 0 15px 8px;
    }
}

/* タブレットの幅: 表が入れ物（.container は 768〜991px で 720px、992〜1199px で 960px）より広くなる画面で、
 * ページ全体を横にスクロールさせず、表だけを横にスクロールさせるための入れ物。テンプレートで <table> を包む。
 * bootstrap の .table-responsive-* を使わないのは、.table-bordered の外枠を消す規則が付いてくるため。
 * -lg は 991px 以下、-xl は 1199px 以下でだけ効く。それより広い幅では何もしない（PC の幅の見た目を変えない）。
 * position: relative は、表の中の絶対配置の要素（読み上げ専用の .sr-only など）を入れ物の中に収めるため
 * （無いと、その要素だけが入れ物の外にはみ出した扱いになり、ページ全体の横スクロールが残る）。 */
@media (max-width: 991.98px){
    .table-scroll-lg{
        position: relative;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
@media (max-width: 1199.98px){
    .table-scroll-xl{
        position: relative;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
