@charset "UTF-8";

/* -------------------------
   ヒーロー
-------------------------- */
.hero {
    background: url(../img/hachiojigolf_top.webp) no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}
.hero h2 {
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}
.btn.sp {
    background-color: #E3620C;
}

/* -------------------------
   グリッド
-------------------------- */
.grid-1 {
    margin: 0 auto;
}
.youtube {
	width: 100%;
	aspect-ratio: 16 / 9;
}

.youtube iframe {
	width: 100%;
	height: 100%;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: #f9f9f9;
    padding: 20px;
    text-align: justify;
    display: flex;
    flex-direction: column;
}
.card img {
    max-width: 100%;
}
.card h3 {
    text-align: center;
}


/* -------------------------
　入会キャンペーン 
-------------------------- */

.campaign-section {
  background: url(../img/campaign_bg.webp) no-repeat center center/cover;
  color: white;
  text-align: center;
}

.campaign-content {
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.6);
  padding: 30px;
}

.campaign-title {
  margin-bottom: 20px;
}

.campaign-description {
  margin-bottom: 30px;
}
.campaign-buttons {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}
.campaign-buttons .btn {
  display: inline-block;
  padding: 12px 30px;
  margin: 10px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn-line {
  background-color: #06C756;
  color: white!important;
}
#line-contact .btn-line {
    max-width: 500px;
    width: 30%;
    text-align: center;
    margin: 2em auto 0;
}

.campaign-buttons .btn-phone {
  background-color: #E20773;
  color: white;
}

.campaign-buttons .btn-line:hover, .campaign-buttons .btn-phone:hover {
  border: 1px solid #ddd;
}

/* -------------------------
　料金プラン
-------------------------- */

.plan-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  overflow: hidden;
  justify-content: space-between;
}
.plan-card img {
  width: 100%;
  height: 200px; /* 固定高さ（必要に応じて調整） */
  object-fit: cover; /* はみ出す部分は切り抜き */
  border-radius: 0; /* 角丸なし */
  display: block;
}

.plan-card-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #333;
    margin-top: 20px;
}

.plan-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.plan-info-table th {
  text-align: left;
  padding: 6px 10px;
  background: #f9f9f9;
  font-weight: bold;
  width: 120px;
}

.plan-info-table td {
  padding: 6px 10px;
}

.plan-detail-btn {
    text-align: center;
}

.plan-detail-btn a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #e20773; /* ボタンの色 */
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.plan-detail-btn a:hover {
  background-color: #c10661; /* ホバー時は少し濃く */
}
.plan-detail-btn:focus {
  outline: 3px solid rgba(194, 6, 97, 0.25);
  outline-offset: 2px;
}

/* -------------------------
　八王子ゴルフの特徴 
-------------------------- */

/* feature-itemをFlexboxにする */
.feature-item {
  display: flex;
  align-items: stretch; /* 高さを揃える */
  margin-bottom: 40px;
  background: #fff;
}

/* 逆順に表示したい場合 */
.feature-item.reverse {
  flex-direction: row-reverse;
}

/* 画像エリア */
.feature-image {
  flex: 1; /* テキストと同じ幅を確保 */
}

.feature-image img {
  width: 100%;       /* 親要素いっぱいに広げる */
  height: 100%;      /* 高さも親要素いっぱいに */
  object-fit: cover; /* アスペクト比を維持して領域いっぱいに表示 */
  display: block;    /* 下の余白を消す */
}

/* テキストエリア */
.feature-text {
  flex: 1;               /* 画像と同等の幅 */
  display: flex;
align-items: center;
}
.text-inner {
  width: 100%;
  box-sizing: border-box;
}


/* -------------------------
　コーチ
-------------------------- */
#coach {
    margin-bottom: 80px;
}

#plan {
    padding-bottom: 80px;
}
.top-section-explanation {
    text-align: center;
    margin-bottom: 50px;
}
.bg-green .top-section-explanation {
    color: #fff;
}

/* もっと見るボタン */
.more-btn {
    text-align: center;
}
.more-plans-button {
    display: inline-block;
    background-color: #B3C100;  /* ボタン色 */
    color: #ffffff!important;              /* 文字色 */
    text-decoration: none;
    padding: 15px 30px;          /* ボタンの大きさ */
    font-weight: bold;
    text-align: center;
    border: none;                /* 枠線なし */
    cursor: pointer;
}

.more-plans-button:hover {
    background-color: #99aa00;   /* hover時に少し暗く */
}
.carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.carousel::-webkit-scrollbar {
  display: none; /* スクロールバー非表示（必要なら） */
}

.carousel .card {
  flex: 0 0 80%; /* 1枚ずつ見えるサイズ */
  scroll-snap-align: start;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 16px;
}


/* -------------------------
　お客様の声 
-------------------------- */

#voice {
    margin-bottom: 80px;
}

/* -------------------------
　投稿
-------------------------- */
@media screen and (min-width: 769px) {
	.news-card {
			width: calc(33.333% - 14px);
		}
}

@media screen and (max-width: 768px) {
	.grid-news {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
	}
}

/* -------------------------
　LINE問い合わせ
-------------------------- */

#line-contact {
    background-color: #144d2e;
    padding-bottom: 80px;
}
#line-contact .img-box {
    padding: 0;
}
.img-box img {
    height: 100%;
}
#insta {
	padding-bottom: 80px;
}

@media screen and (min-width: 750px) {
    
/* -------------------------
   ヒーロー
-------------------------- */
    
.hero {
  min-height: 40rem;
    }
    
.hero h2 {
  font-size: 3rem;
} 
.campaign-title {
  font-size: 2.5rem;
}
.campaign-buttons {
    width: 50%;
}    

/* -------------------------
   特徴
-------------------------- */
    
.text-inner {
  padding: 40px;
}
#feature {
    padding: 80px 20px;
}
.feature-item {
  gap: 20px; /* 画像とテキストの間隔 */
}
  .feature-text {
    padding: 15px 0;
  }    
    
}


@media (max-width: 768px) {

 /* -------------------------
　LINE問い合わせ 
-------------------------- */    
    
    #line-contact .grid-2 {
        display: flex;
        flex-direction: column-reverse;
    }
    #line-contact .grid-2 .section-title {
        margin-bottom: 0;
    }
    
/* -------------------------
　八王子ゴルフの特徴 
-------------------------- */ 
    
/* 小さい画面では縦並びにするレスポンシブ対応 */    
  .feature-item {
    flex-direction: column;
  }

  .feature-item.reverse {
    flex-direction: column;
  }

  .feature-image, .feature-text {
    flex: none;
    width: 100%;
  }

.text-inner {
  padding: 15px;
}    
 #feature {
    padding: 80px 0;
}   
    
 /* -------------------------
　レッスンコーチ
-------------------------- */  
#coach .grid-3, #voice .grid-3 {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 15px;
        scroll-snap-type: x mandatory;
    }
    
#coach .grid-3::-webkit-scrollbar, #voice .grid-3::-webkit-scrollbar {
  display: none; /* スクロールバー非表示（必要なら） */
}
    
.card {
    background: #f9f9f9;
    padding: 20px;
    text-align: justify;
    display: flex;
    flex-direction: column;
    flex: 0 0 80%;
    scroll-snap-align: start;
}
    
 /* -------------------------
　共通パーツ 
-------------------------- */    
    
.grid-2 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
    
 /* -------------------------
　MV
-------------------------- */    
    
.hero {
    height: 300px;
}    
.btn-flex {
    display: flex;
    flex-direction: column;
    gap: 1rem; 
}  
    
}
