@charset "UTF-8";

body {
  margin: 0;
  padding: 0;
}

/* =========================
   GLOBAL NAV
========================= */

.global-nav {
  background-color: #5fa695;
  padding-bottom: 15px;
}

.nav-list {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  list-style: none;
}

/* =========================
   NAV ITEM
========================= */

.nav-item {
  position: relative;
  text-align: center;
  flex-grow: 1;
}

/* 各項目幅 */

.item-1 {
  flex: 1 0 6.2499%;
}

.item-2 {
  flex: 1 0 10.9999%;
}

.item-3 {
  flex: 1 0 10.0309%;
}

.item-4 {
  flex: 1 0 10.7729%;
}

.item-5 {
  flex: 1 0 7.8119%;
}

.item-6 {
  flex: 1 0 9.9609%;
}

.item-7 {
  flex: 1 0 9.1479%;
}

.item-8 {
  flex: 1 0 8.113%;
}

.item-9 {
  flex: 1 0 7.2889%;
}

.item-10 {
  flex: 1 0 8.1089%;
}

/* =========================
   LINK
========================= */

.nav-item a {
  font-family: 'futura-pt', sans-serif;
  font-weight: 400;
  font-style: normal;

  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 90px;

  padding: 0 5px;

  box-sizing: border-box;

  color: #fff;
  text-decoration: none;
  text-align: center;
  line-height: 1.4;
  font-size: 16px;

  overflow: hidden;
  white-space: nowrap;

  transition: color 0.3s ease;
}

/* =========================
   UNDER LINE
========================= */

.nav-item::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 1px;

  background: #fff;

  transition: background 0.3s ease;
}

.nav-item:hover::after {
  background: #eb6100;
}

/* =========================
   TEXT SWITCH
========================= */

/* 英語 */

.nav-item .en {
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

/* 日本語 */

.nav-item .jp {
  position: absolute;

  opacity: 0;
  transform: translateY(15px);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

/* hover時 */

.nav-item:hover .en {
  opacity: 0;
  transform: translateY(-15px);
}

.nav-item:hover .jp {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1023px) {
  .global-nav {
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .nav-list {
    width: max-content;
    min-width: 1280px;
  }
}
