/* Header, drawer, contact dialog, footer and notice styles used by the media theme. */

body:has(> #body_wrap.efreedive-root-layout) {
  --efreedive-notice-height: 34px;
  --efreedive-admin-bar-offset: 0px;
}

@media (min-width: 601px) {
  body:has(> #wpadminbar):has(> #body_wrap.efreedive-root-layout) {
    --efreedive-admin-bar-offset: var(--wp-admin--admin-bar--height, 32px);
  }
}

body:has(> #body_wrap.efreedive-root-layout > .header-notice) {
  padding-top: var(--efreedive-notice-height);
}

body.no-scroll:has(> #body_wrap.efreedive-root-layout),
body.header-notice-popup-open:has(> #body_wrap.efreedive-root-layout) {
  overflow: hidden;
}

:where(#body_wrap.efreedive-root-layout) > :is(.header, .drawer, .modal, .header-notice, .header-notice-popup, .Footer) {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1.1428vw;
  letter-spacing: normal;
  line-height: 1.5;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  color: var(--efreedive-blue);
}

:where(#body_wrap.efreedive-root-layout) > :where(.header, .drawer, .modal, .header-notice, .header-notice-popup, .Footer),
:where(#body_wrap.efreedive-root-layout) > :where(.header, .drawer, .modal, .header-notice, .header-notice-popup, .Footer) * {
  box-sizing: border-box;
}

:where(#body_wrap.efreedive-root-layout) > :where(.header, .drawer, .Footer) img {
  max-width: 100%;
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

:where(#body_wrap.efreedive-root-layout) > :where(.header, .drawer, .modal, .header-notice, .header-notice-popup) button {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}

:where(#body_wrap.efreedive-root-layout) > :where(.header, .drawer, .modal, .header-notice-popup, .Footer) :where(h1, h2, p) {
  margin: 0;
}

@media screen and (max-width: 767px) {
  body:has(> #body_wrap.efreedive-root-layout) {
    --efreedive-notice-height: 30px;
  }
}

:where(#body_wrap.efreedive-root-layout) > .Footer {
  padding: 3.5714vw 0 1.4286vw;
  background: var(--efreedive-blue);
  color: #fff;
}

:where(#body_wrap.efreedive-root-layout) > .Footer .Footer__nav {
  display: flex;
  gap: .7142vw;
  margin: 0 auto;
  width: 82.1428vw;
}

:where(#body_wrap.efreedive-root-layout) > .Footer .Footer__button {
  text-decoration: none;
  text-decoration-thickness: auto !important;
  text-underline-offset: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  padding: .2857vw .7142vw;
  width: 100%;
  line-height: 1.75;
  text-align: center;
  white-space: nowrap;
  border: 1px solid #fff;
  border-radius: 100vw;
  color: #fff;
  font-size: 1.1428vw;
}

:where(#body_wrap.efreedive-root-layout) > .Footer .Footer__button--harassment {
  font-size: 1.0714vw;
}

:where(#body_wrap.efreedive-root-layout) > .Footer .Footer__logo {
  margin: 2.8571vw auto 0;
  width: 10.7142vw;
}

:where(#body_wrap.efreedive-root-layout) > .Footer .Footer__copyright {
  text-align: center;
  line-height: 1.75;
  font-size: 1vw;
}

:where(#body_wrap.efreedive-root-layout) > .header .domestic {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background-color: #f47f7f;
  color: #fff;
  font-size: .8571vw;
  text-decoration: none;
  white-space: nowrap;
}

:where(#body_wrap.efreedive-root-layout) > .header .domestic:hover {
  opacity: .8;
}

:where(#body_wrap.efreedive-root-layout) > .header .domestic .floating-tab__icon {
  width: 24px;
  height: auto;
  margin: 0;
}

:where(#body_wrap.efreedive-root-layout) > .header {
  inset: var(--efreedive-admin-bar-offset) 0 auto;
  padding: 10px 30px;
  background: #fff;
  box-shadow: 0 4px 8px #00000040;
  position: fixed;
  width: 100%;
  z-index: 99;
}

:where(#body_wrap.efreedive-root-layout) > .header .header_wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

:where(#body_wrap.efreedive-root-layout) > .header .header_wrap > .efreedive-media-logo {
  flex: none;
  width: 8.5714vw;
  margin: 0;
  padding: 0;
  line-height: 0;
}

:where(#body_wrap.efreedive-root-layout) > .header .header_wrap > .efreedive-media-logo img {
  display: block;
}

:where(#body_wrap.efreedive-root-layout) > .header .header_wrap .right_side {
  display: flex;
  flex: none;
  gap: 1.4285vw;
}

:where(#body_wrap.efreedive-root-layout) > .header .header_wrap .right_side p {
  font-size: 12px;
  white-space: nowrap;
  color: #333;
}

:where(#body_wrap.efreedive-root-layout) > .header .hamburger {
  flex: none;
  padding: 0;
  width: 25px;
  height: 40px;
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
}

:where(#body_wrap.efreedive-root-layout) > .header .hamburger span {
  position: absolute;
  width: 100%;
  height: 3px;
  background: #333;
  left: 0;
  transition: .4s ease;
  z-index: 99;
}

:where(#body_wrap.efreedive-root-layout) > .header .hamburger span:nth-child(1) {
  top: 3px;
}

:where(#body_wrap.efreedive-root-layout) > .header .hamburger span:nth-child(2) {
  top: 10px;
}

:where(#body_wrap.efreedive-root-layout) > .header .hamburger span:nth-child(3) {
  bottom: 20px;
}

:where(#body_wrap.efreedive-root-layout) > .header .hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

:where(#body_wrap.efreedive-root-layout) > .header .hamburger.active span:nth-child(2) {
  opacity: 0;
}

:where(#body_wrap.efreedive-root-layout) > .header .hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 10px;
}

:where(#body_wrap.efreedive-root-layout) > .header .hamburger p {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

:where(#body_wrap.efreedive-root-layout) > .overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgb(0 0 0 / 50%);
  opacity: 0;
  visibility: hidden;
  transition: .4s ease;
  z-index: 90;
}

:where(#body_wrap.efreedive-root-layout) > .overlay.active {
  opacity: 1;
  visibility: visible;
}

:where(#body_wrap.efreedive-root-layout) > .drawer {
  position: fixed;
  top: var(--efreedive-admin-bar-offset);
  right: -300px;
  width: 280px;
  height: calc(100% - var(--efreedive-admin-bar-offset));
  overflow-y: auto;
  visibility: hidden;
  background: #fff;
  box-shadow: -5px 0 20px #0000001a;
  transition: .4s ease;
  z-index: 300;
  padding-top: 80px;
}

:where(#body_wrap.efreedive-root-layout) > .drawer .drawer__close {
  padding: 0;
  position: absolute;
  top: 20px;
  right: 20px;
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

:where(#body_wrap.efreedive-root-layout) > .drawer .logo {
  position: absolute;
  top: 1.0714vw;
  left: 24px;
  width: 7.1428vw;
}

:where(#body_wrap.efreedive-root-layout) > .drawer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

:where(#body_wrap.efreedive-root-layout) > .drawer ul li {
  border-bottom: 1px solid #eee;
}

:where(#body_wrap.efreedive-root-layout) > .drawer ul li a {
  display: block;
  padding: 18px 24px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: .3s;
}

:where(#body_wrap.efreedive-root-layout) > .drawer ul li a:hover {
  background: #f5f5f5;
  color: var(--efreedive-blue);
}

:where(#body_wrap.efreedive-root-layout) > .drawer ul li.sns {
  display: flex;
  gap: 1.4285vw;
  padding: 18px 24px;
}

:where(#body_wrap.efreedive-root-layout) > .drawer ul li.sns a {
  width: 2.8571vw;
  padding: 0;
}

:where(#body_wrap.efreedive-root-layout) > .drawer.active {
  right: 0;
  visibility: visible;
}

:where(#body_wrap.efreedive-root-layout) > .modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgb(0 0 0 / 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: .4s ease;
  z-index: 200;
}

:where(#body_wrap.efreedive-root-layout) > .modal.active {
  opacity: 1;
  visibility: visible;
}

:where(#body_wrap.efreedive-root-layout) > .modal.active .modal__content {
  transform: none;
  opacity: 1;
}

:where(#body_wrap.efreedive-root-layout) > .modal h2 {
  font-size: 1.5em;
}

:where(#body_wrap.efreedive-root-layout) > .modal .modal__content {
  background: #fff;
  width: 90%;
  max-width: 420px;
  padding: 40px 30px;
  border-radius: 12px;
  position: relative;
  transform: translateY(20px) scale(.95);
  opacity: 0;
  transition: .4s ease;
  box-shadow: 0 10px 40px #00000026;
  color: #333;
}

:where(#body_wrap.efreedive-root-layout) > .modal .modal__close {
  padding: 0;
  position: absolute;
  top: 15px;
  right: 18px;
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
}

:where(#body_wrap.efreedive-root-layout) > .modal p .wrap {
  display: inline-block;
  padding: .25em 1em;
  background: var(--efreedive-blue);
  color: #fff;
}

:where(#body_wrap.efreedive-root-layout) > .modal p + p {
  margin-top: .7142vw;
}

@media screen and (max-width: 768px) {
  :where(#body_wrap.efreedive-root-layout) > :is(.header, .drawer, .modal, .header-notice, .header-notice-popup, .Footer) {
    font-size: 3.3854vw;
  }

  :where(#body_wrap.efreedive-root-layout) > .Footer {
    padding: 7.0312vw 0 3.9062vw;
  }

  :where(#body_wrap.efreedive-root-layout) > .Footer .Footer__nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8229vw;
    width: 79.9479vw;
  }

  :where(#body_wrap.efreedive-root-layout) > .Footer .Footer__button {
    padding: .5208vw 1.302vw;
    font-size: 2.8645vw;
  }

  :where(#body_wrap.efreedive-root-layout) > .Footer .Footer__button--harassment {
    grid-column: 1 / -1;
    font-size: 2.8645vw;
  }

  :where(#body_wrap.efreedive-root-layout) > .Footer .Footer__logo {
    margin-top: 3.9062vw;
    width: 26.0416vw;
  }

  :where(#body_wrap.efreedive-root-layout) > .Footer .Footer__copyright {
    margin-top: .651vw;
    font-size: 2.6041vw;
  }

  :where(#body_wrap.efreedive-root-layout) > .header .domestic {
    gap: 4px;
    padding: 4px 8px;
    font-size: 10px;
  }

  :where(#body_wrap.efreedive-root-layout) > .header .domestic .floating-tab__icon {
    width: 18px;
  }

  :where(#body_wrap.efreedive-root-layout) > .header {
    padding: 10px 15px;
  }

  :where(#body_wrap.efreedive-root-layout) > .header .header_wrap > .efreedive-media-logo {
    width: 20.8333vw;
  }

  :where(#body_wrap.efreedive-root-layout) > .header .header_wrap .right_side {
    gap: 3.9062vw;
  }

  :where(#body_wrap.efreedive-root-layout) > .header .header_wrap .right_side p {
    font-size: 10px;
  }

  :where(#body_wrap.efreedive-root-layout) > .header .hamburger {
    width: 20px;
    height: 34px;
  }

  :where(#body_wrap.efreedive-root-layout) > .header .hamburger span:nth-child(1) {
    top: 0;
  }

  :where(#body_wrap.efreedive-root-layout) > .header .hamburger span:nth-child(2) {
    top: 7px;
  }

  :where(#body_wrap.efreedive-root-layout) > .header .hamburger span:nth-child(3) {
    bottom: 17px;
  }

  :where(#body_wrap.efreedive-root-layout) > .drawer {
    right: -70vw;
    width: 60vw;
  }

  :where(#body_wrap.efreedive-root-layout) > .drawer .drawer__close {
    top: 15px;
  }

  :where(#body_wrap.efreedive-root-layout) > .drawer .logo {
    top: 2.6041vw;
    width: 20.8333vw;
  }

  :where(#body_wrap.efreedive-root-layout) > .drawer ul li.sns {
    gap: 5.2083vw;
  }

  :where(#body_wrap.efreedive-root-layout) > .drawer ul li.sns a {
    width: 10.4166vw;
  }

  :where(#body_wrap.efreedive-root-layout) > .modal p + p {
    margin-top: 1.302vw;
  }
}

:where(#body_wrap.efreedive-root-layout) > .header-notice ~ .header {
  top: calc(var(--efreedive-admin-bar-offset) + var(--efreedive-notice-height));
}

:where(#body_wrap.efreedive-root-layout) > .header-notice {
  position: fixed;
  top: var(--efreedive-admin-bar-offset);
  left: 0;
  z-index: 99;
  display: flex;
  width: 100%;
  height: var(--efreedive-notice-height);
  overflow: hidden;
  background: #fff4c2;
}

:where(#body_wrap.efreedive-root-layout) > .header-notice .header-notice__scroller {
  display: flex;
  flex: 1;
  justify-content: center;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

:where(#body_wrap.efreedive-root-layout) > .header-notice .header-notice__open {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 16px;
  border: none;
  background: transparent;
  cursor: pointer;
}

:where(#body_wrap.efreedive-root-layout) > .header-notice .header-notice__open:hover {
  opacity: .7;
}

:where(#body_wrap.efreedive-root-layout) > .header-notice .header-notice__track {
  display: inline-flex;
  align-items: center;
  height: 100%;
}

:where(#body_wrap.efreedive-root-layout) > .header-notice .header-notice__item {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  color: #e60012;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

:where(#body_wrap.efreedive-root-layout) > .header-notice .header-notice__item + .header-notice__item {
  display: none;
}

:where(#body_wrap.efreedive-root-layout) > .header-notice .header-notice__more {
  flex-shrink: 0;
  margin-left: 6px;
}

:where(#body_wrap.efreedive-root-layout) > .header-notice .header-notice__toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 100%;
  padding: 0;
  border: none;
  background: #eee;
  cursor: pointer;
}

:where(#body_wrap.efreedive-root-layout) > .header-notice .header-notice__toggle:focus-visible {
  outline: 2px solid #e60012;
  outline-offset: -2px;
}

:where(#body_wrap.efreedive-root-layout) > .header-notice .header-notice__toggle-icon {
  display: block;
  width: 10px;
  height: 12px;
  border-right: 3px solid #222;
  border-left: 3px solid #222;
  box-sizing: border-box;
}

:where(#body_wrap.efreedive-root-layout) > .header-notice .header-notice__toggle[aria-pressed="true"] .header-notice__toggle-icon {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-right: 0;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #222;
}

:where(#body_wrap.efreedive-root-layout) > .header-notice-popup {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 400;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgb(0 0 0 / 55%);
}

:where(#body_wrap.efreedive-root-layout) > .header-notice-popup.is-open {
  display: flex;
}

:where(#body_wrap.efreedive-root-layout) > .header-notice-popup .header-notice-popup__panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(80vh, 700px);
  padding: 48px 32px 32px;
  overflow-y: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px #0003;
}

:where(#body_wrap.efreedive-root-layout) > .header-notice-popup .header-notice-popup__panel p {
  color: #222;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  text-align: left;
}

:where(#body_wrap.efreedive-root-layout) > .header-notice-popup .header-notice-popup__title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:where(#body_wrap.efreedive-root-layout) > .header-notice-popup .header-notice-popup__close {
  padding: 0;
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #222;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

:where(#body_wrap.efreedive-root-layout) > .header-notice-popup .header-notice-popup__close:hover {
  opacity: .7;
}

@media screen and (max-width: 767px) {
  :where(#body_wrap.efreedive-root-layout) > .header-notice .header-notice__scroller {
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  :where(#body_wrap.efreedive-root-layout) > .header-notice .header-notice__scroller::-webkit-scrollbar {
    display: none;
  }

  :where(#body_wrap.efreedive-root-layout) > .header-notice .header-notice__open {
    display: block;
    width: max-content;
    padding: 0;
  }

  :where(#body_wrap.efreedive-root-layout) > .header-notice .header-notice__track {
    width: max-content;
  }

  :where(#body_wrap.efreedive-root-layout) > .header-notice .header-notice__item {
    padding-right: 30px;
    font-size: 12px;
  }

  :where(#body_wrap.efreedive-root-layout) > .header-notice .header-notice__item + .header-notice__item {
    display: inline-flex;
  }

  :where(#body_wrap.efreedive-root-layout) > .header-notice .header-notice__toggle {
    display: flex;
  }

  :where(#body_wrap.efreedive-root-layout) > .header-notice-popup .header-notice-popup__panel {
    padding: 44px 18px 24px;
  }

  :where(#body_wrap.efreedive-root-layout) > .header-notice-popup .header-notice-popup__panel p {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(#body_wrap.efreedive-root-layout) > .header-notice .header-notice__toggle {
    display: none;
  }

  :where(#body_wrap.efreedive-root-layout) > .header-notice .header-notice__scroller {
    overflow: hidden;
  }

  :where(#body_wrap.efreedive-root-layout) > .header-notice .header-notice__open,
  :where(#body_wrap.efreedive-root-layout) > .header-notice .header-notice__track {
    width: 100%;
  }

  :where(#body_wrap.efreedive-root-layout) > .header-notice .header-notice__item {
    width: 100%;
    padding: 0 12px;
  }

  :where(#body_wrap.efreedive-root-layout) > .header-notice .header-notice__item + .header-notice__item {
    display: none;
  }

  :where(#body_wrap.efreedive-root-layout) > .header-notice .header-notice__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
