body {
  background-color: #f0f0f0;
  font-family: 'Noto Sans JP', sans-serif; /* 初期フォントを標準ゴシックに変更 */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  color: #333;
  transition: font-family 0.3s;
}

.dashboard {
  background-color: white;
  width: 1000px;
  height: 700px;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  grid-template-rows: 1fr 180px;
  gap: 20px;
  border: 2px solid #333;
}

/* 左側：カレンダーエリア */
.calendars {
  grid-column: 1;
  grid-row: 1;
  border-right: 2px dashed #333;
  padding-right: 15px;
  overflow-y: auto;
}
details { margin-bottom: 10px; }
summary {
  font-size: 20px;
  cursor: pointer;
  font-weight: bold;
  padding: 5px 0;
  border-bottom: 1px solid #ccc;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 5px;
  font-size: 14px;
  text-align: center;
}
th, td { border: 1px solid #ddd; padding: 4px; }
th { background-color: #f9f9f9; }
.today { background-color: #ffeb3b; font-weight: bold; border-radius: 50%; }

/* 日曜日・祝日のスタイル */
.holiday, .sunday { color: #d32f2f; font-weight: bold; }
td[title] { cursor: help; }

/* 中央：アナログ時計 */
.analog-clock {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 右上：フォント設定 */
.font-settings {
  grid-column: 3;
  grid-row: 1;
  padding-top: 10px;
  text-align: right;
}
.font-box {
  border: 2px solid #333;
  padding: 10px;
  display: inline-block;
  text-align: left;
  background: #fafafa;
}
select {
  font-family: inherit;
  font-size: 14px;
  padding: 5px;
  margin-top: 5px;
  width: 100%;
  cursor: pointer;
}
optgroup {
  font-weight: bold;
  font-style: normal;
}

/* 左下：デジタル時計 */
.digital-area {
  grid-column: 1 / 3;
  grid-row: 2;
  display: flex;
  align-items: flex-end;
  padding-bottom: 10px;
}
.digital-clock {
  border: 3px solid #333;
  padding: 10px 20px;
  font-size: 64px;
  letter-spacing: 5px;
  line-height: 1;
  background: #fff;
}

/* 右下：天気情報 */
.weather-area {
  grid-column: 3;
  grid-row: 2;
  border: 3px solid #333;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.weather-title {
  border-bottom: 2px solid #333;
  padding: 8px;
  font-size: 18px; /* 20pxから少し縮小 */
  font-weight: bold;
  background: #f0f0f0;
  /* 以下を追加して1行に綺麗に並べる */
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}
.weather-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex-grow: 1;
}
.weather-left {
  border-right: 2px solid #333;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 18px;
}
.weather-right {
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  text-align: center;
}
.val-max { color: #d32f2f; font-weight: bold; font-size: 22px; }
.val-min { color: #1976d2; font-weight: bold; font-size: 22px; }
.val-desc { font-weight: bold; font-size: 20px; margin-bottom: 2px; }
.val-rain { color: #0288d1; font-weight: bold; font-size: 24px; margin-top: 2px; }

