/*  Copyright 2024 Vesta Inc., All Rights Reserved.  */

body {
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
  -khtml-user-select: none;
  -webkit-touch-callout: none; /* Disable Android and iOS callouts*/
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  font-family:
    "游ゴシック Medium",
    "Yu Gothic Medium",
    "游ゴシック",
    "Yu Gothic",
    "Hiragino Kaku Gothic ProN",
    Meiryo,
    -apple-system,
    Helvetica Neue,
    Helvetica,
    Arial,
    sans-serif;
}

html,
body {
  overflow-x: hidden;
  touch-action: pan-y;
}

#main {
  margin-left: auto;
  margin-right: auto;
  overflow-y: auto;
}
@media screen and (min-width: 1200px) {
  #main {
    width: 64%;
  }
}

a {
  text-decoration: none;
}
ul {
  list-style-type: none;
}

/*----------------------------------------------------------*/
/*                     Chart Background                     */
/*----------------------------------------------------------*/

#chartBackground {
  background-image: url("../input/images/bgImageCloud.webp");
  background-size: cover;
  backface-visibility: hidden;
  background-color: #ffffff;
  z-index: 100;
  -webkit-animation: bgColor 27s linear 2s 3;
  -moz-animation: bgColor 27s linear 2s 3;
  animation: bgColor 27s linear 2s 3;
}
@keyframes bgColor {
  0% {
    background-position: 0px;
  }
  100% {
    background-position: -300px;
  }
}

.drop {
  background: -webkit-gradient(
    linear,
    0% 0%,
    0% 100%,
    from(#c0c0c0),
    to(rgba(255, 255, 255, 0.6))
  );
  background: -moz-linear-gradient(
    top,
    rgba(192, 192, 192, 1) 0%,
    rgba(255, 255, 255, 0.6) 100%
  );
  width: 1px;
  height: 62px;
  position: absolute;
  animation: fall 0.63s linear infinite;
  -webkit-animation: fall 0.63s linear infinite;
  -moz-animation: fall 0.63s linear infinite;
}
/* animate the drops*/
@keyframes fall {
  to {
    margin-top: 600px;
  }
}
@-webkit-keyframes fall {
  to {
    margin-top: 600px;
  }
}
@-moz-keyframes fall {
  to {
    margin-top: 600px;
  }
}

/*----------------------------------------------------------*/
/*                Input for Location Search                 */
/*----------------------------------------------------------*/

.mapboxgl-ctrl-geocoder {
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 450px;
  margin-top: max(env(safe-area-inset-top), 3px);
  margin-bottom: 2px;
  padding-left: 3px;
  padding-right: 3px;
  display: flex;
  align-items: center;
  z-index: 100;
}

.mapboxgl-ctrl-geocoder input {
  height: 34px;
  font-family:
    "Noto Serif",
    "游ゴシック Medium",
    "Yu Gothic Medium",
    "游ゴシック",
    "Yu Gothic",
    "Hiragino Kaku Gothic ProN",
    Meiryo,
    -apple-system,
    Helvetica Neue,
    Helvetica,
    Arial,
    sans-serif;
  font-size: 18px;
  font-weight: 400;
  font-optical-sizing: auto;
  font-style: normal;
  color: #585858;
  text-align: center;
  padding: 0px 20px 0px 20px;
  border: 1px solid #ababab;
  border-radius: 2rem;
  transition: border 0.4s ease; /* 境界線をアニメーションで変化 */
  /* iOSのオートコレクト、スペルチェック、キャピタライズを無効化 */
  -webkit-autocorrect: off;
  -webkit-spellcheck: false;
  autocorrect: off;
  spellcheck: false;
  autocapitalize: none;
  /* テキストデコレーションを完全に無効化 */
  -webkit-text-decoration-skip-ink: none;
  text-decoration-skip-ink: none;
  text-decoration: none;
  /* ユーザ補正によるIME下線の無効化 */
  outline: none !important; /* 外枠の装飾を完全にオフ */
}
/* input要素がフォーカスされたときのスタイル */
.mapboxgl-ctrl-geocoder input:focus {
  outline: 1px solid #565656;
  border-radius: 2rem;
}

/*  Glass icon  */
.mapboxgl-ctrl-geocoder--icon-search {
  top: 6px;
  left: 16px;
  width: 22px;
  height: 22px;
  fill: #808080;
}
/*  inputフォームのクリアボタン  */
.mapboxgl-ctrl-geocoder--icon-close {
  display: none;
  width: 15px;
  height: 15px;
  margin-top: 3px;
  margin-right: 9px;
}
.mapboxgl-ctrl-geocoder--icon-loading {
  margin-top: -3px;
  margin-right: 4px;
}

.mapboxgl-ctrl-geocoder,
.mapboxgl-ctrl-geocoder .suggestions {
  box-shadow: initial;
  z-index: 200 !important;
}

.mapboxgl-ctrl-geocoder .suggestions {
  top: 36px !important;
}

/*
.down-arrow-icon {
  position: absolute;
  top: 54px;
  right: 25px;
  width: 20px;
  height: 20px;
  z-index: 601;
}
*/

.mapboxgl-ctrl-geocoder .suggestions > li > a {
  padding: 8px 12px;
}

/* No results found メッセージのスタイルをカスタマイズ */
.mapbox-gl-geocoder--no-results {
  font-size: 17px;
  color: #3b3b3b;
  height: 40px;
  display: flex;
  font-family:
    "Noto Serif",
    "游ゴシック Medium",
    "Yu Gothic Medium",
    "游ゴシック",
    "Yu Gothic",
    "Hiragino Kaku Gothic ProN",
    Meiryo,
    -apple-system,
    Helvetica Neue,
    Helvetica,
    Arial,
    sans-serif;
  justify-content: center; /* 横方向に中央 */
  align-items: center; /* 縦方向に中央 */
}

/*----------------------------------------------------------*/
/*                     Location Search                      */
/*----------------------------------------------------------*/

.modal-container-search {
  display: none;
  position: absolute;
  top: calc(max(env(safe-area-inset-top), 3px) + 36px);
  left: 50%;
  transform: translateX(-50%);
  width: 450px;
  background-color: #eeeeee;
  border: 1px solid #ccc;
  border-radius: 3px;
  z-index: 200;
}
@media (max-width: 768px) {
  .modal-container-search {
    bottom: initial;
    left: 50%;
    transform: translateX(-50%);
    max-width: 100%;
    height: initial;
    max-height: initial;
  }
}
.event-list-wrapper {
  font-size: 14px;
  color: black;
  padding: 18px 10px 30px 10px;
}

.btn-modal {
  padding: 9px 15px;
  font-size: 14px;
  color: #4b4b4b;
  border: 1px solid #4b4b4b;
  border-radius: 0.25rem;
  background-color: rgb(255, 255, 255);
  cursor: pointer;
}
.btn-location-access {
  display: flex;
  width: 100%;
  align-items: center;
  margin: 10px 0px 0px 0px !important;
}

.btn-location-history {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 3px auto;
  text-align: left;
}
.event-list-icons {
  width: 18px;
  height: 18px;
  margin-right: 5px;
}

.btn-clear-search {
  font-size: 13.5px;
  color: rgba(0, 123, 255, 1);
  border: transparent !important;
  background-color: transparent !important;
  padding: 2px 4px 2px 4px;
}

.btn-close-search {
  position: fixed;
  top: 3px;
  right: 8px;
  color: rgba(0, 123, 255, 1);
  font-size: 17px;
  padding: 12px 12px;
  background-color: transparent !important;
  -webkit-background-color: transparent !important;
  border: transparent;
  z-index: 210;
}
.btn-close-search:focus {
  outline: none;
}
.btn-close-search:active {
  background-color: transparent;
}

/*----------------------------------------------------------*/
/*               Navigation (Radio Buttons)                 */
/*----------------------------------------------------------*/

.navigation-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0px 2px;
  background-color: rgba(239, 239, 244, 0.1);
  border-top: 0.5px solid #ccc;
}

.navi-item {
  text-align: center;
  width: 20%; /* ボタンの横幅を調整 */
}

.navi-item button {
  width: 100%;
  border: none;
  background-color: rgba(239, 239, 244, 0.1);
  color: #595959;
  font-size: 0.74em;
  padding: 6px 5px 3px 4px;
  transition: background-color 0.1s; /* ホバー時の背景色の変化を滑らかにする */
}

.navi-item button:active {
  background-color: #d9efff; /* タッチ時の背景色 */
}

/* アイコンのスタイル */
.navi-item button .navi-icon {
  width: 22px;
  height: 22px;
  fill: currentColor; /* アイコンの色を変更可能にする */
  margin-bottom: 0px; /* アイコンとラベルの間隔を調整 */
  color: #aaaaaa;
}
.navi-icon.blue {
  filter: invert(34%) sepia(97%) saturate(2029%) hue-rotate(192deg)
    brightness(102%) contrast(101%);
}

/*----------------------------------------------------------*/
/*                         Settings                         */
/*----------------------------------------------------------*/

.modal-container-settings {
  display: none;
  position: fixed;
  top: 0px;
  transform: translateX(-50%);
  width: 450px;
  max-width: 99%;
  height: 99%;
  background-color: #fafafa;
  border: 1px solid #ccc;
  border-radius: 3px;
  overscroll-behavior-y: contain; /* 親要素のスクロールを防止するために設定 */
  opacity: 1;
  animation: slideInUp 0.5s ease forwards;
  z-index: 400;
}

@keyframes slideInUp {
  from {
    transform: translateY(100%); /* 下から画面外に */
    opacity: 0;
  }
  to {
    transform: translateY(0); /* 位置をリセット */
    opacity: 1;
  }
}

/* タブレット用のスタイル */
@media screen and (min-width: 768px) {
  .modal-container-settings {
    left: auto; /* 左側の設定を無効化 */
    right: 0; /* 右側に固定 */
    transform: none; /* 変換を無効化 */
    animation: slideInRight 0.5s ease forwards; /* 右からのスライドインアニメーションを適用 */
  }
  /* 右からスライドしてくるアニメーション */
  @keyframes slideInRight {
    from {
      transform: translateX(100%); /* 右から画面外に */
      opacity: 0;
    }
    to {
      transform: translateX(0); /* 位置をリセット */
      opacity: 1;
    }
  }
}

.modal-content {
  max-height: 95%;
  overflow-y: auto;
  margin: 22px 0px 30px 0px;
}

.modal-main-title {
  font-size: 18px;
  font-weight: bold;
  margin: 30px 0px 0px 20px;
}

.modal-title {
  font-size: 15px;
  font-weight: bold;
  margin: 25px 0px 0px 0px;
}

.modal-sub-title {
  font-size: 14px;
  margin: 22px 0px 5px 0px;
  line-height: 1.3rem;
}

.modal-wrapper {
  display: flex;
  flex-direction: column;
  padding: 5px 20px 25px 20px;
}

.radio-group {
  display: flex;
  flex-direction: column; /* 縦に並べる */
  gap: 5px; /* ボタン間のスペース */
}

.radio-group input[type="radio"] {
  display: none;
}

.radio-label {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 7px 0px 7px 0px;
  font-size: 12.5px;
  color: #4b4b4b;
  border-radius: 2px;
  border: 1px solid #4b4b4b;
  background-color: #ffffff;
}

.radio-group input[type="radio"]:checked + .radio-label {
  color: white;
  background: linear-gradient(135deg, #47494a 0%, #6b6d6e 100%);
}

.separator {
  width: 100%;
  border-top: 1px solid #4b4b4b;
  margin: 3px 0;
}

.btn-close-settings {
  position: fixed;
  top: 54px;
  right: 12px;
  padding: 12px 11px 7.5px 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgb(195, 195, 195);
  z-index: 410;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6); /* 白い縁 */
}

.about-app {
  line-height: 1.3rem;
  font-size: 14px;
}
.about-app ul {
  margin-top: 8px;
  margin-bottom: 0px;
  padding-inline-start: 3px;
}
.about-app ul li {
  margin-bottom: 17px;
}
/* 最後の<li>の下部マージンをリセット */
.about-app ul li:last-child {
  margin-bottom: 0;
}

.app-text {
  line-height: 1.1rem;
  margin: 8px 4px 8px 10px;
}
.title-icon {
  width: 26px;
  height: 26px;
  margin-right: 4px;
  margin-bottom: 4px;
  vertical-align: middle; /* アイコンをテキストと中央揃え */
}

.contact-icon {
  width: 17px;
  height: 17px;
  vertical-align: middle;
}

/*----------------------------------------------------------*/
/*                         Chart.js                         */
/*----------------------------------------------------------*/

#chartJS {
  touch-action: pan-y;
  width: 100%;
}

.chart-wrapper {
  width: auto; /* max-width を優先 */
  margin: 0 auto;
  display: block;
  height: auto;
}

/* =========================
   スマホ向け設定 (959px以下)
   ========================= */
@media screen and (max-width: 959px) {
  /* 小型スマホ横向き (Landscape) */
  @media screen and (max-device-width: 559px) and (max-device-height: 559px) {
    .chart-wrapper {
      max-width: 320px;
      max-height: 320px;
      min-width: 180px;
      min-height: 180px;
    }
  }

  /* 小型スマホ縦向き (Portrait) */
  @media screen and (max-device-width: 559px) and (max-device-height: 700px) {
    .chart-wrapper {
      max-width: 320px;
      max-height: 320px;
      min-width: 310px;
      min-height: 310px;
    }
  }

  /* 大型スマホ縦向き (iPhone 17 等) */
  @media screen and (max-device-width: 559px) and (min-device-height: 701px) {
    .chart-wrapper {
      max-width: 94vw; /* ビューポート幅の90%まで */
      max-height: 94vh; /* ビューポート高さの90%まで */
      min-width: 180px;
      min-height: 180px;
    }
  }

  /* タブレット */
  @media screen and (min-device-width: 560px) and (max-device-width: 959px) {
    .chart-wrapper {
      max-width: 440px;
      max-height: 440px;
      min-width: 320px;
      min-height: 320px;
    }
  }
}

/* =========================
   デスクトップ向け設定 (960px以上)
   ========================= */
@media screen and (min-width: 960px) {
  .chart-wrapper {
    max-width: 346px; /* お好みで調整 */
    max-height: 346px;
    min-width: 280px;
    min-height: 280px;
  }
}

.img_block img {
  display: block;
  margin: auto;
}

/*----------------------------------------------------------*/
/*                Mobiscroll Event Calendar                 */
/*----------------------------------------------------------*/

#eventCalendar {
  margin: 0px 0px 200px 0px;
  z-index: 100;
}

.mbsc-ios .mbsc-cal-today .mbsc-cal-day-date {
  display: inline-block;
  width: 1.6em;
  height: 1.6em;
  color: #000;
  background: rgba(216, 216, 216, 1) !important;
}

.mbsc-ios .mbsc-cal {
  font-size: 1.12em !important;
}

/* 該当月以外の日付の透過度を変更する。 */
.mbsc-cal-day-diff .mbsc-cal-day-date {
  opacity: 0.8;
}

/* これらはflagとして保持し、mobiscroll.javascriptにて丸の色に変更する */
.mbsc-cal-week-day0 {
  color: red;
}
.mbsc-cal-week-day6 {
  color: red;
}

/*  年月の表示欄  */
.mbsc-ios.mbsc-ev-cal.mbsc-fr-inline .mbsc-cal-hdr {
  background: #ffffff;
  padding: 0.1em 0em 0.1em 0em;
}

/* 曜日の表示欄 */
.mbsc-ios .mbsc-cal-days-c {
  background: #ffffff;
}

/* カレンダーのメイン画面 */
.mbsc-ios.mbsc-ev-cal.mbsc-fr-md .mbsc-cal-cell {
  border-left-color: transparent;
}

.mbsc-ios
  .mbsc-cal-c
  .mbsc-cal
  .mbsc-cal-body
  .mbsc-cal-row
  .mbsc-selected
  .mbsc-cal-cell-txt {
  border-color: rgba(0, 123, 255, 1);
  background: white !important;
  color: rgba(0, 123, 255, 1) !important;
  width: 1.6em;
  height: 1.6em;
}

/* イベントの表示欄 */
.mbsc-ios .mbsc-lv-gr-title {
  background: #fcfcfc;
}

/* イベントの表示欄の下のマージン */
.mbsc-ios .mbsc-event-list {
  background: #ffffff;
}

/* カレンダーの日付と天気マークとの間のmargin */
.mbsc-ios .mbsc-cal-day-date {
  position: relative;
  margin: 2px 0px 20px 0px !important;
}

/* カレンダーの表示を中央揃えとする  */
.mbsc-cal-days {
  line-height: 1.875em;
  text-align: center !important;
}
.mbsc-ios.mbsc-ev-cal.mbsc-fr-md .mbsc-ltr .mbsc-cal-day {
  text-align: center !important;
}

.evcal-weather-container {
  position: relative;
  top: 0px;
  height: 18px;
  margin: 2px 0px 0px 0px;
}
.evcal-weather-container img {
  display: block;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
}

/*  カレンダーの予定に表示する所在地マーク  */
.event-calendar-location-icon {
  width: 11px;
  height: 11px;
  margin-right: 2px;
}

.mbsc-event-list .mbsc-lv .mbsc-lv-gr-title.mbsc-event-empty {
  font-size: 0.8em !important;
}

.mbsc-ios .mbsc-cal-cell {
  border-top: 0.5px solid #ccc !important;
}

/* カレンダー上のイベントラベルの四隅を丸くする */
.mbsc-ios .mbsc-cal-txt {
  border-radius: 2px;
}

/*----------------------------------------------------------*/
/*                 Mobiscroll Event Items                   */
/*----------------------------------------------------------*/

.eventText {
  margin: 0px 55px 0px 0px;
  word-break: break-all;
}

.md-listview-rendering-btn {
  position: absolute;
  top: 16px;
  right: 17px;
  display: inline-block;
  padding: 0.27em 0.47em;
  text-decoration: none;
  color: #53b7ff;
  background: white;
  border: solid 1px #53b7ff;
  border-radius: 3px;
  transition: 0.4s;
}
@media (min-width: 768px) and (max-width: 1024px) {
  .md-listview-rendering-btn {
    top: 18px;
  }
}

.css-cancel {
  display: inline-block;
  position: relative;
  margin: 14px 10px 0px 7px;
  padding: 0;
  width: 4px;
  height: 20px;
  background: #007bff;
  transform: rotate(45deg);
}
.css-cancel:before {
  display: block;
  content: "";
  position: absolute;
  top: 50%;
  left: -8px;
  width: 20px;
  height: 4px;
  margin-top: -2px;
  background: #007bff;
}

.mbsc-ms-icons.mbsc-ms-txt .mbsc-ms-item {
  padding-bottom: 2px;
}

/* The height between the event descrption and timezone */
.mbsc-ios .mbsc-event-list {
  padding: 0 0 0 0;
}

/*----------------------------------------------------------*/
/*                     Calendar Titles                      */
/*----------------------------------------------------------*/

#btnCancelSyncCalendar {
  display: none;
}

.btn-sync-calendar {
  display: block; /* ボタンをブロック要素にして横幅を設定 */
  padding: 9px 15px 9px 15px;
  font-size: 13px;
  color: #4b4b4b;
  border: 1px solid #4b4b4b;
  border-radius: 2px;
  background-color: rgb(255, 255, 255);
}
.btn-sync-calendar:active,
.btn-sync-calendar:focus {
  background-color: rgba(0, 123, 255, 0.1) !important;
}

.calendar-titles {
  padding: 15px 12px 5px 12px;
  background: rgb(255, 255, 255);
}
.toggle-switch-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.label-wrapper {
  display: flex;
  flex-direction: column;
  margin-right: 10px;
}

.toggle-label {
  font-size: 15px;
}

.toggle-description {
  font-size: 13px;
  color: #666;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 30px;
  margin-top: 5px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #4b4b4b;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/*----------------------------------------------------------*/
/*                      Weather Radar                       */
/*----------------------------------------------------------*/

.btn-wx-radar {
  display: none;
  position: absolute;
  top: calc(max(env(safe-area-inset-top), 3px) + 40px);
  right: 5px;
  padding: 6px 16px !important;
  border: 1px solid rgba(0, 123, 255, 1) !important;
  background-color: rgba(255, 255, 255, 0.5) !important;
  color: rgba(0, 123, 255, 1) !important;
  font-size: 15px !important;
  font-family: "Noto Serif", "Helvetica Neue", Helvetica, Arial, sans-serif;
  border-radius: 5px;
  justify-content: center;
  align-items: center;
  z-index: 110;
}

@media screen and (min-width: 960px) {
  .btn-wx-radar {
    position: relative;
    float: right;
    top: max(env(safe-area-inset-top), 2px);
    /*
    top: calc(max(env(safe-area-inset-top), 3px) + 40px);
    */
  }
}

.btn-wx-radar:active,
.btn-wx-radar:focus {
  background-color: rgba(0, 123, 255, 0.1) !important;
}

/*----------------------------------------------------------*/
/*                       Google AdMob                       */
/*----------------------------------------------------------*/

.admob-container {
  display: none;
  font-size: 14.2px;
  margin: 20px 0px 200px 0px;
  padding: 25px 20px 18px 25px;
  border: 1px solid #a7a7a7;
  border-width: 1px 0px 1px 0px;
  position: relative;
  background-color: #fcfcfa;
}
.admob-btn-wrapper {
  font-size: 14.8px;
  text-align: center;
}
.admob-reward-label {
  margin-right: 7px;
}
#btnWatchVideo {
  background-color: #ffffff;
}

.blinking {
  -webkit-animation: blink 1.5s ease-in-out infinite alternate;
  -moz-animation: blink 1.5s ease-in-out infinite alternate;
  animation: blink 1.5s ease-in-out infinite alternate;
}
@-webkit-keyframes blink {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-moz-keyframes blink {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes blink {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.safe-area {
  /* The bottom padding of adaptive banner is 34 + 50 px */
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1000;
  height: 84px;
  width: 100vw;
  background-color: rgb(253, 253, 253);
  display: none;
}
@media screen and (min-height: 0px) and (max-height: 700px) and (min-width: 0px) and (max-width: 559px) {
  /* スマホの縦向き portrait ex. iPhone 7/8/SE2 */
  .safe-area {
    height: 20px;
  }
}

/*----------------------------------------------------------*/
/*   Loading spin  https://pinkmonky.net/detail/?id=100     */
/*----------------------------------------------------------*/

/* BEGIN: The spinner animation during the ajax loading */
#cvSpinner {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  display: none;
  pointer-events: none;
  z-index: 500;
}
.cv-spinner {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.spinner {
  width: 42px;
  height: 42px;
  border: 2px #ddd solid;
  border-top: 2px #2e93e6 solid;
  border-radius: 50%;
  -webkit-animation: sp-anime 0.8s linear infinite;
  -moz-animation: sp-anime 0.8s linear infinite;
  animation: sp-anime 0.8s linear infinite;
}

@keyframes sp-anime {
  100% {
    transform: rotate(360deg);
  }
}
.is-hide {
  display: none;
}
/* END: The spinner animation during the ajax loading */

/*----------------------------------------------------------*/
/*                      Confirm Dialog                      */
/*----------------------------------------------------------*/

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 300;
}

.popup-contents {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.popup-messages {
  margin: 4px 0px 16px 0px;
  font-size: 15px;
}

.popup-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 5px;
}

.popup-buttons button {
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  transition: background 0.3s;
  flex: 1;
  max-width: 120px;
}

#confirmOk {
  background: #4b4b4b;
  color: white;
}

#confirmOk:hover {
  background: rgb(181, 181, 181);
}

#confirmCancel {
  border: 1px solid #4b4b4b;
  background: #ffffff;
  color: #4b4b4b;
}

#confirmCancel:hover {
  background: rgb(181, 181, 181);
}

/*----------------------------------------------------------*/
/*                    Toast Notification                    */
/*----------------------------------------------------------*/

/* トーストコンテナのスタイル */
.toast-container {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: max(env(safe-area-inset-top), 6px);
  display: inline-block;
  pointer-events: none;
  z-index: 300;
}

.toast {
  display: inline-block;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-family:
    "游ゴシック Medium",
    "Yu Gothic Medium",
    "游ゴシック",
    "Yu Gothic",
    "Hiragino Kaku Gothic ProN",
    Meiryo,
    -apple-system,
    Helvetica Neue,
    Helvetica,
    Arial,
    sans-serif;
  color: #fff;
  padding: 11px 11px 11px 19px;
  background: linear-gradient(135deg, #3f97f6 0%, #90caf9 100%);
  border-radius: 8px;
  text-align: center;
  white-space: normal; /* テキストを折り返す */
  word-wrap: break-word; /* 長い単語を折り返す */
  opacity: 0;
}

.toast.short {
  width: 55vw;
  min-width: 240px;
  max-width: 320px;
  text-align: center;
}
.toast.long {
  width: 76vw;
  min-width: 280px;
  max-width: 400px;
  text-align: left;
}

.toast.show {
  opacity: 0.9;
  transform: translateY(0);
}

.toast.primary {
  background: linear-gradient(135deg, #3f97f6 0%, #90caf9 100%);
}
.toast.success {
  background: linear-gradient(135deg, #43be5f 0%, #a1d8b5 100%);
}
.toast.warning {
  background: linear-gradient(135deg, #f8b042 0%, #ffd08a 100%);
}

.toast.danger {
  background: linear-gradient(135deg, #f5504e 0%, #f8a5a3 100%);
}
.toast.dark {
  background: linear-gradient(135deg, #47494a 0%, #6b6d6e 100%);
}
