@charset "UTF-8";

/*	ボタン汎用
-------------------------------------------------------- */
.c-btn {
  font-feature-settings: "palt" on;
  transition: all 0.3s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
  max-width: 100%;
  padding: 6px;
  border: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  cursor: pointer;
  overflow: hidden;
  color: #fff;
  border-radius: 8px;
}

/*	メモツール
-------------------------------------------------------- */
.p-maincanvas {
	position: absolute;
	top: 0;
	left: 0;
}

.p-pageOverlay{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: none;
	background-color: gray;
	opacity: 0.2;
}

.p-memo-tools {
  position: absolute;
  z-index: 100;
}
.memo-tools_inner {
  position: relative;
  z-index: 100;
}

/* メモツールアイコン */
.p-memo-tools__header > button {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  width: 72px;
  height: 64px;
  border-radius: 8px;
  background-color: #82B96F;
  padding-bottom: 8px;
}
.p-memo-tools__header > button > img {
  padding-left: 4px;
}
.p-memo-tools__header > button::after {  /* V字のアイコン */
  content: "";
  width: 10px;
  height: 10px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: rotate(135deg);
  border-radius: 3px;
}

/* メモツールアイコン（開いている時） */
.p-memo-tools__header > button.-active {
  gap: 13px;
  border-radius: 0;
  padding-bottom: 0px;
}
.p-memo-tools__header > button.-active::after {  /* V字のアイコン */
  transform: rotate(-45deg);
}

.p-memo-tools__body {
  display: none;
}
.p-memo-tools__body.-active {
  display: block;
}

.p-memo-tools__list {
  height: auto;
  background-color: #eee;
  padding: 0;
}

.p-memo-tools__item.-parent {
  position: relative;
}
.p-memo-tools__item.-eraser .p-memo-tools__child-list {
  padding: 0;
}
.p-memo-tools__item.-eraser .p-memo-tools__sub-item > button {
  height: 88px;
}
.p-memo-tools__item.-undo,
.p-memo-tools__item.-redo {
  opacity: 0.5;
}
.p-memo-tools__item.-undo.-active,
.p-memo-tools__item.-redo.-active {
  opacity: 1;
}

.p-memo-tools__item-header {
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 64px;
  background-color: #eee;
  position: relative;
}
.p-memo-tools__item-header:hover,
.p-memo-tools__item-header.-active {
  background-color: #ddd;
}
  
.p-memo-tools__child {
  display: none;
  position: absolute;
  top: 0;
  left: 72px;
  z-index: 3;
  pointer-events: none;
}
.p-memo-tools__child-inner {
  position: relative;
}

/* 開くボタン・閉じるボタン */
.p-memo-tools__item-child-trigger {
  position: absolute;
  width: 32px;
  height: 48px;
  top: 0;
  pointer-events: auto;
}
.p-memo-tools__item-child-trigger.-open {
  display: block;
  left: 72px;
  z-index: 2;
}
.p-memo-tools__item-child-trigger.-close {
  right: -32px;
  z-index: 4;
}

.p-memo-tools__child-list {
  display: flex;
  padding: 0;
}
.p-memo-tools__child-item {
  position: relative;
  width: 72px;
  height: fit-content;
  background-color: #f5f5f5;
  pointer-events: auto;
}

.p-memo-tools__child-title {
  text-align: center;
  padding-top: 10px;
}

.p-memo-tools__sub-item > button {
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 54px;
  flex-direction: column;
  position: relative;
}
.p-memo-tools__sub-item > button:hover,
.p-memo-tools__sub-item > button.-active {
  background-color: #ddd;
}
.p-memo-tools__sub-item > button > .icon_label {
  margin-top: 3px;   
}
  
/* 区切りの縦線 */
.p-memo-tools__child-item:not(:last-child)::after {
  content: '';
  position: absolute;
  display: block;
  width: 1px;
  height: 100%;
  background-color: #ddd;
  right: 0;
  top: 0;
  z-index: 2;
}
  
/* ペンの色 */
.p-memo-tools__child-item.-color .p-memo-tools__sub-item > button::before {
  content: "";
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  border: 2px solid #fff;
  border-radius: 50%;
}
.p-memo-tools__child-item.-color .p-memo-tools__sub-item.-black > button::before {
  background-color: #333;
}
.p-memo-tools__child-item.-color .p-memo-tools__sub-item.-red > button::before {
  background-color: #ff3200;
}
.p-memo-tools__child-item.-color .p-memo-tools__sub-item.-blue > button::before {
  background-color: #0050e6;
}
.p-memo-tools__child-item.-color .p-memo-tools__sub-item.-orange > button::before {
  background-color: #ffa500;
}
.p-memo-tools__child-item.-color .p-memo-tools__sub-item.-green > button::before {
  background-color: #00a000;
}
.p-memo-tools__child-item.-color .p-memo-tools__sub-item.-active > button::after { /* チェックマーク */
  content: '';
  position: absolute;
  display: block;
  width: 14px;
  height: 7px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  top: 14px;
  left: 28px;
  transform: rotate(-45deg);
  transform-origin: center center;
}

/* ペンの太さ */
.p-memo-tools__child-item.-line .p-memo-tools__sub-item > button::before {
  content: '';
  display: block;
  border: 2px solid #fff;
  border-radius: 50%;
  position: relative;
  background-color: #333;
}
.p-memo-tools__child-item.-line .p-memo-tools__sub-item.-thin > button::before {
  width: 3px;
  height: 3px;
}
.p-memo-tools__child-item.-line .p-memo-tools__sub-item.-regular > button::before {
  width: 5px;
  height: 5px;
}
.p-memo-tools__child-item.-line .p-memo-tools__sub-item.-medium > button::before {
  width: 7px;
  height: 7px;
}
.p-memo-tools__child-item.-line .p-memo-tools__sub-item.-bold > button::before {
  width: 10px;
  height: 10px;
}
.p-memo-tools__child-item.-line .p-memo-tools__sub-item.-heavy > button::before {
  width: 18px;
  height: 18px;
}
.p-memo-tools__child-item.-line .p-memo-tools__sub-item:not(.-active) {
  opacity: 0.5;
}

/* ペンの種類 */
.p-memo-tools__child-item.-type .p-memo-tools__sub-item > button > .icon_label{
  margin-top: 6px;
  width: 80%;
}
.p-memo-tools__child-item.-type .p-memo-tools__sub-item:not(.-active) {
  opacity: 0.5;
}

/*	消しゴム機能のモーダルウィンドウ
-------------------------------------------------------- */
.drawframe-modal {
	display: none;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
  background: rgba(0, 0, 0, 0.6);
	z-index: 9998;
}

.p-alert {
  display: none;
  position: absolute;
  width: 420px;
  height: 160px;
  max-width: 420px;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  background-color: #fff;
  border-radius: 10px;
  padding: 40px 55px;
}

.p-alert button {
	border-radius: 4px;
	font-size: 16px;
	font-weight: bold;
}
.p-alert button:active {
	border-bottom: none;
	margin-top: 3px;
}

.p-alert__text {
  text-align: center;
}
.p-alert__text p {
  font-size: 22px;
  font-weight: 700;
}

.p-alert__btn {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 2.4rem;
}
.p-alert__btn button {
  width: 160px;
  height: 60px;
  font-size: 15px;
}
.p-alert__btn button span {
  display: flex;
  align-items: center;
}

.p-alert-no {
  background-color: #ddd;
  box-shadow: 0 2px 0 #bbb;
  color: #333;
}
.p-alert-no:hover {
  background-color: #d0d0d0;
}
.p-alert-yes {
  background-color: #5064d2;
  box-shadow: 0 2px 0 #3246b4;
}
.p-alert-yes:hover {
  background-color: #5c6fd5;
}