/* header */

.header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: var(--color-main);
  color: var(--color-white);
}

body {
  padding-top: 60px;
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
}

.header a,
.header a:visited,
.drawer-menu a,
.drawer-menu a:visited {
  color: var(--color-white);
  text-decoration: none;
}

.header a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.header-logo,
.drawer-logo,
.drawer-nav {
  font-size: var(--font-size-3xl);
  font-family: var(--font-en);
  white-space: nowrap;
}

.header-logo {
  justify-self: center;
  letter-spacing: .1em;
  line-height: 1;
}

.header-search {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.search-icon{
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.search-icon:hover{
  color : var(--color-bg);
}

.hamburger {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 9px;
  border: 0;
  background: transparent;
  color: currentColor;
}

.hamburger-icon{
  width: 38px;
  height: 35px;
  fill: currentColor;
}

.menu-overlay {
  position: fixed;
  z-index: 200;
  inset: 0;
  background: rgb(0 0 0 / 18%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s;
}

.drawer-menu {
  position: fixed;
  z-index: 300;
  top: 0;
  right: 0;
  width: min(70vw, 520px);
  height: 100dvh;
  padding: 60px 50px 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  color: var(--color-white);
  background-color: color-mix(
  in srgb,
  var(--color-hamburger) 92%,
  transparent);
  transform: translateX(100%);
  visibility: hidden;
  pointer-events:none;
  transition: transform .45s ease, visibility .45s;
  text-align: left;
}

.drawer-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-white);
}
 
.close-icon{
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drawer-logo {
  margin-bottom: 30px;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  align-items: left;
  gap: 30px;
  font-size: var(--font-size-xxl);
  line-height: 1;
}

.drawer-sns {
  margin-top: 50px;
  display: flex;
  gap: 30px;
}

.drawer-sns-icon {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.drawer-menu a:hover { opacity: .65; }

body.is-menu-open { overflow: hidden; }
body.is-menu-open .menu-overlay { opacity: 1; visibility: visible; }
body.is-menu-open .drawer-menu { transform: translateX(0); visibility: visible;pointer-events:auto; }

.header-nav {
  display: none;
}


 /* =================================================
   ************** メディアクエリ 768px〜1023px *********
====================================================*/
@media (min-width: 768px) {
  .header-inner {
    max-width: 1023px;
  }

}

 /* =================================================
   ************** メディアクエリ 1024px〜 **************
====================================================*/

@media (min-width: 1024px) {

  body {
      padding-top: 70px;
    }

  .header {
    height: 70px;
  }

  .header-inner {
    width: calc(100% - 100px);
    max-width: 1040px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: max-content 40px 1fr;
    column-gap: 58px;
    align-items: center;
  }

  .header-logo {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    font-size: var(--font-size-3xl);
  }

  .header-search {
    grid-column: 2;
    grid-row: 1;
    width: 40px;
    height: 70px;
  }

  .search-icon {
    width: 28px;
    height: 28px;
  }

  .header-nav {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-width: 0;
    font-family: var(--font-en);
    font-size: var(--font-size-m);
    letter-spacing: .08em;
    line-height: 1;
    white-space: nowrap;
  }

  .hamburger,
  .menu-overlay,
  .drawer-menu {
    display: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  .menu-overlay,
  .drawer-menu { transition-duration: .01ms; }
}