/* ===============================
   Header
=============================== */
.site-header {
  height: 80px;
  background-color: #204A99;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* inner */
.header-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===============================
   Left (logo + company)
=============================== */
.header-logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo {
  width: 60px;
  height: 60px;
  display: block;
}

/* company text */
.header-company {
  display: flex;
  align-items: center;
  margin-left: 15px;
}

.company-type {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-right: 15px;
  line-height: 1;
}

.company-name {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

/* ===============================
   Navigation
=============================== */
.header-nav {
  
}

.nav-list {
  display: flex;
  align-items: center;
  
}

.nav-item {
  display: flex;
  align-items: center;
  
  border-right: 1px solid #D4D4D4;
}

/* 1項目目だけ左線を追加 */
.nav-item:first-child {
  border-left: 1px solid #D4D4D4;
}

.nav-item a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
  padding: 0 30px;
  text-decoration: none;
}

.nav-item .jp {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  line-height: 1;
  transition: color 0.3s ease;
}

.nav-item .en {
  font-size: 14px;
  font-weight: 500;
  color: #C4D8FF;
  margin-top: 3px;
  line-height: 1;
}

.nav-item a:hover .jp {
  color: #C4D8FF;
}

/* ===============================
   SP menu button
=============================== */
.sp-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1002;
  
}

.sp-menu-button span {
  display: block;
  width: 30px;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 7px;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.sp-menu-button span:nth-child(1) {
  top: 12px;
}

.sp-menu-button span:nth-child(2) {
  top: 21px;
}

.sp-menu-button span:nth-child(3) {
  top: 30px;
}

.sp-menu-button.is-open span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

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

.sp-menu-button.is-open span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* ===============================
   SP menu
=============================== */
.sp-menu-overlay {
  display: none;
}

.sp-menu-panel {
  display: none;
}

/* ===============================
   SP
=============================== */
@media screen and (max-width: 768px) {
  .site-header {
    height: 80px;
  }

  .header-inner {
    width: 100%;
    
  }

.header-company {
    display: flex; /* ← none → flex に変更 */
  }

  .header-nav {
    display: none;
  }

  .sp-menu-button {
    display: block;
  }

  .sp-menu-overlay {
    display: block;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
  }

  .sp-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

.sp-menu-panel {
    text-align: center;
    display: block;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;

    height: calc(100vh - 80px); /* ← 追加 */
    background: #204A99;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.3s;
    z-index: 999;
  }

  .sp-menu-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .sp-menu-list {
    margin: 0;
    padding: 24px 20px 28px;
    list-style: none;
  }

  .sp-menu-list li + li {
    margin-top: 20px;
  }

  .sp-menu-list a {
    display: block;
    text-decoration: none;
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;
  }
}

/* ===============================
   Body scroll lock
=============================== */
body.menu-open {
  overflow: hidden;
}