/* モバイルファースト方式で記述 */

/* iPhoneのiOSのSafariでは「input」や「button」タグなどの表示がデフォルトのCSSで用意されているので、 */
/* リセット用やフォーム用などのCSSファイルで、「appearance」を無効にしておかなければいけない。 */

/* 共通ホバーアニメーション */
.hover {
  display: inline-block;
  transition: transform 0.2s ease;
  vertical-align: middle;
  cursor: pointer;
}

.hover:hover {
  transform: translateY(-3px);
  will-change: transform;
}

/* 共通カードスタイル */
.card02 {
  cursor: pointer !important;
  overflow: hidden !important;
  margin: 0px 0px 10px 0px;
  padding: 10px;
  border-radius: 5px;
}
.card02_pop {
  width: 100%;
  margin: 0px 0px 10px 0px;
  padding: 10px;
  border-radius: 5px;
}

.card02:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

/* 変更履歴ボタン */
.history_button {
  display: inline-block;
  border: 1px solid #a70319;
  border-radius: 12px;
  color: #a70319;
  padding: 0px;
  margin-left: 15px;
  font-size: 12px;
  font-weight: 100;
  background-color: transparent;
  text-align: center;
  min-width: 70px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.history_button:hover {
  background-color: #a70319;
  color: white;
}

.small-font {
  font-size: 0.65em !important;
}

/* カスタムツールチップ */
.tooltip-container {
  position: relative;
}

.tooltip {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: white;
  color: #333;
  padding: 6px 10px;
  border-radius: 0;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
  border: 1px solid #ccc;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.tooltip::after {
  display: none;
}

.tooltip-container:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

.component-container {
  width: 100% !important;
}

.badge {
  cursor: default;
}

.score_title {
  padding: 5px 5px 0px 0px;
  margin: 0px;
  color: #385723;
  font-size: 14px;
  font-weight: bold;  
  text-align: right;
} 

.nav-item {
  text-align: left;
}

.login_card {
  background-color: #b3d29e !important;
}

input, textarea, button {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  outline: none;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

h3 {
  font-weight: bold !important;
}

div .row{
  margin: 0px !important;
  padding: 0px !important;
} 

div .zero_margin{
  margin: 0px !important;
  padding: 0px !important;
} 

.container {
  margin: 0px !important;
  padding: 5px 15px !important;
} 

.page_title {
  color: #333333;
  font-size: 20px;
  font-weight: 900;
  padding: 0px 5px 10px 0px;
  margin: 0px 0px 0px 0px;
}
.sticky {
  width: 100%;
  position: sticky;
  top: 50px; /* topbarの高さ分下げる */
  background-color: white;
  z-index: 10;
}

/* OFFCANVAS 左メニュー */
.offcanvas {
  width: 240px !important;
  background: linear-gradient(135deg, #E2F0D9 0%, #D4E6C7 100%) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border-right: 1px solid rgba(169, 209, 142, 0.3);
}

.offcanvas-header {
  background: linear-gradient(135deg, #A9D18E 0%, #8BC34A 100%);
  height: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-nav {
  padding: 0;
  margin: 0;
}
.nav-item-welcome {
  color: #1B5E20;
  font-weight: 700;
  font-size: 17px;
  padding: 12px 0px 18px 30px;
  margin-bottom: 5px;
  position: relative;
}

.nav-item-welcome::before {
  content: '👋';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
}


.nav-item {
  text-align: left;
  border-left: 8px solid #8BC34A;
  display: block;
  padding: 13px 0px 13px 20px;
  margin: 10px 0px 0px 0px;
  color: #2E4A3B !important;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 17px;
  position: relative;
  overflow: hidden;
}

.nav-item:hover {
  background: linear-gradient(135deg, rgba(169, 209, 142, 0.25) 0%, rgba(139, 195, 74, 0.25) 100%);
  box-shadow: 0 0 0 1px rgba(169, 209, 142, 0.6), 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 現在表示中のメニュー */
.nav-item-active {
  background: linear-gradient(135deg, rgba(169, 209, 142, 0.25) 0%, rgba(139, 195, 74, 0.25) 100%);
  box-shadow: 0 0 0 1px rgba(169, 209, 142, 0.6), 0 2px 8px rgba(0, 0, 0, 0.15);
  color: #1B5E20 !important;
  font-weight: 600;
}

.no-decoration {
  text-decoration: none !important;
}

.nav-item-mode {
  background: linear-gradient(135deg, rgba(169, 209, 142, 0.1) 0%, rgba(139, 195, 74, 0.1) 100%);
  color: #2E4A3B;
  font-weight: 600;
  font-size: 17px;
  padding: 8px 16px;
}

/* フォームラベルのスタイル */
.form-label {
  color: #2E4A3B !important;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 0;
  display: block;
}

/* セレクトボックスのスタイル */
.form-select {
  color: #2E4A3B !important;
  transition: all 0.3s ease;
  font-size: 17px;
}

.form-select:focus {
  box-shadow: none !important;
  background: white !important;
}

select,
.form-select {
  background-color: #ffffff !important;
  color: #000000;
  /* -webkit-appearance: none; */
  /* appearance: none; */
}

.nav-item-logout {
  color: #B02A37 !important;
  font-weight: 600;
}

.nav-item-logout:hover {
  color: #7a1e27 !important;
}

input, textarea, button {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  outline: none;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

h3 {
  font-weight: bold !important;
}

div .row{
  margin: 0px !important;
  padding: 0px !important;
} 

.container {
  margin: 0px !important;
  padding: 5px 15px 65px 15px!important;
} 

/* OFFCANVAS 左メニュー */
.offcanvas {
width: 240px !important;
background: #E2F0D9 !important;
box-shadow:0 6px 14px rgba(0, 0, 0, 0.24);

}

.offcanvas-header {
  background: #A9D18E;
  height: 50px;
}
.offcanvas-body {
  padding: 0px !important;
}
.wrapper{
  position: relative;/*←相対位置*/
  padding-bottom: 19vw;/*←footerの高さ*/
  padding-top: 45px;
  box-sizing: border-box;/*←全て含めてmin-height:100vhに*/
}

/* TOP BAR */
.topbar {
  background: #A9D18E;
  height: 50px;
  width: 100%;
  position: fixed !important;
  z-index:1;
  top: 0px !important;
  left: 0px !important;
  padding: 0px !important;
  margin: 0px !important;
  z-index: 999;
}  
.topbar_left {
  position: fixed;
  top: 0px;
  left: 0px;
  margin: 5px 20px;
}
.topbar_menubar {
  position: fixed;
  z-index:1;
  top: 0px;
  left: 0px;
  margin: 5px 20px;
}
.topbar_title {
  position: fixed;
  top: 0px;
  left: 50px;
  margin: 11px 20px 10px 20px;
  font-size: 20px;
  font-weight: bold;
}
.topbar_brand {
  position: fixed;
  z-index:2;
  top: 0px;
  left: 50px;
  margin: 10px 20px 3px 20px;
  color: #F5EFC4 !important;
}

/* TEXT, FONT */
.b{
  font-weight: bold;
}
/* text-align */
.ta_rgt{
  text-align: right;
}
.ta_lft{
  text-align: left;
}
.ta_ctr{
  text-align: center;
}
.va_tp{
  vertical-align: top;
}
.va_md{
  vertical-align: middle !important;
}
.va_bt{
  vertical-align: bottom;
}
.red{
  color: red;
}


/* FORM BUTTONS */
.button, input[type=submit], input[type=button], .submit-row input, a.button {
  background: #79aec8;
  padding: 5px 5px;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
}

a.button {
  padding: 5px 5px;
}

.button:active, input[type=submit]:active, input[type=button]:active,
.button:focus, input[type=submit]:focus, input[type=button]:focus,
.button:hover, input[type=submit]:hover, input[type=button]:hover {
  background: #609ab6;
}

.button[disabled], input[type=submit][disabled], input[type=button][disabled] {
  opacity: 0.4;
}

.button.default, input[type=submit].default, .submit-row input.default {
  float: right;
  border: none;
  font-weight: 400;
  background: #A9D18E;
}

.button.default:active, input[type=submit].default:active,
.button.default:focus, input[type=submit].default:focus,
.button.default:hover, input[type=submit].default:hover {
  background: #205067;
}

.button[disabled].default,
input[type=submit][disabled].default,
input[type=button][disabled].default {
  opacity: 0.4;
}

/* Select2ドロップダウンの選択肢の文字サイズを小さくする */
.select2-results__option {
  font-size: 14px !important;
}

/* Select2の選択された項目の文字サイズも小さくする */
.select2-selection__rendered {
  font-size: 16px !important;
}

/* Select2のドロップダウン全体の文字サイズ */
.select2-dropdown {
  font-size: 16px !important;
}

/* topへ戻る用 */
html {
  scroll-behavior: smooth;
}

.pagetop {
  height: 50px;
  width: 50px;
  position: fixed;
  right: 10px;
  bottom: 10px;
  background: #A9D18E;
  /* border: solid 2px #000; */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.pagetop__arrow {
  height: 16px;
  width: 16px;
  border-top: 5px solid #fff;
  border-right: 5px solid #fff;
  transform: translateY(20%) rotate(-45deg);
}


/*** メディアクエリ ***/

/* 最大幅スクリーン */
@media screen and (min-width:710px) {
  ul {
    display: flex;
    flex-wrap: wrap;
  }
  .container {
    padding: 60px 0px 30px 60px !important;
  } 
  .wrapper{
    position: relative;/*←相対位置*/
    padding-bottom: 80px;/*←footerの高さ*/
    padding-top: 0px;
    box-sizing: border-box;/*←全て含めてmin-height:100vhに*/
  }
  .sticky {
    position: relative;
    top: 0px;
  }
    .page_title {
    width: 250px;
  } 
  .card02 {
    width: 650px !important;
  }
  .card02_pop {
    width: 650px !important;
  }
  .pagetop {
    right: 30px;
    bottom: 30px;
  }
  .score_title {
    font-size: 16px;
  }
}


