html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

.pc_indent {
  display: none;
}

header {
  position: relative;
  top: 0;
  left: 0;
  width: 100vw;
  background-color: white;
  z-index: 1000;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
  z-index: 10;
}

.header {
  display: flex;
  height: 80px;
  align-items: center;
  width: 100%;
  padding: 21px 27px;
  justify-content: center;
  margin: 0 auto;
}

.header_menu__dropdown {
  position: relative;
  display: inline-block;
}

.hover-modal__links {
  position: absolute;
  top: 100%; /* Align the dropdown below the parent */
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.header_menu__dropdown:hover .hover-modal__links {
  opacity: 1;
  visibility: visible;
}

nav.header_menu ul li .hover-modal__links a {
  background: black;
  color: white;
  padding: 6px 5px;
  text-align: center;
}

nav.header_menu ul li .hover-modal__links a:hover {
  opacity: 0.8;
}

.header_menu__dropdown {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.hover-modal__links {
  display: block;
  position: absolute;
  visibility: hidden;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  background-color: black;
  color: white;
  padding: 10px 5px 10px 5px;
  z-index: 1;
  width: 94px;
  height: 91px;
  opacity: 0;
  transition: all 0.3s ease;
}

.header_menu__dropdown:hover .hover-modal__links {
  opacity: 1;
  visibility: visible;
}

.header_menu__dropdown::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 48px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.hover-modal__links::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 6px 10px 6px;
  border-style: solid;
  border-color: transparent transparent black transparent;
}

.hover-modal__links a {
  display: block;
  padding: 5px 10px;
  text-decoration: none;
  color: white;
  font-size: 12px;
}

.header__logo {
  display: block;
  width: 233px;
  min-width: 233px;
  height: 60px;
  white-space: nowrap;
  line-height: 35px;
  background-image: url(./assets/images/common/logo.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.header__logo span {
  color: #000000;
  font-optical-sizing: auto;
  font-weight: 700;
  white-space: nowrap;
}

.header__logo span:first-child {
  font-size: 20px;
}

.header__logo span:last-child {
  font-size: 24px;
}

@media (max-width: 360px) {
  .header {
    padding: 21px 24px;
  }

  .header__logo span:first-child {
    font-size: 18px;
  }

  .header__logo span:last-child {
    font-size: 22px;
  }
}

.header_mobile a {
  color: #727272;
}

.mobile_menu__wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: #1f208b;
  color: white;
  z-index: 1000;
}

.mobile_menu {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 16px 30px;
  max-width: 375px;
  margin: 0 auto;
}

.mobile_menu__item__img {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 30px;
}

.mobile_menu__item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  align-items: center;
  gap: 12px;
  color: white;
}

.mobile_menu__item:first-child .mobile_menu__item__img {
  background-image: url(./assets/images/common/home.png);
  height: 24px;
}

.mobile_menu__item:nth-child(2) .mobile_menu__item__img {
  background-image: url(./assets/images/common/news.png);
  height: 26px;
}

.mobile_menu__item:nth-child(3) .mobile_menu__item__img {
  background-image: url(./assets/images/common/mail.png);
  height: 24px;
}

.mobile_menu__item:last-child .mobile_menu__item__img {
  background-image: url(./assets/images/common/hamburger.png);
  width: 40px;
  height: 24px;
}

.mobile_menu__item__text {
  font-family: "Roboto", sans-serif;
  font-size: 12px;
}

.hamburger_menu_line {
  position: relative;
  display: block;
  height: 3px;
  width: 32px;
  background-color: white;
  border-radius: 1.5px;
  margin: 0 auto;
}

.hamburger_menu_line:first-child {
  top: 0px;
}

.hamburger_menu_line:nth-child(2) {
  top: 5px;
}

.hamburger_menu_line:nth-child(3) {
  top: 10px;
}

.hamburger_menu_sign {
  position: relative;
  color: white;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: -1px;
  top: 15px;
  font-family: "Noto Sans JP", sans-serif;
}

.pop-up_menu {
  position: fixed;
  top: 0;
  height: 100%;
  right: -100%;
  width: 100%;
  background-color: #1f208b;
  z-index: 1000;
  display: flex;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-left: 12px;
  padding-right: 12px;
  transition: 0.3s ease;
  overflow-y: auto;
  color: white;
}

.pop-up_menu * {
  font-family: "Noto Serif JP", sans-serif;
}

.pop-up_menu ul {
  width: fit-content;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 19vh;
}

.pop-up_menu ul ul {
  margin: 30px auto 0 10px;
}

.pop-up_menu ul a {
  display: block;
  color: white;
  font-size: 16px;
}

.pop-up_menu .ec-link a {
  width: 185px;
  margin-bottom: 0;
}

.close-button {
  font-family: "Roboto", sans-serif;
  position: absolute;
  bottom: 16px;
  right: 28px;
  background: none;
  border: none;
  font-size: 12px;
  color: #000000;
  transition: box-shadow 0.7s ease;
  cursor: pointer;
  width: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.close-button:active {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  border-radius: 50%;
}

.close_button__img {
  background-image: url(./assets/images/common/close.png);
  width: 30px;
  height: 30px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0 auto;
}

.close_button_text {
  font-size: 12px;
  text-align: center;
  color: white;
  line-height: 22px;
}

.menu-item {
  position: relative;
  display: flex;
  transition: box-shadow 0.3s ease;
  justify-content: space-between;
  z-index: 1;
}

.pop-up_menu__nav li:first-child .menu-item {
  margin-top: 0;
}

.menu_arrow {
  position: relative;
  top: -2px;
  transition: filter 0.3s ease-out;
}

.menu-open {
  right: 0;
}

.pop-up_menu__nav {
  color: #fff;
  margin-top: 127px;
}

.pop_up_menu__logo {
  margin-top: 30px;
  color: #ffffff;
  text-align: center;
}

.pop_up_menu__logo > * {
  display: block;
}

.pop_up_menu__logo img {
  width: 180px;
  margin: 20px auto 0 auto;
}

.pop_up_menu__logo span:nth-of-type(2) {
  margin-top: 20px;
}

nav.header_menu {
  display: none;
}

.title {
  width: fit-content;
  margin: 0 auto;
  text-align: center;
}

.title h2 {
  font-family: "Oswald", sans-serif;
  font-size: 40px;
  color: #fff500;
  line-height: 42px;
}

.title span {
  color: white;
  font-size: 20px;
  font-weight: 700;
  line-height: 42px;
  font-family: "Noto Serif JP", sans-serif;
}

.figure_button {
  display: block;
  width: 100%;
  max-width: 320px;
  height: 60px;
  background-image: url(./assets/images/common/figure_button.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  text-align: center;
  line-height: 60px;
  font-family: "Noto Serif JP", sans-serif;
  font-weight: 700;
  margin: 35px auto 0;
  color: black;
}

footer,
footer * {
  background-color: #123a78;
  color: white;
  font-family: "Noto Serif JP", sans-serif;
  text-align: center;
}

footer .address {
  font-size: 12px;
  font-weight: 500;
  line-height: 28px;
}

footer {
  padding: 40px 0;
}

footer a:hover {
  opacity: 0.8;
}

.footer_nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  font-weight: 700;
}

footer .figure_button * {
  background-color: white;
  color: black;
  margin-top: 0;
}

footer .figure_button img {
  width: 20px;
  position: relative;
  top: -2px;
  margin-right: 3px;
}

.footer__contact__text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  line-height: 16px;
  margin-top: 10px;
}

.footer__contact__item:last-of-type a span {
  font-size: 20px;
  font-weight: 700;
}

.address {
  margin-top: 40px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
}

body::after {
  display: block;
  padding: 13px 0px;
  width: 100%;
  content: "COPYRIGHT © Okinawa Ship Chandlers Co.,LTD. ALL RIGHT RESERVED.";
  background-color: black;
  font-size: 10px;
  text-align: center;
  font-family: "Noto Sans JP", sans-serif;
  color: white;
  margin-bottom: 80px;
}

.footer__contact_wrapper {
  display: flex;
  flex-direction: column;
  gap: 21px;
  margin-top: 40px;
}

.footer__contact_wrapper .figure_button {
  margin-top: 0px;
}

@media (min-width: 768px) {
  .pc_indent {
    display: initial;
  }

  .sp_indent {
    display: none;
  }

  main::before {
    width: 100%;
    height: 78px;
    content: "";
    display: block;
  }

  header {
    position: fixed;
  }

  .header {
    display: flex;
    width: 100%;
    max-width: 1000px;
    justify-content: space-between;
    gap: 46px;
    align-items: center;
    font-family: "Noto Serif JP", sans-serif;
    font-weight: 700;
    padding: 21px 0px;
  }

  .mobile_menu__wrapper,
  .pop-up_menu {
    display: none;
  }

  nav.header_menu {
    display: block;
  }

  nav.header_menu ul {
    display: flex;
    align-items: center;
    gap: 30px;
  }

  /* nav.header_menu ul li {
    white-space: nowrap;
  } */

  nav.header_menu ul li:not(:last-child) {
    width: fit-content;
  }

  nav.header_menu ul li a {
    color: #000;
  }

  .header_menu li:last-child {
    display: block;
    width: calc(174px + (90 * ((100vw - 768px) / 598)));
    max-width: 174px;
  }

  .header_menu li:last-child a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 174px;
    height: 48px;
    background-color: #1f208b;
    border-radius: 24px;
    color: white;
    font-weight: 500;
    margin-left: 15px;
  }

  .header_menu li:last-child img {
    width: 20px;
    height: 16px;
  }

  .footer_nav {
    flex-direction: row;
    max-width: 722px;
    margin: 0 auto;
  }

  .address {
    margin-top: 46px;
  }

  body::after {
    margin-bottom: 0;
  }

  .footer__contact_wrapper {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }

  .figure_button {
    min-width: 320px;
  }

  footer {
    padding: 66px 0 60px;
  }
}

@media (min-width: 768px) and (max-width: 1000px) {
  .header {
    gap: 20px;
  }

  nav.header_menu ul {
    gap: 20px;
  }
  .header_menu li:last-child {
    width: 180px;
  }

  .header_menu li:last-child a {
    width: 150px;
    margin-left: 0;
  }
}

@media (min-width: 768px) and (max-width: 1066px) {
  .header {
    padding: 21px 27px;
  }
}

@media (max-width: 828px) {
  nav.header_menu ul a,
  .header_menu li:last-child a {
    font-size: 14px;
  }
}
@media (min-width: 1366px) {
  .header_menu li:last-child {
    width: 270px;
  }
}
