/* ===============================
   ヘッダー
================================ */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e9f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.header-inner {
  max-width: 1280px;
  height: 92px;
  display: flex;
  align-items: center;
  padding: 0 24px;
}
/* ナビ */
.site-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}
.nav-text {
  font-size: 14px;
  white-space: nowrap;
}

/* ロゴ */
.site-logo {
  width: 260px;
}

.site-logo a {
  text-decoration: none;
  color: #2c1f3d;

}

.site-logo-title {
  font-size: 30px;
  font-weight: bold;
  line-height: 1;
  white-space: nowrap;
}

.site-logo-sub {
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
}

/* ナビ */
.header-nav {
  display: flex;
  justify-content: center;
  height: 100%;
}

.header-nav ul {
  display: flex;
  align-items: center;
  gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-nav li {
  height: 100%;
  display: flex;
  align-items: center;
}

.header-nav a {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 8px;
  color: #111827;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
}

.header-nav a:hover {
  color: #2faf8f;
}

/* 現在ページ*/
.header-nav a {
  position: relative;
  width: fit-content;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  color: #111827;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
}

.header-nav a.active::after {
  content: "";
  position: absolute;
  left: calc(50% + 14px);
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  min-width: 64px;
  height: 4px;
  background: #42c6a5;
  border-radius: 999px 999px 0 0;
}

/* 右側の余白用 */
.header-user {
  width: 260px;
  text-align: right;
  font-size: 14px;
  color: #374151;
}

/* スマホ */
@media screen and (max-width: 768px) {

  .header-inner {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 16px;
  }
  .site-logo,
  .header-user {
    width: 100%;
  }
  .header-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }
  .header-nav ul {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 0;
    padding: 0;
    margin: 0;
  }
  .header-nav li {
    flex: 1;
  }
  .header-nav a,
  .nav-item {
    width: 100%;
    min-width: 0;
    height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;

    white-space: nowrap;
    overflow: hidden;
    font-size: 11px;
  }
  .nav-icon {
    font-size: 18px;
    line-height: 1;

    width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
  }
  .nav-text {
    font-size: 11px;
    white-space: nowrap;
  }
  .nav-item.active::after {
    left: 6px;
    right: 6px;
    height: 3px;
  }
}