@import url("./lib/normalize.css");
@import url("./lib/fonts.css");
@import url("./snippets/nav.css");
@import url("./snippets/footer.css");
@import url("./snippets/preview-subpages.css");

:root {
  --color-primary: #111;
  --swiper-navigation-size: 30px !important;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -ms-overflow-style: none;
  /* font-size: 14px; */
  height: 100%;
  min-height: 100%;
  scroll-behavior: smooth;
  scrollbar-width: none;
  font-size: clamp(15px, calc(12px + 0.3vw), 20px);
}

html::-webkit-scrollbar {
  display: none;
}

/* InterVar, HubotSans, MonaSans */
body {
  /* font-family: "Mona Sans"; */
  font-family: InterVar, sans-serif;

  font-weight: 350;
  line-height: 1.5;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  margin-left: 60px;
}

@media screen and (min-width: 640px) {
  main {
    margin-left: 70px;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

em {
  font-variation-settings: "ital" 10;
  font-style: italic;
}

img,
svg {
  display: block;
}

h1 {
  font-size: 1.75rem;
  font-weight: 450;
  line-height: 1.3;
}

@media screen and (min-width: 640px) {
  h1 {
    font-size: 2.25rem;
    font-weight: 350;
    line-height: 1.25;
  }
}

h2 {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.4;
}

@media screen and (min-width: 640px) {
  h2 {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.3;
  }
}

h3 {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.35;
}

strong {
  font-weight: 450;
}

.logo {
  position: absolute;
  left: 0;
  top: 0;
  padding: 1rem 1.5rem;
  right: 0;
  z-index: 20;
  pointer-events: none;
}

@media screen and (min-width: 640px) {
  .logo {
    position: fixed;
    left: 50px;

    padding: 1rem 30px;
    left: 60px;
  }
}

.logo img {
  height: 100px;
  width: auto;
  pointer-events: all;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.3);
  bottom: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
}

.overlay.is-visible {
  opacity: 1;
  pointer-events: all;
  z-index: 5;
}


.logo-sp {
  position: absolute;
  top: 0;
  margin: 40px 20px;
  height: 100%;
  z-index: 10;

  img {
    height: 25px;
    /* position: sticky; */
    /* top: 40px; */
    /* margin-bottom: 40px; */
    width: auto;
  }
}
