/* --- 基本設定 --- */
body {
  font-family: sans-serif;
  margin: 0;
  background-color: #fdfaf2;
  padding-top: 90px;
  color: #333;
}

/* --- ヘッダー --- */
header {
  background: #333;
  color: white;
  padding: 10px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
}

header h1 {
  font-family: serif;
  letter-spacing: 3px;
  font-size: 1.4rem;
  margin: 0;
}

.logo span {
  display: block;
  font-size: 0.7rem;
  color: #ffcc00;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 999;

}

nav a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
  position: relative;
}

nav a:hover { color: #ffcc00; }

/* --- 共通コンポーネント --- */
.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  filter: brightness(1.05) saturate(1.05);
}

.price {
  color: #bc6c25;
  font-weight: bold;
  font-size: 1.1rem;
}

section h2, aside h2 {
  border-left: 5px solid #6b795c;
  padding-left: 15px;
  margin-bottom: 25px;
}

/* --- 各セクション --- */
.hero {
  height: 50vh;
  background: linear-gradient(rgba(0,0,0,0.3),rgba(0,0,0,0.3)), url(images/hero.webp) center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  margin: 20px;
  color: white;
}

.hero h2 {
  font-size: 2rem;
  border: none;
  border-bottom: 2px solid #fff;
}

aside {
  background: #f3e9d9;
  padding: 40px 20px;
  border-radius: 15px;
  margin: 20px;
}

/* --- スマホメニュー(ハンバーガー) --- */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 10px;
  position: relative;
}

/* 三本線そのもののデザイン */
.hamburger span {
  display: block;
  width: 25px;   /* 線の長さ */
  height: 2px;   /* 線の太さ */
  background: white; /* 線の色 */
  margin: 6px 0; /* 線同士の間隔 */
  transition: 0.3s; /* 動くスピード */
}

/* メニューが開いている時の背景オーバーレイ（後ほどJSで制御） */
body.menu-open::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* 背景を50%暗く */
  z-index: 999;
  animation: fadeIn 0.3s;
}

/* メニューが開いた時（activeクラス）の線の動き */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0; /* 真ん中の線を消す */
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-close {
  background: none;
  border: none;
  font-size: 24px;
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
  z-index: 1000;
  display: none;
}

nav {
  position: relative;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- その他 --- */
#toTop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: none;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: #bc6c25;
  color: white;
  cursor: pointer;
  z-index: 100;
}

footer {
  background: #4a3933;
  color: #fdfaf2;
  text-align: center;
  padding: 20px;
}

/* --- 全体のレイアウト調整 --- */
.container {
    max-width: 1000px; /* ← これでコンテンツが広がりすぎないようにする */
    margin: 0 auto;    /* ← 中央寄せ */
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* --- お知らせセクションのブラッシュアップ --- */
#news {
    background: #fff;
    padding: 30px 40px; /* 上下を少し詰めました */
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list li {
    padding: 10px; /* 余白をさらにスッキリ */
    border-bottom: 1px dashed #d1c7bc;
    display: flex;
    align-items: center; /* 日付とテキストの高さを中央に揃える */
    transition: background 0.3s;
}

/* pタグの上下余白をゼロにし、行間を調整 */
.news-list p {
    margin: 0;
    line-height: 1.3;
    flex: 1;
    font-size: 0.95rem;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list li:hover {
    background-color: #faf7f2;
}

.news-list span {
    display: inline-block;
    background: #6b705c;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 15px;
    min-width: 65px;
    text-align: center;
    font-weight: bold;
}

/* --- メディアクエリ --- */
@media (max-width: 768px) {
  .hamburger { display: block; }

  nav ul {
    display: flex; /* 最初からflexにしておく */
    position: fixed;
    top: 0;
    right: -100%; /* 最初は画面の右外に隠しておく */
    width: 280px;  /* 横幅を少し抑えるとかっこいい */
    height: 100vh;
    background: #333;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* スッと動くアニメーション */
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
  }

  /* activeクラスがついたら画面内に入ってくる */
  nav ul.active {
    right: 0;
  }

  nav ul li a {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
  }

  .nav-close {
    display: block;
  }
}