@charset "UTF-8";

/* --- 共通スタイル --- */
html {
  font-size: 62.5%;
}
@media screen and (min-width: 961px) {
  html {
    font-size: 93.75%;
  }
}
body {
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url("../img/wave.png");
  color: #121212;
  font-family: 'Noto Sans JP', sans-serif;
}
a {
  color: #121212;
  text-decoration: none;
}
img {
  max-width: 100%;
  vertical-align: bottom;
}
li {
  list-style: none;
}
.wrapper {
  max-width: 1200px;
  padding: 0 40px 80px;
  margin: 0 auto;
}
.container {
  margin-left: 0;
}
main {
  padding-top: 90px;
}
@media screen and (max-width: 960px) {
  main {
    padding-top: 72px;
  }
}

/* --- ヘッダー (共通) --- */
#header {
  width: 100%; height: 90px; padding: 0 30px; background-color: rgba(14, 178, 228, 0.8); display: flex; align-items: center; justify-content: space-between; position: fixed; top: 0; left: 0; z-index: 10; box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.site-title { width: 200px; margin: 0; }
.site-title img { height: 90px; width: 90px; object-fit: contain; }
#navi {
  width: 100%;
  height: auto;
  background: #fff;
  padding: 25px;
  position: fixed;
  top: -100vh;
  left: 0;
  bottom: auto;
  overflow-y: auto;
  transition: top 0.5s ease-in-out;
  z-index: 20;
}
.open #navi {
  top: 90px;
}
/* ▼▼▼ ナビメニューの行間を調整 ▼▼▼ */
#navi ul.nav-menu { margin-bottom: 30px; }
#navi ul li { padding: 8px 0; } /* 上下の余白を調整 */
#navi ul li a {
  font-size: 1.8rem;
  font-weight: bold;
  display: block;
  padding: 2px 0; /* 上下の余白を調整 */
}
/* ▲▲▲ ここまで ▲▲▲ */
.hamburger { width: 35px; height: 35px; cursor: pointer; position: relative; transition: 0.5s; z-index: 30; }
.hamburger span { width: 35px; height: 3px; background-color: #121212; border-radius: 4px; display: block; position: absolute; left: 0; transition: 0.5s; }
.hamburger span:nth-child(1) { top: 4px; }
.hamburger span:nth-child(2) { top: 14px; }
.hamburger span:nth-child(3) { bottom: 8px; }
.open .hamburger span { background-color: #fff; }
.open .hamburger span:nth-child(1) { transform: translateY(10px) rotate(-315deg); }
.open .hamburger span:nth-child(2) { opacity: 0; }
.open .hamburger span:nth-child(3) { transform: translateY(-10px) rotate(315deg); }
#mask { display: none; transition: 0.5s; }
.open #mask { width: 100%; height: 100%; background-color: #000; cursor: pointer; display: block; opacity: 0.8; position: fixed; top: 0; left: 0; z-index: 15; }

/* ▼▼▼ PC表示用ヘッダーナビゲーション（フォント統一スタイル） ▼▼▼ */
@media screen and (min-width: 961px) {
  #header {
    justify-content: space-between;
  }

  /* PCではハンバーガーメニューを非表示に */
  .hamburger,
  #mask {
    display: none;
  }

  /* PC用のナビゲーションメニューのスタイル */
  #navi {
    position: static;
    top: auto;
    background: none;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
    margin-left: auto; /* 右揃えにする */
  }

  #navi ul.nav-menu {
    display: flex;
    margin: 0;
  }
  
  #navi ul li {
    padding: 0 15px; /* 項目間の余白 */
  }
  
  #navi ul li a {
    font-size: 1rem;
    color: #121212;
    /* ▼▼▼ フォントと太さを統一 ▼▼▼ */
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700; /* 700はboldと同じ */
  }
  
  #navi ul.nav-sns {
    display: none; /* SNSリンクを非表示 */
  }
}
/* ▲▲▲ PC表示用スタイルの修正ここまで ▲▲▲ */

/* --- 写真一覧ページ専用スタイル --- */
.sec-title {
  font-family: 'M PLUS 1p', sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
  margin-bottom: 60px;
  text-align: center;
  padding-top: 60px;
  color: rgb(250, 102, 3);
}

.photo-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.photo-grid li {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.photo-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}


/* --- フッター (共通) --- */
#footer { background-color: rgba(14, 178, 228, 0.8); color: #fff; padding: 40px 20px; text-align: center; }
#footer .menu { display: flex; justify-content: center; flex-wrap: wrap; margin: 20px 0; }
#footer .menu li { border-right: solid 1px #fff; font-size: 1.4rem; padding: 0 15px; margin-bottom: 10px; }
#footer .menu li:last-child { border-right: none; }
#footer .sns { display: flex; justify-content: center; align-items: center; gap: 25px; margin: 30px 0; padding: 0; list-style: none; }
#footer .sns li img { height: 30px; width: auto; }
#footer .sns li a { display: inline-block; transition: opacity 0.3s; }
#footer .sns li a:hover { opacity: 0.7; }
#footer .copyright { margin-top: 30px; font-size: 1.4rem; }
#to-top { width: 50px; height: 50px; background-color: #121212; border: solid 1px #fff; border-radius: 50%; position: fixed; right: 25px; bottom: 25px; z-index: 50; cursor: pointer; transition: opacity 0.3s; display: flex; justify-content: center; align-items: center; }
#to-top:hover { opacity: 0.8; }
#to-top::after { content: ""; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 7px solid #fff; }


/* --- SP用スタイル --- */
@media screen and (max-width: 960px) {
  .wrapper {
    padding: 0 20px 60px;
  }
  .sec-title h1 { 
    font-size: 2.8rem; 
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  #header {
    height: 72px;
    padding: 0 15px;
  }
  .site-title {
    width: auto;
    margin: 0;
  }
  .site-title img {
    height: 60px;
    width: 60px;
  }
  .hamburger {
    position: relative;
    top: auto;
    right: auto;
  }
  .open #navi {
    top: 72px;
  }

  #footer .menu li { margin-bottom: 10px; }
}