@charset "UTF-8";

/* --------------------------
-----------------------------
panel-block
-----------------------------
----------------------------- */

/* --------------------------
-----------------------------
common
-----------------------------
----------------------------- */

.btn {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  cursor: pointer;
  background-color: #333;
  border: none;
  color: #fff;
  font-weight: bold;
  border-radius: 4px;
}

/* --- 操作パネル（フローティングメニュー） --- */
.panel-block {
  font-family:
    "Noto Sans JP", Arial, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro",
    "メイリオ", Meiryo, "ＭＳ Ｐゴシック", sans-serif;
  position: fixed;
  top: 53%;
  left: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  transform: translateY(-50%) translateX(calc(-100% + 70px));
  /* 隠し状態 */
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  width: 90%;
}

/* --- ボタンを縦並びにするスタイル --- */
.panel-block > .btn-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* --- 新しいコピーボタンのデザイン --- */
#quick-copy-btn {
  position: relative;
  background: #28a745;
  color: #fff;
  padding: 15px 8px;
  cursor: pointer;
  writing-mode: vertical-rl;
  border: none;
  border-radius: 0 12px 12px 0;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  transition: background 0.2s;
}

/* 開いたとき */
.panel-block.is-open {
  transform: translateY(-50%) translateX(0);
}

/* 取っ手 */
.panel-block > .btn-wrap .menu-btn {
  position: relative;
  background: #333;
  padding: 30px;
  cursor: pointer;
  writing-mode: vertical-rl;
  border: none;
  border-radius: 0 12px 12px 0;
  font-size: 0;
}

.panel-block > .btn-wrap .menu-btn::before {
  content: "";
  position: absolute;
  background-image: url(/template11/panel/img/custom.svg);
  background-repeat: no-repeat;
  background-size: 24px auto;
  width: 24px;
  height: 24px;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}

/* 本体 */
.menu-block {
  width: fit-content;
  max-height: 90vh;
  background: #fff;
  border: 2px solid #333;
  border-left: none;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  width: 80%;
}

.menu-block .title-wrap {
  font-size: 14px;
  margin: 0 0 15px;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
  font-weight: bold;
}

.panel-block .pattern-wrap .color-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* .panel-block .footer-btn-wrap,
.panel-block .copy-wrap, */
.panel-block .pattern-wrap.color-wrap .main-color-wrap,
.panel-block .pattern-wrap.color-wrap .sub-color-wrap,
.panel-block .pattern-wrap.color-wrap .bg-color-wrap,
.panel-block .pattern-wrap.font-wrap {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 20px;
  padding: 5px 0;
  display: none;
}

.panel-block .pattern-wrap.color-wrap .main-color-wrap label,
.panel-block .pattern-wrap.color-wrap .sub-color-wrap label,
.panel-block .pattern-wrap.color-wrap .bg-color-wrap label,
.panel-block .pattern-wrap.font-wrap label {
  width: 83px;
  display: block;
}

.panel-block .pattern-wrap.color-wrap .main-color-wrap input,
.panel-block .pattern-wrap.color-wrap .sub-color-wrap input,
.panel-block .pattern-wrap.color-wrap .bg-color-wrap input,
.panel-block .pattern-wrap.font-wrap select {
  border: 1px solid #666;
  padding: 2px;
}

.panel-block .content-wrap {
  margin-bottom: 20px;
}

.panel-block .pattern-wrap {
  margin-bottom: 10px;
}

.panel-block .pattern-wrap #controls-container .title-wrap {
  position: relative;
  border: none;
  margin-bottom: 10px;
  padding: 0 0 0 24px;
}

.panel-block .pattern-wrap #controls-container .sort-none .title-wrap {
  padding: 0;
}

.menu-block .title-wrap .sort-handle {
  position: absolute;
  background-image: url(/template11/panel/img/icon_menu.svg);
  background-repeat: no-repeat;
  background-size: 18px auto;
  width: 18px;
  height: 18px;
  top: 2px;
  left: 0px;
}

.panel-block .pattern-wrap label {
  font-weight: bold;
}

.panel-block .pattern-wrap #controls-container {
  overflow-y: auto;
  box-sizing: border-box;
  max-height: 290px;
  padding-right: 10px;
}

/* ボタンデザイン */
.panel-block .pattern-wrap .btn-wrap {
  display: flex;
  gap: 5px;
}

.panel-block .pattern-wrap .btn-wrap button {
  flex: 1;
  padding: 8px 0;
  font-size: 12px;
  cursor: pointer;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: 0.2s;
}

.panel-block .pattern-wrap .btn-wrap button:hover {
  background: #f8f8f8;
}

.panel-block .pattern-wrap .btn-wrap button.active {
  background: #333;
  color: #fff;
  border-color: #333;
}

.panel-block .pattern-wrap .jump-btn {
  width: 100%;
  margin-top: 10px;
  background: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 11px;
  padding: 10px;
  background-color: #efefef;
  text-decoration: none !important;
  text-align: center;
}

.panel-block .pattern-wrap .jump-btn:hover {
  text-decoration: underline;
}

.panel-block .copy-wrap #patterns-list {
  display: none;
}

.panel-block .copy-wrap .title-wrap {
  display: none;
}

.panel-block .copy-wrap #copy-patterns-btn {
  background: #28a745;
  display: none;
}

.panel-block #export-all-btn {
  display: none;
}

/* ---------------------------------
------------------------------------
モーダル
------------------------------------
------------------------------------*/
/* モーダル内のタブデザイン */
.modal-block .tab-menu {
  display: flex;
  gap: 2px;
}

.modal-block .tab-btn {
  flex: 1;
  padding: 12px;
  background: #e0e0e0;
  border: 1px solid #333;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  font-weight: bold;
  color: #666;
  transition: 0.2s;
}

.modal-block .tab-btn.active {
  background: #333;
  color: #fff;
}

.modal-block textarea {
  border-top: 3px solid #333;
  border-radius: 0 0 4px 4px;
  padding: 15px;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  height: 500px;
  /* 高さを調整 */
}

.modal-block {
  display: none;
  position: fixed;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  background: #fff;
  z-index: 10000;
  border: 2px solid #333;
  padding: 20px;
  overflow-y: auto;
}

.modal-block textarea {
  height: 540px;
  width: 100%;
  max-width: 100%;
  margin-bottom: 10px;
}

.modal-block .btn-wrap {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.modal-block button {
  background: #333;
  color: #fff;
  border: 1px solid #333;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}

.modal-block button #close-modal {
  background: #fff;
  border: 1px solid #333;
}
