@charset "utf-8";

/* Rainbow Weather – cheerful color, calm information hierarchy */
:root {
  --rainbow-red: #ff5f7e;
  --rainbow-orange: #ff9d4d;
  --rainbow-yellow: #ffd65a;
  --rainbow-green: #51c893;
  --rainbow-blue: #4c9dff;
  --rainbow-purple: #9b6cff;
  --ink: #27344d;
  --muted: #68758c;
  --surface: #ffffff;
  --line: rgba(88, 117, 166, 0.16);
  --rainbow: linear-gradient(100deg, #ff6282 0%, #ff9858 22%, #ffd75c 41%, #5bca9a 60%, #55a4ff 79%, #a172ff 100%);
  --rainbow-soft: linear-gradient(112deg, rgba(255, 98, 130, 0.12), rgba(255, 152, 88, 0.12), rgba(255, 215, 92, 0.13), rgba(91, 202, 154, 0.11), rgba(85, 164, 255, 0.12), rgba(161, 114, 255, 0.12));
  --shadow-rainbow: 0 16px 44px rgba(63, 87, 137, 0.13);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  min-width: 0;
  max-width: none;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 210, 104, 0.20), transparent 23rem),
    radial-gradient(circle at 92% 14%, rgba(119, 168, 255, 0.17), transparent 26rem),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 44%, #f8fbff 100%);
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: auto 0 0;
  height: 14px;
  background: var(--rainbow);
}

header {
  isolation: isolate;
  overflow: hidden;
  min-height: 218px;
  padding: 42px 20px 50px;
  border-radius: 0 0 42px 42px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.62)),
    url("../img/1084450.png") center / cover;
  box-shadow: 0 18px 48px rgba(70, 103, 157, 0.16);
}

header::before,
header::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 44rem;
  height: 8rem;
  border-radius: 50%;
  background: var(--rainbow);
  opacity: 0.84;
  filter: blur(1px);
}

header::before {
  top: -4.6rem;
  left: -8rem;
  transform: rotate(-9deg);
}

header::after {
  right: -9rem;
  bottom: -5.6rem;
  transform: rotate(10deg);
}

.header-link {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 18px 26px 20px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 28px rgba(52, 84, 128, 0.12);
  backdrop-filter: blur(8px);
}

.text {
  font-size: clamp(2.15rem, 5vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.08em;
  text-shadow: none;
}

.header-link > div:first-child .text:nth-child(1),
.header-link > div:last-child .text:nth-child(1) { color: var(--rainbow-red); }
.header-link > div:first-child .text:nth-child(2),
.header-link > div:last-child .text:nth-child(2) { color: var(--rainbow-orange); }
.header-link > div:first-child .text:nth-child(3),
.header-link > div:last-child .text:nth-child(3) { color: #e4aa00; }
.header-link > div:first-child .text:nth-child(4),
.header-link > div:last-child .text:nth-child(4) { color: var(--rainbow-green); }
.header-link > div:last-child .text:nth-child(5) { color: var(--rainbow-blue); }
.header-link > div:last-child .text:nth-child(6) { color: var(--rainbow-purple); }
.header-link > div:last-child .text:nth-child(7) { color: var(--rainbow-red); }
.header-link > div:last-child .text:nth-child(8) { color: var(--rainbow-orange); }
.header-link > div:last-child .text:nth-child(9) { color: var(--rainbow-purple); }
.header-link > div:last-child .text:nth-child(10) { color: var(--rainbow-blue); }

nav:not(#nav-sp) {
  position: sticky;
  top: 10px;
  z-index: 20;
  margin: -23px auto 0;
}

#top {
  width: min(940px, calc(100% - 28px));
  min-width: 0;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 28px rgba(57, 86, 130, 0.14);
}

.top-child > a {
  padding: 10px 12px;
  color: #40506a !important;
  font-size: clamp(0.82rem, 1.8vw, 1rem);
  letter-spacing: 0.02em;
}

.top-child > a:hover,
.top-child > a:focus-visible {
  color: #ffffff !important;
  background: var(--rainbow);
  outline: none;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 62px;
}

/* .ad {
  overflow: hidden;
  min-height: 10px;
  margin: 8px auto 28px;
  border-radius: 14px;
} */

/* Avoid large empty gaps when AdSense has no advert to serve. */
.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}

.ad:has(.adsbygoogle[data-ad-status="unfilled"]) {
  display: none;
}

article > section {
  position: relative;
  margin: 28px 0;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-rainbow);
}

article > section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 5px;
  border-radius: 0 0 99px 99px;
  background: var(--rainbow);
}

h2,
.weatherword {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 25px;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: left;
  background: none;
  box-shadow: none;
}

h2::before {
  width: 13px;
  height: 13px;
  margin: 0;
  flex: 0 0 13px;
  background: var(--rainbow);
  box-shadow: 0 0 0 5px rgba(85, 164, 255, 0.12);
}

.weatherword::before {
  content: "☀";
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  flex: 0 0 32px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1rem;
  background: var(--rainbow);
  box-shadow: 0 5px 13px rgba(255, 125, 91, 0.27);
}

#weatheroverview {
  line-height: 2;
  color: #44536c;
}

/* Keep the original caption placement; only refresh its visual treatment. */
#weathermap .slider-caption {
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(40, 48, 91, 0.35);
  background: linear-gradient(100deg, #ff6282 0%, #ff9b58 24%, #e3be3e 43%, #55bd91 61%, #579df1 80%, #9b6ae0 100%);
  outline: 1px solid rgba(255, 255, 255, 0.72);
  outline-offset: -2px;
  box-shadow: 0 8px 18px rgba(54, 74, 125, 0.28);
}

/* Reserve room for the caption, which sits 10px below each map image. */
#weathermap .mainvisual {
  height: 452px;
}

/* Preserve the 48px circular button frame; enlarge only the arrow artwork. */
#weathermap .swiper-button-prev,
#weathermap .swiper-button-next {
  background-size: 32px 32px;
}

/* The forecast section sits inside the overview section in the existing markup. */
#forcast {
  position: relative;
  margin-top: 42px;
  padding: clamp(20px, 3.5vw, 32px);
  border: 1px solid rgba(118, 148, 196, 0.15);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(247, 251, 255, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: inset 0 1px 0 #ffffff, 0 10px 24px rgba(64, 93, 140, 0.08);
}

#forcast::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 4px;
  border-radius: 0 0 99px 99px;
  background: var(--rainbow);
}

.flexbox {
  gap: 14px;
  align-items: stretch;
}

.f-item1 {
  width: auto;
  min-width: 134px;
  flex: 1 1 134px;
  padding: 18px 10px 15px;
  border: 1px solid rgba(118, 148, 196, 0.12);
  border-radius: 18px;
  color: #394964;
  background: linear-gradient(148deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 20px rgba(66, 95, 142, 0.08);
}

.f-item1:nth-child(6n + 1) { border-top: 4px solid var(--rainbow-red); }
.f-item1:nth-child(6n + 2) { border-top: 4px solid var(--rainbow-orange); }
.f-item1:nth-child(6n + 3) { border-top: 4px solid #edc63d; }
.f-item1:nth-child(6n + 4) { border-top: 4px solid var(--rainbow-green); }
.f-item1:nth-child(6n + 5) { border-top: 4px solid var(--rainbow-blue); }
.f-item1:nth-child(6n) { border-top: 4px solid var(--rainbow-purple); }

.f-item1:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 29px rgba(66, 95, 142, 0.15);
}

.img-wicon {
  width: 88px;
  filter: drop-shadow(0 7px 10px rgba(65, 119, 201, 0.18));
}

.temphigh { color: #f45667; }
.templow { color: #347fdb; }
.rainpops,
.rainpops1 {
  color: #456794;
  background: var(--rainbow-soft);
}

.box21 {
  overflow: hidden;
  margin: 48px 0 20px;
  padding: 38px 28px 25px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  color: #45536b;
  background: var(--rainbow-soft), #ffffff;
  box-shadow: var(--shadow-rainbow);
}

.box21 .box-title {
  top: 14px;
  left: 20px;
  color: #ffffff;
  background: var(--rainbow);
}

.box21 a span,
.text-white {
  color: #386fc7;
}

footer {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  padding: 60px 24px 32px;
  border-radius: 38px 38px 0 0;
  background: #293c63;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 7px;
  background: var(--rainbow);
}

#footer-link {
  gap: 8px 18px;
  margin-bottom: 30px;
}

#footer-link > a {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.94rem;
}

#footer-link > a:hover {
  color: #293c63;
  text-decoration: none;
  background: #ffffff;
}

#page_top {
  z-index: 30;
  width: 54px;
  height: 54px;
  right: 20px;
  bottom: 20px;
  background: var(--rainbow);
}

@media screen and (max-width: 767px) {
  body { min-width: 0; }

  header {
    min-height: 180px;
    padding: 32px 14px 42px;
    border-radius: 0 0 30px 30px;
  }

  .header-link {
    padding: 15px 16px 16px;
    border-radius: 20px;
  }

  .text { font-size: clamp(1.75rem, 9vw, 2.35rem); }

  #menu-sp {
    z-index: 25;
    width: 48px;
    margin: 10px 0 0;
    padding: 4px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 7px 18px rgba(62, 93, 140, 0.16);
  }

  #nav-sp {
    position: fixed;
    background: linear-gradient(160deg, #ff6985 0%, #ff9d58 28%, #59c895 58%, #5ca2ff 77%, #9c6eff 100%);
  }

  #nav-sp > .menu {
    background-color: rgba(255, 255, 255, 0.18);
  }

  main {
    width: min(100% - 22px, 620px);
    padding-top: 20px;
  }

  article > section {
    margin: 18px 0;
    padding: 24px 15px;
    border-radius: 21px;
  }

  article > section::before {
    left: 18px;
    right: 18px;
  }

  h2,
  .weatherword {
    font-size: 1.2rem;
  }

  .f-item1 {
    min-width: calc(50% - 8px);
    flex-basis: calc(50% - 8px);
    padding: 13px 6px 12px;
    font-size: 0.9rem;
  }

  .img-wicon { width: 68px; }

  #forcast {
    margin-top: 28px;
    padding: 20px 12px;
    border-radius: 17px;
  }

  .box21 {
    margin-top: 36px;
    padding: 42px 18px 20px;
    border-radius: 20px;
    font-size: 1rem;
  }

  footer {
    padding: 42px 20px 34px;
    border-radius: 28px 28px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
