/*
Theme Name: TomoGolf LP Theme
Theme URI: https://tomo-golf.com
*/

/* ==========================================
   リセット・基本設定
========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', 'Yu Gothic', 'YuGothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================
   ①ヘッダー
========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: #1a2233;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 1000;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  height: 50px;
  display: flex;
  align-items: center;
}

.header-logo a {
  display: block;
  height: 100%;
}

.header-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header-nav {
  display: flex;
  gap: 30px;
}

.header-nav a {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.header-nav a:hover {
  opacity: 0.7;
}

.header-buttons {
  display: flex;
  gap: 15px;
}

.header-btn {
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: bold;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.header-btn:hover {
  opacity: 0.8;
}

.header-btn.trial {
  background: #ef670a;
  color: #fff;
}

.header-btn.line {
  background: #00b900;
  color: #fff;
}

.header-btn.pack {
  background: #ffd700;
  color: #333;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: #fff;
  transition: 0.3s;
}

/* ヘッダー分の余白 */
.main-visual {
  margin-top: 80px;
}

/* ==========================================
   共通セクション設定
========================================== */
.section {
  padding: 40px 0;
  text-align: center;
}

.section img {
  margin: 0 auto;
}

.pc-only {
    display: block !important;
}

.sp-only {
    display: none !important;
}

@media (max-width: 768px) {
    .pc-only {
        display: none !important;
    }
    
    .sp-only {
        display: block !important;
    }
}

/* ==========================================
   セクション見出し
========================================== */
.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

/* 画像見出し */
.section-heading img {
  max-width: 500px;
  margin: 0 auto;
}

/* テキスト見出し */
.section-heading h2 {
  color: #1a2233;
  font-size: 24px;
  font-weight: bold;
  line-height: 1.6;
}

/* ==========================================
   ②メインビジュアル
========================================== */
.main-visual {
  padding: 0;
}

.main-visual img {
  width: 100%;
}

/* ==========================================
   ③キャンペーン
========================================== */
.campaign {
  background-image: url('img/campaign_bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.campaign img {
  max-width: 500px;
}

.campaign a {
  display: block;
  max-width: 500px;
  margin: 0 auto;
  transition: opacity 0.3s;
}

.campaign a:hover {
  opacity: 0.8;
}

.campaign a img {
  max-width: 100%;
}

/* ==========================================
   ④実績
========================================== */
.jisseki {
  background: linear-gradient(135deg, #0e0c1d 0%, #313847 100%);
}

.jisseki img {
  max-width: 900px;
}

/* ==========================================
   ⑤お客様の声
========================================== */
.voice {
  background: #efefef;
}

.voice img {
  max-width: 900px;
}

/* ==========================================
   ⑥お悩み
========================================== */
.onayami {
  background-image: url('img/onayami_bg_pc.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.onayami img {
  max-width: 600px;
}

/* ==========================================
   ⑦選ばれる理由
========================================== */
.reason img {
  max-width: 900px;
}

/* ==========================================
   ⑨設備
========================================== */
.facility img {
  max-width: 900px;
}

/* ==========================================
   ⑩シミュレーター
========================================== */
.simulator {
  background: linear-gradient(135deg, #0e0c1d 0%, #313847 100%);
}

.simulator img {
  max-width: 400px;
}

/* シミュレーター後のキャンペーン画像 */
.simulator-campaign {
  margin-top: 40px;
}

.simulator-campaign img {
  max-width: 500px;
}

.simulator-campaign a {
  display: block;
  max-width: 500px;
  margin: 0 auto;
  transition: opacity 0.3s;
}

.simulator-campaign a:hover {
  opacity: 0.8;
}

.simulator-campaign a img {
  max-width: 100%;
}

/* ==========================================
   ⑪料金
========================================== */
#price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* 料金セクションの画像コンテナ */
.price-images {
    display: flex;
    flex-direction: column;
    align-items: center;
	gap: 40px;
}

/* 個別画像サイズ（PC） */
#price .price-images img.price1 {
    max-width: 900px !important;
}

#price .price-images .price2 img {
    max-width: 700px !important;
}

#price .price-images img.price3 {
    max-width: 900px !important;
}

/* SP用画像サイズ指定 */
#price .sp-only img {
    max-width: 330px;
}

/* ==========================================
   ⑫ご利用の流れ
========================================== */
.flow img {
  max-width: 800px;
}

/* ==========================================
   ⑬よくある質問（アコーディオン）
========================================== */
.qa {
  padding: 40px 20px;
  background: #efefef;
}

.qa-list {
  max-width: 900px;
  margin: 0 auto;
}

.qa-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
}

.qa-question {
  padding: 25px 30px;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  background: #f8f9fa;
  transition: background 0.3s;
  text-align: left;
}

.qa-question:hover {
  background: #e9ecef;
}

.qa-question::before {
  content: 'Q';
  color: #42ad32;
  font-size: 20px;
  flex-shrink: 0;
  font-weight: bold;
}

.qa-question::after {
  content: '+';
  position: absolute;
  right: 30px;
  font-size: 30px;
  transition: transform 0.3s;
  font-weight: normal;
  color: #666;
}

.qa-item.active .qa-question::after {
  transform: rotate(45deg);
}

.qa-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.qa-item.active .qa-answer {
  max-height: 800px;
}

.qa-answer-content {
  padding: 30px;
  padding-left: 50px;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  background: #fff;
  text-align: left;
}

/* ==========================================
   ⑭施設概要
========================================== */
.about-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.about-left {
  flex: 1;
  max-width: 600px;
}

.about-map {
  width: 600px;
  height: 450px;
  border: none;
  border-radius: 10px;
}

.about-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-right img {
  width: 100%;
  max-width: 100%;
}

.about-info {
  padding: 20px 0;
  line-height: 1.8;
  color: #333;
  text-align: left;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-info p {
  margin-bottom: 10px;
  font-size: 16px;
}

.about-info p:last-child {
  margin-bottom: 0;
}

/* 電話番号を大きく */
.about-info .about-tel {
  font-size: 32px;
  font-weight: bold;
  margin: 15px 0;
  color: #1a2233;
}

.about-info .about-tel span {
  font-size: 16px;
  font-weight: normal;
  margin-right: 10px;
}

/* ==========================================
   ⑮フッター
========================================== */
.footer {
  background: #1a2233;
  color: #fff;
  padding: 60px 20px 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo img {
  height: 80px;
  width: auto;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #999;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: background 0.3s;
}

.footer-social a:hover {
  background: rgba(255,255,255,0.2);
}

.footer-social img {
  width: 18px;
  height: 18px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}

.footer-contact-label {
  font-size: 14px;
  color: #999;
  margin-bottom: 5px;
}

.footer-tel {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.footer-line-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #00b900;
  color: #fff;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: bold;
  transition: opacity 0.3s;
}

.footer-line-btn:hover {
  opacity: 0.8;
}

.footer-line-btn img {
  width: 20px;
  height: 20px;
}

.footer-copy {
  text-align: center;
  padding-top: 30px;
  font-size: 10px;
  color: #999;
}

/* ==========================================
   スマホ用固定メニュー
========================================== */
/* 下部固定メニュー（スマホのみ） */
.mobile-fixed-bottom {
  display: none;
}

/* ==========================================
   レスポンシブ（タブレット）
========================================== */
@media (max-width: 1024px) {
  .header-nav {
    gap: 20px;
  }
  
  .header-nav a {
    font-size: 14px;
  }
  
  .header-buttons {
    gap: 10px;
  }
  
  .header-btn {
    padding: 8px 15px;
    font-size: 13px;
  }
}

/* ==========================================
   レスポンシブ（スマホ）
========================================== */
@media (max-width: 768px) {
  /* ヘッダー */
  .header {
    height: 70px;
  }
  
  .header-container {
    padding: 0 15px;
    justify-content: space-between;
  }
  
  /* ロゴを左に */
  .header-logo {
    height: 40px;
    order: 1;
    display: flex;
    align-items: center;
  }
  
  .header-logo a {
    display: block;
    height: 100%;
  }
  
  .header-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
  }
  
  /* ハンバーガーメニューを右に */
  .hamburger {
    display: flex;
    order: 2;
  }
  
  .header-right {
    display: none;
  }
  
  /* モバイルメニュー */
  .header-right.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #1a2233;
    padding: 30px 20px;
    gap: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  
  .header-right.active .header-nav {
    flex-direction: column;
    gap: 15px;
  }
  
  .header-right.active .header-buttons {
    display: none;
  }
  
  .main-visual {
    margin-top: 70px;
  }
  
  /* セクション余白調整 */
  .section {
    padding: 30px 15px;
  }
  
  /* セクション見出し */
  .section-heading {
    margin-bottom: 30px;
  }
  
  .section-heading h2 {
    font-size: 16px;
  }
  
  /* スマホ画像の最大幅 */
  .section-heading img {
    max-width: 360px;
  }
  
  /* PC画像非表示 */
  .pc-only {
    display: none;
  }
  
  /* スマホ画像表示 */
  .sp-only {
    display: block;
  }
  
  /* スマホ画像の最大幅 */
  .jisseki img,
  .voice img,
  .onayami img,
  .facility img,
  .simulator img,
  .flow img {
    max-width: 345px;
  }
	
  .reason img {
	max-width: 100%;
  }
  
  /* キャンペーン画像 */
  .campaign img {
    max-width: 330px;
  }
  
  .campaign a {
    max-width: 330px;
  }
  
  /* シミュレーター後のキャンペーン */
  .simulator-campaign {
    margin-top: 30px;
  }
  
  .simulator-campaign img {
    max-width: 330px;
  }
  
  .simulator-campaign a {
    max-width: 330px;
  }
	
  /* シミュレーターh2の余白調整 */
  .simulator-h2 {
    padding: 60px 15px;
  }
  
  /* 料金 */
  .price-images {
    gap: 30px;
  }
  
  /* 料金画像（スマホはすべて330px） */
  .price-images .sp-only {
    max-width: 330px;
  }
  
  .price-images a.sp-only img {
    max-width: 100%;
  }
  
  /* 背景画像のスクロール固定を解除（モバイルパフォーマンス対策） */
  .campaign,
  .onayami {
    background-attachment: scroll;
  }
  
  /* Q&A */
  .qa {
    padding: 30px 15px;
  }
  
  .qa-question {
    padding: 20px 15px;
    font-size: 14px;
  }
  
  .qa-question::before {
    font-size: 18px;
  }
  
  .qa-question::after {
    right: 15px;
    font-size: 26px;
  }
  
  .qa-answer-content {
    padding: 20px 20px 20px 20px;
    font-size: 12px;
  }
  
  /* 施設概要 */
  .about-container {
    flex-direction: column;
    gap: 30px;
  }
  
  .about-left,
  .about-right {
    width: 100%;
    max-width: 330px;
    margin: 0 auto;
  }
  
  .about-map {
    width: 100%;
    max-width: 330px;
    height: 300px;
  }
  
  .about-info {
    padding: 5px 0;
    font-size: 12px;
    height: auto;
  }
  
  .about-info p {
    font-size: 12px;
  }
  
  /* スマホでも電話番号を大きく */
  .about-info .about-tel {
    font-size: 20px;
    margin: 5px 0;
  }
  
  .about-info .about-tel span {
    font-size: 12px;
  }
  
  /* フッター */
  .footer {
    padding: 40px 20px 30px;
  }
  
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding-bottom: 30px;
  }
  
  .footer-left {
    align-items: center;
    text-align: center;
  }
  
  .footer-logo img {
    height: 60px;
  }
  
  .footer-right {
    align-items: center;
  }
  
  .footer-tel {
    font-size: 24px;
  }
  
  .footer-copy {
    font-size: 11px;
  }
  
  /* 下部固定メニュー */
  .mobile-fixed-bottom {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1a2233;
    padding: 10px;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
  }
  
  .mobile-bottom-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
  }
  
  .mobile-bottom-btn {
    flex: 1;
    padding: 10px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    transition: opacity 0.3s;
    display: block;
  }
  
  .mobile-bottom-btn:active {
    opacity: 0.7;
  }
  
  .mobile-bottom-btn.trial {
    background: #ef670a;
    color: #fff;
  }
  
  .mobile-bottom-btn.pack {
    background: #ffd700;
    color: #333;
  }
  
  .mobile-bottom-btn.line {
    background: #00b900;
    color: #fff;
    width: 100%;
  }
  
  /* 下部メニューの高さ分、コンテンツに余白を追加 */
  body {
    padding-bottom: 130px;
  }
  
  /* フッターの調整 */
  .footer {
    padding-bottom: 150px;
  }
}
