.header {
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 9999;
}

.header {
  font-family: 'ヒラギノ角ゴ ProN W3', 'Hiragino Kaku Gothic ProN', 'YuGothic', '游ゴシック', 'メイリオ', Meiryo, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

.header * {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.navbar a {
  margin: 0;
  padding: 0;
  vertical-align: baseline;
  text-decoration: none;
  color: inherit;
  font-size: 1rem;
}

.n-container {
    width: 100%;
    margin: 0 auto;
}
  
@media screen and (max-width: 768px) {
    .n-container {
        width: 100%;
    }
}
  

@media screen and (max-width: 768px) {
    .header {
      position: fixed;
      width: 100%;
      background-color: #fff;
      z-index: 100;
      top: 0;
      left: 0;
    }
}

.n_header {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

@media screen and (max-width: 768px) {
    .n_header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      height: 50px;
      border-bottom: solid 1px #A68E6C;
    }
}
  
.n_header .logo {
    text-align: center;
    width: 95%;
    margin: 0 auto;
    border-bottom: solid 1px #A68E6C;
    padding-top: 12px;
    padding-bottom: 3px;
    font-size: 12px;
    line-height: 140%;
}

.n_header .logo img {
  width: 15%;
  min-width: 250px;
}

@media screen and (max-width: 768px) {
    .n_header .logo {
      display: flex;
      align-items: center;
      width: fit-content;
      height: 50px;
      text-align: left;
      border-bottom: none;
      padding: 4px 0 0;
      margin: 0;
    }
    .n_header .logo a{
      display: block;
    }
    .n_header .logo img {
      /* margin-top: -2px; */
      margin-left: 2.5%;
      width: 45%;
      max-width: 200px;
    }
}
  


.n_header .navbar {
    text-align: center;
    list-style: none;
    margin-left: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: space-evenly;
        -ms-flex-pack: space-evenly;
            justify-content: space-evenly;
}

@media screen and (max-width: 768px) {
    .n_header .navbar {
        display: none;
    }
}

.n_header .navbar li {
    display: block;
    float: left;
    height: 40px;
    margin: 14px 10px 0px 10px;
    font-weight: 700;
    flex-grow: 1;
}

.n_header .navbar li .btn1 {
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: 12px;
    transition: all .5s ease-out;
}

.n_header .navbar li .animation:after {
  position: absolute;
  content: '';
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #C1A13A;
  animation: nav-hover-animation .25s ease-out forwards;
}

.n_header .navbar li .btn1:hover {
    opacity: 1;
}

@keyframes nav-hover-animation {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}


.n_header .navbar li .current {
    display: block;
    width: 100%;
    padding-bottom: 12px;
    color: #C1A13A;
    border-bottom: solid 2px #C1A13A;
}
  

/* Corporate service entrance */
.nav-employer__text { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.nav-employer__text small { font-size: 11px; font-weight: 400; line-height: 1.3; color: #5e5e71; }
.nav-employer__text > span { font-size: 14px; font-weight: 700; line-height: 1.5; white-space: nowrap; }

/* Mobile navigation */
.global-nav { display: none; }
.hamburger { display: none; }

@media screen and (max-width: 768px) {
  html.mobile-nav-open, body.mobile-nav-open { overflow: hidden; }
  .global-nav {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    color: #000133;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform .25s ease, visibility .25s;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
  }
  .nav-open .global-nav { visibility: visible; transform: translateX(0); }
  .global-nav a { text-decoration: none; color: #000133 !important; }
  .global-nav a:hover { opacity: 1; }
  .global-nav button, .hamburger { font: inherit; cursor: pointer; appearance: none; }
  .global-nav ul { list-style: none; margin: 0; padding: 0; }
  .global-nav li { float: none; width: auto; margin: 0; padding: 0; }
  .global-nav h2 { margin: 0; padding: 0; border: 0; background: none; color: inherit; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.5; }
  .global-nav-header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 20px;
    border-bottom: 1px solid #e6e6eb;
    background: #fff;
  }
  .mobile-nav-brand { display: block; line-height: 0; }
  .mobile-nav-brand img { width: 200px; max-width: 100%; height: auto; }
  .mobile-nav-close {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    min-height: 52px;
    margin: 0 -8px 0 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #000133;
  }
  .mobile-nav-close span:first-child { font: 32px/1 Arial, sans-serif; font-weight: 300; }
  .mobile-nav-close span:last-child { font-size: 10px; }
  .mobile-nav-content { padding: 20px 20px calc(32px + env(safe-area-inset-bottom)); }
  .mobile-nav-search { padding: 20px; background: #000133; color: #fff; border-radius: 4px; }
  .mobile-nav-search form { margin: 14px 0 0; padding: 0; }
  .mobile-nav-search-field { display: flex; min-height: 48px; background: #fff; border-radius: 3px; overflow: hidden; }
  .mobile-nav-search-field input[type="search"] {
    flex: 1;
    width: 0;
    min-width: 0;
    height: 48px;
    margin: 0;
    padding: 0 10px;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #000133;
    font: inherit;
    font-size: 16px;
    appearance: none;
  }
  .mobile-nav-search-field input::placeholder { color: #666; font-size: 12px; opacity: 1; }
  .mobile-nav-search-field button { flex: 0 0 56px; margin: 2px; padding: 0; border: 0; border-radius: 2px; background: #ffce27; color: #000133; font-weight: 700; }
  .mobile-nav-search-links { display: grid; grid-template-columns: 1fr 1.25fr; margin-top: 8px; gap: 8px; }
  .mobile-nav-search-links a { display: flex; align-items: center; min-height: 44px; color: #fff !important; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
  .mobile-nav-start { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
  .mobile-nav-start a { display: flex; flex-direction: column; justify-content: center; min-height: 82px; padding: 12px; border-radius: 4px; }
  .mobile-nav-start__guide { border: 1px solid #d7d7e1; background: #fff; }
  .mobile-nav-start__consult { border: 1px solid #ffce27; background: #ffce27; }
  .mobile-nav-start small { display: block; font-size: 11px; margin-bottom: 5px; }
  .mobile-nav-start span { font-size: 14px; font-weight: 700; }
  .mobile-nav-section { margin-top: 28px; }
  .mobile-nav-section > h2 { margin-bottom: 12px; font-size: 13px; color: #5e5e71; letter-spacing: .06em; }
  .mobile-nav-explore { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .mobile-nav-explore a { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 84px; padding: 14px 12px; border: 1px solid #e2e2e9; border-radius: 4px; background: #f6f6f9; }
  .mobile-nav-explore span { display: block; font-size: 14px; font-weight: 700; }
  .mobile-nav-explore small { display: block; margin-top: 5px; font-size: 11px; color: #5e5e71; }
  .mobile-nav-explore .mobile-nav-explore__feature { grid-column: 1 / -1; }
  .mobile-nav-explore__feature a { padding-right: 32px; background: #f8f5ed; border-color: #e8dfcb; }
  .mobile-nav-explore__feature small { margin: 0 0 4px; font-size: 11px; color: #5c5038; }
  .mobile-nav-explore__feature span { font-size: 16px; }
  .mobile-nav-explore__feature a::after, .mobile-nav-row::after { content: ''; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
  .mobile-nav-explore__feature a::after { position: absolute; right: 18px; top: calc(50% - 3px); }
  .global-nav .mobile-nav-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 2px; border-bottom: 1px solid #e6e6eb; font-size: 14px; font-weight: 700; }
  .mobile-nav-details { border-bottom: 1px solid #e6e6eb; }
  .mobile-nav-details summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 2px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 700; }
  .mobile-nav-details summary::-webkit-details-marker { display: none; }
  .mobile-nav-details summary::after { content: '+'; flex: 0 0 16px; font: 20px/1 Arial, sans-serif; text-align: center; }
  .mobile-nav-details[open] summary::after { content: '−'; }
  .mobile-nav-details ul { padding: 0 12px 10px; }
  .mobile-nav-details li a { display: flex; align-items: center; min-height: 44px; padding: 10px 0; font-size: 13px; }
  .mobile-nav-secondary { margin: 28px -20px -32px; padding: 8px 20px calc(32px + env(safe-area-inset-bottom)); background: #f6f6f9; }
  .global-nav .mobile-nav-secondary .mobile-nav-row, .mobile-nav-secondary summary { font-weight: 400; }
  .global-nav .mobile-nav-row.nav-employer { min-height: 68px; }
  .global-nav .mobile-nav-row:has(.mobile-nav-external)::after { display: none; }
  .mobile-nav-external { font-size: 18px; }
  .global-nav a:focus-visible, .global-nav button:focus-visible, .global-nav summary:focus-visible, .hamburger:focus-visible { outline: 2px solid #a68e6c; outline-offset: 3px; }
  .mobile-nav-search input:focus-visible { outline: 2px solid #000133; outline-offset: -3px; }
  .mobile-nav-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .hamburger { display: block; position: relative; flex: 0 0 44px; height: 44px; margin: 0 12px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #000133; }
  .hamburger__line { position: absolute; left: 8px; width: 28px; height: 2px; background: #000133; }
  .hamburger__line--1 { top: 7px; }
  .hamburger__line--2 { top: 15px; }
  .hamburger__line--3 { top: 23px; }
  .hamburger_txt { position: absolute; top: 29px; left: 0; width: 100%; font-size: 9px; line-height: 1.5; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .global-nav { transition: none; } }

/* ナビゲーション */

.n_header .todaysnumber {
  font-size: var(--header-utility-caption-size);
  line-height: 1.5;
  text-align: right;
  white-space: nowrap;
}

.n_header .todaysnumber .allnumber {
  font-size: var(--header-utility-font-size);
  font-weight: 700;
  color: #A28F71;
  margin: 0;
}

.n_header .todaysnumber .voicecount {
  font-size: var(--header-utility-font-size);
  font-weight: 700;
  color: #A28F71;
  margin: 0;
}

.n_header .todaysnumber b {
  display: block;
}

.topicpath {
  width: 100%;
  /* height: 40px; */
  background: #F3F5F7;
  margin: 0 auto 30px;
}

.topicpath ol {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1010px;
  height: 100%;
  font-size: 12px;
  padding: 0 16px;
  margin: 0 auto;
}

.topicpath ol li {
  font-weight: normal;
  margin: 0;
}

.topicpath ol li + li {
  margin-left: 10px;
}

.topicpath ol li + li:before {
  position: relative;
  top: -1.5px;
  /* content: ">"; */
  margin-right: 10px;
}

.topicpath ol li a {
  color: #433E81;
  font-weight: normal;
  text-decoration: none;
}

.topicpath ol li a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .n_header .todaysnumber {
    display: none;
  }
  .topicpath {
    display: none;
  }
}

.header-utilities {
  --header-utility-font-size: 16px;
  --header-utility-caption-size: 12px;
  position: absolute;
  top: 0;
  right: 2.5%;
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--header-brand-row-height);
}

.header-utilities .todaysnumber { margin-right: 12px; }

.n_header .header_recruit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 4px;
  padding: 8px 14px;
  border: 2px solid #000133;
  background: #fff;
  color: #000133 !important;
  font-size: var(--header-utility-font-size);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.n_header .header_employer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  min-height: 48px;
  padding: 4px 12px;
  border: 2px solid #000133;
  background: #000133;
  color: #fff !important;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.header_employer small { font-size: var(--header-utility-caption-size); line-height: 1.2; font-weight: 400; }
.header_employer > span { font-size: var(--header-utility-font-size); line-height: 1.25; font-weight: 700; }
.n_header .header_employer:hover { background: #fff; color: #000133 !important; opacity: 1; }
.n_header .header_employer:focus-visible { outline: 2px solid #000133; outline-offset: 3px; }

.header_recruit__arrow {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

.n_header .header_recruit:hover {
  background: #000133;
  color: #fff !important;
  opacity: 1;
  text-decoration: none;
}

.n_header .header_recruit:focus-visible {
  outline: 2px solid #000133;
  outline-offset: 3px;
}

@media screen and (min-width: 769px) {
  .n_header {
    --header-brand-row-height: 56px;
  }

  .n_header > .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: var(--header-brand-row-height);
    padding: 0;
  }

  .n_header > .logo > a {
    display: block;
    line-height: 0;
  }

  .n_header > .logo img {
    width: 250px;
    min-width: 0;
    height: auto;
  }

  .n_header .navbar {
    width: 95%;
    margin: 0 auto;
    justify-content: space-between;
  }

  .n_header .navbar li {
    flex-grow: 0;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Pages with a count need more space than the top page. */
@media screen and (min-width: 769px) and (max-width: 1350px) {
  .n_header:not(.top) > .logo { justify-content: flex-start; }
}

@media screen and (min-width: 769px) and (max-width: 960px) {
  .n_header.top > .logo { justify-content: flex-start; }
}

@media screen and (min-width: 769px) and (max-width: 1000px) {
  .n_header .navbar a { font-size: 14px; }

  .header-utilities .todaysnumber { margin-right: 4px; }

  .header-utilities {
    --header-utility-font-size: 14px;
    gap: 8px;
  }

}

@media screen and (max-width: 768px) {
  .header-utilities {
    display: none;
  }

  .n_header .logo {
    width: calc(100% - 72px);
    padding-left: 12px;
  }

  .n_header .logo a {
    width: 100%;
  }

  .n_header .logo img {
    width: 100%;
    min-width: 0;
    max-width: 200px;
    height: auto;
    margin-left: 0;
  }

  .main_visual {
    margin-top: 50px;
  }

  #wrapper {
    padding-top: 50px;
  }
}
