@charset "utf-8";

/* ローディング画面 --------------------------------------------------------- */
.loading_img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: auto;
}

.loading_main_gif {
  background-image: url(../images/run.gif);
  /* background-image: url(../images/incline.gif); */
  width: 50%;
  height: auto;
  aspect-ratio: 1/1;
  background-size: cover;
  margin: 0 auto;
}

.loading_text {
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 20px 0 0 0;
}

/* Loading背景画面設定　*/

#splash {
  /*fixedで全面に固定*/
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(255, 255, 255, 1), rgba(120, 255, 196, 1));
  text-align: center;
  color: #000;
}

/* Loadingバー中央配置　*/
#splash_text {
  position: absolute;
  bottom: 50px;
  left: 50%;
  z-index: 999;
  width: 80%;
  transform: translateX(-50%);
  color: #F250A9;
}

body {
  font-family: 'メイリオ', 'Meiryo', 'Hiragino Kaku Gothic Pro', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

a {
  text-decoration: none;
}

button {
  background-color: none;
  border: none;
  background: none;
}

/* 共通ユーティリティクラス */
.hidden-input {
  display: none;
}

.hidden-element {
  display: none;
}

.visible-element {
  display: block;
}

div#wrap {
  width: 100%;
  max-width: 850px;
  height: 100%;
  background-image: url(../images/background.png);
  background-size: cover;
  background-position: center;
}

.edit_main {
  display: flex;
  position: relative;
  width: 100%;
  height: 100dvh;
}

/* ========================================
   左側ツールバー(横画面・PC用)
======================================== */
.edit_main_leftside {
  display: none;
  flex-shrink: 0;
  flex-direction: column;
  gap: 25px;
  width: 100px;
  border: 3px solid #251ED9;
  border-radius: 0 30px 30px 0;
  border-left: none;
  background: linear-gradient(230deg, rgba(120, 255, 196, 1) 0%, rgba(140, 207, 226, 1) 47%, rgba(106, 170, 254, 1) 100%);
  z-index: 15;
}

.edit_main_leftside_tools {
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow-y: scroll;
  scrollbar-width: none;
  /* Firefox */
  margin: 10px 0;
}

.edit_main_leftside_tools_button {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.edit_main_leftside_tools_icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 5px;
}

.edit_main_leftside_tools_icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.edit_main_leftside_tools_label {
  margin: 0;
  color: #4a3f7a;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

/* ========================================
   下部ツールバー(縦画面用)
======================================== */
.edit_main_bottomside {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  background: linear-gradient(180deg, #b8ffe0 0%, #d0b5ff 100%);
  box-shadow: 0 0 0 3px #9E65FF;
  z-index: 10;
}

.edit_main_bottomside_tools {
  display: flex;
  justify-content: space-around;
  width: 100%;
  gap: 5px;
  padding: 10px 20px;
}

.edit_main_bottomside_tools_button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 8px 5px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  margin: 0 3px;
}

.edit_main_bottomside_tools_icon {
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.edit_main_bottomside_tools_icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.edit_main_bottomside_tools_label {
  margin-top: 3px;
  color: #5a4a8a;
  font-size: 10px;
  font-weight: 700;
}

/* ========================================
   上部ツールバー
======================================== */
.edit_main_topside {
  padding-top: 15px;
}

.edit_main_topside_tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 30px;
}

.edit_main_topside_tools_button {
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.edit_main_topside_tools_button_left {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.edit_main_topside_tools_icon {
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.edit_main_topside_tools_icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.edit_main_topside_tools_label {
  color: #8a63d2;
  font-size: 11px;
  font-weight: 600;
}

.edit_main_leftside_end_button {
  padding: 7px 30px;
  border: none;
  border-radius: 25px;
  background: #ff69b4;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================
   プレビューエリア
======================================== */
.edit_main_preview {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: visible;
}

.edit_main_preview_container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;

}

.edit_main_preview_img {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 3/4;
  /* background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); */
  overflow: visible;
}

#selectedFrame,
#userImage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  border-radius: 11px;
}

#selectedFrame {
  z-index: 10;
  object-fit: contain;
}

#userImage {
  z-index: 1;
}

/* 描画キャンバス */
#drawCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
  pointer-events: auto;
  border-radius: 11px;
}

/* ========================================
   スタンプ選択パネル
======================================== */
.edit_stamp_active,
.edit_frame_active,
.edit_layer_panel {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: 200px;
  max-height: 200px;
  background: rgba(229, 212, 255, 0.8);
  border-radius: 25px 0 20px 0;
  z-index: 10;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.edit_stamp_active.show,
.edit_frame_active.show,
.edit_layer_panel.show {
  display: block;
  transform: translateY(0);
}

.edit_modal_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px 0 130px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
}

.edit_modal_header h3 {
  color: #333;
  font-size: 18px;
  font-weight: 700;
}

.edit_modal_close {
  width: 38px;
  height: 38px;
  border: none;
  color: #5a4a8a;
  font-size: 26px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* カテゴリー選択 */
.edit_active_list {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 25px 0px 130px;
  overflow-x: auto;
  flex-wrap: nowrap;
}

.edit_active_list::-webkit-scrollbar {
  display: none;
}

.edit_active_list a {
  padding: 10px 15px;
  background: rgba(158, 101, 255, 0.5);
  color: #fff;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s;
  white-space: nowrap;
}

.edit_active_list a.active {
  background: #9E65FF;
  transform: scale(1.02);
}

/* スタンプ一覧 */
.edit_stamp_active_preview,
.edit_frame_active_preview {
  display: flex;
  gap: 40px;
  padding: 30px 0px 0px 130px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: nowrap;
}

.edit_stamp_active_preview_img {
  flex-shrink: 0;
  width: 60px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s;
}

.edit_frame_active_preview_img {
  flex-shrink: 0;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  width: auto;
  max-width: 120px;
}

.edit_frame_active_preview_img {
  width: 130px;
  text-align: center;
}

.edit_stamp_active_preview_img:active,
.edit_frame_active_preview_img:active {
  transform: scale(0.92);
}

.edit_stamp_active_preview_img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.edit_frame_active_preview_img img {
  display: block;
  margin: 0 auto;
  object-fit: contain;
  max-width: 100px;
  max-height: 100px;
  width: auto;
  height: auto;
}

.edit_frame_active_preview_img p {
  color: #5a4a8a;
  font-size: 11px;
  font-weight: 600;
  margin-top: 8px;
}

.edit_stamp_active_preview_img.hide {
  display: none;
}

/* ペンツール */
.edit_pen_settings_content {
  display: flex;
  justify-content: space-between;
  padding: 20px 25px 20px 130px;
  overflow-y: auto;
}

.edit_pen_settings_color,
.edit_pen_settings_width {
  width: 47%;
}

.edit_pen_settings_content label {
  font-weight: 600;
  font-size: 1rem;
  color: #5a4a8a;
  display: block;
  margin-bottom: 10px;
}

.pen-width-preview-container {
  display: flex;
  align-items: center;
  height: 40px;
  margin-top: 30px;
  background: #f5f5f5;
  border-radius: 8px;
  justify-content: center;
}

#penWidthSlider {
  width: 100%;
  height: 8px;
  border-radius: 5px;
}

#penWidthPreview {
  width: 100px;
  border-radius: 50px;
}

.pen-color-option {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  cursor: pointer;
}

.pen-color-option {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  box-sizing: border-box;
}

/* 選択されたときの枠線 */
.pen-color-option.selected {
  outline: 3px solid #F250A9;
  outline-offset: 3px;
  /* 色の四角から少し離して枠線を出す */
}

/* ========================================
   レイヤーパネル
======================================== */
.edit_layer_list {
  padding: 15px 20px 0 130px;
}

.edit_layer_item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  cursor: move;
}

.edit_layer_item_info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.edit_layer_item_preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 5px;
  background: #fff;
  overflow: hidden;
}

.edit_layer_item_preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.edit_layer_item_name {
  color: #000;
  font-size: 14px;
  font-weight: 600;
}

/* レイヤー　削除 */
.edit_layer_item_delete {
  padding: 6px 12px;
  background: #ff4757;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
}

.edit_layer_item_move p,
.edit_layer_item_order p {
  align-items: center;
  font-size: .9rem;
}

.edit_layer_item_move i,
.edit_layer_item_order i {
  padding: 0 10px 0 0;
  font-size: .9rem;
}

/* ========================================
   プレビューモーダル
======================================== */
.edit_preview_modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 200;
  justify-content: center;
  align-items: center;
}

.edit_preview_modal.show {
  display: flex;
}

.edit_preview_modal_content {
  position: relative;
  width: 90%;
  max-width: 600px;
}

.edit_preview_modal_image {
  width: 100%;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

/* ========================================
   配置要素(スタンプ、テキスト)
======================================== */
.draggable-stamp,
.draggable-text {
  position: absolute;
  cursor: move;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  z-index: 15;
  touch-action: none;
}

.draggable-stamp {
  width: 100px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
  transition: filter 0.2s;
}

.draggable-stamp:hover {
  filter: drop-shadow(0 4px 12px rgba(95, 89, 255, 0.3));
}

.draggable-text {
  min-width: 100px;
  min-height: 30px;
  padding: 10px;
  background: transparent;
  border: 2px dashed transparent;
  font-size: 20px;
  font-weight: 600;
  color: #000;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.draggable-text:focus {
  outline: none;
  border-color: #9E65FF;
  background: rgba(255, 255, 255, 0.1);
}

.draggable-text.selected,
.draggable-stamp.selected {
  border: 3px solid #9E65FF;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(158, 101, 255, 0.5);
}

/* 削除ゾーンにドラッグ中 */
.draggable-stamp.over-delete-zone,
.draggable-text.over-delete-zone {
  opacity: 0.5;
  border-color: #ff4757;
  box-shadow: 0 0 20px rgba(255, 71, 87, 0.7);
}

/* リサイズハンドル */
.resize-handle {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  background: #9E65FF;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: nwse-resize;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.resize-handle:hover {
  background: #8c52ff;
  transform: scale(1.2);
}

/* ========================================
   レスポンシブ対応
======================================== */
/* 横画面 */
@media (min-width: 720px) and (orientation: landscape) {

  .edit_main_leftside {
    display: flex;
  }

  .edit_main_bottomside {
    display: none;
  }

  .edit_main_preview_container {
    padding: 30px;
  }

  .edit_stamp_active,
  .edit_frame_active,
  .edit_layer_panel {
    bottom: 0;
    right: auto;
    left: 0;
    width: 100%;
    max-height: 75vh;
  }

}

/* PCとタブレット画面 */
@media (min-width: 1024px) and (orientation: landscape),
(min-width: 1366px) {

  .edit_main_leftside {
    display: flex;
  }

  .edit_main_bottomside {
    display: none;
  }

  .edit_main_preview_container {
    padding: 30px;
  }

  div#wrap {
    width: 100%;
    max-width: unset;
    height: 100%;
    background-image: url(../images/background.png);
    background-size: cover;
    background-position: center;
  }

  .edit_main {
    display: flex;
    position: relative;
    width: 100%;
    height: 100dvh;
  }

  /* ローディング画面 --------------------------------------------------------- */
  .loading_img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
  }

  .loading_main_gif {
    background-image: url(../images/run.gif);
    /* background-image: url(../images/incline.gif); */
    width: 15%;
    height: auto;
    aspect-ratio: 1/1;
    background-size: cover;
    margin: 0 auto;
  }

  .loading_text {
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 20px 0 0 0;
  }

  /* Loading背景画面設定　*/

  #splash {
    /*fixedで全面に固定*/
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(255, 255, 255, 1), rgba(120, 255, 196, 1));
    text-align: center;
    color: #000;
  }

  /* Loadingバー中央配置　*/
  #splash_text {
    position: absolute;
    bottom: 50px;
    left: 50%;
    z-index: 999;
    width: 80%;
    transform: translateX(-50%);
    color: #F250A9;
  }

  .edit_stamp_active,
  .edit_frame_active,
  .edit_layer_panel {
    bottom: 0;
    right: auto;
    left: 0;
    width: 100%;
    max-height: 75vh;
  }

  /* ========================================
   スタンプ選択パネル
======================================== */
  .edit_stamp_active,
  .edit_frame_active,
  .edit_layer_panel {
    height: 350px;
    max-height: 350px;
    border-radius: 25px 0 20px 0;
  }

  .edit_modal_header {
    padding: 10px 10px 10px 180px;
  }

  .edit_modal_header h3 {
    font-size: 25px;
  }

  .edit_modal_close {
    width: 50px;
    height: 50px;
    font-size: 40px;
    line-height: 1;
  }

  /* カテゴリー選択 */
  .edit_active_list {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    padding: 10px 25px 0px 180px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .edit_active_list a {
    padding: 10px 15px;
    background: rgba(158, 101, 255, 0.5);
    color: #fff;
    border-radius: 25px;
    font-size: 20px;
    font-weight: 700;
  }

  /* スタンプ一覧 */
  .edit_stamp_active_preview,
  .edit_frame_active_preview {
    display: flex;
    gap: 60px;
    padding: 30px 0px 0px 180px;
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }

  .edit_stamp_active_preview_img {
    flex-shrink: 0;
    width: 130px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s;
  }

  .edit_frame_active_preview_img {
    flex-shrink: 0;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
    width: auto;
    max-width: unset;
  }

  .edit_frame_active_preview_img {
    width: unset;
    text-align: center;
  }

  .edit_stamp_active_preview_img:active,
  .edit_frame_active_preview_img:active {
    transform: scale(0.92);
  }

  .edit_stamp_active_preview_img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .edit_frame_active_preview_img img {
    display: block;
    margin: 0;
    object-fit: contain;
    max-width: 150px;
    max-height: 200px;
    width: auto;
    height: auto;
  }

  .edit_frame_active_preview_img p {
    color: #5a4a8a;
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
  }

  .edit_stamp_active_preview_img.hide {
    display: none;
  }

  /* ペンツール */
  .edit_pen_settings_content {
    display: flex;
    justify-content: space-between;
    padding: 20px 25px 20px 180px;
    overflow-y: auto;
  }

  .edit_pen_settings_color,
  .edit_pen_settings_width {
    width: 47%;
  }

  .edit_pen_settings_content label {
    font-weight: 600;
    font-size: 1rem;
    color: #5a4a8a;
    display: block;
    margin-bottom: 10px;
  }

  .pen-width-preview-container {
    display: flex;
    align-items: center;
    height: 40px;
    margin-top: 50px;
    background: #f5f5f5;
    border-radius: 8px;
    justify-content: center;
  }

  #penWidthSlider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
  }

  #penWidthPreview {
    width: 100px;
    border-radius: 50px;
  }

  .pen-color-option {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
  }


  /* ========================================
   左側ツールバー(横画面・PC用)
======================================== */
  .edit_main_leftside {
    gap: 25px;
    width: 150px;
    border: 3px solid #251ED9;
    border-radius: 0 30px 30px 0;
    background: linear-gradient(230deg, rgba(120, 255, 196, 1) 0%, rgba(140, 207, 226, 1) 47%, rgba(106, 170, 254, 1) 100%);
    z-index: 15;
  }

  .edit_main_leftside_tools {
    gap: 40px;
    margin: 30px 0;
  }

  .edit_main_leftside_tools_button {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
  }

  .edit_main_leftside_tools_icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    margin-bottom: 5px;
  }

  .edit_main_leftside_tools_icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .edit_main_leftside_tools_label {
    margin: 0;
    color: #4a3f7a;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
  }

  /* ========================================
   上部ツールバー
======================================== */
  .edit_main_topside {
    padding-top: 15px;
  }

  .edit_main_topside_tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 30px;
  }

  .edit_main_topside_tools_button {
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
  }

  .edit_main_topside_tools_button_left {
    display: flex;
    justify-content: space-between;
    gap: 15px;
  }

  .edit_main_topside_tools_icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .edit_main_topside_tools_icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .edit_main_topside_tools_label {
    color: #8a63d2;
    font-size: 15px;
    font-weight: 600;
  }

  .edit_main_leftside_end_button {
    padding: 10px 50px;
    border: none;
    border-radius: 50px;
    background: #ff69b4;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* ========================================
   レイヤーパネル
======================================== */
  .edit_layer_list {
    padding: 15px 20px 0 180px;
  }

  .edit_layer_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: move;
  }

  .edit_layer_item_info {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .edit_layer_item_preview {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    background: #fff;
    overflow: hidden;
  }

  .edit_layer_item_preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .edit_layer_item_name {
    color: #000;
    font-size: 18px;
    font-weight: 600;
  }

  .edit_layer_item_delete {
    padding: 6px 12px;
    background: #ff4757;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
  }

}

/* 縦画面(portrait) */
@media (max-width: 855px) and (orientation: portrait) {
  .edit_main_leftside {
    display: none;
  }

  .edit_main_bottomside {
    display: flex;
  }

  .edit_main_preview_container {
    padding: 10px;
    padding-bottom: 100px;
  }

  .edit_main_topside_tools {
    gap: 5px;
    padding: 0 0;
  }

  .edit_main_topside_tools_button {
    padding: 6px 8px;
  }

  .edit_main_topside_tools_icon {
    width: 25px;
    height: 25px;
  }

  .edit_main_topside_tools_label {
    display: none;
  }

  .edit_main_leftside_end_button {
    padding: 7px 30px;
    font-size: 1rem;
  }

  .edit_main_bottomside_tools {
    display: flex;
    justify-content: space-around;
    width: 100%;
    gap: 40px;
    overflow-y: scroll;
    scrollbar-width: none;
  }


  .edit_main_bottomside_tools_icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .edit_main_bottomside_tools_icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .edit_main_bottomside_tools_label {
    margin-top: 3px;
    color: #5a4a8a;
    font-size: 10px;
    font-weight: 700;
  }

}

/* タブレット縦画面 */
@media (min-width: 1000px) and (max-width: 1700px) and (orientation: portrait) {
  .edit_main_leftside {
    display: none;
  }

  .edit_main_bottomside {
    display: flex;
  }

}