.panel.middle {
  display: grid;
  grid-template-rows: 1fr !important;
  /* もくにけーしょんを下まで伸ばす */
  gap: 8px;
  min-height: 0;
  height: 100%;
}

.panel.middle>.section {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

/* もくにけーしょんを下まで伸ばす */
.panel.middle>.communication-section {
  flex: 0 0 auto !important;
  /* flexレイアウトの干渉を防ぐ */
  height: auto !important;
  /* grid-template-rowsに従う */
  min-height: 0 !important;
  max-height: 100% !important;
  /* 親要素の高さを超えない */
  display: grid !important;
  /* flow-rootやcondensedを上書きしてgridレイアウトを強制 */
  grid-template-rows: auto 1fr !important;
  overflow: hidden !important;
}

/* タブバーを含む構造に対応 */
.communication-section .communication-tab-content {
  min-height: 0;
  overflow: hidden;
}

.communication-section #sprintTabContent {
  overflow-y: auto;
  overflow-x: hidden;
}

/* 右カラムのレイアウトは right-panel-tabs.css 側でタブ構造として制御する */
/* もくにけーしょん/スプリントと同じ構造：タブバー(auto)＋タブコンテンツ(1fr) */
.panel.right>.section {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

/* 右カラム各セクションの中身をスクロール可能に */
.panel.right .logBox {
  min-height: 0;
  overflow-y: hidden;
  overflow-x: auto;
}

.panel.right .logBox .loglist {
  min-height: 0;
  overflow-y: auto;
  overflow-x: visible;
}

.communication-section .communication-content,
.communication-section #logicTreeContainer {
  min-height: 0;
  overflow: auto;
}

/* ユーティリティクラス */

/* テキストサイズ */
.text-xs {
  font-size: 9px;
}

.text-sm {
  font-size: 10px;
}

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

.text-md {
  font-size: 12px;
}

/* カラー */
.text-gray-400 {
  color: #999;
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-600 {
  color: #64748b;
}

.text-blue-600 {
  color: #0369a1;
}

.text-blue-500 {
  color: #3b82f6;
}

.text-amber-500 {
  color: #f59e0b;
}

/* フォントウェイト */
.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-black {
  font-weight: 900;
}

/* Flexbox */
.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: 4px;
}

.gap-5 {
  gap: 5px;
}

.gap-8 {
  gap: 8px;
}

/* Spacing */
.mr-2 {
  margin-right: 2px;
}

.mr-3 {
  margin-right: 3px;
}

.mr-4 {
  margin-right: 4px;
}

.mr-8 {
  margin-right: 8px;
}

.mr-12 {
  margin-right: 12px;
}

.mb-4 {
  margin-bottom: 4px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mt-4 {
  margin-top: 4px;
}

.mt-8 {
  margin-top: 8px;
}

.m-0 {
  margin: 0;
}

.p-0 {
  padding: 0;
}

/* Padding */
.p-1 {
  padding: 3px 8px;
}

.p-2 {
  padding: 6px 16px;
}

/* Display */
.hidden {
  display: none;
}

.block {
  display: block;
}

.inline {
  display: inline;
}

/* White-space */
.whitespace-nowrap {
  white-space: nowrap;
}

/* Position */
.relative {
  position: relative;
}

/* Flex grow/shrink */
.flex-1 {
  flex: 1;
}

/* Max-width */
.max-w-200 {
  max-width: 200px;
}

/* Borders */
.border-gray-300 {
  border: 2px solid #cbd5e1;
}

.rounded-lg {
  border-radius: 8px;
}

/* Background */
.bg-white {
  background: #fff;
}

.bg-gray-600 {
  background: #6b7280;
}

.text-white {
  color: #fff;
}

/* Cursor */
.cursor-pointer {
  cursor: pointer;
}

/* 組み合わせクラス */
/* 通信状況情報グループ外の要素（既存スタイルを維持） */
.version-tag {
  font-size: 10px;
  color: #999;
}

.stat-info {
  font-size: 11px;
  color: #6b7280;
  font-weight: 600;
  margin-right: 12px;
}

.stat-active {
  font-size: 11px;
  color: #0369a1;
  font-weight: 600;
}

/* .coin-display は要素削除に伴い未使用 */

.btn-sm {
  padding: 3px 8px;
  font-size: 10px;
}

.btn-xs {
  padding: 2px 6px;
  font-size: 9px;
}

.btn-md {
  padding: 6px 16px;
}

.btn-gray {
  background: #6b7280 !important;
  /* mutebtnの背景色を上書き */
  color: #fff !important;
}

.flex-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.flex-gap-4 {
  display: flex;
  gap: 4px;
}

.flex-gap-5 {
  display: flex;
  gap: 5px;
  align-items: center;
}

.flex-gap-8 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rpg-stats-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.form-control {
  flex: 1;
  max-width: 200px;
  padding: 6px 8px;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  font-size: 11px;
  background: #fff;
  cursor: pointer;
}

.label-sm {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

.shortcut-section-override {
  padding: 2px 6px !important;
  display: block !important;
  gap: 0 !important;
  min-height: 0 !important;
  height: fit-content !important;
}

.shortcut-text {
  font-size: 9px;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

.shortcut-title {
  margin-right: 3px;
  font-size: 10px;
  padding: 0;
  border: none;
  display: inline;
}

.moku-power {
  font-size: 10px;
  color: #6b7280;
}

.moku-power-value {
  font-weight: 600;
  color: #3b82f6;
}

/* 追加ユーティリティ */
.egg-container {
  margin-top: 8px;
  text-align: center;
  padding: 20px;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  background: #f9fafb;
}

.egg-icon {
  font-size: 48px;
}

.egg-title {
  margin: 4px 0 0 0;
  font-size: 11px;
  color: #6b7280;
}

.egg-subtitle {
  margin: 2px 0 0 0;
  font-size: 10px;
  color: #9ca3af;
}

.w-150 {
  width: 150px;
}

.w-140 {
  width: 140px;
}

.communication-list {
  overflow: auto;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 8px;
  background: #f0f9ff;
  min-height: 0;
}

.empty-state {
  text-align: center;
  color: var(--hint);
  padding: 20px;
}

.max-w-600 {
  max-width: 600px;
}

.row-between {
  display: flex;
  justify-content: space-between;
}

.mb-6 {
  margin-bottom: 6px;
}

.mb-16 {
  margin-bottom: 16px;
}

.ml-8 {
  margin-left: 8px;
}

.section-title {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.section-hint-inline {
  font-size: 11px;
  font-weight: 400;
  color: #475569;
}

.section-hint {
  margin: 4px 0 8px;
}

/* モーダル・フォーム用クラス */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.input-disabled {
  background: #f1f5f9;
  cursor: not-allowed;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
}

.input-editable {
  padding: 6px 8px;
  border: 2px solid #10b981;
  border-radius: 4px;
}

.textarea-editable {
  width: 300px;
  height: 150px;
  padding: 10px;
  border: 2px solid #10b981;
  border-radius: 4px;
  resize: none;
}

.flex-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-large {
  padding: 10px 16px;
  font-size: 13px;
  white-space: nowrap;
}

.row-end {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.full-width {
  width: 100%;
}

.min-w-180 {
  min-width: 180px;
}

.pomodoro-hidden {
  display: none;
}

.modal-content {
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  z-index: 10001;
  pointer-events: auto;
  touch-action: auto;
  -webkit-user-select: text;
}

/* モーダルコンテンツ内の入力要素を操作可能にする */
.modal-content select,
.modal-content input,
.modal-content textarea,
.modal-content button {
  pointer-events: auto;
  touch-action: auto;
  -webkit-user-select: text;
}

/* モバイル対応: モーダルコンテンツを画面に収める */
@media (max-width: 768px) {
  .modal-content {
    max-width: 95vw;
    max-height: 85vh;
    padding: 16px;
    margin: 8px;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  margin: 0;
  font-size: 20px;
}

.modal-section {
  margin-bottom: 20px;
}

.modal-section-title {
  font-size: 14px;
  margin: 0 0 12px 0;
  color: #374151;
}

.modal-section-desc {
  margin: -6px 0 12px 0;
  font-size: 12px;
  color: #6b7280;
}

/* レイアウト編集 */
.layout-editor-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

/* 項目名行（ドラッグ可能） */
.layout-editor-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: move;
  user-select: none;
  touch-action: none;
  transition: background 0.2s, border-color 0.2s;
}

.layout-editor-name-row:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.layout-editor-name-row.dragging {
  opacity: 0.5;
  background: #e5e7eb;
}

.layout-editor-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
}

.layout-editor-drag-handle {
  color: #9ca3af;
  font-size: 16px;
  cursor: grab;
  flex-shrink: 0;
}

.layout-editor-drag-handle:active {
  cursor: grabbing;
}

.layout-editor-buttons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.layout-editor-buttons .button {
  flex: 1;
  padding: 10px 16px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.layout-editor-buttons .button:hover {
  background: #2563eb;
}

.layout-editor-buttons .button:active {
  transform: scale(0.98);
}

.layout-editor-buttons .button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-group {
  display: flex;
  gap: 8px;
}

.btn-mode {
  flex: 1;
  padding: 12px;
}

.btn-mode.active {
  background: #ffbd1a;
}

.btn-mode small {
  font-size: 10px;
  opacity: 0.8;
}

.bgm-list {
  display: grid;
  gap: 8px;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.volume-icon {
  font-size: 20px;
}

.volume-slider {
  flex: 1;
}

.volume-text {
  min-width: 40px;
  text-align: right;
  font-weight: 600;
  color: #3b82f6;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.checkbox-input {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.checkbox-text {
  font-size: 14px;
  font-weight: 600;
}

.info-box {
  padding: 12px;
  background: #f3f4f6;
  border-radius: 8px;
  font-size: 12px;
  color: #6b7280;
}

.info-row {
  margin-bottom: 4px;
}

.btn-test {
  flex: 1;
}

.size-btn,
.scale-btn,
.quality-btn,
.fps-btn,
.zoom-btn {
  flex: 1;
  padding: 10px;
  border: 2px solid #e5e7eb;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

.size-btn.active,
.scale-btn.active,
.quality-btn.active,
.fps-btn.active,
.zoom-btn.active {
  border: 2px solid #3b82f6;
  background: #eff6ff;
  font-weight: 600;
}

.btn-sub-text {
  font-size: 10px;
  color: #6b7280;
}

.btn-sub-text-active {
  font-size: 10px;
  color: #3b82f6;
}

/* Chip buttons (共通チップスタイル) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.chip:hover {
  background: #f9fafb;
}

.chip:active {
  transform: translateY(1px);
}

.chip .chip-icon {
  font-size: 12px;
}

.chip--ok {
  border-color: var(--accent);
  color: var(--accent);
}

.chip--ok:hover {
  background: var(--accent-soft);
}

.chip--danger {
  border-color: #ef4444;
  color: #dc2626;
}

.chip--danger:hover {
  background: #fef2f2;
}

.chip--add {
  border-color: var(--line);
  color: #374151;
}

.chip--add:hover {
  background: var(--accent-soft);
}

/* ToDo 見出し下の破線用 */
#todoSection .section-divider {
  border-bottom: 1px dashed var(--line);
  margin: 4px 0 6px 0;
}

/* 最後の仕上げ用クラス */
.hidden-section {
  display: none;
  margin-bottom: 20px;
}

.modal-wide {
  max-width: 800px;
  width: 90%;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
}

.modal-medium {
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  z-index: 10001;
  pointer-events: auto;
  touch-action: auto;
  -webkit-user-select: text;
}

/* モーダルミディアム内の入力要素を操作可能にする */
.modal-medium select,
.modal-medium input,
.modal-medium textarea,
.modal-medium button {
  pointer-events: auto;
  touch-action: manipulation;
}

/* モバイル対応: モーダルを画面に収める */
@media (max-width: 768px) {
  .modal-medium {
    max-width: 95vw;
    width: calc(100% - 16px);
    max-height: 85vh;
    padding: 16px;
    margin: 8px;
  }
}

/* プロフィール編集モーダル用コンパクトスタイル */
.modal-compact {
  max-width: 360px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  z-index: 10001;
  pointer-events: auto;
  touch-action: auto;
  -webkit-user-select: text;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.modal-compact-title {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  text-align: center;
}

.modal-compact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.modal-compact-field label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.modal-compact-field input,
.modal-compact-field select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.modal-compact-field input:focus,
.modal-compact-field select:focus {
  outline: none;
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.modal-compact-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.modal-compact-actions button {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-compact-actions .mutebtn {
  background: #f3f4f6;
  color: #374151;
}

.modal-compact-actions .mutebtn:hover {
  background: #e5e7eb;
}

.modal-compact-actions .button {
  background: #fbbf24;
  color: #1f2937;
}

.modal-compact-actions .button:hover {
  background: #f59e0b;
}

/* ===== プロフィール編集モーダル - 優しい春テーマ（男性好み調整） ===== */
.profile-design-final {
  background: linear-gradient(135deg,
      #86efac 0%,
      /* 緑（彩度・明度調整） */
      #f3e8ff 20%,
      /* ピンク（彩度・明度調整） */
      #fef3c7 40%,
      /* 黄色（そのまま） */
      #bfdbfe 60%,
      /* 空色（彩度・明度調整） */
      #86efac 80%,
      /* 緑 */
      #f3e8ff 100%
      /* ピンク */
    );
  border: 2px solid rgba(134, 239, 172, 0.5);
  box-shadow:
    0 0 40px rgba(134, 239, 172, 0.25),
    inset 0 0 30px rgba(243, 232, 255, 0.3),
    0 8px 32px rgba(134, 239, 172, 0.15);
  position: relative;
  overflow: hidden;
  animation: magicAppear 0.3s ease-out;
}

@keyframes magicAppear {
  0% {
    opacity: 0;
    transform: scale(0.9);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

/* 動くグラデーション背景（風が流れるようにゆっくり） */
.magic-gradient-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(134, 239, 172, 0.65) 0%,
      /* 緑（彩度・明度調整） */
      rgba(243, 232, 255, 0.65) 20%,
      /* ピンク（彩度・明度調整） */
      rgba(254, 243, 199, 0.65) 40%,
      /* 黄色 */
      rgba(191, 219, 254, 0.65) 60%,
      /* 空色（彩度・明度調整） */
      rgba(134, 239, 172, 0.65) 80%,
      /* 緑 */
      rgba(243, 232, 255, 0.65) 100%
      /* ピンク */
    );
  background-size: 400% 400%;
  animation: magicGradientShift 15s ease-in-out infinite;
  z-index: 0;
}

@keyframes magicGradientShift {
  0% {
    background-position: 0% 50%;
  }

  25% {
    background-position: 100% 0%;
  }

  50% {
    background-position: 100% 100%;
  }

  75% {
    background-position: 0% 100%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.magic-stars {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(134, 239, 172, 0.6);
  border-radius: 50%;
  animation: magicTwinkle 4s ease-in-out infinite;
  box-shadow:
    0 0 8px rgba(134, 239, 172, 0.7),
    0 0 16px rgba(74, 222, 128, 0.5),
    0 0 24px rgba(34, 197, 94, 0.3);
}

.magic-stars:nth-child(1) {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.magic-stars:nth-child(2) {
  top: 60%;
  right: 20%;
  animation-delay: 1s;
}

.magic-stars:nth-child(3) {
  bottom: 30%;
  left: 50%;
  animation-delay: 2s;
}

@keyframes magicTwinkle {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

/* 綿毛アニメーション */
.dandelion-seeds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.dandelion-seed {
  position: absolute;
  width: 20px;
  height: 20px;
  opacity: 0.7;
  animation: dandelionFloat 15s ease-in-out infinite;
}

/* 綿毛の数式による描写 */
.dandelion-seed::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.3),
    0 0 0 2px rgba(255, 255, 255, 0.2);
}

.dandelion-seed::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background:
    radial-gradient(circle at 30% 30%, transparent 40%, rgba(255, 255, 255, 0.4) 41%, rgba(255, 255, 255, 0.4) 42%, transparent 43%),
    radial-gradient(circle at 70% 30%, transparent 40%, rgba(255, 255, 255, 0.4) 41%, rgba(255, 255, 255, 0.4) 42%, transparent 43%),
    radial-gradient(circle at 30% 70%, transparent 40%, rgba(255, 255, 255, 0.4) 41%, rgba(255, 255, 255, 0.4) 42%, transparent 43%),
    radial-gradient(circle at 70% 70%, transparent 40%, rgba(255, 255, 255, 0.4) 41%, rgba(255, 255, 255, 0.4) 42%, transparent 43%),
    radial-gradient(circle at 50% 10%, transparent 40%, rgba(255, 255, 255, 0.4) 41%, rgba(255, 255, 255, 0.4) 42%, transparent 43%),
    radial-gradient(circle at 50% 90%, transparent 40%, rgba(255, 255, 255, 0.4) 41%, rgba(255, 255, 255, 0.4) 42%, transparent 43%),
    radial-gradient(circle at 10% 50%, transparent 40%, rgba(255, 255, 255, 0.4) 41%, rgba(255, 255, 255, 0.4) 42%, transparent 43%),
    radial-gradient(circle at 90% 50%, transparent 40%, rgba(255, 255, 255, 0.4) 41%, rgba(255, 255, 255, 0.4) 42%, transparent 43%);
  border-radius: 50%;
  opacity: 0.6;
}

.dandelion-seed:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 18s;
}

.dandelion-seed:nth-child(2) {
  left: 25%;
  animation-delay: 2s;
  animation-duration: 16s;
}

.dandelion-seed:nth-child(3) {
  left: 40%;
  animation-delay: 4s;
  animation-duration: 20s;
}

.dandelion-seed:nth-child(4) {
  left: 55%;
  animation-delay: 1s;
  animation-duration: 17s;
}

.dandelion-seed:nth-child(5) {
  left: 70%;
  animation-delay: 3s;
  animation-duration: 19s;
}

.dandelion-seed:nth-child(6) {
  left: 85%;
  animation-delay: 5s;
  animation-duration: 21s;
}

.dandelion-seed:nth-child(7) {
  left: 15%;
  animation-delay: 1.5s;
  animation-duration: 18.5s;
}

.dandelion-seed:nth-child(8) {
  left: 50%;
  animation-delay: 3.5s;
  animation-duration: 19.5s;
}

@keyframes dandelionFloat {
  0% {
    transform: translateY(-10px) translateX(0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  50% {
    transform: translateY(calc(50vh + 50px)) translateX(30px) rotate(180deg);
    opacity: 0.8;
  }

  90% {
    opacity: 0.4;
  }

  100% {
    transform: translateY(calc(100vh + 20px)) translateX(60px) rotate(360deg);
    opacity: 0;
  }
}

/* 春のアニメーション要素 */
.spring-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.spring-element {
  position: absolute;
  font-size: 24px;
  opacity: 0.6;
}

/* 葉っぱ・クローバー・草（🍃🍀☘️🌿）- 様々な角度から流れる */
.spring-leaf {
  filter: drop-shadow(0 2px 4px rgba(34, 197, 94, 0.3));
}

/* 霧（🌫️）- 上のほうにゆらゆら */
.spring-mist {
  opacity: 0.5;
  filter: blur(2px);
}

/* 桜（🌸） */
.spring-cherry {
  filter: drop-shadow(0 2px 4px rgba(236, 72, 153, 0.3));
}

/* 様々な動き方のアニメーション（風に揺られるようにゆっくり） */
.spring-float-1 {
  /* 左上から右下へ斜めに流れる */
  top: -5%;
  left: 5%;
  font-size: 20px;
  animation: floatDiagonal1 28s linear infinite;
  animation-delay: 0s;
}

.spring-float-2 {
  /* 右上から左下へ斜めに流れる */
  top: -8%;
  right: 10%;
  font-size: 22px;
  animation: floatDiagonal2 32s linear infinite;
  animation-delay: 2s;
}

.spring-float-3 {
  /* 上中央からゆらゆら */
  top: 5%;
  left: 50%;
  font-size: 32px;
  animation: mistSway 40s ease-in-out infinite;
  animation-delay: 0s;
}

.spring-float-4 {
  /* 左から右へ横に流れる */
  top: 20%;
  left: -5%;
  font-size: 24px;
  animation: floatHorizontal1 36s linear infinite;
  animation-delay: 4s;
}

.spring-float-5 {
  /* 上から下へジグザグに流れる */
  top: -10%;
  left: 30%;
  font-size: 18px;
  animation: floatZigzag1 30s linear infinite;
  animation-delay: 6s;
}

.spring-float-6 {
  /* 右から左へ横に流れる */
  top: 50%;
  right: -5%;
  font-size: 22px;
  animation: floatHorizontal2 34s linear infinite;
  animation-delay: 3s;
}

.spring-float-7 {
  /* 右上からゆらゆら */
  top: 8%;
  right: 20%;
  font-size: 30px;
  animation: mistSway 44s ease-in-out infinite;
  animation-delay: 20s;
}

.spring-float-8 {
  /* 左上から右下へ回転しながら流れる */
  top: -5%;
  left: 15%;
  font-size: 21px;
  animation: floatRotate1 26s linear infinite;
  animation-delay: 8s;
}

.spring-float-9 {
  /* 上から下へ斜めに流れる（別角度） */
  top: -8%;
  left: 70%;
  font-size: 19px;
  animation: floatDiagonal3 32s linear infinite;
  animation-delay: 5s;
}

.spring-float-10 {
  /* 下から上へ浮き上がる */
  bottom: -5%;
  left: 40%;
  font-size: 23px;
  animation: floatUpward1 38s linear infinite;
  animation-delay: 10s;
}

.spring-float-11 {
  /* 左から右へ回転しながら流れる */
  top: 70%;
  left: -5%;
  font-size: 20px;
  animation: floatRotate2 28s linear infinite;
  animation-delay: 7s;
}

.spring-float-12 {
  /* 中央からゆらゆら */
  top: 15%;
  left: 45%;
  font-size: 28px;
  animation: mistSway 48s ease-in-out infinite;
  animation-delay: 10s;
}

/* 🌸（桜）を追加 */
.spring-float-13 {
  /* 左上から右下へ斜めに流れる */
  top: -6%;
  left: 25%;
  font-size: 22px;
  animation: floatDiagonal1 30s linear infinite;
  animation-delay: 1s;
}

.spring-float-14 {
  /* 右上から左下へ斜めに流れる */
  top: -7%;
  right: 25%;
  font-size: 20px;
  animation: floatDiagonal2 34s linear infinite;
  animation-delay: 3s;
}

.spring-float-15 {
  /* 左から右へ横に流れる */
  top: 35%;
  left: -5%;
  font-size: 23px;
  animation: floatHorizontal1 38s linear infinite;
  animation-delay: 6s;
}

.spring-float-16 {
  /* 上から下へジグザグに流れる */
  top: -9%;
  left: 55%;
  font-size: 21px;
  animation: floatZigzag1 32s linear infinite;
  animation-delay: 9s;
}

.spring-float-17 {
  /* 左上から右下へ回転しながら流れる */
  top: -6%;
  left: 45%;
  font-size: 19px;
  animation: floatRotate1 29s linear infinite;
  animation-delay: 11s;
}

.spring-float-18 {
  /* 右から左へ横に流れる */
  top: 65%;
  right: -5%;
  font-size: 24px;
  animation: floatHorizontal2 36s linear infinite;
  animation-delay: 8s;
}


@keyframes mistSway {

  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.5;
  }

  25% {
    transform: translateY(-15px) translateX(20px) scale(1.1);
    opacity: 0.6;
  }

  50% {
    transform: translateY(-5px) translateX(-15px) scale(0.95);
    opacity: 0.55;
  }

  75% {
    transform: translateY(-20px) translateX(25px) scale(1.05);
    opacity: 0.6;
  }
}

/* 左上から右下へ斜めに流れる */
@keyframes floatDiagonal1 {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }

  5% {
    opacity: 0.7;
  }

  50% {
    transform: translateY(calc(50vh + 50px)) translateX(calc(50vw - 30px)) rotate(180deg);
    opacity: 0.8;
  }

  95% {
    opacity: 0.5;
  }

  100% {
    transform: translateY(calc(100vh + 20px)) translateX(calc(100vw - 20px)) rotate(360deg);
    opacity: 0;
  }
}

/* 右上から左下へ斜めに流れる */
@keyframes floatDiagonal2 {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }

  5% {
    opacity: 0.7;
  }

  50% {
    transform: translateY(calc(50vh + 50px)) translateX(calc(-50vw + 30px)) rotate(-180deg);
    opacity: 0.8;
  }

  95% {
    opacity: 0.5;
  }

  100% {
    transform: translateY(calc(100vh + 20px)) translateX(calc(-100vw + 20px)) rotate(-360deg);
    opacity: 0;
  }
}

/* 上から下へ斜めに流れる（別角度） */
@keyframes floatDiagonal3 {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }

  5% {
    opacity: 0.7;
  }

  50% {
    transform: translateY(calc(50vh + 50px)) translateX(calc(30vw - 20px)) rotate(120deg);
    opacity: 0.8;
  }

  95% {
    opacity: 0.5;
  }

  100% {
    transform: translateY(calc(100vh + 20px)) translateX(calc(60vw - 10px)) rotate(240deg);
    opacity: 0;
  }
}

/* 左から右へ横に流れる */
@keyframes floatHorizontal1 {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
    opacity: 0;
  }

  5% {
    opacity: 0.7;
  }

  25% {
    transform: translateX(calc(25vw)) translateY(-10px) rotate(90deg);
    opacity: 0.8;
  }

  50% {
    transform: translateX(calc(50vw)) translateY(10px) rotate(180deg);
    opacity: 0.8;
  }

  75% {
    transform: translateX(calc(75vw)) translateY(-5px) rotate(270deg);
    opacity: 0.7;
  }

  95% {
    opacity: 0.5;
  }

  100% {
    transform: translateX(calc(100vw + 20px)) translateY(0) rotate(360deg);
    opacity: 0;
  }
}

/* 右から左へ横に流れる */
@keyframes floatHorizontal2 {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
    opacity: 0;
  }

  5% {
    opacity: 0.7;
  }

  25% {
    transform: translateX(calc(-25vw)) translateY(10px) rotate(-90deg);
    opacity: 0.8;
  }

  50% {
    transform: translateX(calc(-50vw)) translateY(-10px) rotate(-180deg);
    opacity: 0.8;
  }

  75% {
    transform: translateX(calc(-75vw)) translateY(5px) rotate(-270deg);
    opacity: 0.7;
  }

  95% {
    opacity: 0.5;
  }

  100% {
    transform: translateX(calc(-100vw - 20px)) translateY(0) rotate(-360deg);
    opacity: 0;
  }
}

/* 上から下へジグザグに流れる */
@keyframes floatZigzag1 {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }

  5% {
    opacity: 0.7;
  }

  20% {
    transform: translateY(calc(20vh)) translateX(20px) rotate(45deg);
    opacity: 0.8;
  }

  40% {
    transform: translateY(calc(40vh)) translateX(-15px) rotate(-45deg);
    opacity: 0.8;
  }

  60% {
    transform: translateY(calc(60vh)) translateX(25px) rotate(60deg);
    opacity: 0.8;
  }

  80% {
    transform: translateY(calc(80vh)) translateX(-20px) rotate(-30deg);
    opacity: 0.7;
  }

  95% {
    opacity: 0.5;
  }

  100% {
    transform: translateY(calc(100vh + 20px)) translateX(30px) rotate(360deg);
    opacity: 0;
  }
}

/* 左上から右下へ回転しながら流れる */
@keyframes floatRotate1 {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }

  5% {
    opacity: 0.7;
  }

  25% {
    transform: translateY(calc(25vh)) translateX(calc(25vw)) rotate(90deg);
    opacity: 0.8;
  }

  50% {
    transform: translateY(calc(50vh)) translateX(calc(50vw)) rotate(180deg);
    opacity: 0.8;
  }

  75% {
    transform: translateY(calc(75vh)) translateX(calc(75vw)) rotate(270deg);
    opacity: 0.7;
  }

  95% {
    opacity: 0.5;
  }

  100% {
    transform: translateY(calc(100vh + 20px)) translateX(calc(100vw + 20px)) rotate(360deg);
    opacity: 0;
  }
}

/* 左から右へ回転しながら流れる */
@keyframes floatRotate2 {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
    opacity: 0;
  }

  5% {
    opacity: 0.7;
  }

  25% {
    transform: translateX(calc(25vw)) translateY(-15px) rotate(90deg);
    opacity: 0.8;
  }

  50% {
    transform: translateX(calc(50vw)) translateY(15px) rotate(180deg);
    opacity: 0.8;
  }

  75% {
    transform: translateX(calc(75vw)) translateY(-10px) rotate(270deg);
    opacity: 0.7;
  }

  95% {
    opacity: 0.5;
  }

  100% {
    transform: translateX(calc(100vw + 20px)) translateY(0) rotate(360deg);
    opacity: 0;
  }
}

/* 下から上へ浮き上がる */
@keyframes floatUpward1 {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }

  5% {
    opacity: 0.7;
  }

  25% {
    transform: translateY(calc(-25vh)) translateX(10px) rotate(45deg);
    opacity: 0.8;
  }

  50% {
    transform: translateY(calc(-50vh)) translateX(-10px) rotate(90deg);
    opacity: 0.8;
  }

  75% {
    transform: translateY(calc(-75vh)) translateX(15px) rotate(135deg);
    opacity: 0.7;
  }

  95% {
    opacity: 0.5;
  }

  100% {
    transform: translateY(calc(-100vh - 20px)) translateX(20px) rotate(180deg);
    opacity: 0;
  }
}

@keyframes cherryFloat {

  0%,
  100% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
    opacity: 0.6;
  }

  25% {
    transform: translateY(-25px) translateX(15px) rotate(90deg) scale(1.1);
    opacity: 0.7;
  }

  50% {
    transform: translateY(-12px) translateX(-10px) rotate(180deg) scale(0.95);
    opacity: 0.65;
  }

  75% {
    transform: translateY(-35px) translateX(20px) rotate(270deg) scale(1.05);
    opacity: 0.7;
  }
}

/* 不要なアニメーション定義を削除済み */

/* メインカード */
.magic-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(134, 239, 172, 0.6);
  border-radius: 20px;
  padding: 30px;
  box-shadow:
    0 8px 32px rgba(134, 239, 172, 0.2),
    0 0 40px rgba(243, 232, 255, 0.15),
    inset 0 0 20px rgba(254, 243, 199, 0.25);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.magic-title {
  font-family: 'Misaki Gothic', 'みさきゴシック', sans-serif !important;
  color: #047857;
  text-shadow:
    0 0 10px rgba(134, 239, 172, 0.5),
    0 0 20px rgba(74, 222, 128, 0.3),
    0 2px 4px rgba(4, 120, 87, 0.4);
  animation: magicGlow 3s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal !important;
}

@keyframes magicGlow {

  0%,
  100% {
    text-shadow:
      0 0 10px rgba(134, 239, 172, 0.5),
      0 0 20px rgba(74, 222, 128, 0.3),
      0 2px 4px rgba(4, 120, 87, 0.4);
  }

  50% {
    text-shadow:
      0 0 15px rgba(134, 239, 172, 0.7),
      0 0 30px rgba(74, 222, 128, 0.5),
      0 2px 6px rgba(4, 120, 87, 0.6);
  }
}

/* みさきゴシックフォント */
@font-face {
  font-family: 'Misaki Gothic';
  src: url('/font/misaki_gothic.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* テキストラベル */
.magic-label-text {
  font-family: 'Misaki Gothic', 'みさきゴシック', sans-serif !important;
  color: #047857 !important;
  font-weight: 700 !important;
  font-size: 16px;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.8),
    0 0 8px rgba(134, 239, 172, 0.4),
    0 2px 4px rgba(4, 120, 87, 0.4);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
  position: relative;
  z-index: 10;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 1 !important;
}

.magic-input,
.magic-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(134, 239, 172, 0.5);
  color: #1e1b4b;
  box-shadow:
    inset 0 2px 4px rgba(134, 239, 172, 0.08),
    0 0 10px rgba(134, 239, 172, 0.15);
  transition: all 0.3s ease;
}

.magic-input::placeholder {
  color: rgba(4, 120, 87, 0.4);
}

.magic-input:focus,
.magic-input:not(:placeholder-shown),
.magic-select:focus,
.magic-select:active {
  border-color: rgba(74, 222, 128, 0.8);
  box-shadow:
    inset 0 2px 4px rgba(134, 239, 172, 0.12),
    0 0 0 3px rgba(134, 239, 172, 0.25),
    0 0 20px rgba(134, 239, 172, 0.3);
  outline: none;
  background: #fff !important;
  color: #1e1b4b !important;
}

.magic-input:focus::placeholder,
.magic-input:not(:placeholder-shown)::placeholder {
  color: rgba(30, 27, 75, 0.5);
}

/* セレクトボックスのオプション */
.magic-select option {
  background: #fff;
  color: #1e1b4b;
  padding: 8px;
}

/* セレクトボックスが開いている時（ドロップダウン表示中） */
.magic-select:focus option:checked,
.magic-select option:checked {
  background: #bbf7d0;
  color: #047857;
  font-weight: 600;
}

.magic-btn {
  background: rgba(187, 247, 208, 0.9);
  border: 2px solid rgba(134, 239, 172, 0.7);
  color: #047857;
  font-weight: 600;
  transition: all 0.3s ease;
}

.magic-btn:hover {
  background: rgba(134, 239, 172, 0.95);
  border-color: rgba(74, 222, 128, 0.9);
  box-shadow: 0 0 15px rgba(134, 239, 172, 0.35);
  color: #065f46;
}

.magic-btn-save {
  background: linear-gradient(135deg, rgba(134, 239, 172, 0.85) 0%, rgba(74, 222, 128, 0.85) 100%);
  border: 2px solid rgba(134, 239, 172, 0.9);
  color: #064e3b;
  font-weight: 700;
  box-shadow:
    0 4px 15px rgba(134, 239, 172, 0.4),
    0 0 20px rgba(134, 239, 172, 0.25);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.magic-btn-save:hover {
  background: linear-gradient(135deg, rgba(134, 239, 172, 1) 0%, rgba(74, 222, 128, 1) 100%);
  border-color: rgba(134, 239, 172, 1);
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(134, 239, 172, 0.6),
    0 0 30px rgba(134, 239, 172, 0.4);
}

/* ToDoモーダルデザイン（海のテーマ - 明るい海のブルー） */
.todo-design-ocean {
  background: linear-gradient(135deg, #5BA3D0 0%, #4A90E2 50%, #6BB6FF 100%);
  /* 明るい海のブルーグラデーション */
  border: 3px solid rgba(91, 163, 208, 0.6);
  box-shadow:
    0 0 50px rgba(91, 163, 208, 0.4),
    inset 0 0 40px rgba(135, 206, 250, 0.15),
    0 10px 40px rgba(74, 144, 226, 0.3);
  position: relative;
  overflow: hidden;
}

.todo-design-ocean-layers {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

/* 夕暮れデザインは廃止 */

/* 明るい海の波レイヤー（なだらかな波型グラデーション） */
.ocean-wave-layer {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.ocean-wave-layer-1 {
  background:
    linear-gradient(135deg,
      transparent 0%,
      rgba(173, 216, 250, 0.35) 20%,
      rgba(173, 216, 250, 0.45) 40%,
      rgba(135, 206, 250, 0.35) 60%,
      rgba(135, 206, 250, 0.25) 80%,
      transparent 100%),
    linear-gradient(45deg,
      transparent 0%,
      rgba(176, 224, 255, 0.3) 25%,
      rgba(176, 224, 255, 0.4) 50%,
      rgba(135, 206, 250, 0.25) 75%,
      transparent 100%),
    radial-gradient(ellipse 200% 150% at 0% 0%, rgba(173, 216, 250, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 200% 150% at 100% 100%, rgba(135, 206, 250, 0.2) 0%, transparent 65%);
  animation: waveSway1 8s ease-in-out infinite;
}

.ocean-wave-layer-2 {
  background:
    linear-gradient(225deg,
      transparent 0%,
      rgba(176, 224, 255, 0.35) 15%,
      rgba(176, 224, 255, 0.45) 35%,
      rgba(135, 206, 250, 0.35) 55%,
      rgba(135, 206, 250, 0.25) 75%,
      transparent 100%),
    linear-gradient(315deg,
      transparent 0%,
      rgba(173, 216, 250, 0.3) 30%,
      rgba(173, 216, 250, 0.4) 50%,
      rgba(135, 206, 250, 0.25) 70%,
      transparent 100%),
    radial-gradient(ellipse 180% 140% at 0% 30%, rgba(176, 224, 255, 0.25) 0%, transparent 65%),
    radial-gradient(ellipse 180% 140% at 100% 70%, rgba(135, 206, 250, 0.2) 0%, transparent 70%);
  animation: waveSway2 10s ease-in-out infinite;
  animation-delay: -2s;
}

.ocean-wave-layer-3 {
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(173, 216, 250, 0.3) 20%,
      rgba(173, 216, 250, 0.4) 40%,
      rgba(135, 206, 250, 0.3) 60%,
      rgba(135, 206, 250, 0.2) 80%,
      transparent 100%),
    linear-gradient(270deg,
      transparent 0%,
      rgba(176, 224, 255, 0.25) 25%,
      rgba(176, 224, 255, 0.35) 50%,
      rgba(135, 206, 250, 0.2) 75%,
      transparent 100%),
    radial-gradient(ellipse 220% 160% at -10% 20%, rgba(173, 216, 250, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse 220% 160% at 110% 80%, rgba(135, 206, 250, 0.15) 0%, transparent 75%);
  animation: waveSway3 12s ease-in-out infinite;
  animation-delay: -4s;
}

.ocean-wave-layer-4 {
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(176, 224, 255, 0.3) 15%,
      rgba(176, 224, 255, 0.4) 35%,
      rgba(135, 206, 250, 0.3) 55%,
      rgba(135, 206, 250, 0.2) 75%,
      transparent 100%),
    linear-gradient(0deg,
      transparent 0%,
      rgba(173, 216, 250, 0.25) 30%,
      rgba(173, 216, 250, 0.35) 50%,
      rgba(135, 206, 250, 0.2) 70%,
      transparent 100%),
    radial-gradient(ellipse 190% 145% at 0% 60%, rgba(176, 224, 255, 0.2) 0%, transparent 68%),
    radial-gradient(ellipse 190% 145% at 100% 40%, rgba(135, 206, 250, 0.15) 0%, transparent 72%);
  animation: waveSway4 9s ease-in-out infinite;
  animation-delay: -1s;
}

.ocean-wave-layer-5 {
  background:
    linear-gradient(120deg,
      transparent 0%,
      rgba(173, 216, 250, 0.3) 18%,
      rgba(173, 216, 250, 0.4) 38%,
      rgba(135, 206, 250, 0.25) 58%,
      rgba(135, 206, 250, 0.15) 78%,
      transparent 100%),
    linear-gradient(300deg,
      transparent 0%,
      rgba(176, 224, 255, 0.25) 28%,
      rgba(176, 224, 255, 0.35) 48%,
      rgba(135, 206, 250, 0.15) 68%,
      transparent 100%),
    radial-gradient(ellipse 200% 150% at -5% 40%, rgba(173, 216, 250, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 200% 150% at 105% 60%, rgba(135, 206, 250, 0.12) 0%, transparent 75%);
  animation: waveSway5 11s ease-in-out infinite;
  animation-delay: -3s;
}

.ocean-wave-layer-6 {
  background:
    linear-gradient(150deg,
      transparent 0%,
      rgba(173, 216, 250, 0.25) 22%,
      rgba(173, 216, 250, 0.35) 42%,
      rgba(135, 206, 250, 0.25) 62%,
      rgba(135, 206, 250, 0.15) 82%,
      transparent 100%),
    linear-gradient(330deg,
      transparent 0%,
      rgba(176, 224, 255, 0.2) 32%,
      rgba(176, 224, 255, 0.3) 52%,
      rgba(135, 206, 250, 0.15) 72%,
      transparent 100%),
    radial-gradient(ellipse 210% 155% at 0% 50%, rgba(173, 216, 250, 0.15) 0%, transparent 72%),
    radial-gradient(ellipse 210% 155% at 100% 50%, rgba(135, 206, 250, 0.1) 0%, transparent 78%);
  animation: waveSway6 13s ease-in-out infinite;
  animation-delay: -5s;
}

@keyframes waveSway1 {

  0%,
  100% {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 0.4;
  }

  25% {
    transform: translateX(15px) translateY(-8px) scale(1.02);
    opacity: 0.45;
  }

  50% {
    transform: translateX(-10px) translateY(-15px) scale(1.05);
    opacity: 0.5;
  }

  75% {
    transform: translateX(20px) translateY(-8px) scale(1.02);
    opacity: 0.45;
  }
}

@keyframes waveSway2 {

  0%,
  100% {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 0.35;
  }

  25% {
    transform: translateX(-12px) translateY(10px) scale(0.98);
    opacity: 0.4;
  }

  50% {
    transform: translateX(18px) translateY(15px) scale(0.95);
    opacity: 0.45;
  }

  75% {
    transform: translateX(-15px) translateY(10px) scale(0.98);
    opacity: 0.4;
  }
}

@keyframes waveSway3 {

  0%,
  100% {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 0.3;
  }

  25% {
    transform: translateX(20px) translateY(-5px) scale(1.03);
    opacity: 0.35;
  }

  50% {
    transform: translateX(-15px) translateY(-10px) scale(1.06);
    opacity: 0.4;
  }

  75% {
    transform: translateX(18px) translateY(-5px) scale(1.03);
    opacity: 0.35;
  }
}

@keyframes waveSway4 {

  0%,
  100% {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 0.25;
  }

  25% {
    transform: translateX(-18px) translateY(12px) scale(0.97);
    opacity: 0.3;
  }

  50% {
    transform: translateX(22px) translateY(18px) scale(0.94);
    opacity: 0.35;
  }

  75% {
    transform: translateX(-20px) translateY(12px) scale(0.97);
    opacity: 0.3;
  }
}

@keyframes waveSway5 {

  0%,
  100% {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 0.3;
  }

  25% {
    transform: translateX(15px) translateY(-8px) scale(1.02);
    opacity: 0.35;
  }

  50% {
    transform: translateX(-12px) translateY(-15px) scale(1.05);
    opacity: 0.4;
  }

  75% {
    transform: translateX(18px) translateY(-8px) scale(1.02);
    opacity: 0.35;
  }
}

@keyframes waveSway6 {

  0%,
  100% {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 0.2;
  }

  25% {
    transform: translateX(-16px) translateY(10px) scale(0.98);
    opacity: 0.25;
  }

  50% {
    transform: translateX(20px) translateY(16px) scale(0.95);
    opacity: 0.3;
  }

  75% {
    transform: translateX(-18px) translateY(10px) scale(0.98);
    opacity: 0.25;
  }
}

/* 波のアニメーション（より大きく、目立つように） */
.ocean-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  z-index: 1;
  overflow: hidden;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 300%;
  height: 120px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.15) 20%,
      rgba(255, 255, 255, 0.3) 40%,
      rgba(255, 255, 255, 0.25) 50%,
      rgba(255, 255, 255, 0.3) 60%,
      rgba(255, 255, 255, 0.15) 80%,
      transparent 100%);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  animation: waveMove 6s linear infinite;
  transform-origin: center bottom;
}

.wave-1 {
  animation-duration: 6s;
  opacity: 0.7;
  height: 100px;
}

.wave-2 {
  animation-duration: 8s;
  animation-delay: -1.5s;
  opacity: 0.5;
  height: 130px;
}

.wave-3 {
  animation-duration: 10s;
  animation-delay: -3s;
  opacity: 0.4;
  height: 160px;
}

@keyframes waveMove {
  0% {
    transform: translateX(-33.33%) translateY(0) scaleY(1);
  }

  25% {
    transform: translateX(-31%) translateY(-12px) scaleY(1.08);
  }

  50% {
    transform: translateX(-33.33%) translateY(-25px) scaleY(1.15);
  }

  75% {
    transform: translateX(-35.5%) translateY(-12px) scaleY(1.08);
  }

  100% {
    transform: translateX(-33.33%) translateY(0) scaleY(1);
  }
}

/* 泡のアニメーション */
.ocean-bubbles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.bubble {
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  animation: bubbleFloat 8s ease-in-out infinite;
}

.bubble-1 {
  width: 8px;
  height: 8px;
  left: 8%;
  bottom: 15%;
  animation-delay: 0s;
}

.bubble-2 {
  width: 12px;
  height: 12px;
  left: 25%;
  bottom: 8%;
  animation-delay: 0.5s;
}

.bubble-3 {
  width: 6px;
  height: 6px;
  left: 45%;
  bottom: 20%;
  animation-delay: 1s;
}

.bubble-4 {
  width: 10px;
  height: 10px;
  left: 65%;
  bottom: 12%;
  animation-delay: 1.5s;
}

.bubble-5 {
  width: 14px;
  height: 14px;
  left: 15%;
  bottom: 18%;
  animation-delay: 2s;
}

.bubble-6 {
  width: 7px;
  height: 7px;
  left: 55%;
  bottom: 15%;
  animation-delay: 2.5s;
}

.bubble-7 {
  width: 11px;
  height: 11px;
  left: 75%;
  bottom: 22%;
  animation-delay: 3s;
}

.bubble-8 {
  width: 9px;
  height: 9px;
  left: 35%;
  bottom: 10%;
  animation-delay: 3.5s;
}

.bubble-9 {
  width: 13px;
  height: 13px;
  left: 85%;
  bottom: 15%;
  animation-delay: 4s;
}

.bubble-10 {
  width: 5px;
  height: 5px;
  left: 5%;
  bottom: 25%;
  animation-delay: 4.5s;
}

.bubble-11 {
  width: 10px;
  height: 10px;
  left: 90%;
  bottom: 18%;
  animation-delay: 5s;
}

.bubble-12 {
  width: 8px;
  height: 8px;
  left: 50%;
  bottom: 12%;
  animation-delay: 5.5s;
}

.bubble-13 {
  width: 11px;
  height: 11px;
  left: 70%;
  bottom: 20%;
  animation-delay: 6s;
}

.bubble-14 {
  width: 7px;
  height: 7px;
  left: 30%;
  bottom: 16%;
  animation-delay: 6.5s;
}

.bubble-15 {
  width: 9px;
  height: 9px;
  left: 60%;
  bottom: 14%;
  animation-delay: 7s;
}

@keyframes bubbleFloat {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.4;
  }

  30% {
    transform: translateY(-150px) translateX(15px) scale(1.2);
    opacity: 0.7;
  }

  60% {
    transform: translateY(-300px) translateX(-10px) scale(1.4);
    opacity: 0.5;
  }

  100% {
    transform: translateY(-500px) translateX(20px) scale(1.6);
    opacity: 0;
  }
}

/* 海の生き物アニメーション */
.ocean-creatures {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.creature {
  position: absolute;
  font-size: 24px;
  animation: creatureSwim 15s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.creature-fish {
  animation: fishSwim 12s ease-in-out infinite;
}

.creature-jellyfish {
  animation: jellyfishFloat 10s ease-in-out infinite;
}

.creature-seahorse {
  animation: seahorseSwim 14s ease-in-out infinite;
}

.creature:nth-child(1) {
  top: 15%;
  left: 8%;
  animation-delay: 0s;
}

.creature:nth-child(2) {
  top: 55%;
  left: 75%;
  animation-delay: 1s;
}

.creature:nth-child(3) {
  top: 35%;
  left: 45%;
  animation-delay: 2s;
}

.creature:nth-child(4) {
  top: 75%;
  left: 25%;
  animation-delay: 3s;
}

.creature:nth-child(5) {
  top: 25%;
  left: 85%;
  animation-delay: 4s;
}

.creature:nth-child(6) {
  top: 65%;
  left: 15%;
  animation-delay: 5s;
}

.creature:nth-child(7) {
  top: 45%;
  left: 65%;
  animation-delay: 6s;
}

.creature:nth-child(8) {
  top: 20%;
  left: 55%;
  animation-delay: 7s;
}

.creature:nth-child(9) {
  top: 80%;
  left: 50%;
  animation-delay: 8s;
}

.creature:nth-child(10) {
  top: 40%;
  left: 20%;
  animation-delay: 9s;
}

@keyframes fishSwim {
  0% {
    transform: translateX(0) translateY(0) scaleX(1) rotate(0deg);
  }

  25% {
    transform: translateX(60px) translateY(-25px) scaleX(1) rotate(-5deg);
  }

  50% {
    transform: translateX(120px) translateY(15px) scaleX(-1) rotate(5deg);
  }

  75% {
    transform: translateX(60px) translateY(25px) scaleX(-1) rotate(-3deg);
  }

  100% {
    transform: translateX(0) translateY(0) scaleX(1) rotate(0deg);
  }
}

@keyframes jellyfishFloat {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }

  25% {
    transform: translateY(-20px) translateX(15px) rotate(3deg);
  }

  50% {
    transform: translateY(-40px) translateX(30px) rotate(0deg);
  }

  75% {
    transform: translateY(-20px) translateX(45px) rotate(-3deg);
  }

  100% {
    transform: translateY(0) translateX(60px) rotate(0deg);
  }
}

@keyframes seahorseSwim {

  0%,
  100% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }

  25% {
    transform: translateX(40px) translateY(-15px) rotate(5deg);
  }

  50% {
    transform: translateX(80px) translateY(10px) rotate(-5deg);
  }

  75% {
    transform: translateX(40px) translateY(15px) rotate(3deg);
  }
}

/* ToDoモーダル内のスタイル調整（海のテーマ - 沖縄の海） */
.ocean-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  border: 3px solid rgba(64, 224, 208, 0.7);
  border-radius: 20px;
  padding: 24px;
  box-shadow:
    0 8px 32px rgba(0, 206, 209, 0.4),
    0 0 50px rgba(64, 224, 208, 0.3),
    inset 0 0 30px rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.ocean-title {
  font-family: 'Misaki Gothic', 'みさきゴシック', sans-serif !important;
  color: #006B87;
  /* 沖縄の海のような明るい青緑 */
  text-shadow:
    0 0 10px rgba(64, 224, 208, 0.7),
    0 0 20px rgba(0, 206, 209, 0.5),
    0 2px 4px rgba(0, 191, 255, 0.6);
  animation: oceanGlow 3s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal !important;
  font-size: 22px;
}

@keyframes oceanGlow {

  0%,
  100% {
    text-shadow:
      0 0 10px rgba(64, 224, 208, 0.7),
      0 0 20px rgba(0, 206, 209, 0.5),
      0 2px 4px rgba(0, 191, 255, 0.6);
  }

  50% {
    text-shadow:
      0 0 15px rgba(64, 224, 208, 0.9),
      0 0 30px rgba(0, 206, 209, 0.7),
      0 2px 6px rgba(0, 191, 255, 0.8);
  }
}

.ocean-design-toggle-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(64, 224, 208, 0.7);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(64, 224, 208, 0.4);
  z-index: 10;
  position: relative;
}

.ocean-design-toggle-btn:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(64, 224, 208, 0.9);
  box-shadow: 0 0 20px rgba(0, 206, 209, 0.6);
  transform: scale(1.1);
}

.ocean-close-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(64, 224, 208, 0.7);
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  color: #0c4a6e;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(64, 224, 208, 0.4);
  font-weight: bold;
  color: #006B87;
}

.ocean-close-btn:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(64, 224, 208, 0.9);
  box-shadow: 0 0 20px rgba(0, 206, 209, 0.6);
  transform: scale(1.1) rotate(90deg);
}

.todo-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

#todoModal .todo-list {
  margin-top: 16px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

#todoModal .todo-row {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(14, 165, 233, 0.5);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
  box-shadow:
    0 2px 8px rgba(14, 165, 233, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
}

#todoModal .todo-row:hover {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow:
    0 4px 12px rgba(14, 165, 233, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 1);
  transform: translateY(-2px);
}

#todoModal .todo-title {
  color: #0c4a6e;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

#todoModal .todo-title:hover {
  color: #075985;
  text-shadow: 0 0 5px rgba(56, 189, 248, 0.4);
}

#todoModal .chip {
  background: rgba(186, 230, 253, 0.9);
  border: 2px solid rgba(14, 165, 233, 0.7);
  color: #0c4a6e;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(14, 165, 233, 0.3);
}

#todoModal .chip:hover {
  background: rgba(125, 211, 252, 0.95);
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
  transform: translateY(-1px);
}

#todoModal .chip--ok {
  background: rgba(186, 230, 253, 0.9);
  border-color: rgba(14, 165, 233, 0.7);
}

#todoModal .chip--danger {
  background: rgba(254, 226, 226, 0.9);
  border: 2px solid rgba(252, 165, 165, 0.7);
  color: #991b1b;
}

#todoModal .chip--danger:hover {
  background: rgba(252, 165, 165, 0.95);
  border-color: rgba(248, 113, 113, 0.9);
  box-shadow: 0 0 12px rgba(252, 165, 165, 0.35);
}

#todoModal .todo-quick {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(14, 165, 233, 0.5);
  color: #0c4a6e;
  box-shadow:
    inset 0 2px 4px rgba(14, 165, 233, 0.1),
    0 0 10px rgba(56, 189, 248, 0.2);
  transition: all 0.3s ease;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
}

#todoModal .todo-quick:focus {
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow:
    inset 0 2px 4px rgba(14, 165, 233, 0.15),
    0 0 0 3px rgba(14, 165, 233, 0.3),
    0 0 20px rgba(56, 189, 248, 0.4);
  outline: none;
  background: #fff !important;
}

#todoModal .todo-quick::placeholder {
  color: rgba(12, 74, 110, 0.4);
}

/* ToDoモーダルデザイン2: 夕暮れの海（Sunset Ocean） */
.todo-design-sunset {
  background: linear-gradient(90deg,
      #fb923c 0%,
      /* オレンジ（夕日） */
      #ec4899 30%,
      /* ピンク */
      #7c3aed 60%,
      /* パープル */
      #4a5568 100%
      /* スレートグレー（夜） */
    );
  border: 3px solid rgba(251, 146, 60, 0.6);
  box-shadow:
    0 0 50px rgba(251, 146, 60, 0.4),
    inset 0 0 40px rgba(236, 72, 153, 0.15),
    0 10px 40px rgba(124, 58, 237, 0.3);
  position: relative;
  overflow: hidden;
}

/* 夕暮れの海の波レイヤー */
.sunset-wave-layer {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.sunset-wave-layer-1 {
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(251, 146, 60, 0.35) 20%,
      rgba(251, 146, 60, 0.45) 40%,
      rgba(236, 72, 153, 0.35) 60%,
      rgba(236, 72, 153, 0.25) 80%,
      transparent 100%),
    linear-gradient(270deg,
      transparent 0%,
      rgba(124, 58, 237, 0.3) 25%,
      rgba(124, 58, 237, 0.4) 50%,
      rgba(74, 85, 104, 0.25) 75%,
      transparent 100%),
    radial-gradient(ellipse 200% 150% at 0% 0%, rgba(251, 146, 60, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 200% 150% at 100% 100%, rgba(124, 58, 237, 0.2) 0%, transparent 65%);
  animation: sunsetWaveSway1 10s ease-in-out infinite;
}

.sunset-wave-layer-2 {
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(236, 72, 153, 0.35) 15%,
      rgba(236, 72, 153, 0.45) 35%,
      rgba(124, 58, 237, 0.35) 55%,
      rgba(124, 58, 237, 0.25) 75%,
      transparent 100%),
    linear-gradient(0deg,
      transparent 0%,
      rgba(251, 146, 60, 0.3) 30%,
      rgba(251, 146, 60, 0.4) 50%,
      rgba(236, 72, 153, 0.25) 70%,
      transparent 100%),
    radial-gradient(ellipse 180% 140% at 0% 30%, rgba(236, 72, 153, 0.25) 0%, transparent 65%),
    radial-gradient(ellipse 180% 140% at 100% 70%, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
  animation: sunsetWaveSway2 12s ease-in-out infinite;
  animation-delay: -2s;
}

.sunset-wave-layer-3 {
  background:
    linear-gradient(45deg,
      transparent 0%,
      rgba(251, 146, 60, 0.3) 20%,
      rgba(251, 146, 60, 0.4) 40%,
      rgba(236, 72, 153, 0.3) 60%,
      rgba(236, 72, 153, 0.2) 80%,
      transparent 100%),
    linear-gradient(225deg,
      transparent 0%,
      rgba(124, 58, 237, 0.25) 25%,
      rgba(124, 58, 237, 0.35) 50%,
      rgba(74, 85, 104, 0.2) 75%,
      transparent 100%),
    radial-gradient(ellipse 220% 160% at -10% 20%, rgba(251, 146, 60, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse 220% 160% at 110% 80%, rgba(124, 58, 237, 0.15) 0%, transparent 75%);
  animation: sunsetWaveSway3 14s ease-in-out infinite;
  animation-delay: -4s;
}

@keyframes sunsetWaveSway1 {

  0%,
  100% {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 0.4;
  }

  25% {
    transform: translateX(15px) translateY(-8px) scale(1.02);
    opacity: 0.45;
  }

  50% {
    transform: translateX(-10px) translateY(-15px) scale(1.05);
    opacity: 0.5;
  }

  75% {
    transform: translateX(20px) translateY(-8px) scale(1.02);
    opacity: 0.45;
  }
}

@keyframes sunsetWaveSway2 {

  0%,
  100% {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 0.35;
  }

  25% {
    transform: translateX(-12px) translateY(10px) scale(0.98);
    opacity: 0.4;
  }

  50% {
    transform: translateX(18px) translateY(15px) scale(0.95);
    opacity: 0.45;
  }

  75% {
    transform: translateX(-15px) translateY(10px) scale(0.98);
    opacity: 0.4;
  }
}

@keyframes sunsetWaveSway3 {

  0%,
  100% {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 0.3;
  }

  25% {
    transform: translateX(20px) translateY(-5px) scale(1.03);
    opacity: 0.35;
  }

  50% {
    transform: translateX(-15px) translateY(-10px) scale(1.06);
    opacity: 0.4;
  }

  75% {
    transform: translateX(18px) translateY(-5px) scale(1.03);
    opacity: 0.35;
  }
}

/* 夕暮れの海の生き物（雲や鳥） */
.sunset-creatures {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.sunset-creature {
  position: absolute;
  font-size: 24px;
  opacity: 0.6;
  animation: sunsetFloat 20s ease-in-out infinite;
}

.sunset-creature:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.sunset-creature:nth-child(2) {
  top: 20%;
  right: 15%;
  animation-delay: -3s;
}

.sunset-creature:nth-child(3) {
  top: 15%;
  left: 50%;
  animation-delay: -6s;
}

.sunset-creature:nth-child(4) {
  top: 25%;
  right: 30%;
  animation-delay: -9s;
}

.sunset-creature:nth-child(5) {
  top: 30%;
  left: 70%;
  animation-delay: -12s;
}

@keyframes sunsetFloat {

  0%,
  100% {
    transform: translateX(0) translateY(0);
    opacity: 0.6;
  }

  25% {
    transform: translateX(30px) translateY(-10px);
    opacity: 0.7;
  }

  50% {
    transform: translateX(-20px) translateY(-20px);
    opacity: 0.8;
  }

  75% {
    transform: translateX(25px) translateY(-10px);
    opacity: 0.7;
  }
}

/* 夕暮れの海のカード */
.todo-design-sunset .ocean-card {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(251, 146, 60, 0.5);
  box-shadow:
    0 4px 20px rgba(251, 146, 60, 0.3),
    inset 0 0 20px rgba(236, 72, 153, 0.1);
}

.todo-design-sunset .ocean-title {
  color: #7c2d12;
  text-shadow:
    0 0 15px rgba(251, 146, 60, 0.9),
    0 0 30px rgba(236, 72, 153, 0.7),
    0 2px 6px rgba(124, 58, 237, 0.8);
}

.todo-design-sunset .ocean-close-btn {
  border-color: rgba(251, 146, 60, 0.7);
  color: #7c2d12;
  box-shadow: 0 2px 8px rgba(251, 146, 60, 0.4);
}

.todo-design-sunset .ocean-close-btn:hover {
  border-color: rgba(251, 146, 60, 0.9);
  box-shadow: 0 0 20px rgba(251, 146, 60, 0.6);
}

.todo-design-sunset .ocean-design-toggle-btn {
  border-color: rgba(251, 146, 60, 0.7);
  box-shadow: 0 2px 8px rgba(251, 146, 60, 0.4);
}

.todo-design-sunset .ocean-design-toggle-btn:hover {
  border-color: rgba(251, 146, 60, 0.9);
  box-shadow: 0 0 20px rgba(251, 146, 60, 0.6);
}

/* モバイル対応: ToDoモーダル */
@media (max-width: 768px) {
  .modal-compact {
    max-width: 95vw;
    width: calc(100% - 16px);
    padding: 12px;
    margin: 8px;
  }

  #todoModal .ocean-card {
    padding: 12px;
  }

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

  .creature {
    font-size: 18px;
  }

  .todo-card-header {
    margin-bottom: 12px;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative;
  }

  #todoModal .todo-modal-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 5;
  }

  #todoModal .todo-action-buttons {
    gap: 6px;
    margin-bottom: 8px;
  }

  #todoModal .todo-action-buttons button {
    padding: 10px 8px !important;
    font-size: 12px !important;
    min-height: 44px;
  }

  #todoModal .todo-action-buttons button span.chip-icon {
    font-size: 14px;
  }

  #todoModal .todo-quick-input {
    padding: 10px;
    font-size: 16px;
    margin-bottom: 8px;
    flex: 1;
    box-sizing: border-box;
    margin-right: 6px;
  }

  /* 入力欄とボタンのレイアウト調整 */
  #todoModalQuickInputList>div {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
  }

  #todoModalQuickInputList .todo-action-buttons {
    flex-shrink: 0;
    width: auto;
  }

  #todoModalScrollArea {
    padding-right: 4px;
    margin-right: 0;
  }

  #todoModal .todo-list {
    padding: 6px;
    margin-bottom: 0;
    max-height: none;
  }

  #todoModalQuickInputList {
    margin-bottom: 8px;
  }
}

.tab-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
}

.tab-btn {
  flex: 1;
  padding: 12px;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  color: #6b7280;
}

.tab-btn.active {
  border-bottom: 3px solid #3b82f6;
  color: #3b82f6;
}

/* ToDo 専用: 見出し下の破線 */
#todoSection .todo-heading::after {
  content: '';
  display: block;
  margin-top: 2px;
  border-bottom: 1px dashed var(--line);
}

/* ToDo 専用: リスト枠 */
.todo-list {
  width: 100%;
  overflow: auto;
  border: 1px dashed var(--line);
  border-radius: 12px;
  /* 親の角丸(12px)に合わせる */
  padding: 4px 8px 8px 8px;
  /* 上だけ詰める */
  background: var(--panel);
  box-sizing: border-box;
  height: 100%;
  margin-bottom: 4px;
  /* 余白を詰める */
}

/* ToDo セクションのはみ出し対策 */
/* .panel.middle > .todo-sectionでdisplay: grid !importantが設定されているため、ここでは上書きしない */
#todoModal .todo-section {
  padding-bottom: 0;
}

#todoSection {
  display: grid !important;
  grid-template-rows: auto auto auto 1fr !important;

  #todoModal .todo-quick-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.9);
  }

  #todoModal .todo-action-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
  }

  #todoModal .todo-action-buttons button {
    flex: 1;
    justify-content: center;
    font-weight: 600;
  }

  #todoModal .todo-toggle {
    min-width: auto;
  }

  .todo-card-mobile {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .todo-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
  }

  .todo-scroll-area {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-right: 8px;
  }

  min-height: 0 !important;
  row-gap: 4px;
  height: 100%;
  /* 親の1fr部分を埋める */
}

/* ToDo DnD 視覚効果 */
.todo-row.dragging {
  opacity: .6;
}

.todo-row.drag-over {
  outline: 2px dashed var(--line);
}

/* 作業内訳（円グラフ）: 凡例を下揃えにする */
.pie-section .pieWrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.pie-section #pieCanvas {
  flex: 1 1 auto;
  min-height: 0;
}

.pie-section #legend {
  margin-top: auto;
}

/* 入力行と一覧の間の余白をさらに詰める */
#todoQuickInputList {
  margin-bottom: 2px !important;
}

.checkbox-grid {
  display: grid;
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  background: #f9fafb;
}

.checkbox-item-text {
  font-size: 14px;
}

.save-button {
  width: 100%;
  padding: 12px;
  font-size: 14px;
}

.goal-modal-title {
  margin: 0;
  font-size: 20px;
  color: #111827;
}

.goal-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.goal-time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}

.goal-hint {
  margin: 8px 0 0 0;
  font-size: 11px;
  color: #6b7280;
}

/* モーダル内のフォーム要素を操作可能にする */
.modal .form-select,
.modal .form-select-single,
.modal .form-textarea,
.modal input,
.modal select,
.modal textarea {
  pointer-events: auto !important;
  touch-action: auto !important;
  -webkit-user-select: text !important;
  z-index: 10002;
  position: relative;
}

.form-select {
  width: 100%;
  padding: 10px;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 8px;
}

.form-select-single {
  width: 100%;
  padding: 10px;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
}

.form-select-single input,
input.form-select-single {
  width: 100%;
  padding: 10px;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}

.form-textarea {
  width: 100%;
  height: 80px;
  padding: 10px;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
}

.goal-checkbox-wrapper {
  margin-bottom: 24px;
}

.goal-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
}

.goal-button-row {
  display: flex;
  gap: 12px;
}

.goal-cancel-btn {
  flex: 1;
  padding: 12px;
  background: #e5e7eb;
  color: #374151;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.goal-start-btn {
  flex: 1;
  padding: 12px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.mt-20 {
  margin-top: 20px;
}

/* 集中モーダル専用のコンパクトレイアウト */
#goalSettingModal .modal-section {
  margin-bottom: 12px;
}

#goalSettingModal .form-label {
  margin-bottom: 6px;
  font-size: 13px;
}

#goalSettingModal .goal-checkbox-wrapper {
  margin-bottom: 12px;
}

#goalSettingModal .goal-checkbox-label {
  padding: 10px;
}

.goal-hint-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid #e5e7eb;
}