/*
 * Site Name: Maru Lab
 * Author: maru
 * Version: 1.0
 *
 * メディアクエリー ブレークポイント
 *   min-width: 768px 1024px
 */
 :root {
  --color_main:  #8ebeca;
  --color_sub:   #fdfdfd;
  --color_text:  #3d3d3d;
  --color_link:  #366bb5;
  --color_btn:   #f7f7f7;
  --color_gray1: #CCCCCC;
  --color_gray2: #5a5a5a;
  --color_gray3: hsla(0,0%,78%,.1);
  --color_gray4: hsla(0,0%,78%,.5);
  --color_gray5: hsla(0, 0%, 90.2%, 0.3);
  --sidebar_width: 28%;
  --content-max-width: 1200px;
  --global--admin-bar--height: 0;
  box-sizing: border-box;
  scroll-padding-top: 70px;
}

body {
  background-color: var(--color_sub);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
}

body:has(.nav.open-spnavi){
  overflow: hidden;
}

.page-logo{
  font-size: 1.6em;
  font-weight: 600;
}

h1 {
  font-size: 1.5rem;
  text-align: center;
}

h2 {
  margin-top: 4rem;
  margin-bottom: 2rem;
  font-weight: 500;
}
p{
  line-height: 3em;
}

section h2 {
  text-align: center;
}

/* Header
--------------------------------------------- */

.header {
  /* height: 10vh; */
  height: 80px;
  /* background-color: #0f5474; */
  /* position: fixed; */
  top: 0;
  left: 0;
  right: 0;

  /* max-width: 1000px; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: inherit;
  color: #fff;
  padding: 0 25px;
  margin-right: auto;
  margin-left: auto;

  align-items:baseline;

  position: relative;
  z-index: 10;
}

.header a {
  text-decoration: none;
  color: var(--color_text);
  white-space: nowrap;
}

.site-branding {
  display: flex;
  flex-wrap: wrap;
  align-items:baseline;
}

.site-branding h1 {
  font-size: 1.6em;
  margin-left: 0.5em;
}

.site-description{
  display: none;
}

@media(min-width: 768px){
  .site-description{
    display: block;
    margin-top: 1em;
    margin-left: 1em;
    opacity: 0.8;
  }
}

/* Navigation
--------------------------------------------- */

/* メニュー */
.overlay {
  background-color: #000;
  cursor: pointer;
  height: 100vh;
  left: 0;
  opacity: 0;
  position: fixed;
  top: 0;
  visibility: hidden;
  width: 100vw;
}

.overlay.open-spnavi {
  opacity: 0.3;
  visibility: visible;
}
@media(min-width: 768px){
  .overlay.open-spnavi {
    visibility: hidden;
  }
}


.nav {
  position: fixed;
  width: 50%;
  max-width: 350px;
  min-width: 200px;
  height: 100vh;
  top: 0px;
  right: -100%;
  padding: 80px 0;
  background-color: var(--color_sub);
  }

.nav-item a {
  display: block;
  font-size: 1.3em;
  color: var(--color_text);
  text-decoration: none;
  padding: 20px 0 20px 50px;
}
.nav-item a:hover {
  opacity: 0.6;
}
.nav.open-spnavi {
  right: 0;
}

@media(min-width: 768px){
  .nav{
    position: relative;
    height: 80px;
    top:0;
    right: 0;
    padding: 0;
  }

  .nav-list{
    display: flex;
    justify-content: flex-end;
  }

  .nav-item a {
    font-size: 1em;
    padding: 0;
    margin-left: 1em;
  }

  .hamburger{
    display: none;
  }
}

/* ハンバーガーボタン */
.hamburger {
  width: 30px;
  height: 30px;
  position: relative;
  background-color: var(--color_sub);
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}
.hamburger span,
.hamburger span::after,
.hamburger span::before {
  position: absolute;
  display: block;
  content: '';
  width: 100%;
  height: 2px;
  background-color: var(--color_gray2);
  transition: all 0.5s;
}
.hamburger span::before {
  top: -10px;
}
.hamburger span::after {
  bottom: -10px;
}
.nav.open-spnavi~.hamburger span {
  background-color: transparent;
}
.nav.open-spnavi~.hamburger span::before {
  top: 0;
  transform: rotate(45deg);
}
.nav.open-spnavi~.hamburger span::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* Main Visual
--------------------------------------------- */
.main-visual {
  overflow: hidden;
  margin-top: 2rem;
  margin-left: -1em;
  margin-right: -1em;
  position: relative;
}

.main-visual img{
  height: 70vh;
  width: 100%;
  min-width: 200px;
  opacity: 0.85;
  object-fit: cover;
  animation: zoom-in-anim 20s infinite;
}
.main-visual p {
  font-size: 1rem;
  text-shadow: 2px 2px 1px rgba(51, 51, 51, 0.5 );
  color: var(--color_sub);
  font-size: 1.5em;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-80%);
  opacity: 0.7;
  text-align: center;
  white-space: nowrap;
}

@keyframes zoom-in-anim {
    0% { transform: scale(1);   }
  100% { transform: scale(1.5); }
}


/* About
--------------------------------------------- */
.about {
  width: 80vw;
  max-width: var(--content-max-width);
  margin: 8rem auto;
}

/* Works
--------------------------------------------- */
.works {
  margin: 5rem auto;
  position: relative;
  background-color: var(--color_gray5);
  padding: 1rem 0 3rem 0;
}
.works .content {
  width: 80vw;
  max-width: var(--content-max-width);
  margin: auto;
}

.works ul {
  list-style: none;
  padding: 0;
}
.works li {
  position: relative;
  margin-bottom: 3rem;
}
.works span {
  font-size: 0.8rem;
}
.works a {
  display: block;
  width: 100%;
  height: 100%;
}
.works img {
  width: 100%;
  height: auto;
}
.works a.i-link {
  position: absolute;
  top:0;
  left: 0;
}
@media(min-width: 768px){
  .works ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2%;
  }
  .works li {
    width: 32%;
  }
}


/* Footer
--------------------------------------------- */
footer {
  margin-top: 5em;
  margin-bottom: 2em;
  padding: 0 25px;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
}

footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
}

footer a {
  text-decoration: none;
  color: var(--color_text);
  font-size: 0.8em;
  margin-left: 0.5em;
  margin-right: 0.5em;
  opacity: 0.8;
}
.copyright{
  font-size: 0.8em;
  margin-top:1.5em;
  text-align: center;
  opacity: 0.6;
}
@media(min-width: 768px){
  footer {
    flex-direction: row;
    justify-content: space-between;
  }
  footer a {
    font-size: 0.9em;
    margin-left: 1em;
    margin-right: 1em;
  }
}

.policy {
    width: 90vw;
    max-width: var(--content-max-width);
    margin: 0 auto;
}