@charset "utf-8";

/* stylesheet3.css + stylesheet6.css + rainbow-theme.css を統合 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=M+PLUS+Rounded+1c:wght@700;800&display=swap');

:root {
  --color-primary: #2f80ed;
  --color-primary-light: #56ccf2;
  --color-accent: #ff9a56;
  --color-bg: #eef6fc;
  --color-card: #ffffff;
  --color-text: #2d3748;
  --color-text-light: #718096;
  --color-border: #e2e8f0;
  --shadow-soft: 0 10px 30px rgba(47, 128, 237, 0.1);
  --shadow-hover: 0 16px 36px rgba(47, 128, 237, 0.18);
  --radius-lg: 20px;
  --radius-md: 14px;

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

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, Arial, sans-serif;
  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;
  position: relative;
  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;
  color: #1d4ed8;
  text-align: center;
  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-decoration: none;
  color: #1d4ed8;
}

.textcolor {
  color: #ff6b6b;
}

.text {
  display: inline-block;
  font-weight: 800;
  font-family: "M PLUS Rounded 1c", "Ryumin ExtraBold KL", sans-serif;
  animation: text-animation 0.8s forwards;
  transform: rotateY(90deg);
  font-size: clamp(2.15rem, 5vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.08em;
  text-shadow: none;
}

@keyframes text-animation {
  0% {
      transform: rotateY(90deg);
  }

  100% {
      transform: rotateY(0deg);
  }
}

.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 {
  max-width: 760px;
  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);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(57, 86, 130, 0.14);
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.top-child {
  width: auto;
  flex-grow: 1;
  background-color: transparent;
  display: inline-block;
}

#top > p {
  color: var(--color-primary);
}

.top-child > a {
  text-decoration: none;
  margin: 0;
  display: block;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 600;
  transition: background-color 0.25s ease, color 0.25s ease;
  color: #40506a !important;
  font-size: clamp(0.82rem, 1.8vw, 1rem);
  letter-spacing: 0.02em;
}

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

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

p {
  font-size: 20px;
  margin: 0;
}

a {
  font-size: 20px;
}

/* 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;
}

.ad {
  max-width: 700px;
  min-width: 100px;
  margin: 0 0 0 auto;
}

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

#parent {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

.contents {
  border: none;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  width: 25%;
  flex-grow: 1;
  padding: 20px 15px;
  margin: 10px 0px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contents:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.contents > h2 {
  justify-content: center;
  text-align: center;
}

/* 見出し */
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 {
  content: "";
  width: 13px;
  height: 13px;
  margin: 0;
  flex: 0 0 13px;
  border-radius: 50%;
  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);
}

#mission > h2::after {
  content: url("../img/line.png");
  margin-left: 10px;
}

#aboutus > h2::after {
  content: url("../img/line.png");
  margin-left: 10px;
}

h3 {
  font-size: 27px;
}

#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: 48px 48px;
}

/* 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 {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  padding-bottom: 6px;
  gap: 14px;
  align-items: stretch;
}

.f-item1 {
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  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 {
  margin: 10px auto;
  width: 88px;
  filter: drop-shadow(0 7px 10px rgba(45, 137, 215, 0.18));
}

.word-break {
  word-break: break-all;
}

.temphigh,
.templow {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 4px;
  margin: 6px auto 0;
  padding: 3px 13px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92em;
}

.temphigh {
  color: #ff725f;
  background: rgba(255, 114, 95, 0.14);
}
.templow {
  color: #2478c4;
  background: rgba(36, 120, 196, 0.13);
}

.rainpops {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.rainpops1 {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.rainpops,
.rainpops1 {
  color: #315f86;
  background: var(--sky-soft);
}

.rainpops1 {
    white-space: nowrap;
}

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

hr {
    border: none;
    /* border-top: 1.5px dashed rgba(80, 160, 240, 0.45); */
    height: 2px;
    background: linear-gradient(to right, #ff6b6b, #ffa94d, #ffd43b, #69db7c, #4dabf7, #748ffc, #da77f2);
    margin: 8px 4px;
    border-radius: 2px;
    opacity: 0.7;
}

.box21 {
  position: relative;
  font-size: 1.15rem;
  line-height: 1.9;
  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 {
  position: absolute;
  display: inline-block;
  top: 14px;
  left: 20px;
  padding: 0 18px;
  height: 32px;
  line-height: 32px;
  font-size: 15px;
  border-radius: 999px;
  background: var(--sky-flow);
  color: #ffffff;
  font-weight: bold;
  box-shadow: 0 8px 18px rgba(47, 128, 237, 0.3);
}

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

/* フッター */
footer {
  position: relative;
  overflow: hidden;
  text-align: center;
  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 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
  gap: 8px 18px;
}
#footer-link > a {
  text-decoration: none;
  margin: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  transition: opacity 0.2s ease;
}
#footer-link > a:link {
  color: #ffffff;
}
#footer-link > a:visited {
  color: #ffffff;
}
#footer-link > a:hover {
  color: #204f83;
  text-decoration: none;
  opacity: 0.8;
  background: #ffffff;
}
#footer-link > a:active {
  color: #ffffff;
}

footer > span > a {
  text-decoration: underline;
  margin: 10px;
  color: #ffffff;
}

#copyright {
  color: #ffffff;
  opacity: 0.85;
}

/* ボタン全体 */
#page_top {
  position: fixed;
  z-index: 30;
  width: 54px;
  height: 54px;
  right: 20px;
  bottom: 20px;
  background: var(--sky-flow);
  opacity: 0.85;
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(47, 128, 237, 0.35);
  transition: transform 0.25s ease, opacity 0.25s ease;
  }

  #page_top:hover {
  opacity: 1;
  transform: translateY(-4px);
  }

  /* Font Awesome */
  #page_top::before {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: '\f106';
  font-size: 26px;
  color: #ffffff;
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  }

/* PC用のスタイル */
@media screen and (min-width: 768px) {
#menu-sp,
#nav-sp {
  display: none;
}

/* ABOUT US */
#aboutus {
  margin: 80px auto;
}

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

/* 画面幅が767px以下のときにスタイルが適用されます */
@media screen and (max-width: 767px) {
  body {
    min-width: 0;
    margin: 0;
  }

  /* PC用ナビゲーション非表示 */
  #top {
    display: none;
  }

  /* ハンバーガーメニュー */
  #menu-sp {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
    width: 20%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  /* スマホ用ナビゲーションの表示切替 */
   /* 初期状態、レイアウトと非表示設定 */
   #nav-sp {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    display: none;
    z-index: 100;
    background: linear-gradient(160deg, #1f79c6 0%, #48b7f2 42%, #67d8c1 72%, #ffd98f 100%);
  }

   /* ×ボタン */
   #close {
    position: absolute;
    top: 20px;
    right: 20px;
  }

  /* ナビゲーション用ロゴ */
  #home-sp > img {
    width: 20%;
    margin: 80px 0 30px 20px;
  }

 /* ナビゲーションのリンクの装飾設定 */
 #nav-sp > a {
  display: block;
}

#nav-sp > a:link {
  color: #ffffff;
}
#nav-sp > a:visited {
  color: #ffffff;
}
#nav-sp > a:hover {
  color: #ffffff;
  text-decoration: underline;
}
#nav-sp > a:active {
  color: #ffffff;
}
#nav-sp > .menu {
  text-decoration: none;
  display: block;
  margin: 12px 24px;
  padding: 12px 16px;
  height: auto;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.18);
  background-image: url("../img/arrow.png");
  background-repeat: no-repeat;
  background-position: right 16px center;
  transition: background-color 0.2s ease;
}
#nav-sp > .menu:hover {
  background-color: rgba(255, 255, 255, 0.24);
}

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

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

  p {
      font-size: 16px;
  }
  .index-h2 {
    margin-top: 0;
  }

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

  #parent {
    display: flex;
    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;
  }

  .contents {
    border: none;
    background: var(--color-card);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-md);
    width: 23%;
    flex-grow: 1;
    padding: 10px 6px;
    margin: 10px 0px;
    text-align: center;
  }

  .contents > h2 {
    font-size: 16px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 8px;
  }

  .contents > h2::before {
    content: "";
    width: 0;
    height: 0;
    margin-right: 0;
  }

  .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;
  text-align: left;
}

 #footer-link {
   flex-direction: column;
   align-items: stretch;
   gap: 0;
   margin-bottom: 42px;
   justify-content: flex-start;
 }
 #footer-link > a {
   display: block;
   width: auto;
   margin: 0 20px 18px 0;
   padding: 7px 32px 7px 0;
   text-decoration: none;
   background-image: url("../img/arrow.png");
   background-repeat: no-repeat;
   background-position: right top;
 }
#copyright {
  font-size: 12px;
  display: block;
  margin-top: 30px;
  color: #ffffff;
}
}

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