﻿/* app.css */
button {
    font-family: inherit;
}

.gau-nav-header h1 {
    line-height: 2;
    padding-left: 12px;
    font-size: 20px;
}
.gau-nav-header h1::before {
    display: inline-block;
    content: '';
    width: 40px;
    height: 40px;
    margin-right: 1em;
    background-image: url('../../../../../common/aic/html/img/header_icon.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.ol-rotate {
    left:2.5em;
    right: unset;
}
input[name=bgopa_nav] {
    width: 100%;
    height: 100%;
}

/* mode */
.app-mode-select {
	display: flex;
    font-size: large;
    background-color:#bdd9c0;
}
input[type="radio"]+label::before {
    font-family: "Font Awesome 5 Free";
    content: '\f111';
    font-size: 20px;
    font-weight: 900;
    margin-right: 4px;
    color: #aaa;
}
input[type="radio"]:checked+label::before {
    color: #53c59c;
}
.app-mode-select input[type="radio"] {
	display:none;
}
.app-mode-select > label:hover {
	background-color: rgba(0, 0, 120, 0.1);
	transition-duration: 0.5s;
}
.app-mode-select > label {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    color: #888;
    padding: 0.2em 0.6em;
    height: fit-content;
    width: 50%;
    box-sizing: border-box;
    line-height: 28px;
}
.app-mode-select > input[type="radio"]:checked+label {
    color: #389f6a;
    background-color: white;
    font-weight: bold;
}
/* effect */

.slidein {
	opacity: 0;
	transform: translateX(40px);
	transition: transform 1s ease;
  }
  .slidein-active {
	/*opacity: 1;*/
	transform: translateX(0);
	animation: fadeIn 0.8s ease-in-out forwards;
}
@keyframes fadeIn {
	from {
	  opacity: 0;
	}
	to {
	  opacity: 1;
	}
  }


/* main contents */

.app-main-contents {
	margin:0.5em;
}
.app-main-contents input[type="radio"] {
	display:none;
}
.app-main-contents label:hover {
	background-color: rgba(0, 0, 120, 0.1);
	transition-duration: 0.5s;
}
.app-main-contents input[type="radio"]:checked+label {
	color: #389f6a; /* メインカラーと統一 */
	background-color:#fcfcfc;
	font-weight:bolder;
}
.app-main-contents input[type="radio"]+label::before {
	content:'';
}
.app-main-contents > input[type="radio"]:checked+label::before {
	content:'';
}

.app-main-contents h4 {
    margin-top: 0.8em;
    font-size: 18px;
    text-align: center;
    color: #fff;
    line-height: 2.6;
    background-color: #6bba59;
    border-radius: 12px 12px 0 0;
}

.app-main-btn {
    cursor: pointer;
    background-color: #28734e;
    color: white;
    border-radius: 12px;
    /* box-shadow: 0 2px 3px #ccc; */
    margin: 1em;
    padding: 12px 18px;
}

/* main search*/
#app_main_search {
	display:flex;
	flex-wrap: wrap;
    margin: 0.5em;
}
#app_main_search label {
    display: flex;
    width: 100%;
    padding: 3px;
}
#app_main_search span {
    width: 30%;
    line-height: 32px;
    padding-right: 6px;
    text-align: right;
    font-size: 14px;
}
#app_main_search select {
	padding: 4px;
}

#freeSearchBox {
    margin: 0.5em;
    margin-top: 1em;
}
#freeSearchBox p {
    font-size: 14px;
    display: inline;
    margin: 3px;
}
input#freeQ {
    padding: 8px;
    width: 178px;
    display: inline;
    margin-left: 0px;
    color: blue;
}
.sugRow {
    border: 1px solid white;
    background: #e8f7dd;
}


/* filter */
#app_search_mode label {
    line-height: 2.5em;
}
#app_filter_list {
    height:auto;
}
#app_filter_list li {
    height:auto;
    color:#777;  
    padding-bottom: 1em;  
}
#app_filter_list label {
        color:#777;

}
input[type="checkbox"]:checked+label::before {
    color: #4487d4;
}
input[type="checkbox"]+label::before {
    font-family: "Font Awesome 5 Free";
    content: '\f058';
    font-size: 18px;
    font-weight: 900;
    margin-right: 4px;
    color: #aaa;
}

#app_filter_list select {
    color:#777;
    
}
#app_filter_list input[type="checkbox"] {
    display: inline-block;
    margin: 10px;
    color:#777;
    
}
#app_filter_list input[type="range"] {
    color:#777;
    
}
#app_filter_list input[type="text"] {
    color:#777;
    
}
#app_filter_list div {
    display: flex;
    justify-content: space-between;
    padding: 0px;
    width: 100%;
    margin: 2px;
    margin-top: 5px;
}
#crop_input {
    padding: 6px;
    width: 144px;
}
#clear_crop_input {
   background-color: #6bba59;
   color: white;
    width: 66px;
    border-radius: 4px;
    font-size: smaller;
}

/* 入力チェックボックスは隠す */
#app_filter_list input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}

/* アイコン共通スタイル */
#app_filter_list label {
  position: relative;
  cursor: pointer;
  padding-left: 26px; /* アイコン分の余白 */
  gap: 0.3em;
  font-weight: 800;
  font-size: 16px;

}

/* デフォルト */
#app_filter_list input[type="checkbox"] + span::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 400; 
  content: "\f111"; 
  position: absolute;
  left: 0;
  font-size: 20px;
  color: #6bba59;
  transition: color 0.2s ease;
}

/* チェック時 */
#app_filter_list input[type="checkbox"]:checked + span::before {
  font-weight: 900; 
  content: "\f058"; 
  color: #6bba59; 
}

/* チェックされたら li 背景を変える */
#app_filter_list li:has(input[type="checkbox"]:checked) {
  background-color: #F7F3EB;
}

.app-filter-actions {
    position: absolute;
    bottom: 0;
    width: 100%;
}
#btn_search {
    padding: 4px 36px;
}
#btn_search_clear {
    border: 1px solid blue;
}
#search_count {
    font-size: small;
}
#search_status {
    font-size: small;
}
#search_limit {
    display:none;
}
/* ===== Filter layout (bottom fixed actions + scroll list) ===== */

/* サイドパネル全体を「縦Flex」にして、下にアクションを固定する */
.gau-nav-side[data-gau-val="filter"]{
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* 下部固定エリアとスクロールを分離 */
}

/* 見出し/モード選択は上に固定（通常フローのまま） */
.gau-nav-side[data-gau-val="filter"] > h3{
  flex: 0 0 auto;
  margin: 0;
}
#app_search_mode{
  flex: 0 0 auto;
}

/* 条件リストは「ここだけ」スクロール */
#app_filter_list{
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 10px; /* リスト末尾の余白 */
  height: auto; /* 既存上書き */
}
#app_filter_list::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}
/* 下部アクションは常に下（リストはその上でスクロール） */
.app-filter-actions {
    flex: 0 0 auto;
    position: relative;
    bottom: auto;
    width: 100%;
    background: #efe9c5;
    border-top: 1px solid rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
/* 検索実行ボタン */
#btn_search {
    width: 160px;
    margin: auto;
    margin-top: 2em;
    margin-right: 0;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    border-radius: 6px;
    background: #28734e;
}
/* クリアボタン */
#btn_search_clear {
    margin-right: 2.5em;
    align-self: flex-end;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.25);
    height: 45px;
}
/* 件数/ステータス：小さく下部に */
.app-filter-actions div{
  font-size: 12px;
  line-height: 1.2;
  color: #666;
}
.app-filter-actions div:nth-of-type(1){
  display: flex;
  gap: 4px;
}
#search_count{
  font-size: 12px; /* 既存上書き */
  padding:0.5em;
}
select#search_result_select {
    margin: auto;
}
#search_status {
    font-size: 15px;
    min-height: 1.2em;
    opacity: 0.9;
    line-height: 1.2;
    text-align: left;
    padding: 1em;
    color: #245C35;
    background-color: #fcfcfc;
    margin: 0.8em;
    border-radius: 8px;
}
/* search_limit は非表示のままでOK（既存の display:none を維持） */



/* legend */
.leg-cont dd {
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.leg-cont dt {
    width: 175px;
    text-align: left;
    line-height: 1.2;
    padding: 10px 0 6px 12px;
}
.leg-cont p {
    line-height: 1.2;
    text-align: left;
    padding: 1em;
    color: #245C35;
    background-color: #efe9c5;
    margin: 0.8em;
    border-radius: 8px;
}
.leg-future-0 {
    background-color: blue;
}
.leg-future-1 {
    background-color:rgb(208 208 208);
}
.leg-matching-0 {
    background-color: red;
}
.leg-matching-1 {
    background-color:rgb(255 216 216);
}
.leg-matching-2 {
    background-color:rgb(112 48 160);
}

/* app-modal */

      .app-modal {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        position: absolute;
        z-index: 10000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .app-modal * {
        font-size: 1em;
        line-height: 1.2em;
        color: #333;
      }
      .app-modal.show {
        opacity: 1;
        visibility: visible;
      }
      .app-modal-container {
        -webkit-overflow-scrolling: touch;
        position: relative;
        overflow-y: auto;
        background-color: white;
        width: 90%;
        max-width: 600px;
        margin: auto;
        max-height: calc(100% - 40px);
        box-shadow: 0px 0px 10px 4px rgba(0, 0, 0, 0.2);
        text-align: center;
        border-radius: 12px 12px 0 0;
      }
      .app-modal-container h2 {
        color: white;
        padding: 15px;
        border-bottom: 1px solid #ccc;
        background-color: #389f6a;
      }
      .app-modal-content h3 {
        padding: 2em 0.5em 0.5em;
        color: #389f6a;
      }
      .app-modal-content ul {
        text-align: left;
        padding: 6px;
        margin: 1em 2em 0 2em;
        border: 1px solid darkgreen;
      }
      .app-modal-content li {
        list-style-type: decimal;
        margin-left: 28px;
      }
      .app-modal-content p {
        font-size: 0.95rem;
        margin-top: 1em;
        padding: 1.2em;
      }
      .app-modal-btncontainer {
        display: flex;
        justify-content: center;
        padding: 0 0 3em 0;
      }
      .app-modal-btncontainer .button {
        padding: 10px 20px;
        margin: 10px 5px 0 5px;
        font-size: 1rem;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        background-color: #389f6a;
        color: white;
      }
