* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: #111111;
  background: #ffffff;
  font-family:
    "Helvetica Neue",
    Helvetica,
    Arial,
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

/* BUNSEIDO common header */
.bunseido-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(600px, 1.8fr);
  align-items: stretch;
  min-height: 98px;
  border-bottom: 1px solid #111111;
  background: #ffffff;
}

.bunseido-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 30px;
  border-right: 1px solid #111111;
}

.bunseido-logo span {
  font-family: "futura-pt", Helvetica, Arial, sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.bunseido-logo small {
  margin-top: 7px;
  font-family: "futura-pt", Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
}

.bunseido-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.bunseido-nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 98px;
  padding: 10px;
  border-right: 1px solid #111111;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.bunseido-nav a:hover {
  background: #60C0BD;
}

.bunseido-nav .bunseido-contact {
  background: #60C0BD;
}

.bunseido-nav .bunseido-contact:hover {
  background: #ffffff;
}

/* LED NEWS page */
.clock-main {
  min-height: calc(100vh - 98px);
  padding: 72px 40px 80px;
}

.clock-heading {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto 28px;
}

.clock-heading p {
  margin: 0 0 8px;
  color: #60C0BD;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.clock-heading h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
}

.clock-heading a {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.display {
  max-width: 1220px;
  margin: 0 auto;

  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  overflow: hidden;

  background:
    radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1.5px),
    #090909;
  background-size: 5px 5px;

  border: 10px solid #242424;
  box-shadow:
    inset 0 0 30px rgba(0,0,0,0.9),
    0 8px 24px rgba(0,0,0,0.16);
}

.clock {
  flex: 0 0 auto;
  padding: 0 38px;

  font-family: monospace;
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;

  color: #35e86f;
  text-shadow:
    0 0 4px rgba(53,232,111,0.95),
    0 0 12px rgba(53,232,111,0.45);
}

.news-window {
  position: relative;
  flex: 1;
  height: 100%;
  overflow: hidden;
  border-left: 1px solid #353535;
}

.news {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  white-space: nowrap;

  font-size: clamp(59px, 7.53vw, 108px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;

  color: #ff8a32;
  text-shadow:
    0 0 4px rgba(255,138,50,0.9),
    0 0 10px rgba(255,100,20,0.35);

  animation: none;
}

@keyframes ticker {
  from {
    transform: translate(0, -50%);
  }
  to {
    transform: translate(-180%, -50%);
  }
}

@media (max-width: 700px) {
  .page {
    padding: 14px;
  }

  .display {
    height: 100px;
    border-width: 6px;
  }

  .clock {
    padding: 0 16px;
  }

  .news {
    font-size: clamp(45px, 10.58vw, 71px);
    
  }
}

.credit {
  display: inline-block;
  font-size: 75%;
  margin-left: 3em;
}


.clock-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1220px;
  margin: 18px auto 0;
  color: #666666;
  font-size: 12px;
}

.clock-meta p {
  margin: 0;
}

.clock-meta a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* BUNSEIDO common footer */
.bunseido-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 30px;
  padding: 55px 40px;
  border-top: 1px solid #999999;
  background: #ffffff;
}

.bunseido-footer-logo {
  font-family: "futura-pt", Helvetica, Arial, sans-serif;
  font-size: 34px;
  font-weight: 700;
}

.bunseido-footer div p,
.bunseido-footer > p {
  margin: 0;
  font-size: 12px;
}

.bunseido-footer > p {
  text-align: right;
}

@media (max-width: 980px) {
  .bunseido-header {
    grid-template-columns: 1fr;
  }

  .bunseido-logo {
    border-right: 0;
    border-bottom: 1px solid #111111;
  }

  .bunseido-nav a {
    min-height: 65px;
  }
}

@media (max-width: 720px) {
  .bunseido-logo {
    padding: 17px 18px;
  }

  .bunseido-logo span {
    font-size: 30px;
  }

  .bunseido-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bunseido-nav a {
    min-height: 52px;
    padding: 8px 5px;
    border-bottom: 1px solid #555555;
    font-size: 13px;
  }

  .clock-main {
    padding: 42px 14px 56px;
  }

  .clock-meta {
    display: block;
  }

  .clock-meta p + p {
    margin-top: 6px;
  }

  .bunseido-footer {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 38px 18px;
  }

  .bunseido-footer > p {
    text-align: left;
  }
}


.clock-about {
  width: 100%;
  max-width: 1220px;
  margin: 64px auto 0;
  padding-top: 34px;
  border-top: 1px solid #d8d8d8;
}

.clock-about .section-label {
  margin: 0 0 10px;
  color: #60C0BD;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}

.clock-about h2 {
  margin: 0 0 28px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.25;
}

.clock-about > p:not(.section-label):not(.weather-credit) {
  max-width: 760px;
  margin: 0 0 20px;
  color: #333333;
  font-size: 15px;
  line-height: 1.9;
}

.clock-about .weather-credit {
  margin: 34px 0 0;
  color: #777777;
  font-size: 11px;
}

.clock-about .weather-credit a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .clock-about {
    margin-top: 46px;
    padding-top: 28px;
  }

  .clock-about > p:not(.section-label):not(.weather-credit) {
    font-size: 14px;
    line-height: 1.85;
  }
}


.news.is-running {
  animation: ticker var(--ticker-duration, 24s) linear infinite;
}
