@font-face {
    font-family: 'MakiFont';
    src: url('font/makiirclehand.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
body {
	font-family: 'MakiFont', sans-serif;
	font-size:24px;
	overflow-y:scroll;
}
input,textarea,button {
	font-size:28px  !important;
}
.form-label {
	font-size:24px  !important;
}

/* 全体 */
.diary-page {
  background: #fffdf6;
  border: 2px solid #dcdcdc;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  padding: 15px;
}

/* 絵エリア */
.picture-area {
  height: 320px;
  background: #ffffff;
  border: 2px dashed #cfcfcf;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 1.1rem;
}

/* 仕切り線 */
.divider {
  margin: 20px 0;
  border-top: 3px solid #9ec3ff;
}

/* 文字エリア（ジャポニカ風） */
.text-area {
  min-height: 220px;
  padding: 0px 16px;
  background:
    repeating-linear-gradient(
      to bottom,
      #fffdf6 0px,
      #fffdf6 42px,
      #9ec3ff 43px,
      #fffdf6 44px
    );
  line-height: 44px;
  font-size: 3.1rem;
  color:#555;
}
.diary-image {
  max-width: 100%;
  max-height: 100%;
}
.diary-sign {
  text-align: right;
  padding-right: 4px;
}
aside .card {
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

aside .card-header {
  font-weight: 600;
  font-size: 1.2rem;
}

.list-group-item {
  cursor: pointer;
}

.list-group-item:hover {
  background: #f0f6ff;
}
#miniCalendar {
  font-size: 1.25rem;
}
#miniCalendar a {
  text-decoration: none !important;
  color: inherit;
}
.fc-daygrid-day-events {
  min-height: 0em !important;
}
.fc .fc-daygrid-body-natural .fc-daygrid-day-events {
    margin-bottom: 0em;
}
.fc .fc-button .fc-icon {
    font-size: 0.7em;
    vertical-align: middle;
}
#miniCalendar .fc-toolbar-title {
  font-size: 1.15rem;
  font-weight: 600;
}
#miniCalendar .fc-daygrid-day-number {
  font-variant-numeric: tabular-nums;
}
#miniCalendar .fc-button {
  padding: 0.1rem 0.35rem;
  font-size: 0.7rem;
}

/* 日付セル */
#miniCalendar .fc-daygrid-day-frame {
  padding: 2px;
}

/* 日付数字 */
#miniCalendar .fc-daygrid-day-number {
  font-size: 1.2rem;
  padding: 2px;
}

/* 今日をやさしく */
#miniCalendar .fc-day-today {
  background: #fff4d6;
}
.form-action-fixed {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #dee2e6;
  padding: 1rem;
  z-index: 1030;
  transition: left .2s ease, width .2s ease;
}
.edit-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  padding: 6px 8px;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.edit-btn:hover {
  background: #eef4ff;
}
.logo {
  font-size: 2.3rem;
  line-height: 1;
  letter-spacing: 0.05em;
  margin-left:5px;
}

.logo .e {
  font-size: 1.3em;
  color: #ff8a8a;
}

.logo .n {
  font-size: 0.9em;
  margin-left: 4px;
  color: #555;
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.draw-area {
  height: 320px;
  border: 2px dashed #cfcfcf;
  border-radius: 10px;
  background: #fffdf6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
}

.diary-textarea {
  line-height: 1.8;
}

.form-control:invalid {
  background-color: #ffeaea;
}
.form-control:focus:invalid {
  box-shadow: 0 0 0 0.2rem rgba(255, 0, 0, 0.15);
}	
	
.tools {
  margin-top: 10px;
  margin-bottom: 10px;
}

.color-btn {
  width: 32px;
  height: 32px;
  border-radius: 20%;
  border: 1px solid #aaa;
  display: inline-block;
  margin-right: 6px;
  cursor: pointer;
}

#canvasWrap {
  width: 100%;
  height: 360px; 
  position: relative;
  border: 2px dashed #cfcfcf;
  border-radius: 10px;
  overflow: hidden;
}

#drawCanvas,
#previewCanvas {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
#drawCanvas {
  touch-action: none;
}
#previewCanvas {
  pointer-events: none;
}

