/*
===========================================
  たいわゴルフクラブ - base.css
  基本スタイルシート
===========================================
*/

/* ===========================================
   リセット・基本設定
=========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'メイリオ', Meiryo, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* ===========================================
   ヘッダー
=========================================== */
header {
  background-color: #fff;
  border-bottom: 2px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* --- ヘッダー上部（ロゴ・電話番号・Instagram） --- */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 30px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ロゴ */
.logo {
  line-height: 1;
}

.logo a {
  display: block;
  line-height: 1;
}

.logo img {
  height: 30px;
  width: auto;
  display: block;
}

/* 右側のコンタクト情報（Instagram・電話番号） */
.header-contact {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Instagramアイコン */
.instagram-icon {
  width: 32px;
  height: 32px;
  color: #0B0765;
  cursor: pointer;
  transition: opacity 0.3s;
}

.instagram-icon:hover {
  opacity: 0.7;
}

/* 電話番号 */
.phone {
  font-family: "Source Serif 4", serif;
  font-weight: 700;
  color: #0B0765;
  line-height: 1;
}

.phone-label {
  font-size: 14px;
  margin-right: 2px;
  font-weight: 700;
}

.phone-number {
  font-size: 28px;
  letter-spacing: 0.02em;
  font-weight: 700;
}

/* --- ハンバーガーメニュー（スマホ用） --- */
.hamburger {
  display: none; /* PC時は非表示 */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background-color: #0B0765;
  border: none;
  cursor: pointer;
  padding: 10px 10px 8px 10px;
  position: fixed; /* スクロールしても固定 */
  right: 20px;
  top: 20px;
  color: #fff;
  font-weight: bold;
  font-size: 11px;
  letter-spacing: 0.5px;
  z-index: 1001;
}

/* ハンバーガーの3本線 */
.hamburger span {
  width: 24px;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s;
  display: block;
}

/* 「MENU」テキストを追加 */
.hamburger::after {
  content: 'MENU';
  display: block;
  margin-top: 2px;
}

/* メニュー開閉時のアニメーション */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===========================================
   ナビゲーション
=========================================== */
nav {
  background-color: #f5f5f5;
  border-top: 1px solid #e0e0e0;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  position: relative;
}

.nav-menu {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 0;
}

.nav-menu li {
  flex: 1;
  text-align: center;
  position: relative;
}

/* ナビゲーションリンク */
.nav-menu a {
  display: block;
  padding: 20px 30px;
  text-decoration: none;
  color: #0B0765;
  border-left: 1px solid #e0e0e0;
  transition: background-color 0.3s, color 0.3s;
  white-space: nowrap; /* 折り返さない */
  position: relative;
}

/* アクティブページの青いバー（下線） */
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #0B0765;
  transform: scaleX(0); /* 初期状態は非表示 */
  transition: transform 0.3s ease; /* 滑らかなアニメーション */
}

/* 現在のページ、またはホバー時にバーを表示 */
.nav-menu a.active::after,
.nav-menu a:hover::after {
  transform: scaleX(1);
}

/* 最後の項目に右ボーダー追加 */
.nav-menu li:last-child a {
  border-right: 1px solid #e0e0e0;
}

/* ホバー時の背景色変更 */
.nav-menu a:hover {
  background-color: #fff;
}

/* 英語部分（TOP, RESERVATION など） */
.menu-en {
  display: block;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 3px;
  white-space: nowrap;
  color: #0B0765;
}

/* 日本語部分（トップ、予約 など） */
.menu-ja {
  display: block;
  font-size: 12px;
  color: #0B0765;
}

/* ===========================================
   メインコンテンツ
=========================================== */
main {
  min-height: calc(100vh - 250px);
  padding: 0;
}

.content {
  max-width: 1200px;
  margin: 0 auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ===========================================
   フッター
=========================================== */
footer {
  background-color: #0B0765; /* 濃い青 */
  color: #fff;
  padding: 50px 0 0;
}

/* フッターコンテンツ（会社情報・リンクメニュー） */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 80px;
  padding: 0 20px 50px 20px;
}

/* --- 左側：会社情報 --- */
.footer-info {
  flex: 0 0 auto;
}

/* フッターロゴ */
.footer-logo {
  margin-bottom: 15px;
}

.footer-logo img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1); /* 白色に変換 */
}

/* 住所・電話番号 */
.footer-info p {
  margin: 5px 0;
  font-size: 14px;
  line-height: 1.6;
}

/* --- 右側：リンクメニュー --- */
.footer-links {
  display: flex;
  gap: 100px;
  flex: 1;
  justify-content: flex-end;
}

.footer-links-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-col li {
  margin-bottom: 12px;
}

.footer-links-col a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.3s;
}

.footer-links-col a:hover {
  opacity: 0.7;
}

/* --- コピーライト --- */
.footer-copyright {
  background-color: #f5f5f5;
  padding: 20px;
  text-align: right;
  font-size: 12px;
  color: #666;
  width: 100%;
}

.footer-copyright p {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===========================================
   レスポンシブ対応 - タブレット（1024px以下）
=========================================== */
@media screen and (max-width: 1024px) {
  /* ナビゲーションの余白調整 */
  .nav-menu a {
    padding: 15px 12px;
    white-space: nowrap;
  }
  
  /* フォントサイズ縮小 */
  .menu-en {
    font-size: 12px;
  }
  
  .menu-ja {
    font-size: 11px;
  }
}

/* ===========================================
   レスポンシブ対応 - スマホ（768px以下）
=========================================== */
@media screen and (max-width: 768px) {
  /* --- ヘッダー --- */
  .header-top {
    padding: 15px 20px;
    position: relative;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  /* ロゴを左上に固定配置 */
  .logo {
    position: absolute;
    left: 20px;
    top: 15px;
  }
  
  .logo img {
    height: 20px;
  }
  
  /* Instagram・電話番号を中央下に配置 */
  .header-contact {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 35px;
  }
  
  .phone-label {
    font-size: 12px;
  }
  
  .phone-number {
    font-size: 18px;
  }
  
  .instagram-icon {
    width: 24px;
    height: 24px;
  }
  
  /* ハンバーガーメニューを表示 */
  .hamburger {
    display: flex;
  }
  
  /* --- ナビゲーション --- */
  nav {
    border-top: none;
  }
  
  .nav-container {
    padding: 0;
  }
  
  /* 縦並びメニュー（初期状態は非表示） */
  .nav-menu {
    flex-direction: column;
    display: none;
  }
  
  /* メニュー開いた時に表示 */
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  /* スマホメニューのスタイル */
  .nav-menu a {
    padding: 20px 15px;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
  }
  
  .nav-menu li:last-child a {
    border-right: none;
  }
  
  /* 英語・日本語を横並びに */
  .menu-en {
    font-size: 14px;
    display: inline;
    margin-right: 10px;
  }
  
  .menu-ja {
    font-size: 12px;
    display: inline;
  }
  
  /* --- メインコンテンツ --- */
  main {
    padding: 0;
  }
  
  /* --- フッター --- */
  .footer-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 0;
    justify-content: center;
  }
  
  /* リンクメニューに区切り線 */
  .footer-links-col {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
  }
  
  .footer-links-col li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 0;
  }
  
  .footer-links-col a {
    display: block;
    padding: 15px 20px;
  }
  
  /* メニューを上、会社情報を下に配置 */
  .footer-info {
    order: 2;
  }
  
  .footer-links {
    order: 1;
  }
  
  /* コピーライトを中央揃え */
  .footer-copyright {
    text-align: center;
  }
}

/* ===== Instagram Feed Section ===== */
.instafeed {
  width: 100%;
  background: #f8f8f8; /* 全幅背景 */
  padding: 60px 0;
  text-align: center;
}

.insta-inner {
  max-width: 1400px;   /* 埋め込み部分だけ制限 */
  margin: 0 auto;
  padding: 0 20px 50px;
}

/* ===== タイトル部分（access-title系を踏襲） ===== */
.insta-en {
  margin: 0;
  font-size: clamp(26px, 2.8vw, 32px);
  font-weight: 500;
  letter-spacing: 0.08em;
  font-family: "Do Hyeon", sans-serif;
  color: #0B0765;
}

.insta-ja {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: #0B0765;
  line-height: 0;
  letter-spacing: 0.2em;
}

.insta-title {
  margin-bottom: 30px;
}

/* ===== iframe部分 ===== */
.instafeed .lightwidget-widget {
  display: block;
  width: 100%;
  border: none;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* ===== スマホ対応 ===== */
@media screen and (max-width: 768px) {
  .instafeed {
    padding: 40px 0;
  }
  .insta-inner {
    padding: 0 10px 20px;
  }
  .insta-en {
    font-size: 22px;
  }
  .insta-ja {
    font-size: 11px;
  }
  .instafeed .lightwidget-widget {
    border-radius: 0;
    box-shadow: none;
  }
}



