@charset "utf-8";

html {
 font-size: 62.5%; /* -> 10px */ 
}

body {
  margin: 0;
  padding: 0;
}

.sawarabi-mincho-regular {
  font-family: "Sawarabi Mincho", serif;
  font-weight: 400;
  font-style: normal;
}

.container {
  max-width: 1140px;
  margin: auto;
}

/* --- header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent; /* 初期状態は透明 */
  padding: 24px 20px;
  transition: padding 0.35s ease,
              background-color 0.35s ease,
              box-shadow 0.35s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header.scrolled {
  padding: 10px 20px;
  background-color: rgba(78, 65, 59, 0.9); /* スクロール後の背景色 */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  text-decoration: none;
  color: #fff;
  transition: font-size 0.35s ease;
}

.logo img {
  height: 100px;
}

.site-header.scrolled .logo {
  font-size: 18px;
}

#main {
  background-color: #e2ded3;
}

/* --- cover --- */
#top {
  position: relative;
  background: url(../img/top_image.png) no-repeat 0 0 / cover;
  width: 100%;
  /* padding-top: 56%; */
  height: 100vh;  /* 対応していないブラウザ向けのフォールバック */
  height: 100dvh;
}

#top-messsage {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  place-items: center;
}

#top-messsage .maintitle, .subtitle {
  font-family: "Sawarabi Mincho", serif;
  color: #fff;
  text-shadow: 0px 0px 10px rgba(66, 66, 66, 1);
}

#top-messsage .maintitle {
  font-size: 57px;
  font-weight: 700;
  margin: 0;
  padding-bottom: 10px;
}

#top-messsage .subtitle {
  font-size: 30px;
}

/* --- goaisatsu --- */
.section {
  margin: 0% 6% 0 6%;
  padding: 50px 10px 30px 10px;
}

#goaisatsu {
  color: #333;
  font-family: "Sawarabi Mincho";
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin: 3em 0;
}

#goaisatsu img {
  margin-top: 1rem;
}

/* --- gallery(PhotoSwipe) --- */
.gallery {
  position: relative;
  background: url(../img/background.png) no-repeat 0 0 / cover;
  /* background-position: 0px -50px; */
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
}

#my-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 26px; /* 画像同士のすき間 */
  justify-content: center;
  position: static;
  height: auto;
  padding: 100px 0;
}

/* サムネイル画像自体のサイズ固定 */
.gallery-thumb {
  width: 300px;
  height: 200px;
  object-fit: cover; /* 枠に合わせて綺麗にトリミング */
  border-radius: 8px; /* 角丸 */
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ホバー時に少し浮き出る効果 */
  .gallery-thumb:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

/* --- footer --- */
.footer {
  background-color: #4e413b;
  padding: 70px 0 60px;
}

.footer-box {
  display: flex;
  justify-content: center;
}

.footer-box div {
  font-size: 15px;
  color: #868990;
  width: 48%;
}

.site-footer {
  font-size: 15px;
  color: #868990;
  background-color: #212121;
  padding: 20px 0;
}

.site-footer .site-info {
  padding-left: 25px;
}

/* --- page-top --- */
.page-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background-color: #9b0813;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 999;

  /* 初期状態：下に隠れていて透明 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.35s ease,
              transform 0.35s ease,
              visibility 0.35s ease;
}

.page-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-top:hover {
  background-color: rgba(78, 65, 59, 1);
}

@media only screen and (max-width: 1024px) {
  .site-header {
    position: static !important;
    background-color: rgba(78, 65, 59, 0.9);
    width: inherit;
  }
  .site-header .header-inner { display: block; text-align: center; }
  .site-header .header-inner img { vertical-align: middle; }
  #top { height: inherit; padding-top: 56%; }
  #top-messsage .maintitle { font-size: 42px; }
  .footer-box { /* width: 930px; */ margin: auto; }
  .footer-box div { width: 36%; }
  /* .site-footer .site-info { width: 930px; } */
}

@media only screen and (max-width: 768px) {
  .site-header { padding: 16px; }
  .site-header.scrolled { padding: 8px 16px; }
  .logo { font-size: 20px; }
  .site-header.scrolled .logo { font-size: 16px; }
  #top-messsage .maintitle {
    font-size: 32px;
    line-height: 1.1;
    padding-bottom: 10px;
  }
  #top-messsage .subtitle {
    font-size: 16px;
    line-height: 24px;
    padding: 15px 0;
  }
  #goaisatsu { font-size: 1.6rem; margin: 2em 0; }
  #my-gallery { padding: 40px 0; }
  .footer-box { flex-direction: column; width: 100%; }
  .footer-box div { padding: 5px 25px; width: 85%; }
  .footer { padding: 40px 0 30px; }
  .site-footer .site-info { padding-left: 25px; width: inherit; }
  .page-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
}
