body {
  background-color: #f4ead5;
  color: #4b3a2a;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}

h1 {
  font-size: 32px;
  font-weight: 700;
  color: #5a3e2b;
  border-bottom: 2px solid #9b7653;
  padding-bottom: 12px;
}

p {
  font-size: 16px;
  line-height: 1.8;
}
button {
  background-color: #fffaf0;
  color: #5a3e2b;
  border: 2px solid #d9a06c;
  border-radius: 20px;
  padding: 12px 18px;
  margin: 6px;
  font-size: 16px;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
   font-weight: bold;
  cursor: pointer;
}

button:hover {
  background-color: #f7d6c0;
}

.status-card {
  background-color: #fffaf0;
  border: 2px solid #e7b98f;
  border-radius: 18px;
  padding: 24px;
  margin: 24px 0 32px 0;
  box-shadow: 0 4px 10px rgba(90, 62, 43, 0.12);

  background-image:
    linear-gradient(
      to bottom,
      transparent 31px,
      #efd9c5 32px
    );

  background-size: 100% 32px;
}

.status-title {
  display: inline-block;
  font-size: 22px;
  font-weight: bold;
  color: #5a3e2b;
  background-color: #f7d6c0;
  padding: 6px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
}

.status-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-icon {
  font-size: 22px;
}

.status-label {
  font-weight: bold;
  color: #5a3e2b;
}

.status-value {
  font-size: 20px;
  font-weight: bold;
  color: #d85d6f;
}

.status-value {
  font-size: 20px;
  font-weight: bold;
  color: #d85d6f;
}

button:disabled {
  background-color: #e8dfd3;
  color: #aaa097;
  border-color: #d1c6bb;
  opacity: 0.5;
  cursor: not-allowed;
}

button:disabled:hover {
  background-color: #e8dfd3;
}
.edit-button {
  padding: 4px 7px;
  margin-left: 10px;
  border: none;
  background: transparent;
  font-size: 15px;
  opacity: 0.55;
  cursor: pointer;
}

.edit-button:hover {
  background: #f7d6c0;
  opacity: 1;
}

.event-item {
  display: grid;
  grid-template-columns: 55px 75px 110px 25px;
  column-gap: 8px;
  align-items: center;

  min-height: 42px;
  border-bottom: 1px solid #eadcc8;
}

.edit-button {
  padding: 3px;
  margin: 0;
  border: none;
  background: transparent;
  font-size: 14px;
  opacity: 0.55;
  cursor: pointer;
}

.edit-button:hover {
  background: #f7d6c0;
  opacity: 1;
}

.notebook {
  background-color: #fffaf0;
  border: 1px solid #d8c4aa;
  border-radius: 8px;

  padding: 18px 20px 18px 34px;
  margin-top: 16px;

  box-shadow: 2px 3px 8px rgba(90, 62, 43, 0.10);

  /* ノートの赤い縦線 */
  border-left: 3px solid #d88b83;
}

.event-item {
  display: flex;
  align-items: center;

  min-height: 42px;

  border-bottom: 1px solid #eadcc8;
}

.event-place {
  min-width: 75px;
}

.date-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0;
}

.date-navigation p {
  margin: 0;
  font-weight: bold;
  text-align: center;
}

#today-button {
  font-size: 13px;
  padding: 6px 12px;
}

#today-button:disabled {
  opacity: 0.4;
}

.month-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0;
}

.month-navigation h3 {
  margin: 0;
  font-size: 22px;
}

/* =========================
   月間記録ページ
   ========================= */

.month-navigation {
  background-color: #fffaf0;
  border: 2px solid #e7b98f;
  border-radius: 18px;
  padding: 16px 18px;
  margin: 20px 0 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  box-shadow: 0 4px 10px rgba(90, 62, 43, 0.10);
}

.month-navigation h3 {
  margin: 0;
  font-size: 22px;
  color: #d85d6f;
}


/* 月ごとの記録が入る部分 */

#monthly-list {
  background-color: #fffaf0;
  border: 2px solid #e7b98f;
  border-radius: 18px;

  padding: 18px 24px;
  margin-top: 18px;

  box-shadow: 0 4px 10px rgba(90, 62, 43, 0.10);

  /* ノートの罫線 */
  background-image:
    linear-gradient(
      to bottom,
      transparent 39px,
      #efd9c5 40px
    );

  background-size: 100% 40px;
}


/* 1日分 */

#monthly-list > p {
  margin: 0;
  min-height: 40px;

  display: flex;
  align-items: center;

  font-size: 15px;
}


/* 今月のまとめ */

.monthly-summary {
  background-color: #f9dfcf;

  border: 2px dashed #dc9b86;
  border-radius: 14px;

  padding: 14px 20px;
  margin-top: 24px;
  margin-bottom: 8px;

  box-shadow: 2px 3px 6px rgba(90, 62, 43, 0.08);
}

.monthly-summary h3 {
  margin-top: 0;
  margin-bottom: 12px;

  color: #5a3e2b;
  font-size: 19px;
}

.monthly-summary p {
  margin: 7px 0;
}

.monthly-summary strong {
  color: #d85d6f;
  font-size: 18px;
}


/* 今日の記録へ戻るボタンは少し控えめ */

.monthly-back {
  margin-top: 24px;
}

.monthly-back button {
  font-size: 14px;
}

/* =========================
   メロンソーダ・パステル配色
   既存デザインを壊さず、最後に上書き
   ========================= */

:root {
  --cream: #f7f1df;
  --paper: #fffdf4;
  --brown: #4f3b2d;

  --melon: #8fcfb0;
  --melon-dark: #4f9d82;
  --melon-pale: #dff2e7;

  --soda-blue: #a9d9df;
  --soda-blue-pale: #e5f4f5;

  --lemon: #f4dda0;
  --pink: #e88a9a;

  --line: #c9dfd0;
  --disabled: #e6e2d8;
}

/* ページ全体 */
body {
  background-color: var(--cream);
  color: var(--brown);
}

/* タイトル */
h1 {
  color: var(--brown);
  border-bottom-color: var(--melon-dark);
}

/* 共通ボタン */
button {
  background-color: var(--paper);
  color: var(--brown);
  border-color: var(--melon);
}

button:hover {
  background-color: var(--melon-pale);
  border-color: var(--melon-dark);
}

button:disabled {
  background-color: var(--disabled);
  color: #aaa59b;
  border-color: #d5d0c6;
  opacity: 0.55;
}

button:disabled:hover {
  background-color: var(--disabled);
}

/* 現在の記録カード */
.status-card {
  background-color: var(--paper);
  border-color: var(--melon);
  box-shadow: 0 4px 10px rgba(79, 157, 130, 0.12);

  background-image:
    linear-gradient(
      to bottom,
      transparent 31px,
      var(--soda-blue-pale) 32px
    );
}

.status-title {
  color: var(--brown);
  background-color: var(--melon-pale);
}

.status-label {
  color: var(--brown);
}

.status-value {
  color: var(--melon-dark);
}

/* 修正アイコン */
.edit-button:hover {
  background: var(--melon-pale);
}

/* 今日の履歴ノート */
.notebook {
  background-color: var(--paper);
  border-color: var(--line);
  border-left-color: var(--soda-blue);
  box-shadow: 2px 3px 8px rgba(79, 157, 130, 0.10);
}

.event-item {
  border-bottom-color: var(--line);
}

/* 日付ナビ */
#today-button:disabled {
  opacity: 0.35;
}

/* 月間ナビ */
.month-navigation {
  background-color: var(--paper);
  border-color: var(--melon);
  box-shadow: 0 4px 10px rgba(79, 157, 130, 0.10);
}

.month-navigation h3 {
  color: var(--melon-dark);
}

/* 月間一覧ノート */
#monthly-list {
  background-color: var(--paper);
  border-color: var(--melon);
  box-shadow: 0 4px 10px rgba(79, 157, 130, 0.10);

  background-image:
    linear-gradient(
      to bottom,
      transparent 39px,
      var(--soda-blue-pale) 40px
    );
}

/* 今月のまとめ：メロンソーダ色のメモカード */
.monthly-summary {
  background-color: #e8f5e9;
  border-color: var(--melon);
  box-shadow: 2px 3px 6px rgba(79, 157, 130, 0.10);
}

.monthly-summary h3 {
  color: var(--melon-dark);
}

.monthly-summary strong {
  color: #2f8f83;
}

/* 少しだけ水色のアクセント */
.monthly-back button {
  border-color: var(--soda-blue);
}

.monthly-back button:hover {
  background-color: var(--soda-blue-pale);
}

/* 月間ページの見出しを少し爽やかに */
h2 {
  color: var(--brown);
}

h2::first-letter {
  color: var(--soda-blue);
}

/* =========================
   月間一覧の表
   ========================= */

.monthly-row {
  display: grid;

  grid-template-columns:
    95px
    120px
    120px
    120px
    minmax(180px, 1fr);

  align-items: start;

  column-gap: 16px;
  row-gap: 4px;

  min-height: 48px;

  padding: 10px 12px;

  border-bottom: 1px solid #c9dfd0;
}

.monthly-header {
  font-weight: bold;

  color: #4f9d82;

  background-color:
    rgba(223, 242, 231, 0.7);

  border-radius: 10px;

  margin-bottom: 4px;
}

.monthly-date {
  font-weight: bold;
  color: #4f3b2d;
}

.monthly-date-button {
  background: transparent;
  border: none;
  padding: 4px 6px;
  margin: 0;

  color: #4f3b2d;
  font-size: 15px;
  font-weight: bold;

  text-align: left;
  cursor: pointer;
}

.monthly-date-button:hover {
  background-color: #dff2e7;
  color: #4f9d82;

  border-radius: 8px;
}
.monthly-day-off {
  opacity: 0.6;
}

.monthly-day-off .monthly-date-button {
  opacity: 0.8;
}

.saturday {
  background-color: rgba(100, 150, 200, 0.08);
}

.sunday {
  background-color: rgba(200, 100, 100, 0.08);
}
.monthly-date-button {
  white-space: nowrap;
  min-width: 90px;
}

.today-row {
  font-weight: bold;
  background-color: rgba(180, 210, 190, 0.12);
  outline: 1px solid rgba(120, 160, 130, 0.25);
  border-radius: 6px;
}

.monthly-future-day {
  opacity: 0.45;
}

.manual-form {
  margin-top: 16px;
  padding: 18px;

  background-color: #fffdf4;
  border: 2px solid #8fcfb0;
  border-radius: 16px;

  box-shadow: 0 4px 10px rgba(79, 157, 130, 0.10);
}

.manual-form label {
  display: block;
  margin-bottom: 12px;
  font-weight: bold;
}

.manual-form select,
.manual-form input {
  width: 100%;
  box-sizing: border-box;

  margin-top: 6px;
  padding: 10px;

  border: 1px solid #a9d9df;
  border-radius: 10px;

  background-color: #fffdf4;
  font-family: inherit;
}

.manual-form-buttons {
  margin-top: 14px;
}

.hidden {
  display: none;
}

.daily-memo {
  margin-top: 20px;
  padding: 18px;

  background-color: #fffdf4;
  border: 2px solid #a9d9df;
  border-radius: 16px;

  box-shadow: 0 4px 10px rgba(79, 157, 130, 0.10);
}

.daily-memo textarea {
  width: 100%;
  box-sizing: border-box;

  padding: 12px;
  margin-bottom: 10px;

  border: 1px solid #8fcfb0;
  border-radius: 10px;

  background-color: #fffdf4;

  font-family: inherit;
  font-size: 15px;

  resize: vertical;
}
.monthly-row span:last-child {
  white-space: normal;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.monthly-header {
  align-items: center;
}
.calendar-section {
  margin: 24px 0;
  padding: 20px;

  background: #fffdf4;
  border: 2px solid #8fcfb0;
  border-radius: 18px;
}

.calendar-weekdays,
.work-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-weekdays {
  margin-bottom: 8px;

  text-align: center;
  font-weight: bold;
}

.calendar-day {
  height:44px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;

  cursor: pointer;
}

.calendar-empty {
  visibility: hidden;
}

.calendar-legend {
  display: flex;
  align-items: center;
  gap: 6px;

  margin-top: 14px;

  font-size: 13px;
}

.legend-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}
.level-1 {
  background-color: #e8f7ef;
}

.level-2 {
  background-color: #c9efdc;
}

.level-3 {
  background-color: #8fd8bd;
}

.level-4 {
  background-color: #4fb58e;
  color: white;
  font-weight: bold;
}

.calendar-day:hover {
  transform: translateY(-2px);
}

.place-buttons,
.work-buttons,
.manual-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.place-buttons {
  margin-bottom: 10px;
}

.work-buttons {
  margin-bottom: 8px;
}

.manual-buttons {
  margin-bottom: 16px;
}

/* =========================
   クリームソーダ
   ========================= */

.soda-page {
  margin-top: 24px;
  text-align: center;
}

.soda-message {
  margin-bottom: 22px;
}


/* グラス */

.soda-glass

/* メロンソーダ */

.soda-liquid {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

    overflow: hidden;

  height: 35%;

  background-color: #72c9a7;

  transition: height 1.5s ease;

  border-radius:
    0 0 38px 38px;


}
/* グラス */

.soda-glass {
  position: relative;

  width: 210px;
  height: 245px;

  margin: 0 auto;

  overflow: hidden;

  background-color: rgba(255, 255, 255, 0.30);

  border: 4px solid #a9d9df;
  border-top: 3px solid #a9d9df;

  /* 🍹 喫茶店っぽい、ふっくらした丸み */
  border-radius:
   20px 20px 90px 90px
   / 14px 14px 80px 80px;

  box-shadow:
    inset 0 0 14px rgba(255, 255, 255, 0.85),
    0 5px 12px rgba(79, 157, 130, 0.12);

  box-sizing: border-box;
}

/* 泡 */

.bubble {
  position: absolute;

  width: 10px;
  height: 10px;

  background-color: rgba(255, 255, 255, 0.7);

  border-radius: 50%;
}

.bubble-1 {
  left: 25%;
  bottom: 15%;
}

.bubble-2 {
  left: 65%;
  bottom: 30%;

  width: 7px;
  height: 7px;
}

.bubble-3 {
  left: 45%;
  bottom: 50%;

  width: 12px;
  height: 12px;
}

.bubble-4 {
  left: 75%;
  bottom: 65%;

  width: 6px;
  height: 6px;
}


/* 進捗表示 */

.soda-progress {
  margin-top: 18px;

  color: #4f9d82;

  font-weight: bold;
}

/* =========================
   しゅわしゅわアニメーション
   ========================= */

.bubble {
  animation: bubble-up 3s infinite ease-in;
}

.bubble-1 {
  animation-delay: 0s;
}

.bubble-2 {
  animation-delay: 0.8s;
}

.bubble-3 {
  animation-delay: 1.5s;
}

.bubble-4 {
  animation-delay: 2.2s;
}

@keyframes bubble-up {

  0% {
    transform: translateY(0);
    opacity: 0;
  }

  20% {
    opacity: 0.8;
  }

  80% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(-180px);
    opacity: 0;
  }
}
.bubble {
  animation: bubble-up 3s infinite ease-in;
}
.soda-container {
  position: relative;

  width: 220px;
  margin: 100px auto 90px;
}


/* 脚 */
/* グラスの脚 */
.soda-container::before {
  content: "";

  position: absolute;

  left: 50%;
  top: 245px;

  transform: translateX(-50%);

  width: 28px;
  height: 68px;

  border-left: 3px solid #a9d9df;
  border-right: 3px solid #a9d9df;

  background:
    linear-gradient(
      to right,
      rgba(255,255,255,0.55),
      rgba(169,217,223,0.18),
      rgba(255,255,255,0.60)
    );

  border-radius: 8px 8px 14px 14px;

  box-shadow:
    inset 5px 0 6px rgba(255,255,255,0.45),
    inset -5px 0 6px rgba(79,157,130,0.08);

  box-sizing: border-box;
}


/* グラスの台座 */
.soda-container::after {
  content: "";

  position: absolute;

  left: 50%;
  top: 306px;

  transform: translateX(-50%);

  width: 125px;
  height: 22px;

  border: 3px solid #a9d9df;
  border-radius: 50%;

  background:
    radial-gradient(
      ellipse at center,
      rgba(255,255,255,0.65) 0%,
      rgba(229,244,245,0.38) 55%,
      rgba(169,217,223,0.22) 100%
    );

  box-shadow:
    0 4px 6px rgba(79,157,130,0.10),
    inset 0 3px 5px rgba(255,255,255,0.65);

  box-sizing: border-box;
}
/* =========================
   バニラアイス
   ========================= */

.icecream {
  position: absolute;

  left: 40%;
  top: -72px;

  transform: translateX(-50%);

  width: 95px;
  height: 82px;

  opacity: 0;
  z-index: 8;

  pointer-events: none;
}

.icecream-scoop {
  width: 105px;
  height: 90px;

  background: #fff3d6;

  /* 完全な丸ではなく、スクープっぽく */
border-radius:
  20px 20px 85px 85px
  / 14px 14px 70px 70px;

  box-shadow:
    inset 8px 8px 12px rgba(255, 255, 255, 0.65),
    inset -6px -7px 10px rgba(210, 180, 130, 0.12),
    0 4px 7px rgba(79, 59, 45, 0.12);
}

.icecream.completed {
  animation: icecream-drop 0.8s ease-out forwards;
}

@keyframes icecream-drop {

  0% {
    top: -85px;
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

78% {
  top: -36px;
}

90% {
  top: -43px;
}

100% {
  top: -34px;
  opacity: 1;
}
}


/* 以下略 */
/* =========================
   満タンのごほうび：チェリー
   ========================= */
.cherry {
  position: absolute;

  /* 少し右へ */
  left: 60%;
  top: -75px;

  width: 54px;
  height: 70px;

  transform: translateX(-50%);

  opacity: 0;
  z-index: 10;
  pointer-events: none;
}


/* 🍒 実 */

.cherry-fruit {
  position: absolute;

  left: 7px;
  bottom: 0;

  /* 少し大きく */
  width: 40px;
  height: 40px;

  border-radius: 50%;

  background: #e85d6a;

  box-shadow:
    inset 7px 7px 9px rgba(255, 255, 255, 0.30),
    0 4px 6px rgba(79, 59, 45, 0.16);
}


/* つや */

.cherry-fruit::after {
  content: "";

  position: absolute;

  top: 7px;
  left: 9px;

  width: 9px;
  height: 7px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.65);
}


/* 🌿 茎 */

.cherry-stem {
  position: absolute;

  left: 33px;
  top: 0;

  width: 3px;
  height: 40px;

  background: #4f9d82;

  border-radius: 50%;

  transform: rotate(20deg);
  transform-origin: bottom center;
}
.cherry.completed {
  animation: cherry-drop .75s ease-out forwards;
}
@keyframes cherry-drop {

  0% {
    top: -75px;
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  78% {
    top: -27px;
  }

  90% {
    top: -34px;
  }

  100% {
    top: -30px;
    opacity: 1;
  }
}

/* =========================
   バックアップ
   ========================= */

.backup-section {
  margin-top: 24px;
  padding: 16px 18px;

  background: #fffdf4;
  border: 1px dashed #8fcfb0;
  border-radius: 14px;

  text-align: center;
}

.backup-section h3 {
  margin: 0 0 12px;
  color: #4f9d82;
}

.backup-section input[type="file"] {
  margin: 8px;
  font-family: inherit;
  font-size: 13px;
}