*{
    padding: 0;
    margin: 0;
}
body {
    font-family: 'BIZ UDPゴシック', sans-serif;
  }
header{
    min-height: 80px;  
    background: linear-gradient(to bottom,
    #e76f51 0%,
    #f4a261 60%,
    rgba(244, 162, 97, 0) 100%); 
    padding:20px ;
    text-align: center;
}
 

  h1{
    font-family: 'M PLUS IP','BIZ UDPゴシック', sans-serif;
     font-size: 1.8em;
     color: #471d12;
      margin-bottom: 15px;
}

header nav ul{
    display: flex;
    flex-wrap: nowrap;
    justify-content:space-around ;
    list-style: none;
    padding:5px;
}
header nav ul li a{
    color: rgb(65, 43, 12);
    background-color:   #fff5e6;
    
    text-decoration: none;
    font-size: 18px;
    padding: 10px 15px;
    border-radius: 12px;
    display: inline-block;
    transition: background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
header nav ul li a:hover {
    background-color: #e76f51;
}
.icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 0px; /* テキストとの間に少し余白 */
  }
  @media screen and (max-width: 600px) {
    header nav ul {
      flex-wrap: wrap; /* 狭いときだけ折り返す */
      justify-content: space-around;
      gap:10px;
    }
  
    header nav ul li a {
      min-width: 100px; /* 折り返すときも読みやすく */
      text-align: center;
    }
  }
  p.notice {
  text-align: center;
  color: #666; /* 薄いグレーなどお好みで */
  font-size: 0.9em; /* 小さめの文字 */
  margin-top: 10px;
  font-family: 'M PLUS IP','BIZ UDPゴシック', sans-serif;
  padding:10px;
}
.card-gallery-title {
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #8e5b2e;  /* オレンジ系などお好みで */
}
.card-gallery {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
  border: 2px solid #d98b39; /* 緑がかった枠 */
  border-radius: 20px;
  background: #ffff  ; /* 薄い緑で優しい感じ */
  position: relative;
  margin-bottom: 40px;  /* ←ここでフッターまでの隙間を作る */
}
}

/* フレームに葉っぱや花っぽい飾りを追加（例） */
.frame::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 40px;
  height: 40px;
  background-image: url('images/leaf.png'); /* 葉っぱの画像 */
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.5;
}
.frame::after {
  content: "";
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 50px;
  height: 50px;
  background-image: url('images/flower.png'); /* 花の画像 */
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.5;
}

.cards {
  display: flex;
  flex-wrap: wrap;       /* 追加：横幅オーバー時に折り返す */
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
}

.card {
  width: 22%;            /* PC表示時は4〜5枚横並びくらい */
  max-width: 120px;      /* 最大幅制限 */
  height: auto;
  aspect-ratio: 2/3;     /* 縦横比を固定 */
  object-fit: cover;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.3s ease;
  box-shadow: none;
}
.card:hover {
  transform: scale(1.05);
}

.detail-area {
  position: absolute;   /* 上に重ねる */
  top: 0;               /* ページ上端 */
  left: 50%;            /* 横中央 */
  transform: translateX(-50%);  /* 横中央に寄せる */
  z-index: 999;         /* カード一覧より上に */
  background-color: rgba(255,255,255,0.95); /* 見やすくする */
  padding: 20px;        /* 内側余白 */
  border-radius: 10px;
  box-shadow: none;
  display: none; /* 初期非表示 */
  flex-direction: column; /* スマホ用に縦表示 */
  align-items: center;
  gap: 20px;
  border-top: 2px solid #a2c4a8;
  padding-top: 15px;
  width: 80% !important;      /* 親幅を画面いっぱいに */
 }
.detail-area.active {
  display: flex;
}
#detail-image {
  width: 95%;
  max-width: 600px;
  height: auto;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: none;
}
/* ここに追加 */
@media screen and (max-width: 600px) {
  #detail-image {
    width: 80%;       /* スマホで画面幅いっぱいに表示 */
    max-width: none;   /* 最大幅制限を解除 */
  }
}
#detail-text {
  max-width: 90%;
  font-size: 1.1em;
  color: #333;
  line-height: 1.4;
  text-align: center;
}
/* PC表示時に横並びにするメディアクエリ */
@media(min-width: 768px) {
  .detail-area {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  #detail-text {
    max-width: 400px;
  }
}

footer .copyright{
    font-size: 20px;
    text-align:center;
    background-color: #FFAD58;
    color: #471d12;
    padding: 20px;
    display: block; 
    visibility: visible;   
}