@charset "UTF-8";
/* リセットCSS */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: bottom;
  background: transparent;
  list-style: none;
}

html, body{ 
    overflow-x: hidden; /* 横スクロールを防ぐ */
}

body{
    background-color: azure;
    margin: 0;
}

html {
    scroll-behavior: auto;
}

:root {
  --site-max-width: 1200px; /* サイト全体の最大幅 */
  --site-side-gap: 20px;    /* サイド余白 */
  --mobile-side-gap: 16px;  /* スマホ左右の余白 */
} 

.hamburger {
  width: 48px;
  height: 48px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  background: transparent;
  border: none;
  padding: 0;
}

.hamburger .bar {
  width: 28px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  display: block;
  position: absolute;
  transition: transform 0.2s, opacity 0.2s;
}

.hamburger .bar-top { transform: translateY(-8px); }
.hamburger .bar-middle { transform: translateY(0); }
.hamburger .bar-bottom { transform: translateY(8px); }

/* open 状態のスタイルは .open クラスで切替 */
.hamburger.open .bar-middle { opacity: 0; }
.hamburger.open .bar-top { transform: translateY(0) rotate(45deg); }
.hamburger.open .bar-bottom { transform: translateY(0) rotate(-45deg); }

.menu-open { overflow: hidden; }

/* .navbar をモバイルでオフキャンバスにするスタイルは下部のメディアクエリで定義 */

/* 画面リーダー用の非表示テキスト */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

header{
    background-color: azure;
    padding: 20px var(--site-side-gap);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--site-max-width);
    margin: 0 auto;
}

header .site-title { margin: 0; }


header h1 {
    margin: 0px;
    font-size: 34px;
    font-family: 'ヒラギノ明朝 Pro W3', 'Hiragino Mincho Pro', serif;
}

.navbar {
  display: flex;
  justify-content: flex-start; /* 上寄せ */
  position: fixed;
  top: 0;
  right: 0; /* 常に右端に固定 */
  left: auto;
  width: 35%;
  height: 100%;
  background: #ffffff;
  box-shadow: -2px 0 12px rgba(0,0,0,0.15);
  flex-direction: column;
  padding-top: 6px;
  padding-right: 12px;
  padding-bottom: 12px;
  padding-left: 12px;
  gap: 8px;
  align-items: flex-start;
  transform: translateX(100%); /* 右へオフスクリーン */
  transition: transform 0.28s ease;
  z-index: 6000;
  overflow-y: auto;
}

/* overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.36);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 1300; /* オーバーレイを nav の下だがコンテンツより上に */
}
.nav-overlay.open { opacity: 1; visibility: visible; }

/* 全画面共通：開いている状態 */
.navbar.open {
  transform: translateX(0);
  right: 0;
  left: auto;
}

.navbar a {
  text-decoration: none;
  color: #333;
  font-size: 30px;
  font-weight: bold;
  padding: 50px 30px;
  border-radius: 0; /* 角丸を無効 */
  transition: color 0.2s, text-decoration 0.2s;
  display: block;
  background: transparent; /* 背景ボタンを取り除く */
  font-family: 'ヒラギノ明朝 Pro W3', 'Hiragino Mincho Pro', serif;
}
  
.navbar a:hover {
  color: #000;
  text-decoration: underline;
}

/* ナビ内の閉じるボタン */
.nav-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 65px;
  line-height: 1;
  cursor: pointer;
  color: #333;
  padding: 6px;
}
.nav-close:focus {
  outline: 2px solid rgba(0,0,0,0.2);
  border-radius: 4px;
}

h2{
    text-align: center;
    margin-top: 50px;
    margin-bottom: 10px;
    font-size: 24px;
    font-family: 'ヒラギノ明朝 Pro W3', 'Hiragino Mincho Pro', serif;
}

.photos-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 30px;
  max-width: var(--site-max-width);
  margin-left: auto;
  margin-right: auto;
} 

.map-container {
  max-width: var(--site-max-width);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

.content-row {
  display: flex;
  gap: 20px;
  max-width: var(--site-max-width);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

.weather-section, .map-section {
  flex: 1;
}

.weather-section {
  flex: 0 0 40%; /* 天気を40%幅に */
}

.map-section {
  flex: 0 0 58%; /* 地図を60%幅に */
}

.map-container iframe {
  width: 100%;
  height: 370px;
  border: 0;
  border-radius: 8px;
}

.weather-container {
  max-width: var(--site-max-width);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
  padding: 20px;
  background-color: rgba(177, 255, 239, 0.8);
  border-radius: 8px;
  height: 330px;
}

.weather-container h3 {
  text-align: center;
  margin-top: 35px;
  margin-bottom: 20px;
  font-size: 24px;
  font-family: 'ヒラギノ明朝 Pro W3', 'Hiragino Mincho Pro', serif;
}

#weather-info {
  text-align: center;
  font-size: 30px;
  font-family: 'ヒラギノ明朝 Pro W3', 'Hiragino Mincho Pro', serif;
  margin-top: 20px;
}



.photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.2s;
}

.photo:hover {
  transform: scale(1.05);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 800px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 70px;
  font-weight: bold;
  cursor: pointer;
}

footer{
    background-color: azure;
    padding: 20px var(--site-side-gap);
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: var(--site-max-width);
    margin: 0 auto;
}


footer p{
    margin: 0;
    text-align: center;
    width: 100%;
}

/*タブレット用*/
@media all and (max-width: 1024px) {
  #wrap {
      width: 100%;
  }

  /* タブレットでも左右に余白を取り、天気と地図を縦並びにする */
  main {
      padding-left: var(--mobile-side-gap);
      padding-right: var(--mobile-side-gap);
  }

  .content-row {
    flex-direction: column;
    gap: 20px;
  }

  .weather-section, .map-section {
    flex: none;
    width: 100%;
  }

  .map-container iframe {
    height: 500px; /* タブレットではスマホよりやや高め */
  }
}

/*スマホ用*/
@media all and (max-width: 600px) {
  .main-menu ul {
      display: block;
  }

  .main-menu ul li {
      text-align: center;
  }

  main {
      display: block;
      flex-direction: unset;
      padding-left: var(--mobile-side-gap);
      padding-right: var(--mobile-side-gap);
  }

  .sub-menu ul li {
      text-align: center;
  }

  body {
    overflow-x: hidden;
    background-color: azure;
    height:auto;
    width: auto;
    background-size: cover;
    background-repeat: no-repeat;
  }

  /* スマホで天気と地図を縦並びにする */
  .content-row {
    flex-direction: column;
    gap: 16px;
  }

  .weather-section, .map-section {
    flex: none;
    width: 100%;
  }

  .map-container iframe {
    height: 400px; /* スマホでは高さを小さめに */
  }
}

/* モバイル＆小さめタブレット用：ハンバーガーメニューの表示 */
@media all and (max-width: 800px) {
  header{
    margin-left: 16px;
    margin-right: 16px;
  }

  .hamburger {
    display: flex;
    z-index: 1200;
  }

  /* オフキャンバスのナビ */
  .navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 30%;
    height: 100%;
    background: #ffffff;
    box-shadow: -2px 0 12px rgba(0,0,0,0.15);
    flex-direction: column;
    padding-top: 30spx; /* 中身を上部に寄せる */
    gap: 8px;
    align-items: flex-start; /* 左揃えで上部から表示 */
    padding-left: 12px;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 1400;
    overflow-y: auto;
  }


  .navbar ul {
    width: 100%;
    padding: 0;
    margin: 10px;
    margin-top: 80px; /* closeボタンの下に余白を作る */
    list-style: none;
  }

  .navbar li {
    width: 100%;
    margin-bottom: 12px;
  }

  .navbar a {
    display: block;
    width: 100%;
    padding: 14px 12px;
    font-size: 24px;
    color: #333;
  }

  /* タブレット以下でも閉じるボタンを表示（場所とサイズを調整） */
  .nav-close {
    display: block;
    font-size: 55px;
    top: 12px;
    right: 12px;
  }

  /* 背景のスクロールを防ぎたい場合は body にクラスを付ける等で制御する実装が必要 */
}

/* デスクトップ用：ナビの上寄せ（メニューが下すぎないように） */
@media all and (min-width: 801px) {
  .navbar {
    padding-top: 30px; /* 小さめにして上に寄せる */
  }
  .navbar ul {
    margin-top: 48px; /* closeボタンの下に余白を作る（デスクトップ） */
  }
  .nav-close {
    display: block; /* デスクトップでは閉じるボタンを表示 */
  }
}