/* ==========================================================================
   市進教育グループ 採用サイト - style.css
   ========================================================================== */

:root {
  --color-navy: #1d2087;
  --color-navy-deep: #14186a;
  --color-blue: #1d2087;
  --color-blue-light: #7287d3;
  --color-accent: #c8c697;
  --color-link: #2d99ff;
  --color-text: #333333;
  --color-text-soft: #666666;
  --color-bg: #fcfcfc;
  --color-bg-soft: #f4f5f9;
  --color-border: #dddddd;
  --container-width: 1200px;
  --header-height: 90px;
}

/* --- リセット --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    "游ゴシック体", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.pc_ {
  display: block;
}
.sp_ {
  display: none;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */
#header {
  position: relative;
  background: var(--color-navy);
  color: #fff;
}
.header-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-bar .container {
  display: flex;
  justify-content: flex-end;
  padding: 8px 20px;
}
.header-bar .icon-link {
  color: #fff;
  opacity: 0.8;
  font-size: 0.9rem;
}
.header-bar .icon-link:hover {
  opacity: 1;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
}
.header-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.site-logo .img {
  width: 120px;
  height: 120px;
}
.catchphrase {
  font-size: 12px;
  line-height: 1;
  margin-top: 16px;
  opacity: 0.8;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-list > li > a {
  display: inline-block;
  padding: 16px;
  font-size: 14px;
  letter-spacing: 0.03em;
  border-bottom: 2px solid transparent;
  transition:
    border-color 0.2s,
    opacity 0.2s;
}
.nav-list > li > a:hover,
.nav-list > li > a.-current {
  border-color: var(--color-blue-light);
  opacity: 0.85;
}

.menu-btn {
  display: none;
}
.icon-btn {
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.icon-btn .label {
  font-size: 0.65rem;
  margin-top: 4px;
}

/* ハンバーガー／閉じるアイコン（CSSで描画） */
.icon-btn .menu {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 2px;
  margin: 7px 0;
  background: currentColor;
  box-shadow:
    0 -7px 0 currentColor,
    0 7px 0 currentColor;
}
.icon-btn .close {
  position: relative;
  width: 24px;
  height: 18px;
  display: inline-block;
}

.icon-btn .close::before,
.icon-btn .close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}
.icon-btn .close::before {
  transform: rotate(45deg);
}
.icon-btn .close::after {
  transform: rotate(-45deg);
}

/* ==========================================================================
   インフォメーションバー
   ========================================================================== */
.info-bar {
  background: var(--color-blue-light);
  color: #fff;
  text-align: center;
  letter-spacing: 0.1em;
  position: relative;
  overflow: hidden;
  width: 100%;
}
.info-bar .text {
  font-weight: 700;
  font-size: 3.8vw;
  padding: 8px 0;
  z-index: 1;
}
.info-bar .text.-flow-off {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
@media (min-width: 600px) {
  .info-bar .text {
    font-size: 16px;
  }
}

/* ==========================================================================
   spメニュー（モバイル用スライドメニュー）
   ========================================================================== */
.sp-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}
.sp-menu.-open {
  visibility: visible;
  pointer-events: auto;
}
.sp-menu .overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 15, 40, 0.6);
  opacity: 0;
  transition: opacity 0.25s;
}
.sp-menu.-open .overlay {
  opacity: 1;
}
.sp-menu .inner {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: min(88vw, 400px);
  height: 100%;
  background: #fff;
  color: var(--color-text);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.sp-menu.-open .inner {
  transform: translateX(0);
}
.sp-menu .close-btn {
  display: flex;
  justify-content: flex-end;
  padding: 16px 20px;
}
.sp-menu .icon-btn {
  color: var(--color-text);
}
.sp-menu .body {
  padding: 0 4vw 10vw;
}
.widget-title.-spmenu {
  background: var(--color-navy);
  color: #fff;
  font-weight: 700;
  padding: 8px 12px;
  font-size: 1rem;
  letter-spacing: 0.05em;
}
.sp-nav li a {
  display: block;
  color: #333;
  border-bottom: 1px solid var(--color-border);
  padding: 10px 8px;
  font-size: 14px;
  line-height: 1.4;
}

/* ==========================================================================
   メインビジュアル（トップスライダー）
   ========================================================================== */
#main_visual {
  position: relative;
  overflow: hidden;
  background: #000;
}
.main-visual .inner {
  position: relative;
  height: min(60vw, 560px);
  min-height: 260px;
}
.main-visual .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.main-visual .slide.-active {
  opacity: 1;
}
.main-visual .img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.main-visual .img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 40, 0.28);
}
.main-visual .text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12%;
  text-align: center;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.25);
}
.main-visual .title {
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.swiper-pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}
.swiper-pagination .bullet {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}
.swiper-pagination .bullet.-active {
  background: #fff;
}

/* ==========================================================================
   コンテンツレイアウト
   ========================================================================== */
#content {
  padding: 0;
}
.main-content .inner {
  padding: 40px 0 0;
}
.post_content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* 新着情報 */
.whatsnew {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 30px 20px;
}
.whatsnew h1 {
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.whatsnew hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 10px 0;
}
.whatsnew dl a {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: baseline;
  color: var(--color-text);
}
.whatsnew dl a:hover {
  color: var(--color-link);
}
.whatsnew dt {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  white-space: nowrap;
}
.whatsnew dd {
  margin: 0;
  font-size: 0.95rem;
}
.newmark {
  display: inline-block;
  background: #d63b3b;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}

/* 汎用ブロック余白 */
.spacer {
  width: 100%;
}
.image {
  margin: 0 0 1em;
  text-align: center;
}
.image img {
  margin: 0 auto;
}
.spacer.-h30 {
  height: 30px;
}
.spacer.-h60 {
  height: 60px;
}
.spacer.-h70 {
  height: 70px;
}
.spacer.-h80 {
  height: 80px;
}
.text-center {
  text-align: center;
}
.mb-ctrl.mb-0 {
  margin-bottom: 0;
}
.mb-ctrl.mb-5 {
  margin-bottom: 8px;
}
.mb-ctrl.mb-10 {
  margin-bottom: 16px;
}
.mb-ctrl.mb-15 {
  margin-bottom: 24px;
}
.mb-ctrl.mb-20 {
  margin-bottom: 32px;
}

.text-xl {
  font-size: 1.6rem;
  color: #2d99ff;
}
.text-l {
  font-size: 1.3rem;
}
.text-m {
  font-size: 1.1rem;
  margin-bottom: 0.5em;
}
.text-s {
  font-size: 0.85rem;
}
.text-xs {
  font-size: 0.75rem;
}
.text-dark {
  color: var(--color-text);
}

/* アイキャッチ／セクション見出し（CORPORATE -VISION- ／ FROM US ／ RECRUIT ／ COMPANY -PROFILE-） */
.eyebrow {
  color: var(--color-accent);
  font-weight: 700;
  display: block;
}
.post_content a {
  color: var(--color-link);
  text-decoration: underline;
}

/* ボタン */
.button {
  text-align: center;
  margin: 14px auto;
}
.button-link {
  display: inline-block;
  min-width: 260px;
  padding: 14px 32px;
  background: var(--color-blue);
  color: #fff !important;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 4px;
  transition:
    opacity 0.2s,
    transform 0.2s;
  text-decoration: none !important;
}
.button-link:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}
.button.btn-solid .button-link {
  background: var(--color-navy);
}

/* 採用情報ストライプボックス */
.group.stripe-bg {
  background: var(--color-bg-soft);
  padding: 40px 24px;
  border-radius: 6px;
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.group.stripe-bg .button {
  margin: 0;
}
.group.stripe-bg .button-link {
  background: var(--color-navy);
}

.heading.section-title {
  background: var(--color-navy);
  color: #fff;
  text-align: center;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  padding: 0;
  margin: 40px 0 20px;
}

/* ==========================================================================
   パンくずリスト／ページタイトル（下層ページ）
   ========================================================================== */
.breadcrumb {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 12px 0;
}
.breadcrumb-list {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  color: var(--color-text-soft);
}
.breadcrumb-item:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
}
.page-title {
  padding: 40px 20px 10px;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   アコーディオン（会社一覧ページ）
   ========================================================================== */
.accordion {
  margin: 20px 0;
}
.accordion-item {
  border: 1px solid var(--color-navy);
  margin-bottom: 10px;
  overflow: hidden;
}
.accordion-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--color-navy);
  color: #fff;
  cursor: pointer;
  list-style: none;
}
.accordion-title::-webkit-details-marker {
  display: none;
}
.accordion-body {
  padding: 20px;
}
.accordion-icon {
  position: relative;
  width: 14px;
  height: 14px;
}
.accordion-icon .icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url("../image/icons/sort-up.svg") no-repeat center / contain;
  mask: url("../image/icons/sort-up.svg") no-repeat center / contain;
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}
.accordion-item[open] .icon {
  transform: rotate(0deg);
}

/* ==========================================================================
   お問い合わせボックス
   ========================================================================== */
.cap-box {
  position: relative;
  background: #edf5ff;
  border: 1px solid #5fb9f5;
  margin: 24px 0;
  padding: 40px 24px 24px;
}
.cap-box .title {
  position: absolute;
  top: 0;
  left: 16px;
  transform: translateY(-50%);
  display: inline-block;
  background: #5fb9f5;
  color: #fff;
  padding: 6px 8px;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.08em;
}
.cap-box .content {
  padding: 0;
}
.cap-box .button-link {
  display: inline-block;
  width: auto;
  min-width: 40%;
  padding: 0.75em 1.5em;
  border-radius: 0;
}

.sub-heading {
  font-weight: 700;
  margin: 30px 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color-navy);
}

/* 会社お問い合わせカード */
.company {
  margin-bottom: 16px;
}
.company .head {
  background: var(--color-bg-soft);
  color: #333;
  display: flex;
  align-items: center;
  padding: 16px 20px;
}
.company .head .icon-wrap {
  display: inline-flex;
  padding-right: 16px;
  margin-right: 16px;
  border-right: 1px solid rgba(0, 0, 0, 0.2);
}
.company .head .icon {
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("../image/icons/pencil.svg") no-repeat center / contain;
  mask: url("../image/icons/pencil.svg") no-repeat center / contain;
}
.company .head .name {
  font-weight: 400;
}
.company .body {
  padding: 16px 20px;
}
.company .body a {
  color: var(--color-link);
}

/* ==========================================================================
   フッター
   ========================================================================== */
.footer {
  background: var(--color-navy);
  color: #fff;
  margin-top: 60px;
}
.footer .links,
.footer-bottom {
  padding-top: 1em;
  padding-bottom: 1em;
}
.footer-link + .footer-link {
  margin-top: 2em;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.copyright {
  text-align: center;
  font-size: 12px;
  opacity: 0.85;
}
.totop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
}
.fix-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-navy);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.chevron::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-top: 4px;
}

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width: 959px) {
  .pc_ {
    display: none;
  }
  .sp_ {
    display: block;
  }
  .header-inner {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 16px;
  }
  .header-logo {
    align-items: flex-start;
  }
  .site-logo .img {
    width: 60px;
    height: 60px;
  }
  .menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto 0;
    height: 80px;
    width: 80px;
    background: #3675db;
  }
  .page-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 600px) {
  .whatsnew dl a {
    flex-direction: column;
    gap: 2px;
  }
  .button-link {
    min-width: 0;
    width: 100%;
  }
  .cap-box .button-link {
    min-width: 64%;
    white-space: nowrap;
  }
  .group.stripe-bg {
    flex-direction: column;
  }
  .breadcrumb-list {
    padding-left: 4vw;
    padding-right: 4vw;
  }
}
