/* 
* メインスタイルシート
* 福岡電子紡績 VRコンテンツ・映像制作サービス
*/

/* ===== リセットとベース設定 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

ul, ol {
  list-style: none;
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ===== ヘッダー ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  backdrop-filter: blur(10px);
}

.logo-title {
  display: flex;
  align-items: center;
}

.logo {
  height: 50px;
  margin-right: 15px;
}

.logo-title h1 {
  font-size: 1.5rem;
  color: #333;
  font-weight: 700;
}

/* ナビゲーション */
nav ul {
  display: flex;
  align-items: center;
}

nav li {
  margin-left: 25px;
}

.nav-link {
  position: relative;
  font-weight: 500;
  padding: 5px 0;
  color: #333;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #333;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* 言語切り替えボタン */
.language-buttons {
  display: flex;
  align-items: center;
}

.language-buttons button {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  padding: 5px;
  color: #333;
}

.language-buttons button:hover {
  color: #000;
}

/* ハンバーガーメニュー */
.menu-btn {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: relative;
  z-index: 1001;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #333;
  position: absolute;
  transition: all 0.3s ease;
}

.menu-btn span:nth-child(1) {
  top: 0;
}

.menu-btn span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.menu-btn span:nth-child(3) {
  bottom: 0;
}

/* モバイルナビゲーション */
.mobile-nav {
  display: none; /* 初期状態では非表示 */
}

/* ===== メインビジュアル ===== */
.hero-section {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000; /* フォールバック用に残す */
  color: #fff;
  margin-top: 80px;
  overflow: hidden;
  background-image: url('Resources/main-background.png'); /* この行を追加 */
  background-size: cover; /* この行を追加 */
  background-position: center; /* この行を追加 */
}
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('path/to/your/background.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.2;
}

.hero-content h1 span {
  display: block;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  line-height: 1.8;
}

/* ===== ページヘッダー ===== */
.page-header {
  height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  color: #fff;
  margin-top: 80px;
}

.page-header-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  z-index: 1;
}

.page-header-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 700;
}

/* ===== セクション共通 ===== */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  line-height: 1.4;
}

/* ===== サービスセクション ===== */
.services-section {
  background-color: #fff;
}

.service-block {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 100px;
}

.service-block:last-child {
  margin-bottom: 0;
}

.service-block.reverse {
  flex-direction: row-reverse;
}

.service-content {
  flex: 0 0 50%;
}

.service-content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.service-content p {
  margin-bottom: 30px;
  line-height: 1.8;
}

.service-image {
  flex: 0 0 45%;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  transition: transform 0.5s ease;
}

.service-image:hover img {
  transform: scale(1.05);
}

/* ===== ボタンスタイル ===== */
.btn-dark {
  display: inline-block;
  background-color: #000;
  color: #fff;
  padding: 12px 30px;
  border-radius: 0;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.btn-dark:hover {
  background-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ===== お問い合わせセクション ===== */
.contact-section {
  background-color: #f8f8f8;
  text-align: center;
}

.contact-button-container {
  margin-top: 40px;
}

/* ===== 会社情報セクション ===== */
.company-info-section {
  background-color: #fff;
}

.company-info {
  max-width: 800px;
  margin: 0 auto;
}

.info-list {
  margin-bottom: 40px;
}

.info-item {
  display: flex;
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}

.info-item dt {
  flex: 0 0 200px;
  font-weight: 700;
}

.info-item dd {
  flex: 1;
}

/* ===== チームセクション ===== */
.team-section {
  background-color: #f8f8f8;
}

.team-members {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
}

.team-member {
  flex: 0 0 calc(50% - 25px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.member-photo {
  width: 200px;
  height: 200px;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 20px;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.member-info p {
  line-height: 1.8;
}

/* ===== 地図セクション ===== */
.map-section {
  padding: 0;
}

.google-map {
  height: 450px;
  width: 100%;
}

.google-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== お問い合わせフォームセクション ===== */
.contact-form-section {
  background-color: #fff;
}

.form-introduction {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

.google-form-container {
  max-width: 800px;
  margin: 0 auto;
  height: 800px;
}

.google-form {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-info-section {
  background-color: #f8f8f8;
}

.contact-info {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.info-group {
  margin-bottom: 30px;
}

.info-group h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

/* ===== フッター ===== */
footer {
  background-color: #1a1a1a;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ===== レスポンシブ対応 ===== */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .service-block {
    flex-direction: column;
    gap: 30px;
  }
  
  .service-block.reverse {
    flex-direction: column;
  }
  
  .service-content, .service-image {
    flex: 0 0 100%;
  }
}

@media (max-width: 768px) {
  /* ヘッダーとナビゲーション */
  header {
    padding: 15px;
  }
  
  .menu-btn {
    display: block;
  }
  
  /* モバイルナビゲーション */
  .mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: none; /* クリックするまで非表示 */
  }
  
  .mobile-nav.active {
    display: block; /* クリック時に表示 */
  }
  
  .mobile-nav ul {
    list-style: none;
    padding: 20px;
  }
  
  .mobile-nav li {
    margin-bottom: 15px;
  }
  
  .mobile-nav a {
    display: block;
    padding: 10px;
    color: #333;
    font-weight: bold;
    text-decoration: none;
  }
  
  .mobile-nav a:hover {
    background-color: #f5f5f5;
  }
  
  /* ハンバーガーボタンのアクティブ状態 */
  .menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    padding-top: 80px;
    transition: right 0.3s ease;
    z-index: 1000;
  }
  
  nav.active {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
  
  nav li {
    margin: 0 0 20px 0;
    width: 100%;
  }
  
  .nav-link {
    display: block;
    padding: 10px 20px;
  }
  
  /* ヒーローセクション */
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  /* 会社情報 */
  .info-item {
    flex-direction: column;
  }
  
  .info-item dt {
    margin-bottom: 10px;
  }
  
  /* チームメンバー */
  .team-member {
    flex: 0 0 100%;
  }
}

/* PCでは常に非表示に */
@media (min-width: 769px) {
  .mobile-nav {
    display: none !important;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
}