@charset "utf-8";

/* Sky Feeling - airy light, clear sky, calm information hierarchy */
:root {
  --sky-deep: #1f79c6;
  --sky-blue: #48b7f2;
  --sky-light: #bfeeff;
  --sun-glow: #ffd98f;
  --sun-coral: #ff927e;
  --air-mint: #67d8c1;
  --twilight-lavender: #8d9cff;
  --ink: #243650;
  --muted: #63758c;
  --surface: #ffffff;
  --line: rgba(86, 132, 172, 0.17);
  --sky-flow: linear-gradient(100deg, #2b89d7 0%, #4bbdf2 30%, #89e6d6 52%, #ffd98f 73%, #ff9986 100%);
  --sky-soft: linear-gradient(112deg, rgba(72, 183, 242, 0.14), rgba(137, 230, 214, 0.13), rgba(255, 217, 143, 0.16), rgba(255, 153, 134, 0.11));
  --shadow-sky: 0 16px 44px rgba(50, 101, 151, 0.14);
  --rainbow-red: var(--sun-coral);
  --rainbow-orange: var(--sun-glow);
  --rainbow-yellow: #ffe6a7;
  --rainbow-green: var(--air-mint);
  --rainbow-blue: var(--sky-blue);
  --rainbow-purple: var(--twilight-lavender);
  --rainbow: var(--sky-flow);
  --rainbow-soft: var(--sky-soft);
  --shadow-rainbow: var(--shadow-sky);
}

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

body {
  min-width: 0;
  max-width: none;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(212, 242, 255, 0.96) 0%, rgba(250, 253, 255, 0.98) 36%, #ffffff 68%, #f5fbff 100%);
}

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

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.78), rgba(224, 246, 255, 0.34) 54%, rgba(255, 255, 255, 0.44)),
    url("../img/sky-feeling-header.png") center / cover;
  box-shadow: 0 18px 48px rgba(46, 111, 174, 0.18);
}

header::before,
header::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 44rem;
  height: 8rem;
  border-radius: 50%;
  background: linear-gradient(96deg, rgba(72, 183, 242, 0.82), rgba(137, 230, 214, 0.58), rgba(255, 217, 143, 0.70), rgba(255, 146, 126, 0.52));
  opacity: 0.74;
  filter: blur(0.5px);
}

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.70);
  box-shadow: 0 12px 28px rgba(42, 92, 142, 0.14);
  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(--sky-deep); }
.header-link > div:first-child .text:nth-child(2),
.header-link > div:last-child .text:nth-child(2) { color: var(--sky-blue); }
.header-link > div:first-child .text:nth-child(3),
.header-link > div:last-child .text:nth-child(3) { color: var(--air-mint); }
.header-link > div:first-child .text:nth-child(4),
.header-link > div:last-child .text:nth-child(4) { color: #df9d31; }
.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(--sky-deep); }
.header-link > div:last-child .text:nth-child(8) { color: var(--sun-coral); }
.header-link > div:last-child .text:nth-child(9) { color: #f5b540; }
.header-link > div:last-child .text:nth-child(10) { color: var(--air-mint); }

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(--sky-flow);
  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: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 252, 255, 0.92));
  box-shadow: var(--shadow-sky);
}

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

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(--sky-flow);
  box-shadow: 0 0 0 5px rgba(72, 183, 242, 0.13);
}

.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(--sky-flow);
  box-shadow: 0 5px 13px rgba(45, 137, 215, 0.24);
}

#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, #207bc7 0%, #42b9ef 38%, #69d8c3 64%, #ffd487 100%);
  outline: 1px solid rgba(255, 255, 255, 0.72);
  outline-offset: -2px;
  box-shadow: 0 8px 18px rgba(42, 86, 138, 0.26);
}

/* 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(91, 154, 204, 0.17);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(235, 249, 255, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: inset 0 1px 0 #ffffff, 0 10px 24px rgba(49, 104, 158, 0.09);
}

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

.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(91, 154, 204, 0.13);
  border-radius: 18px;
  color: #344961;
  background: linear-gradient(148deg, #ffffff 0%, #f3fbff 100%);
  box-shadow: 0 8px 20px rgba(49, 104, 158, 0.08);
}

.f-item1:nth-child(6n + 1) { border-top: 4px solid var(--sky-deep); }
.f-item1:nth-child(6n + 2) { border-top: 4px solid var(--sky-blue); }
.f-item1:nth-child(6n + 3) { border-top: 4px solid var(--air-mint); }
.f-item1:nth-child(6n + 4) { border-top: 4px solid var(--sun-glow); }
.f-item1:nth-child(6n + 5) { border-top: 4px solid var(--sun-coral); }
.f-item1:nth-child(6n) { border-top: 4px solid var(--twilight-lavender); }

.f-item1:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 29px rgba(49, 104, 158, 0.15);
}

.img-wicon {
  width: 88px;
  filter: drop-shadow(0 7px 10px rgba(45, 137, 215, 0.18));
}

.temphigh { color: #ff725f; }
.templow { color: #2478c4; }
.rainpops,
.rainpops1 {
  color: #315f86;
  background: var(--sky-soft);
}

#parent .rainpops {
  display: block;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  margin: 6px auto 0;
}

@media screen and (min-width: 768px) {
  #weekforcast .flexbox {
    flex-wrap: nowrap;
    gap: 8px;
  }

  #weekforcast .f-item1 {
    min-width: 0;
    flex: 1 1 0;
    padding: 13px 6px 12px;
    font-size: clamp(0.72rem, 0.82vw, 0.92rem);
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  #weekforcast .img-wicon {
    width: clamp(50px, 5.2vw, 72px);
  }

  #weekforcast hr {
    margin: 7px 0;
  }

  #weekforcast .rainpops,
  #weekforcast .rainpops1 {
    font-size: 0.9em;
    line-height: 1.45;
  }
}

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

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

.box21 a span,
.text-white {
  color: #2478c4;
}

footer {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  padding: 60px 24px 32px;
  border-radius: 38px 38px 0 0;
  background: linear-gradient(160deg, #204f83 0%, #2478c4 54%, #3ab2db 100%);
}

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

#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: #204f83;
  text-decoration: none;
  background: #ffffff;
}

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

@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: 20%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  #nav-sp {
    position: fixed;
    background: linear-gradient(160deg, #1f79c6 0%, #48b7f2 42%, #67d8c1 72%, #ffd98f 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;
  }
  h2::before {
    display: none;
  }

  #parent {
    gap: 2px;
  }
   
  #parent .contents {
    flex: 1 1 calc((100% - 16px) / 3);
    min-width: 0;
    padding: 10px 4px 9px;
    font-size: 0.74rem;
    line-height: 1.4;
  }

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

  .img-wicon { width: 68px; }

  /* 週間天気予報は1行3つ固定で折り返す */
  #weekforcast .flexbox {
    gap: 8px;
  }

  #weekforcast .f-item1 {
    flex: 1 1 calc((100% - 16px) / 3);
    min-width: 0;
    padding: 10px 4px 9px;
    font-size: 0.74rem;
    line-height: 1.4;
  }

  #weekforcast .img-wicon {
    width: 50px;
  }

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

  .rainpops,
    .rainpops1 {
        font-size: 12px;
        white-space: nowrap;
    }

    .temphigh,
    .templow {
        font-size: 12px;
        padding: 2px 6px;
        white-space: nowrap;
    }

  .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;
  }

  #footer-link {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: 42px;
  }

  #footer-link > a {
    display: block;
    width: auto;
    margin: 0 20px 18px 0;
    padding: 7px 32px 7px 0;
    background-position: right top;
  }
}

@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;
  }
}
