@charset "UTF-8";
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #e71a10;
  --acc: #2877c0;
  --fg: #111;
  --fg2: #00a051;
  --bd: #ddd;
  --font: BIZ UDPGothic, BIZ UDPゴシック, Noto Sans JP, sans-serif;
  --th: 0px;
  --hh: 56px;
}

body {
  font-family: var(--font);
  background: #f2f2f2;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 40px;
  font-weight: 500;
}

button {
  font-family: inherit;
}

.sp-br {
  display: inline-block;
  margin-top: 0.2rem;
}

@keyframes tick {
  from {
    transform: translateX(100vw);
  }
  to {
    transform: translateX(-100%);
  }
}
/* Typography & Layout Base */
h2 {
  font-size: 1.5rem;
  margin: 1rem 0;
  padding: 0.5rem 0.5rem 0.5rem 0.7rem;
  border-left: 10px solid #2977c0;
}

#sec-live h2 {
  font-size: 1.2rem;
  margin: 1rem 0;
  padding: 0.5rem 0.5rem 0.5rem 0.7rem;
  border-left: 10px solid #e71a10;
}

#sec-links h2 {
  font-size: 1.5rem;
  margin: 1rem 0;
  padding: 0.5rem 0.5rem 0.5rem 0.7rem;
  border-left: 10px solid #616161;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--th) + var(--hh) + 20px) 16px 0;
}
main .center-sp {
  display: flex;
  justify-content: center;
  align-items: center;
}
main .center-sp .btn-back-sp {
  font-size: 1rem;
  width: auto;
  min-width: 80%;
  display: block;
  background: #00a051;
  color: #fff;
  font-family: var(--font);
  text-decoration: none;
  padding: 10px 10px;
  text-align: center;
  margin: 0 1.2rem;
  border-radius: 0;
}
main .center-sp .btn-back-sp:hover {
  opacity: 0.7;
}

.explain {
  margin: 1rem 0;
}

/* Ticker */
#ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  background-color: #f8f8f8;
  display: none;
  align-items: center;
  z-index: 200;
  font-size: 1rem;
  overflow: hidden;
}
#ticker-inner {
  display: flex;
  white-space: nowrap;
  gap: 0 60px;
  will-change: transform;
}
#ticker-inner span {
  flex-shrink: 0;
}

/* Header */
header {
  background: #fff;
  border-top: 1px solid #b8b8b8;
  border-bottom: 1px solid #b8b8b8;
  padding: 7px 8px;
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: var(--th);
  left: 0;
  right: 0;
  z-index: 100;
  transition: top 0.2s;
}

.left-side {
  display: flex;
  align-items: flex-end;
}

.center {
  display: none;
}

.right-side {
  display: flex;
  justify-content: flex-end;
}

/* Header Elements */
.btn-back {
  font-size: 1.2rem;
  width: 70%;
  min-width: 90%;
  display: block;
  background: #00a051;
  color: #fff;
  font-family: var(--font);
  text-decoration: none;
  padding: 25px 16px;
  text-align: center;
  margin: 0 auto 2.5rem;
  border-radius: 0;
}
.btn-back:hover {
  opacity: 0.7;
}

.h-title {
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: flex-end;
  line-height: 1.2;
}

.logo {
  max-width: 59px;
  height: auto;
  margin: 0 0.7rem 0 0;
  display: block;
}

.h-sub {
  font-size: 0.7rem;
  color: var(--fg2);
  padding: 0 0 0 0.3rem;
  text-decoration: underline;
}

.btn-reload {
  display: flex;
  align-items: center;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px;
  cursor: pointer;
  width: 85px;
  height: 45px;
  justify-content: center;
  background: var(--bd);
}
.btn-reload span {
  color: #111;
  margin-left: 0.5rem;
  font-weight: 600;
}
.btn-reload:hover {
  opacity: 0.6;
}
.btn-reload svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.btn-reload span {
  white-space: nowrap;
}

/* Label */
.lbl {
  display: inline-block;
  font-size: 1rem;
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.lbl-red {
  background: var(--red);
}
.lbl-live {
  background: #c00;
}
.lbl-acc {
  background: var(--acc);
}
.lbl-gray {
  background: var(--fg2);
}

/* LIVE */
#sec-live,
#sec-typhoone,
#sec-ooame,
#sec-dosha,
#sec-warn,
#sec-feed,
#sec-links {
  margin: 2rem 0;
}

.live {
  position: relative;
  width: 100%;
  max-width: 750px;
  margin: 0 auto 20px;
  aspect-ratio: 16/9;
}
.live iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 6px;
}
.live.is-fixed iframe {
  position: fixed;
  top: auto;
  right: auto;
  left: 10px;
  bottom: 20px;
  width: 200px;
  height: auto;
  aspect-ratio: 16/9;
  z-index: 150;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: none;
}

/* 台風・注警報 */
.warn-cols {
  margin: 2rem 0;
  display: grid;
  gap: 8px;
  margin: 1rem;
}

.typhoon_wrap,
.dosha_wrap {
  display: grid;
  gap: 8px;
}
.typhoon_wrap img,
.dosha_wrap img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--bd);
  display: block;
}

.ooame_wrap .ooame_viewer_wrap {
  display: grid;
  margin: 1rem auto;
  width: 100%;
}
.ooame_wrap .ooame_viewer_wrap .caption {
  margin: 0 auto;
  font-size: 0.9rem;
}
.ooame_wrap .ooame_viewer_wrap .ooame_viewer {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000000;
  border-radius: 8px;
  overflow: hidden;
  margin: 8px auto;
}
.ooame_wrap .ooame_viewer_wrap .ooame_viewer img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  opacity: 0;
  transition: opacity 0s;
}
.ooame_wrap .ooame_viewer_wrap .ooame_viewer img.active {
  opacity: 1;
}
.ooame_wrap .ooame_viewer_wrap .ooame_controls {
  width: 100%;
  background: rgba(209, 206, 206, 0);
  padding: 8px 10px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 auto;
}
.ooame_wrap .ooame_viewer_wrap .ooame_seekbar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ooame_wrap .ooame_viewer_wrap .ooame_seekbar-row input[type=range] {
  flex: 1;
  cursor: pointer;
}
.ooame_wrap .ooame_viewer_wrap .ooame_action-row {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ooame_wrap .ooame_viewer_wrap .ooame_playbtn {
  width: 100%;
  max-width: 130px;
  padding: 10px 10px;
  background: #2877c0;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  font-weight: 600;
  font-size: 1rem;
}
.ooame_wrap .ooame_viewer_wrap .ooame_playbtn:hover {
  background: #0052a3;
}
.ooame_wrap .ooame_viewer_wrap .ooame_playbtn:disabled {
  background: #555555;
  cursor: not-allowed;
}
.ooame_wrap .ooame_viewer_wrap .ooame_fps-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.ooame_wrap .ooame_viewer_wrap .ooame_fps-container input {
  width: 60px;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #555;
  background: #1e1e1e;
  color: #fff;
}
.ooame_wrap .ooame_img_wrap {
  display: grid;
  margin: 8px auto;
  width: 100%;
  max-width: 564px;
}
.ooame_wrap .ooame_img_wrap img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000000;
  border-radius: 8px;
  overflow: hidden;
  margin: 8px auto;
}

.warn-pref {
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 6px;
  overflow: hidden;
}
.warn-pref-title {
  font-size: 1.2rem;
  padding: 6px 10px;
  background: var(--acc);
  color: #fff;
}

.warn-list {
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.warn-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 1rem;
  padding: 3px 0;
  border-bottom: 1px solid #f0f0f0;
}
.warn-row:last-child {
  border-bottom: none;
}

.warn-city {
  flex-shrink: 0;
  min-width: 72px;
  color: var(--fg);
  min-width: 80px;
}

.warn-items {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.w-tag {
  display: inline-block;
  font-size: 0.9rem;
  padding: 2px 7px;
  border-radius: 3px;
  white-space: nowrap;
}

.w-2 {
  background: #f2e700;
  color: #111;
}

.w-3 {
  background: #ff2800;
  color: #fff;
}

.w-4 {
  background: #aa00aa;
  color: #fff;
}

.w-5 {
  background: #0c0a0c;
  color: #fff;
}

.warn-empty {
  font-size: 1rem;
  color: var(--fg);
  padding: 10px 8px;
}

/* 凡例 */
.caption {
  display: inline;
  margin: 1rem;
}

.infomation {
  font-size: 0.9rem;
  color: #444;
  vertical-align: middle;
}

.tokukei,
.kikenkei,
.kei,
.chu {
  margin: 0.15rem;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
}

.tokukei {
  background: #0c0a0c;
  color: #fff;
}

.kikenkei {
  background: #aa00aa;
  color: #fff;
}

.kei {
  background: #ff2800;
  color: #fff;
}

.chu {
  background: #f2e700;
  color: #000;
  line-height: 260%;
}

/* Feed */
#feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.g-cards {
  display: grid;
  gap: 8px;
}

.card {
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 6px;
  padding: 10px 12px;
}
.card .c-time {
  font-size: 0.8rem;
  color: var(--fg2);
  margin-bottom: 4px;
  text-decoration: underline;
}
.card .c-body {
  font-size: 0.9rem;
  line-height: 1.7;
  word-break: break-all;
}

.empty {
  text-align: center;
  padding: 10px 16px;
  color: var(--fg);
}

/* Side Nav */
#sidenav {
  position: fixed;
  right: 0;
  top: 55%;
  transform: translateY(-50%);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.snav-btn {
  display: block;
  background: var(--acc);
  color: #fff;
  font-family: var(--font);
  font-size: 0.7rem;
  writing-mode: vertical-rl;
  padding: 8px 3px;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.15s;
  border: 0.1px solid #fff;
}
.snav-btn:first-child {
  border-radius: 6px 0 0 0;
  text-orientation: upright;
}
.snav-btn:last-child {
  border-radius: 0 0 0 6px;
}
.snav-btn:hover {
  background: var(--acc);
  opacity: 0.7;
}

.links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 auto;
  max-width: 670px;
}
.links-grid a {
  display: block;
  background: var(--acc);
  border: 1px solid var(--bd);
  border-radius: 13px;
  padding: 12px 12px;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  text-align: center;
  max-width: 330px;
}
.links-grid a:hover {
  opacity: 0.7;
}

.links-glid-img {
  display: grid;
  margin: 0.8rem 0;
  justify-content: center;
}
.links-glid-img img {
  max-width: 100%;
}
.links-glid-img:hover {
  opacity: 0.7;
}

/* Footer & ToTop */
.copyright {
  text-align: center;
  margin: 1.5rem 0 0;
  font-size: 0.8rem;
}

#totop {
  position: fixed;
  right: 10px;
  bottom: 20px;
  background: var(--acc);
  color: #fff;
  font-size: 1rem;
  border: 1px solid #fff;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  cursor: pointer;
  z-index: 150;
  transition: background 0.15s;
  line-height: 1.3;
  overflow: hidden;
}
#totop:hover {
  background: var(--acc);
  opacity: 0.7;
}
#totop .arrow-up.icon {
  color: #fff;
  position: absolute;
  margin-top: 20px;
  background-color: currentColor;
}
#totop .arrow-up.icon::before {
  content: "";
  position: absolute;
  left: -7px;
  width: 14px;
  height: 14px;
  border-top: solid 3px currentColor;
  border-right: solid 3px currentColor;
  transform: rotate(-45deg);
  bottom: 10px;
}

/* --------------------------------------------------------------------------
   PC共通レイアウト（768px以上）
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  h2,
  #sec-live h2,
  #sec-links h2 {
    font-size: 1.6rem;
  }
  .sp-br {
    display: inline;
    margin-top: 0;
  }
  header {
    padding: 10px 32px;
    align-items: center;
  }
  .center {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .logo {
    max-width: 90px;
  }
  .h-sub {
    font-size: 0.8rem;
  }
  main {
    padding-left: 32px;
    padding-right: 32px;
  }
  main .center-sp {
    display: none;
  }
  .warn-cols {
    grid-template-columns: 1fr 1fr;
  }
  .typhoon_wrap,
  .dosha_wrap {
    grid-template-columns: repeat(2, 1fr);
  }
  .typhoon_wrap img:last-child:nth-child(odd),
  .dosha_wrap img:last-child:nth-child(odd) {
    grid-column: 1/-1;
    justify-self: center;
    width: calc(50% - 4px);
  }
  .ooame_wrap {
    display: flex;
    gap: 10px;
  }
  .ooame_wrap .ooame_viewer_wrap {
    width: 100%;
    max-width: 564px;
  }
  .ooame_wrap .ooame_img_wrap {
    width: 100%;
    max-width: 564px;
  }
  #sidenav {
    top: 56%;
    gap: 1.5px;
  }
  .copyright {
    font-size: 1rem;
  }
  .live.is-fixed iframe {
    left: 20px;
    bottom: 20px;
    width: 320px;
    display: inline;
  }
}
/* --------------------------------------------------------------------------
   タブレット限定レイアウト（768px〜970px）
   -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 970px) {
  header {
    grid-template-columns: 1.7fr 1fr 1.3fr;
  }
  .sp-br {
    display: inline;
    margin-top: 0;
  }
  .btn-back {
    margin: 0;
    padding: 15px;
    width: auto;
    min-width: 220px;
    font-size: 1rem;
  }
  .h-title {
    font-size: 1.5rem;
  }
  .logo {
    margin-right: 0.7rem;
  }
  .h-sub {
    padding: 0 0 0 0.4rem;
  }
  .snav-btn {
    font-size: 0.85rem;
    padding: 10px 8px;
  }
}
/* --------------------------------------------------------------------------
   PC限定の大画面レイアウト（971px以上）
   -------------------------------------------------------------------------- */
@media (min-width: 971px) {
  header {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .sp-br {
    display: inline;
    margin-top: 0;
  }
  .btn-back {
    margin: 0;
    padding: 20px;
    width: auto;
    min-width: 300px;
    font-size: 1.1rem;
  }
  .h-title {
    font-size: 1.8rem;
  }
  .logo {
    margin-right: 0.8rem;
  }
  .h-sub {
    padding: 0 0 0 0.7rem;
  }
  .snav-btn {
    font-size: 0.85rem;
    padding: 10px 8px;
  }
}/*# sourceMappingURL=style.css.map */