@media (max-width: 1300px) {

  /*ヘッダーメニュー*/
  .l-nav__list {
    gap: 5vh;
  }
}

/* ==========================================
  <= 1024px（タブレット）
========================================== */
@media (max-width: 1024px) {

  /* =========================
  HOME
  ========================= */

  .h-home__bg {
    grid-template-columns: repeat(2, 1fr);
  }

  /* =========================
  コンタクト＆アクセス
  ========================= */
  .ca-list {
    list-style: none;
    padding: 14px 28px 56px 28px;
    margin: 20px 0 0px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* =========================
  ヘッダー
  ========================= */

  /*ヘッダーメニュー*/
  .l-nav__list {
    font-size: 14px;
    gap: 4vh;
  }

  /* =========================
  背景グリッド
  ========================= */

  .l-gallery-row {
    grid-template-columns: repeat(2, 1fr);
  }

  /* =========================
  フッター
  ========================= */

  .l-fotter_logo_area {
    height: 30vh;
  }

  .l-fotter__nav-list {
    justify-content: start;
  }

  .l-fotter__nav-item {
    width: calc(100% / 3);
    text-align: center;
  }

  .l-fotter_sub_tx {
    text-align: center;
    font-size: var(--font-small-size);
  }

}

/* ==========================================
  960px以下
========================================== */

@media (max-width: 960px) {


  /* =========================
  HOME
  ========================= */

  /* TOHAKUエリア（水色） */
  .h-home__inner {
    height: 30vh;

  }

  /* =========================
  フッター
  ========================= */

  .l-fotter_logo_area {
    height: 25vh;
  }

  .l-fotter_logo_area a {
    width: 10%;
  }

}

/* ==========================================
  768px以下（SP）
========================================== */

@media (max-width: 768px) {


  :root {
    --font-midashi-size: 18px;
    --font-default-size: 14px;
    --font-small-size: 12px;
  }

  /* =========================
  HOME
  ========================= */

  #h__top_logo_header {
    display: flex;
  }

  #h__header {
    display: none;
  }

  .h-home__bg {
    grid-template-columns: repeat(2, 1fr);
  }

  /* TOHAKUエリア（水色） */
  .h-home__inner {
    height: 18vh;
    border-top: solid 2px var(--color-sub);
    border-bottom: solid 2px var(--color-sub);
  }

  /* ロゴ画像エリア - 画像 */
  .h-home__inner img {
    width: 50%;
    min-width: 350px;
  }

  /* =========================
  コンタクト＆アクセス
  ========================= */

  .ca-list {
    gap: 0px;
  }

  .ca-map_img_area img {
    width: 100%;
    max-width: 100%;
  }

  /* =========================
  ABOUT
  ========================= */

  .c-company-list li {
    grid-template-columns: 1fr;
    row-gap: 8px;
    align-items: start;
  }

  .c-company-list__label {
    text-align: left;
    white-space: normal;
  }

  /* =========================
  ヘッダー
  ========================= */

  /*ロゴのヘッダー*/
  .l-is__not-home_logo_header {
    background-color: rgba(255, 255, 255, 1);
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  /*サイドメニューボタン表示*/
  .l-side_menu_button {
    display: block;
  }

  /*ヘッダーメニュー非表示*/
  #l__pc_is_not_home_header_nav {
    display: none;
  }


  .l-header__logo img {
    width: 130px;
  }

  /* =========================
  背景グリッド
  ========================= */

  /*グリッド背景を2列に変更*/
  .l-gallery-row {
    grid-template-columns: repeat(2, 1fr);
  }

  /* =========================
  フッター
  ========================= */

  .l-fotter_logo_area {
    height: 20vh;
    padding-bottom: 28px;
  }

  /* ロゴ画像エリア - 画像 */
  .l-fotter_logo_area a {
    width: 40%;
  }

  .l-fotter__nav-item :first-child {
    margin-bottom: 14px;
  }

  /* =========================
  レイアウト
  ========================= */

  /*HOME以外のページコンテンツ余白*/
  .l-is__not-home__section {
    min-height: 110px;
    padding-left: 14px;
    padding-right: 14px;
    margin-left: 44px;
    padding-right: 44px;
    padding-left: 44px;
    width: calc(100% - 44px);
  }


  /*元から入力されてた↓↓*/

  :root {
    /* SP時のヘッダー高さ */
    --header-height: 56px;
  }

  .l-header__inner,
  .l-home__header__inner {
    height: var(--header-height);
  }

  .u-hidden-md {
    display: none;
  }

  .l-home__header__inner {
    height: 56px;
  }

  .l-header__inner {
    height: 56px;
  }


  .c-nav-toggle {
    display: inline-flex;
  }

  .header-nav {
    position: absolute;
    inset-inline: 0;
    top: 56px;
    background-color: rgba(245, 247, 251, 0.98);
    border-bottom: 1px solid rgba(213, 217, 229, 0.7);
    padding: 8px 16px 12px;
    display: none;
  }

  .header-nav.is-open {
    display: block;
  }

  .c-nav-list {
    flex-direction: column;
    gap: 8px;
  }

  .l-home {
    min-height: calc(100vh - var(--header-height));
  }

  .l-home__content {
    max-width: 100%;
  }

  .l-home__inner {
    min-height: auto;
  }

  .l-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================
  640px以下
========================================== */

@media (max-width: 640px) {


  /* =========================
  CONTACT_ACCESS
  ========================= */

  .ca-map_img_area iframe {
    height: 50vh;
  }



  /* =========================
  HOME
  ========================= */

  /* TOHAKUエリア（水色） */
  .h-home__inner {
    height: 16vh;
  }

  /* ロゴ画像エリア - 画像 */
  .h-home__inner img {
    width: 50%;
    min-width: 350px;
  }

  /* =========================
  ヘッダー
  ========================= */

  /* =========================
  背景グリッド
  ========================= */

  /* =========================
  フッター
  ========================= */

  .l-fotter_logo_area {
    height: 15vh;
    padding-bottom: 28px;
  }

  /* ロゴ画像エリア - 画像 */
  .l-fotter_logo_area a {
    width: 30%;
    min-width: 140px;
  }


  .l-fotter__nav-item {
    width: calc(100% / 2);
    margin-bottom: 42px;
  }
}

/* ==========================================
  480px以下（小型SP）
========================================== */

@media (max-width: 480px) {

  /* =========================
  HOME
  ========================= */
  .h-home__bg {
    grid-template-columns: repeat(2, 1fr);
  }

  .h-home__inner img {
    width: 40%;
    min-width: 250px;
  }

  .h-logo_bottom_tx {
    font-size: 11px;
  }

  .h-bottom_tx {
    bottom: 44px;
  }

  /* =========================
  ヘッダー
  ========================= */

  .l-header__logo-inner {
    padding: 0 12px;
  }

  /* =========================
  背景グリッド
  ========================= */
  .l-bg {
    margin: 0;
  }

  .l-gallery-row {
    grid-template-columns: repeat(2, 1fr);
    ;
  }


  /* =========================
  HOME以外のレイアウト
  ========================= */
  .l-is__not-home__section {
    margin-left: 28px;
    width: calc(100% - 28px);
    padding: 0 3px;
  }


  /* =========================
  フッター
  ========================= */

  .l-footer {
    margin: 0;
  }

  .l-fotter__nav-list {
    margin-top: 28px;
  }

  .l-fotter__nav-item {
    width: calc(100% / 1);
    margin-bottom: 14px;
  }
}