@charset "UTF-8";
/* ============================
   ✅ シンプルなリセットCSS
   ============================ */
/* すべての要素に対してボックスサイズとマージン・パディングをリセット */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 明示的にスタイルが入りがちな要素だけピンポイントで個別指定する */
p,
figure,
figcaption,
fieldset,
legend,
blockquote {
  margin: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 見出しタグのデフォルトのマージンやフォントのリセット */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: normal;
}

/* リストのデフォルトスタイルのリセット */
ul, ol {
  list-style: none;
  list-style-type: none;
}

/* 画像のリセット */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* リンクのデフォルトスタイルのリセット */
a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* フォーム要素のリセット */
input,
select,
textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: transparent;
}

/* フォーカス時のアウトラインのリセット */
:focus {
  outline: none;
}

button {
  background-color: transparent;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
}

.hidden-sp {
  display: none !important;
}
@media screen and (min-width: 900px) {
  .hidden-sp {
    display: block;
  }
}

body {
  margin: 0;
  background: #111;
  color: #f5f5f5;
  font-family: "M PLUS Rounded 1c", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.time {
  position: relative;
}

.youtube-frame {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  bottom: 226px;
}
@media screen and (min-width: 768px) {
  .youtube-frame {
    bottom: 400px;
  }
}
@media screen and (min-width: 900px) {
  .youtube-frame {
    bottom: 27svh;
  }
}
@media screen and (min-width: 1024px) {
  .youtube-frame {
    bottom: 20svh;
  }
}
@media screen and (min-width: 1200px) {
  .youtube-frame {
    bottom: 0;
  }
}
.time-break__wrapper {
  max-width: 1140px;
  padding-inline: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 1rem;
  left: 1rem;
  display: none;
  align-items: flex-start;
  gap: 1rem;
  z-index: 100;
  color: #fff;
}
.time-break__wrapper.visible {
  display: flex;
}

.time-break__row {
  display: flex;
}

.time-break,
.restart-time {
  font-size: 2vw;
  font-weight: bold;
}

/* 休憩中の下に表示されるカウント（残り1分未満） */
.break-countdown {
  text-align: center;
  font-size: 3vw;
  font-weight: bold;
  color: #fff;
  margin-top: 0.5rem;
  transition: none;
  /* 画面中央に表示されるときの演出 */
}
.break-countdown.explode {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5rem;
  z-index: 999;
  animation: explodeOut 0.8s ease forwards;
}

@keyframes explodeOut {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(10);
    opacity: 0;
  }
}
iframe {
  width: 100vw;
  height: 100svh;
  border: none;
  position: relative;
}

.timer__wrapper {
  max-width: 1140px;
  padding-inline: 20px;
  width: 100%;
  display: grid;
  position: absolute;
  top: 59%;
  left: 50%;
  transform: translate(-50%, -50%);
  gap: 20px;
  place-items: center;
  grid-template-columns: 1fr;
}
@media screen and (min-width: 1024px) {
  .timer__wrapper {
    top: 50%;
    grid-template-columns: 1fr 1fr;
  }
}

.timer {
  font-size: 10vw;
  z-index: 10;
  border-radius: 10px;
  text-align: center;
  transition: font-size 0.3s ease;
  min-width: auto;
}
@media screen and (min-width: 900px) {
  .timer {
    font-size: min(150px, 13.1vw);
  }
}

.timer__clock {
  display: inline-block;
  text-align: center;
  transition: color 0.5s ease;
}
.timer__clock--normal {
  color: #fff;
}
.timer__clock--warn {
  color: #FFA500;
}
.timer__clock--danger {
  color: #FF4C4C;
  font-size: 15vw;
}
.timer__clock--countdown {
  color: #FF4C4C;
  animation: scalePulse 0.3s ease-in-out;
}

@keyframes scalePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}
.todo {
  width: 100%;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.1), 0 8px 32px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  color: #000;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
  word-break: break-word;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.alarm-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-block-start: 0.5rem;
}
.alarm-group label {
  margin-bottom: 0.25rem;
  font-size: 3.2vw;
  font-weight: 600;
}
@media screen and (min-width: 900px) {
  .alarm-group label {
    font-size: min(16px, 1.4vw);
  }
}
.alarm-group select {
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #000;
  background: transparent;
  color: #000;
  font-size: 3.2vw;
  transition: all 0.3s ease;
}
@media screen and (min-width: 900px) {
  .alarm-group select {
    font-size: min(16px, 1.4vw);
  }
}
.alarm-group select:hover {
  border: 1px solid #000;
  background: #fff;
  cursor: pointer;
  background: linear-gradient(to right, #ddd, #fff);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

.alarm-buttons {
  margin-top: 0.25rem;
  gap: 0.5rem;
  display: flex;
  flex-wrap: wrap;
}
.alarm-buttons button {
  display: inline-block;
  padding: 0.3rem 1.4rem;
  border-radius: 6px;
  background: transparent;
  color: #000;
  border: 1px solid #000;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  font-size: 3.2vw;
}
@media screen and (min-width: 900px) {
  .alarm-buttons button {
    font-size: min(16px, 1.4vw);
  }
}
.alarm-buttons button:hover {
  background: linear-gradient(to right, #ddd, #fff);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}
.alarm-buttons button:active {
  transform: scale(0.98);
  box-shadow: none;
}

.alarm-ui {
  margin-block-start: 10px;
  padding: 1rem;
  border: 1px solid #000;
  background: transparent;
  border-radius: 8px;
  font-size: 3.2vw;
  display: flex;
  flex-direction: column;
  color: #000;
}
@media screen and (min-width: 900px) {
  .alarm-ui {
    font-size: min(16px, 1.4vw);
  }
}

.alarm-ui.is-hovered {
  background-color: rgba(0, 0, 0, 0.5);
}

.alarm-ui.is-hovered .alarm-volume-group label,
.alarm-ui.is-hovered .youtube-volume-group label {
  transition: all 0.3s ease;
  color: #fff;
}

.alarm-volume-group {
  margin-top: 0;
  color: #000;
  background: transparent;
  padding: 0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.alarm-volume-group:nth-of-type(2) {
  margin-block-start: 10px;
}

.alarm-volume-group label {
  font-size: 3.2vw;
}
@media screen and (min-width: 900px) {
  .alarm-volume-group label {
    font-size: min(16px, 1.4vw);
  }
}

.alarm-volume-group input[type=range] {
  display: block;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}
.alarm-volume-group input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
          appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #000;
  border: none;
  -webkit-transition: background 0.3s ease;
  transition: background 0.3s ease;
}
.alarm-volume-group input[type=range]:hover {
  background: #fff;
}
.alarm-volume-group input[type=range]::-moz-range-track {
  background: #000;
  height: 4px;
  border-radius: 2px;
}
.alarm-volume-group input[type=range]::-moz-range-thumb {
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 12px;
  height: 12px;
}
.alarm-volume-group input[type=range]:hover::-moz-range-track {
  background: #666;
}

.todo-form {
  display: flex;
  margin-block-start: 0.5rem;
  gap: 0.5rem;
}

.todo-input {
  flex: 1;
  padding: 0.4rem 0.8rem;
  font-size: 3.2vw;
  border-radius: 6px;
  border: 1px solid #000;
  transition: all 0.3s ease;
}
@media screen and (min-width: 900px) {
  .todo-input {
    font-size: min(16px, 1.4vw);
  }
}
.todo-input::-moz-placeholder {
  color: #000;
}
.todo-input::placeholder {
  color: #000;
}
.todo-input:hover {
  background: #fff;
  color: #000;
  background: linear-gradient(to right, #ddd, #fff);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

.todo-form button {
  padding: 0.4rem 0.8rem;
  background: #000;
  color: #fff;
  border-radius: 6px;
  border: 1px solid #000;
  cursor: pointer;
  transition: all 0.3s ease;
}
.todo-form button:hover {
  background: #fff;
  color: #000;
}

.todo-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
  word-break: break-word;
  animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(100%, 0px);
  }
  to {
    opacity: 1;
    transform: translate(0);
  }
}

.delete-btn {
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
}/*# sourceMappingURL=style.css.map */