@charset "utf-8";
/* CSS Document */

/* サイドバーなしレイアウト用 */
body {
  padding-top: 60px;
}

.l-container {
  max-width: 1600px;
  width: 100%;
  margin-left: 0;
  margin-inline: auto;
  padding: 0;
}

.l-container__wrap {
  max-width: 1600px;
  width: 100%;
  margin-inline: auto;
}

/* パンくずのマイナスマージン解除 */
.c-bread__nav.-top {
  margin-inline: 0;
}

.l-header {
  padding-left: 0;
  height: var(--header-height);
}

.l-header__wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 24px;
  position: static;
  background: #fff;
  padding-left: 0;
  -webkit-transition: background 0.4s;
  transition: background 0.4s;
  max-width: 1600px;
  width: 100%;
  height: 100%;
  justify-content: flex-end;
  margin-inline: auto;
}

.l-header__logo {
  margin-right: auto;
  width: auto;
  height: 100%;
  flex-shrink: 0;
  align-self: stretch;
  padding-block: 10px;
  box-sizing: border-box;
}

.l-header__logo a {
  display: block;
  height: 100%;
}

.l-header__logo img {
  display: block;
  height: 100%;
  width: auto;
  max-height: 100%;
  object-fit: contain;
}

.l-header__logo2 {
  display: flex;
  align-items: center;
  align-self: center;
  height: 100%;
  flex-shrink: 0;
}

.l-header__logo2 a,
.l-header__logo2 picture {
  display: flex;
  align-items: center;
  height: 100%;
}

.l-header__logo2 img {
  display: block;
  width: auto;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

/* モバイル：国環研ロゴのみ調整（A-PLATロゴは縦幅一杯を維持） */
@media (max-width: 959px) {
  .l-header__logo {
    max-width: calc(100vw - 120px);
  }

  .l-header__logo2 {
    height: auto;
    align-self: center;
  }

  .l-header__logo2 a,
  .l-header__logo2 picture {
    height: auto;
  }

  .l-header__logo2 img {
    width: 40px;
    max-width: 40px;
    height: 40px;
    max-height: 40px;
  }
}

@media (min-width: 960px) {
  .l-header {
    height: var(--header-height);
  }
}

/* フッター背景を画面幅いっぱいに（内側コンテンツは中央寄せ） */
.app-footer .l-footer__nav {
  margin-inline: 0;
  width: 100%;
  padding-inline: 0;
  display: flex;
  align-items: center;
}

.app-footer ul {
  padding-inline: 30px;
}

.l-footer__nav-list {
  max-width: 1600px;
  margin: 0 auto !important;
  padding: 25px 20px;
  align-items: center;
}

.l-footer__copy-wrap {
  max-width: none;
  width: 100%;
  margin: 0 auto !important;
  padding-block: 30px;
  /* 背景は全幅、中身は最大 1600px で中央寄せ */
  padding-inline: max(30px, calc((100% - 1600px) / 2));
  background: #fff;
  box-sizing: border-box;
}

@media (min-width: 960px) {
  .l-container {
    max-width: 1600px;
    margin-left: 0;
    margin-inline: auto;
    padding: 0;
  }

  /* サイドバー分の left オフセットを打ち消し（position:fixed は維持） */
  .l-header__menu-bg {
    width: 100%;
    left: 0;
  }

  .l-header__menu {
    max-width: 1600px;
    width: 100%;
    left: 0;
    right: 0;
    margin-inline: auto;
    /* position: static にすると非表示メニューが縦に押し下げて本文が見えなくなる */
    position: fixed;
  }
}
