/* リセットとベーススタイル */
@import url("reset.css");
@import url(https://fonts.googleapis.com/css?family=Exo:100,200,400);

/* 変数定義 */
:root {
  --color-background: #0E1122;
  --color-text: #CBCBCB;
  --color-border: #676B85;
  --color-highlight: #4381c9;
  --color-header: #282B3A;
  --color-pink: #ff9191;
  --color-blue: #91dbff;
  --color-blue2: #91ebff;
  --color-orange: #ffa591;
  --color-purple: #cb91ff;
  --color-yellow: rgb(253, 255, 130);
  --color-green: rgb(180, 255, 130);
  --color-gray: #777;
}

/* 基本スタイル */
body {
  font-family: 'メイリオ', 'Meiryo', sans-serif;
  font-size: 14px;
  color: var(--color-text);
  background-color: var(--color-background);
  overflow-y: hidden;
}
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

#wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
}
#wrapper {
  /* padding: 10px; */
}

main {
  float: right;
  width: calc(100% - 260px);
  margin: 10px;
  /* min-height: calc(100vh - 20px); */
}
/**/
#index table,#index th,#index td {
  border: none;
}
#index th {
  font-weight: 400;
}
#index th label {
  /* background: #164551; */
  text-align: left;
  color: #fff;
  font-size: 12px;
  padding: 5px 10px;
  position: relative;
  /* top: -2px; */
  width: 100%;
  display: inline-block;
  border-radius: 3px;
  height: 38px;
  line-height: 32px;
}
#index td {
  text-align: left;
}
#index table {
    width: 90%;
    margin: 0 5%;
}
#index #panel {
  font-family: 'Exo', sans-serif;
  width: 400px;
  height: auto;
  background-color: #0E1122;
  padding: 20px;
  /* border: solid 1px #ccc; */
  box-shadow: 0 0 8px #7ebdcf, 0 0 8px #7ebdcf inset;
  position: fixed;
  top: calc(50% - 135px);
  left: calc(50% - 200px);
  /* box-shadow: 0px 5px 10px #ccc; */
  border: solid 1px #83bbcb;
  border-radius: 3px;
}
#index #indexLogo {
  margin: 0 auto 10px;
  width: 70%;
}
#index input[type=text], #index input[type=password] {
  width: 100%;
  height: 38px;
  width: 200px;
  border-width: 0px;
  border-style: None;
  background-color: var(--theme-dark-color1);
  color: #fff;
  outline: none;
  padding: 0 5px;
  color-scheme: dark;
  border: solid 1px #277c95;
  border-radius: 4px;
  font-size: 18px;
  font-family: 'Exo', sans-serif;
  /* transition: box-shadow 0.5s ease; */
}
#index input[type=text]:focus, #index input[type=password]:focus {
  border: solid 1px #83bbcb;
  box-shadow: 0 0 8px #7ebdcf, 0 0 8px #7ebdcf inset;
  font-size: 18px;
  font-family: 'Exo', sans-serif;
  outline: none;
}
#index input[type=submit] {
  font-family: 'Exo', sans-serif;
  width: 200px;
  height: 40px;
  text-align: center;
  font-weight: bold;
  margin: 5px;
  border: 1px solid #191f61;
  border-radius: 4px;
  cursor: pointer;
  border-radius: 2px;
  font-family: 'Exo', sans-serif;
  font-size: 16px;
  margin-top: 10px;
  transition: all 0.5s ease;
}
#index input[type=submit]:hover {
  color: #fff;
  text-shadow: 0 0 5px #fff;
  letter-spacing: 3px;
  text-indent: 3px;
  border: 1px solid #fff;
  box-shadow:
    inset 0 0 5px #fff,
    inset 20px 0 40px #f0f,
    inset -20px 0 40px #0ff,
    inset 20px 0 200px #f0f,
    inset -20px 0 200px #0ff,
    0 0 20px #fff,
    -10px 0 40px #f0f,
    10px 0 40px #0ff;
}

input:-webkit-autofill,
input:-webkit-autofill:focus {
  font-size: 18px;
  transition: background-color 0s 600000s, color 0s 600000s;
}
input:autofill,
input:autofill:focus {
  font-size: 18px;
  transition: background-color 0s 600000s, color 0s 600000s;
}
textarea{
  border: 1px solid #277c95;
  border-radius: 4px;
  background: #141523;
}
::-webkit-input-placeholder {
  /* color: rgba(255, 255, 255, 0.6); */
}

::-moz-input-placeholder {
  /* color: rgba(255, 255, 255, 0.6); */
}
#index #loginbtn {
  width: 50%;
  margin: 10px 25%;
  border: none;
  color: #fff;
  background: #1c2d43;
  line-height: 35px;
  height: 40px;
  border-radius: 100vh;
}
/* ナビゲーションスタイル */
aside {
  float: left;  
  width: 240px;
  height: 100vh;
  position: fixed;
  background: rgb(255 255 255 / 5%);
  background: -moz-linear-gradient(top, #1D1D26, #312F4C);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

#navi .headLogo {
  padding: 10px;
  font-size: 17px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 0 5px #00fffb;
  font-family: "M PLUS Rounded 1c";
  text-align: center;
}

#navi .headLogo img {
  width: 60%;
  display: inline;
}

#navi .headLogo span {
  font-size: 10px;
  padding-left: 4px;
}

#navi ul {
  margin-top: 40px;
}

#navi ul li {
  width: 100%;
  padding: 10px;
  border-bottom: 1px solid #676B85;
}

#navi li {
  position: relative;
}

#navi ul li a {
  color: var(--color-text);
  text-decoration: none;
}

#navi ul li i {
  width: 30px;
  text-align: center;
}

#navi ul li.current {
  background-color: #0E1122;
  background: #282B3A;
  border-left: solid 5px #ffffff;
}

#navi ul li.current a {
  color: #fff;
  font-weight: bold;
  text-shadow: 0px 1px 0px #282B3A;
}

/* バッジ機能 */
.chat-badge {
  position: absolute;
  top: -8px;
  right: 0px;
  background-color: #ff4444;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  min-width: 20px;
  text-align: center;
}


.message-badge {
  display: inline-block;
  background-color: #ff4444;
  color: white;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  margin-left: 5px;
  vertical-align: middle;
}

td .fas.fa-comment {
  position: relative;
  vertical-align: middle;
}


/* ログアウトボタン */
#logoutBtn {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 60px;
  background-color: #fff;
  color: #333;
  border-radius: 5px;
  box-shadow: 0 0 5px #666;
  padding: 5px 0 0;
  text-align: center;
  display: block;
  transition: all 0.5s;
  text-decoration: none;
}

#logoutBtn img {
  width: 30px;
  margin: 0 auto;
}

#logoutBtn:hover {
  background: #d1ffc6;
  text-decoration: none;
  color: #111;
}

#logoutBtn span {
  font-size: 10px;
  font-weight: bold;
}

/* ヘッダー情報 */
.headinfo {
  background: #0e1122;
  z-index: 1;
}
.title {
  font-size: 18px;
  border-left: solid 5px #cccccc;
  color: var(--color-text);
  line-height: 30px;
  padding: 8px 5px 5px 10px;
  margin: 13px 0;
  font-weight: 400;
}

.title i {
  margin-right: 5px;
}

/* テーブルスタイル */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background-color: var(--color-background);
}

th, td {
  border: solid 1px var(--color-border);
  padding: 8px;
  line-height: 20px;
  text-align: left;
  vertical-align: top;
}

thead {
  background: var(--color-header);
  color: #fff;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

/* ページネーション */
.pager {
  margin-top: 10px;
}

.pager ul {
  display: flex;
  justify-content: center;
  list-style-type: none;
  padding: 0;
}

.pager ul li {
  margin: 0 5px;
}

.pager ul li a {
  display: block;
  padding: 5px 10px;
  background-color: var(--color-header);
  color: #fff;
  text-decoration: none;
}

.pager ul li a.current {
  background-color: var(--color-highlight);
}

/* ボタンスタイル */
.btn {
  display: inline-block;
  padding: 5px 10px;
  margin: 5px;
  background-color: var(--color-header);
  color: #fff;
  border: solid 1px var(--color-border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.5s ease;
  font-size: 16px;
}

.btn:hover {
  border: solid 1px #83bbcb;
  box-shadow: 0 0 8px #7ebdcf, 0 0 8px #7ebdcf inset;
  text-shadow: 0 0 5px #00fffb;
  color: #fff;
}
.btn.configSaveBtn {
  /* background: #0e1122; */
  border: solid 1px #279552;
  font-size: 20px;
  line-height: 40px;
  height: 39px;
  padding: 0 10px;
  margin: 10px 0;
  letter-spacing: 10px;
  text-indent: 10px;
}
.btn.configSaveBtn:hover {
  border: solid 1px #279552;
  box-shadow: 0 0 8px #279552, 0 0 8px #279552 inset;
  text-shadow: 0 0 5px #279552;
}
/* フォーム要素 */
input, select, textarea {
  color-scheme: dark;
  background: #141523;
  border: solid 1px #277c95;
  border-radius: 4px;
  padding: 5px;
  transition: all 0.5s ease;
}
textarea {
  width: 100%;
  height: 300px;
}
input[type="text"]:hover,
input[type="number"]:hover,
input[type="tel"]:hover,
select:hover,
textarea:hover {
  border: solid 1px #83bbcb;
  box-shadow: 0 0 8px #7ebdcf, 0 0 8px #7ebdcf inset;
  text-shadow: 0 0 5px #00fffb;
  color: #fff;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  border: solid 1px #83bbcb;
  box-shadow: 0 0 8px #7ebdcf, 0 0 8px #7ebdcf inset;
  text-shadow: 0 0 5px #00fffb;
  color: #fff;
  outline: none;
}

/* 設定ページ専用スタイル */
.subTitle {
  font-weight: bold;
  margin: 10px 0;
  font-size: 16px;
  border-bottom: solid 1px var(--color-header);
}


.caption span {
  /* font-size: 12px; */
  color: #fc2e2e;
}

.caption p{
  font-size: 16px;
}


.configContents {
  max-width: 1100px;
  margin: 10px;
}

#menuLists {
  list-style-type: none;
  padding: 0;
}

#menuLists li {
  margin-bottom: 10px;
  padding: 10px;
  border-bottom: solid 1px #282b3a;
  width: 500px;
}

/* menuRowで左右のコンテンツを整列 */
.menuRow {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
/* menuTitleの幅を固定 */
.menuTitle {
  width: 200px; /* または必要な幅 */
  flex-shrink: 0; /* 幅を固定 */
}

/* menuContentsの幅を調整 */
.menuContents {
  flex: 1; /* 残りのスペースを全て使用 */
}

/* テキストエリアのスタイルを調整 */
.menuContents textarea {
  width: 100%;
  height: 100px;
  padding: 10px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

/* URLフィールドのコンテナ */
.menuUrlRow {
  width: 100%;
  margin-top: 10px;
}

/* URLフィールドの入力欄 */
.menuUrl {
  width: 100%;
  box-sizing: border-box;
}




#enqueteLists {
  list-style-type: none;
  padding: 0;
}

#enqueteLists li {
  margin-bottom: 10px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: top;
  border-bottom: solid 1px #282b3a;
  width: calc(100% / 2);
  flex-wrap: wrap;
}

#enqueteLists li .enqueteContents {
  width: 100%;
}

#enqueteLists li .enqueteContents textarea {
  height: 100px;
  width: 100%;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

#enqueteLists li .enqueteContents .enqueteUrl {
  width: 264px;
}
#enqueteLists li .enqueteTitle {
  width: 100%;
}
#enqueteLists li .enqueteTitle input {
  width: 100%;
}
#enqueteLists li .enqueteTitle select {
  margin: 5px;
}
#enqueteLists li .remove-option {
  background: #1a1d2d;
  border: solid 1px #ff4366;
  /* border: none; */
  color: #fff;
  margin-top: 5px;
  border-radius: 3px;
  padding: 5px;
}
#enqueteLists li .add-option {
  background: #1a1d2d;
  border: solid 1px #444653;
  /* border: none; */
  color: #fff;
  margin-top: 5px;
  border-radius: 3px;
}
#enqueteLists li .enqueteTitle input.enqueteRequired {
  width: 20px;
}
.url-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.copy-btn {
  padding: 5px 15px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.copy-btn:hover {
  background-color: #45a049;
}

.copy-btn.copied {
  background-color: #2196F3;
}
/* チャット関連スタイル */
/* chat */
#chatListWrapper {
  padding: 10px;
  
}
#chatList {
  overflow: auto;
  display: flex;
  padding: 10px;
  width: calc(100% - 10px);
  /* height: calc(100% - 70px); */
}
#chatList li {
  width: 100%;
}
#chatList li.shop {
}
#chatList li.user {
}
.chatBalloon {
  border-radius: 5px;
  padding: 5px;
  margin: 5px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-all;
  max-width: 80%;
}
.chatBalloon {
  color: #fff;
}
.user .chatBalloon {
  float: right;
}
.user .chatBalloon {
  background: #182533;
  color: #fff;
}
.chatBalloon span {
  display: inline-block;
  font-size: 12px;
  float: right;
  position: relative;
  bottom: -6px;
  right: -2px;
}
.user .chatBalloon span {
  color: #6b7989;
}
.shop .chatBalloon {
}
.shop .chatBalloon {
  background: #2B5278;
}
.shop .chatBalloon span {
  color: #7DA8D3;
}
.chatText {

}
.chatImg {
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
}
.chatTime {

}
#messageSender {
  height: 85px;
  position: fixed;
  bottom: 0;
  padding-bottom: 10px;
  width: 100%;
  background: #0e1122;
  z-index: 9999;
}
#messageSender ul {
  display: flex;
  width: 100%;
}
#messageSender li:nth-child(1){
  width: 85%;
}
#messageSender li:nth-child(2){
  width: 15%;
}
#messageSender textarea {
  width: 100%;
  height: 80%;
  box-sizing: border-box;
}
#messageSender #messageSendBtn {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  /* height: 100%; */
  font-size: 30px;
  position: relative;
  bottom: 0;
  height: 30px;
  left: 0px;
  color: #fff;
}
#messageSender #messageSendBtn i:hover {
  text-shadow: 0 0 5px #00fffb;
  cursor: pointer;
  transition: all 0.5s;
}
.imageUploadLabel {
  cursor: pointer;
  padding: 10px;
  color: #fff;
  font-size: 40px;
}

.imageUploadLabel:hover {
  color: #fff;
}
.uploadPreview {
  position: absolute;
  bottom: 91px;
  left: 0;
  right: 0;
  padding: 10px;
  display: none;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.uploadPreview img {
  max-height: 100px;
  display: block;
  margin: 0 auto;
}

.uploadPreview .cancelUpload {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 30px;
  cursor: pointer;
  color: #111;
}
.btnGroup {
  position: relative;
}
/* chat.php */
.userName {
  font-size: 18px;
  font-weight: bold;
}
/* messageEdit */
#messageEdit table,#messageEdit table td,#messageEdit table th {
  border: none;
}
#messageEdit textarea {
  width: calc(100% - 10px);
  height: 300px;
  box-sizing: border-box;
}
#messageEdit input[type="submit"] {
  background: #fff;
  color: #0E1122;
}
.dropify-wrapper {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.dropify-wrapper .dropify-message {
  width: 100%;
}
.dropify-wrapper .dropify-preview {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.dropify-wrapper .dropify-render {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.dropify-wrapper .dropify-render img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.dropify-wrapper .dropify-infos {
  background: rgba(0,0,0,0.7);
}

#userList td{
  cursor: default;
}

#userList th:nth-child(1) {
  width: 50px;
}
#userList th:nth-child(2) {
  width: 150px;
}
#userList th:nth-child(3) {
  width: 150px;
}
#userList th:nth-child(4) {
  width: 250px;
}
#userList td:nth-child(4):hover,#userList td:nth-child(5):hover {
  text-decoration: underline;
}
#userList:hover td:nth-child(4)::after {
  content: '編集';
  position: absolute;
  font-size: 12px;
  background: #333;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  right: 0;
  top: -20px;
}

#userList td:nth-child(4) {
  background-color: white;
  color: #0e1122;
  cursor: pointer;
}
#userList td:nth-child(5) {
  background-color: white;
  color: #0e1122;
  cursor: pointer;
}

#messageList th:nth-child(1) {
  width: 80px;
}
#messageList th:nth-child(2) {
  width: 100px;
}
#messageList th:nth-child(3) {
  width: 150px;
}
#messageList th:nth-child(4) {
  width: 200px;
}
#messageList th:nth-child(5) {
  width: 60px;
}
#messageList th:nth-child(6) {
  width: 110px;
}
#messageList th:nth-child(7) {
  width: 100px;
}
#chatMessageList th:nth-child(1) {
  width: 30px;
}
/* レスポンシブデザイン */
@media (max-width: 768px) {
  #index #panel {
    box-shadow: none;
    border: 0;
  }
  #wrapper {
    padding: 5px;
    height: 100dvh;
  }

  main {
    width: calc(100% - 20px);
    float: none;
  }

  aside {
    position: fixed;
    top: 0;
    left: -240px;
    transition: 0.3s;
    z-index: 1000;
    height: 100dvh;
  }

  aside.active {
    left: 0;
  }

  .title {
    font-size: 16px;
  }

  table {
    font-size: 12px;
  }

  .btn {
    padding: 3px 6px;
    font-size: 12px;
  }

  #menuBtn {
    display: block;
    position: fixed;
    width: 50px;
    height: 50px;
    top: 0;
    right: 0;
    z-index: 9999;
  }

  #menuBtn span,
  #menuBtn span:before,
  #menuBtn span:after {
    display: inline-block;
    width: 30px;
    height: 3px;
    background-color: var(--color-text);
    position: absolute;
    transition: 0.3s;
  }

  #menuBtn span {
    top: 23px;
    left: 10px;
  }

  #menuBtn span:before,
  #menuBtn span:after {
    content: '';
    left: 0;
  }

  #menuBtn span:before {
    top: -8px;
  }

  #menuBtn span:after {
    bottom: -8px;
  }

  #menuBtn.active span {
    background: transparent;
  }

  #menuBtn.active span:before {
    top: 0;
    transform: rotate(45deg);
  }

  #menuBtn.active span:after {
    bottom: 0;
    transform: rotate(-45deg);
  }
  #menuLists li {
    flex-wrap: wrap;
  }
  #menuLists li .menuTitle {
    width: 100%;
  }
  #menuLists li .menuTitle input {
    width: 100%;
  }
  #menuLists li .menuContents {
    margin: 5px 0;
    width: 100%;
  }
  #menuLists li .menuContents textarea {
    width: 100%;
  }
  #enqueteLists li {
    flex-wrap: wrap;
    width: 100%;
  }
  #enqueteLists li .enqueteContents {
    margin: 5px 0;
    width: 100%;
  }
  #enqueteLists li .enqueteContents textarea {
    width: 100%;
  }
  .btn.configSaveBtn {
    margin: 30px auto;
    display: block;
  }
}

/* ユーティリティクラス */
.clear::before,
.clear::after {
  content: '';
  display: block;
  clear: both;
}

.w100 {
  width: 100%;
}

.tac {
  text-align: center;
}

.fontL {
  font-size: 20px;
}

.fontXL {
  font-size: 24px;
}

.bgYellow {
  background: var(--color-yellow) !important;
}

.bgBlue {
  background: var(--color-blue2) !important;
}

.dosp {
  display: none;
}

@media (max-width: 768px) {
  .dosp {
    display: block;
  }
}
/* テーブルスタイル */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.table-wrapper table {
  /* table-layout: fixed; */
}

.table-wrapper th,
.table-wrapper td {
  overflow: hidden;
  text-overflow: ellipsis;
  /* white-space: nowrap; */
  /* width: 200px; */
}
@media (max-width: 1000px) {
  .table-wrapper {
    max-width: 100%;
  }
}
.table-wrapper .visible {
  text-overflow: inherit;
  white-space: inherit;
}
.chatContents {
  position: fixed;
  top: 0;
  height: calc(100dvh - 90px);
  overflow: auto;
}
.modalContents .table-wrapper td {
  /* width: 100%; */
}
.answerViewModal {

}
.answer-block ul {
  display: block;
  margin: 10px 0;
}
.answer-block ul li {
  border-bottom: solid 1px #6b7989;
  padding: 5px;
}
.answer-block ul li:last-child {
  border-bottom: none;
}

.answer-block ul li strong{
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
}




/* QRコード用のモーダルスタイル */
#qrModal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
}

.qrModal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  text-align: center;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#qrCodeContainer {
  margin: 20px 0;
  text-align: center;
}

#qrCodeContainer img {
  max-width: 300px;
  height: auto;
}

.telegram-url-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qr-btn {
  background-color: #4CAF50;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.qr-btn:hover {
  background-color: #45a049;
}

@media print {
  body * {
      visibility: hidden;
  }
  #qrCodeContainer, #qrCodeContainer * {
      visibility: visible;
  }
  #qrCodeContainer {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
      /* QRコードの位置調整 */
      #qrCodeContainer img {
        display: block;
        max-width: 100%;
        height: auto;
        position: relative;
        margin: 500px auto 20px;
    }
        /* タイトルテキストの位置調整 */
        #qrCodeContainer .modal-title {
          position: absolute;
          top: 20px;
          left: 0;
          width: 100%;
          text-align: center;
      }

}


.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  text-align: center;
  position: relative;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 10px;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#qrCodeContainer {
  margin: 20px 0;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

#qrCodeContainer img {
  max-width: 300px;
  height: auto;
}

.qr-btn {
  background-color: #4CAF50;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 10px;
}

.qr-btn:hover {
  background-color: #45a049;
}

@media print {
  body * {
      visibility: hidden;
  }
  #qrCodeContainer, #qrCodeContainer * {
      visibility: visible;
  }
  #qrCodeContainer {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
  }
  .modal-content {
      margin: 0;
      border: none;
  }
  #printQR {
      display: none;
  }
}

/* news.php */
.news-container {
  margin-top: 20px;
}

.news-item {
  display: flex;
  padding: 15px 15px 0 15px;
  border-bottom: 1px solid #eee;
}

.news-date {
  width: 120px;
  color: #d7d7d7;
  font-size: 18px;
}

.news-content {
  flex: 1;
}

.news-page {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 18px;
  color: white;
}

.news-description {
  color: #d7d7d7;
  margin-bottom: 20px;
}

/*====================================
  surveys.php（アンケート一覧）
====================================*/
.search-section {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.search-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

/* 検索フィールドの共通スタイル */
.search-field {
  flex: 1;
  min-width: 200px;
}

.search-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
  font-size: 14px;
}

/* セレクトボックスのスタイル */
.search-field select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

/* 検索セクションの入力フィールドのスタイル */
.search-field input[type="text"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.search-field input[type="text"]:focus {
  border-color: #4A90E2;
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* ボタン共通のスタイル */
.search-button button,
.csv-export button {
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}



.search-field select {
  /* padding: 5px 10px; */
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-left: 10px;
}



/* 検索ボタンの個別スタイル */
.search-button button {
  background-color: #4A90E2;
  color: white;
  display: flex;
  align-items: center;
  gap: 5px;
}

.search-button button:hover {
  background-color: #357ABD;
}

/* クリアボタンの個別スタイル */
.clear-search button {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.clear-search button:hover {
  background-color: #5a6268;
}

/* 既存のボタンとの間隔調整 */
.clear-search {
  margin: 0 10px;
}



/* CSV出力ボタンの個別スタイル */
.csv-export button {
  background-color: #28a745;
  color: white;
}

.csv-export button:hover {
  background-color: #218838;
}

/* アイコンのスタイル */
.csv-export button i {
  margin-right: 6px;
}







/* コンテナ全体のスタイル */
.surveys-container {
  margin-top: 20px;
}

.content-wrapper {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  min-height: 500px;
}

/* 左カラム：ユーザーリスト */
.user-list {
  width: 30%;
  border-right: 1px solid #e0e0e0;
}

.user-items {
  overflow-y: auto;
}

.user-item {
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  transition: background-color 0.2s;
}

.user-item:hover {
  background-color: rgba(51, 122, 183, 0.1);
}

.user-item.active {
  background-color: #337ab7;
  color: white;
}
.user-item.active .user-name {
  color: #cde8ff;
}
.user-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.date {
  font-size: 14px;
  color: #0e1122;
}

.user-name {
  font-weight: bold;
  color: #0e1122;
}

.user-item.active .date {
  color: rgba(255, 255, 255, 0.8);
}

/* 区切りの矢印 */
.divider {
  display: flex;
  align-items: center;
  padding: 0 15px;
  color: #337ab7;
  font-size: 20px;
}


/* 右カラム全体のスタイル */
.survey-list {
  width: 70%;
  padding: 20px;
  background-color: #f9f9f9;
}

/* 質問・回答アイテムのスタイル */
.qa-item {
  display: flex;
  margin-bottom: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 質問エリアのスタイル */
.question {
  width: 50%;
  padding: 15px;
  background-color: #f0f7ff;
  border-radius: 8px 0 0 8px;
}

.question h3 {
  font-size: 14px;
  color: #2c3e50;
  margin: 0;
  font-weight: normal;
}

/* 回答エリアのスタイル */
.answer {
  width: 50%;
  padding: 15px;
  background-color: #fff;
  border-radius: 0 8px 8px 0;
}

.answer p {
  font-size: 14px;
  color: #333;
  margin: 0;
  line-height: 1.6;
}

/* 自由記述の回答のスタイル */
.qa-item:last-child .answer p {
  /* white-space: pre-line; */
}


/*====================================
  manual.php（マニュアル）
====================================*/
/* マニュアルラッパーの基本スタイル */

body#manual {
  overflow-y: auto;
}


#manual_wrapper {
  background-color: #ffffff;
  color: #333333;
  /* min-height: calc(100vh - 20px); */
  padding: 20px;
  margin: -10px;
  width: calc(100% - 230px);
  position: relative;
  z-index: 1;
}

/* マニュアル全体のスタイル */
#manual_wrapper .manual-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 更新履歴のスタイル */
#manual_wrapper .version-history {
  margin-bottom: 40px;
  padding: 20px;
  border: 1px solid #cccccc;
  border-radius: 5px;
}

#manual_wrapper .history-item {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}

#manual_wrapper .history-item .date {
  min-width: 100px;
  color: #666666;
}

/* セクションのスタイル */
#manual_wrapper .manual-section {
  margin-bottom: 40px;
}

#manual_wrapper .manual-section h2 {
  font-size: 24px;
  border-bottom: 3px solid #333333;
  padding-bottom: 15px;
  margin-bottom: 40px;
  color: #333333;
}

#manual_wrapper .manual-section h3 {
  margin-bottom: 20px;
  color: #333333;
}

/* コンテンツブロックのスタイル */
#manual_wrapper .content-block {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

/* 各コンテンツブロック間の余白 */
#manual_wrapper .content-block,
#manual_wrapper .point-block,
#manual_wrapper .full-width-block,
#manual_wrapper .user-view-block {
    margin-bottom: 30px;  /* ブロック間の余白を追加 */
}

#manual_wrapper .text-content {
  flex: 1;
}

/* 小タイトルやスモール設定 */
#manual_wrapper .text-content dl,
#manual_wrapper .point-block dl,
#manual_wrapper .full-width-block dl {
  margin: 16px 0;
}

#manual_wrapper .text-content dt,
#manual_wrapper .point-block dt,
#manual_wrapper .full-width-block dt {
  font-weight: bold;
  margin-top: 16px;
  margin-bottom: 8px;
}

#manual_wrapper .text-content dd,
#manual_wrapper .point-block dd,
#manual_wrapper .full-width-block dd {
  margin-left: 24px;
  margin-bottom: 16px;
}

#manual_wrapper .text-content small,
#manual_wrapper .point-block small,
#manual_wrapper .full-width-block small {
  display: block;
  margin-top: 5px;
  color: #666;
}



#manual_wrapper .image-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#manual_wrapper .manual-image {
  max-width: 100%;
  height: auto;
  object-fit: contain; /* アスペクト比を保持 */
  max-height: 400px; /* 必要に応じて最大高さを設定 */
}

#manual_wrapper .image-note {
  text-align: center;
  font-size: 12px;
  color: #666;
  margin-top: 8px;
}


/* ポイントブロックのスタイル */
#manual_wrapper .point-block {
  margin: 20px 0;
  padding: 20px;
  background-color: #f8f9fa;
  border: 2px solid #666666;
  border-style: double;
}

/* 重要ポイント */
#manual_wrapper .point-block h4 {
  font-size: 20px;
  color: #333333;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;  /* アイコンとテキストの間隔 */
}

#manual_wrapper .point-block h4 i {
  color: #fc2e2e;  /* アイコンの色 */
}


/* 全幅ブロックのスタイル */
#manual_wrapper .full-width-block {
  margin: 30px 0;
  padding: 20px;
  border-top: 1px solid #cccccc;
  border-bottom: 1px solid #cccccc;
}

/* 補足説明 */
#manual_wrapper .full-width-block h4 {
  font-size: 20px;
  color: #333333;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

#manual_wrapper .full-width-block h4 i {
  color: #277c95;  /* アイコンの色 */
}


/* 印刷時のスタイル調整 */
@media print {
  #manual_wrapper {
    background-color: #ffffff !important;
    color: #000000 !important;
  }

  #manual_wrapper .manual-image {
    max-width: 100% !important;
    break-inside: avoid;
  }

  #manual_wrapper .point-block {
    break-inside: avoid;
    border: 2px solid #000000;
    background-color: #ffffff;
  }
}

/* モーダル関連のスタイル */
#manual_wrapper .modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
}

#manual_wrapper .modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 95vh;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  object-fit: contain; /* アスペクト比を保持 */
}

#manual_wrapper .close-modal {
  position: absolute;
  right: 20px;
  top: 20px;
  color: #ffffff;
  font-size: 30px;
  cursor: pointer;
}


#manual_wrapper .user-view-block {
  margin: 20px 0;
  padding: 20px;
  background-color: #f0f7ff; /* 薄い青系の背景色 */
  border: 2px solid #91bbff; /* 青系のボーダー */
  border-radius: 5px;
}

#manual_wrapper .user-view-block h4 {
  font-size: 20px;
  color: #333333;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}



#manual_wrapper .user-view-block .content-block {
  background-color: transparent;
  margin-bottom: 0;
}


/* point-blockと同様のdlスタイルを適用 */
#manual_wrapper .user-view-block dl {
  margin: 16px 0;
}

#manual_wrapper .user-view-block dt {
  font-weight: bold;
  margin-top: 16px;
  margin-bottom: 8px;
}

#manual_wrapper .user-view-block dd {
  margin-left: 24px;
  margin-bottom: 16px;
}

#manual_wrapper .user-view-block small {
  display: block;
  margin-top: 5px;
  color: #666;
}

/* 画像部分のスタイル調整 */
#manual_wrapper .user-view-block .image-content {
  margin-top: 15px;
  background-color: #ffffff; /* 画像部分は白背景 */
  padding: 10px;
  border-radius: 3px;
}

#manual_wrapper .attention {
  color: #fc2e2e;  /* 既存の赤色コードを使用 */
  font-weight: bold;
}

/* 目次のスタイル */
.table-of-contents {
  margin: 30px 0;
  padding: 20px;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.table-of-contents h2 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #333;
}

.toc-row {
  margin-bottom: 20px; /* 行間の余白 */
}

.toc-row:last-child {
  margin-bottom: 0;
}

.toc-content ol {
  list-style-type: none;
  padding-left: 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.toc-content li {
  flex: 1;
}

.toc-content a {
  color: #333;
  text-decoration: none;
  display: block;
  padding: 10px;
}

.toc-content a:hover {
  color: #277c95;
  text-decoration: underline;
}

/* top.php 補足説明 20250130追加*/
.guide-text {
  margin-bottom: 20px;
}