@media (max-width: 1200px) {
  .header-contact-btnwrap {
    display: none;
  }

  .header-inner {
    height: 100px;
  }

  /*sp用ナビゲーション*/
  .sp-nav {
    z-index: 90;
    display: block;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    transition: transform 0.5s ease;
    transform: translateX(100%);
  }
  .sp-nav.active {
    transform: translateX(0);
  }
  .sp-nav ul {
    height: 100%;
    padding: 6rem 1.5rem 1rem 1.5rem;
  }
  .sp-nav a {
    padding: 1rem 0;
    display: block;
  }
  .sp-header-contact-btn {
    margin-top: 2rem;
    width: 100%;
    max-width: 250px;
    text-align: center;
  }
  .sp-header-contact-btn a {
    background-color: #ff914c;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
  }
  .header-nav ul {
    flex-direction: column; /* スマホで縦並びに */
  }
  .header-nav a {
    font-size: 0.875rem; /* スマホでフォントサイズを少し小さめに */
  }
  .footer-nav {
    margin-left: 10%;
  }
}
@media (max-width: 1024px) {
  /*topページ*/
  main {
    flex-direction: column-reverse;
  }
  .top-main {
    flex-direction: column;
  }
  .main-content {
    width: 100%;
    padding: 0;
  }
  .top-mapsearch {
    display: none;
  }
  .top-detailedsearch {
    padding: 0;
    width: 100%;
  }

  .u-useful-archive {
    grid-template-columns: repeat(2, 1fr);
  }

  /*under*/
  .u-sidebar {
    width: 100%;
    margin-top: 3rem;
    padding: 0;
  }
  .form-label p {
    width: 220px;
  }
  .form-row {
    padding: 1rem 0.5rem;
  }
  .sp-top-banner {
    display: block;
  }
}
@media (max-width: 992px) {
}
@media (max-width: 800px) {
  /*topページ*/
  .logo {
    width: 140px;
  }
  .logo-phrase {
    font-size: 0.8rem;
  }
  .top-news-banner-wrap {
    flex-direction: column;
  }
  .top-news {
    width: 100%;
  }
  .news-side-banner {
    width: 100%;
    max-width: 500px;
    margin: 3rem auto 0;
  }
}
@media (max-width: 768px) {
  .topB {
    width: 100%;
    max-width: none; /* 最大幅制限を解除して、画面にフィットさせる */
    margin: 0; /* スマホ版ではマージンをなしにして、画面いっぱいに広げる */
  }
  .topC {
    width: 100%; /* 画面幅の100%にする */
    max-width: 100%; /* 最大幅を100%に設定して、画面にフィット */
    margin: 0; /* スマホ版ではマージンをなしにして、画面いっぱいに広げる */
    padding: 0; /* 必要なら余白も削除 */
  }
  .topE {
    width: 100%; /* スマホでは幅を100%にして画像を画面いっぱいに表示 */
    max-width: none; /* 最大幅制限を解除して、画面にフィットさせる */
    margin: 0; /* スマホ版ではマージンをなしにして、画面いっぱいに広げる */
  }

  .form-row {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }

  .form-label p {
    width: 100%;
    margin-bottom: 5px;
  }

  .form-label {
    width: 100%;
  }

  .wpcf7-form-control-wrap {
    width: 100%;
  }

  input,
  textarea,
  select {
    width: 100%;
    box-sizing: border-box;
    font-size: 15px;
    padding: 12px 15px;
  }

  .wpcf7-form-control.wpcf7-submit {
    width: 100%;
    font-size: 16px;
    padding: 15px;
  }

  /*header*/
  .header-main {
    justify-content: space-between;
    height: 60px;
  }

  .logo {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .openbtn {
    display: block; /* スマホ版で表示 */
  }

  .main-nav {
    display: none; /* 初期は非表示 */
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    background: #fff;
    text-align: center;
  }
  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* 横並びを縦に変更 */
    flex-direction: column; /* 縦に並べる */
  }

  .main-nav ul li {
    border-bottom: 1px solid #fff;
  }

  .main-nav ul li a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 0.875rem;
  }

  /* メニューを開いた状態のスタイル */
  .main-nav.active {
    display: block;
  }
  .header-actions {
    display: none;
  }

  /*search*/
  .container {
    padding: 10px; /* スマホ用にパディングを調整 */
  }

  .card {
    width: 100%; /* カードの幅を100%に */
    padding: 15px; /* 余白を少し小さめに */
  }

  .card-title {
    font-size: 16px; /* タイトルの文字を少し小さく */
  }

  .icon {
    width: 24px; /* スマホ用にアイコンを小さめに */
    margin-right: 8px;
  }

  .button-group {
    align-items: center; /* ボタンを中央に */
    gap: 5px; /* ボタン間の余白を調整 */
  }

  .button-group a {
    width: 100%; /* ボタンの幅を画面いっぱいに */
    text-align: center;
  }

  .map-section {
    flex-direction: row; /* 横並びに変更 */
    gap: 20px; /* 隙間を縮小 */
  }

  .map-region h3 {
    font-size: 14px; /* 見出しのサイズを小さめに */
  }

  .map-region ul {
    padding: 0;
  }

  .map-region li {
    font-size: 14px; /* リストの文字を少し小さく */
  }

  .location-grid {
    grid-template-columns: repeat(1, 1fr); /* 1列に変更 */
    gap: 10px; /* 隙間を小さめに */
    padding: 5px; /* 余白を調整 */
  }

  .location-card {
    height: 120px; /* 画像の高さを小さく */
  }

  .location-label {
    width: 150px; /* ラベルの幅を小さめに */
    font-size: 16px; /* 文字サイズを少し小さめに */
    padding: 8px 15px; /* 余白を調整 */
  }

  .location-label span {
    font-size: 12px; /* サブテキストを小さめに */
  }

  .top-detailedsearch-inner {
    width: 100%; /* スマホでは横幅を画面いっぱいに */
    padding: 0.5rem;
  }

  .top-detailedsearch-box input[type="text"] {
    font-size: 14px; /* フォントサイズを少し小さく */
    padding: 0.4rem; /* 入力欄の余白を調整 */
  }

  #searchsubmit {
    font-size: 14px; /* フォントサイズを少し小さく */
    height: 45px; /* 高さを少し縮小 */
  }

  /*news-container*/
  .news-container {
    flex-direction: column; /* 縦並びに変更 */
    align-items: center; /* 中央に配置 */
    padding: 10px;
  }

  .section {
    width: 100%; /* 幅を100%にして縦並びに対応 */
    padding: 15px;
  }

  .section-title {
    font-size: 1rem; /* フォントサイズを調整 */
  }

  .sub-title {
    font-size: 1.2rem; /* フォントサイズを調整 */
  }

  .more-button {
    font-size: 0.9rem; /* ボタンのフォントサイズを調整 */
    padding: 8px 16px; /* ボタンのパディングを調整 */
  }

  /*footer*/
  .footer-top {
    flex-direction: column; /* セクションを縦並びに変更 */
    align-items: center; /* 中央揃え */
    padding: 15px;
  }

  .footer-section {
    width: 100%; /* 各セクションの幅を100%に設定 */
    margin: 10px 0;
    padding: 10px;
  }

  .footer-section h3 {
    font-size: 14px; /* 見出しのフォントサイズを調整 */
  }

  .footer-section ul li {
    padding: 8px; /* アイテムのパディングを調整 */
  }

  .footer-links {
    padding: 10px 15px; /* フッターリンクのパディングを調整 */
  }

  .footer-bottom {
    padding: 15px; /* フッターの下部のパディングを調整 */
  }

  .footer-bottom ul {
    flex-direction: column; /* フッターリンクのリストを縦並びに変更 */
    align-items: center; /* 中央揃え */
  }

  .footer-bottom ul li {
    margin: 5px 0; /* リストアイテムのマージンを調整 */
  }

  .footer-bottom ul li a {
    font-size: 14px; /* リンクのフォントサイズを調整 */
  }

  /*under*/
  /*コラム*/
  .u-useful-archive {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    width: 100% !important;
  }

  .u-useful-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 1rem !important;
    box-sizing: border-box;
  }

  .u-useful-img {
    width: 100% !important;
    margin-bottom: 1rem !important;
    padding: 0 !important;
  }

  .u-useful-img img {
    width: 80% !important;
    height: auto !important;
    border-radius: 0.5rem;
  }

  .u-useful-textwrap {
    width: 100% !important;
    padding: 0 1rem !important;
    box-sizing: border-box;
  }

  .u-useful-item-title {
    font-size: 1.1rem !important;
  }

  .u-useful-item-text {
    font-size: 0.95rem !important;
    -webkit-line-clamp: 4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* 求人検索ページ */
  /* 横幅を100%にして、モバイル画面に合わせる */
  .u-job-item-search-result-item {
    width: 100%;
  }

  .job-item-top-info {
    flex-direction: column; /* 縦並びに変更 */
    align-items: flex-start;
  }

  .job-item-info {
    flex-direction: column; /* フレーズとテーブルを縦並び */
    justify-content: flex-start;
  }

  /* 画像部分 */
  .job-info-img {
    flex: 0 0 100%;
    max-width: 100%;
    height: 400px; /* 画像をより大きくするために高さを変更 */
  }
  .job-info-img img {
    display: block; /* インライン要素の隙間を防ぐ */
    width: 100%; /* 親要素の幅に合わせる */
    height: 100%; /* 親要素の高さに合わせる */
    object-fit: contain; /* アスペクト比を保ちながら、画像全体を表示 */
  }

  .job-item-phrase {
    -webkit-line-clamp: 5; /* 行数を少なくする */
  }

  /* ボタン部分 */
  .joblisting-morewrap {
    flex-direction: column; /* 縦並びに変更 */
    align-items: center; /* 中央に配置 */
  }

  .joblisting-morewrap a {
    width: 100%; /* ボタンを横いっぱいに広げる */
    text-align: center;
  }

  /* 求人詳細ページ */

  .u-job-details {
    width: 100%; /* スマホ版では幅を100%に */
    max-width: none; /* 最大幅の制約を解除 */
    flex-direction: column; /* 要素を縦並びにする */
  }

  .u-job-details p {
    font-size: 0.875rem; /* フォントサイズを少し小さく */
  }

  .u-job-info-container {
    display: flex;
    flex-direction: column; /* 要素を縦並びに変更 */
    align-items: flex-start; /* 左寄せ */
    justify-content: flex-start; /* 上寄せに変更 */
    gap: 0; /* 要素間の隙間を削除 */
    margin-bottom: 0; /* コンテナの下の余白を削除 */
    padding: 0; /* 余計なパディングを削除 */
  }

  .u-job-item-content {
    margin-top: 0; /* コンテンツの上の余白を削除 */
    padding: 0; /* コンテンツ内のパディングを削除 */
  }

  /* 画像部分 */
  .u-job-info-img {
    flex: 0 0 100%; /* 画像の幅を100%に設定 */
    max-width: 100%; /* 最大幅も100%に設定 */
    margin: 0; /* 余計な余白を削除 */
    padding: 0; /* 余計なパディングを削除 */
  }

  .u-job-info-img img {
    display: block; /* インライン要素の隙間を防ぐ */
    width: 100%;
    height: auto;
    margin: 0; /* 画像の下の余白を削除 */
  }

  /* コンテンツ部分 */
  .u-job-details-inner {
    margin-top: 2rem;
  }

  /* ラベル部分　企業メッセージ */
  .label {
    position: relative; /* スマホ版では絶対位置をやめ、相対位置に */
    top: 0;
    left: 0;
    background: beige;
    padding: 4px 8px; /* 小さく調整 */
    font-size: 10px;
  }

  /* ボタン部分 */
  .joblisting-morewrap {
    flex-direction: column; /* ボタンを縦に並べる */
    gap: 10px;
    justify-content: center;
    align-items: center;
  }

  .joblisting-morewrap a {
    padding: 8px 20px;
    font-size: 14px; /* フォントサイズを少し小さく */
    border-radius: 4px;
    font-weight: bold;
  }

  .entry-btn2 {
    width: 100px; /* ボタンの幅を小さく */
    height: auto; /* ボタンの高さを小さく */
    margin-bottom: 1rem;
  }

  /* テーブルのスタイル */
  .job-info-des-table {
    width: 100%;
    font-size: 0.875rem; /* フォントサイズを少し小さく */
  }

  .job-info-des-table th,
  .job-info-des-table td {
    padding: 15px;
    text-align: left;
    font-size: 0.875rem; /* フォントサイズを少し小さく */
  }

  .job-info-des-table th {
    width: 20%; /* ヘッダーの幅を少し狭く */
  }

  .u-qa {
    padding: 10px;
  }

  .u-qa-item {
    width: 100% !important;
    padding: 20px !important;
    margin-bottom: 15px;
  }

  .u-qa-item p {
    font-size: 0.95rem !important;
    padding: 10px 0 !important;
    color: #666 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
  }

  .ribbon4 {
    font-size: 1rem !important;
    padding: 6px 14px !important;
    margin-bottom: 8px !important;
  }

  .ribbon4::before {
    left: -10px;
    border-left: 10px solid #8eb81d;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
  }
}

@media (max-width: 576px) {
  /*under*/
  .u-news-contents {
    flex-direction: column;
  }
  .u-news-item {
    width: 100%;
    margin: 1rem auto;
    max-width: 400px;
  }
  .news-single-title,
  .useful-single-title {
    font-size: 1.1rem;
  }
  .news-single-img,
  .useful-single-img {
    height: 250px;
  }
  .news-single-textwrap,
  .useful-single-textwrap {
    padding: 0 0.5rem;
  }
  .job-info-des-table th {
    width: 140px;
    padding: 0.3rem 0.75rem;
  }
  .u-job-title {
    font-size: 1.5rem;
  }
}
@media (max-width: 480px) {
  /*topページ*/
  .top-area-several {
    flex-direction: column;
  }
  .top-area-several + .top-area-several {
    margin-top: 0.5rem;
  }
  .several-items {
    width: 100%;
    margin-top: 0.5rem;
    margin-left: 0;
  }
  .more-btn {
    margin: 3rem auto 0;
  }
  .top-area-several a {
    padding: 0.4rem;
  }
   .top-Question a {
    padding: 0.4rem;
  }
  .title-bar h2 {
    font-size: 0.875rem;
    padding: 0.45rem 0.5rem 0.45rem 1.5rem;
  }
  .title-bar h2 img {
    width: 30px;
  }

  .sp-mapsearch-lists a {
    padding: 0.5rem;
    font-size: 0.95rem;
  }
  .sp-mapsearch-lists a img {
    width: 15px;
  }

  .topC {
    width: 95%; /* 画面幅の95%にする */
    max-width: 250px; /* 最大幅を調整 */
    margin: 20px auto; /* さらに余白を減らす */
  }

  /*under*/
  .job-item-title {
    font-size: 1.2rem;
  }
  .job-item-top {
    padding: 0.5rem 0.75rem;
  }
  .job-item-phrase p {
    font-size: 1rem;
  }
  .job-info-img {
    height: 100px;
    margin-bottom: 1rem; /* 画像との間隔をあける */
    display: flex; /* フレックスボックスを使用 */
    flex-direction: column; /* 縦に並べる */
  }
  .job-info-table {
    font-size: 0.9rem;
  }
  .job-info-table th,
  .job-info-table td {
    padding: 0.65rem 0.5rem;
  }
  .job-info-table th {
    width: 100px;
  }
  .job-subtag-lists a {
    font-size: 0.9rem;
  }
  .job-subtag-lists {
    margin: 1rem;
  }
  .joblisting-morewrap {
    margin: 0;
  }
  .joblisting-morewrap a {
    font-size: 1rem;
    margin: 1rem auto 0;
  }
  .u-useful-item {
    flex-direction: column;
  }
  .u-useful-img {
    padding: 0;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  .u-useful-textwrap {
    width: 100%;
    padding: 0 0.5rem;
    margin-top: 1rem;
  }
  .u-useful-item-title {
    font-size: 1rem;
  }
  .u-useful-item-text {
    font-size: 0.9rem;
  }

  .faq-item {
    flex-direction: column;
    padding: 1rem;
    width: 100%;
  }
  .faq-image img {
    padding: 0;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  .faq-textwrap {
    width: 100%;
    padding: 0 0.5rem;
    margin-top: 1rem;
  }
  .question-title {
    font-size: 1.1rem;
  }
  .faq-text {
    font-size: 0.9rem;
  }

  .job-info-des-table th {
    font-size: 0.85rem;
    width: 115px;
    padding: 0.4rem 0.5rem;
  }
  .job-info-des-table td {
    font-size: 0.85rem;
  }
  .com-table th {
    width: 90px;
  }
  .u-job-info-table th,
  .u-job-info-table td,
  .job-info-des-table th,
  .job-info-des-table td {
    padding: 0.5rem;
  }
  .u-job-info-table th {
    width: 80px;
  }
  .top-detailedsearch-contents,
  .top-features-contents.slider,
  .useful-contents,
  .top-area-contents,
  .mapsearch-wrap {
    padding: 1rem;
  }
  h3.sidebar-search-title {
    font-size: 1rem;
  }
  .u-page-title {
    font-size: 1.3rem;
  }
  .u-cancellation-title {
    font-size: 1.075rem;
  }
  .u-cancellation-list-title {
    font-size: 1rem;
  }
  .u-cancellation-list-box {
    padding: 1.5rem 0.5rem 1rem 0.5rem;
  }
  .w3eden .card-body {
    padding: 1rem !important;
  }
  .u-cancellation-item {
    margin-top: 2rem;
  }
  .u-cancellation-title::before {
    margin-right: 0.5rem;
  }
  .u-cancellation {
    padding: 1rem;
  }
  .wpdm-download-link.btn.btn-primary {
    padding: 1rem 1.5rem;
  }
  .w3eden .card-body {
    padding: 0 !important;
  }
  .w3eden:nth-of-type(1) {
    margin-top: 2rem;
  }
  .qa-title {
    font-size: 1.15rem;
    margin-bottom: 1rem;
  }
  .qa-title::before {
    margin-right: 0.5rem;
    height: 30px;
  }

  @media (max-width: 768px) {
    .container2 {
      display: block; /* 縦に並べる */
    }

    .top-area-contents2,
    .right-section {
      width: 100%; /* 幅を100%に変更 */
    }

    .top-area-contents2:not(:last-child) {
      border-right: none; /* 右の縦線を非表示 */
      padding-right: 0; /* 右の余白をなくす */
    }

    .right-section {
      margin-top: 1rem; /* 上下に間隔を追加 */
    }
  }

  @media screen and (max-width: 768px) {
    /*contact-thanks*/
    .contact-thanks-box {
      padding: 1.5rem 0.75rem;
    }
    .contact-thanks-box h2 {
      font-size: 1.2rem;
    }
    .contact-thanks-box p {
      font-size: 1rem;
      margin-top: 1rem;
    }

    .privacy-item h2 {
      font-size: 1.15rem;
    }
    .privacy-item {
      font-size: 0.95rem;
    }

    .useful-single-textwrap h2,
    .news-single-textwrap h2 {
      font-size: 1.1rem;
    }
    .useful-single-textwrap h3,
    .news-single-textwrap h3 {
      font-size: 1.05rem;
    }
    .useful-single,
    .news-single {
      padding: 2rem 0.75rem;
    }
    .useful-single-textwrap p,
    .news-single-textwrap p {
      font-size: 0.95rem;
    }
    .u-job-title {
      font-size: 1.2rem;
    }
    .features-lists-contents a {
      width: 100%;
    }
    .header-inner {
      justify-content: flex-start;
    }
    .rec-text {
      font-size: 0.9rem;
    }
    .u-job-info-table {
      font-size: 0.9rem;
    }
    .u-job-info-table th {
      padding: 0.5rem 0.2rem;
    }
    .u-job-info-table td {
      padding: 0.3rem 0.2rem;
    }
    .u-job-info-tagwrap {
      margin-top: 1.5rem;
    }
    .job-info-tags a {
      font-size: 0.85rem;
      margin: 0.25rem 0.15rem;
    }
    .entry-btn {
      font-size: 1.1rem;
    }
    .top-features-wrap {
      padding: 1rem 0;
    }
    .useful-item {
      margin: 0.5rem 0;
    }
    .job-item-phrase {
      font-size: 0.95rem;
    }
    .useful-item a {
      flex-direction: column;
    }
    .useful-item-img {
      width: 100%;
    }
    .useful-item-textwrap {
      width: 100%;
      padding: 1rem;
    }
  }

  @media (max-width: 400px) {
    .useful-item-title {
      font-size: 1rem;
    }
    .useful-item-textwrap {
      padding-right: 0;
    }

    .copyright {
      font-size: 0.9rem;
    }
  }
  @media (max-width: 350px) {
  }
}
