/* ===================================================================
   03_layout.css
   ヘッダー / グローバルナビ / モバイルナビ / フッター
   全ページで共有するヘッダー・フッターのレイアウトです
   =================================================================== */


/* --- ヘッダー -------------------------------------------------------- */

/* ===========================================================
   3. ヘッダー（一段レイアウト）
   =========================================================== */
header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* 一段に並べるフレックスコンテナ */
.header-top {
  display: flex;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  gap: 0;
}

/* ロゴ */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 24px;
}

.logo-icon {
  width: 80px;
  height: 52px;
  background: transparent;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.logo-text {
  color: var(--text);
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.logo-text span {
  font-size: 0.65rem;
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* support.html フッター用ロゴテキスト */
.logo-text-footer {
  color: var(--navy);
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}

/* ナビリンク（中央寄せ・残りスペースを使う） */
.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  flex: 1;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  color: var(--text);
  font-size: 0.85rem;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  position: relative;
  transition: color 0.2s;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ホバー下線 */
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-links li.active a {
  color: var(--navy);
  font-weight: 600;
}

.nav-links li.active a::after {
  transform: scaleX(1);
}

.nav-links li a:hover {
  color: var(--navy);
}

.nav-links li a:hover::after {
  transform: scaleX(1);
}

/* ドロップダウン */
.nav-links li .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: 2px solid var(--navy);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
  z-index: 200;
  list-style: none;
  padding: 6px 0;
}

.nav-links li:hover .dropdown {
  display: block;
}

.nav-links li .dropdown li a {
  padding: 10px 18px;
  font-size: 0.85rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  letter-spacing: 0.03em;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-links li .dropdown li a::after {
  display: none;
}

.nav-links li .dropdown li a:hover {
  background: var(--light-bg);
  color: var(--navy);
}

.nav-links li .dropdown li a .arr {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.nav-links li .dropdown li a:hover .arr {
  color: var(--navy);
}

.nav-links li.has-dropdown>a .caret {
  font-size: 0.65rem;
  margin-left: 4px;
}

/* ヘッダーリンク（右端） */
.header-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 16px;
}

.header-links a {
  color: var(--text-muted);
  font-size: 0.72rem;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 20px;
  transition: all 0.2s;
  white-space: nowrap;
}

.header-links a:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* --- モバイルナビ・ハンバーガーボタン -------------------------------------------- */

/* ===========================================================
  5. モバイルナビ・ハンバーガー
   =========================================================== */
.hamburger {
  display: none;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 8px 0 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: var(--text);
  padding: 12px 24px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.mobile-nav a:hover {
  background: var(--light-bg);
  color: var(--navy);
}

/* --- フッター -------------------------------------------------------- */

/* ===========================================================
  9. フッター
   =========================================================== */
footer {
  background: #f5f7fa;
  color: var(--text);
  padding: 48px 24px 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo-text {
  margin-bottom: 12px;
  display: block;
}

.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.footer-col h4 {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--navy);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  transition: color 0.2s;
  color: var(--text-muted);
}

.footer-bottom-links a:hover {
  color: var(--navy);
}


/* --- モバイルナビ アコーディオン（サービス子メニュー） -------------------- */
.mobile-nav-group {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  padding: 12px 24px;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}

.mobile-nav-toggle:hover {
  background: var(--light-bg);
  color: var(--navy);
}

.mobile-caret {
  font-size: 0.75rem;
  transition: transform 0.25s;
  display: inline-block;
}

.mobile-nav-children {
  display: none;
  flex-direction: column;
  background: var(--light-bg);
}

.mobile-nav-children.open {
  display: flex;
}

.mobile-nav-children a {
  padding: 10px 32px;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.mobile-nav-children a:hover {
  color: var(--navy);
  background: #eef0f4;
}

/* ハンバーガー × アニメーション */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

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

/* --- レスポンシブ（モバイル） -------------------------------------------- */

/* ===========================================================
  10. レスポンシブ対応（〜768px）
   =========================================================== */
@media (max-width: 1024px) {

  /* ハンバーガーボタンを表示 */
  .hamburger {
    display: flex;
  }

  /* デスクトップナビ・ヘッダーリンクを非表示 */
  .nav-links {
    display: none;
  }

  .header-links {
    display: none;
  }

  /* ヘッダー上部の高さ調整 */
  .header-top {
    height: 60px;
    padding: 0 16px;
  }

  /* ロゴサイズ調整 */
  .logo-icon {
    width: 80px;
    height: 44px;
  }

  .logo-text {
    font-size: 1rem;
  }

  /* フッター：会社名・住所・英語表記のみ表示 */
  .footer-grid {
    display: block;
  }

  .footer-col {
    display: none;
  }

  .footer-brand {
    text-align: center;
    margin-bottom: 0;
  }

  .footer-brand .logo-text {
    font-size: 1rem !important;
    margin-bottom: 8px;
  }

  .footer-brand p {
    font-size: 0.8rem;
    line-height: 1.9;
  }

 /* フッター下部もシンプルに */
  .footer-bottom {
    display: none;
    /* flex-direction: column;
    gap: 8px;
    text-align: center; */
  }

  .footer-bottom-links {
    display: none;
  }

  footer {
    padding: 28px 16px 20px;
  }
}