/* 共通スタイル */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

body.menu-open .header{visibility:visible;}

/* ヘッダー */
.header {
  width: 100%;
  height: 90px;
  background: rgba(31, 59, 153, 1);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.header_inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header_logo {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  margin: 10px;
}

.header_logo_link {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header_logo_link .logo_text {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  position: relative;
  top: -1px;
}

.header_logo img {height:40px;}

/* ナビゲーション */
/* Desktop default nav */
.nav {
  display: flex;
  gap: 2rem;
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: #1746a0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 48px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding-top: 0;
    z-index: 1200;
  }
  .nav.active{
    display:flex;
    transform: translateX(0);
  }
}

.nav_list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav_link {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.3s;
  font-size: 18px;
}

.nav_link:hover {
  opacity: 0.7;
}

/* メインコンテンツ */
main {
  margin-top: 90px;
  min-height: calc(100vh - 250px);
  background-color: transparent;
}

/* フッター */
.footer {
  width: 100%;
  background: rgba(31, 59, 153, 1);
  color: #fff;
  padding: 4rem 0 2rem 0;
}

.footer_inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer_content_top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.footer_company_name {
  font-size: 24px;
  font-weight: bold;
}

.footer_company_link {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer_company_link .logo_text {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}

.footer_company_name img {height:32px;}

.footer_nav_list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.footer_nav_link {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.3s;
}

.footer_nav_link:hover {
  opacity: 0.7;
}

.footer_divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin: 20px 0;
}

.footer_copyright {
  font-size: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

/* お問い合わせセクション */
.contact_section_wrapper {
  background-color: #fff;
  padding: 80px 0;
  text-align: center;
}

.contact_section_wrapper .section_inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background-color: #f7f7f7;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact_section_wrapper .section_title {
  font-size: 2rem;
  color: #0C0C70;
  margin-bottom: 10px;
  font-style: normal;
  display: inline-block;
  position: relative;
}

.contact_section_wrapper .section_title::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 40px;
  background-color: #e04040;
}

.contact_section_wrapper .section_subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 20px;
  display: block;
  text-align: center;
}

.contact_description {
  font-size: 16px;
  color: #555;
  margin: 20px 0 40px;
  line-height: 1.6;
  white-space: nowrap; /* 行を折り返さない */
  overflow: visible;   /* はみ出しを許可 */
}

.contact_button {
  display: inline-block;
  padding: 15px 50px;
  border: 1px solid #333;
  border-radius: 5px;
  color: #333;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.contact_button:hover {
  background-color: #333;
  color: #fff;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .header_inner {
    position: relative;
  }
  .hamburger {
    width: auto;          /* テキスト長に合わせる */
    min-width: 48px;      /* アイコン最小幅 */
    align-items: center;  /* 三本線とMenuを中央揃え */
  }
  .hamburger .menu-text {
    width: 100%;
    text-align: center;
    margin-top: 4px;
  }
  .nav {
    padding-top: 80px;           /* 下げてロゴを上に */
  }
  .nav-logo {
    position: absolute !important;
    top: 24px;
    left: 24px;
    font-size: 28px !important;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .nav-logo img{height:32px;}
  .nav_link {
    font-size: 24px !important;
    position: relative;
  }
  .nav_link::after{
    content: '>';
    margin-left: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 18px;
  }
  .nav-close {
    margin-top: auto !important;
    margin-bottom: 48px !important;
    align-self: center !important;
  }
  .footer_content_top {
    display: block;
    text-align: center;
  }
  .footer_company_name {
    margin-bottom: 16px;
    text-align: center;
  }

  /* スマホでロゴ＋会社名を中央揃えにする */
  .footer_company_link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: auto;
    margin: 0 auto;
  }
  .footer_nav_list {
    display: none;
  }
  .footer_divider {
    margin: 24px auto;
    width: 80%;
  }
  .footer_copyright {
    font-size: 14px;
    text-align: center;
    color: rgba(255,255,255,0.9);
    margin-top: 32px;
  }

  .contact_section_wrapper {
    padding: 40px 0;
  }

  .contact_section_wrapper .section_inner {
    padding: 20px;
  }

  .contact_section_wrapper .section_title {
    font-size: 1.8rem;
  }

  .contact_section_wrapper .section_subtitle {
    font-size: 1.1rem;
  }

  .contact_button {
    padding: 12px 30px;
  }

  .section_title {
    font-size: 1.8rem;
  }

  .nav-logo {
    position: absolute;
    top: 24px;
    left: 24px;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
  }
  .nav-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 32px;
    line-height: 1;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
  }

  /* restore nav list column layout */
  .nav_list {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 48px !important;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .nav_link {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    color: #fff !important;
    text-decoration: none !important;
  }
  /* ----- contact ----- */
  .contact_description {
    white-space: normal !important; /* SPでは折り返しを許可 */
  }
}

/* ユーティリティクラス */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center {
  text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.hamburger {
  display: none; /* PCでは非表示 */
  height: 48px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  box-shadow: none;
  outline: none;
  cursor: pointer;
  position: relative;
  z-index: 1001;
  padding: 0;
  color: #fff;
}

.hamburger span {
  display: block;
  width: 32px;
  height: 3px;
  margin: 3px 0;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger .menu-text {
  background: none;
  height: auto;
  text-decoration: none;
  border: none;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1;
  text-align: center;
  width: 100%;
  letter-spacing: 1px;
  display: block;
  color: #fff;
  font-weight: bold;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav {
    display: none;
  }
  .nav.active {
    display: block;
  }
}

.section_title {
  position: relative;
  display: block;
}
.section_title::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 40px;
  background-color: #e04040;
}

/* ========= READ MORE ボタン共通スタイル ========= */
.section_button,
.company_profile_button,
.recruit_main_visual_button {
  background: #fff !important;
  color: #000 !important;
  border: 3px solid #000 !important;
  font-weight: bold !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.section_button:hover,
.company_profile_button:hover,
.recruit_main_visual_button:hover {
  background: #000 !important;
  color: #fff !important;
}

.hamburger.active {
  display: none !important;
}

@media (max-width: 768px) {
  .nav.active {
    z-index: 1200;
  }
}

/* ===== Default hide overlay-only elements ===== */
.nav-logo,
.nav-close { display: none; }

@media (max-width: 768px) {
  .nav.active .nav-logo,
  .nav.active .nav-close { display: block; }
}

.nav-logo {
  position: static !important;
  margin-top: 64px !important;
  margin-bottom: 48px !important;
  text-align: center !important;
  font-size: 28px !important;
}

@media (max-width: 768px) {
  .nav.active{ right:0; display:flex; }
} 