/* styles.css */
* {
  box-sizing: border-box;
}

body {
  background: #fffaf0 url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="4" fill="%23ffe4e1"/><circle cx="60" cy="60" r="4" fill="%23ffe4e1"/></svg>') repeat;
  font-family: 'Rounded Mplus 1c', sans-serif;
  text-align: center;
  padding: 2rem;
  color: #333;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #ffffffcc;
  border-radius: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 1.6rem;
  color: #6b4f9b;
  margin-bottom: 1.5rem;
}

.section-title, p {
  font-weight: bold;
  color: #ff9f1c;
  margin-top: 2rem;
  font-size: 1.0rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.6rem auto;
  padding: 0.75rem 1.8rem;
  border: none;
  border-radius: 2rem;
  font-size: 1.05rem;
  font-weight: bold;
  color: white;
  cursor: pointer;
  min-width: 240px;
  gap: 0.6rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  background-clip: padding-box;
}

.button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  opacity: 1;
}

.break { background-color: #5ab4f3; }
.lunch { background-color: #90e0ef; }
.night { background-color: #b794f4; }
.stomach { background-color: #fcbf49; color: #333; }
.nowplaying { background-color: #80caff; }

.footer {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: #aaa;
}

/* ダイアログのカスタムスタイル */
dialog {
  border: none;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-family: 'Rounded Mplus 1c', sans-serif;
}

select {
  font-size: 1rem;
  padding: 0.5rem;
  margin: 1rem 0;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
}

button[type="button"] {
  margin: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  border: none;
  background-color: #eee;
  cursor: pointer;
}

button[type="button"]:hover {
  background-color: #ddd;
}

/* Now Playing Card */
.nowplaying-card {
  margin: 1rem auto;
  background-color: #ffffffcc;
  padding: 1rem;
  border-radius: 1.5rem;
  display: flex;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: fit-content;
  max-width: 90%;
}

.nowplaying-content {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 1rem;
}

.nowplaying-card img {
  width: 80px;
  height: 80px;
  border-radius: 1rem;
  object-fit: cover;
}

.nowplaying-text {
  text-align: left;
  font-size: 0.95rem;
  color: #333;
}

.nowplaying-text strong {
  font-size: 1.1rem;
  display: block;
  margin-top: 0.25rem;
}

.hidden {
  display: none;
}

body.happyberry-mode {
  background: linear-gradient(135deg, #fceabb, #f8b500);
  animation: shimmer 6s infinite;
}

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

.happyberry-mode .button {
  background: linear-gradient(45deg, #ffd700, #fff8dc);
  color: #5c3900;
  box-shadow: 0 0 20px #ffd700aa;
}

.sparkle-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%) 0 0,
              radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%) 50% 50%,
              radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%) 100% 100%;
  background-size: 200% 200%;
  animation: sparkle 6s linear infinite;
  display: none; /* ← 最初は非表示 */
}

input[type="text"],
textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  margin: 0.5rem 0 1rem;
  border: 1px solid #ccc;
  border-radius: 1rem;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: border 0.2s ease, box-shadow 0.2s ease;
  background-color: #fff;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
  border-color: #90e0ef;
  box-shadow: 0 0 0 3px rgba(144, 224, 239, 0.4);
  outline: none;
}

form button[type="submit"] {
  margin-top: 1rem;
  background-color: #6b4f9b;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 1.5rem;
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

form button[type="submit"]:hover {
  background-color: #7d5fd2;
  transform: translateY(-2px);
}

label {
  font-weight: bold;
  color: #ff9f1c;
  margin-top: 2rem;
  font-size: 1.0rem;
}



