/*
Theme Name: Sprong windflowers
*/

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box;
 }

body {
  font-family: Arial, sans-serif;
}

.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}
  
  /* background: rgba(255, 255, 255, 0.1); */

.logo {
  margin-right: auto;
}

.nav {
  display: flex;
  /* gap: 20px; */
  margin-left: auto;
  display: block;
}

.nav ul {
  display: flex; 
  flex-direction: row; 
  gap: 20px;
  list-style: none;
}

/* .nav ul li {
  margin-left: 20px;
} */

.nav li a {
  text-decoration: none;
  color: #fff; /* 背景が暗い画像なら白、白なら #333 に */
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 4px 0;
}

.hero {
  height: 100vh;
  background: #f0f0f0;
  background-image: url('images/photo01.jpg'); 
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.hero h1 { 
  font-size: 2.3rem; 
  /* font-family: 'Playfair Display', serif; */
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  color: #fff; 
  margin-bottom: 10px; 
  position: relative;
  z-index: 2;
}

.hero h2 { 
  font-size: 2.2rem; 
  letter-spacing: 0.8px;
  font-family: 'Noto Serif JP', serif;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  color: #fff;
  margin-top: 40px; 
  position: relative;
  z-index: 2;
}

.hero p {
  font-size: 1.2rem;
  /* font-family: 'Playfair Display', serif; */
   text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  color: #fff;
  position: relative;
  z-index: 2;
}

/* ---section--- */
.gallery-section{
    margin-top: 200px;
}

.grid-container {
  display: grid;
  /* 列の設定：最小300px、最大は均等（1fr）。入る分だけ自動で並べる */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  /* カード同士の隙間 */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.card img {
  width: 100%;      /* 親の枠（.card）の幅に合わせる */
  /* height: 200px; */
  height: auto;     /* 縦横比を保つ */
  display: block;   /* 画像の下に謎の隙間ができるのを防ぐ */
  object-fit: cover;
}

.card {
  /* border: 1px solid #ddd; */
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px); /* 少し浮き上がる演出 */
}

.card-content {
  padding: 15px;
}






@media (max-width: 768px) {
  .header {
    padding: 20px;

  }
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 20px;
  }

  .nav.active {
    display: flex;
  }

  .nav ul {
    flex-direction: column; 
    align-items: center;
  }

  .nav ul li {
    margin: 20px 0;
  }

  .nav li a {
    color: red; 
    /* font-size: 1.2rem; */
  }

  .hamburger {
    display: flex;
  }
}