/* ===== ヘッダー ===== */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(0.3vh + 0.3vw) calc(1vh + 1vw);
  border-bottom: 2px solid #a779966b;
  background-color: #ffe8f7;
}



.cal-header .month-nav {
  display: flex;
}

.cal-header .month-nav .arrow-btn {
  font-size: calc(1vh + 1vw);
  padding: calc(0.1vh + 0.1vw) calc(0.6vh + 0.6vw);
  color: #a77996;
  border-radius: 90%;
  background-color: #fff3fb;
  box-shadow: calc(0.1vh + 0.1vw) calc(0.1vh + 0.1vw) 0 #c08c97;
  font-family: "fot-seurat-pron", sans-serif;
}

.cal-header .month-label {
  font-size: calc(0.9vh + 0.9vw);
  padding: calc(0.3vh + 0.3vw);
  font-weight: bold;
  text-align: center;
  color: #a77996;
  font-family: "fot-seurat-pron", sans-serif;
}

.cal-header .new-btn {
  text-decoration: none;
  color: #fff0ec;
  background-color: #a57e74;
  font-size: calc(0.9vh + 0.9vw);
  padding: calc(0.2vh + 0.2vw) calc(0.6vh + 0.6vw);
  border-radius: 5%;
  font-family: "fot-seurat-pron", sans-serif;
}

/* ===== メインレイアウト ===== */
.cal-wrap {
  display: flex;
  flex-direction: column;
  margin: calc(0.6vh + 0.6vw);
  margin-left: calc(4.5vh + 4.5vw);
  overflow: hidden;
  background-color: #ffeef9;
  border-radius: 1%;
  border: calc(0.1vh + 0.1vw) solid #a77996;
}

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

/* ===== カレンダーグリッド ===== */
.cal-grid-wrap {
  flex: 1;
  padding: calc(0.4vh + 0.4vw);
  border-radius: 1%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

/* 曜日ヘッダー */
.cal-grid thead th {
  padding: calc(0.4vh + 0.4vw) 0;
  font-size: calc(0.8vh + 0.8vw);
  font-weight: normal;
  color: #8b665b;
  text-align: center;
  border-bottom: 1px solid #bb8c79;
  font-family: "fot-seurat-pron", sans-serif;
}

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

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

/* 日付セル */
.cal-grid tbody td {
  border: 1px solid #ddb1ce;
  font-size: calc(0.5vh + 0.5vw);
  vertical-align: top;
  padding: 6px;
  cursor: pointer;
  color: #ffd0ee;
  background: #fff8fc;
  transition: background 0.1s;
}

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

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

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

.cal-grid tbody td.other-month {
  color: #ffb6d9;
}

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

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

/* 日付番号 */
.day-num {
  font-size: calc(0.6vh + 0.6vw);
  font-weight: bold;
  display: block;
  margin-bottom: calc(0.1vh + 0.1vw);
  font-family: 'Courier New', monospace;
  color: #ad7d76;
}

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

.event-item {
  font-size: calc(0.4vh + 0.4vw);
  padding: calc(0.1vh + 0.1vw) calc(0.2vh + 0.2vw);
  border-radius: 2%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  background: #ebddff;
  font-family: 'Courier New', monospace;
}

/* ===== 詳細パネル ===== */
.cal-detail {
  width: calc(11vh + 11vw);
  background-color: #ffe8f7;
  border-left: calc(0.02vh + 0.02vw) solid #bb8c79;
  padding: calc(0.4vh + 0.4vw) calc(0.4vh + 0.4vw);
  overflow-y: auto;
  box-shadow: inset calc(0.02vh + 0.02vw) 0 calc(0.02vh + 0.02vw) rgba(192, 160, 232, 0.08);
}

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

.detail-date {
  font-size: calc(0.02vh + 0.02vw);
  font-weight: bold;
  margin-bottom: 16px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.detail-event {
  border-radius: 2%;
  padding: calc(0.3vh + 0.3vw);
  margin-bottom: calc(0.5vh + 0.5vw);
  background-color: #fff8fc8f;
}

.detail-label-bar {
  height: calc(0.05vh + 0.05vw);
  border-radius: 1%;
  margin-bottom: calc(0.05vh + 0.05vw);
  background: #b898e8;
}

.detail-title {
  font-size: calc(0.6vh + 0.6vw);
  font-family: "fot-seurat-pron", sans-serif;
  font-weight: bold;
  margin-top: calc(0.4vh + 0.4vw);
  margin-bottom: calc(0.4vh + 0.4vw);
  color: #a85884;

}

.detail-desc {
  font-size: calc(0.2vh + 0.2vw);
  color: #a85894;
  margin-bottom: calc(0.4vh + 0.4vw);
  line-height: 1.5;

}

.detail-time {
  font-size: calc(0.4vh + 0.4vw);
  font-family: "fot-seurat-pron", sans-serif;
  color: #c79ab0;
  margin-bottom: calc(0.1vh + 0.1vw);
  margin-top: calc(0.1vh + 0.1vw);
}

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

.delete-options {
  display: flex;
  flex-direction: column;
  gap: calc(0.1vh + 0.1vw);
}

.detail-actions a,
.detail-actions button {
  font-size: calc(0.4vh + 0.4vw);
  padding: calc(0.2vh + 0.2vw) calc(0.4vh + 0.4vw);
  border-radius: 4%;
  font-family: "fot-seurat-pron", sans-serif;
}

.btn-edit {
  background-color: #eeffee;
  color: #87b886;
  border-radius: 20%;
  box-shadow: calc(0.06vh + 0.06vw) calc(0.06vh + 0.06vw) 0 #87b886;
}

.btn-delete {
  background-color: #ffeef8;
  color: #ca8bb0;
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  border-left: 1px solid rgba(255, 255, 255, 0.6);
  border-right: 1px solid #ca8bb0;
  border-bottom: 1px solid #ca8bb0;
  box-shadow: 1px 1px 0 #ca8bb0;
}

.no-events {
  font-size: 11px;
  color: #ca98bf;
  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: calc(0.5vh + 0.5vw) calc(0.2vh + 0.2vw);
  border-bottom: 2px solid #a779966b;
  background-color: #ffe8f7;
  color: #a77996;
  font-family: "fot-seurat-pron", sans-serif;
}

.home-btn {
  font-size: 24px;
  padding: calc(0.4vh + 0.4vw) calc(0.5vh + 0.5vw);
  margin-right: calc(0.5vh + 0.5vw);
  color: #a77996;
  border-radius: 90%;
  background-color: #fff3fb;
  box-shadow: calc(0.1vh + 0.1vw) calc(0.1vh + 0.1vw) 0 #c08c97;
  font-family: "fot-seurat-pron", sans-serif;
}

.new-title {
  font-size: calc(1.5vh + 1.5vw);
  color: #a77996;
  font-family: "fot-seurat-pron", sans-serif;
}

.new-header-spacer {
  width: calc(4vh + 4vw);
}

/* ===== メイン ===== */

.cal-wrap-new {
  display: flex;
  flex-direction: column;
  margin: calc(0.6vh + 0.6vw);
  overflow: hidden;
  background-color: #ffeef9;
  border-radius: 1%;
  border: calc(0.1vh + 0.1vw) solid #a77996;
}

.new-main {
  display: flex;
  justify-content: center;
  padding: calc(1.5vh + 1.5vw) calc(1.5vh + 1.5vw);
  width: calc(45vh + 45vw);
  overflow-y: scroll;
}

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


.new-form-wrap {
  width: calc(35vh + 35vw);
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
}

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



/* ===== フォームグループ ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: calc(0.4vh + 0.4vw);
  margin: calc(0.4vh + 0.4vw);
}

.form-label {
  font-size: calc(0.4vh + 0.4vw);
  font-weight: bold;
  color: #8b665b;
  display: flex;
  align-items: center;
  gap: calc(0.4vh + 0.4vw);
  font-family: "fot-seurat-pron", sans-serif;
}

.required {
  font-size: calc(0.4vh + 0.4vw);
  color: #fff;
  background-color: #e997c5;
  padding: calc(0.1vh + 0.1vw) calc(0.2vh + 0.2vw);
  border-radius: 2px;
  font-family: "fot-seurat-pron", sans-serif;
  box-shadow: calc(0.08vh + 0.08vw) calc(0.08vh + 0.08vw) 0 #aa8e8c;
}

.optional {
  font-size: calc(0.4vh + 0.4vw);
  color: #fff;
  background-color: #dfc0b7;
  padding: calc(0.1vh + 0.1vw) calc(0.2vh + 0.2vw);
  border-radius: 2%;
  box-shadow: calc(0.08vh + 0.08vw) calc(0.08vh + 0.08vw) 0 #aa8e8c;
  font-family: "fot-seurat-pron", sans-serif;
}

.form-input {
  padding: calc(0.4vh + 0.4vw) calc(0.6vh + 0.6vw);
  border-radius: 2%;
  font-size: calc(0.5vh + 0.5vw);
  color: #946f60;
  background-color: #ffffff;
  outline: none;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.06);
  font-family: "fot-seurat-pron", sans-serif;
}

.form-textarea {
  padding: calc(0.4vh + 0.4vw) calc(0.6vh + 0.6vw);
  border-radius: 2%;
  font-size: calc(0.5vh + 0.5vw);
  color: #946f60;
  background-color: #ffffff;
  outline: none;
  resize: vertical;
  min-height: calc(5vh + 5vw);
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.06);
  font-family: "fot-seurat-pron", sans-serif;
}

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

.color-select-wrap input[type="color"] {
  width: calc(1.7vh + 1.7vw);
  height: calc(1.4vh + 1.4vw);
  border-top: calc(0.02vh + 0.02vw) solid rgba(255, 255, 255, 0.9);
  border-left: calc(0.02vh + 0.02vw) solid rgba(255, 255, 255, 0.7);
  border-right: calc(0.02vh + 0.02vw) solid #e8a0be;
  border-bottom: calc(0.02vh + 0.02vw) solid #e8a0be;
  border-radius: 2px;
  padding: 2px;
  cursor: pointer;
  background: none;
  box-shadow: calc(0.02vh + 0.02vw) calc(0.02vh + 0.02vw) 0 #e8a0be;
}


/* ===== 投稿ボタン ===== */
.form-submit {
  display: flex;
  justify-content: center;
  margin-top: calc(0.6vh + 0.6vw);
}

.submit-btn {
  padding: calc(0.3vh + 0.3vw) calc(1vh + 1vw);
  background-color: #c29c96;
  color: #ffeded;
  border-radius: calc(0.3vh + 0.3vw);
  font-size: calc(0.7vh + 0.7vw);
  font-weight: 700;
  cursor: pointer;
  font-family: "fot-seurat-pron", sans-serif;
  border: #8b665b solid calc(0.02vh + 0.02vw);
}

.submit-btn:hover {
  background-color: #ad8882;
}

.form-sub-hint {
  font-size: calc(0.35vh + 0.35vw);
  color: #c09880;
  margin: 0;
  font-family: "fot-seurat-pron", sans-serif;
}
.main {
  flex: 1;
  display: flex;
  position: relative;
  height: min(94vw, 94vh) ;
  width: 72vw;
}

.room {
  flex: 1;
  min-height: 0;
  display: flex;
  position: relative;
  align-items: center;
  overflow: hidden;
  border: min(0.3vw, 0.3vh) solid rgb(255, 194, 245);
  border-right: 0px;
  box-shadow: inset 0 0 50px black, calc(0.3vw + 0.3vh) calc(0.3vw + 0.3vh) rgb(255, 223, 250);
  border-radius: 30px 0px 0px 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: calc(5vw + 5vh);
  color: #ffffff;
  background-color: rgba(126, 108, 129, 0.562);
  box-shadow: 0px calc(-0.7vw - 0.7vh) 0px 0px rgb(255, 255, 255);
  border: white calc(0.08vw + 0.08vh) solid;
  border-radius: calc(0.15vw + 0.15vh);
  padding: calc(0.5vw + 0.5vh) calc(0.7vw + 0.7vh);
  width: 80cqw;
  font-size: calc(0.7vw + 0.7vh);
  z-index: 10;
  white-space: pre-wrap;
}

/* 選択肢コンテナ */
.choices-container {
  position: absolute;
  bottom: calc(6.5vw + 6.5vh);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: calc(0.5vw + 0.5vh);
  width: 80%;
  max-width: calc(20vw + 20vh);
  min-width: calc(8vw + 8vh);
  z-index: 11;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 選択肢ボタン */
.choice-button {
  font-weight: 700;
  font-style: normal;
  font-size: calc(0.6vw + 0.6vh);
  color: #a05070;
  background: linear-gradient(180deg, #fff8fb 0%, #ffe8f3 100%);
  border-top: calc(0.03vw + 0.03vh) solid rgba(255, 255, 255, 0.9);
  border-left: calc(0.03vw + 0.03vh) solid rgba(255, 255, 255, 0.7);
  border-right: calc(0.08vw + 0.08vh) solid #e888b0;
  border-bottom: calc(0.08vw + 0.08vh) solid #e888b0;
  border-radius: calc(0.08vw + 0.08vh);
  padding: calc(0.5vw + 0.5vh) calc(0.8vw + 0.8vh);
  cursor: pointer;
  transition: background 0.1s;
  text-align: center;
  box-shadow: calc(0.08vw + 0.08vh) calc(0.08vw + 0.08vh) 0 #e888b0;
  text-shadow: 0 calc(0.03vw + 0.03vh) 0 rgba(255, 255, 255, 0.8);
}

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

.choice-button:active {
  border-top: calc(0.03vw + 0.03vh) solid #e888b0;
  border-left: calc(0.03vw + 0.03vh) solid #e888b0;
  border-right: calc(0.03vw + 0.03vh) solid rgba(255, 255, 255, 0.7);
  border-bottom: calc(0.03vw + 0.03vh) solid rgba(255, 255, 255, 0.7);
  box-shadow: none;
  transform: translateY(calc(0.03vw + 0.03vh));
}
.help-wrap {
  display: flex;
  flex-direction: column;

  border-right: none;
  overflow: hidden;
}

.help-nav {
  display: flex;
  align-items: center;
  gap: calc(0.3vw + 0.3vh);
  padding-left: calc(4vw + 4vh);
  background-color: #ffe8f7;
  border-bottom: calc(0.1vh + 0.1vw) solid #ecc0dd5d;
}

.help-nav-btn {
  color: #e7b8d5;
  padding: calc(0.2vh + 0.2vw) calc(0.6vh + 0.6vw);
  font-size: calc(1.6vh + 1.6vw);
  cursor: pointer;
  transition: background 0.1s;
  font-family: monomaniac-one, sans-serif;
  letter-spacing: calc(0.4vh + 0.4vw);
}

.help-nav-btn:hover {
  background-color: #ffe7f6;
}

.help-nav-btn.active {
  background-color: #ffd5ef;
  color: #ffffff;
}

.help-content {
  flex: 1;
  overflow-y: auto;
  padding: calc(0.5vw + 0.5vh);
  padding-left: calc(4vw + 4vh);
}

.help-content::-webkit-scrollbar {
    display: none;
}

.help-tab {
  display: none;
}

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

.help-title {
  font-size: calc(1.2vh + 1.2vw);
  font-weight: 700;
  color: #a17868;
  margin-bottom: 1.2vw;
  padding-bottom: 0.4vw;
  border-bottom: 2px solid #a178688a;
  font-family: fot-seurat-pron, sans-serif;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.help-body {
  color: #b99283;
  line-height: 1.8;
  font-family: kosugi-maru, sans-serif;
}

.help-text {
  font-size: calc(1.1vh + 1.1vw);
  color: #a17868;
  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: calc(0.9vh + 0.9vw);
}

.help-stroke-top p {
  font-size: calc(0.6vh + 0.6vw);
  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;
}

/* ===== index ===== */

.memo-idx-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow-y: auto;
}

.memo-idx-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(0.3vh + 0.3vw) calc(0.3vh + 0.3vw);
  border-bottom: 2px solid #a779962a;
  background-color: #ffe8f7;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.3) inset;

}

.memo-idx-page-title {
  font-size: calc(1.5vh + 1.5vw);
  padding: calc(0.1vh + 0.1vw) calc(0.6vh + 0.6vw);
  color: #a77996;
  font-family: monomaniac-one, sans-serif;
}

.memo-idx-new-btn {
  color: #d8a3c4;
  background-color: #ffd4ee;
  padding: calc(0.4vh + 0.4vw) calc(0.6vh + 0.6vw);
  border-radius: calc(2vh + 2vw);
  font-size: calc(0.7vh + 0.7vw);
  cursor: pointer;
  text-decoration: none;
  font-family: fot-seurat-pron, sans-serif;
}

.memo-idx-new-btn:hover {
  background-color: #ffe0f1;
}

.memo-idx-count {
  color: #d098ab;
  margin: calc(0.5vh + 0.5vw) calc(0.6vh + 0.6vw);
  padding-left: calc(4vh + 4vw);
  font-size: calc(0.7vh + 0.7vw);
  font-family: fot-seurat-pron, sans-serif;
  background-color: rgba(255, 255, 255, 0.233);
}

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

.memo-idx-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: min-content;
  gap: calc(1vh + 1vw);
  padding-left: calc(5vh + 5vw);
  flex: 1;
  overflow-y: auto;
  align-content: start;
}

.memo-idx-card-wrap {
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.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-color: #ffe8f7;
  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 #e8a0be;
  border-bottom: 2px solid #e8a0bc;
  box-shadow: 2px 2px 6px rgba(192, 160, 232, 0.2);
  flex-shrink: 0;
}

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

.memo-idx-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  background-color: #ffe8f7;
}

.memo-idx-card-img-placeholder-text {
  font-size: calc(0.6vh + 0.6vw);
  color: #97627b;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
  width: 100%;
  font-family: fot-seurat-pron, sans-serif;
}

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

.memo-idx-card-title {
  font-family: kosugi-maru, sans-serif;
    color: #886d61;
      font-size: calc(0.7vh + 0.7vw);
}

.memo-idx-card-date {
  font-size: calc(0.4vh + 0.4vw);
  color: #a7887b;
  margin-top: 2px;
  font-family: kosugi-maru, sans-serif;
}

.memo-idx-detail {
  width: calc(11vh + 11vw);
  padding: 1rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow-y: auto;
  background-color: #ffeffb;
  height: 100%;
}

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

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

.memo-detail-date {
  font-size: calc(0.5vh + 0.5vw);
  color: #d098a9;
  font-family: kosugi-maru, sans-serif;
}

.memo-detail-title {
  font-size: calc(1vh + 1vw);
  color: #d098a9;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  font-family: fot-seurat-pron, sans-serif;
}

.memo-detail-text {
  font-size: calc(0.6vh + 0.6vw);
  color: #d098a9;
  line-height: 1.7;
  white-space: pre-wrap;
  background-color: #ffe9f7;
  padding: calc(0.3vh + 0.3vw);
  border-radius: calc(0.1vh + 0.1vw);
  border-top: 1px solid #e8a0be;
  border-left: 1px solid #e8a0be;
  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);
  font-family: kosugi-maru, sans-serif;
}

.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-color: #eeffee;
  color: #87b886;
  border-radius: calc(0.1vh + 0.1vw);
  box-shadow: calc(0.06vh + 0.06vw) calc(0.06vh + 0.06vw) 0 #87b886;
  padding: calc(0.2vh + 0.2vw);
  font-size: calc(0.5vh + 0.5vw);
  text-decoration: none;
}

.memo-detail-edit-btn:hover {
  background-color: #f9fff9;
}


.memo-detail-delete-btn {
  display: block;
  text-align: center;
  background-color: #ffe2f8;
  color: #b886a5;
  border-radius: calc(0.1vh + 0.1vw);
  box-shadow: calc(0.06vh + 0.06vw) calc(0.06vh + 0.06vw) 0 #b886a3;
  padding: calc(0.2vh + 0.2vw);
  font-size: calc(0.5vh + 0.5vw);
  text-decoration: none;
  width: 100%;
}

.memo-detail-delete-btn:hover {
  background-color: #ffe9fa;
}

.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 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: calc(40vw + 40vh);
  padding: calc(0.6vw + 0.6vh);
  background-color: #ffeafa;
}

.memo-new-header-spacer {
  width: calc(4vh + 4vw);
}

.memo-new {
  padding: calc(1vw + 1vh);
  padding-left: calc(2vw + 2vh);
  height: 100%;
}

.memo-new-title {
  font-size: calc(1.5vh + 1.5vw);
  color: #a77996;
  background-color: rgba(255, 255, 255, 0.411);
  padding: calc(0.3vw + 0.3vh);
  letter-spacing: 0.04em;
  font-family: monomaniac-one, sans-serif;
}

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

.memo-new-label {
  font-size: calc(0.7vh + 0.7vw);
  font-weight: 700;
  color: #97627b;
  margin: 0.6rem;
  font-family: fot-seurat-pron, sans-serif;
}

.memo-new-textarea {
  border-top: 1px solid #ffd3de;
  border-left: 1px solid #ffd3de;
  border-right: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  background-color: #fff6fc;
  border-radius: calc(0.7vh + 0.7vw);
  padding: calc(0.3vh + 0.3vw) calc(0.7vh + 0.7vw);
  font-size: calc(0.5vh + 0.5vw);
  color: #97627b;
  outline: none;
  resize: none;
  line-height: 1.7;
  flex: 1;
  width: 100%;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.06);
  font-family: fot-seurat-pron, sans-serif;
}

.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 {
  background-color: #fff6fc;
  border-radius: calc(0.7vh + 0.7vw);
  padding: calc(0.3vh + 0.3vw) calc(0.7vh + 0.7vw);
  color: #97627b;
  outline: none;
  resize: none;
  line-height: 1.7;
  flex: 1;
  width: 100%;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.06);
  font-family: fot-seurat-pron, sans-serif;
  border: 2px dashed #ffd3de;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

}

.memo-new-file-text {
  font-size: calc(0.5vh + 0.5vw);
  color: #d3acbf;
}

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

.memo-new-submit {
  font-size: calc(1vh + 1vw);
  border-radius: 999px;
  cursor: pointer;
  background-color: #ffd0ef;
  border-radius: calc(0.7vh + 0.7vw);
  padding: calc(0.3vh + 0.3vw) calc(15vh + 15vw);
  ;
  color: #c090a6;
  margin: 1rem;
  font-family: fot-seurat-pron, sans-serif;
}

.memo-new-submit:hover {
  background-color: #ffd9f2;
}

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

.memo-new-input {
  border-top: 1px solid #ffd3de;
  border-left: 1px solid #ffd3de;
  border-right: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  background-color: #fff6fc;
  border-radius: calc(0.7vh + 0.7vw);
  padding: calc(0.3vh + 0.3vw) calc(0.7vh + 0.7vw);
   font-size: calc(0.5vh + 0.5vw);
  color: #97627b;
  outline: none;
  resize: none;
  line-height: 1.7;
  flex: 1;
  width: 100%;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.06);
  font-family: fot-seurat-pron, sans-serif;
}

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

.memo-new-back-btn {
  color: #d8a3c4;
  background-color: #ffd4ee;
  padding: calc(0.4vh + 0.4vw) calc(0.6vh + 0.6vw);
  border-radius: calc(2vh + 2vw);
  font-size: calc(0.7vh + 0.7vw);
  cursor: pointer;
  text-decoration: none;
  font-family: fot-seurat-pron, sans-serif;
}

.memo-new-back-btn:hover {
  background-color: #ffe0f5;
}


/* ===== 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: calc(0.2vw + 0.2vh) calc(0.7vw + 0.7vh);
  font-size: calc(0.7vw + 0.7vh);
  color: #85645a;
  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 {
  display: flex;
  justify-content: center;
  margin-left: calc(0.6vw + 0.6vh);
  background-image: linear-gradient(359deg, #ffffff 35%, rgb(255, 231, 249));
  width: 100%;
  border-radius: 30px 0px 0px 30px;
  container-type: inline-size;
  overflow: hidden;
  box-shadow: calc(0.3vw + 0.3vh) calc(0.3vw + 0.3vh) rgb(255, 223, 250);
  border: calc(0.1vw + 0.1vh) solid rgb(255, 222, 249);
  border-right: 0px;
}

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

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  height: calc(2.6vw + 2.6vh);
  font-size: calc();
  background-color: #fff0fa;
  border-radius: calc(3vw + 3vh);
  margin-top: calc(0.5vw + 0.5vh);
  overflow: hidden;
  flex-wrap: nowrap;
  box-shadow: 3px 3px 0px 0px #e6d3cb;
}

.main-header p {
  padding: calc(0.3vw + 0.3vh) calc(0.4vw + 0.4vh);
  margin: calc(0.2vw + 0.2vh);
  color: #a77996;
  font-size: calc(0.7vw + 0.7vh);
  font-family: "fot-seurat-pron", sans-serif;
}

.pa {
  border-right: solid min(0.3vw, 0.3vh) #a77996;
}

.add-task {
  color: #ffffff;
  font-size: calc(1.3vw + 1.3vh);
  padding: calc(0.2vw + 0.2vh) calc(0.7vw + 0.7vh);
  padding-left: calc(0.6vw + 0.6vh);
  margin-top: calc(0.5vw + 0.5vh);
  border-radius: calc(0.4vw + 0.4vh);
  background-color: #caa898;
  border: solid calc(0.1vw + 0.1vh) #b38b7b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "fot-seurat-pron", sans-serif;
}

.add-task:hover {
    background-color: #b18b7a;
}


.add-task:active {
  -webkit-transform: translateY(4px);
  transform: translateY(4px);
  border-bottom: none;
}

.main-day-list {
  background-color: rgba(255, 240, 245, 0.685);
  margin: calc(0.6vw + 0.6vh);
  height: 86%;
  padding: calc(0.02vw + 0.02vh);
  border-radius: 2%;
}

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

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

.list-head,
.today-head {
  font-family: "monomaniac-one", sans-serif;
  color: #8d6a61;
  display: flex;
  font-size: calc(1.6vw + 1.6vh);
  margin: calc(0.2vw + 0.2vh) calc(0.5vw + 0.5vh);
  background: linear-gradient(transparent 50%, rgba(255, 255, 255, 0.6) 50%);
}

.list-todo,
.today-todo {
  background-color: #fffdf9b7;
  border: solid 3px #ffffff85;
  margin: calc(0.6vw + 0.6vh)0px;
  border-radius: 6px;
}


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

.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: calc(0.8vw + 0.8vh) calc(0.8vw + 0.8vh) calc(0.6vw + 0.6vh);
  padding: calc(0.6vw + 0.6vh);
  border-radius: 10px;
  display: flex;
  background-color: #ffffff;
  border-left: solid 12px #ffedd8;
  box-shadow: calc(0.2vw + 0.2vh) calc(0.2vw + 0.2vh) 0px 0px rgba(0, 0, 0, 0.089);
}

.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-task,
.main-task {
  margin-left: calc(0.4vw + 0.4vh);
  width: 70%;
  padding: calc(0.1vw + 0.1vh);
  color: #96755f;
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  word-break: break-word;
  font-family: "fot-seurat-pron", sans-serif;
  white-space: nowrap;
    text-overflow: ellipsis;
}




.main-task {
  font-size: calc(0.7vw + 0.7vh);
}

.child-task {
  font-size: calc(0.6vw + 0.6vh);
}

.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: #83625a;
  font-size: calc(0.5vw + 0.5vh);
}

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

.image-percent {
  height: 300px;
  width: 300px;

}


.task-percent-main {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(2vw + 2vh);
}


.todo-progress-circle {
  font-size: calc(0.9vw + 0.9vh);
  color: #a85858;
  font-family: "fot-seurat-pron", sans-serif;
}


.task-percent {
  padding: calc(2vw + 2vh);
  margin: calc(0.5vw + 0.5vh);
  margin-top: 0px;
  height: calc(13vw + 13vh);
  width: calc(25vw + 25vh);
  box-shadow: 2px 2px 6px rgba(192, 160, 232, 0.2);
  background-color: #fefff2;
  border-radius: 14px;
}

.progress-circle {
  --size: calc(9vw + 9vh);
  position: relative;
  width: var(--size);
  height: var(--size);
}

.progress-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-bg {
  fill: none;
  stroke: #ffd8e5;
  stroke-width: 8;
}

.progress-bar {
  fill: none;
  stroke: #e898b9;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 0.6s ease;
}

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

.progress-text .percent {
  font-size: calc(2vw + 2vh);
  font-weight: bold;
  color: #c07091;
  line-height: 1;

  font-family: "fot-seurat-pron", sans-serif;
}

.progress-text .fraction {
  font-size: calc(0.5vw + 0.5vh);
  color: #d098ae;
  margin-top: calc(0.2vw + 0.2vh);

  font-family: "fot-seurat-pron", sans-serif;
}

/* ===== 今週の統計テーブル ===== */
.week-stats {
  display: flex;
  flex-direction: column;
  gap: calc(0.4vw + 0.4vh);
  margin-top: calc(-2vw - 2vh);
}

.week-stats-title {
  font-size: calc(1vw + 1vh);
  padding-left: calc(1vw + 1vh);
  padding-right: calc(1vw + 1vh);
  color: #a85858;
  font-family: "fot-seurat-pron", sans-serif;
}




.week-stats-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.week-stats-table tr:first-child td:first-child {
  border-radius: 8px 0 0 0;
}

.week-stats-table tr:first-child td:last-child {
  border-radius: 0 8px 0 0;
}

.week-stats-table tr:last-child td:first-child {
  border-radius: 0 0 0 8px;
}

.week-stats-table tr:last-child td:last-child {
  border-radius: 0 0 8px 0;

}

.week-stats-label {
  font-size: calc(0.9vw + 0.9vh);
  color: #c07091;
  padding: calc(0.7vw + 0.7vh) calc(0.5vw + 0.5vh);
  background: rgba(255, 196, 219, 0.4);
  border-bottom: calc(0.06vw + 0.06vh) solid rgb(109, 46, 54);
  font-family: "fot-seurat-pron", sans-serif;

}

.week-stats-value {
  font-size: calc(0.9vw + 0.9vh);
  font-weight: 700;
  color: #c07091;
  padding: calc(0.7vw + 0.7vh) calc(0.5vw + 0.5vh);
  text-align: right;
  background: rgba(255, 237, 244, 0.4);
  border-bottom: calc(0.06vw + 0.06vh) solid rgb(109, 46, 54);
  font-family: "fot-seurat-pron", sans-serif;

}




.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  margin-top: calc(0.1vw + 0.1vh);
  width: calc(0.7vw + 0.7vh);
  height: calc(0.7vw + 0.7vh);
  border: calc(0.06vw + 0.06vh) solid #948272;
  border-radius: 50%;
  /* 丸にしたい場合。四角なら 4px とか */
  cursor: pointer;
  position: relative;
}

/* チェック時 */
.custom-checkbox:checked {
  background-color: #b8877b;
}

/* チェックマーク */
.custom-checkbox:checked::after {
  content: '✓';
  color: white;
  font-size: 16px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.list-todo-new {
  background-color: #fffdf9b7;
  border: solid 3px #ffffff85;
  margin: calc(0.6vw + 0.6vh)calc(0.6vw + 0.6vh);
}

.task-head {
  font-weight: bold;
  padding: calc(0.7vw + 0.7vh) 0px;
  font-size: calc(1.6vw + 1.6vh);
  font-family: "fot-seurat-pron", sans-serif;
  text-align: center;
  border-bottom: solid 1px #ecc3de;
  background-color: #ffe5f6;
  color: #a77996;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tasks {
  display: flex;
  justify-content: space-around;

}

.task-content,
.task-add {
  background: rgba(255, 255, 255, 0.822);
  border: 1px solid #ecc3de;
  border-radius: 16px;
  padding: calc(1vw + 1vh);
  margin: calc(1vw + 1vh);
  width: calc(16vw + 16vh);
  height: calc(23vw + 23vh);
}

.task-content {
  color: #9b7160;
  font-size: calc(1vw + 1vh);
  width: calc(20vw + 20vh);
  font-family: "monomaniac-one", sans-serif;
}

.task-view {
  display: flex;
}

.task-add {
  display: flex;
  flex-direction: column;
  gap: calc(0.5vw + 0.5vh);
}

.task-add label {
  display: flex;
  flex-direction: column;
  gap: calc(0.5vw + 0.5vh);
  font-size: calc(0.6vw + 0.6vh);
  color: #9b7160;
  font-family: "fot-seurat-pron", sans-serif;
}

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

.task-add input,
.task-add select,
.task-add textarea {
  padding: calc(0.3vw + 0.3vh) calc(0.5vw + 0.5vh);
  border-top: calc(0.02vw + 0.02vh) solid #e8a0c8;
  border-left: calc(0.02vw + 0.02vh) solid #e8a0c8;
  border-right: calc(0.02vw + 0.02vh) solid rgba(255, 255, 255, 0.7);
  border-bottom: calc(0.02vw + 0.02vh) solid rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  background-color: #fff5fa;
  color: #ffc3e2;
  font-family: "fot-seurat-pron", sans-serif;
}

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

.task-add .add {
  border-radius: 50px;
  padding: calc(0.6vw + 0.6vh);
  background-color: #ffd9ee;
  color: #ffffff;
  font-size: calc(1vw + 1vh);
}

.task-add .add:hover {
  background-color: #ffc4e4;
}

.back-link {
  border-radius: 40px;
  font-size: 80%;
  margin-top: 8px;
  padding: 0.2vw 0.6vw;
  background-color: #fff4fa;
  color: #e8a0c8;
  transition: all 0.3s ease;
}

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

/* ============================
   マイページ レトロSNS風
   ============================ */

.mypage-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  border-radius: 30px;
  margin-left: calc(3vw + 3vh);
}

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

.mypage-sns {
  display: flex;
  height: 100%;
  gap: 0;
}

/* ===== 左カラム ===== */
.mypage-left {
  width: calc(10vw + 10vh);
  min-width: calc(10vw + 10vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(1.5vw + 1.5vh) calc(0.8vw + 0.8vh);
  background-color: #ffe0f6;
  border-right: calc(0.1vw + 0.1vh) dashed #e8a0c0;
}

.mypage-avatar-frame {
  width: calc(7vw + 7vh);
  height: calc(7vw + 7vh);
  border-radius: calc(0.5vw + 0.5vh);
  overflow: hidden;
  border: calc(0.15vw + 0.15vh) solid #e8a0c0;
  box-shadow: calc(0.15vw + 0.15vh) calc(0.15vw + 0.15vh) 0 #d090a8;
  background: #fff;
}

.mypage-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mypage-left-name {
  font-size: calc(0.7vw + 0.7vh);
  font-weight: 700;
  color: #a05878;
  margin-top: calc(0.5vw + 0.5vh);
  font-family: "fot-seurat-pron", sans-serif;
}

.mypage-left-since {
  font-size: calc(0.35vw + 0.35vh);
  color: #c098a8;
  margin-top: calc(0.1vw + 0.1vh);
  font-family: "fot-seurat-pron", sans-serif;
}

.mypage-left-actions {
  margin-top: calc(0.8vw + 0.8vh);
  display: flex;
  flex-direction: column;
  gap: calc(0.3vw + 0.3vh);
  width: 100%;
}

.mypage-left-btn {
  display: block;
  text-align: center;
  padding: calc(0.3vw + 0.3vh) calc(0.5vw + 0.5vh);
  border-radius: calc(0.2vw + 0.2vh);
  font-size: calc(0.35vw + 0.35vh);
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(180deg, #e8a0c0 0%, #d080a8 100%);
  border: calc(0.05vw + 0.05vh) solid #c07098;
  box-shadow: calc(0.05vw + 0.05vh) calc(0.05vw + 0.05vh) 0 #b06088;
  font-family: "fot-seurat-pron", sans-serif;
  transition: all 0.2s;
}

.mypage-left-btn:hover {
  background: linear-gradient(180deg, #f0b0d0 0%, #e090b8 100%);
  transform: translateY(-1px);
}

/* ===== 右カラム ===== */
.mypage-right {
  flex: 1;
  padding: calc(1vw + 1vh) calc(1.5vw + 1.5vh);
  display: flex;
  flex-direction: column;
  gap: calc(0.8vw + 0.8vh);
  overflow-y: auto;
}

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

.mypage-right-header {
  padding-bottom: calc(0.5vw + 0.5vh);
  border-bottom: calc(0.05vw + 0.05vh) solid #e8c0d0;
}

.mypage-right-username {
  font-size: calc(1vw + 1vh);
  font-weight: 700;
  color: #a05878;
  font-family: "fot-seurat-pron", sans-serif;
}

.mypage-right-email {
  font-size: calc(0.4vw + 0.4vh);
  color: #c098a8;
  display: flex;
  align-items: center;
  gap: calc(0.3vw + 0.3vh);
  margin-top: calc(0.15vw + 0.15vh);
  font-family: "fot-seurat-pron", sans-serif;
}

.mypage-badge-ok {
  font-size: calc(0.3vw + 0.3vh);
  padding: calc(0.05vw + 0.05vh) calc(0.25vw + 0.25vh);
  border-radius: calc(0.5vw + 0.5vh);
  font-weight: 700;
  background: #d8ffd8;
  color: #408040;
  border: 1px solid #a0d8a0;
}

.mypage-badge-pending {
  font-size: calc(0.3vw + 0.3vh);
  padding: calc(0.05vw + 0.05vh) calc(0.25vw + 0.25vh);
  border-radius: calc(0.5vw + 0.5vh);
  font-weight: 700;
  background: #fff8d8;
  color: #907020;
  border: 1px solid #e0c870;
}

/* ===== セクション共通 ===== */
.mypage-right-section {
  display: flex;
  flex-direction: column;
  gap: calc(0.3vw + 0.3vh);
}

.mypage-section-title {
  font-size: calc(1.2vw + 1.2vh);
  color: #cf9bb2;
  font-weight: 700;
  border-bottom: calc(0.05vw + 0.05vh) dashed #e8c0d0;
  padding-bottom: calc(0.15vw + 0.15vh);
  font-family: monomaniac-one, sans-serif;

}

/* ===== 好感度バー ===== */
.mypage-affection-bar-wrap {
  display: flex;
  align-items: center;
  gap: calc(0.4vw + 0.4vh);
}

.mypage-affection-bar {
  flex: 1;
  height: calc(0.4vw + 0.4vh);
  background: #f0d8e8;
  border-radius: calc(0.4vw + 0.4vh);
  overflow: hidden;
}

.mypage-affection-fill {
  height: 100%;
  background-color: #ffb7d2;
  border-radius: calc(0.4vw + 0.4vh);
  transition: width 0.5s ease;
}

.mypage-affection-num {
  font-size: calc(0.4vw + 0.4vh);
  color: #c07898;
  font-weight: 700;
  white-space: nowrap;
  font-family: "fot-seurat-pron", sans-serif;
}

/* ===== 統計グリッド ===== */
.mypage-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(0.4vw + 0.4vh);
}

.mypage-stats-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(0.4vw + 0.4vh);
  background-color: #ffffff;
  border: calc(0.05vw + 0.05vh) solid #f0c8d8;
  border-radius: calc(0.3vw + 0.3vh);
}

.mypage-stats-num {
  font-size: calc(0.8vw + 0.8vh);
  font-weight: 700;
  color: #a05878;
  font-family: "fot-seurat-pron", sans-serif;
}

.mypage-stats-label {
  font-size: calc(0.3vw + 0.3vh);
  color: #c098a8;
  white-space: nowrap;
  font-family: "fot-seurat-pron", sans-serif;
}

/* ===== アクティビティ ===== */
.mypage-activity {
  display: flex;
  flex-direction: column;
}

.mypage-activity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(0.25vw + 0.25vh) 0;
  border-bottom: calc(0.03vw + 0.03vh) dotted #e8c0d0;
}

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

.mypage-activity-label {
  font-size: calc(0.4vw + 0.4vh);
  color: #c098a8;
  font-family: "fot-seurat-pron", sans-serif;
}

.mypage-activity-value {
  font-size: calc(0.4vw + 0.4vh);
  font-weight: 700;
  color: #a05878;
  font-family: "fot-seurat-pron", sans-serif;
}

/* ===== 危険ゾーン ===== */
.mypage-right-danger {
  margin-top: auto;
  padding-top: calc(0.5vw + 0.5vh);
  border-top: calc(0.05vw + 0.05vh) solid #f0d0d0;
}

.mypage-danger-btn {
  font-size: calc(0.35vw + 0.35vh);
  padding: calc(0.2vw + 0.2vh) calc(0.6vw + 0.6vh);
  background: #fff0f0;
  color: #c06060;
  border: calc(0.05vw + 0.05vh) solid #e0a0a0;
  border-radius: calc(0.2vw + 0.2vh);
  cursor: pointer;
  font-family: "fot-seurat-pron", sans-serif;
  transition: all 0.2s;
}

.mypage-danger-btn:hover {
  background: #ffe0e0;
}



.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%);
}

.confirmation-sent-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: calc(2vw + 2vh);
  text-align: center;
}

.confirmation-sent-icon {
  font-size: calc(3vw + 3vh);
  margin-bottom: calc(1vw + 1vh);
}

.confirmation-sent-title {
  font-size: calc(1.2vw + 1.2vh);
  color: #ffffff;
  font-family: "fot-seurat-pron", sans-serif;
  margin-bottom: calc(0.8vw + 0.8vh);
}

.confirmation-sent-text {
  font-size: calc(0.5vw + 0.5vh);
  color: #ffffff;
  line-height: 2;
  margin-bottom: calc(1vw + 1vh);
  font-family: "fot-seurat-pron", sans-serif;
}

.confirmation-sent-note {
  background: rgba(255, 242, 232, 0.281);
  border: 1px solid #e8a0c8;
  border-radius: 10px;
  padding: calc(0.6vw + 0.6vh) calc(1vw + 1vh);
  margin-bottom: calc(1vw + 1vh);
  text-align: left;
  font-size: calc(0.4vw + 0.4vh);
  color: #ffffff;
  font-family: "fot-seurat-pron", sans-serif;
}

.confirmation-sent-note ul {
  margin: calc(0.2vw + 0.2vh) 0 0 calc(0.8vw + 0.8vh);
}

.confirmation-sent-note li {
  margin-bottom: calc(0.1vw + 0.1vh);
}

.confirmation-sent-btn {
  color: #ffe5e7;
  background-color: #ff87d7;
  padding: calc(0.4vw + 0.4vh) calc(1.2vw + 1.2vh);
  border-radius: calc(2vw + 2vh);
  font-size: calc(0.6vw + 0.6vh);
  text-decoration: none;
  box-shadow: calc(0.1vw + 0.1vh) calc(0.1vw + 0.1vh) 0 #e477c9;
  font-family: "fot-seurat-pron", sans-serif;
}

.confirmation-sent-btn:hover {
  background-color: #ffa3e0;
}

/* ============================
   マイページ 編集フォーム（SNS風）
   ============================ */

.mypage-edit-form {
  display: flex;
  flex-direction: column;
  gap: calc(0.6vw + 0.6vh);
}

.mypage-edit-field {
  display: flex;
  flex-direction: column;
  gap: calc(0.15vw + 0.15vh);
}

.mypage-edit-label {
  font-size: calc(0.4vw + 0.4vh);
  font-weight: 700;
  color: #a05878;
  font-family: "fot-seurat-pron", sans-serif;
}

.mypage-edit-hint {
  font-size: calc(0.3vw + 0.3vh);
  color: #c098a8;
  font-weight: 400;
}

.mypage-edit-input {
  padding: calc(0.35vw + 0.35vh) calc(0.5vw + 0.5vh);
  border: calc(0.05vw + 0.05vh) solid #e8c0d0;
  border-radius: calc(0.2vw + 0.2vh);
  font-size: calc(0.4vw + 0.4vh);
  color: #a05878;
  background: linear-gradient(180deg, #ffffff 0%, #fff8fc 100%);
  outline: none;
  font-family: "fot-seurat-pron", sans-serif;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.04);
}

.mypage-edit-input:focus {
  border-color: #e090b0;
  box-shadow: 0 0 0 calc(0.1vw + 0.1vh) rgba(224, 144, 176, 0.2), inset 1px 1px 3px rgba(0, 0, 0, 0.04);
}

.mypage-edit-input::placeholder {
  color: #d8b8c8;
}

.mypage-edit-divider {
  height: calc(0.05vw + 0.05vh);
  background: linear-gradient(90deg, transparent, #e8c0d0, transparent);
  margin: calc(0.2vw + 0.2vh) 0;
}

.mypage-edit-submit {
  display: flex;
  justify-content: center;
  margin-top: calc(0.3vw + 0.3vh);
}

.mypage-edit-submit-btn {
  padding: calc(0.35vw + 0.35vh) calc(1.5vw + 1.5vh);
  background: linear-gradient(180deg, #e8a0c0 0%, #d080a8 100%);
  color: #ffffff;
  font-size: calc(0.45vw + 0.45vh);
  font-weight: 700;
  border: calc(0.05vw + 0.05vh) solid #c07098;
  border-radius: calc(2vw + 2vh);
  box-shadow: calc(0.05vw + 0.05vh) calc(0.05vw + 0.05vh) 0 #b06088;
  cursor: pointer;
  font-family: "fot-seurat-pron", sans-serif;
  text-shadow: 1px 1px 0 #a06080;
  transition: all 0.2s;
}

.mypage-edit-submit-btn:hover {
  background: linear-gradient(180deg, #f0b0d0 0%, #e090b8 100%);
  transform: translateY(-1px);
}

@media (max-width: 768px) {


  .frame {
    padding: 0 !important;
    min-width: unset !important;
    width: 100vw !important;
    height: 100vh !important;
  }

  .header-bars {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 70px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    border-top: 2px solid #ad7e98 !important;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1) !important;
    z-index: 100 !important;
    padding: 0 !important;
    background-color: #ffe3f3 !important;
  }

  .header {
    height: 100% !important;
    width: 100% !important;
    padding: 0 8px !important;
    border: none !important;
    box-shadow: none !important;
    background-image: none !important;
    border-radius: 0 !important;
  }

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

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

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

  .main-back {
    border-radius: 0 !important;
    margin-left: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }

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

  .side-bar {
    display: none !important;
  }

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

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

  .text-box {
    font-size: 17px;
    width: 90cqw;
    height: 120px
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  .side-bar {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 1200 !important;
    transform: translateX(100%) !important;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow-y: auto !important;
    flex-direction: column !important;
    margin-bottom: 0 !important;
  }

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

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

  /* ===== サイドバー内全体 ===== */
  .side-bar {
    width: 100vw !important;
    height: 100vh !important;
  }

  .header-clock {
    padding: 12px !important;
  }

  .main-clock {
    font-size: 60px !important;
    padding: 10px !important;
    -webkit-text-stroke: 5px rgb(141, 118, 163) !important;
  }

  .week-and-year {
    font-size: 16px !important;
    padding: 6px !important;
    -webkit-text-stroke: 1px rgb(141, 118, 163) !important;
  }

  /* ===== タイマー ===== */
  .timer {
    padding: 6px 12px !important;
    height: auto !important;
  }

  .timers {
    padding: 12px 10px !important;
    height: auto !important;
    border-radius: 12px !important;
  }

  .number {
    font-size: 115px !important;
    height: auto !important;
    padding: 20px 8px !important;
    -webkit-text-stroke: 4px white !important;
    background-size: contain !important;
    border: 2px solid #ffffff !important;
    border-radius: 10px !important;
  }

  .button {
    height: 60px !important;
    margin: 8px 4px !important;
  }

  .timer-start {
    border-top: 12px solid transparent !important;
    border-bottom: 12px solid transparent !important;
    border-left: 20px solid #a8a8a8 !important;
  }

  .timer-stop {
    width: 20px !important;
    height: 22px !important;
    background-size: 5px 20px !important;
  }

  .timer-step-forward,
  .timer-step-backward {
    font-size: 20px !important;
  }

  .timers-backward,
  .timers-forward {
    width: 50px !important;
    padding: 4px 10px !important;
  }

  .timers-start {
    width: 46px !important;
    padding: 10px 14px !important;
  }

  .timer-select select {
    font-size: 16px !important;
    padding: 6px 10px !important;
  }

  .pomodoro-status,
  .pomodoro-settings,
  .countdown {
    font-size: 14px !important;
  }

  .pomodoro-setting-item label,
  .pomodoro-setting-item span,
  .countdown span {
    font-size: 14px !important;
  }

  .pomodoro-setting-item input[type="number"],
  .countdown input[type="number"] {
    font-size: 14px !important;
    width: 44px !important;
  }

  #pomodoro-label,
  #pomodoro-count {
    font-size: 14px !important;
  }

  /* ===== アラーム ===== */
  .alarm {
    padding: 10px !important;
    flex: 1 !important;
    min-height: 0 !important;
  }

  .alarm-main {
    height: auto !important;
    max-height: 600px !important;
    overflow-y: auto !important;
  }

  .alarm-time li {
    font-size: 20px !important;
    padding: 10px 16px !important;
    margin: 4px !important;
    border-radius: 14px !important;
  }

  .alarm-setting {
    height: 34px !important;
    margin: 6px 0 12px !important;
    border-radius: 10px !important;
  }

  .alarm-delete,
  .alarm-addition {
    font-size: 13px !important;
    height: 30px !important;
    border-radius: 10px !important;
  }

  .alarm-toggle {
    width: 48px !important;
    height: 26px !important;
  }

  .alarm-toggle-slider {
    border-radius: 26px !important;
  }

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

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

  .alarm-time-display::-webkit-calendar-picker-indicator {
    width: 24px !important;
    height: 24px !important;
  }

  /* ===== アラームモーダル ===== */
  .alarm-modal-content {
    padding: 20px 24px !important;
    min-width: 300px !important;
    border-radius: 12px !important;
    border: 2px solid #fcbad6 !important;
    box-shadow: 4px 4px 0 #fcbad6 !important;
  }

  .alarm-modal-title {
    font-size: 18px !important;
    margin-bottom: 14px !important;
    border-bottom: 2px solid #e888b0 !important;
    padding-bottom: 10px !important;
  }

  .alarm-modal-body label {
    font-size: 14px !important;
    margin-bottom: 8px !important;
  }

  .alarm-time-input {
    font-size: 22px !important;
    padding: 10px 14px !important;
    border-radius: 6px !important;
  }

  .alarm-modal-buttons {
    gap: 12px !important;
  }

  .alarm-modal-save,
  .alarm-modal-cancel {
    font-size: 14px !important;
    padding: 8px 28px !important;
    border-radius: 4px !important;
  }
}
.alarm {
  padding: calc(0.6vw + 0.6vh);
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.alarm-main {
  height: calc(10vw + 10vh);
  overflow-y: auto;
}

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

.alarm-time li {
  font-family: "DotGothic16", sans-serif;
  overflow: hidden;
  font-size: calc(1.3vw + 1.3vh);
  color: rgb(255, 255, 255);
  paint-order: stroke;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: calc(0.2vw + 0.2vh);
  padding: calc(0.4vw + 0.4vh) calc(0.8vw + 0.8vh);
  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: calc(1vw + 1vh);
  height: calc(1vw + 1vh);
  cursor: pointer;
}


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

.alarm-setting {
  border-radius: 14px;
  height: calc(1vw + 1vh);
  background-color: #f0ebf1;
  margin: 5px 0px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alarm-delete,
.alarm-addition {
  font-size: calc(0.6vw + 0.6vh);
  height: calc(1vw + 1vh);
  width: 30%;

  border: solid calc(0.01vw + 0.01vh) 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;
  font-family: "ads-strong", sans-serif;
}

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

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

.alarm-toggle {
  position: relative;
  display: inline-block;
  width: calc(2vw + 2vh);
  height: calc(1vw + 1vh);
  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: calc(0.9vw + 0.9vh);
  height: calc(0.9vw + 0.9vh);
  left: calc(0.1vw + 0.1vh);
  top: calc(0.06vw + 0.06vh);
  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: #ffd2ff;
}

.alarm-toggle input:checked+.alarm-toggle-slider::before {
  transform: translateX(calc(0.9vw + 0.9vh));
}


/* アラーム追加モーダル */
.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;
  font-family: fot-seurat-pron, sans-serif;
}

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

.alarm-modal-content {
  background-color: #fff3f8;
  border-top: calc(0.1vw + 0.1vh) solid rgba(255, 255, 255, 0.9);
  border-left: calc(0.1vw + 0.1vh) solid rgba(255, 255, 255, 0.7);
  border-right: calc(0.1vw + 0.1vh) solid #fcbad6;
  border-bottom: calc(0.1vw + 0.1vh) solid #fcbad6;
  border-radius: calc(0.6vw + 0.6vh);
  padding: calc(1vw + 1vh) calc(1.3vw + 1.3vh);
  min-width: calc(14vw + 14vh);
  box-shadow: calc(0.15vw + 0.15vh) calc(0.15vw + 0.15vh) 0 #fcbad6, calc(0.08vw + 0.08vh) calc(0.08vw + 0.08vh) calc(0.3vw + 0.3vh) rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(calc(-2vw - 2vh));
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.alarm-modal-title {
  font-size: calc(0.6vw + 0.6vh);
  font-weight: 700;
  color: #a05070;
  margin: 0 0 calc(0.6vw + 0.6vh) 0;
  text-align: center;
  border-bottom: calc(0.08vw + 0.08vh) solid #e888b0;
  padding-bottom: calc(0.3vw + 0.3vh);
  letter-spacing: 0.1em;
  text-shadow: calc(0.03vw + 0.03vh) calc(0.03vw + 0.03vh) 0 rgba(255, 255, 255, 0.8);
}

.alarm-modal-body {
  margin-bottom: calc(0.8vw + 0.8vh);
}

.alarm-modal-body label {
  display: block;
  font-size: calc(0.5vw + 0.5vh);
  font-weight: 700;
  color: #c06090;
  margin-bottom: calc(0.3vw + 0.3vh);
  text-shadow: 0 calc(0.03vw + 0.03vh) 0 rgba(255, 255, 255, 0.8);
}

.alarm-time-input {
  width: 100%;
  padding: calc(0.3vw + 0.3vh) calc(0.5vw + 0.5vh);
  font-size: calc(0.8vw + 0.8vh);
  border-top: calc(0.03vw + 0.03vh) solid #e888b0;
  border-left: calc(0.03vw + 0.03vh) solid #e888b0;
  border-right: calc(0.03vw + 0.03vh) solid rgba(255, 255, 255, 0.7);
  border-bottom: calc(0.03vw + 0.03vh) solid rgba(255, 255, 255, 0.7);
  border-radius: calc(0.15vw + 0.15vh);
  background-color: #ffffff;
  color: #a05070;
  box-sizing: border-box;
  cursor: pointer;
  box-shadow: inset calc(0.03vw + 0.03vh) calc(0.03vw + 0.03vh) calc(0.1vw + 0.1vh) rgba(0, 0, 0, 0.06);
}

.alarm-time-input::-webkit-calendar-picker-indicator {
  cursor: pointer !important;
  font-size: calc(0.8vw + 0.8vh) !important;
  opacity: 1 !important;
  display: block !important;
}

.alarm-modal-buttons {
  display: flex;
  gap: calc(0.4vw + 0.4vh);
  justify-content: center;
}

.alarm-modal-save,
.alarm-modal-cancel {
  font-size: calc(0.5vw + 0.5vh);
  font-weight: 700;
  padding: calc(0.2vw + 0.2vh) calc(1vw + 1vh);
  border-radius: calc(0.1vw + 0.1vh);
  cursor: pointer;
  transition: background 0.1s;
  box-shadow: calc(0.03vw + 0.03vh) calc(0.03vw + 0.03vh) 0 #e888b0;
  font-family: fot-seurat-pron, sans-serif;
}

.alarm-modal-save {
  background-color: #fcbad6;
  color: #ffffff;
}

.alarm-modal-save:hover {
  background-color: #ffd7e8;
}

.alarm-modal-cancel {
  background-color: #ffd7e8;
  color: #c06090;
}

.alarm-modal-cancel:hover {
  background-color: #ffe9f2;
}
.side-bar {
  z-index: 1;

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

  border-radius: 0px 16px 16px 0px;
  height: clamp(600px, 94vh, 2160px);
  width: calc(15vw + 15vh);
  margin-bottom: calc(1.5vw + 1.5vh);
  border: calc(0.1vw + 0.1vh) solid rgb(255, 222, 249);
  border-left: 0px;
  box-shadow: calc(0.3vw + 0.3vh) calc(0.3vw + 0.3vh) rgb(255, 223, 250);
  background-image: linear-gradient(359deg, #ffffff 35%, rgb(255, 231, 249));
}

.header-clock {
  padding: calc(0.6vw + 0.6vh);
}

.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: #fff7f6;
  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: calc(0.2vw + 0.2vh) rgb(141, 118, 163);
  font-family: "ads-strong", sans-serif;

}

.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;
  padding: calc(0.6vw + 0.6vh);
  font-size: calc(2.3vw + 2.3vh);
}

.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;
  padding: calc(0.2vw + 0.2vh);
  font-size: calc(0.5vw + 0.5vh);
}


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

/* チュートリアルモード */
.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;
}



/* なでた時のハートアニメーション */
.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;
}

.timer {
  display: flex;
  flex-direction: column;
   padding: 0px calc(0.6vw + 0.6vh) ;
  height: 40cqh;
  position: relative;
  z-index: 0;
}

.timers {
  padding: calc(0.7vw + 0.7vh) calc(1vw + 1vh) ;
  display: flex;
  flex-direction: column;
  height: calc(40vw + 40vh) ;
  border-radius: 6%;
  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: calc(25vw + 25vh);
  background-size: calc(12vw + 12vh);
  background-image: url(/assets/layouts/timersa-df25eb24505a95d6caa5847a009a104ead540c5f68a27c0bf30edbd2af714b2e.png);
  background-position: center;
  font-size: calc(4vw + 4vh);
  border-radius: 14px;
  color: #ffc2f7;
  border: solid calc(0.1vw + 0.1vh) #ffffff;
  -webkit-text-stroke: calc(0.3vw + 0.3vh) white;
  paint-order: stroke;
  box-shadow: 0px 0px 7px 0px inset rgb(192, 130, 160);
}


.timer-select select {
  color: gray;
  font-size: calc(0.6vw + 0.6vh);
}


.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;
  font-size: calc(0.6vw + 0.6vh);
}

.button {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin: calc(0.6vw + 0.6vh);
  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;
}

/* ポモドーロ設定パネル */
.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-family: calc(0.3vw + 0.3vh);
  color: gray;
  white-space: nowrap;
  flex-shrink: 0;
}

.pomodoro-setting-item label {
  font-family: calc(0.3vw + 0.3vh);
  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-family: calc(0.3vw + 0.3vh);
  text-align: center;
}

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

.pomodoro-setting-item span {
  font-family: calc(0.3vw + 0.3vh);
  opacity: 0.85;
}

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

#pomodoro-label {
  font-family: calc(0.3vw + 0.3vh);
  color: gray;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 10px;
  border-radius: 20px;
}

#pomodoro-count {
  font-family: calc(0.3vw + 0.3vh);
  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-family: calc(0.3vw + 0.3vh);
  text-align: center;
}

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

.countdown span {
  font-family: calc(0.3vw + 0.3vh);
  color: gray;
  opacity: 0.85;
}
body {
  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: calc(29vw + 29vh);
  margin: 1svh;
  width: calc(6vw + 6vh);
  padding: calc(0.4vw + 0.4vh);
  padding-top: calc(0.9vw + 0.9vh);
  border: calc(0.1vw + 0.1vh) solid #ad7e98;
  box-shadow: min(0.6vw, 0.6vh) min(0.6vw, 0.6vh) #ad7e98;
  border-radius: calc(0.5vw + 0.5vh);
  background-color: #ffe3f3;
  position: relative;
  z-index: 1;
  container-type: size;
  font-family: "fot-seurat-pron", sans-serif;
}

.header {
  border: calc(0.1vw + 0.1vh) solid #e7b2d1;
  border-radius: 7px;
  display: flex;
  padding: 6cqh 4cqw;
  height: 80cqh;
  width: 100cqw;
  background-color: #fff4f7;
  background-image: radial-gradient(circle, #ffffff 15px, transparent 15px), radial-gradient(circle, #ffffff 15px, transparent 15px);
  background-position: 0 0, 27.5px 55px;
  background-size: 55px 110px;
  box-shadow: inset 0px 0px 30px 0px #ffffff, inset 0px 0px 30px 0px #ffffff, inset 0px 0px 30px 0px #ffffff, inset 0px 0px 30px 0px #ffffff;
  overflow: hidden;
}

.icon-from {
  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: calc(0.1vw + 0.1vh);
  border-radius: calc(0.1vw + 0.1vh);
  margin-bottom: calc(0.3vw + 0.3vh);
  text-decoration: none;
  color: #815560;
  font-size: calc(0.5vw + 0.5vh);
  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: rgba(255, 255, 255, 0.705);
  padding: calc(0.1vw + 0.1vh);
}


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

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

.nav-link-logout:hover {
  background: #ffc9c9bb;
  padding: min(0.2vw, 0.2vh);
}

/* ============================
   サイドバー開閉タブボタン（デフォルト非表示）
   ============================ */
.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-right: none;
  background-color: #ffbfed;
  box-shadow: -2px 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #ffffff;
  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;
  background-color: #ffbfed;
  box-shadow: -2px 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #ffffff;
  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;
}



/* ============================
   好感度ゲージ
   ============================ */

.affection-gauge-wrap {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(200px, 30vw, 400px);
  background: linear-gradient(180deg, rgba(255, 248, 254, 0.95) 0%, rgba(255, 234, 247, 0.95) 100%);
  border: 1.5px solid #f0c0da;
  border-radius: 14px;
  padding: 10px 16px;
  z-index: 10;
  box-shadow: 2px 2px 8px rgba(232, 160, 220, 0.2);
}

.affection-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 6px;
  font-size: clamp(12px, 0.9vw, 16px);
  color: #a8588d;
  font-weight: 700;
}

.affection-heart {
  color: #e868a8;
  font-size: clamp(14px, 1.1vw, 20px);
}

.affection-separator {
  color: #d098bd;
}

.affection-cap-value {
  color: #d098bb;
}

.affection-bar {
  width: 100%;
  height: 10px;
  background: #ffd8ed;
  border-radius: 10px;
  overflow: hidden;
}

.affection-fill {
  height: 100%;
  background: linear-gradient(90deg, #e8a0d0 0%, #d070b8 50%, #c050a0 100%);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.affection-info {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: clamp(9px, 0.65vw, 12px);
  color: #d098b7;
}

.affection-streak {
  color: #e08020;
}

/* ============================
   イベント一覧パネル
   ============================ */

.affection-events-panel {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(240px, 32vw, 420px);
  max-height: 50vh;
  background: linear-gradient(180deg, rgba(255, 248, 254, 0.97) 0%, rgba(254, 234, 255, 0.97) 100%);
  border: 1.5px solid #f0c0e8;
  border-radius: 16px;
  z-index: 20;
  box-shadow: 0 4px 20px rgba(200, 120, 169, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.affection-events-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: linear-gradient(180deg, #ffd8f8 0%, #f8b8e8 100%);
  border-bottom: 1px solid #e8a0de;
}

.affection-events-title {
  font-size: clamp(13px, 1vw, 17px);
  font-weight: 700;
  color: #ffffff;
  text-shadow: 1px 1px 0 #c070a8;
}

.affection-events-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 50%;
  transition: background 0.2s;
}

.affection-events-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.affection-events-list {
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.affection-events-list::-webkit-scrollbar {
  display: none;
}

.affection-event-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8e8f5;
  border: 1px solid #f0d0e5;
  opacity: 0.5;
  transition: all 0.2s;
}

.affection-event-item.unlocked {
  opacity: 1;
  background: linear-gradient(180deg, #fff8fe 0%, #ffeafa 100%);
  border-color: #f0c0e6;
  cursor: pointer;
}

.affection-event-item.unlocked:hover {
  background: linear-gradient(180deg, #ffeaf9 0%, #ffd8f7 100%);
  transform: translateX(4px);
}

.affection-event-item.next-event {
  opacity: 0.8;
  border-color: #e8a0d0;
  background: linear-gradient(180deg, #fff8fc 0%, #ffe8f4 100%);
}

.affection-event-icon {
  font-size: clamp(16px, 1.2vw, 22px);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffd8f3;
  flex-shrink: 0;
}

.affection-event-item.unlocked .affection-event-icon {
  background: linear-gradient(180deg, #f0a0d0 0%, #e070b0 100%);
  color: #ffffff;
}

.affection-event-item.next-event .affection-event-icon {
  background: linear-gradient(180deg, #ffe0f0 0%, #f0c0d8 100%);
}

.affection-event-info {
  flex: 1;
  min-width: 0;
}

.affection-event-name {
  font-size: clamp(12px, 0.85vw, 15px);
  font-weight: 700;
  color: #a85894;
}

.affection-event-item:not(.unlocked) .affection-event-name {
  color: #d098b9;
}

.affection-event-desc {
  font-size: clamp(10px, 0.7vw, 12px);
  color: #d098b7;
  margin-top: 2px;
}

.affection-event-item.next-event .affection-event-desc {
  color: #d070a0;
}



/* ============================
   イベント画像オーバーレイ
   ============================ */

.event-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.event-image-overlay.active {
  opacity: 1;
}

.event-image-overlay img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.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;
}
.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.
 *


 */
 
