/* 基本リセット */
html, body {
  height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f4f4;
}

body {
  display: flex;
  flex-direction: column;
}

ul , li {
  list-style:none;
}

/* Aタグの下線を消す */
a{
  text-decoration: none;
}


/* ヘッダー */
header {
  background-color: #3f51b5;
  color: white;
  padding: 0rem;
  margin-bottom: 10px;
}

/* ヘッダー内のタイトルとメニュー */
.header-container {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* PCメニュー：右端に横並び */
.pc-menu {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
}


h1 {
  font-size: 1.5rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.sys-btn {
  background-color: #5c6bc0;
  color: white;
  border: none;
  padding: 0.5rem 0.6rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.sys-btn:not(:disabled):hover {
  background-color: #7986cb;
}

.sys-sbtn {
  background-color: #5c6bc0;
  color: white;
  border: none;
  padding: 0.1rem 0.2rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.sys-sbtn:not(:disabled):hover {
  background-color: #7986cb;
}

.breadcrumb {
  margin: 3px 0 0 0;
  padding: 0;
  background-color: #ffc;   /* 白背景で独立 */
  font-size: 0.9rem;
  color: #333;
}

.breadcrumb a {
  text-decoration: none;
  color: #3f51b5;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

button:disabled {
  background-color: #ccc;
}


/* メイン */
main {
  flex: 1;
  overflow: hidden; /* はみ出し防止 */
}

.memo-list select{
  padding: 0.3em;
}

select{
  padding: 0em;
  font-size: 1em;
  margin: 3px;
}

select::picker(select) {
  appearance: base-select;
}

input:read-only{
  background-color: #CCFFCC;
}

.ai-info{
  background-color: #FFFFCC;
}

/* スマホメニューアイコン（ハンバーガー） */
.menu-icon {
  width: 28px;
  height: 22px;
  position: relative;
  cursor: pointer;
  margin-left: auto;
  display: none; /* モバイルのみ表示 */
}

.menu-icon span,
.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
  transition: 0.3s;
}

.menu-icon span {
  top: 50%;
  transform: translateY(-50%);
}

.menu-icon::before {
  top: 0;
}

.menu-icon::after {
  bottom: 0;
}

/* サブメニュー表示 */
.pull-menu:hover .sub-menu {
  display: block;
  background-color: #3f51b5;
  margin :0;
  padding :0;
}

/* サブメニュー */
.sub-menu {
  display: none;
  position: absolute;
  right: 10px;
  min-width: 130px;
}
.sub-menu button {
  position: relative;
  min-width: 130px;
  margin-top:5px;
}

li.nor {
  list-style-type: disc;  /* 「・」表示 */
}

/* SP切り替え */
@media (max-width: 767px) {
  .pc-menu {
    display: none;
  }

  .menu-icon {
    display: block;
  }
}

/* スマホ用ドロップダウンメニュー */
.sp-menu {
  display: none;
  flex-direction: column;
  background-color: #3949ab;
  padding: 0.5rem 1rem;
}

.sp-menu.show {
  display: flex;
}

.sp-menu button {
  margin: 0.3rem 0;
  padding: 0.6rem;
  font-size: 1rem;
  background-color: #5c6bc0;
  color: white;
  border: none;
  border-radius: 5px;
  white-space: nowrap;
}

.sp-menu button:disabled {
  background-color: #ccc;
}

/* 共通オーバーレイ */
.comm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* 半透明の黒 */
  z-index: 999;
}

/* 共通パネル */
.comm-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  max-height: 80%;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 30px rgba(0,0,0,0.3);
  overflow-y: auto;
  z-index: 1000;
}

/* 通信中 */
.comm-access {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  color: white;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}
  
.error{
   text-align:center; 
}

h2.warning{
  color:red;
}
