/* ========== 共通スタイル ========== */

/* CSS変数 */
:root {
  --base: #F7F9FC;
  --accent: #FF7F50;
  --secondary: #FFA726;
  --warm: #FF9800;
  --text: #333;
  --text-light: #666;
  --border: #E0E0E0;
  --white: #FFFFFF;
}

/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--base);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========== ヘッダー ========== */
header {
  background: rgba(247, 249, 252, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--accent);
}

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

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* モバイルナビゲーション */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(247, 249, 252, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding-top: 80px;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  padding: 2rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.mobile-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  padding: 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  display: block;
}

.mobile-nav a:hover {
  color: white;
  background: var(--accent);
}

/* メニュー表示時のスクロール制御 */
body.menu-open {
  overflow: hidden;
}

/* モバイル表示設定 */
@media (max-width: 768px) {
  /* デスクトップナビを非表示 */
  nav {
    display: none;
  }
  
  /* ハンバーガーメニューを表示 */
  .hamburger {
    display: flex;
  }
  
  /* ヘッダー高さ調整 */
  header {
    padding: 0.75rem 0;
  }
  
  main {
    margin-top: 60px;
  }
}

/* ========== シンプルギャラリー ========== */
.simple-gallery {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.simple-gallery .gallery-image {
  position: relative;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.simple-gallery .gallery-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.simple-gallery .gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.simple-gallery .gallery-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #6c757d;
  font-weight: 500;
  border: 2px dashed #dee2e6;
}

@media (max-width: 768px) {
  .simple-gallery {
    gap: 1.5rem;
  }
  
  .simple-gallery .gallery-image {
    height: 250px;
  }
}

/* ========== メインコンテンツ ========== */
main {
  margin-top: 80px;
  padding: 2rem 0;
}

.page-header {
  text-align: center;
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.section {
  padding: 3rem 0;
  background: white;
  margin-bottom: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.section-title {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 2rem;
  text-align: center;
}

.section-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

/* ========== ボタン ========== */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid var(--accent);
  margin: 0.5rem;
}

.btn:hover {
  background: transparent;
  color: var(--accent);
  text-decoration: none;
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: transparent;
  color: var(--accent);
}

.btn-large {
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
}

.btn-white {
  background: white;
  color: var(--accent);
  border-color: white;
}

/* ========== フッター ========== */
footer {
  background: #2c3e50;
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--accent);
}

.footer-section a {
  color: #bdc3c7;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: background-color 0.3s;
}

.social-links a:hover {
  background: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid #555;
  padding-top: 1rem;
  text-align: center;
  color: #ccc;
}

/* ========== レスポンシブ ========== */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  /* デスクトップナビゲーションを非表示 */
  nav {
    display: none;
  }

  /* ハンバーガーメニューを表示 */
  .hamburger {
    display: flex;
  }

  .page-title {
    font-size: 2rem;
  }

  .social-links {
    flex-direction: column;
    align-items: center;
  }

  /* ヘッダーの高さを調整 */
  header {
    padding: 0.8rem 0;
  }

  /* ヘッダーのレイアウト：左ロゴ、右メニューボタン */
  header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  header .logo {
    order: 1;
  }

  header .hamburger {
    order: 3;
  }

  main {
    margin-top: 60px;
  }
}
