/* リセットおよびボックス設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  font-family: "Segoe UI", sans-serif;
  background-color: #f5f5f5;
}

/* ヘッダー・ツールバー */
header {
  background-color: #333;
  color: #fff;
  padding: 1rem;
}
header h1 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.toolbar {
  display: flex;
  align-items: center;
}
.toolbar button,
.toolbar input[type="text"],
.toolbar input[type="file"] {
  margin-right: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
}

.toolbar button {
  background-color: #ff9800;
  border: none;
  color: #fff;
  cursor: pointer;
}
.toolbar button:hover {
  background-color: #e68900;
}

.toolbar input[type="text"] {
  flex: 0 0 200px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* テキストエリア */
main {
  flex: 1;
  padding: 1rem;
}
#editor {
  width: 100%;
  height: 100%;
  resize: none;
  padding: 1rem;
  font-size: 1rem;
  line-height: 1.5;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
}

.Clockbutton{
  background-color: #ff9800;
  border: solid 2px #2f4f4f;
  color: #fff;
  padding: 10px 30px;
  text-decoration: none;
  font-size: 1em;
}
.Clockbutton:hover {
  background-color: #e68900;
}


/* ライトモード */
body.light {
  background-color: #f5f5f5;
  color: #333;
}
body.light header {
  background-color: #333;
  color: #fff;
}
body.light .toolbar button {
  background-color: #ff9800;
  border: none;
  color: #fff;
}
body.light .toolbar button:hover {
  background-color: #e68900;
}
body.light #editor {
  background-color: #fff;
  color: #000;
  border-color: #ccc;
}

/* ダークモード */
body.dark {
  background-color: #121212;
  color: #e0e0e0;
}
body.dark header {
  background-color: #1f1f1f;
  color: #e0e0e0;
}
body.dark .toolbar button {
  background-color: #616161;
  border: none;
  color: #e0e0e0;
}
body.dark .toolbar button:hover {
  background-color: #757575;
}
body.dark #editor {
  background-color: #1e1e1e;
  color: #f5f5f5;
  border-color: #444;
}