@charset "utf-8";
*{
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Hind', 'Zen Kaku Gothic New', sans-serif;
  font-weight: 500;
  background-color: #FFFFFA;
}
@keyframes fadeIn {
  0% {opacity: 0}
  100% {opacity: 1}
}
@-webkit-keyframes fadeIn {
  0% {opacity: 0}
  100% {opacity: 1}
}

/* ローディング中のスクロール禁止 */
body.loading {
  overflow: hidden;
  height: 100vh;
}
body.no-scroll {
  overflow: hidden;
}
html {
  scroll-behavior: smooth;
}


/* ローディング画面 */
.loader-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #18251E;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transform: translateY(0%); 
  opacity: 1;
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.4s ease;
  will-change: transform;
}
body.is-transitioning {
  pointer-events: none;
}


/*-- ヘッダー --*/
.header{
  width: 100%;
  height: 128px;
  position: relative;
}
.header-left{
  float: left;
  margin-top: 30px;
  margin-left: 7%;
}
.header-left img{
  width: 250px;
}


/*-- メニュー --*/
.gNav{
  float: right;
  padding-top: 50px;
  padding-right: 8%;
}
.gNav-menu a{
  text-decoration: none;
  margin-left: 20px;
  color: black;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing:0.05em;
}
ul{
  list-style: none;
}
.gNav :hover{
  color: #666;
  transition: color 0.15s;
}
.header .btn-gNav {
  position: fixed;
  top: 30px;
  right: 8%;  
  margin-right: 0;
  width: auto;
  height: auto;
  z-index: 12;
  box-sizing: border-box;
  cursor: pointer;
  -webkit-transition: all 400ms;
  transition: all 400ms;
  background: none;
  border: none;
  padding: 0;
  opacity: 1;
}
.header .btn-gNav.scrolled {
  opacity: 0.3;
}
.header .btn-gNav .menu-text {
  display: block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: black;
  position: relative;
}
.header .btn-gNav .menu-text::before {
  content: '[ ';
}
.header .btn-gNav .menu-text::after {
  content: ' ]';
}
.header .btn-gNav.open .menu-text {
  color: white;
}
.btn-gNav {
  display: none;
  margin-top: 25px;
  margin-right: 5%;
}
.gNav .gNav-menu {
  display: flex;
  justify-content: space-between;
}
.gNav .gNav-menu li {
  margin: 0 auto;
}
.gNav-footer {
  display: none;
}

@media screen and (max-width: 900px), (hover: none) and (pointer: coarse) {
  .btn-gNav {
    display: block;
  }
  .gNav-menu a{
    color: white;
  }
  .gNav {
    position: fixed;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100vh;
    background-color: #1a2822;
    font-weight: normal;
    box-sizing: border-box;
    z-index: 10;
    transition: opacity 0.4s;
    padding: 80px 60px 50px 80px;
    visibility: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .gNav.open {
    opacity: 1;
    visibility: visible;
  }
  .gNav .gNav-menu {
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    justify-content: flex-start;
    margin-bottom: auto;
  }
  .gNav .gNav-menu li {
    list-style: none;
    text-align: left;
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
  }
  .gNav .gNav-menu li a {
    margin-left: 0;
    color: white;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-align: left;
  }
  .gNav-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: absolute;
    bottom: 50px;
    left: 80px;
    right: 30px;
  }
  .gNav-sns {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .gNav-sns a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: opacity 0.3s;
  }
  .gNav-sns a:hover {
    opacity: 0.7;
  } 
  .gNav-sns img {
    width: 16px;
    height: 16px;
  }
  .gNav-logo a {
    display: block; 
    width: 100%; 
  }
  .gNav-logo {
    max-width: 180px;
    margin-bottom: -26px;
  }
  .gNav-logo img {
    width: 100%;
    height: auto;
  }

  /* ▼▼▼ スマホ横向き(高さが低い)時の調整 ▼▼▼ */
  @media screen and (max-height: 600px) {
    .gNav {
      padding: 70px 40px 40px 40px;
      height: 100%;
    }
    .gNav .gNav-menu li {
      margin-bottom: 10px;
    }
    .gNav .gNav-menu li a {
      font-size: 20px;
    }
    .gNav-footer {
      position: static;
      margin-top: 30px;
      padding-bottom: 20px;
      flex-direction: row;
      align-items: flex-end;
      gap: 30px;
      width: 100%;
    }
    .gNav-sns {
      flex-direction: column; 
      margin-bottom: 0;
      gap: 12px;
    }
    .gNav-logo {
      align-self: flex-end;
    }
  }
}

@media screen and (max-width: 500px) {
  .header-left{
    margin-top: 40px;
  }
  .header-left img{
    width: 180px;
  }
  .gNav {
    padding: 100px 40px 40px 50px;
  }
  .gNav .gNav-menu li {
    margin-bottom: 20px;
  }
  .gNav .gNav-menu li a {
    font-size: 20px;
  }
  .gNav-footer {
    flex-direction: column;
    align-items: flex-start;
    left: 50px;
    right: 40px;
  }
  .gNav-logo {
    max-width: 120px;
    align-self: flex-end;
    margin-bottom:-30px;
  }
  .gNav-sns {
    gap: 15px;
    margin-bottom: -120px
  }
  .gNav-sns a {
    font-size: 14px;
  }
  
  /* 500px以下の横向き調整 */
  @media screen and (max-height: 600px) {
    .gNav {
       padding-top: 80px;
    }
    .gNav-footer {
      position: static;
      flex-direction: row;
      align-items: flex-end;
      margin-bottom: 0;
      gap: 20px;
    }
    .gNav-sns {
      margin-bottom: 0;
      flex-direction: column;
    }
    .gNav-logo {
      align-self: flex-end;
    }
  }
}



/*-- フッター --*/
footer {
  background-color: #18251E;
  color: #ffffff;
  padding: 60px 8% 10px;
  position: relative;
}
footer a:hover{
  text-decoration: underline;
}
.back-to-top {
  position: absolute;
  top: 30px;
  right: 30px;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
}
.footer-left {
  flex: 1;
}
.footer-logo{
  width: 200px;
  margin-top: 20px;
  margin-left: -15px;
  margin-bottom:50px;
}
.footer-labname h1 {
  font-size: 12px;
  font-weight: 500;
}
.footer-labname h2 {
  font-size: 9px;
  font-weight: 400;
  margin-top: 12px;
}
.footer-right {
  flex: 1;
  padding-left: 320px;
  margin-top: 30px;
}
.menu-section {
  margin-bottom: 60px;
}
.menu-title {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgb(255, 255, 255);
  letter-spacing: 0.05em;
}
.menu-list {
  display: flex;
  gap: 40px;
  list-style: none;
}
.menu-list li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: opacity 0.3s;
  letter-spacing: 0.05em;
}
.menu-list li a:hover {
  opacity: 0.7;
}
.adress-title {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgb(255, 255, 255);
  letter-spacing: 0.05em;
}
.address-section {
  margin-bottom: 25px;
}
.address-info {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
}
.postal-code {
  margin-bottom: 2px;
}
.copyright {
  text-align: center;
  margin-top: 80px;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.1em;
}

@media screen and (min-width:1440px) {
  .footer-right {
    padding-left: 550px;
  }
}
@media screen and (max-width: 1100px) and (min-width: 641px),
       screen and (min-width: 641px) and (hover: none) and (pointer: coarse) {
  footer {
    padding: 50px 8% 10px;
  }
  .footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "menu backtotop"
      "adress logo"
      "labname logo";
    align-items: end;
    position: relative;
  }
  .footer-right {
    grid-area: menu;
    padding-left: 0;
    margin-top: 30px;
  }
  .menu-section {
    grid-area: menu;
    margin-bottom: 40px;
  }
  .menu-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .address-section {
    grid-area: adress;
    margin-bottom: 30px;
  }
  .footer-labname {
    grid-area: labname;
  }
  .footer-left {
    display: contents; 
  }
  .footer-left a{
    display: contents; 
  }
  .footer-logo {
    grid-area: logo;
    justify-self: end;
    align-self: end;
    margin-bottom: -10px;
    width: 180px;
  }
  .back-to-top {
    grid-area: backtotop;
    justify-self: end;
    align-self: start;
    top: 30px;
    right: 8%;
    position: absolute;
  }
  .copyright {
    margin-top: 40px;
  }
}
@media screen and (max-width: 640px) {
  footer {
    padding: 40px 40px 10px;
  }
  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-left {
    order: 3;
    width: 100%;
  }
  .footer-labname {
    display: none;
  }
  .footer-right {
    order: 1;
    width: 100%;
    margin-top: 50px;
    padding-left: 0;
  }
  .menu-section {
    margin-bottom: 30px;
  }
  .menu-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .address-section {
    margin-bottom: 40px;
  }
  .footer-logo {
    order: 3;
    width: 160px;
    margin-top: 40px;
    margin-bottom:0px;
  }
  .back-to-top {
    position: absolute;
    top: 20px;
    right: 8%;
  }
  .copyright {
  margin-top: 30px;
  }
}


/* ロゴローダー */
.logo-loader {
  width: 300px;
  height: 300px;
  position: relative;
}
.logo-loader svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: translate(25%, 20%);
}
.part {
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  transform: scale(0.92) translateY(100px);
}
.cls-1, .cls-2 {
  opacity: 0;
  transform-origin: center;
}
@keyframes partFadeIn {
  0% { 
    opacity: 0; 
    transform: scale(0.85) translateY(100px);
  }
  60% {
    opacity: 0.8;
    transform: scale(1.02) translateY(-50px);
  }
  100% { 
    opacity: 1; 
    transform: scale(1) translateY(0);
  }
}
.logo-loader.playing .part.visible {
  animation: partFadeIn 100ms ease forwards;
}

@media screen and (max-width: 640px) {
  .logo-loader {
    width: 300px;
    height: 300px;
  }
}
@media screen and (max-width: 400px) {
  .logo-loader {
    width: 250px;
    height: 250px;
  }
}