body {
  margin: 0;
  font-family: Arial, sans-serif;
}

/* ナビゲーションバー */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  padding: 0.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #ddd;
  height: 80px;
  /* PC: ナビバー高さ */
}

.logo img {
  height: 80px;
  /* PC: ロゴ高さ */
  width: auto;
  /* アスペクト比を維持 */
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  color: black;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
  font-family: "Noto Sans JP", "Helvetica", "Arial", sans-serif; /* 日本語・英語で統一 */
  line-height: 1; /* 高さを揃える */
}

.nav-links a:hover {
  color: #0077cc;
}

/* ハンバーガー */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: black;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .logo img {
    height: 50px;
    /* モバイル時は少し小さく */
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: white;
    position: absolute;
    top: 60px;
    /* ナビバー高さに合わせて調整 */
    left: 0;
    border-top: 1px solid #ddd;
  }

  .nav-links li {
    margin: 0;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .slide.soccer {
    object-fit: cover;
    /* 縦横比維持して画面いっぱい */
    object-position: center 100px;
    /* 上から100pxを基準に表示 */
  }
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  /* 画面全体の高さを確保 */
  overflow: hidden;
  margin-bottom: 80px;
  /* 下にスペースを空けることで次の要素が被らない */
}

.slide-container {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

/* 表示中のスライドとキャプション */
.slide-container.active {
  opacity: 1;
  z-index: 1;
}

/* スライド画像はコンテナ内で拡大表示 */
.slide-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide.nariaiji{
  object-position: center -430px;
}
.slide.soccer {
  object-position: center -150px;
}
@media (max-width: 1180px) {
  .slide.nariaiji{
    object-position: center -320px;
  }
}

@media (max-width: 1180px) {
  .slide.soccer {
    object-position: center -80px;
  }
}


/* 📌 480px以下（小さいスマホ） → 縦に1列 */
@media (max-width: 480px) {
  .hero-slider,
  .slides,
  .slide-container {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    /* position: absolute; ← .slide-containerのみでOK */
  }
  .slide-container {
    position: absolute !important;
    width: 100% !important;
    height: 1500px !important;
    min-height: 1500px !important;
    max-height: 1500px !important;
    opacity: 0;
    transition: opacity 1s ease;
  }
  .slide-container.active {
    opacity: 1;
    z-index: 1;
  }
  .slide-container img {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 1500px !important;
    max-height: 1500px !important;
    object-fit: contain !important;
    object-position: top center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }
  
}

/* キャプションは親のactiveに連動 */
.slide-container .caption {
  position: absolute;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  z-index: 2;
  opacity: 0;
  transition: opacity 1s ease;
  font-family: 'Merriweather', serif;
}

/* 表示中だけキャプションも表示 */
.slide-container.active .caption {
  opacity: 1;
}

.nariaiji-caption {
  position: absolute;
  top: 85%;          /* 画像の縦中央 */
  left: 20%;         /* 画像の横中央 */
  transform: translate(-50%, -50%); /* 完全中央寄せ */
  text-align: left; /* 枠内文字中央 */
}

@media (max-width: 768px) {
  .nariaiji-caption {
    position: absolute;
    left: 10%;      
    top: 55%;    
    transform: none;
    font-size: 1.6rem !important;
    line-height: 1.2;
    padding: 0.5rem 1rem;
    z-index: 2;
    width: 80%;
    max-width: 300px;
    color: #fff;
    text-align: left;
    box-sizing: border-box;
  }
}
@media (max-width: 480px) {
  .nariaiji-caption {
    position: absolute;       /* 親を基準に配置 */
    top: 25%;                 
    left: 50%;                /* 親画像の横中央 */
    transform: translate(-50%, -50%); /* 完全中央寄せ */
    font-size: 1.5rem !important;        /* PCより少し小さめ */
    line-height: 1.2;
    padding: 0.5rem 1rem;
    z-index: 2;               /* 画像の上に確実に表示 */
    width: 80%;              /* ← ここを追加: 幅を広げて2行に収める */
    max-width: 300px;        /* ← 任意: 小さい画面でも枠が広すぎないように制限 */
  }

  /* 念のため親を relative に */
  .slide-container {
    position: relative;
  }
}
.soccer-caption {
  position: absolute;
  top: 8vh;
  left: 45%;              /* 画面左から45% */
  transform: none;         /* translate解除 */
  display: flex;
  flex-direction: column;  /* 縦方向に2行 */
  align-items: flex-start; /* 左揃え */
  line-height: 1.2;        /* 行間 */
}
.soccer-caption .line {
  display: block;
  text-align: left;
}

@media (max-width: 480px) {
  .soccer-caption {
    writing-mode: vertical-rl;
    text-align: start;
    left: auto;
    right: 35%;  /* 位置は調整可 */
    top: 0.4vh;
    transform: none;
    white-space: normal; /* ← 重要: 縦書きでも改行を有効化 */
    font-size: 1.4rem !important;
  }
  .soccer-caption br {
    content: "";
    display: block; /* ← これで <br> を縦書きでも改行として働かせる */
  }
}

.koyo-caption {
  top: 20%;
  /* 上から20%の位置に配置（必要に応じ調整） */
  right: 5%;
  /* 右端から少し内側に配置 */
  transform: none;
  /* 中央寄せは不要 */
  writing-mode: vertical-rl;
  /* 縦書き（右から左へ縦方向） */
  text-align: start;
  /* 縦書き用にテキスト位置を整える */
  line-height: 1.8;
  /* 縦書き時に文字間隔を広めに */
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
  /* ほんのり影を追加 */
}
@media (max-width: 480px) {
  .koyo-caption {
    position: absolute;
    top: 10%;        /* 画像の上から10%（他より少し上） */
    right: 5%;       /* 画像の右端から5% */
    transform: none;
    text-align: start;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    font-size: 1.5rem !important;
    z-index: 2;
    max-width: 40vw;
    background: none;
    padding: 0;
  }
}
.flower-caption {
  bottom: 20%;
  /* 下からの余白 */
  right: 3%;
  /* 右からの余白 */
  text-align: right;

  color: rgba(255, 255, 255, 0.9);
  /* やや柔らかい白 */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  /* 背景に馴染ませる影 */
}
@media (max-width: 480px) {
  .flower-caption {
    position: absolute;
    top: 40%;         
    right: 3%;       
    text-align: right;
    font-size: 1.2rem !important;
    z-index: 2;
    background: rgba(128,128,128,0.3); /* 半透明の黒背景で自然に */
    border-radius: 0.5em;        /* 角を少し丸く */
    padding: 0.3em 0.8em;
    box-sizing: border-box;
    max-height: 3rem;
  }
}
/* ボタン（左右） */
.hero-slider .prev,
.hero-slider .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.6);
  border: none;
  padding: 0.5rem 1rem;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
}

.hero-slider .prev {
  left: 20px;
}

.hero-slider .next {
  right: 20px;
}

.hero-slider .prev:hover,
.hero-slider .next:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.vision {
  font-size: 50px;
  font-weight: bold;
  text-align: center;
}

.sub-vision {
  font-size: 20px;
  text-align: center;
  padding-bottom: 20px;
}

.photo-gallery {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px 20px;
}

.photo-item {
  flex: 1 1 calc(25% - 20px);
  /* 横に4つ並ぶ */
  text-align: center;
}

.photo-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  /* 📌 横:縦 = 16:9 で固定 */
  object-fit: cover;
  /* はみ出した部分は切り取り */
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.photo-item p {
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: bold;
  color: #333;
}

/* 📌 1180px以下 → 横2列×2段 */
@media (max-width: 1180px) {
  .photo-item {
    flex: 1 1 calc(50% - 20px);
  }
}

/* 📌 480px以下（小さいスマホ） → 縦に1列 */
@media (max-width: 480px) {
  .photo-item {
    flex: 1 1 100%;
  }
}

.detail-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 35px;
  background-color: #8b6e5c;
  /* アッシュブラウン */
  color: #fff;
  /* 白文字 */
  border: 2px solid transparent;
  /* 枠線は透明 */
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.detail-btn:hover {
  background-color: #000;
  /* ホバー時は黒背景 */
  color: #fff;
  /* 白文字 */
}

/* フッター全体 */
.site-footer {
  background-color: #f9f9f9;
  /* 薄いグレー背景（落ち着いた印象） */
  padding: 40px 20px;
  text-align: center;
  /* 中央揃え */
  border-top: 1px solid #ddd;
  /* 上に区切り線 */
}

/* ロゴ */
.footer-logo {
  max-width: 180px;
  /* ロゴの最大幅 */
  height: auto;
  margin-bottom: 20px;
  text-align: center;
  /* 中央揃え */
}

.contact-btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1rem;
  color: #fff;
  border: 2px solid #cfa24d;
  /* 黄土色の枠線 */
  background-color: #cfa24d;
  /* 黄土色背景 */
  text-decoration: none;
  text-align: center;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: bold;
  letter-spacing: 1px;
}

.contact-btn:hover {
  background-color: #a67c33;
  /* 濃い黄土色 */
  border-color: #a67c33;
}