@charset "utf-8";

/* 全般---------------------------------- */

/* PCとSPの切り分け */

.pc-show {
  display: block;
}

.sp-show {
  display: none;
}

body {
  color: var(--black_color);
  font-size: 0.875rem !important;
}

/* 必須設定 */

input:invalid,
select:invalid {
  /* input[type="text"]:invalid,input[type="number"]:invalid,input[type="email"]:invalid,input[type="date"]:invalid,select:invalid{ */
  border: 1px solid #ea001e;
}

.required {
  color: #ea001e;
}

#page-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--black_color);
}

.chip-count {
  background-color: var(--sub_blue_100);
  color: var(--sub_blue_300);
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 10rem;
}

.errMessage {
  color: var(--red_color);
}

.og-flex-box {
  display: flex;
  align-items: center;
  gap: 20px;
}

.og-flex-box-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 達成 */

.achieved {
  color: var(--sub_blue_500);
}

/* 未達成 */

.not_achieved {
  color: var(--orange_color);
}

.box-container .row {
  gap: 10px;
}

.og-icon {
  width: 25px;
  margin-top: 8px;
}

/* 一覧画面 */

#list .og-box-style {
  border: 1px solid var(--base_01_color);
  padding: 50px 10px;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#list .og-box-style:hover {
  background-color: var(--sub_blue_50);
}

#sub .og-box-style {
  border: 1px solid var(--base_01_color);
  padding: 50px 10px !important;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 5px;
}

#sub .og-box-style span {
  position: absolute;
  bottom: 10px;
  right: 20px;
}

#sub .og-box-style02 {
  padding: 35px 20px 0 20px;
  text-align: right;
  font-size: 40px;
}

#sub .og-box-style02 span {
  font-size: 25px;
  font-weight: bold;
}
:focus-visible {
  outline: 0px !important;
}
/* サイドバーの開閉の時の処理ー－－－－－－－－ */

.side_togle_style #map #contents-area,
.side_togle_style #calendar_main #contents-area,
.side_togle_style #map .map-input-area {
  max-width: 1480px;
  margin-left: 54px;
  margin-right: 54px;
  padding-right: 0;
}

.side_togle_style #map .map-input-area #multiCollapseExample1 {
  max-width: 100%;
}

.side_togle_style #map .map-input-area {
  margin-left: 0px;
}

.side_togle_style #side-arrow {
  transform: rotate(180deg);
}

.side_togle_style #side-togle {
  justify-content: center;
}

.side_togle_style .container {
  max-width: 100%;
}

.side_togle_style #side-area {
  width: 56px;
}

.side_togle_style #contents-area {
  margin-left: 56px;
}

.side_togle_style #pankuzu_container {
  margin-left: 56px;
}

.side_togle_style .side-close-center {
  justify-content: center;
}

.side_togle_style .side-icon-none {
  display: none;
}

/* ログイン---------------------------------- */

#login {
  background-color: var(--base_03_color);
}

#login .page-size {
  max-width: 500px;
  margin: 0 auto;
  padding: 200px 0;
}

/* ヘッダー---------------------------------- */

#header-area {
  z-index: 900;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--base_02_color);
  /* min-height: 48px; */
  height: 55px;
  padding: 0 50px 0 10px;
}

#header-area .contents {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* 会社ロゴ */

.header-logo {
  width: 130px;
  height: 55px;
  object-fit: contain;
}

/* ヘッダーのprofileアイコン */

#header-area .profile-icon {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 1px solid var(--base_02_color);
  /* border: 2px solid var(--black_color); */
  border-radius: 50%;
  background: var(--white_color);
  /* padding: 3px; */
}

/* ドロップメニュー */

#dropdownMenuButton1 {
  cursor: pointer;
  color: var(--black_color);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.dropdown-menu li {
  padding: 5px 20px;
  /*border-bottom: 1px solid var(--base_02_color);*/
}

/* パンくずエリア******************** */

#pankuzu_container {
  margin-left: 256px;
  width: 100%;
  position: fixed;
  top: 0px;
  left: 0;
  z-index: 800;
}

#pankuzu_container .pankuzu_box {
  display: flex;
  flex-wrap: wrap;
  background-color: #fbfafd;
  border-bottom: 1px solid #eee;
}

#pankuzu_container .pankuzu_box .item {
  position: relative;
  width: 130px;
  text-align: center;
  align-items: center;
  justify-content: center;
  padding: 5px 0;
  line-height: 1.5;
  background: #fbfafd;
  color: #999999 !important;
  font-size: 12px;
  font-weight: 400 !important;
  display: block;
}

#pankuzu_container .pankuzu_box .item:not(:last-child)::before,
#pankuzu_container .pankuzu_box .item:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 100%;
  content: "";
  border: 13px solid transparent;
  border-left: 12px solid #fbfafd;
  margin: auto;
  display: block;
}

#pankuzu_container .pankuzu_box .item:not(:last-child)::before {
  margin-left: 1px;
  border-left-color: #99999959;
}

/* active */

#pankuzu_container .pankuzu_box .item.active {
  z-index: 1;
  background: #fbfafd;
  color: #1e90ff !important;
  width: 160px;
}

#pankuzu_container .pankuzu_box .item.active:not(:last-child)::after {
  border-left-color: #fbfafd;
}

/* #pankuzu_container .pankuzu_box .item.active:not(:last-child)::before {
      border-left: none;
  } */

/* サイドバー ----------------------------------*/

#side-area {
  position: fixed;
  bottom: 0;
  left: 0;
  transition: width 0.2s, left 0.2s;
  z-index: 800;
  width: 256px;
  top: 0px;
  background-color: var(--base_03_color);
  border-right: 1px solid var(--base_02_color);
  transform: translate3d(0, 0, 0);
}

#side-area .scroll-area {
  overflow-y: scroll;
  height: 100%;
  width: 100%;
  overflow-x: auto;
  padding-top: 20px;
  position: relative;
}

#side-area .scroll-area::-webkit-scrollbar {
  display: none;
  -ms-overflow-style: none;
}

#side-area .side-menu .item {
  padding-right: 0.25rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 0.25rem;
  width: auto;
  line-height: 1rem;
  transition: none;
  margin: 1px 8px;
  padding-left: 0.25rem;
}

#side-area .side-menu .item.active {
  background-color: var(--base_02_color);
}

#side-area .side-menu .item:hover {
  background-color: var(--base_02_color);
}

#side-area .side-menu .item a {
  color: var(--black_color);
  font-size: 13px;
}

#side-area .side-menu .item img {
  width: 20px;
}

#side-togle {
  padding: 15px;
  position: absolute;
  bottom: 0;
  left: 0;
  cursor: pointer;
  background-color: var(--base_02_color);
  width: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
}

#side-arrow {
  width: 15px;
}

/*右のサイドバー---------------------------------- */

#side-right-area {
  position: fixed;
  top: 0px;
  right: 0;
  bottom: 0;
  background-color: var(--base_03_color);
  border-left: 1px solid var(--base_02_color);
  transition: width 0.2s, right 0.2s;
  width: 350px;
  z-index: 800;
  box-sizing: border-box;
}

/* 右サイドエリアのscroll */

#side-right-area .scroll-area {
  overflow-y: scroll;
  height: 100%;
  width: 100%;
  overflow-x: auto;
  padding: 20px !important;
}

#side-right-area .scroll-area::-webkit-scrollbar {
  display: none;
  -ms-overflow-style: none;
}

#side-right-area table {
  table-layout: fixed;
}

/* メインコンテンツ---------------------------------- */

#contents-wrap {
  display: flex;
  margin-bottom: 100px;
}

#contents-area {
  width: 100%;
  margin-top: 0px;
  margin-left: 256px;
  padding: 40px 30px 0 30px;
  position: relative;
}

/* フロント******************** */

.bg-profile-img {
  background-color: var(--sub_blue_50);
  width: 100%;
  height: 200px;
  position: relative;
}

.profile-img-box {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  position: absolute;
  bottom: -50px;
  left: 30px;
}

.profile-img-box .profile-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 1px solid var(--base_02_color);
  /* border: 3px solid var(--black_color); */
  border-radius: 50%;
  /* padding: 30px; */
  background: var(--white_color);
}

.profile-img-box .profile-camera {
  width: 30px;
  position: absolute;
  bottom: 0;
  left: 120px;
}

#front .info-container {
  margin-top: 100px;
}

/* 地図******************** */
#map #contents-wrap {
  margin-bottom: 10px;
}
/*
#map #contents-area {
  width: 100%;
  margin-top: 0px;
  margin-left: 256px;
  padding: 20px 0px 0 30px;
  position: relative;
  max-width: 1280px;
}
*/
#container {
  max-width: 100% !important;
}

#map .map-show-container .col-12 {
  /*padding: 0px;*/
}

#map .map-show-container #map-show {
  width: 100%;
  height: 500px;
}
#map .map-show-container #mapInput {
  width: 100%;
  height: 300px;
}
#map .map-input-area {
  position: fixed;
  bottom: 0;
  z-index: 700;
}

#map .map-input-area .map-input-potion {
  position: relative;
}

#map .map-input-area #multiCollapseExample1 {
  width: 100%;
  max-width: 1280px;
  padding: 0 30px 0 0;
}

#map .map-input-area #map-info_btn {
  position: absolute;
  left: 0;
  top: -35px;
}

#map .map-input-area .card-body {
  height: 850px;
  overflow-y: scroll;
  overflow-x: auto;
  background: var(--white_color);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  box-shadow: 2px 2px 7px;
}

#map .map-input-area .card-body::-webkit-scrollbar {
  display: none;
  -ms-overflow-style: none;
}

#map .facility-contents {
  border: 1px solid var(--base_01_color);
}
#map #map-search {
  right: 10px !important;
}
#map #map-area-search {
  right: 125px !important;
}
#map #move-to-current-location {
  right: 295px !important;
}
#map #googleMapUrl .fa-diamond-turn-right {
  font-size: 15px !important;
  border-radius: 30px;
  border: 1px solid var(--gl-text-color, #333238);
  color: var(--gl-text-color, #333238) !important;
  padding: 3px;
  width: 22px;
  text-align: center;
  height: 22px;
}
#map .card-body #og-close {
  background-color: #4f5154;
  border-radius: 50px;
  height: 4px;
  width: 24px;
  display: block;
  margin: 0 auto;
}
#map .gmnoprint .gm-style-mtc button {
  height: 35px !important;
}
#side-right-togle {
  cursor: pointer;
  width: 100%;
  text-align: right;
}

#side-right-search-icon {
  display: none;
}
#side-right-area #side-arrow {
  transform: rotate(180deg);
}

/* 右側のサイドバーが閉じた時ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */

.side_togle_style.side-right-close-style #map #contents-area {
  margin-right: 90px !important;
}

.side_togle_style.side-right-close-style #map .map-input-area {
  max-width: 100%;
  margin-left: 0;
  margin-right: 90px !important;
}

.side_togle_style.side-right-close-style
  #map
  .map-input-area
  #multiCollapseExample1 {
  padding-right: 0px !important;
  max-width: 1280px;
}

.side-right-close-style #side-arrow {
  transform: rotate(0deg) !important;
}

.side-right-close-style #side-right-area {
  width: 56px;
}

/* 検索アイコンの非表示 */

.side-right-close-style #search-area_togle {
  display: none;
}

/* 検索アイコンの表示 */

.side-right-close-style #side-right-search-icon {
  display: block;
  width: 20px;
  cursor: pointer;
}

.side-right-close-style #side-right-togle > ul > li {
  padding: 20px;
  text-align: center;
}

.side-right-close-style #side-right-togle > ul > li:hover {
  background-color: var(--base_02_color);
}

.side-right-close-style #side-right-area .scroll-area {
  padding: 0px !important;
}

/* メインコンテンツのサイズ変更 */

.side-right-close-style #contents-area {
  max-width: 100% !important;
  margin-right: 90px;
}

.side-right-close-style #map .map-input-area #multiCollapseExample1 {
  max-width: 100% !important;
  padding-right: 90px;
}

.side_togle_style.side-right-close-style #calendar_main #contents-area {
  padding-right: 30px;
}
/* カレンダ-枠組み******************************** */

#calendar_main .calendar-scroll {
  overflow-y: scroll;
  overflow-x: auto;
  height: 700px;
}

#calendar_main .calendar-scroll::-webkit-scrollbar {
  display: none;
  -ms-overflow-style: none;
}

/* テーブルーーーーーーーーーーーー */

#calendar_main .calendar-table {
  width: 100%;
  position: relative;
  border-collapse: collapse;
}

#calendar_main .calendar-table td {
  padding: 39.5px 0px;
  text-align: center;
  vertical-align: middle;
  background-color: var(--white_color);
  border-left: 1px solid var(--base_02_color);
  border-right: 1px solid var(--base_02_color);
}

#calendar_main .calendar-table th {
  padding: 20px 0px;
  text-align: center;
  vertical-align: middle;
  background-color: var(--white_color);
  position: sticky;
  top: 0;
  z-index: 666;
}

#calendar_main .calendar-table td:first-child {
  border-left: 1px solid var(--white_color);
}

/* カレンダーヘッダー部分******************************** */

#calendar_main .week.active .day_week {
  color: var(--sub_blue_500);
}

#calendar_main .day_chip {
  background-color: var(--sub_blue_500);
  color: var(--white_color);
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 10rem;
  font-size: 30px;
  padding: 15px;
  margin-top: 10px;
}

#calendar_main .day_chip_txt {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 10rem;
  font-size: 30px;
  padding: 15px;
  margin-top: 10px;
}

/* スケジュール******************************** */

#calendar_main .schedule-container {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
}

#calendar_main .schedule-contents {
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  gap: 30px;
  width: 100%;
  padding: 0 10px;
  overflow: hidden;
}

#calendar_main .schedule-box {
  width: 100%;
  padding: 10px;
}

/* スケジュールのボックスがいくつかあるかによって幅を変える */

/* １つの場合 */

#calendar_main .schedule-contents.boxcount-1 .schedule-box {
  width: 100%;
}

/* ２つの場合 */

#calendar_main .schedule-contents.boxcount-2 .schedule-box {
  width: 50%;
}

/* ３つの場合 */

#calendar_main .schedule-contents.boxcount-3 .schedule-box {
  width: 33%;
}

/* ４つの場合 */

#calendar_main .schedule-contents.boxcount-4 .schedule-box {
  width: 25%;
}

/* スケジュールのボックスカラー */

#calendar_main .boxcolor_blue {
  background: var(--calendar_blue_color);
}

#calendar_main .boxcolor_red {
  background: var(--calendar_red_color);
}

#calendar_main .boxcolor_yellow {
  background: var(--calendar_yellow_color);
}

#calendar_main .boxcolor_green {
  background: var(--calendar_green_color);
}

/* --------------------------------------- */

#calendar_main .boxcolor_blue.usercolorbox {
  color: var(--calendar_blue_color);
  background: none;
}

#calendar_main .boxcolor_red.usercolorbox {
  color: var(--calendar_red_color);
  background: none;
}

#calendar_main .boxcolor_yellow.usercolorbox {
  color: var(--calendar_yellow_color);
  background: none;
}

#calendar_main .boxcolor_green.usercolorbox {
  color: var(--calendar_green_color);
  background: none;
}

/* calendarの幅 */

#calendar_main .calendar_width_50 {
  width: 50px;
}

#calendar_main .calendar_width_300 {
  width: 300px;
}

/* calendar内のuser */

#calendar_main .user_box {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.25rem;
  gap: 30px;
  overflow: hidden;
}

#calendar_main .user_box > div {
  writing-mode: vertical-lr;
  min-height: 130px;
}

/* 右のサイドエリア */

#calendar_main #side-right-area .col-12 {
  padding: 0px;
}

/* 年月日のカレンダー */

#calendar_main #side-right-area .calendar-search-area th {
  height: 30px;
  text-align: center;
  background-color: var(--white_color);
}

#calendar_main #side-right-area .calendar-search-area td {
  height: 50px;
  background-color: var(--white_color);
}

#calendar_main #side-right-area .calendar-search-area .today {
  background: var(--sub_blue_500);
  color: var(--white_color);
}

#calendar_main #side-right-area .calendar-search-area th:nth-of-type(1),
#side-right-area .calendar-search-area td:nth-of-type(1) {
  color: red;
}

#calendar_main #side-right-area .calendar-search-area th:nth-of-type(7),
#side-right-area .calendar-search-area td:nth-of-type(7) {
  color: var(--sub_blue_500);
}

/*カレンダー内の３０分毎に破線を配置 */

#calendar_main .border-dotted-bottom-30 {
  border-bottom: 1px dashed var(--base_01_color);
}

/* 検索エリア***************************/

.search-area .search-result-area {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 0px;
}

.search-result-area .item a {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  line-height: 1rem;
  font-size: 0.875rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: box-shadow 100ms linear;
  width: 80px;
  color: var(--black_color);
}

.search-result-area .item a .chip-count {
  background-color: var(--base_01_color);
  color: var(--base_05_color);
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 10rem;
  margin-left: 5px;
}

/* 現在のタブ */

.search-area .search-box {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 0;
  background-color: var(--base_03_color);
  padding: 16px;
  margin-bottom: 0;
  border-top: 1px solid var(--base_02_color);
  border-bottom: 1px solid var(--base_02_color);
  color: var(--black_color);
}

/* table***************************/

.table-list {
  width: 100%;
  border: 1px solid var(--base_02_color);
  /* table-layout: fixed; */
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 6px;
  border-bottom: 2px solid var(--base_02_color);
}

.table-list th,
.table-list td {
  padding: 10px 16px;
  line-height: 21px;
  border-top: 1px solid var(--base_02_color);
}

.table-list th {
  background-color: var(--base_01_color);
}

.ellipsis {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  max-width: 180px;
}

.table-list tr:hover {
  background-color: var(--sub_blue_50);
  background-clip: padding-box;
  border-top: 1px solid var(--sub_blue_100);
  border-bottom: 1px solid var(--sub_blue_200);
}

.table-scroll table {
  white-space: nowrap;
}

/* 見出し */

.title-box {
  background-color: var(--sub_blue_50);
  padding: 10px;
  margin-bottom: 20px;
}
.og-left-label-color {
  padding: 0px;
  color: #777;
  border-bottom: 1px dotted #999;
}

/* footer---------------------------------- */

#footer {
  width: 100%;
  /*border-top: 1px solid var(--base_02_color);*/
  /*background-color: var(--white_color);*/
}

#login #footer {
  background-color: var(--white_color);
  border-top: 1px solid var(--base_02_color);
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
}

#footer .copyright {
  text-align: center;
  padding: 10px;
  margin-left: 256px;
}

#login #footer .copyright {
  margin-left: 0px;
}
.label_case1 {
  background: #4b7;
  color: #fff;
  display: inline-block;
  border-radius: 15px;
  width: 80px;
  font-size: 12px;
  text-align: center;
}
.label_case2 {
  background: #b74;
  color: #fff;
  display: inline-block;
  border-radius: 15px;
  width: 80px;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
}
.label_case3 {
  background: rgb(201, 0, 0);
  color: #fff;
  display: inline-block;
  border-radius: 15px;
  width: 80px;
  font-size: 12px;
  text-align: center;
}
.label_case2:hover {
  background: #b90;
}

.link_label {
  cursor: pointer;
  color: #0066cc;
  border-bottom: 1px dotted #0066cc;
}
.cursor-pointer {
  cursor: pointer;
}

/* Font Awesome: common.css の * { font-weight: 500 !important } による上書きを打ち消す */
.fa-solid, .fas {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}
.fa-regular, .far {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 400 !important;
}
.fa-brands, .fab {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

/* ============================================================
   速報(Redmine #2727)
   画面最上部のティッカーと、引継ぎ/受注の直後に出す速報作成モーダル。
   ============================================================ */

/* サイドバーは position:fixed で左を占めるため、その右側=本文の上端に重ねる。
   #contents-area の上パディング(40px)と同じ高さにして本文を隠さない。 */
.flash-ticker {
  position: fixed;
  top: 0;
  left: 256px;
  right: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  background: #101828;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
/* サイドバーを畳んだときは本文と同じだけ左へ寄せる */
.side_togle_style .flash-ticker {
  left: 56px;
}
.flash-ticker[hidden] {
  display: none;
}
.flash-ticker__badge {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 3px;
  background: #e8483c;
  font-size: 12px;
  letter-spacing: .08em;
}
.flash-ticker__viewport {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
  height: 100%;
}
.flash-ticker__item {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  will-change: transform;
  /* 実際の流す長さは JS が FLASH_ITEM_DISPLAY_SEC に合わせて上書きする */
  animation: flash-ticker-slide 30s linear;
}
.flash-ticker__item--apo {
  color: #ffd66b;
}
.flash-ticker__item--contract {
  color: #7ee0a8;
}
@keyframes flash-ticker-slide {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}

@media screen and (max-width: 990px) {
  /* スマホではサイドバーがハンバーガー側に退くので、画面いっぱいに置く */
  .flash-ticker,
  .side_togle_style .flash-ticker {
    left: 0;
  }
  /* 運転中の注意散漫を避けるため、スマホで地図を見ている間だけ消す(PC幅では表示を続ける) */
  .flash-ticker--hide-sp {
    display: none !important;
  }
}

/* 動きを減らす設定の端末では流さず、そのまま読める位置に置く */
@media (prefers-reduced-motion: reduce) {
  .flash-ticker__item {
    position: static;
    animation: none;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* スマホは上部メニューが position:fixed(z-index:9999)で載るため、
   モーダルはその下から始め、画面より高くなったら覆い全体をスクロールさせる。
   パネル側に max-height を持たせると、iOS の vh がブラウザのバーを含む都合で
   上下が見切れる。 */
.flash-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3100;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  background: rgba(16, 24, 40, .55);
}
.flash-modal.is-open {
  display: flex;
}
.flash-modal__panel {
  width: 100%;
  max-width: 520px;
  /* 収まるときは中央、収まらないときは上詰めにして覆い側でスクロールする */
  margin: auto;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
}
.flash-modal__eyebrow {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  color: #fff;
  font-size: 12px;
}
.flash-modal__eyebrow--apo {
  background: #d9820b;
}
.flash-modal__eyebrow--contract {
  background: #1f9254;
}
.flash-modal__title {
  margin: 10px 0 6px;
  font-size: 18px;
  font-weight: bold;
}
.flash-modal__desc {
  margin: 0 0 10px;
  font-size: 13px;
  color: #475467;
}
.flash-modal__notice {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #f0c36d;
  border-radius: 4px;
  background: #fdf6e3;
  font-size: 13px;
  color: #7a5b12;
}
.flash-modal__fields {
  margin: 0 0 14px;
  border-top: 1px solid #eaecf0;
}
.flash-field {
  display: flex;
  gap: 12px;
  padding: 8px 2px;
  border-bottom: 1px solid #eaecf0;
}
.flash-field dt {
  flex: 0 0 140px;
  font-size: 13px;
  color: #667085;
}
.flash-field dd {
  flex: 1 1 auto;
  margin: 0;
  font-size: 14px;
}
.flash-modal__message label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: #667085;
}
.flash-modal__message textarea {
  width: 100%;
  min-height: 76px;
  padding: 8px 10px;
  border: 1px solid #d0d5dd;
  border-radius: 4px;
  font-size: 14px;
  resize: vertical;
}
.flash-modal__hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #98a2b3;
}
.flash-modal__preview {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 4px;
  background: #101828;
  color: #fff;
  font-size: 13px;
  word-break: break-all;
}
.flash-modal__preview-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  color: #98a2b3;
  letter-spacing: .06em;
}
.flash-modal__error {
  margin: 0 0 10px;
  color: #b42318;
  font-size: 13px;
}
.flash-modal__error[hidden] {
  display: none;
}
.flash-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.flash-btn {
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}
.flash-btn:disabled {
  opacity: .6;
  cursor: default;
}
.flash-btn--ghost {
  border-color: #d0d5dd;
  background: #fff;
  color: #344054;
}
.flash-btn--apo {
  background: #d9820b;
  color: #fff;
}
.flash-btn--contract {
  background: #1f9254;
  color: #fff;
}

/* 速報一覧(成果ページ) --------------------------------- */

.flash-list__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #101828;
}
.flash-list__title {
  font-size: 20px;
  font-weight: bold;
}
.flash-list__note {
  margin-top: 2px;
  font-size: 12px;
  color: #667085;
}
.flash-day-toggle {
  display: flex;
  gap: 4px;
}
.flash-day-toggle__btn {
  padding: 6px 16px;
  border: 1px solid #d0d5dd;
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}
.flash-day-toggle__btn.is-active {
  border-color: #101828;
  background: #101828;
  color: #fff;
}

.flash-kpi {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}
.flash-kpi__tile {
  flex: 1 1 160px;
  padding: 12px 16px;
  border: 1px solid #eaecf0;
  border-radius: 6px;
  background: #f9fafb;
}
.flash-kpi__label {
  font-size: 12px;
  color: #667085;
}
.flash-kpi__value {
  margin-top: 4px;
  font-size: 22px;
  font-weight: bold;
}

.flash-boards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}
.flash-board {
  flex: 1 1 380px;
  min-width: 0;
  border: 1px solid #eaecf0;
  border-radius: 6px;
  overflow: hidden;
}
/* 見出しは開閉ボタン。既定は閉じた状態で描画する */
.flash-board__head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.flash-board__count {
  margin-left: auto;
}
/* 開くと下向きになる三角 */
.flash-board__chevron {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transform: rotate(-90deg);
  transition: transform .15s;
}
.flash-board__head[aria-expanded="true"] .flash-board__chevron {
  transform: rotate(0deg);
}
.flash-board__body[hidden] {
  display: none;
}
.flash-board--apo .flash-board__head {
  background: #d9820b;
}
.flash-board--contract .flash-board__head {
  background: #1f9254;
}
.flash-board__title {
  font-weight: bold;
}
.flash-board__count {
  font-size: 13px;
}
.flash-board__empty {
  padding: 20px 14px;
  color: #98a2b3;
  font-size: 13px;
  text-align: center;
}
.flash-board__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.flash-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f2f4f7;
}
.flash-row:last-child {
  border-bottom: none;
}
.flash-row__time {
  flex: 0 0 46px;
  padding-top: 2px;
  font-size: 15px;
  font-weight: bold;
}
.flash-row__body {
  flex: 1 1 auto;
  min-width: 0;
}
.flash-row__unit {
  font-size: 12px;
  color: #667085;
}
.flash-row__name {
  font-size: 15px;
  font-weight: bold;
}
.flash-row__deal {
  font-size: 13px;
  color: #344054;
  word-break: break-all;
}
.flash-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
  font-size: 12px;
  color: #98a2b3;
}
.flash-row__message {
  margin-top: 4px;
  font-size: 13px;
  color: #475467;
  word-break: break-all;
}
.flash-row__amount {
  flex: 0 0 auto;
  padding-top: 2px;
  font-size: 15px;
  font-weight: bold;
  white-space: nowrap;
}

/* 速報: Google Chat 投稿に失敗したときの案内 --------------- */

.flash-chat-failed {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #f0c36d;
  border-radius: 4px;
  background: #fdf6e3;
}
.flash-chat-failed[hidden] {
  display: none;
}
.flash-chat-failed__title {
  margin: 0 0 4px;
  font-weight: bold;
  color: #7a5b12;
}
.flash-chat-failed__desc {
  margin: 0 0 6px;
  font-size: 13px;
  color: #7a5b12;
}
.flash-chat-failed__text {
  width: 100%;
  min-height: 140px;
  padding: 8px 10px;
  border: 1px solid #d0d5dd;
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
  font-family: inherit;
  white-space: pre;
  resize: vertical;
}
.flash-modal__actions[hidden] {
  display: none;
}

/* 速報: 未送信・Chat未投稿の後追い導線 ------------------- */

.flash-todo {
  padding: 12px 14px;
  border: 1px solid #f0c36d;
  border-radius: 6px;
  background: #fdf6e3;
}
.flash-todo--chat {
  border-color: #d0d5dd;
  background: #f9fafb;
}
.flash-todo__head {
  font-weight: bold;
  color: #7a5b12;
}
.flash-todo--chat .flash-todo__head {
  color: #344054;
}
.flash-todo__desc {
  margin: 2px 0 8px;
  font-size: 12px;
  color: #667085;
}
.flash-todo__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.flash-todo__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid rgba(0, 0, 0, .08);
}
.flash-todo__badge {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 3px;
  color: #fff;
  font-size: 12px;
}
.flash-todo__badge--apo {
  background: #d9820b;
}
.flash-todo__badge--contract {
  background: #1f9254;
}
.flash-todo__badge--failed {
  background: #b42318;
}
.flash-todo__body {
  flex: 1 1 240px;
  min-width: 0;
  font-size: 13px;
  word-break: break-all;
}
.flash-todo__meta {
  margin-left: 8px;
  color: #98a2b3;
  font-size: 12px;
}
.flash-todo__form {
  margin: 0;
}

.flash-modal__preview--chat {
  background: #1f2937;
}
.flash-modal__preview-chat {
  margin: 0;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

/* スマホ(上部メニューが固定で載る)向けの速報モーダル調整 --------- */

@media screen and (max-width: 990px) {
  /* 上部メニュー(45px)の下から始め、下は画面外に出ないよう余白を取る */
  .flash-modal {
    padding: 55px 10px 24px;
  }
  .flash-modal__panel {
    padding: 16px;
  }
  /* 項目名と値を縦に積んで、狭い幅でも折り返しで潰れないようにする */
  .flash-field {
    display: block;
    padding: 8px 2px;
  }
  .flash-field dt {
    margin-bottom: 2px;
  }
  .flash-modal__title {
    font-size: 16px;
  }
  /* ティッカーも上部メニューの下に置く(重なって読めなくなるため) */
  .flash-ticker,
  .side_togle_style .flash-ticker {
    top: 45px;
  }
}
