body {
  font-family: "Segoe UI", sans-serif;
  margin: 0;
  padding: 16px;
  background: #f5f7fa;
}
h1 { text-align: center; color: #2980b9; font-size: 1.5em; margin-bottom: 0.2em; }
.description { text-align: left; color: #7f8c8d; margin-bottom: 1.5em; line-height: 1.5; font-size: 0.95em; }
.restrictions { text-align: left; 
    color: #c0392b; font-size: 0.85em; margin-top: 1em; padding: 0.8em; background: #fbe6e6; border-radius: 8px; border: 1px dashed #e74c3c; line-height: 1.6;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 20px auto;
  max-width: 800px;
}

.controls label {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: #333;
}

.controls select,
.controls input,
.controls button {
  font-size: 16px; /* スマホでタップしやすいサイズ */
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

.controls button {
  background: #1976d2;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.controls button:hover {
  background: #1565c0;
}

#svgHost {
  border: 1px solid #ccc;
  padding: 12px;
  background: #fff;
  /* 横スクロールを出さず、画面幅に合わせてカレンダーを小さく縮小表示する */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* カレンダーSVG自体をレスポンシブに */
#svgHost svg {
  max-width: 100%;
  height: auto;
  display: block;
}

textarea {
  font-family: inherit;
}
.control-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}
button {
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
}

/* --- 追加：モーダル用のスタイル --- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
}
.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 320px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.modal-content h3 {
  margin-top: 0;
  font-size: 1.2em;
  color: #333;
  text-align: center;
  margin-bottom: 12px;
}
#memoInput {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  font-size: 16px; /* スマホで自動ズームされないための16px */
  resize: none;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  line-height: 1.4;
}
.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.modal-actions button {
  flex: 1;
  padding: 10px;
  font-size: 16px;
}
.cancel-btn {
  background: #7f8c8d !important;
}
.cancel-btn:hover {
  background: #95a5a6 !important;
}