/* =========================
   Header
========================= */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding-top: 32px;
  padding-left: 30px;
  padding-right: 30px;
}

.header-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.header-left {
  flex-shrink: 0;
}

.header-right {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-shrink: 0;
  margin-left: auto;
  position: relative;
  z-index: 10001;
}


.header-logo {
  display: block;
  width: 100%;
  max-width: 382px;
}

.header-logo img {
  display: block;
  width: 100%;
  max-width: 382px;
  height: auto;
}

/* =========================
   Menu Button
========================= */

.menu-btn {
  width: 142px;
  height: 60px;
  padding: 0 8px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  border-radius: 999px;
  background: #f7f7f7;
  box-sizing: border-box;
  flex-shrink: 0;
  position: relative;
  z-index: 10001;
  position: fixed;
  top: 32px;
  right: 30px;
}

.menu-btn__text {
  color: #2079C0;
  font-family: 'Marcellus', serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.menu-btn__circle {
  width: 42px;
  height: 42px;
  border: 1px solid #2079C0;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: 0.3s;
}

.menu-btn__circle span {
  position: absolute;
  top: 50%;
  width: 2.52px;
  height: 2.52px;
  background: #2079C0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: 0.3s ease;
}

.menu-btn__circle span:nth-child(1) {
  left: calc(50% - 6.28px);
}

.menu-btn__circle span:nth-child(2) {
  left: 50%;
}

.menu-btn__circle span:nth-child(3) {
  left: calc(50% + 6.28px);
}

/* 開いた時 */
.menu-btn.is-open .menu-btn__circle span:nth-child(1),
.menu-btn.is-open .menu-btn__circle span:nth-child(3) {
  width: 14px;
  height: 1.5px;
  border-radius: 999px;
  left: 50%;
  top: 50%;
}
.menu-btn.is-open .menu-btn__circle{
  border:none;
}

.menu-btn.is-open .menu-btn__circle span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-btn.is-open .menu-btn__circle span:nth-child(2) {
  opacity: 0;
}

.menu-btn.is-open .menu-btn__circle span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* =========================
   Header Menu
========================= */
.header-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.header-menu.is-open {
  pointer-events: auto;
}

.header-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(220, 220, 220, 0.7);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.header-menu.is-open .header-menu__overlay {
  opacity: 1;
}

.header-menu__panel {
  position: absolute;
  top: 12px;
  right: 19px;
  width: min(49.166vw, 708px);
  background: #6891AD;
  border-radius: 16px;
  padding: 24px 27px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
height:calc(100% - 34px);
}

.header-menu.is-open .header-menu__panel {
  opacity: 1;
  visibility: visible;
}



/* =========================
   Menu Head
========================= */

.header-menu__head {
  position: relative;
  min-height: 60px;
  margin-bottom: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-menu__logo {
  display: block;
}

.header-menu__logo img {
  display: block;
  width: 250px;
  height: auto;
}


/* =========================
   Menu Body
========================= */
.header-menu__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.header-menu__col {
  min-width: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.menu-unit {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 12px;
  margin-bottom: 12px;
}

.menu-unit.first {
  margin-bottom: 14px;
}


.menu-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
  font-family: 'Marcellus', serif;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.menu-arrow {
  width: 10px;
  height: 18px;
  background: url('/wp-content/themes/original/images/menu-arrow.png') no-repeat center / contain;
  flex-shrink: 0;
}

.menu-arrow::before,
.menu-arrow::after {
  content: none;
}

.menu-sub {
  margin-top: 4px;
}

.menu-sub li+li {
  margin-top: 10px;
}

.menu-sub a {
  color: #fff;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 500;
}

/* =========================
   Menu Foot
========================= */
.header-menu__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-top: 14px;
}

.header-menu__copy {
  color: #fff;
  font-size: 12px;
}

.header-menu__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.header-menu__links a {
  color: #fff;
  font-size: 14px;
  line-height: 1.8;
  font-weight: 500;
}

/* =========================
   Open State
========================= */
body.is-menu-open {
  overflow: hidden;
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  .pc {
    display: none;
  }

  .sp {
    display: block;
  }
}

@media (max-width: 767px) {
  .site-header {
    padding-top: 24px;
    padding-left: 16px;
    padding-right: 16px;
  }
  

  .header-flex {
    align-items: center;
    gap: 12px;
  }

  .header-logo {
    max-width: 208px;
  }

  .header-logo img {
    max-width: 208px;
  }

  .menu-btn {
    width: 94px;
    height: 38px;
    padding-left:12px;
    padding-right:7px;
    top: 20px;
    right: 16px;
  }

  .menu-btn__text {
    font-size: 14px;
  }

  .menu-btn__circle {
    width: 27.66px;
    height: 27.66px;
  }

  .menu-btn__circle span {
    width: 2px;
    height: 2px;
  }

  .menu-btn__circle span:nth-child(1) {
    left: calc(50% - 5px);
  }

  .menu-btn__circle span:nth-child(2) {
    left: 50%;
  }

  .menu-btn__circle span:nth-child(3) {
    left: calc(50% + 5px);
  }

  .header-menu__panel {
    top: 0;
    right: 0;
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    overflow-y: auto;
    padding: 28px 16px;
	  padding-bottom:24px;
    padding-top:9px;
	  position:fixed;
  }

  .header-menu__body {
    grid-template-columns: 1fr;
    gap: 0;
  }
  

  .header-menu__logo img {
    width: 208px;
  }

  .header-menu__col{
    padding:0px 8px;
	  border-bottom:none;
  }
	.header-menu__col:last-child .menu-unit:last-child{
		border-bottom:1px solid rgba(255, 255, 255, 0.22);
		padding-bottom:12px;
		margin-bottom:0;
	}

  .menu-main {
    font-size: 20px;
  }

  .menu-sub a {
    font-size: 14px;
  }

  .header-menu__foot {
    flex-direction: column-reverse;
    align-items: flex-start;
	  gap:24px;
	  margin-top:24px;
	  margin-left:8px;
	  margin-right:8px;
  }

  .header-menu__links {
    align-items: flex-start;
  }
  .menu-arrow{
    width:7px;
    height:14px;
  }
}