@charset "UTF-8";

.spnav {
  left: 0;
  transform: translateX(-100%);
}
.nav-menu {
  align-items: center;
}

h1 {
  max-width: 18rem;
  margin: 6rem auto;
}
.hamburger {
  position: fixed;
  top: 1.5rem;
  right: 4%;
  z-index: 100;
}

.content {
  display: grid;
  grid-template-columns: 100%;
  position: relative;
}

/* 背景を設定するための疑似要素。左右コンテンツ個別に設定する場合は、.content-l,.content-rに適時設定。 */
.content::before {
  content: "";
  background: var(--bg-color);
  display: block;
  width: 100%;
  height: 100vh;
  position: fixed;
  z-index: -1;
}

.content-main {
  background: #fff;
  container-type: inline-size;
  
}

.content-l,
.content-r {
  align-self: start;
  display: none;
  height: 100vh;
  position: sticky;
  top: 0;
}

.content-l {
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s ease-in-out;
}

.content-r {
  background: var(--secondary-color);
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

/* //タブレット縦 / スマートフォン横 */
@media screen and (min-width: 480px) {
  /* .content-main {
    max-width: var(--base-w);
  } */
}

/* //タブレット横 */
@media screen and (min-width: 768px) {
  /* 2パタンの挙動を用意。状況に応じて切り替えてください。 */
  /* 片方のサイドコンテンツだけ非表示にするパタン */
  .content {
    grid-template-columns: 1fr 50%;
  }
  .content-l {
    display: flex;
    overflow: hidden;
    z-index: 1;
    width: 100%;
  }
  .content-l::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background: #262626;
    opacity: 0.2;
    z-index: -1;
  }
  .content-l .inner {
    position: relative;
    z-index: 10; /* スライダー(z-index: 1)より上にする */
    width: 100%;
  }
  .content-r {
    display: none;
  }

  /* 両サイドのコンテンツを非表示にして、メインコンテンツのみにするパタン */
  /* .content {
    grid-template-columns: 100%;
  }
  .content-l,
  .content-r {
    display: none;
  }
  .content-main {
    max-width: none;
  } */
}

/* //pc */
@media screen and (min-width: 1025px) {
  .content {
    grid-template-columns:
      calc(100% - var(--base-w) - 100px) var(--base-w)
      100px;
  }

  .content-l,
  .content-r {
    display: flex;
  }
  .content-r .link-sns {
    margin-bottom: 1em;
  }
  .content-r .link-sns a {
    color: var(--bg-color);
    font-size: 4rem;
    text-align: center;
  }
}
@media screen and (min-width: 1770px) {
  .content {
    grid-template-columns:
      calc(100% - 700px - 100px) 700px
      100px;
  }
}
