/* ===== ヘッダー ===== */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 24px;
  background: linear-gradient(180deg, #e8d8ff 0%, #d4b8f8 100%);
  border-bottom: 2px solid #c0a0e8;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.3) inset;
}

.cal-header .home-btn {
  text-decoration: none;
  color: #9070c0;
  font-size: 11px;
  padding: 4px 14px;
  background: linear-gradient(180deg, #faf8ff 0%, #ede0ff 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  border-left: 1px solid rgba(255, 255, 255, 0.7);
  border-right: 1px solid #c0a0e8;
  border-bottom: 1px solid #c0a0e8;
  border-radius: 2px;
  font-family: 'Courier New', monospace;
  box-shadow: 1px 1px 0 #c0a0e8;
}

.cal-header .month-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cal-header .month-nav .arrow-btn {
  background: linear-gradient(180deg, #faf8ff 0%, #ede0ff 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  border-left: 1px solid rgba(255, 255, 255, 0.7);
  border-right: 1px solid #c0a0e8;
  border-bottom: 1px solid #c0a0e8;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 10px;
  color: #c0a0e8;
  border-radius: 2px;
  box-shadow: 1px 1px 0 #c0a0e8;
}

.cal-header .month-label {
  font-size: 18px;
  font-weight: bold;
  min-width: 140px;
  text-align: center;
  color: #ffffff;
  text-shadow: 1px 1px 0px #9070c0;
  letter-spacing: 0.1em;
}

.cal-header .new-btn {
  text-decoration: none;
  color: #9070c0;
  background: linear-gradient(180deg, #faf8ff 0%, #ede0ff 100%);
  font-size: 16px;
  padding: 4px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  border-left: 1px solid rgba(255, 255, 255, 0.7);
  border-right: 1px solid #c0a0e8;
  border-bottom: 1px solid #c0a0e8;
  border-radius: 2px;
  box-shadow: 1px 1px 0 #c0a0e8;
}

/* ===== メインレイアウト ===== */
.cal-wrap {
  display: flex;
  flex-direction: column;
  margin: 2vw;
  margin-left: 7vw;
  overflow: hidden;
  background-color: #faf8ff;
  border-radius: 6px;
  border: 2px solid #c0a0e8;
  box-shadow: 2px 2px 8px rgba(192, 160, 232, 0.2);
}

.cal-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ===== カレンダーグリッド ===== */
.cal-grid-wrap {
  flex: 1;
  padding: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cal-grid {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* 曜日ヘッダー */
.cal-grid thead th {
  padding: 8px 0;
  font-size: 11px;
  font-weight: normal;
  color: #c0a0e8;
  text-align: center;
  border-bottom: 1px solid #ddd0f8;
  font-family: 'Courier New', monospace;
}

/* 行の高さを均等に */
.cal-grid tbody {
  height: 100%;
}

.cal-grid tbody tr {
  height: calc(100% / 6);
}

/* 日付セル */
.cal-grid tbody td {
  border: 1px solid #e8e0f8;
  vertical-align: top;
  padding: 6px;
  cursor: pointer;
  background: #faf8ff;
  transition: background 0.1s;
}

.cal-grid tbody td:hover {
  background: #f3eaff;
}

.cal-grid tbody td.today {
  background: #fedfff;
}

.cal-grid tbody td.selected {
  background: #e0d0ff;
}

.cal-grid tbody td.other-month {
  color: #d8c8f0;
  background: #fdfcff;
}

.cal-grid tbody td.sunday .day-num {
  color: #e070a0;
}

.cal-grid tbody td.saturday .day-num {
  color: #a080d0;
}

/* 日付番号 */
.day-num {
  font-size: 12px;
  font-weight: bold;
  display: block;
  margin-bottom: 4px;
  font-family: 'Courier New', monospace;
  color: #9070c0;
}

/* 予定ラベル */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.event-item {
  font-size: 11px;
  padding: 1px 4px;
  border-radius: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  background: #b898e8;
  font-family: 'Courier New', monospace;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.15);
}

/* ===== 詳細パネル ===== */
.cal-detail {
  width: 260px;
  min-width: 260px;
  background: linear-gradient(180deg, #faf8ff 0%, #f3eaff 100%);
  border-left: 2px solid #c0a0e8;
  padding: 16px 14px;
  overflow-y: auto;
  box-shadow: inset 2px 0 4px rgba(192, 160, 232, 0.08);
}

.cal-detail.hidden {
  display: none;
}

.detail-date {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 16px;
  color: #9070c0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.detail-event {
  background: linear-gradient(180deg, #faf8ff 0%, #ede0ff 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  border-left: 1px solid rgba(255, 255, 255, 0.7);
  border-right: 1px solid #c0a0e8;
  border-bottom: 1px solid #c0a0e8;
  border-radius: 4px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 1px 1px 0 #c0a0e8;
}

.detail-label-bar {
  height: 4px;
  border-radius: 2px;
  margin-bottom: 10px;
  background: #b898e8;
}

.detail-title {
  font-size: 17px;
  font-weight: bold;
  margin-bottom: 6px;
  color: #7858a8;

}

.detail-desc {
  font-size: 12px;
  color: #a080c8;
  margin-bottom: 10px;
  line-height: 1.5;

}

.detail-time {
  font-size: 16px;
  color: #c8b0e0;
  margin-bottom: 4px;

}

.detail-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.delete-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-actions a,
.detail-actions button {
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Courier New', monospace;
}

.btn-edit {
  background: linear-gradient(180deg, #faf8ff 0%, #ede0ff 100%);
  color: #9070c0;
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  border-left: 1px solid rgba(255, 255, 255, 0.7);
  border-right: 1px solid #c0a0e8;
  border-bottom: 1px solid #c0a0e8;
  box-shadow: 1px 1px 0 #c0a0e8;
}

.btn-delete {
  background: linear-gradient(180deg, #ffe8e8 0%, #f0c0c0 100%);
  color: #a03030;
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  border-left: 1px solid rgba(255, 255, 255, 0.6);
  border-right: 1px solid #c04040;
  border-bottom: 1px solid #c04040;
  box-shadow: 1px 1px 0 #c04040;
}

.no-events {
  font-size: 11px;
  color: #c8b0e0;
  text-align: center;
  margin-top: 40px;
  font-family: 'Courier New', monospace;
}

.no-events.hidden {
  display: none;
}

/* ===== newヘッダー ===== */
.new-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: linear-gradient(180deg, #e8d8ff 0%, #d4b8f8 100%);
  border-bottom: 2px solid #c0a0e8;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.3) inset;
}

.home-btn {
  text-decoration: none;
  color: #9070c0;
  font-size: 24px;
  padding: 4px 14px;
  background: linear-gradient(180deg, #faf8ff 0%, #ede0ff 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  border-left: 1px solid rgba(255, 255, 255, 0.7);
  border-right: 1px solid #c0a0e8;
  border-bottom: 1px solid #c0a0e8;
  border-radius: 2px;
  box-shadow: 1px 1px 0 #c0a0e8;
}

.new-title {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 1px 1px 0px #9070c0;
  letter-spacing: 0.2em;
}

.new-header-spacer {
  width: 90px;
}

/* ===== メイン ===== */
.new-main {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  width: 60vw;
  background: #faf8ff;
  overflow-y: scroll;
}

.new-main::-webkit-scrollbar {
  display: none;
}


.new-form-wrap {
  background: linear-gradient(180deg, #faf8ff 0%, #f3eaff 100%);
  border-radius: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  border-left: 1px solid rgba(255, 255, 255, 0.7);
  border-right: 2px solid #c0a0e8;
  border-bottom: 2px solid #c0a0e8;
  padding: 32px 36px;
  width: 100%;
  max-width: 1020px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 2px 2px 8px rgba(192, 160, 232, 0.15);
  overflow-y: scroll;
}

.new-form-wrap::-webkit-scrollbar {
  display: none;
}




/* ===== フォームグループ ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px;
}

.form-label {
  font-size: 12px;
  font-weight: bold;
  color: #9070c0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Courier New', monospace;
}

.required {
  font-size: 11px;
  color: #fff;
  background: linear-gradient(180deg, #d4b8f8 0%, #b898e0 100%);
  padding: 2px 6px;
  border-radius: 2px;
  font-weight: normal;
  font-family: 'Courier New', monospace;
  box-shadow: 1px 1px 0 #a880d0;
}

.optional {
  font-size: 11px;
  color: #fff;
  background: linear-gradient(180deg, #e4d8f8 0%, #ccc0e8 100%);
  padding: 2px 6px;
  border-radius: 2px;
  font-weight: normal;
  font-family: 'Courier New', monospace;
  box-shadow: 1px 1px 0 #b8a8d8;
}

.form-input {
  padding: 10px 12px;
  background: linear-gradient(180deg, #faf8ff 0%, #f3eaff 100%);
  border-top: 1px solid #c0a0e8;
  border-left: 1px solid #c0a0e8;
  border-right: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  font-size: 13px;
  font-family: 'Courier New', monospace;
  color: #7858a8;
  outline: none;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.06);
}

.form-textarea {
  padding: 10px 12px;
  background: linear-gradient(180deg, #faf8ff 0%, #f3eaff 100%);
  border-top: 1px solid #c0a0e8;
  border-left: 1px solid #c0a0e8;
  border-right: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  font-size: 13px;
  font-family: 'Courier New', monospace;
  color: #7858a8;
  outline: none;
  resize: vertical;
  min-height: 100px;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.06);
}

/* ===== カラー選択 ===== */
.color-select-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-select-wrap input[type="color"] {
  width: 48px;
  height: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  border-left: 1px solid rgba(255, 255, 255, 0.7);
  border-right: 1px solid #c0a0e8;
  border-bottom: 1px solid #c0a0e8;
  border-radius: 2px;
  padding: 2px;
  cursor: pointer;
  background: none;
  box-shadow: 1px 1px 0 #c0a0e8;
}

.color-preview {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  border-left: 1px solid rgba(255, 255, 255, 0.7);
  border-right: 1px solid #c0a0e8;
  border-bottom: 1px solid #c0a0e8;
  background: #d4b8f8;
  box-shadow: 1px 1px 0 #c0a0e8;
}

/* ===== 投稿ボタン ===== */
.form-submit {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.submit-btn {
  padding: 12px 48px;
  background: linear-gradient(180deg, #e8d8ff 0%, #ceb8f0 100%);
  color: #7858a8;
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  border-left: 1px solid rgba(255, 255, 255, 0.7);
  border-right: 2px solid #c0a0e8;
  border-bottom: 2px solid #c0a0e8;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 2px 2px 0 #c0a0e8;
}

.submit-btn:hover {
  background: linear-gradient(180deg, #f0e4ff 0%, #dac8f8 100%);
}
.main {
  flex: 1;
  display: flex;
  position: relative;
  height: clamp(600px, 94vh, 2160px);
  width: 72vw;
}

.room {
  flex: 1;
  min-height: 0;
  display: flex;
  position: relative;
  align-items: center;
  overflow: hidden;
  border: 3px solid #c9b1a2;
  box-shadow: inset 0 0 50px black;
  border-radius: 30px;
  background-image: url(/assets/layouts/back-9298b532da8d5867e79dfccb705fea4ab3fdad13abb8186111e9427ca2b99768.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  container-type: size;
}

.chara-area {
  position: absolute;
  display: flex;
  justify-content: center;
  width: 100%;
  bottom: 0;
  z-index: 1;
}

.chara {
  max-height: 127cqh;
  width: auto;
  display: block;
}

.text-box {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  height: clamp(80px, 15cqh, 150px);
  color: #a05070;
  background: linear-gradient(180deg, #fff8fb 0%, #ffe8f3 100%);
  border-top: 2px solid rgba(255,255,255,0.9);
  border-left: 2px solid rgba(255,255,255,0.7);
  border-right: 2px solid #e888b0;
  border-bottom: 2px solid #e888b0;
  border-radius: 4px;
  padding: 12px 18px;
  width: 80cqw;
  font-size: clamp(12px, 2cqw, 20px);
  z-index: 10;
  white-space: pre-wrap;
  box-shadow: 2px 2px 0 #e888b0, inset 1px 1px 3px rgba(0,0,0,0.06);
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

/* 選択肢コンテナ */
.choices-container {
  position: absolute;
  bottom: clamp(100px, 15cqh, 160px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.5cqh, 15px);
  width: 80%;
  max-width: clamp(250px, 50cqw, 600px);
  min-width: 200px;
  z-index: 11;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 選択肢ボタン */
.choice-button {
  font-weight: 700;
  font-style: normal;
  font-size: clamp(12px, 2cqw, 18px);
  color: #a05070;
  background: linear-gradient(180deg, #fff8fb 0%, #ffe8f3 100%);
  border-top: 1px solid rgba(255,255,255,0.9);
  border-left: 1px solid rgba(255,255,255,0.7);
  border-right: 2px solid #e888b0;
  border-bottom: 2px solid #e888b0;
  border-radius: 2px;
  padding: clamp(8px, 1.5cqh, 15px) 20px;
  cursor: pointer;
  transition: background 0.1s;
  text-align: center;
  box-shadow: 2px 2px 0 #e888b0;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.choice-button:hover {
  background: linear-gradient(180deg, #ffffff 0%, #fff0f6 100%);
}

.choice-button:active {
  border-top: 1px solid #e888b0;
  border-left: 1px solid #e888b0;
  border-right: 1px solid rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.7);
  box-shadow: none;
  transform: translateY(1px);
}
.help-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background-color: #faf8ff;
  border: 2px solid #9f7bca;
  border-right: none;
  border-radius: 30px;
  overflow: hidden;
}

.help-nav {
  display: flex;
  align-items: center;
  gap: 0.3vw;
  padding: 0.6vw 1vw;
  padding-left: 8vw;
  background: linear-gradient(180deg, #e8d8ff 0%, #d4b8f8 100%);
  border-bottom: 2px solid #c0a0e8;
  box-shadow: 0 2px 0 rgba(255,255,255,0.3) inset;
}

.help-nav-btn {
  background: linear-gradient(180deg, #faf8ff 0%, #ede0ff 100%);
  color: #9070c0;
  border-top: 1px solid rgba(255,255,255,0.9);
  border-left: 1px solid rgba(255,255,255,0.7);
  border-right: 1px solid #c0a0e8;
  border-bottom: 1px solid #c0a0e8;
  padding: 0.5vw 1vw;
  border-radius: 2px;
  font-size: clamp(10px, 0.8vw, 16px);
  cursor: pointer;
  font-weight: 700;
  box-shadow: 1px 1px 0 #c0a0e8;
  transition: background 0.1s;
}

.help-nav-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f3eaff 100%);
}

.help-nav-btn.active {
  background: linear-gradient(180deg, #d4b8f8 0%, #b898e8 100%);
  color: #ffffff;
  text-shadow: 1px 1px 0 #9070c0;
}

.help-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5vw;
  padding-left: 7.5vw;
}

.help-tab {
  display: none;
}

.help-tab.active {
  display: block;
}

.help-title {
  font-size: clamp(20px, 1.8vw, 40px);
  font-weight: 700;
  color: #7858a8;
  margin-bottom: 1.2vw;
  padding-bottom: 0.4vw;
  border-bottom: 2px solid #c0a0e8;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.help-body {
  font-size: clamp(11px, 0.8vw, 16px);
  color: gray;
  line-height: 1.8;
}

.help-text {
  font-size: clamp(20px, 1.8vw, 40px);
  color: #7858a8;
  padding-bottom: 2px;
  margin: 0.3vw;
}

.help-img-text2 {
  display: flex;
}

.help-img-text3 {
  display: flex;
  flex-direction: row-reverse;
}

.help-stroke-top {
  font-size: clamp(16px, 1.3vw, 28px);
}

.help-stroke-top p {
  font-size: clamp(12px, 0.9vw, 20px);
  margin: 0.6vw;
}

.help-top-img1 {
  margin: 0.6vw;
  height: 8vw;
  width: 57vw;
  background-image: url(/assets/layouts/help-top2-e110e926c2cddb831d4868ba1f49c3933b009c3b3fccda6602cef213dfc6a2af.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.help-top-img2 {
  margin: 1vw;
  height: 16vw;
  width: 16vw;
  background-image: url(/assets/layouts/help-top1-e8f13da8b17cab5dd619e3e677ed9abd0a62bee00a25df0db3805d8d89241e88.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.help-top-img3 {
  margin: 1vw;
  height: 17vw;
  width: 26vw;
  background-image: url(/assets/layouts/help-top3-26a8545671d92c2330018bdf5bec487ad90ba0e3212090d34890ff637c4a86cc.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.help-top-img4 {
  margin: 1vw;
  height: 10vw;
  width: 26vw;
  background-image: url(/assets/layouts/help-top4-b4b99a8167e69992944fb8f5ca7479aa19e71ffad04265e2b0626c33609cee91.png);
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.help-top-img5 {
  margin: 1vw;
  height: 16vw;
  width: 24vw;
  background-image: url(/assets/layouts/help-top5-31f8f1b6d2f7704fe2a9e1b8cc21845bb1d122f0665b485b61dba6cf9fabbfcf.png);
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.help-top-img6 {
  margin: 1vw;
  height: 16vw;
  width: 24vw;
  background-image: url(/assets/layouts/help-top6-b5226b5eb0732ccbbcfdcc1260b7c8647d4e7f2159f8b9531ef90cffb526a326.png);
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.help-top-img7 {
  margin: 1vw;
  height: 16vw;
  width: 24vw;
  background-image: url(/assets/layouts/help-top7-a8ccb13dcd3b5284861f3ca4316c7260e0e64e4a114fc730e0301aee5147fb0b.png);
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.help-top-img8 {
  margin: 1vw;
  height: 16vw;
  width: 24vw;
  background-image: url(/assets/layouts/help-top8-55606acce8865790b249c0e87fce15fd4ec217a434ed6f5bd808760df4e9b867.png);
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.help-top-img9 {
  margin: 1vw;
  height: 15vw;
  width: 17vw;
  background-image: url(/assets/layouts/help-top9-0f68af3e650cccc5a5ff4b855c83b2e6dbaa6a520b18c84fd036d887a09ccfb9.png);
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.help-top-img10 {
  margin: 1vw;
  height: 15vw;
  width: 17vw;
  background-image: url(/assets/layouts/help-top11-a5cd22d859ef3ad894ef5c19bc584ed6bbe147fa29518344054feb180f3f43ee.png);
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {

  /* ===== ヘルプページ ===== */
  .help-wrap {
    border-radius: 0;
    border: none;
  }

  .help-nav {
    padding: 8px 10px;
    padding-left: 10px;
    gap: 4px;
    flex-wrap: wrap;
  }

  .help-nav-btn {
    padding: 6px 10px;
    font-size: 11px;
  }

  .help-content {
    padding: 12px;
    padding-left: 12px;
  }

  .help-title {
    font-size: clamp(18px, 5vw, 28px);
    margin-bottom: 10px;
  }

  .help-body {
    font-size: 13px;
  }

  .help-text {
    font-size: clamp(18px, 5vw, 28px);
    margin: 4px;
  }

  .help-stroke-top {
    font-size: clamp(14px, 4vw, 20px);
  }

  .help-stroke-top p {
    font-size: clamp(12px, 3.5vw, 16px);
    margin: 6px;
  }

  .help-img-text2,
  .help-img-text3 {
    flex-direction: column;
    align-items: center;
  }

  .help-top-img1 {
    width: 90vw;
    height: 12vw;
    margin: 6px auto;
  }

  .help-top-img2 {
    width: 60vw;
    height: 60vw;
    margin: 8px auto;
  }

  .help-top-img3 {
    width: 85vw;
    height: 55vw;
    margin: 8px auto;
  }

  .help-top-img4 {
    width: 85vw;
    height: 35vw;
    margin: 8px auto;
  }

  .help-top-img5,
  .help-top-img6,
  .help-top-img7,
  .help-top-img8 {
    width: 85vw;
    height: 55vw;
    margin: 8px auto;
  }

  .help-top-img9,
  .help-top-img10 {
    width: 70vw;
    height: 60vw;
    margin: 8px auto;
  }
}

@media (max-height: 500px) and (orientation: landscape) {

  /* ===== ヘルプページ ===== */
  .help-wrap {
    border-radius: 16px;
    height: 100%;
  }

  .help-nav {
    padding: 4px 8px;
    padding-left: 2vw;
    gap: 3px;
  }

  .help-nav-btn {
    padding: 3px 8px;
    font-size: clamp(8px, 1.2vw, 12px);
  }

  .help-content {
    padding: 8px;
    padding-left: 2vw;
  }

  .help-title {
    font-size: clamp(14px, 2.5vw, 22px);
    margin-bottom: 6px;
    padding-bottom: 3px;
  }

  .help-body {
    font-size: clamp(9px, 1.2vw, 13px);
  }

  .help-text {
    font-size: clamp(14px, 2.5vw, 22px);
    margin: 2px;
  }

  .help-stroke-top {
    font-size: clamp(11px, 1.8vw, 16px);
  }

  .help-stroke-top p {
    font-size: clamp(9px, 1.2vw, 13px);
    margin: 4px;
  }

  .help-img-text2,
  .help-img-text3 {
    align-items: center;
  }

  .help-top-img1 {
    width: 50vw;
    height: 7vw;
    margin: 4px;
  }

  .help-top-img2 {
    width: 12vw;
    height: 12vw;
    margin: 4px;
  }

  .help-top-img3 {
    width: 20vw;
    height: 13vw;
    margin: 4px;
  }

  .help-top-img4 {
    width: 20vw;
    height: 8vw;
    margin: 4px;
  }

  .help-top-img5,
  .help-top-img6,
  .help-top-img7,
  .help-top-img8 {
    width: 18vw;
    height: 12vw;
    margin: 4px;
  }

  .help-top-img9,
  .help-top-img10 {
    width: 14vw;
    height: 12vw;
    margin: 4px;
  }
}
/* ===== index ===== */

.memo-idx-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  overflow-y: auto;
  background-color: #fdf6ff;
  border: 2px solid #9f7bca;
  border-right: none;
  border-radius: 30px;
  height: 100%;
}

.memo-idx-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 12px 16px;
  padding-left: 120px;
  width: 100%;
  background: linear-gradient(180deg, #e8d8ff 0%, #d4b8f8 100%);
  border-bottom: 2px solid #c0a0e8;
  box-shadow: 0 2px 0 rgba(255,255,255,0.3) inset;
}

.memo-idx-page-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.12em;
  text-shadow: 1px 1px 0px #9070c0;
}

.memo-idx-new-btn {
  background: linear-gradient(180deg, #faf8ff 0%, #ede0ff 100%);
  color: #9070c0;
  border-top: 1px solid rgba(255,255,255,0.9);
  border-left: 1px solid rgba(255,255,255,0.7);
  border-right: 1px solid #c0a0e8;
  border-bottom: 1px solid #c0a0e8;
  padding: 4px 14px;
  border-radius: 2px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 1px 1px 0 #c0a0e8;
}

.memo-idx-new-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f3eaff 100%);
}

.memo-idx-count {
  font-size: 18px;
  color: #b098d0;
  margin: 0.4rem 1rem;
  padding-left: 120px;
}

.memo-idx-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: 100%;
}

.memo-idx-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  padding: 1.5rem;
  padding-left: 140px;
  flex: 1;
  overflow-y: auto;
  align-content: start;
}

.memo-idx-card-wrap {
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.memo-idx-card-wrap:hover .memo-idx-card-thumb {
  filter: brightness(1.06);
  transform: scale(1.02);
}

.memo-idx-card-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #ede0ff, #d8c0f8);
  transition: filter 0.15s ease, transform 0.15s ease;
  border-top: 1px solid rgba(255,255,255,0.9);
  border-left: 1px solid rgba(255,255,255,0.7);
  border-right: 2px solid #c0a0e8;
  border-bottom: 2px solid #c0a0e8;
  box-shadow: 2px 2px 6px rgba(192, 160, 232, 0.2);
}

.memo-idx-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memo-idx-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  background: linear-gradient(135deg, #f0e8ff, #e4d4ff);
}

.memo-idx-card-img-placeholder-text {
  font-size: 11px;
  color: #a080c8;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
  width: 100%;
}

.memo-idx-card-info {
  padding: 0.4rem 0.1rem 0;
}

.memo-idx-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #9070c0;
  line-height: 1.3;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 1px 0 rgba(255,255,255,0.9);
}

.memo-idx-card-date {
  font-size: 10px;
  color: #c8b0e0;
  margin-top: 2px;
}

.memo-idx-detail {
  width: 240px;
  min-width: 240px;
  border-left: 2px solid #c0a0e8;
  padding: 1rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow-y: auto;
  background: linear-gradient(180deg, #faf8ff 0%, #f3eaff 100%);
  box-shadow: inset 2px 0 4px rgba(192, 160, 232, 0.08);
  height: 100%;
}

.memo-idx-detail.hidden {
  display: none;
}

.memo-detail-panel {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.memo-detail-date {
  font-size: 10px;
  color: #b098d0;
}

.memo-detail-title {
  font-size: 13px;
  font-weight: 700;
  color: #7858a8;
  line-height: 1.4;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.memo-detail-text {
  font-size: 11px;
  color: #a080c8;
  line-height: 1.7;
  white-space: pre-wrap;
  background: linear-gradient(180deg, #faf8ff 0%, #f3eaff 100%);
  padding: 0.6rem;
  border-top: 1px solid #c0a0e8;
  border-left: 1px solid #c0a0e8;
  border-right: 1px solid rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.7);
  box-shadow: inset 1px 1px 3px rgba(0,0,0,0.06);
}

.memo-detail-img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  border-top: 1px solid rgba(255,255,255,0.8);
  border-left: 1px solid rgba(255,255,255,0.6);
  border-right: 2px solid #c0a0e8;
  border-bottom: 2px solid #c0a0e8;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.15);
}

.memo-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: auto;
}

.memo-detail-edit-btn {
  display: block;
  text-align: center;
  background: linear-gradient(180deg, #faf8ff 0%, #ede0ff 100%);
  color: #9070c0;
  border-top: 1px solid rgba(255,255,255,0.9);
  border-left: 1px solid rgba(255,255,255,0.7);
  border-right: 1px solid #c0a0e8;
  border-bottom: 1px solid #c0a0e8;
  padding: 6px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 1px 1px 0 #c0a0e8;
  border-radius: 2px;
}

.memo-detail-edit-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f3eaff 100%);
}

.memo-detail-delete-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(180deg, #ffe8e8 0%, #f0c0c0 100%);
  color: #a03030;
  border-top: 1px solid rgba(255,255,255,0.8);
  border-left: 1px solid rgba(255,255,255,0.6);
  border-right: 1px solid #c04040;
  border-bottom: 1px solid #c04040;
  padding: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 1px 1px 0 #c04040;
  border-radius: 2px;
}

.memo-detail-delete-btn:hover {
  background: linear-gradient(180deg, #fff0f0 0%, #f8d0d0 100%);
}

.memo-detail-empty {
  font-size: 11px;
  color: #c8b0e0;
  text-align: center;
}

.memo-detail-empty.hidden {
  display: none;
}

/* ===== new / edit ===== */

.memo-new-wrap {
   margin-left: 50px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.memo-new-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  width: 60vw;
  padding: 2rem;
  background: linear-gradient(180deg, #e8d8ff 0%, #d4b8f8 100%);
  border-bottom: 2px solid #c0a0e8;
  box-shadow: 0 2px 0 rgba(255,255,255,0.3) inset;
}

.memo-new {
  background-color: #faf8ff;
  padding: 1rem;
  height: 100%;
}

.memo-new-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-shadow: 1px 1px 0px #9070c0;
}

.memo-new-field {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.memo-new-label {
  font-size: 13px;
  font-weight: 700;
  color: #a080c8;
  margin: 0.6rem;
}

.memo-new-textarea {
  border-top: 1px solid #c0a0e8;
  border-left: 1px solid #c0a0e8;
  border-right: 1px solid rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.7);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #7858a8;
  outline: none;
  background: linear-gradient(180deg, #faf8ff 0%, #f3eaff 100%);
  resize: none;
  line-height: 1.7;
  flex: 1;
  width: 100%;
  box-shadow: inset 1px 1px 3px rgba(0,0,0,0.06);
}

.memo-new-file-wrap {
  position: relative;
  cursor: pointer;
}

.memo-new-file {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.memo-new-file-preview {
  border: 2px dashed #c0a0e8;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #f0e8ff, #e4d4ff);
  min-height: 120px;
}

.memo-new-file-text {
  font-size: 12px;
  color: #b098d0;
}

.memo-new-actions {
  display: flex;
  justify-content: center;
}

.memo-new-submit {
  width: 100%;
  background: linear-gradient(180deg, #e8d8ff 0%, #ceb0f0 100%);
  color: #7858a8;
  padding: 12px 45%;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border-top: 1px solid rgba(255,255,255,0.9);
  border-left: 1px solid rgba(255,255,255,0.7);
  border-right: 1px solid #c0a0e8;
  border-bottom: 1px solid #c0a0e8;
  box-shadow: 1px 1px 0 #c0a0e8;
  margin: 1rem;
}

.memo-new-submit:hover {
  background: linear-gradient(180deg, #f0e4ff 0%, #dac4f8 100%);
}

.memo-new-field-short {
  display: flex;
  flex-direction: column;
}

.memo-new-input {
  border-top: 1px solid #c0a0e8;
  border-left: 1px solid #c0a0e8;
  border-right: 1px solid rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.7);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #7858a8;
  outline: none;
  background: linear-gradient(180deg, #faf8ff 0%, #f3eaff 100%);
  width: 100%;
  box-shadow: inset 1px 1px 3px rgba(0,0,0,0.06);
}

.memo-new-file-preview img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.memo-new-back-btn {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(180deg, #faf8ff 0%, #ede0ff 100%);
  color: #9070c0;
  border-top: 1px solid rgba(255,255,255,0.9);
  border-left: 1px solid rgba(255,255,255,0.7);
  border-right: 1px solid #c0a0e8;
  border-bottom: 1px solid #c0a0e8;
  padding: 4px 14px;
  border-radius: 2px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 1px 1px 0 #c0a0e8;
}

.memo-new-back-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f3eaff 100%);
}

/* ===== edit ===== */

.memo-edit-img-current {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border-top: 1px solid rgba(255,255,255,0.8);
  border-left: 1px solid rgba(255,255,255,0.6);
  border-right: 2px solid #c0a0e8;
  border-bottom: 2px solid #c0a0e8;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.15);
}
/* 詳細ボタン */
.task-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 18px;
  color: #6b7280;
  position: relative;
  margin-left: auto;
}

.task-menu-btn:hover {
  color: #374151;
}

/* ドロップダウンメニュー */
.task-menu-dropdown {
  display: none;
  position: fixed;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 120px;
  margin-top: 4px;
}

.task-menu-dropdown.show {
  display: block;
}

.task-menu-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  color: #374151;
  font-size: 14px;
  transition: background-color 0.2s;
}

.task-menu-item:hover {
  background-color: #f3f4f6;
}

.task-menu-item:first-child {
  border-radius: 8px 8px 0 0;
}

.task-menu-item:last-child {
  border-radius: 0 0 8px 8px;
}

.task-menu-item.delete {
  color: #dc2626;
}

.task-menu-item.delete:hover {
  background-color: #fee2e2;
}

/* メニューボタンのコンテナ */
.task-menu-container {
  position: relative;
  display: flex;
  align-items: center;
}
.main-back {
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
  background-color: #faf8ff;
  width: 100%;
  border-radius: 30px;
  container-type: inline-size;
  overflow: hidden;
}

.main-head {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  height: 60px;
  font-size: clamp(8px, 0.9vw, 14px);
  background: linear-gradient(180deg, #e8d8ff 0%, #d4b8f8 100%);
  border-radius: 14px;
  margin-top: 25px;
  box-shadow: 3px 3px 6px rgba(192, 160, 232, 0.3);
  overflow: hidden;
  flex-wrap: nowrap;
}

.main-header p {
  padding: 10px 1.3vw;
  margin: 0px 5px;
  color: #7858a8;
  font-size: 18px;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}
.pa {
  border-right: solid 1px #c0a0e8;
}

.add-task {
  height: 60px;
  color: #9070c0;
  margin-top: 25px;
  padding: 20px 1.2vw;
  border-radius: 40px;
  background: linear-gradient(180deg, #faf8ff 0%, #ede0ff 100%);
  font-size: 16px;
  font-weight: 700;
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  border-left: 1px solid rgba(255, 255, 255, 0.7);
  border-right: 3px solid #c0a0e8;
  border-bottom: 3px solid #c0a0e8;
  box-shadow: 1px 1px 0 #c0a0e8;
  box-shadow: 3px 3px 6px rgba(192, 160, 232, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-day-list {
  background-color: rgba(245, 240, 255, 0.685);
  margin: 20px;
  height: 86%;
  padding: 3px;
  border-radius: 14px;
}

.todo-tasks {
  height: 35%;
  overflow-y: scroll;
}

.todo-tasks::-webkit-scrollbar {
  display: none;
}

.list-head,
.today-head {
  color: #7858a8;
  display: flex;
  font-size: clamp(16px, 2cqw, 32px);
  margin: 15px 30px;
  background: linear-gradient(transparent 50%, rgba(255, 255, 255, 0.6) 50%);
}

.list-todo,
.today-todo {
  box-shadow: 2px 2px 6px rgba(192, 160, 232, 0.3);
  background-color: rgba(240, 232, 255, 0.637);
  border: solid 2px #c0a0e8;
  margin: 20px 0px;
  border-radius: 10px;
  container-type: inline-size;
}

.list-todo {
  margin-left: 6vw;
  margin-right: 15px;
  flex: 0 0 60%;
}

.today-todo {
  flex: 1;
  min-width: 0;
  margin-right: 15px;
  overflow-y: scroll;
}

.today-todo::-webkit-scrollbar {
  display: none;
}

.main-top {
  margin: 20px 20px 10px;
  padding: 15px;
  border-radius: 10px;
  display: flex;
  background: linear-gradient(180deg, #faf8ff 0%, #f3eaff 100%);
  box-shadow: 3px 3px 4px -2px rgba(192, 160, 232, 0.4);
  border-left: solid 12px #e8d8ff;
}

.today-todo .main-top {
  overflow: hidden;
}

.today-todo {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.today-todo .main-day {
  flex-shrink: 0;
}

.child-tops {
  border-bottom: solid 2px #e0d0f8;
}

.child-task,
.main-task {
  margin-left: 20px;
  width: 70%;
  padding: 2px;
  color: #7858a8;
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  word-break: break-word;
}



.checkbox {
  box-sizing: border-box;
  cursor: pointer;
  display: inline-block;
  padding: 5px 30px;
  position: relative;
  width: auto;
}

.child-day,
.main-day {
  margin-left: 10px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 8px;
  color: #a080c8;
  font-size: 12px;
}

.child-tops {
  margin: 2px 60px;
  padding: 15px;
  display: flex;
  overflow: hidden
}

.image-percent {
  height: 300px;
  width: 300px;
  margin-top: 20px;
  margin-right: 50px;
} 

.task-percent {
  margin: 10px;
  height: 53%;
  box-shadow: 2px 2px 6px rgba(192, 160, 232, 0.2);
  border: solid #ffffff 3px;
  background: linear-gradient(180deg, #ffffff 0%, #faf8ff 52%, #f3eaff 68%, #e8d8ff 83%, #d4b8f8 100%);
  border-radius: 14px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 6vw;
  padding-right: 6.5vw;
  padding-top: 4vw;
  font-size: 24px;
  color: #7858a8;
  font-weight: bold;
  overflow: hidden;
}



.progress-circle {
  position: relative;
  width: 200px;
  height: 200px;
}

.progress-circle svg {
  transform: rotate(-90deg);
}

.progress-bg {
  fill: none;
  stroke: #e8d8ff;
  stroke-width: 15;
}

.progress-bar {
  fill: none;
  stroke: #b898e8;
  stroke-width: 15;
  stroke-linecap: round;
  stroke-dasharray: 502.4;
  stroke-dashoffset: 502.4;
  transition: stroke-dashoffset 0.6s ease;
}

.progress-text {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.progress-text .percent {
  font-size: 42px;
  font-weight: bold;
  color: #9070c0;
  line-height: 1;
}

.progress-text .fraction {
  font-size: 18px;
  color: #b098d0;
  margin-top: 8px;
}

.main-top.priority-low-bg,
.child-tops.priority-low-bg {
  border-color: #b3cdff;
}

.main-top.priority-medium-bg,
.child-tops.priority-medium-bg {
  border-color: #ffe7b3;
}

.main-top.priority-high-bg,
.child-tops.priority-high-bg {
  border-color: #e8b8f0;
}

.priority-low {
  color: #3002ff;
  font-weight: bold;
}

.priority-medium {
  color: #ffd902;
  font-weight: bold;
}

.priority-high {
  color: #c060b0;
  font-weight: bold;
}

.task-deadline {
  font-size: 0.7rem;
  color: #b098d0;
  margin-left: 8px;
}

.task-deadline.overdue {
  color: #dc2626;
  font-weight: bold;
}

@media (max-width: 768px) {

  .main {
    width: 100vw;
    height: calc(100vh - 100px);
  }

  /* ===== TODO用 ===== */
  .main-back {
    flex-direction: column;
    border-radius: 0;
    overflow: hidden;
    height: 100%;
  }

  .list-todo {
    flex: none;
    width: 100%;
    height: 55%;
    margin: 0;
    margin-bottom: 10px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    overflow-y: auto;
  }

  .list-todo.list-todo-form {
    height: 100%;
    margin-bottom: 0;
    overflow-y: auto;
  }

  .list-todo::-webkit-scrollbar {
    display: none;
  }

  .today-todo {
    flex: none;
    width: 100%;
    height: 40%;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    overflow-y: auto;
  }

  .today-todo::-webkit-scrollbar {
    display: none;
  }

  .main-head {
    flex-direction: column;
    align-items: stretch;
  }

  .main-header {
    flex-wrap: wrap;
    height: auto;
    padding: 8px;
    font-size: clamp(10px, 3vw, 14px);
    margin: 10px 10px 0;
  }

  .add-task {
    margin: 8px 10px;
    text-align: center;
  }

  .main-day-list {
    margin: 10px;
    height: auto;
  }

  .task-percent {
    height: auto;
    padding: 20px;
    justify-content: center;
  }

  .main-top {
    margin: 10px;
    padding: 10px;
    flex-wrap: wrap;
  }

  .child-tops {
    margin: 2px 20px;
    padding: 10px;
    flex-wrap: wrap;
  }

  .child-task,
  .main-task {
    width: 60%;
    margin-left: 10px;
    font-size: clamp(12px, 3.5vw, 16px);
  }

  .child-day,
  .main-day {
    font-size: clamp(10px, 2.5vw, 12px);
  }

  .list-head,
  .today-head {
    margin: 10px 15px;
    font-size: clamp(14px, 4vw, 24px);
  }

  .todo-tasks {
    height: auto;
    max-height: none;
    overflow-y: visible;
  }

  .progress-circle {
    width: 150px;
    height: 150px;
  }

  .progress-circle svg {
    width: 150px;
    height: 150px;
  }

  .progress-bg,
  .progress-bar {
    cx: 75;
    cy: 75;
    r: 60;
  }

  .progress-bar {
    stroke-dasharray: 376.8;
    stroke-dashoffset: 376.8;
  }

  .progress-text .percent {
    font-size: 32px;
  }

  .progress-text .fraction {
    font-size: 14px;
  }


}

.task-head {
  font-weight: bold;
  padding: 1vw 0px;
  font-size: 40px;
  text-align: center;
  border-bottom: solid 1px #c0a0e8;
  color: #7858a8;
  background: linear-gradient(180deg, #f7f2ff 0%, #e6d2ff 100%);
}

.tasks {
  display: flex;
  justify-content: space-around;
  container-type: inline-size;
}

.task-content,
.task-add {
  background: rgba(245, 240, 255, 0.55);
  border: 1px solid #c0a0e8;
  border-radius: 16px;
  padding: 20px;
  margin: 1vw;
  width: 35vw;
  height: 640px;
  zoom: 1;
  transition: zoom 0.3s ease;
}

@container (max-width: 1200px) {
  .task-content,
  .task-add {
    zoom: 0.95;
  }
}

@container (max-width: 1000px) {
  .task-content,
  .task-add {
    zoom: 0.9;
  }
}

@container (max-width: 900px) {
  .task-content,
  .task-add {
    zoom: 0.85;
  }
}

@container (max-width: 800px) {
  .task-content,
  .task-add {
    zoom: 0.8;
  }
}

@container (max-width: 700px) {
  .task-content,
  .task-add {
    zoom: 0.75;
  }
}

@container (max-width: 600px) {
  .task-content,
  .task-add {
    zoom: 0.7;
  }
}

@container (max-width: 500px) {
  .tasks {
    flex-direction: column;
    align-items: center;
  }

  .task-content,
  .task-add {
    width: 90cqw;
    height: auto;
    margin: 1cqw auto;
    zoom: 1;
  }
}

.task-view {
  display: flex;
}

.task-add {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.task-add label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 18px;
  color: #7858a8;
}

.task-add input,
.task-add select,
.task-add textarea,
.task-add button {
  font: inherit;
}

.task-add input,
.task-add select,
.task-add textarea {
  padding: 10px 12px;
  border-top: 1px solid #c0a0e8;
  border-left: 1px solid #c0a0e8;
  border-right: 1px solid rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.7);
  border-radius: 10px;
  background: linear-gradient(180deg, #faf8ff 0%, #f3eaff 100%);
  color: #7858a8;
}

.task-add textarea {
  min-height: 120px;
  resize: vertical;
}

.task-add .add {
  margin-top: auto;
  border-radius: 50px;
  padding: 1.5vw;
  background: linear-gradient(180deg, #e8d8ff 0%, #c8a8f0 100%);
  color: #ffffff;
  border-top: 1px solid rgba(255,255,255,0.9);
  border-left: 1px solid rgba(255,255,255,0.7);
  border-right: 1px solid #c0a0e8;
  border-bottom: 1px solid #c0a0e8;
  box-shadow: 1px 1px 0 #c0a0e8;
  transition: background 0.3s ease;
}

.task-add .add:hover {
  background: linear-gradient(180deg, #f0e4ff 0%, #d4b8f8 100%);
}

.back-link {
  color: #9070c0;
  border-top: 1px solid rgba(255,255,255,0.9);
  border-left: 1px solid rgba(255,255,255,0.7);
  border-right: 1px solid #c0a0e8;
  border-bottom: 1px solid #c0a0e8;
  box-shadow: 2px 2px 4px rgba(192, 160, 232, 0.3);
  border-radius: 40px;
  font-size: 80%;
  margin-top: 8px;
  padding: 0.2vw 0.6vw;
  background: linear-gradient(180deg, #faf8ff 0%, #ede0ff 100%);
  transition: all 0.3s ease;
}

.back-link:hover {
  box-shadow: 3px 3px 6px rgba(192, 160, 232, 0.4);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .tasks {
    flex-direction: column;
    align-items: center;
  }

  .task-content,
  .task-add {
    width: 90vw;
    margin: 1vh auto;
  }
}

@media (max-width: 768px) {
  .task-head {
    font-size: clamp(20px, 6vw, 32px);
    margin: 10px 0;
    padding-bottom: 10px;
  }

  .tasks {
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    height: calc(100vh - 200px);
  }

  .tasks::-webkit-scrollbar {
    display: none;
  }

  .task-content,
  .task-add {
    width: 90vw;
    height: auto;
    margin: 8px auto;
    zoom: 1;
  }

  .task-content {
    padding: 12px;
  }

  .task-add {
    padding: 16px;
  }

  .task-add label {
    font-size: 14px;
  }

  .task-add .add {
    padding: 14px;
    font-size: 16px;
  }

  .back-link {
    padding: 4px 12px;
    font-size: 14px;
  }

  .list-todo {
    width: 100%;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    overflow: hidden;
  }

  .main-back {
    border-radius: 0;
    overflow: hidden;
    height: 100%;
  }
}
/* ============================
   マイページ
   ============================ */

.mypage-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: #faf8ff;
  border: 2px solid #9f7bca;
  border-right: none;
  border-radius: 30px;
}

.mypage-wrap::-webkit-scrollbar {
  display: none;
}

/* ===== ヘッダー ===== */
.mypage-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 14px 24px;
  background: linear-gradient(180deg, #e8d8ff 0%, #d4b8f8 100%);
  border-bottom: 2px solid #c0a0e8;
  box-shadow: 0 2px 0 rgba(255,255,255,0.3) inset;
  position: relative;
}

.mypage-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.12em;
  text-shadow: 1px 1px 0px #9070c0;
}

.mypage-back-btn {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(180deg, #faf8ff 0%, #ede0ff 100%);
  color: #9070c0;
  border-top: 1px solid rgba(255,255,255,0.9);
  border-left: 1px solid rgba(255,255,255,0.7);
  border-right: 1px solid #c0a0e8;
  border-bottom: 1px solid #c0a0e8;
  padding: 4px 14px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 1px 1px 0 #c0a0e8;
}

.mypage-back-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f3eaff 100%);
}

/* ===== コンテンツ ===== */
.mypage-content {
  padding: 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

/* ===== プロフィールカード ===== */
.mypage-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: linear-gradient(180deg, #faf8ff 0%, #f3eaff 100%);
  border-top: 1px solid rgba(255,255,255,0.9);
  border-left: 1px solid rgba(255,255,255,0.7);
  border-right: 2px solid #c0a0e8;
  border-bottom: 2px solid #c0a0e8;
  border-radius: 16px;
  box-shadow: 2px 2px 8px rgba(192, 160, 232, 0.15);
}

.mypage-avatar {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.mypage-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mypage-card-name {
  font-size: 22px;
  font-weight: 700;
  color: #7858a8;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.mypage-card-since {
  font-size: 12px;
  color: #b098d0;
}

/* ===== 情報一覧 ===== */
.mypage-info-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #c0a0e8;
  border-radius: 10px;
  overflow: hidden;
}

.mypage-info-item {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  background: #faf8ff;
  border-bottom: 1px solid #e8d8ff;
}

.mypage-info-item:last-child {
  border-bottom: none;
}

.mypage-info-label {
  width: 140px;
  font-size: 13px;
  font-weight: 700;
  color: #9070c0;
  flex-shrink: 0;
}

.mypage-info-value {
  font-size: 14px;
  color: #7858a8;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ===== バッジ ===== */
.mypage-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
}

.mypage-badge-ok {
  background: linear-gradient(180deg, #d8ffd8 0%, #b8f0b8 100%);
  color: #408040;
  border: 1px solid #a0d8a0;
}

.mypage-badge-pending {
  background: linear-gradient(180deg, #fff8d8 0%, #ffe8a0 100%);
  color: #907020;
  border: 1px solid #e0c870;
}

.mypage-badge-none {
  background: linear-gradient(180deg, #f0e8ff 0%, #e0d0f8 100%);
  color: #9070c0;
  border: 1px solid #c0a0e8;
}

/* ===== アクションボタン ===== */
.mypage-actions {
  display: flex;
  justify-content: center;
}

.mypage-edit-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 28px;
  background: linear-gradient(180deg, #e8d8ff 0%, #ceb0f0 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 40px;
  border-top: 1px solid rgba(255,255,255,0.9);
  border-left: 1px solid rgba(255,255,255,0.7);
  border-right: 1px solid #c0a0e8;
  border-bottom: 1px solid #c0a0e8;
  box-shadow: 1px 1px 0 #c0a0e8;
  text-shadow: 1px 1px 0 #9070c0;
  transition: background 0.2s;
}

.mypage-edit-btn:hover {
  background: linear-gradient(180deg, #f0e4ff 0%, #d4b8f8 100%);
}

.mypage-edit-btn i {
  width: 16px;
  height: 16px;
}

/* ===== 危険ゾーン ===== */
.mypage-danger-zone {
  margin-top: 16px;
  padding: 16px 20px;
  border: 1px solid #e0b0b0;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff8f8 0%, #fff0f0 100%);
}

.mypage-danger-title {
  font-size: 13px;
  font-weight: 700;
  color: #a04040;
  margin-bottom: 6px;
}

.mypage-danger-desc {
  font-size: 11px;
  color: #c08080;
  margin-bottom: 12px;
  line-height: 1.6;
}

.mypage-delete-btn {
  background: linear-gradient(180deg, #ffe8e8 0%, #f0c0c0 100%);
  color: #a03030;
  border-top: 1px solid rgba(255,255,255,0.8);
  border-left: 1px solid rgba(255,255,255,0.6);
  border-right: 1px solid #c04040;
  border-bottom: 1px solid #c04040;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 1px 1px 0 #c04040;
  border-radius: 4px;
  transition: background 0.2s;
}

.mypage-delete-btn:hover {
  background: linear-gradient(180deg, #fff0f0 0%, #f8d0d0 100%);
}

/* ===== 編集フォーム ===== */
.mypage-form-area {
  padding: 24px 40px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.mypage-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mypage-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mypage-form-label {
  font-size: 13px;
  font-weight: 700;
  color: #9070c0;
}

.mypage-form-input {
  padding: 10px 14px;
  border-top: 1px solid #c0a0e8;
  border-left: 1px solid #c0a0e8;
  border-right: 1px solid rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.7);
  border-radius: 8px;
  background: linear-gradient(180deg, #faf8ff 0%, #f3eaff 100%);
  color: #7858a8;
  font-size: 14px;
  outline: none;
  box-shadow: inset 1px 1px 3px rgba(0,0,0,0.06);
  font-family: "DotGothic16", sans-serif;
}

.mypage-form-input:focus {
  border-color: #b898e8;
  box-shadow: 0 0 0 2px rgba(184, 152, 232, 0.2), inset 1px 1px 3px rgba(0,0,0,0.06);
}

.mypage-form-hint {
  font-size: 11px;
  color: #b098d0;
  margin-top: 2px;
}

.mypage-form-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #c0a0e8, transparent);
  margin: 4px 0;
}

.mypage-form-submit {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.mypage-submit-btn {
  padding: 12px 40px;
  background: linear-gradient(180deg, #e8d8ff 0%, #ceb0f0 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 40px;
  border-top: 1px solid rgba(255,255,255,0.9);
  border-left: 1px solid rgba(255,255,255,0.7);
  border-right: 1px solid #c0a0e8;
  border-bottom: 1px solid #c0a0e8;
  box-shadow: 1px 1px 0 #c0a0e8;
  text-shadow: 1px 1px 0 #9070c0;
  cursor: pointer;
  transition: background 0.2s;
  font-family: "DotGothic16", sans-serif;
}

.mypage-submit-btn:hover {
  background: linear-gradient(180deg, #f0e4ff 0%, #d4b8f8 100%);
}

/* ===== スマホ対応 ===== */
@media (max-width: 768px) {
  .mypage-wrap {
    border-radius: 0;
    border: none;
  }

  .mypage-content {
    padding: 16px;
  }

  .mypage-card {
    padding: 14px 16px;
    gap: 14px;
  }

  .mypage-avatar {
    width: 50px;
    height: 50px;
  }

  .mypage-card-name {
    font-size: 18px;
  }

  .mypage-info-label {
    width: 100px;
    font-size: 12px;
  }

  .mypage-info-value {
    font-size: 13px;
  }

  .mypage-form-area {
    padding: 16px;
  }

  .mypage-header {
    padding: 10px 16px;
  }

  .mypage-title {
    font-size: 18px;
  }

  .mypage-back-btn {
    font-size: 12px;
    padding: 3px 10px;
  }
}

.user-flash-notice {
  text-align: center;
  padding: 12px 24px;
  margin: 20px auto;
  max-width: 500px;
  background: linear-gradient(180deg, #e8ffe8 0%, #d0f0d0 100%);
  color: #408040;
  border: 1px solid #a0d8a0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.user-flash-alert {
  text-align: center;
  padding: 12px 24px;
  margin: 20px auto;
  max-width: 500px;
  background: linear-gradient(180deg, #fff8e0 0%, #ffe8a0 100%);
  color: #906020;
  border: 1px solid #e0c870;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}


.user-unconfirmed {
  text-align: center;
  padding: 30px 20px;
}

.user-unconfirmed-message {
  font-size: 18px;
  font-weight: 700;
  color: #7858a8;
  line-height: 1.8;
  margin-bottom: 12px;
}

.user-unconfirmed-email {
  font-size: 13px;
  color: #b098d0;
  margin-bottom: 20px;
}

.user-resend-btn {
  padding: 8px 24px;
  background: linear-gradient(180deg, #e8d8ff 0%, #ceb0f0 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 40px;
  border-top: 1px solid rgba(255,255,255,0.9);
  border-left: 1px solid rgba(255,255,255,0.7);
  border-right: 1px solid #c0a0e8;
  border-bottom: 1px solid #c0a0e8;
  box-shadow: 1px 1px 0 #c0a0e8;
  cursor: pointer;
  text-shadow: 1px 1px 0 #9070c0;
}

.user-resend-btn:hover {
  background: linear-gradient(180deg, #f0e4ff 0%, #d4b8f8 100%);
}
.alarm {
  height: 38%;
}

.alarm-main {
  padding: 8px 16px;
  margin: 10px 20px;
  background-color: #ffffff;
  overflow-y: scroll;
  border-radius: 14px;
  border: 4px inset #dddddd;
  box-shadow: 0px 0px 10px 0px inset rgb(155, 155, 155);
  background-color: #e7e7e7;
  height: 90%;
  position: sticky;
}

.alarm-main::-webkit-scrollbar {
  display: none;
}

.alarm-time li {
  font-family: "DotGothic16", sans-serif;
  overflow: hidden;
  font-size: clamp(14px, 8cqw, 30px);
  color: white;
  paint-order: stroke;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2px;
  padding: 10px 20px;
  border-radius: 20px;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  border: groove 2px rgb(30, 39, 117);
}



.alarm-time-display::-webkit-calendar-picker-indicator {
  filter: invert(1); /* 白くする */
  width: 30px;
  height: 30px;
  cursor: pointer;
}


.alarm-time input[type=checkbox] {
  display: none;
}

.alarm-setting {
  border-radius: 14px;
  height: clamp(24px, 3cqh, 40px);
  background-color: #dadada;
  margin: 5px 0px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alarm-delete,
.alarm-addition {
  font-size: clamp(12px, 5cqw, 20px);
  height: clamp(24px, 3cqh, 30px);
  width: 30%;
  border-radius: 40px;
  border: inset 1px rgb(0, 0, 0);
  box-shadow: inset -2px -2px 1px rgba(0, 0, 0, 0.3), inset 2px 2px 0 rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  color: #414141;
}

.alarm-addition {
  padding: 1px 2%;
  background-color: #ffc0e0;
}

.alarm-delete {
  padding: 1px 2%;
  background-color: #c0d9ff;
}

.alarm-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
  flex-shrink: 0;
}

.alarm-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.alarm-toggle-slider {
  position: absolute;
  inset: 0;
  background: #b5b4ff;
  border-radius: 24px;
  transition: 0.3s;
}

.alarm-toggle-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.alarm-toggle input:checked + .alarm-toggle-slider {
  background: #ffaded;
}

.alarm-toggle input:checked + .alarm-toggle-slider::before {
  transform: translateX(20px);
}


/* アラーム追加モーダル */
.alarm-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.alarm-modal.active {
  display: flex;
}

.alarm-modal-content {
  background: linear-gradient(180deg, #fff8fb 0%, #ffe8f3 100%);
  border-top: 2px solid rgba(255,255,255,0.9);
  border-left: 2px solid rgba(255,255,255,0.7);
  border-right: 2px solid #e888b0;
  border-bottom: 2px solid #e888b0;
  border-radius: 16px;
  padding: 24px 32px;
  min-width: 350px;
  box-shadow: 4px 4px 0 #e888b0, 2px 2px 8px rgba(0,0,0,0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.alarm-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #a05070;
  margin: 0 0 16px 0;
  text-align: center;
  border-bottom: 2px solid #e888b0;
  padding-bottom: 8px;
  letter-spacing: 0.1em;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.8);
}

.alarm-modal-body {
  margin-bottom: 20px;
}

.alarm-modal-body label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #c06090;
  margin-bottom: 8px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.alarm-time-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 20px;
  border-top: 1px solid #e888b0;
  border-left: 1px solid #e888b0;
  border-right: 1px solid rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.7);
  border-radius: 4px;
  background: linear-gradient(180deg, #fff8fb 0%, #ffe8f3 100%);
  color: #a05070;
  box-sizing: border-box;
  cursor: pointer;
  box-shadow: inset 1px 1px 3px rgba(0,0,0,0.06);
}

.alarm-time-input::-webkit-calendar-picker-indicator {
  cursor: pointer !important;
  font-size: 20px !important;
  opacity: 1 !important;
  display: block !important;
}

.alarm-modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.alarm-modal-save,
.alarm-modal-cancel {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 24px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.1s;
  box-shadow: 1px 1px 0 #e888b0;
  border-top: 1px solid rgba(255,255,255,0.9);
  border-left: 1px solid rgba(255,255,255,0.7);
  border-right: 1px solid #e888b0;
  border-bottom: 1px solid #e888b0;
}

.alarm-modal-save {
  background: linear-gradient(180deg, #ffd6ed 0%, #ffb0d0 100%);
  color: #ffffff;
  text-shadow: 1px 1px 0 #c06090;
}

.alarm-modal-save:hover {
  background: linear-gradient(180deg, #ffe0f3 0%, #ffc8e0 100%);
}

.alarm-modal-save:active {
  border-top: 1px solid #e888b0;
  border-left: 1px solid #e888b0;
  border-right: 1px solid rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.7);
  box-shadow: none;
}

.alarm-modal-cancel {
  background: linear-gradient(180deg, #fff8fb 0%, #ffe8f3 100%);
  color: #c06090;
}

.alarm-modal-cancel:hover {
  background: linear-gradient(180deg, #ffffff 0%, #fff0f6 100%);
}

.alarm-modal-cancel:active {
  border-top: 1px solid #e888b0;
  border-left: 1px solid #e888b0;
  border-right: 1px solid rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.7);
  box-shadow: none;
}
.side-bar {
  container-type: size;
  display: flex;
  justify-content: center;
  flex-direction: column;

  font-family: "Jersey 10", sans-serif;
  overflow: hidden;

  border-radius: 16px;
  width: clamp(300px, 22vw, 600px);
  height: clamp(600px, 94vh, 2160px);

  border: 1px solid rgb(255, 194, 245);
  box-shadow: 4px 4px rgb(255, 194, 225);
  background-image: linear-gradient(359deg, #ffffff 35%, rgb(255, 224, 245));
}

.header-clock {
  width: 100%;
  padding: 14px;
}

.week-clock-date {
  display: flex;
  flex-direction: column;
}




.main-clock,
.week-and-year {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  border: inset #d6c0fd;
  paint-order: stroke;
  box-shadow: 0px 0px 7px 0px inset rgb(75, 47, 128),
    0px 0px 7px 0px #ffffff;
  -webkit-text-stroke: 3px rgb(167, 167, 167);

}

.main-clock {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.2)),
    url(/assets/layouts/clock背景1-026b84596eba47373d2e54661d4444eba0ceab1d8b62788824b23abf04536142.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-size: clamp(30px, 30cqw, 100px);
}

.week-and-year {
  display: flex;
  container-type: inline-size;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.2)),
    url(/assets/layouts/clock背景2-02701b074340444a2cf11aa12f370ca190f32f959f6db8265c32441bd414ed3a.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  gap: 1vw;
  font-size: clamp(10px, 10cqw, 30px);
}
/* ============================
   スマホ共通（768px以下）
   ============================ */
@media (max-width: 768px) {

  /* ===== メモ一覧 ===== */
  .memo-idx-wrap {
    border-radius: 0;
    border: none;
  }

  .memo-idx-header {
    padding: 10px 12px;
    padding-left: 12px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .memo-idx-page-title {
    font-size: 18px;
  }

  .memo-idx-count {
    padding-left: 12px;
    font-size: 14px;
    margin: 4px 8px;
  }

  .memo-idx-body {
    flex-direction: column;
    overflow-y: auto;
    height: 100%;
  }

  .memo-idx-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
    padding-left: 10px;
    overflow-y: auto;
  }

  .memo-idx-detail {
    width: 100%;
    min-width: unset;
    border-left: none;
    border-top: 2px solid #c0a0e8;
    max-height: 50vh;
    overflow-y: auto;
  }

  .memo-idx-card-title {
    font-size: 11px;
  }

  .memo-idx-card-date {
    font-size: 9px;
  }

  /* ===== メモ新規・編集 ===== */
  .memo-new-wrap {
    margin-left: 0;
    width: 100%;
  }

  .memo-new-header {
    width: 100%;
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .memo-new-title {
    font-size: 18px;
  }

  .memo-new-back-btn {
    position: static;
    transform: none;
    margin-top: 4px;
  }

  .memo-new {
    padding: 10px;
    overflow-y: auto;
    height: calc(100vh - 200px);
  }

  .memo-new-textarea {
    min-height: 100px;
    font-size: 14px;
  }

  .memo-new-submit {
    width: 80%;
    padding: 12px 32%;
    font-size: 14px;
    margin: 1rem auto;
    display: block;
    border-radius: 999px;
  }

  .memo-new-label {
    font-size: 12px;
  }

  .memo-new-input {
    font-size: 14px;
  }

  /* ===== カレンダー一覧 ===== */
  .cal-wrap {
    margin: 0;
    margin-left: 0;
    border-radius: 0;
    border: none;
    height: 100%;
  }

  .cal-header {
    padding: 8px 10px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .cal-header .month-label {
    font-size: 14px;
    min-width: 100px;
  }

  .cal-header .arrow-btn {
    font-size: 16px;
    padding: 2px 8px;
  }

  .cal-header .new-btn {
    font-size: 12px;
    padding: 4px 10px;
  }

  .cal-body {
    flex-direction: column;
    overflow-y: auto;
    height: 100%;
  }

  .cal-grid-wrap {
    flex: none;
    height: 55vh;
    overflow: hidden;
  }

  .cal-grid thead th {
    font-size: 10px;
    padding: 4px 0;
  }

  .day-num {
    font-size: 10px;
  }

  .event-item {
    font-size: 8px;
    padding: 0 2px;
  }

  .cal-detail {
    width: 100%;
    min-width: unset;
    border-left: none;
    border-top: 2px solid #c0a0e8;
    max-height: 40vh;
    overflow-y: auto;
  }

  .detail-date {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .detail-title {
    font-size: 14px;
  }

  .detail-desc {
    font-size: 11px;
  }

  .detail-time {
    font-size: 12px;
  }

  /* ===== カレンダー新規・編集 ===== */
  .new-header {
    padding: 10px 14px;
  }

  .new-title {
    font-size: 18px;
  }

  .home-btn {
    font-size: 18px;
    padding: 4px 10px;
  }

  .new-header-spacer {
    width: 40px;
  }

  .new-main {
    width: 100%;
    padding: 16px 10px;
    overflow-y: auto;
    height: calc(100vh - 200px);
  }

  .new-form-wrap {
    padding: 16px;
    gap: 16px;
  }

  .form-group {
    margin: 4px;
  }

  .form-label {
    font-size: 11px;
  }

  .form-input {
    font-size: 14px;
    padding: 8px 10px;
  }

  .form-textarea {
    font-size: 14px;
    min-height: 80px;
  }

  .submit-btn {
    padding: 10px 30%;
    font-size: 14px;
  }

  /* ===== TODO一覧 ===== */
  .main-back {
    flex-direction: column;
    border-radius: 0;
    overflow: hidden;
    height: 100%;
  }

  .list-todo {
    flex: none;
    width: 100%;
    height: 55%;
    margin: 0;
    margin-bottom: 10px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .today-todo {
    flex: none;
    width: 100%;
    height: 40%;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    overflow-y: auto;
  }

  .today-todo::-webkit-scrollbar {
    display: none;
  }

  .main-head {
    flex-direction: column;
    align-items: stretch;
  }

  .main-header {
    flex-wrap: wrap;
    height: auto;
    padding: 8px;
    font-size: clamp(10px, 3vw, 14px);
    margin: 10px 10px 0;
  }

  .add-task {
    margin: 8px 10px;
    text-align: center;
  }

  .main-day-list {
    margin: 10px;
    height: auto;
    max-height: 80%;
    overflow-y: scroll;
  }

  .main-day-list::-webkit-scrollbar {
    display: none;
  }

  .task-percent {
    height: auto;
    padding: 20px;
    justify-content: center;
  }

  .main-top {
    margin: 10px;
    padding: 10px;
    flex-wrap: wrap;
  }

  .child-tops {
    margin: 2px 20px;
    padding: 10px;
    flex-wrap: wrap;
  }

  .child-task,
  .main-task {
    width: 60%;
    margin-left: 10px;
    font-size: clamp(12px, 3.5vw, 16px);
  }

  .child-day,
  .main-day {
    font-size: clamp(10px, 2.5vw, 12px);
  }

  .list-head,
  .today-head {
    margin: 10px 15px;
    font-size: clamp(14px, 4vw, 24px);
  }

  .todo-tasks {
    height: auto;
    max-height: none;
  }

  .progress-circle {
    width: 150px;
    height: 150px;
  }

  .progress-circle svg {
    width: 150px;
    height: 150px;
  }

  .progress-bg,
  .progress-bar {
    cx: 75;
    cy: 75;
    r: 60;
  }

  .progress-bar {
    stroke-dasharray: 376.8;
    stroke-dashoffset: 376.8;
  }

  .progress-text .percent {
    font-size: 32px;
  }

  .progress-text .fraction {
    font-size: 14px;
  }

  /* ===== TODO追加・編集 ===== */
  .task-head {
    font-size: clamp(20px, 6vw, 32px);
    margin: 10px 0;
    padding-bottom: 10px;
  }

  .tasks {
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    height: calc(100vh - 200px);
  }

  .tasks::-webkit-scrollbar {
    display: none;
  }

  .task-content,
  .task-add {
    width: 90vw;
    height: auto;
    margin: 8px auto;
    zoom: 1;
  }

  .task-content {
    padding: 12px;
  }

  .task-add {
    padding: 16px;
  }

  .task-add label {
    font-size: 14px;
  }

  .task-add .add {
    padding: 14px;
    font-size: 16px;
  }

  .back-link {
    padding: 4px 12px;
    font-size: 14px;
  }
}

/* ============================
   デフォルト（メディアクエリ外）
   ============================ */

/* チュートリアルモード */
.tutorial-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
  pointer-events: all;
}

.tutorial-highlight {
  position: relative;
  z-index: 1001 !important;
  border-radius: 8px;
  pointer-events: none;
}

.tutorial-mini-chara {
  position: absolute;
  width: 140px;
  height: 140px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1002;
  transition: all 0.3s ease;
  pointer-events: none;
}

.tutorial-bubble {
  position: absolute;
  background: white;
  border: 3px solid #ffd1e8;
  border-radius: 16px;
  padding: 20px 25px;
  min-width: 250px;
  max-width: 500px;
  z-index: 1002;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.tutorial-bubble::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 15px solid #ffd1e8;
}

/* ポモドーロ設定パネル */
.pomodoro-settings {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  margin-top: 6px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.pomodoro-setting-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: gray;
  white-space: nowrap;
  flex-shrink: 0;
}

.pomodoro-setting-item label {
  font-size: 11px;
  opacity: 0.85;
}

.pomodoro-setting-item input[type="number"] {
  width: 40px;
  padding: 2px 4px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  color: gray;
  font-size: 12px;
  text-align: center;
}

.pomodoro-setting-item input[type="number"]::-webkit-inner-spin-button {
  opacity: 1;
}

.pomodoro-setting-item span {
  font-size: 11px;
  opacity: 0.85;
}

.pomodoro-status {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

#pomodoro-label {
  font-size: 13px;
  color: gray;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 10px;
  border-radius: 20px;
}

#pomodoro-count {
  font-size: 12px;
  color: gray;
}

/* カウントダウン入力欄 */
.countdown {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  margin-top: 6px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.countdown input[type="number"] {
  width: 40px;
  padding: 2px 4px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  color: gray;
  font-size: 12px;
  text-align: center;
}

.countdown input[type="number"]::-webkit-inner-spin-button {
  opacity: 1;
}

.countdown span {
  font-size: 11px;
  color: gray;
  opacity: 0.85;
}

/* なでた時のハートアニメーション */
.pet-heart {
  position: absolute;
  bottom: 50%;
  font-size: 40px;
  color: #ff6699;
  pointer-events: none;
  z-index: 5;
  animation: floatHeart 2s ease-out forwards;
  opacity: 0;
}

@keyframes floatHeart {
  0% {
    transform: translateY(0) scale(0.5) rotate(90deg);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    transform: translateY(-150px) scale(1.2) rotate(90deg);
    opacity: 0;
  }
}

.hato {
  height: 20px;
  width: 20px;
}

/* ============================
   スマホ横向きレスポンシブ（全ページ統合）
   ============================ */
@media (max-height: 500px) and (orientation: landscape) {

  /* ===== ベース・フレーム ===== */
  .body {
    display: flex;
    justify-content: flex-end;
    margin: 0;
    background: #000;
    user-select: none;
    font-family: "DotGothic16", sans-serif;
  }

  .frame {
    position: relative;
    background-color: #FFF;
    background-image:
      repeating-linear-gradient(60deg,
        rgb(255, 247, 212) 0px 1px,
        rgba(250, 250, 250, .5) 1px 21px,
        rgba(247, 236, 205, 0.5) 21px 61px,
        rgba(250, 250, 250, .5) 61px 81px),
      repeating-linear-gradient(-60deg,
        rgba(194, 168, 204, 1) 0px 1px,
        rgba(250, 250, 250, .5) 1px 21px,
        rgba(194, 168, 204, .5) 21px 61px,
        rgba(250, 250, 250, .5) 61px 81px);
    height: 100vh;
    padding: 13px;
    box-sizing: border-box;
    display: flex;
    width: 100%;
    min-width: unset;
    overflow: hidden;
  }

  /* ===== トップバー ===== */
  .header-bars {
    left: 50%;
  }

  .icon-from {
    flex-direction: column;
    gap: 0.5cqh;
    width: 100%;
  }

  .nav-link-logout,
  .nav-link-top,
  .nav-link-help,
  .nav-link-calendar,
  .nav-link-todo,
  .nav-link-memo {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: clamp(6px, 6cqw, 14px);
    padding: 2px 4px;
    gap: 1px;
  }

  .nav-link-logout i,
  .nav-link-top i,
  .nav-link-help i,
  .nav-link-calendar i,
  .nav-link-todo i,
  .nav-link-memo i {
    width: clamp(12px, 4cqw, 18px);
    height: clamp(12px, 4cqw, 18px);
  }

  .nav-label {
    font-size: clamp(5px, 5cqw, 10px);
    text-align: center;
  }

  /* ===== メインエリア ===== */
  .main {
    flex: 1;
    display: flex;
    position: relative;
    height: clamp(360px, 94vh, 700px);
    width: 74vw;
  }

  .center {
    flex: 1;
  }

  /* ===== ダッシュボード ===== */
  .room {
    flex: 1;
    min-height: 0;
    display: flex;
    position: relative;
    align-items: center;
    overflow: hidden;
    border: 3px solid #c9b1a2;
    box-shadow: inset 0 0 50px black;
    border-radius: 30px;
    background-image: url(/assets/layouts/back-9298b532da8d5867e79dfccb705fea4ab3fdad13abb8186111e9427ca2b99768.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    container-type: size;
  }

  /* ===== サイドバー ===== */
  .side-bar {
    container-type: size;
    display: flex;
    justify-content: center;
    flex-direction: column;
    font-family: "Jersey 10", sans-serif;
    overflow-y: scroll;
    border-radius: 16px;
    width: clamp(100px, 20vw, 400px);
    height: clamp(400px, 94vh, 900px);
    border: 1px solid rgb(255, 194, 245);
    box-shadow: 4px 4px rgb(255, 194, 225);
    background-image: linear-gradient(359deg, #ffffff 35%, rgb(255, 224, 245));
  }

  .side-bar::-webkit-scrollbar {
    display: none;
  }

  .sidebar-toggle-btn {
    display: none !important;
  }

  .sidebar-close-btn {
    display: none !important;
  }

  /* ===== 時計 ===== */
  .header-clock {
    width: 100%;
    padding: 6px;
  }

  /* ===== タイマー ===== */
  .timer {
    display: flex;
    flex-direction: column;
    padding: 8px 8px;
    height: 80cqh;
    position: relative;
    z-index: 0;
  }

  .timers {
    padding: 6px 6px;
    display: flex;
    flex-direction: column;
    height: 40cqh;
    border-radius: 16px;
    border: inset #ffc4e8;
    background-color: #fff0fc;
    box-shadow: 0px 0px 7px 0px inset rgb(192, 130, 160);
    overflow: hidden;
    position: relative;
  }

  .timer-select {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align-last: center;
    font-family: "DotGothic16", sans-serif;
    font-size: 10%;
  }

  .timers-start {
    width: 4vw;
    padding: 5px 1.2vw;
  }

  .button {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    margin: 6px 3px;
    height: 30px;
  }

  /* カウントダウン（値変更のみ） */
  .countdown input[type="number"] {
    width: 20px;
    padding: 2px 4px;
    font-size: 8px;
  }

  .countdown span {
    font-size: 8px;
  }

  /* ポモドーロ（値変更のみ） */
  .pomodoro-setting-item {
    gap: 4px;
    font-size: 8px;
  }

  .pomodoro-setting-item label {
    font-size: 8px;
  }

  .pomodoro-setting-item input[type="number"] {
    width: 30px;
    padding: 2px;
    font-size: 8px;
  }

  .pomodoro-setting-item span {
    font-size: 8px;
  }

  #pomodoro-label {
    font-size: 8px;
    padding: 2px 10px;
  }

  #pomodoro-count {
    font-size: 8px;
  }

  /* ===== アラーム ===== */
  .alarm-main {
    padding: 8px 8px;
    margin: 2px 10px;
    background-color: #e7e7e7;
    overflow-y: scroll;
    border-radius: 14px;
    border: 4px inset #dddddd;
    box-shadow: 0px 0px 10px 0px inset rgb(155, 155, 155);
    height: 90%;
    position: sticky;
  }

  .alarm-setting {
    border-radius: 14px;
    height: clamp(14px, 3cqh, 40px);
    background-color: #dadada;
    margin: 5px 0px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .alarm-delete,
  .alarm-addition {
    font-size: clamp(12px, 5cqw, 20px);
    height: clamp(14px, 3cqh, 30px);
    width: 30%;
    border-radius: 14px;
    border: inset 1px rgb(0, 0, 0);
    box-shadow: inset -2px -2px 1px rgba(0, 0, 0, 0.3), inset 2px 2px 0 rgba(255, 255, 255, 0.6);
    color: #414141;
  }

  .alarm-addition {
    padding: 0.1px 2%;
    background-color: #ffc0e0;
  }

  .alarm-delete {
    padding: 0.1px 2%;
    background-color: #c0d9ff;
  }

  .alarm-time li {
    font-family: "DotGothic16", sans-serif;
    overflow: hidden;
    font-size: 6cqw;
    color: white;
    paint-order: stroke;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2px;
    padding: 1px;
    padding-left: 6px;
    border-radius: 20px;
    background-image: url(/assets/layouts/back-user-2fab526523503458981314a9a78de9592e3b89091a2a2fdacf7e33fcab0ecd5d.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: groove 2px grey;
  }

  .alarm-time-display::-webkit-calendar-picker-indicator {
    filter: invert(1);
    width: 20px;
    height: 20px;
    cursor: pointer;
  }

  .alarm-toggle {
    position: relative;
    display: inline-block;
    margin-right: 5px;
    width: 30px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
  }

  .alarm-toggle-slider::before {
    width: 11px;
    height: 11px;
    left: 3px;
    top: 3px;
  }

  /* ===== TODO一覧 ===== */
  .main-back {
    flex: 1;
    min-height: 0;
    display: flex;
    justify-content: center;
    background-color: #faf8ff;
    width: 100%;
    border-radius: 30px;
    container-type: inline-size;
    overflow: hidden;
  }

  .list-todo {
    margin-left: 2vw;
    margin-right: 8px;
    flex: 0 0 58%;
    min-width: 0;
    overflow-y: auto;
  }

  .list-todo::-webkit-scrollbar {
    display: none;
  }

  .today-todo {
    flex: 1;
    min-width: 0;
    margin-right: 8px;
    overflow-y: auto;
  }

  .today-todo::-webkit-scrollbar {
    display: none;
  }

  .main-header {
    font-size: clamp(6px, 0.8vw, 12px);
    height: 40px;
    margin-top: 8px;
  }

  .main-header p {
    padding: 6px 1vw;
  }

  .add-task {
    font-size: 9px;
    padding: 8px 1vw;
    margin-top: 8px;
  }

  .list-head,
  .today-head {
    font-size: clamp(12px, 1.5vw, 24px);
    margin: 8px 16px;
  }

  .main-top {
    margin: 8px 10px;
    padding: 8px;
  }

  .child-tops {
    margin: 2px 30px;
    padding: 8px;
  }

  .child-task,
  .main-task {
    font-size: clamp(10px, 1.2vw, 14px);
    margin-left: 10px;
  }

  .child-day,
  .main-day {
    font-size: clamp(8px, 1vw, 11px);
  }

  .main-day-list {
    margin: 8px;
    height: auto;
  }

  .todo-tasks {
    height: 30vh;
    overflow-y: auto;
  }

  .todo-tasks::-webkit-scrollbar {
    display: none;
  }

  .task-percent {
    height: auto;
    padding: 10px;
  }

  .progress-circle {
    width: 100px;
    height: 100px;
  }

  .progress-circle svg {
    width: 100px;
    height: 100px;
  }

  .progress-text .percent {
    font-size: 24px;
  }

  .progress-text .fraction {
    font-size: 10px;
  }

  /* ===== TODO追加・編集 ===== */
  .list-todo.list-todo-form {
    flex: none;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow-y: auto;
  }

  .task-head {
    font-size: clamp(16px, 3vw, 28px);
    margin: 4px 0;
    padding-bottom: 4px;
  }

  .tasks {
    flex-direction: row;
    justify-content: space-around;
    height: auto;
  }

  .task-content,
  .task-add {
    width: 45%;
    height: auto;
    max-height: 70vh;
    overflow-y: auto;
    margin: 4px;
    padding: 10px;
    zoom: 1;
  }

  .task-add label {
    font-size: 11px;
    gap: 3px;
  }

  .task-add input,
  .task-add select {
    padding: 5px 8px;
    font-size: 11px;
  }

  .task-add .add {
    padding: 8px;
    font-size: 12px;
  }

  .back-link {
    font-size: 12px;
    padding: 2px 8px;
  }

  /* ===== カレンダー一覧 ===== */
  .cal-wrap {
    margin: 1vh 1vw;
    margin-left: 2vw;
    border-radius: 6px;
    height: clamp(360px, 92vh, 700px);
  }

  .cal-header {
    padding: 4px 12px;
  }

  .cal-header .month-label {
    font-size: 14px;
    min-width: 100px;
  }

  .cal-header .arrow-btn {
    font-size: 14px;
    padding: 2px 6px;
  }

  .cal-header .new-btn {
    font-size: 10px;
    padding: 3px 8px;
  }

  .cal-body {
    flex: 1;
    min-height: 0;
  }

  .cal-grid-wrap {
    flex: 1;
    padding: 6px;
  }

  .cal-grid thead th {
    font-size: 9px;
    padding: 3px 0;
  }

  .day-num {
    font-size: 9px;
    margin-bottom: 2px;
  }

  .event-item {
    font-size: 7px;
    padding: 0 2px;
  }

  .cal-detail {
    width: 180px;
    min-width: 180px;
    padding: 8px 6px;
  }

  .detail-date {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .detail-title {
    font-size: 12px;
  }

  .detail-desc {
    font-size: 9px;
  }

  .detail-time {
    font-size: 10px;
  }

  /* ===== カレンダー追加・編集 ===== */
  .new-header {
    padding: 6px 12px;
  }

  .new-title {
    font-size: 16px;
  }

  .home-btn {
    font-size: 16px;
    padding: 2px 8px;
  }

  .new-header-spacer {
    width: 50px;
  }

  .new-main {
    width: 100%;
    padding: 10px;
    overflow-y: auto;
    max-height: calc(100vh - 60px);
  }

  .new-form-wrap {
    padding: 14px 18px;
    gap: 12px;
  }

  .form-group {
    margin: 3px;
  }

  .form-label {
    font-size: 10px;
  }

  .form-input {
    font-size: 11px;
    padding: 6px 8px;
  }

  .form-textarea {
    font-size: 11px;
    min-height: 50px;
  }

  .submit-btn {
    padding: 8px 30%;
    font-size: 12px;
  }

  /* ===== メモ一覧 ===== */
  .memo-idx-wrap {
    border-radius: 16px;
    height: 100%;
  }

  .memo-idx-header {
    padding: 6px 12px;
    padding-left: 2vw;
  }

  .memo-idx-page-title {
    font-size: 16px;
  }

  .memo-idx-new-btn {
    font-size: 10px;
    padding: 3px 8px;
  }

  .memo-idx-count {
    font-size: 12px;
    margin: 2px 8px;
    padding-left: 2vw;
  }

  .memo-idx-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 8px;
    padding-left: 2vw;
  }

  .memo-idx-card-title {
    font-size: 9px;
  }

  .memo-idx-card-date {
    font-size: 8px;
  }

  .memo-idx-detail {
    width: 180px;
    min-width: 180px;
    padding: 8px 6px;
  }

  .memo-detail-title {
    font-size: 11px;
  }

  .memo-detail-text {
    font-size: 9px;
  }

  .memo-detail-date {
    font-size: 8px;
  }

  /* ===== メモ新規・編集 ===== */
  .memo-new-wrap {
    margin-left: 2vw;
    width: auto;
    flex: 1;
  }

  .memo-new-header {
    width: 100%;
    padding: 6px 12px;
  }

  .memo-new-title {
    font-size: 16px;
  }

  .memo-new-back-btn {
    font-size: 10px;
    padding: 3px 8px;
  }

  .memo-new {
    padding: 8px;
    overflow-y: auto;
    max-height: calc(100vh - 60px);
  }

  .memo-new-label {
    font-size: 10px;
    margin: 4px;
  }

  .memo-new-input {
    font-size: 11px;
  }

  .memo-new-textarea {
    font-size: 11px;
    min-height: 60px;
  }

  .memo-new-submit {
    padding: 8px 20%;
    font-size: 12px;
    margin: 6px;
  }

  .memo-new-file-preview {
    min-height: 60px;
  }
}

/* ===== コンテナクエリ ===== */
@container (max-width: 70px) {
  .nav-label {
    display: none;
  }

  .nav-link {
    justify-content: center;
  }
}
.timer {
  display: flex;
  flex-direction: column;
  padding: 8px 16px;
  height: 40cqh;
  position: relative;
  z-index: 0;
}

.timers {
  padding: 16px 6px;
  display: flex;
  flex-direction: column;
  height: 40cqh;
  border-radius: 16px;
  border: inset #ffc4e8;
  background-color: #fff0fc;
  box-shadow: 0px 0px 7px 0px inset rgb(192, 130, 160);
  overflow: hidden;
  position: relative
}

.number {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 25cqh;
  margin: 0px 0.3em;
  background-image: url(/assets/layouts/timersa-df25eb24505a95d6caa5847a009a104ead540c5f68a27c0bf30edbd2af714b2e.png);
  background-repeat: no-repeat;
  background-position: center;
  font-size: clamp(14px, 30cqw, 90px);
  border-radius: 14px;
  color: #ffc2f7;
  border: solid 2px #ffffff;
  -webkit-text-stroke: 8px white;
  paint-order: stroke;
  box-shadow: 0px 0px 7px 0px inset rgb(192, 130, 160);
}


.timer-select select {
  color: gray;
}


.timer-select {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align-last: center;
  font-family: "DotGothic16", sans-serif;

}


.timers-backward {
  width: 4.5vw;
  padding: 0.3vw 0.9vw;

}

.timers-forward {
  width: 4.5vw;
  padding: 0.3vw 0.9vw;

}

.timers-start {
  width: 4vw;
  padding: 10px 1.2vw;

}

.timers-forward,
.timers-start,
.timers-backward {
  background-image: linear-gradient(to top, #D8D9DB 0%, #fff 80%, #FDFDFD 100%);
  border-radius: 100vh;
  border: 1px solid #999;
  box-shadow: 0 3px 2px 1px #fcfcfc, 0 4px 6px #cecfd1, 0 -2px 2px #cecfd1, 0 -4px 2px #eee;
}


textarea,
option,
.time_selects {
  font-family: "Orbitron", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  
}

.pomodoro-status,
.pomodoro-settings,
.countdown {
  font-family: "DotGothic16", sans-serif;
}

.button {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin: 6px 3px;
  height: 80px;
  gap: 2px;
}

.timer-start {
  width: 0;
  height: 0;
  border-top: 1vw solid transparent;
  border-bottom: 1vw solid transparent;
  border-left: 1.8vw solid #a8a8a8;
}

.timer-stop {
  width: 1.8vw;
  height: 2vw;
  background:
    linear-gradient(to bottom, #a8a8a8 0%, #a8a8a8 100%) 0.1vw 0.1em,
    /*間隔と高さ*/
    linear-gradient(to bottom, #a8a8a8 0%, #a8a8a8 100%) 1vw 0.1em;
  background-size: 0.45vw 1.8vw;
  /*図形大きさ*/
  background-repeat: no-repeat;
}

/* 右ボタン */
.timer-step-forward {
  font-size: 1.8vw;
  position: relative;
  width: 1.4em;
  height: 1.4em;
  border: 0.1em solid #a8a8a8;
  border-radius: 100%;
}

/* 三角マーク */
.timer-step-forward::before {
  content: "";
  position: absolute;
  top: 0.2em;
  left: 0.3em;
  width: 0;
  height: 0;
  border-top: 0.4em solid transparent;
  border-left: 0.6em solid #a8a8a8;
  border-bottom: 0.4em solid transparent;
}

/* ラインマーク */
.timer-step-forward::after {
  content: "";
  position: absolute;
  top: 0.2em;
  left: 0.85em;
  width: 0.1em;
  height: 0.8em;
  background-color: #a8a8a8;
}

/* 左ボタン */
.timer-step-backward {
  font-size: 1.8vw;
  position: relative;
  width: 1.4em;
  height: 1.4em;
  border: 0.1em solid #a8a8a8;
  border-radius: 100%;
}

/* 三角マーク */
.timer-step-backward::before {
  content: "";
  position: absolute;
  top: 0.2em;
  left: 0.35em;
  width: 0;
  height: 0;
  border-top: 0.4em solid transparent;
  border-right: 0.6em solid #a8a8a8;
  border-bottom: 0.4em solid transparent;
}

/* ラインマーク */
.timer-step-backward::after {
  content: "";
  position: absolute;
  top: 0.2em;
  left: 0.3em;
  width: 0.1em;
  height: 0.8em;
  background-color: #a8a8a8;
}

body {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  height: 100vh;
  min-height: 500px;
  background: #000;
  user-select: none;
  font-family: "DotGothic16", sans-serif;
}

.frame {
  position: relative;
  background-color: #FFF;
  background-image:
    repeating-linear-gradient(60deg,
      rgb(255, 247, 212) 0px 1px,
      rgba(250, 250, 250, .5) 1px 21px,
      rgba(247, 236, 205, 0.5) 21px 61px,
      rgba(250, 250, 250, .5) 61px 81px),
    repeating-linear-gradient(-60deg,
      rgba(194, 168, 204, 1) 0px 1px,
      rgba(250, 250, 250, .5) 1px 21px,
      rgba(194, 168, 204, .5) 21px 61px,
      rgba(250, 250, 250, .5) 61px 81px);
  height: 100vh;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  width: 100%;
  min-width: 1000px;
  overflow: hidden;
}

.top {
  flex: 1;
  width: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.header-bars {
  height: clamp(400px, 85vh, 2160px);
  margin: 1vh 1vw;
  width: clamp(80px, 8.5vw, 590px);
  padding: 1vh 1vw;
  border: 1px solid rgb(255, 194, 225);
  box-shadow: 4px 4px rgb(255, 194, 225);
  border-radius: 8px;
  background-image: linear-gradient(359deg, #ffffff 35%, rgb(255, 224, 245));
  position: relative;
  z-index: 1;
  container-type: size;
}

.header {
  border: 1px solid rgb(255, 194, 225);
  display: flex;
  padding: 6cqh 4cqw;
  height: 80cqh;
  width: 100cqw;
  background-color: white;
  box-shadow: 0px 0px 4px 0px inset rgb(255, 194, 225);
  overflow: hidden;
}

.icon-from {
  color: rgb(109, 85, 77);
  display: flex;
  flex-direction: column;
  gap: 1.5cqh;
  width: 100%;
}

.nav-link-logout,
.nav-link-top,
.nav-link-help,
.nav-link-calendar,
.nav-link-todo,
.nav-link-memo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: rgb(109, 85, 77);
  font-size: clamp(10px, 8cqw, 30px);
  transition: background 0.15s;
  white-space: nowrap;
  overflow: hidden;
}

.nav-link-top:hover,
.nav-link-help:hover,
.nav-link-calendar:hover,
.nav-link-todo:hover,
.nav-link-memo:hover {
  background: rgb(255, 239, 250);
}

.nav-link i {
  width: clamp(16px, 2cqw, 22px);
  height: clamp(16px, 2cqw, 22px);
  flex-shrink: 0;
}

.nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-link-logout {
  margin-top: auto;
  color: #c04040;
}

.nav-link-logout:hover {
  background: #ffe4e4;
}

/* ============================
   サイドバー開閉タブボタン（デフォルト非表示）
   ============================ */
.sidebar-toggle-btn {
  display: none;
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 1100;
  width: 24px;
  height: 80px;
  border-radius: 10px 0 0 10px;
  border-top: 2px solid rgba(255, 255, 255, 0.9);
  border-left: 2px solid rgba(255, 255, 255, 0.7);
  border-bottom: 2px solid #c0a0e8;
  border-right: none;
  background: linear-gradient(180deg, #f3eaff 0%, #dfc8f8 100%);
  box-shadow: -2px 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #7858a8;
  font-family: "DotGothic16", sans-serif;
  writing-mode: vertical-rl;
  letter-spacing: 2px;
  padding: 0;
}

.sidebar-toggle-btn:active {
  background: linear-gradient(180deg, #dfc8f8 0%, #c0a0e8 100%);
  box-shadow: none;
}

/* ============================
   サイドバー内 閉じるボタン（デフォルト非表示）
   ============================ */
.sidebar-close-btn {
  display: none;
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  z-index: 1201;
  width: 28px;
  height: 60px;
  border-radius: 8px;
  border-top: 2px solid rgba(255, 255, 255, 0.9);
  border-left: 2px solid rgba(255, 255, 255, 0.7);
  border-right: 2px solid #c0a0e8;
  border-bottom: 2px solid #c0a0e8;
  background: linear-gradient(180deg, #f3eaff 0%, #dfc8f8 100%);
  box-shadow: 2px 2px 0 #c0a0e8;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #7858a8;
  font-family: "DotGothic16", sans-serif;
  writing-mode: vertical-rl;
  padding: 0;
}

.sidebar-close-btn:active {
  border-top: 2px solid #c0a0e8;
  border-left: 2px solid #c0a0e8;
  border-right: 2px solid rgba(255, 255, 255, 0.7);
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

/* ============================
   スマホ共通（既存）
   ============================ */
@media (max-width: 768px) {
  body {
    justify-content: center;
    overflow: hidden;
  }

  .frame {
    flex-direction: column;
    padding: 0;
    min-width: unset;
    width: 100vw;
    height: 100vh;
  }

  .top {
    order: 1;
    width: 100%;
    height: auto;
  }

  .header-bars {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    margin: 0;
    border-radius: 0;
    border-top: 1px solid rgb(255, 194, 225);
    border-bottom: none;
    z-index: 100;
  }

  .header {
    height: 100%;
    width: 100%;
    padding: 0;
  }

  .icon-from {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    gap: 0;
  }

  .nav-link-logout,
  .nav-link-top,
  .nav-link-help,
  .nav-link-calendar,
  .nav-link-todo,
  .nav-link-memo {
    flex-direction: column;
    font-size: 10px;
    padding: 4px;
    gap: 2px;
    justify-content: center;
    flex: 1;
    height: 100%;
  }

  .nav-label {
    display: block;
    font-size: 9px;
  }

  .side-bar {
    display: none;
  }

  .center {
    flex: 1;
    width: 100%;
    margin: 0;
  }


  .room {
    border-radius: 0;
    border: none;
  }

  .text-box {
    width: 90cqw;
    font-size: clamp(12px, 4cqw, 18px);
    height: clamp(80px, 18cqh, 130px);
    bottom: 70px;
  }

  .timers-backward {
    width: 16vw;
    padding: 7px 3.5vw;

  }

  .timers-forward {
    width: 16vw;
    padding: 7px 3.5vw;

  }

  .timers-start {
    width: 16vw;
    padding: 10px 5vw;

  }

  .timers-forward,
  .timers-start,
  .timers-backward {
    background-image: linear-gradient(to top, #D8D9DB 0%, #fff 80%, #FDFDFD 100%);
    border-radius: 100vh;
    border: 1px solid #999;
    box-shadow: 0 3px 2px 1px #fcfcfc, 0 4px 6px #cecfd1, 0 -2px 2px #cecfd1, 0 -4px 2px #eee;
  }


  .button {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    margin: 6px 3px;
    height: 80px;

  }

  .timer-start {
    width: 0;
    height: 0;
    border-top: 3.5vw solid transparent;
    border-bottom: 3.5vw solid transparent;
    border-left: 7vw solid #a8a8a8;
  }

  .timer-stop {
    width: 6.3vw;
    height: 7vw;
    background:
      linear-gradient(to bottom, #a8a8a8 0%, #a8a8a8 100%) 0.35vw 0.2em,
      linear-gradient(to bottom, #a8a8a8 0%, #a8a8a8 100%) 3.5vw 0.2em;
    background-size: 1.58vw 6.3vw;
    background-repeat: no-repeat;
  }

  /* 右ボタン */
  .timer-step-forward {
    font-size: 6.3vw;
    position: relative;
    width: 1.4em;
    height: 1.4em;
    border: 0.1em solid #a8a8a8;
    border-radius: 100%;
  }

  /* 三角マーク */
  .timer-step-forward::before {
    content: "";
    position: absolute;
    top: 0.2em;
    left: 0.3em;
    width: 0;
    height: 0;
    border-top: 0.4em solid transparent;
    border-left: 0.6em solid #a8a8a8;
    border-bottom: 0.4em solid transparent;
  }

  /* ラインマーク */
  .timer-step-forward::after {
    content: "";
    position: absolute;
    top: 0.2em;
    left: 0.85em;
    width: 0.1em;
    height: 0.8em;
    background-color: #a8a8a8;
  }

  /* 左ボタン */
  .timer-step-backward {
    font-size: 6.3vw;
    position: relative;
    width: 1.4em;
    height: 1.4em;
    border: 0.1em solid #a8a8a8;
    border-radius: 100%;
  }

  /* 三角マーク */
  .timer-step-backward::before {
    content: "";
    position: absolute;
    top: 0.2em;
    left: 0.35em;
    width: 0;
    height: 0;
    border-top: 0.4em solid transparent;
    border-right: 0.6em solid #a8a8a8;
    border-bottom: 0.4em solid transparent;
  }

  /* ラインマーク */
  .timer-step-backward::after {
    content: "";
    position: absolute;
    top: 0.2em;
    left: 0.3em;
    width: 0.1em;
    height: 0.8em;
    background-color: #a8a8a8;
  }


}


/* ============================
   スマホ縦向き（サイドバースライド）
   ※ 必ず max-width: 768px の後に置く
   ============================ */
@media (max-width: 768px) and (orientation: portrait) {

  .sidebar-toggle-btn {
    display: flex;
  }

  .sidebar-close-btn {
    display: flex;
  }

  .side-bar {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    background-image: linear-gradient(359deg, #ffffff 35%, rgb(255, 224, 245));
  }

  .side-bar.is-open {
    transform: translateX(0);
  }

  .sidebar-toggle-btn.is-hidden {
    display: none;
  }
}


@container (max-width: 70px) {
  .nav-label {
    display: none;
  }

  .nav-link {
    justify-content: center;
  }
}

.users {
  display: flex;
  justify-content: center;
  width: 100%;
}
.user-name {
  color: white;
  text-shadow: #303030 1px 0 10px;
}

.users-icon-img {
  width: 100px;
  height: 100px;
  border: 2mm ridge rgba(175, 127, 252, 0.342);
  box-shadow: 0 0 8px rgb(70, 31, 116);
  border-radius: 14px;
  background-color: rgb(136, 101, 233);
  margin: 10px 0px 10px;
  background-image: url(/assets/layouts/ミニキャラindex-578ea58e39c4b3d029afd742fa51c9eb2da6ff4f877f862fc7d585b941eaf48e.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  justify-content: center;
  align-items: center;
}

.user-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.user-button {
  font-size: 2vw;
  color: white;
  width: 4vw;
  height: 4vw;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;

  transition: 0.3s;
  margin: 15px;
  border: 1px solid #ffffff;
  color: #ffffff;
  border-radius: 50%;
  text-align: center;
  overflow: hidden;

  box-shadow: 0 0 5px gray;
}


.user-button:active {
  box-shadow: inset 0 0 5px rgba(128, 128, 128, 0.32);
}

.username-change {
  display: none;
}
.user-top {
  position: absolute;
  color:white;
  height: 25px;
  width: 100%;
  padding-left: 20px;
  padding-top: 3px;
  background-color: rgba(255, 255, 255, 0.24);
}
.user-main{
  width: 100vw;
  height: 100vh;
  background-image: url(/assets/layouts/back-user-2fab526523503458981314a9a78de9592e3b89091a2a2fdacf7e33fcab0ecd5d.webp);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.era{
  margin-top: 1em;
}

.user-login {
  width: 25em;
  height: 25em;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.user-icon-img {
  width: 250px;
  height: 250px;
  border: 3mm ridge rgba(175, 127, 252, 0.342);
  box-shadow: 0 0 8px rgb(70, 31, 116);
  border-radius: 50px;
  background-color: rgb(136, 101, 233);
  margin: 20px;
}

.ef {
  color: white;
}

.user-email-pass {
  position: relative;
  width: 60%;
  margin: 1em 0;
    display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  
}

.cp_iptxt {
  position: relative;
  width: 100%;
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  
}

.cp_iptxt input[type='text'],
.cp_iptxt input[type='email'],
.cp_iptxt input[type='password'] {
  font: 15px/1.6 sans-serif;
  width: calc(100% - 20px);
  padding: 0.3em;
  border: 1px solid #ffffff;
  box-shadow: 1px 1px 2px 0 #707070 inset;
  border-radius: 4px;
  transition: 0.3s;

}

/* 入力中の枠 */
.cp_iptxt .ef input[type='text']:focus,
.cp_iptxt .ef input[type='email']:focus,
.cp_iptxt .ef input[type='password']:focus {
  outline: none;
  box-shadow: inset 1px 1px 2px 0 #c9c9c9;
}


.cp_iptxt input::placeholder {
  color: #dddddd;
}

.login {
  transition: 0.3s;

  border: 1px solid #707070;
  display: inline-block;
  color: #ffffff;
  font-size: 17px;
  padding: 13px 15px;
  margin-bottom: 15px;
  border-radius: 50%;
  text-align: center;
  overflow: hidden;
  background-image: linear-gradient(#fed6fe 0%, #ffaae3 100%);
  box-shadow: 0 0 5px gray;
}

.login:active {
  box-shadow: inset 0 0 5px rgba(128, 128, 128, 0.32);
  background-image: linear-gradient(#fff3ff 0%, #ffe7f7 100%);
}
/* ============================
   プライバシーポリシー
   ============================ */


.privacy-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  border-right: none;

}

.privacy-wrap::-webkit-scrollbar {
  display: none;
}

/* ===== ヘッダー ===== */
.privacy-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;

}

.privacy-title {
  font-size: clamp(18px, 1.4vw, 26px);
  font-weight: 700;
  color: #957aac;
  letter-spacing: 0.12em;
  text-shadow: 1px 1px 0px #ffffff;
}

/* ===== コンテンツ ===== */
.privacy-content {
  padding: 2vw 3vw;
  display: flex;
  flex-direction: column;
  gap: 1.5vw;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

/* ===== セクション ===== */
.privacy-section {
  padding: 1vw 0;
}

.privacy-section-title {
  font-size: clamp(14px, 1.1vw, 20px);
  font-weight: 700;
  color: #7858a8;
  margin-bottom: 0.6vw;
  padding-bottom: 0.3vw;
  border-bottom: 1px solid #e8d8ff;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.privacy-text {
  font-size: clamp(12px, 0.85vw, 16px);
  color: #5a4a6a;
  line-height: 1.9;
}

/* ===== リスト ===== */
.privacy-list {
  display: flex;
  flex-direction: column;
  gap: 0.5vw;
  margin-top: 0.5vw;
  padding-left: 0.5vw;
}

.privacy-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5vw;
  font-size: clamp(12px, 0.85vw, 16px);
  color: #5a4a6a;
  line-height: 1.8;
}

.privacy-list-icon {
  color: #c0a0e8;
  flex-shrink: 0;
  margin-top: 2px;
}

.privacy-list-item strong {
  color: #7858a8;
  display: block;
  margin-bottom: 2px;
}

/* ===== お問い合わせ ===== */
.privacy-contact {
  margin-top: 0.5vw;
  padding: 1vw 1.5vw;
  background: linear-gradient(180deg, #faf8ff 0%, #f3eaff 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  border-left: 1px solid rgba(255, 255, 255, 0.7);
  border-right: 2px solid #c0a0e8;
  border-bottom: 2px solid #c0a0e8;
  border-radius: 10px;
  font-size: clamp(12px, 0.85vw, 16px);
  color: #5a4a6a;
  line-height: 2;
}

.privacy-link {
  position: fixed;
  bottom: 20px;
  color: #180a2e;
  text-decoration: underline;
}
.privacy-links {
  color: #3e177c;
  text-decoration: underline;
}

/* ===== フッター ===== */
.privacy-footer {
  text-align: right;
  font-size: clamp(11px, 0.75vw, 14px);
  color: #b098d0;
  padding: 1vw 0;
  border-top: 1px solid #e8d8ff;
  margin-top: 0.5vw;
}

/* ===== スマホ対応 ===== */
@media (max-width: 768px) {
  .privacy-wrap {
    border-radius: 0;
    border: none;
  }

  .privacy-header {
    padding: 10px 16px;
  }

  .privacy-title {
    font-size: 18px;
  }

  .privacy-content {
    padding: 16px;
    gap: 12px;
  }

  .privacy-section-title {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .privacy-text {
    font-size: 13px;
  }

  .privacy-list {
    gap: 6px;
    padding-left: 4px;
  }

  .privacy-list-item {
    font-size: 13px;
    gap: 6px;
  }

  .privacy-contact {
    padding: 12px 16px;
    font-size: 13px;
  }

  .privacy-footer {
    font-size: 12px;
    padding: 12px 0;
  }
}

/* ===== スマホ横向き ===== */
@media (max-height: 500px) and (orientation: landscape) {
  .privacy-wrap {
    border-radius: 16px;
  }

  .privacy-header {
    padding: 6px 12px;
  }

  .privacy-title {
    font-size: 14px;
  }

  .privacy-content {
    padding: 8px 12px;
    gap: 8px;
  }

  .privacy-section-title {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .privacy-text {
    font-size: 11px;
  }

  .privacy-list-item {
    font-size: 11px;
  }

  .privacy-contact {
    padding: 6px 10px;
    font-size: 11px;
  }

  .privacy-footer {
    font-size: 10px;
  }
}
.user-new{
  color: white;
  background: rgba(204, 172, 255, 0.418);
}

.sign-up {
  transition: 0.3s;
  border: 1px solid #707070;
  display: inline-block;
  color: #ffffff;
  font-size: 17px;
  padding: 13px 15px;
  margin: 15px;
  border-radius: 50%;
  text-align: center;
  overflow: hidden;
  background-image: linear-gradient(#fed6fe 0%, #ffaae3 100%);
  box-shadow: 0 0 5px gray;
}

.sign-up:active {
  box-shadow: inset 0 0 5px rgba(128, 128, 128, 0.32);
  background-image: linear-gradient(#fff3ff 0%, #ffe7f7 100%);
}

.cp_iptxt textarea {
  font: 15px/1.6 sans-serif;
  width: calc(100% - 20px);
  padding: 0.3em;
  color: #ffffff;
  border: 1px solid #ffffff;
  box-shadow: 1px 1px 2px 0 #707070 inset;
  border-radius: 4px;
  transition: 0.3s;
  height: 35px;  
}

.cp_iptxt .ef textarea:focus {
  outline: none;
  box-shadow: inset 1px 1px 2px 0 #c9c9c9;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
 
