
* {
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

header, footer {
  background: #2d4c3f;
  color: white;
  padding: 1rem;
  text-align: center;
}


/* ナビバー全体 */
.navbar {
  background-color: #e5e5e5;
  padding: 0.5rem 1rem;
  position: relative;
}

/* ハンバーガーはPCでは非表示、スマホで表示 */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* ナビリンクの初期状態はスマホで非表示 */
.nav-links {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li {
  margin: 0 1rem;
}

.nav-links a {
  text-decoration: none;
  color: #2d4c3f;
  font-weight: bold;
}


.logo {
  font-family: 'Georgia', serif;
  font-size: 1.2rem;
  font-weight: bold;
  color: #f0f0f0;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.hero {
  background: url('hero-image.jpg') no-repeat center center/cover;
  height: 300px;
  color: green;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  text-align: center;
  padding: 1rem;
}

.container {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
  background: #fff;
}

.card {
  border: 1px solid #ccc;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  background: #fff;
}

.cta {
  background: #f5f5f5;
  text-align: center;
  padding: 2rem 1rem;
}

footer small {
  font-size: 0.8rem;
}

.photo-hero {
  background: url("/image/bg_tsukisapp2024.jpg") no-repeat center center / cover;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.photo-hero .hero-text {
  font-size: 2rem;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.4); /* 文字が見えにくい時のため */
  border-radius: 8px;
}


/* おすすめゴルフ場 
.course-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.course-card {
  flex: 1 1 calc(33.333% - 1rem);
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.course-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.course-card h3 {
  margin: 0.5rem 0 0;
  font-size: 1.1rem;
}

.course-card p {
  padding: 0 1rem 0;
  font-size: 0.9rem;
  color: #555;
}
*/


/* おすすめゴルフ場/モデルプラン エリア */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.plan-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.plan-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.plan-card h3 {
  margin: 0.5rem 1rem 0.3rem;
  font-size: 1.1rem;
  color: #2d4c3f;
}

.plan-card p {
  margin: 0 1rem 1rem;
  font-size: 0.95rem;
  color: #555;
}

/* hoverアニメーション用クラス（jQueryで制御） */
.plan-card.hovered {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}


/* もっと見る ボタンデザイン */
.btn-more {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #2d4c3f;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.btn-more:hover {
  background-color: #3c6b5a;
}

/* お問い合わせフォーム */
.contact-section {
  background: #f5f5f5;
  padding: 2rem 1rem;
  text-align: center;
}

.contact-section h2 {
  margin-bottom: 1.5rem;
  color: #2d4c3f;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  font-family: sans-serif;
  box-sizing: border-box;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  background-color: #2d4c3f;
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #3f6551;
}

/* お問い合わせフォーム 未入力や形式不正の項目に赤枠を表示 */

.input-error {
  border: 2px solid red;
  background-color: #fff0f0;
}

/* お問い合わせフォーム メッセージモーダル表示 */

#modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
}

#modal-box {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  text-align: center;
}

#modal-box button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: none;
  background: #2d4c3f;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

/* プロフィール エリア */

.profile {
  background: #f8f8f8;
  padding: 3rem 1rem;
}

.profile h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #2d4c3f;
}

.profile-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.profile-box img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
}

.profile-text {
  flex: 1;
  padding: 0 1.5rem;
  min-width: 240px;
}

.profile-text p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #333;
}

.sns-links {
  margin-top: 1rem;
}

.sns-links a {
  margin-right: 1rem;
  display: inline-block;
}

.sns-links img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.sns-links img:hover {
  transform: scale(1.2);
}


/* スクロール時に要素をふわっと表示 */

.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.scroll-fade.show {
  opacity: 1;
  transform: translateY(0);
}



/* 「上へ戻る」ボタン（スクロールトップボタン） */

#scrollTopBtn {
  position: fixed;
  bottom: 40px;
  right: 30px;
  display: none;
  z-index: 999;
  background-color: #2d4c3f;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
}

#scrollTopBtn:hover {
  background-color: #3e6d59;
}


/* レスポンシブ対応 */

@media (max-width: 768px) {
    .menu-toggle {
      display: block;
      margin: 0 auto;
    }
    
    .nav-links {
      display: none;
      flex-direction: column;
      align-items: center;
      background-color: #f5f5f5;
      width: 100%;
    }

    .nav-links.active {
      display: flex;
    }

    .nav-links li {
      margin: 0.5rem 0;
    }
  }
  
  .hero {
    height: 200px;
    font-size: 1.5rem;
    padding: 1rem;
  }

  .container {
    padding: 1rem;
  }
  /* おすすめゴルフ場〜小さい画面では縦並びに */
  .course-card {
    flex: 1 1 100%;
  }
}

/* プロフィール エリア */
@media screen and (max-width: 600px) {
  .profile-box {
    flex-direction: column;
    text-align: center;
  }
  .profile-text {
    padding: 0;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 150px;
    font-size: 1.2rem;
  }
}
