html{
  scroll-behavior: smooth;
}

header{
  display: flex;
  justify-content: space-between;
  padding: 30px 55px;
  position: fixed;
  /* position: absolute; */
  z-index: 100;
  /* background: rgb(0, 0, 0, 0.1); */
  background-color: #ffffff;
  width: 100%;
  top: 0;
}

.header-container{
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}
.logo-image{
  width: 182px;
  height: auto;
}

:root {
  --background-navbar: rgb(255, 255, 255);
}

.header {
  background: var(--background-navbar);
  position: fixed;
  width: 100%;
  height: 52px;
}

.ubuntu{
  font-family: "Ubuntu", serif;
  font-weight: bold;
}

.noto{
  font-family: "Noto Sans JP", serif;
  font-weight: bold;
}

.inherit{
  color: inherit !important;
}

.header__menu-text{
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0.05em;
  /* transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s; */
  color: #ffffff;
}

.header__menu-container{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: fit-content;
  height: 100%;
  margin: auto;
  gap: 25px;
}

/* Nav items */
.menu {
  list-style: none;
  position: absolute;
  height: 100lvh;
  top: 0;
  right: 0;
  background-color: #ffffff;
  clear: both;
  background: var(--background-navbar);
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
  /* transform: scale(1, 0); */
  /* transform-origin: top; */

  transform: translateX(100%);
  color: #ffffff;
  
}

/* Hamburger menu button */
.menu-btn:checked ~ .menu {
  /* transform: scale(1, 1); */
  /* transform-origin: top; */
  width: 40%;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
  background-color: #ffffff;
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;

  transform: translateX(0);
}

/* Hamburger menbu text */
.menu a {
  text-decoration: none;
  transition: 0.5s;
}
.header__menu-item{
  transform-origin: center;
}
.header__menu-item:hover{
  transform: scale(1.05) translateY(-3px); 
}
.menu li {
  padding: 24px;
  margin: auto;
  opacity: 0;
  transition: 0.3s;
  text-align: center;
}

.header__menu-list{
  display: inline-grid;
  /* flex-grow: 1; */
  align-content: center;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.05em;
}

.header__menue-contents{
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 100%;
  padding: 24px;
}

.header__menue-contents img{
  height: 50px;
  width: auto;
}

.menu-btn:checked ~ .menu a,
.menu-btn:checked ~ .menu li {
  opacity: 1;
  /* transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.2s; */
}

.menu-btn {
  display: none;
}

.menu-icon {
  display: inline-block;
  position: relative;
  cursor: pointer;
  /* padding: 24px 5px; */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  Z-INDEX: 11;
}

.navicon {
  background: #ffffff;
  display: block;
  height: 2px;
  width: 28px;
  position: relative;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
  border-radius: 5px;
}

.navicon:before,
.navicon:after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  position: absolute;
  background: #ffffff;
  border-radius: 5px;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

.navicon:before {
  top: 8px;
}

.navicon:after {
  bottom: 8px;
}

/* Hamburger Menu Animation Start */
.menu-btn:checked ~ .menu-icon .navicon:before {
  transform: rotate(-45deg);
}

.menu-btn:checked ~ .menu-icon .navicon:after {
  transform: rotate(45deg);
}

/* チェック時に表示 */
.menu-btn:checked ~ .menu__blar {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before {
  top: 0;
}
.menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
  bottom: 0;
}

.menu-btn:checked ~ .menu-icon .navicon {
  background: rgba(0, 0, 0, 0);
  transition: 0.2192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

.menu-btn:checked ~ .menu-icon-top-page {
  background: none;
}
/* Hamburger Menu Animation End */

.header {
  background: rgba(55, 55, 55, 0.98);
  position: fixed;
  width: 100%;
  height: 52px;
}

.menu-icon {
  mix-blend-mode: difference;
  position: relative;
  z-index: 10;
}

.menu-icon-top-page {
/* background: #008cff;
border-radius: 50%;
padding: 42px 22px; */
}

.navicon {
  background: #ffffff;
  display: block;
  height: 2px;
  width: 28px;
  position: relative;
  transition: 0.3s;
}

.header__menue-contents a:hover{
/* transform: scale(1.1); */
}

.menu__blar{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.5);
}



@media screen and (min-width: 1025px) {
.menu {
  width: 818px;
  padding: 100px 0 150px 100px;
}
}

/* タブレット向けスタイル (縦向き) */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
.menu {
  width: 90%;
  padding: 100px 0 150px 50px;
}
.header__menu-container{
  /* max-height: 800px; */
}
header{
  padding: 15px 30px;
}
}

@media screen and (max-width: 767px) {
header {
  padding: 10px 20px;

}

.header-container {
width: calc(100vw - 20px);
align-items: center;
}


.logo-image {
width: 140px;
height: auto;
}


.navicon {
height: 2px !important;
width: 20px !important;
}

.navicon:before {
top: 6px;
}
.navicon:after {
bottom: 6px;
}
.menu {
  width: 90%;
  padding: 100px 10px 100px 10px;
  border-radius: 0 !important;
}
.header__menu-list{
  font-size: 22px;
}
.header__menue-contents {
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.menu li {
padding: 24px;
}

.header__menue-contents img {
height: calc(calc(90vw - 120px) / 6);
max-height: 50px;
min-height: 45px;
width: auto;
}

.menu-icon-top-page {
/* padding: 27.5px 14px; */
}

.menu-btn:checked ~ .menu {
  width: 80%;

}
.logo-image {
  width: 130px;
  height: auto;
  }
}