@font-face {
  font-family: "Darumadrop One";
  src: url("darumadrop-one.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #7c875f;
  font-family: "Darumadrop One", sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
body { margin: 0; }
main { min-height: 100vh; overflow: hidden; }

.notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
  height: 88vh;
}

.notice-title {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  width: 100%;
  height: max(77px, 14.833333vw);
  margin: 0;
  /* スマホでも日付より大きく見えるよう、見出しに最小サイズを設ける。 */
  font-size: max(48px, 9.250061vw);
  font-weight: 400;
  line-height: .8;
  white-space: nowrap;
  transform: rotate(3deg);
}

.date-and-time {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 60px;
  width: 100%;
  font-size: 32px;
  line-height: 1;
  transform: rotate(-5deg);
}

.date { transform: rotate(-4deg); }
.clock-wrap { padding-top: 30px; }
.clock { display: block; transform: rotate(13deg); }
time { white-space: nowrap; }

.social {
  flex: 0 0 auto;
  padding-top: 40px;
  font-size: 18px;
  line-height: 1;
  text-align: center;
  transform: rotate(-3deg);
}

.social a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-thickness: .1em;
  text-underline-offset: .25em;
  text-decoration-skip-ink: none;
}
.social a:hover { color: #dd701d; }
.social a:focus-visible { outline: 2px solid currentColor; outline-offset: 8px; }

/* 参考サイトよりも狭い画面で日付がはみ出さないようにする。 */
@media (max-width: 340px) {
  .date-and-time { gap: 40px; font-size: 29px; }
}
@media (max-height: 440px) {
  .notice { height: auto; min-height: 100vh; padding: 45px 0; gap: 25px; }
  .social { padding-top: 20px; }
}
