/* ==========================================================
   ベーススタイル
   基本的なリセット、レイアウト、共通スタイル
========================================================== */

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

/* Cocoonのコンテナをフルワイドにリセット */
#container,
#content,
#content-in,
#main,
.wrap,
.wrap-all,
.main,
.content-in,
.site,
.site-inner,
.site-content,
.main-content,
#footer,
#footer-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  border: none !important;
  box-shadow: none !important;
  background: transparent;
}

#content,
.content {
  background: var(--bg) !important;
}

#main {
  margin: 0;
  padding: 0;
}

/* ==========================================================
   共通セクションスタイル
========================================================== */

.section {
  width: 100%;
  max-width: 100%;
}

.container {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 18px;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  margin: 48px 0 28px;
  color: var(--text);
}

/* ==========================================================
   レスポンシブ
========================================================== */

@media (max-width: 1024px) {
  .section-title {
    font-size: 2.6rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 2rem;
    margin: 34px 0 18px;
  }
}

/* ==========================================================
   SP: ハンバーガーメニューボタン
   menu.jsと連動して動作
========================================================== */

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    margin-left: auto !important;
    z-index: 999999 !important;
    position: relative !important;
    float: none !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
  }

  .menu-toggle span {
    display: block !important;
    position: static !important;
    width: 26px !important;
    height: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #000 !important;  /* 黒に変更 */
    border-radius: 2px !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
