@charset "UTF-8";

.header {
  white-space: nowrap;
  position: fixed;
  background: #464b72;
  display: flex;
  align-items: center;
  top: 0;
  left: 0;
  height: 70px;
  padding: 0 20px;
  justify-content: space-between;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* decotta*/
}

.header img {
  width: 200px;
  margin-top: 8px;
}



.nav {
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 17px;
  justify-content: space-evenly;
  margin-right: 35px;
}

.nav_menu_item {
  flex: 1;
  text-align: center;
  margin: 0;
}

.buttonIconText {
  text-decoration: none;
  display: flex;
  gap: 8px;
  align-items: center;
  width: 150px;
  height: 32px;
  padding: 4px 20px 4px 4px;
  font-family: sans-serif;
  font-size: 16px;
  color: #2f3775;
  text-align: center;
  overflow-wrap: anywhere;
  background-color: white;
  border-radius: 32px;
}

.buttonIconText__reverse {
  flex-direction: row-reverse;
  padding: 8px 8px 8px 40px;
}

.buttonIconText_icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 34px;
  aspect-ratio: 1;
  padding: 4px;
  overflow: hidden;
  background-color: #fff;
  border-radius: 50%;
  font-weight: bold;
}

.buttonIconText_text {
  flex-shrink: 1;
  width: 100%;
  font-weight: bold;
  text-decoration: none;
}

a.nav_menu_item,
.dropdown-link {
  width: auto;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  width: 50%;
  text-align: center;
  font-size: 17px;
  text-decoration: none;
  position: relative;
  margin: 0 15px;
  font-weight: bold;
  color: #2f3775;
  background: white;
  transition: 0.3s ease-in-out;
  margin: 6px;
}
.dropdown-link {
  margin-right: 70px;

}

a.dropdown-link::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  border: 2px solid rgb(140, 140, 140);
  transition: 0.2s;
}

a.nav_menu_item:hover::before,
a.dropdown-link:hover::before {
  top: 0;
  left: 0;
}
.dropdown-content a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 17px;
  font-weight: bold;
  color: #2f3775;
  background: white;
  text-decoration: none;
  border: 2px solid #2f3775;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
.dropdown-content a:hover {
  background: #2f3775;
  color: #fff;
}

a.nav_menu_item::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  border: 2px solid rgb(140, 140, 140);
  transition: 0.2s;
}
a.nav_menu_item:hover,
.dropdown-link:hover {
  background: #2f3775;
  color: #fff;
}
a.nav_menu_item:hover::before {
  top: 0;
  left: 0;
}

.nav {
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 17px;
  flex: 1;
  justify-content: right;
  margin-right: 35px;
}

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

.dropdown-content {
  display: none;
  min-width: 320px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  position: absolute;
  top: 100%;
  left: 0;
  padding: 0;
}

.dropdown-content a {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 17px;
  font-weight: bold;
  color: #2f3775;
  text-decoration: none;
  border: 2px solid rgb(140, 140, 140);
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background: #2f3775;
  color: #fff;
}

.dropdown:hover .dropdown-content {
  display: flex;
  flex-direction: column;
  padding-top: 6px;
}

.dropdown-link:hover {
  background: #2f3775;
  color: #fff;
}

.menu-toggle {
  flex-direction: column;
  cursor: pointer;
  margin-right: 35px;
}

.menu-toggle .bar {
  height: 3px;
  width: 25px;
  background-color: white;
  margin: 3px 0;
}

@media (max-width: 1020px) {
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 75px;
    right: 13px;
    background-color: #464b72;
    width: 250px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  }

  .nav.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .nav_menu_item {
    margin: 15px 0;
    padding: 0;
    color: white;
  }
  .dropdown-content {
    margin-right: 100px;
  }

  .dropdown-content a {
    margin-right: 100px;
    text-align: center;
    padding-left: 100px;
  }
}

@media (any-hover: hover) {
  .buttonIconText {
    transition: background-color 0.2s;
  }

  .buttonIconText_icon_item {
    transition: background-color 0.2s;
  }

  .buttonIconText:hover {
    background-color: rgb(140, 140, 140);
    color: #fff;
  }

  .buttonIconText:hover .iconEmail rect,
  .buttonIconText:hover .iconEmail path{
    background-color: rgb(140, 140, 140);
    stroke: #8c8c8c ;       
    fill: #fff;
  }
}


@media (max-width: 768px) {
  .header {
    align-items: flex-start;
    height: auto;
  }

  .header img {
    width: 200px;
    padding-top: 7px;
    margin: 10px 0;
  }

  .nav {
    flex-direction: column;
    padding: 10px;
    margin-right: 0;
  }

  .nav_menu_item {
    width: 100%;
    margin: 5px 0;
    padding-left: 80px;
  }

  .dropdown-content {
    min-width: 100%;
    position: static;
    box-shadow: none;
    padding-left: 50px;
  }

  .dropdown-content a {
    padding-left: 20px;
  }

  .menu-toggle {
    margin-right: 15px;
    margin-top: 2px;
    padding: 10px; /* パディングを追加 */
  }
}
