/* common.css - 完全外部CSS版（max-width: 1900px） */

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

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  font-family: "Noto Sans JP", sans-serif;
  background: #ffffff;
  color: #333;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* ========== コンテナ（重要！1900pxに変更） ========== */
.container {
  max-width: 1900px !important;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== ヘッダー（重要！） ========== */
.top-bar {
  background: #fff;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 100;
}

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

.logo a {
  font-size: 24px;
  font-weight: 900;
  color: #008b5d;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo img {
  height: 40px;
  width: auto;
}

.placeholder-logo {
  background: #008b5d;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 18px;
  text-decoration: none;
}

.nav {
  position: relative;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 700;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 4px;
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: #008b5d;
  background: rgba(0, 139, 93, 0.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.hamburger:hover {
  background: rgba(0, 139, 93, 0.1);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: #333;
  transition: all 0.3s ease;
  border-radius: 2px;
}

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

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

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

/* ========== 共通要素 ========== */

/* ヒーローセクション - 全ページ共通 */
.hero-section {
  background: #edecf1;
  padding: 40px 0;
  margin-bottom: 40px;
}

.hero-inner {
  margin: 0 auto;
  padding: 0 32px;
  text-align: left;
  max-width: 1920px;
}

.title-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
}

.green-bar {
  display: inline-block;
  width: 4px;
  height: 80px;
  background: #008b5d;
  margin-right: 16px;
  flex-shrink: 0;
}

.title-wrap h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: #000;
  margin: 0;
}

.title-wrap .jp {
  font-size: 20px;
  color: #008b5d;
  display: inline;
  margin-left: 16px;
}

/* フッター */
.footer {
  text-align: center;
  margin-top: auto;
  background: #f8f9fa;
  padding: 32px 0;
  border-top: 1px solid #e9ecef;
}

.footer ul {
  display: flex;
  list-style: none;
  justify-content: center;
  gap: 32px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer li {
  cursor: pointer;
  transition: color 0.3s ease;
}

.footer li:hover {
  color: #008b5d;
}

.footer a {
  text-decoration: none;
  color: #666;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #008b5d;
}

.footer p {
  color: #666;
  font-size: 14px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .top-bar {
    padding: 16px 20px;
    position: relative;
  }

  .nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    gap: 8px;
  }

  .nav ul.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  /* ヒーローセクション - レスポンシブ */
  .hero-inner {
    padding: 0 20px;
  }

  .title-wrap h1 {
    font-size: 36px;
  }

  .green-bar {
    height: 60px;
  }
}

@media (max-width: 480px) {
  /* ヒーローセクション - モバイル */
  .hero-section {
    padding: 32px 0;
    margin-bottom: 60px;
  }

  .title-wrap h1 {
    font-size: 28px;
  }

  .green-bar {
    height: 50px;
    margin-right: 12px;
  }

  .top-bar {
    padding: 12px 16px;
  }

  .nav ul {
    padding: 12px;
    right: -16px;
  }

  .footer ul {
    flex-direction: column;
    gap: 16px;
  }
}

/* サイト全体でfooter重複解決 */
body footer:not(.footer) {
  display: none !important;
}

/* 新デザインfooterを確実に表示 */
body .footer {
  display: block !important;
  visibility: visible !important;
}
