/* ===================================
   トップページリデザイン
   =================================== */

/* --- はみ出し防止（暫定） --- */
body {
  overflow-x: hidden;
}

/* --- 共通 --- */
.sp-only {
  display: none;
}
@media screen and (max-width: 767px) {
  .sp-only {
    display: inline;
  }
}
.p-top-new {
  font-family: 'Noto Sans JP', sans-serif;
}
.p-top-new__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}
.p-top-new__section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}
.p-top-new__section-title {
  font-size: 24px;
  font-weight: 700;
  color: #014E41;
}
.p-top-new__section-link {
  font-size: 16px;
  font-weight: 700;
  color: #2C9637;
  text-decoration: underline;
}
.p-top-new__section-link:hover {
  opacity: 0.8;
}

/* --- セクション1: 検索エリア --- */
.p-search-hero {
  background: url('../img/top/mv-bg.png') center center / cover no-repeat;
  /* WebPに対応しているブラウザは軽い画像を使う（非対応なら上のPNGのまま） */
  background-image: image-set(url('../img/top/mv-bg.webp') type('image/webp'), url('../img/top/mv-bg.png') type('image/png'));
  padding: 40px 0 48px;
  position: relative;
  overflow: hidden;
}
.p-search-hero__catch {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.5;
}
.p-search-hero__box {
  max-width: 800px;
  margin: 0 auto;
  background: #f1f8ee;
  border: none;
  border-radius: 20px;
  padding: 24px 32px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}
.p-search-hero__box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.p-search-hero__box-title {
  font-size: 18px;
  font-weight: 700;
  color: #014E41;
}
.p-search-hero__detail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: #2C9637;
  background: #fff;
  border: 2px solid #2C9637;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: background 0.2s, color 0.2s;
}
.p-search-hero__detail-link:hover {
  background: #2C9637;
  color: #fff;
}
.p-search-hero__detail-link svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.p-search-hero__detail-link--sp {
  display: none;
}
.p-search-hero__form {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.p-search-hero__input {
  flex: 1;
  min-width: 0;
  padding: 12px 20px;
  font-size: 16px;
  border: 2px solid #fff;
  border-radius: 50px;
  outline: none;
  font-family: 'Noto Sans JP', sans-serif;
}
.p-search-hero__input::placeholder {
  color: #A3A3A3;
  font-size: 16px;
}
.p-search-hero__input:focus {
  border-color: #014E41;
}
.p-search-hero__select {
  width: 200px;
  padding: 12px 40px 12px 20px;
  font-size: 16px;
  border: 2px solid #fff;
  border-radius: 50px;
  outline: none;
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
}
.p-search-hero__select:focus {
  border-color: #014E41;
}
.p-search-hero__submit {
  padding: 12px 32px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: #ff8c42;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Noto Sans JP', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}
.p-search-hero__submit:hover {
  opacity: 0.9;
}
.p-search-hero__submit-icon {
  width: 20px;
  height: 20px;
}

/* メインビジュアルのイラスト（3枚＋中央の男性） */
.p-search-hero__visual {
  position: relative;
  max-width: 800px;
  margin: 0 auto 24px;
}
.p-search-hero__visual-row {
  display: flex;
  gap: 2%;
}
.p-search-hero__visual-row picture {
  flex: 1;
  min-width: 0;
}
.p-search-hero__visual-row img {
  display: block;
  width: 100%;
  height: auto;
}
.p-search-hero__visual-human-wrap {
  display: contents;
}
.p-search-hero__visual-human {
  position: absolute;
  left: 50%;
  bottom: -2%;
  width: 34%;
  height: auto;
  transform: translateX(-50%);
}

/* キャッチコピーをイラストに重ね、検索窓を近づける */
.p-search-hero__visual {
  margin-bottom: -32px;
}
.p-search-hero__catch {
  position: relative;
  z-index: 2;
  display: table;
  margin: 0 auto 12px;
  padding: 6px 20px;
  background: #fff;
  border-radius: 8px;
  font-size: clamp(10px, 3.4vw, 24px);
  color: #014E41;
  font-weight: 500;
}
.p-search-hero__catch br {
  display: none;
}
.p-search-hero__box {
  position: relative;
  z-index: 2;
}

/* PC：イラストを画面の幅いっぱいに広げ、キャッチコピーと検索窓を深めに重ねる */
@media screen and (min-width: 768px) {
  .p-search-hero__visual {
    width: min(1400px, calc(100vw - 40px));
    max-width: none;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: clamp(-120px, -7vw, -32px);
  }
}

/* メインビジュアルの右下のヤギのイラスト */
/* 狭い画面で検索窓と重なったときは、検索窓の後ろに隠れるように重なり順を下げる */
.p-search-hero__decoration {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 80px;
  z-index: 0;
  pointer-events: none;
}
.p-search-hero__decoration img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- 検索エリア レスポンシブ --- */
@media screen and (max-width: 767px) {
  .p-search-hero {
    padding: 24px 16px 32px;
  }
  .p-search-hero__catch {
    font-size: 20px;
    margin-bottom: 16px;
  }
  .p-search-hero__box {
    padding: 16px;
  }
  .p-search-hero__form {
    flex-direction: column;
    gap: 10px;
  }
  .p-search-hero__select {
    width: 100%;
  }
  .p-search-hero__submit {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 16px;
  }
  .p-search-hero__visual {
    margin-bottom: -16px;
  }
  .p-search-hero__catch {
    margin-bottom: 10px;
    padding: 4px 14px;
    font-size: clamp(10px, 3.4vw, 20px);
  }
  .p-search-hero {
    padding-left: 0;
    padding-right: 0;
  }
  .p-search-hero > .p-top-new__inner {
    padding-left: 10px;
    padding-right: 10px;
  }
  .p-search-hero__decoration {
    width: 52px;
  }
}

/* --- セクション2: 職種・エリアから探す --- */
.p-search-tags {
  padding: 40px 0;
  background: #fff;
}
.p-search-tags__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.p-search-tags__column-title {
  font-size: 16px;
  font-weight: 700;
  color: #3F3F3F;
  margin-bottom: 16px;
}
.p-search-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.p-search-tags__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: 1px solid #DFDFDF;
  border-radius: 50px;
  background: #fff;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
  transition: background 0.2s, border-color 0.2s;
}
.p-search-tags__item:hover {
  background: #f5f5f5;
  border-color: #bbb;
  text-decoration: none;
  color: #333;
}
.p-search-tags__count {
  font-size: 12px;
  color: #C1C1C1;
}

/* --- セクション2 レスポンシブ --- */
@media screen and (max-width: 1000px) {
  .p-search-tags__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .p-search-tags__column-title {
    padding-left: 20px;
  }
  .p-search-tags__column {
    overflow: hidden;
  }
  .p-search-tags__list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    padding: 4px 20px 12px;
  }
  .p-search-tags__list::-webkit-scrollbar {
    height: 4px;
  }
  .p-search-tags__list::-webkit-scrollbar-track {
    background: #ECEDE9;
    border-radius: 2px;
    margin: 0 20px;
  }
  .p-search-tags__list::-webkit-scrollbar-thumb {
    background: #C1C1C1;
    border-radius: 2px;
  }
  .p-search-tags__item {
    flex-shrink: 0;
  }
}

@media screen and (max-width: 767px) {
  .p-search-tags {
    padding: 24px 0;
  }
  .p-search-tags__grid {
    gap: 20px;
  }
  .p-search-tags__column-title {
    margin-bottom: 4px;
  }
  .p-search-tags__list {
    gap: 12px;
    padding-top: 0;
  }
  .p-search-tags__item {
    font-size: 16px;
    padding: 10px 20px;
  }
}

@media screen and (max-width: 400px) {
  .p-search-hero__detail-link--pc {
    display: none;
  }
  .p-search-hero__detail-link--sp {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 8px;
    box-sizing: border-box;
  }
}

/* --- セクション3: 最新の求人 --- */
.p-new-jobs {
  padding: 48px 0;
  background: #F6F7FA;
}
.p-new-jobs__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.p-new-jobs__card {
  width: 235px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 4px #9CA9CF;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.p-new-jobs__card:hover {
  box-shadow: 0 2px 8px rgba(156, 169, 207, 0.5);
  text-decoration: none;
  color: inherit;
}
.p-new-jobs__card-img {
  width: 100%;
  height: 114px;
  background: #F2F2F2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C1C1C1;
  font-size: 14px;
}
.p-new-jobs__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-new-jobs__card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.p-new-jobs__card-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-bottom: 8px;
}
.p-new-jobs__card-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #333;
  line-height: 1.4;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-new-jobs__card-info-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  object-fit: contain;
}
.p-new-jobs__card-info span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-new-jobs__card-fav {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #F2F2F2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 14px;
  color: #014E41;
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  padding-bottom: 0;
  font-family: 'Noto Sans JP', sans-serif;
}
.p-new-jobs__card-fav:hover {
  opacity: 0.7;
}
.p-new-jobs__card-fav svg {
  width: 16px;
  height: 16px;
}

.p-new-jobs__card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}
.p-new-jobs__card-link:hover {
  color: inherit;
  text-decoration: none;
}
.p-new-jobs__card-foot {
  padding: 0 12px 12px;
}
.p-new-jobs__empty {
  width: 100%;
  margin: 0;
  padding: 24px 0;
  text-align: center;
  font-size: 14px;
  color: #666;
}

/* お気に入り：線をカードの横幅いっぱいに引き、ボタンを中央に配置 */
.p-new-jobs__card-foot {
  display: flex;
  justify-content: center;
  padding: 8px 12px 12px;
  border-top: 1px solid #F2F2F2;
}
.p-new-jobs__card-fav {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
/* 1行表示の項目で、入りきらない文字を確実に「…」で省略する */
.p-new-jobs__card-info span {
  min-width: 0;
  white-space: nowrap;
}

/* お気に入り登録済の表示（ハートを緑で塗りつぶして区別する） */
.p-new-jobs__card-fav.is-active svg path {
  fill: #014E41;
  stroke: #014E41;
}

/* --- セクション3 レスポンシブ --- */
@media screen and (max-width: 1040px) {
  .p-new-jobs__grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 20px 12px;
  }
  .p-new-jobs__grid::-webkit-scrollbar {
    height: 4px;
  }
  .p-new-jobs__grid::-webkit-scrollbar-track {
    background: #ECEDE9;
    border-radius: 2px;
  }
  .p-new-jobs__grid::-webkit-scrollbar-thumb {
    background: #C1C1C1;
    border-radius: 2px;
  }
  .p-new-jobs__card {
    min-width: 235px;
    width: 235px;
    flex-shrink: 0;
  }
}

@media screen and (max-width: 767px) {
  .p-new-jobs__card {
    min-width: 200px;
    width: 200px;
  }
  .p-new-jobs__card-img {
    height: 97px;
  }
  .p-new-jobs__card-body {
    padding: 10px;
  }
  .p-new-jobs__card-title {
    font-size: 14px;
    margin-bottom: 6px;
  }
  .p-new-jobs__card-foot {
    padding: 6px 10px 10px;
  }
  .p-new-jobs__card-fav {
    font-size: 13px;
  }
}

/* --- セクション4: 企業インタビュー --- */
.p-interview {
  padding: 48px 0;
  background: #fff;
}
.p-interview__grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}
.p-interview__card {
  width: 310px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}
.p-interview__card:hover {
  opacity: 0.8;
  text-decoration: none;
  color: inherit;
}
.p-interview__card-img {
  width: 100%;
  height: 180px;
  background: #F2F2F2;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C1C1C1;
  font-size: 14px;
  margin-bottom: 12px;
}
.p-interview__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-interview__card-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-bottom: 8px;
}
.p-interview__card-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* --- セクション4 レスポンシブ --- */
@media screen and (max-width: 1000px) {
  .p-interview__grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 20px 12px;
    margin-top: 20px;
  }
  .p-interview__grid::-webkit-scrollbar {
    height: 4px;
  }
  .p-interview__grid::-webkit-scrollbar-track {
    background: #ECEDE9;
    border-radius: 2px;
  }
  .p-interview__grid::-webkit-scrollbar-thumb {
    background: #C1C1C1;
    border-radius: 2px;
  }
  .p-interview__card {
    min-width: 280px;
    width: 280px;
    flex-shrink: 0;
  }
}

@media screen and (max-width: 767px) {
  .p-interview__card {
    min-width: 220px;
    width: 220px;
  }
  .p-interview__card-img {
    height: 128px;
    margin-bottom: 10px;
  }
  .p-interview__card-title {
    font-size: 14px;
    margin-bottom: 6px;
  }
  .p-interview__card-desc {
    font-size: 13px;
  }
}

/* --- セクション5: yagishバナー --- */
.p-yagish-banner {
  padding: 24px 0 48px 0;
  background: #FFFEEA;
  border-top: 3px solid #00983C;
  border-bottom: 3px solid #00983C;
}
.p-yagish-banner__header {
  text-align: center;
  margin-bottom: 0;
}
.p-yagish-banner__logo {
  display: block;
  height: 40px;
  margin: 0 auto 4px;
}
.p-yagish-banner__sub {
  font-size: 16px;
  font-weight: 700;
  color: #014E41;
  line-height: 1.4;
  margin: 0 0 2px;
}
.p-yagish-banner__main {
  font-size: 24px;
  font-weight: 700;
  color: #014E41;
  line-height: 1.4;
  margin: 0 0 8px 0;
}
.p-yagish-banner__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.p-yagish-banner__card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
  border: 2px solid transparent;
}
.p-yagish-banner__card:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}
.p-yagish-banner__card-img {
  width: 100%;
  aspect-ratio: 2348 / 1884;
  background: #F2F2F2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C1C1C1;
  font-size: 14px;
}
.p-yagish-banner__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-yagish-banner__card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 0;
  padding: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  border-radius: 0;
  line-height: 1.3;
}
.p-yagish-banner__card--shindan .p-yagish-banner__card-btn {
  background: #EE1D6A;
  box-shadow: 0 10px 0 #A40942;
}
.p-yagish-banner__card--shindan {
  border-color: #EE1D6A;
  box-shadow: 0 10px 0 #A40942;
}
.p-yagish-banner__card--rirekisho .p-yagish-banner__card-btn {
  background: #00983C;
  box-shadow: 0 10px 0 #005B24;
}
.p-yagish-banner__card--rirekisho {
  border-color: #00983C;
  box-shadow: 0 10px 0 #005B24;
}
.p-yagish-banner__card--shokumukeirekisho .p-yagish-banner__card-btn {
  background: #2776E4;
  box-shadow: 0 10px 0 #0754BF;
}
.p-yagish-banner__card--shokumukeirekisho {
  border-color: #2776E4;
  box-shadow: 0 10px 0 #0754BF;
}
.p-yagish-banner__card--taishokutodoke .p-yagish-banner__card-btn {
  background: #162F87;
  box-shadow: 0 10px 0 #000F46;
}
.p-yagish-banner__card--taishokutodoke {
  border-color: #162F87;
  box-shadow: 0 10px 0 #000F46;
}

/* --- セクション5 レスポンシブ --- */
@media screen and (max-width: 1040px) {
  .p-yagish-banner__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 8px;
    max-width: 500px;
    margin: 0 auto;
  }
  .p-yagish-banner__card {
    width: auto;
  }
  .p-yagish-banner__card-btn {
    font-size: 18px;
    min-height: 0;
    padding: 8px 4px;
  }
  .p-yagish-banner__main {
    font-size: 20px;
  }
}

/* --- セクション5-2: yagish template --- */
/* 色はここでまとめて管理（請求書：オレンジ、見積書：緑、特徴タグ：薄い緑と濃い緑） */
.p-template-banner {
  --tpl-invoice: #FF9140;
  --tpl-invoice-shadow: #D96A1E;
  --tpl-estimate: #1AA45B;
  --tpl-estimate-shadow: #0B7A3E;
  --tpl-new: #FF3B30;
  --tpl-feature-bg: #EAFFE4;
  --tpl-feature-border: #34A45B;
  --tpl-feature-text: #34A45B;
  background: #EAFFE4;
  padding: 24px 0 48px;
}
.p-template-banner__header {
  text-align: center;
  margin-bottom: 20px;
}
.p-template-banner__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
}
.p-template-banner__logo-img {
  display: block;
  height: 40px;
  width: auto;
}
.p-template-banner__logo-badge {
  padding: 2px 8px;
  background: var(--tpl-estimate);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}
.p-template-banner__main {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: #014E41;
}
.p-template-banner__body {
  display: flex;
  align-items: center;
  gap: 32px;
}
.p-template-banner__text {
  order: 1;
  flex: 1;
  min-width: 0;
}
.p-template-banner__cards {
  order: 2;
  flex: 0 0 50%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.p-template-banner__card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 2px solid;
  border-radius: 16px;
  text-decoration: none;
  transition: transform 0.2s;
}
.p-template-banner__card:hover {
  transform: translateY(-2px);
  text-decoration: none;
}
.p-template-banner__card--invoice {
  border-color: var(--tpl-invoice);
  box-shadow: 0 10px 0 var(--tpl-invoice-shadow);
}
.p-template-banner__card--estimate {
  border-color: var(--tpl-estimate);
  box-shadow: 0 10px 0 var(--tpl-estimate-shadow);
}
.p-template-banner__new {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 2px 8px;
  background: var(--tpl-new);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.p-template-banner__card-img {
  aspect-ratio: 2348 / 1884;
  background: #fff;
}
.p-template-banner__card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-template-banner__card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.p-template-banner__card--invoice .p-template-banner__card-btn {
  background: var(--tpl-invoice);
}
.p-template-banner__card--estimate .p-template-banner__card-btn {
  background: var(--tpl-estimate);
}
.p-template-banner__lead {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: #014E41;
}
.p-template-banner__features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.p-template-banner__features li {
  padding: 4px 12px;
  background: var(--tpl-feature-bg);
  border: 2px solid var(--tpl-feature-border);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  color: var(--tpl-feature-text);
  white-space: nowrap;
}
.p-template-banner__features li::before {
  content: '✓';
  margin-right: 2px;
}
.p-template-banner__cta {
  display: inline-block;
  padding: 12px 28px;
  background: var(--tpl-invoice);
  border-radius: 50px;
  box-shadow: 0 4px 0 var(--tpl-invoice-shadow);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transition: opacity 0.2s;
}
.p-template-banner__cta:hover {
  opacity: 0.9;
  color: #fff;
  text-decoration: none;
}

/* --- セクション5-2 レスポンシブ --- */
@media screen and (max-width: 1040px) {
  .p-template-banner__body {
    flex-direction: column;
    gap: 24px;
  }
  .p-template-banner__cards {
    order: 1;
    flex: none;
    width: 100%;
    max-width: 500px;
  }
  .p-template-banner__text {
    order: 2;
    width: 100%;
    max-width: 500px;
    text-align: center;
  }
  .p-template-banner__features {
    justify-content: center;
  }
}

/* --- セクション6: 転職ノウハウ --- */
.p-knowhow {
  padding: 48px 0;
  background: #F6F7FA;
}
.p-knowhow__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}
.p-knowhow__tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid #DFDFDF;
  border-radius: 50px;
  background: #fff;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
  transition: background 0.2s, border-color 0.2s;
}
.p-knowhow__tag:hover {
  background: #f5f5f5;
  border-color: #bbb;
  text-decoration: none;
  color: #333;
}
.p-knowhow__grid {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.p-knowhow__card {
  width: 184px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}
.p-knowhow__card:hover {
  opacity: 0.8;
  text-decoration: none;
  color: inherit;
}
.p-knowhow__card-img {
  width: 100%;
  height: 113px;
  background: #F2F2F2;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C1C1C1;
  font-size: 14px;
  margin-bottom: 8px;
}
.p-knowhow__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-knowhow__card-title {
  font-size: 16px;
  font-weight: 700;
  color: #3F3F3F;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-bottom: 8px;
}
.p-knowhow__card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}
.p-knowhow__card-tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #2C9637;
  border-radius: 2px;
  font-size: 14px;
  color: #2C9637;
  line-height: 1.3;
}
.p-knowhow__card-date {
  font-size: 12px;
  color: #3F3F3F;
}

.p-knowhow__empty {
  width: 100%;
  margin: 0;
  padding: 24px 0;
  text-align: center;
  font-size: 14px;
  color: #666;
}

/* --- セクション6 レスポンシブ --- */
@media screen and (max-width: 1040px) {
  .p-knowhow__tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 12px;
  }
  .p-knowhow__tags::-webkit-scrollbar {
    height: 4px;
  }
  .p-knowhow__tags::-webkit-scrollbar-track {
    background: #ECEDE9;
    border-radius: 2px;
  }
  .p-knowhow__tags::-webkit-scrollbar-thumb {
    background: #C1C1C1;
    border-radius: 2px;
  }
  .p-knowhow__tag {
    flex-shrink: 0;
  }
  .p-knowhow__grid {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 12px;
  }
  .p-knowhow__grid::-webkit-scrollbar {
    height: 4px;
  }
  .p-knowhow__grid::-webkit-scrollbar-track {
    background: #ECEDE9;
    border-radius: 2px;
  }
  .p-knowhow__grid::-webkit-scrollbar-thumb {
    background: #C1C1C1;
    border-radius: 2px;
  }
  .p-knowhow__card {
    min-width: 184px;
    width: 184px;
    flex-shrink: 0;
  }
}

/* --- セクション7: 特集記事を読む --- */
.p-feature {
  padding: 48px 0;
  background: #fff;
}
.p-feature__wrapper {
  margin-top: 20px;
}
.p-feature__grid {
  display: flex;
  gap: 0;
}
.p-feature__card {
  flex: 1;
  min-width: 0;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.p-feature__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.p-feature__card img {
  width: 100%;
  height: auto;
  display: block;
}
.p-feature__dots {
  display: none;
}

/* --- セクション7 レスポンシブ（カルーセル） --- */
@media screen and (max-width: 800px) {
  .p-feature__wrapper {
    overflow: hidden;
    margin-top: 20px;
  }
  .p-feature__grid {
    gap: 12px;
    transition: transform 0.4s ease;
    will-change: transform;
  }
  .p-feature__card {
    flex: 0 0 auto;
    width: 80%;
    max-width: 400px;
  }
  .p-feature__card:hover {
    transform: none;
    box-shadow: none;
  }
  .p-feature__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
  }
  .p-feature__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #DFDFDF;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s;
  }
  .p-feature__dot--active {
    background: #2C9637;
  }
}

/* --- セクション8: 採用担当者の方へ + 導入事例 --- */
.p-recruiter {
  padding: 48px 0;
  background: #54A12D;
  color: #fff;
}
.p-recruiter__label {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}
.p-recruiter__title {
  font-size: 24px;
  font-weight: 700;
  color: #FFEE00;
  margin: 0 0 12px;
  line-height: 1.4;
}
.p-recruiter__merits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.p-recruiter__merit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #fff;
  border-radius: 4px;
  font-size: 14px;
  color: #fff;
  line-height: 1.3;
}
.p-recruiter__merit svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.p-recruiter__desc {
  font-size: 16px;
  color: #fff;
  line-height: 1.7;
  margin: 0;
  padding-bottom: 24px;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.6);
}
.p-recruiter__cases {
  margin-top: 24px;
}
.p-recruiter__cases-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.p-recruiter__cases-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.p-recruiter__cases-link {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
}
.p-recruiter__cases-link:hover {
  color: #fff;
  opacity: 0.8;
}
.p-recruiter__cases-desc {
  font-size: 14px;
  color: #fff;
  line-height: 1.7;
  margin: 0 0 16px;
}
.p-recruiter__videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.p-recruiter__video {
  position: relative;
  display: block;
  aspect-ratio: 350 / 198;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: opacity 0.2s;
}
.p-recruiter__video:hover {
  opacity: 0.85;
}
.p-recruiter__item {
  display: block;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}
.p-recruiter__item:hover {
  opacity: 0.85;
}
.p-recruiter__item:hover .p-recruiter__video {
  opacity: 1;
}
.p-recruiter__item:hover .p-recruiter__video-title {
  text-decoration: underline;
}
.p-recruiter__video-title {
  display: -webkit-box;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.p-recruiter__video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.p-recruiter__video::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 18px 0 18px 30px;
  border-color: transparent transparent transparent #D9D9D9;
}

/* 実際のサムネイル上の再生ボタン（半透明の黒い円＋白い三角） */
.p-recruiter__video--thumb::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}
.p-recruiter__video--thumb::after {
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
  z-index: 2;
}

/* --- セクション8 レスポンシブ --- */
@media screen and (max-width: 767px) {
  .p-recruiter__title {
    font-size: 20px;
  }
  .p-recruiter__desc {
    font-size: 14px;
  }
  .p-recruiter__videos {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* --- 沖縄求人特集バナー（旧デザインのまま流用）の余白調整 --- */
.top_special_bnrblock {
  padding-top: 40px;
}

/* ===================================
   詳細条件モーダル
   =================================== */
.p-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}
.p-detail-modal.is-open {
  display: flex;
}
.p-detail-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.p-detail-modal__dialog {
  position: relative;
  width: 720px;
  max-width: calc(100% - 40px);
  height: calc(100vh - 80px);
  height: calc(100dvh - 80px);
  max-height: 760px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
}
.p-detail-modal__form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin: 0;
}

/* 画面の切り替え */
.p-detail-modal__screen {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.p-detail-modal__screen.is-active {
  display: flex;
}

/* ヘッダー */
.p-detail-modal__header {
  position: relative;
  flex-shrink: 0;
  padding: 24px 64px 16px 32px;
  border-bottom: 1px solid #ECEDE9;
}
.p-detail-modal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}
.p-detail-modal__header--sub .p-detail-modal__title {
  font-size: 20px;
}
.p-detail-modal__close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.p-detail-modal__close::before,
.p-detail-modal__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 2px;
  background: #333;
}
.p-detail-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.p-detail-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.p-detail-modal__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 16px;
  color: #F5821F;
  cursor: pointer;
}
.p-detail-modal__back::before {
  content: '';
  width: 8px;
  height: 8px;
  border-left: 2px solid #F5821F;
  border-bottom: 2px solid #F5821F;
  transform: rotate(45deg);
}

/* 本文（ここだけスクロール） */
.p-detail-modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* 画面A：項目の行 */
.p-detail-modal__row {
  display: flex;
  border-bottom: 1px solid #ECEDE9;
}
.p-detail-modal__label {
  flex-shrink: 0;
  width: 170px;
  padding: 24px 16px 24px 32px;
  border-right: 1px solid #ECEDE9;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}
.p-detail-modal__field {
  flex: 1;
  min-width: 0;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* 職種・業種の選択ボタン */
.p-detail-modal__picker {
  position: relative;
  width: 100%;
  padding: 12px 32px 12px 0;
  border: none;
  background: none;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  color: #A3A3A3;
  cursor: pointer;
}
.p-detail-modal__picker.is-selected {
  color: #333;
}
.p-detail-modal__picker-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-detail-modal__picker::after,
.p-detail-modal__list-item::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 8px;
  width: 9px;
  height: 9px;
  border-top: 2px solid #555;
  border-right: 2px solid #555;
  transform: translateY(-50%) rotate(45deg);
}

/* セレクト */
.p-detail-modal__select {
  width: 100%;
  max-width: 420px;
  height: 48px;
  padding: 0 40px 0 14px;
  border: 2px solid #ECEDE9;
  border-radius: 4px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C1C1C1' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 16px;
  color: #333;
  cursor: pointer;
}
.p-detail-modal__select:focus {
  outline: none;
  border-color: #014E41;
}
.p-detail-modal__select:disabled {
  background-color: #F6F7FA;
  color: #A3A3A3;
  cursor: not-allowed;
}

/* ラジオ・チェックボックス */
.p-detail-modal__options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.p-detail-modal__radio,
.p-detail-modal__checkbox,
.p-detail-modal__check-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  cursor: pointer;
}
.p-detail-modal__radio input,
.p-detail-modal__checkbox input,
.p-detail-modal__check-row input {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid #DFDFDF;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.p-detail-modal__radio input {
  border-radius: 50%;
}
.p-detail-modal__radio input:checked {
  border-color: #2C9637;
  background: radial-gradient(circle, #2C9637 0 45%, #fff 50%);
}
.p-detail-modal__checkbox input,
.p-detail-modal__check-row input {
  border-radius: 3px;
}
.p-detail-modal__checkbox input:checked,
.p-detail-modal__check-row input:checked {
  border-color: #2C9637;
  background: #2C9637 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5L20 7' stroke='%23fff' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 16px;
}

/* 待遇・福利厚生 */
.p-detail-modal__note {
  margin: 0;
  font-size: 14px;
}
.p-detail-modal__priority {
  display: flex;
  align-items: center;
  gap: 12px;
}
.p-detail-modal__priority-num {
  flex-shrink: 0;
  width: 16px;
  font-size: 16px;
  text-align: center;
}

/* 画面B〜D：リスト */
.p-detail-modal__list-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 20px 48px 20px 32px;
  border: none;
  border-bottom: 1px solid #ECEDE9;
  background: #fff;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  color: #333;
  cursor: pointer;
}
.p-detail-modal__list-item:hover {
  background: #F6F7FA;
}
.p-detail-modal__list-count {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #2C9637;
  border-radius: 50px;
  padding: 2px 8px;
}
.p-detail-modal__list-count:empty {
  display: none;
}
.p-detail-modal__check-row {
  display: flex;
  width: 100%;
  padding: 18px 32px;
  border-bottom: 1px solid #ECEDE9;
}
.p-detail-modal__check-row:hover {
  background: #F6F7FA;
}

/* フッター */
.p-detail-modal__footer {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  background: #F5F6FA;
}
.p-detail-modal__btn {
  height: 56px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.p-detail-modal__btn:hover {
  opacity: 0.85;
}
.p-detail-modal__btn--reset {
  width: 180px;
  border: 2px solid #ECEDE9;
  background: #fff;
  color: #333;
}
.p-detail-modal__btn--submit {
  width: 260px;
  border: none;
  background: #F5821F;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

/* モーダル表示中は背景をスクロール不可にする（JSでtopを設定） */
body.is-modal-open {
  position: fixed;
  left: 0;
  right: 0;
  overflow: hidden;
}

/* 職種のアコーディオン */
.p-detail-modal__accordion-toggle::after {
  transform: translateY(-75%) rotate(135deg);
  transition: transform 0.2s;
}
.p-detail-modal__accordion-toggle[aria-expanded="true"] {
  background: #F6F7FA;
  font-weight: 700;
}
.p-detail-modal__accordion-toggle[aria-expanded="true"]::after {
  transform: translateY(-25%) rotate(-45deg);
}
.p-detail-modal__accordion-panel .p-detail-modal__check-row {
  padding-left: 52px;
}

/* --- 詳細条件モーダル スマホ --- */
@media screen and (max-width: 767px) {
  .p-detail-modal__dialog {
    max-width: calc(100% - 24px);
    height: calc(100vh - 48px);
    height: calc(100dvh - 48px);
    max-height: none;
  }
  .p-detail-modal__header {
    padding: 18px 56px 14px 20px;
  }
  .p-detail-modal__close {
    top: 12px;
    right: 12px;
  }
  .p-detail-modal__row {
    flex-direction: column;
  }
  .p-detail-modal__label {
    width: auto;
    padding: 16px 20px 0;
    border-right: none;
    font-size: 15px;
  }
  .p-detail-modal__field {
    padding: 10px 20px 16px;
  }
  .p-detail-modal__select {
    max-width: none;
  }
  .p-detail-modal__options {
    gap: 12px 20px;
  }
  .p-detail-modal__list-item {
    padding: 18px 44px 18px 20px;
  }
  .p-detail-modal__check-row {
    padding: 16px 20px;
  }
  .p-detail-modal__footer {
    padding: 12px;
    gap: 8px;
  }
  .p-detail-modal__btn--reset {
    width: auto;
    flex: 1;
  }
  .p-detail-modal__btn--submit {
    width: auto;
    flex: 2;
  }
  .p-detail-modal__accordion-panel .p-detail-modal__check-row {
    padding-left: 40px;
  }
}

/* ===================================
   スマホ表示：セクションの余白と文字の大きさの調整
   （ファイル末尾に置き、各セクションのスタイルより優先させる）
   =================================== */
@media screen and (max-width: 767px) {
  /* --- セクションの上下の余白（メインビジュアル以外は16px） --- */
  .p-search-tags,
  .p-new-jobs,
  .p-interview,
  .p-yagish-banner,
  .p-knowhow,
  .p-feature,
  .p-recruiter {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .top_special_bnrblock {
    padding-top: 16px;
  }
  .p-yagish-banner {
    padding-bottom: 32px;
  }
  /* --- 左右の余白（メインビジュアルと同じ片側10px） --- */
  .p-top-new__inner {
    padding-left: 10px;
    padding-right: 10px;
  }
  /* 横スクロールの並びに付いている独自の左右の余白をなくす */
  .p-new-jobs__grid,
  .p-interview__grid {
    padding-left: 0;
    padding-right: 0;
  }

  /* --- 共通の見出し・リンク --- */
  .p-top-new__section-title {
    font-size: 18px;
    line-height: 1.3;
    margin-top: 8px;
    margin-bottom: 8px;
  }
  /* 見出しのすぐ下の要素の上の余白をなくし、見出しとの間を8pxにする */
  .p-interview__grid,
  .p-feature__wrapper {
    margin-top: 0;
  }
  .p-knowhow__tags {
    margin-top: 0;
  }
  .p-top-new__section-link {
    font-size: 13px;
  }

  /* --- 検索窓（かんたん検索） --- */
  /* 入力欄・プルダウンの文字は16px未満にするとiPhoneでタップ時に画面が拡大されるため、16pxのまま余白で高さを抑える */
  .p-search-hero__box {
    padding: 12px;
  }
  .p-search-hero__box-header {
    margin-bottom: 8px;
  }
  .p-search-hero__box-title {
    font-size: 15px;
  }
  .p-search-hero__detail-link {
    font-size: 13px;
  }
  .p-search-hero__detail-link svg {
    width: 16px;
    height: 16px;
  }
  .p-search-hero__detail-link--sp {
    margin-top: 8px;
  }
  .p-search-hero__form {
    gap: 6px;
  }
  .p-search-hero__input,
  .p-search-hero__select {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .p-search-hero__input::placeholder {
    font-size: 14px;
  }
  .p-search-hero__submit {
    padding: 9px;
    font-size: 15px;
  }
  .p-search-hero__submit-icon {
    width: 16px;
    height: 16px;
  }

  /* --- 職種・エリアから探す --- */
  .p-search-tags__grid {
    gap: 2px;
  }
  .p-search-tags__column-title {
    font-size: 14px;
    padding-left: 0;
  }
  /* ボタンを5列×2行で並べ、入りきらない分は横スクロール */
  .p-search-tags__list {
    display: grid;
    grid-template-columns: repeat(5, max-content);
    gap: 8px;
    padding: 0 0 10px;
  }
  .p-search-tags__item {
    justify-content: center;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 4px;
  }

  /* --- 最新の求人 --- */
  .p-new-jobs__card-title {
    font-size: 13px;
  }
  .p-new-jobs__card-info {
    font-size: 11px;
  }
  .p-new-jobs__card-fav {
    font-size: 12px;
  }

  /* --- 企業インタビュー --- */
  .p-interview__card-title {
    font-size: 13px;
  }
  .p-interview__card-desc {
    font-size: 12px;
  }

  /* --- yagishバナー --- */
  .p-yagish-banner__sub {
    font-size: 14px;
  }
  .p-yagish-banner__main {
    font-size: 17px;
  }
  .p-yagish-banner__card-btn {
    font-size: 15px;
  }

  /* --- 転職ノウハウ --- */
  .p-knowhow__tag {
    font-size: 12px;
  }
  .p-knowhow__card-title {
    font-size: 13px;
  }
  .p-knowhow__card-tag {
    font-size: 11px;
  }
  .p-knowhow__card-date {
    font-size: 11px;
  }

  /* --- 採用担当者の方へ＋導入事例 --- */
  .p-recruiter__label {
    font-size: 13px;
  }
  .p-recruiter__title {
    font-size: 17px;
  }
  .p-recruiter__merit {
    font-size: 12px;
  }
  .p-recruiter__desc {
    font-size: 13px;
  }
  .p-recruiter__cases-title,
  .p-recruiter__cases-link {
    font-size: 13px;
  }

  /* --- カードの大きさ（画像の縦横比はPCのカードと同じ） --- */
  /* 最新の求人：幅130px、画像の高さ100px */
  .p-new-jobs__grid {
    gap: 10px;
  }
  .p-new-jobs__card {
    min-width: 130px;
    width: 130px;
  }
  .p-new-jobs__card-img {
    height: 100px;
  }
  /* スマホでは勤務地（住所）と勤務時間を表示しない */
  .p-new-jobs__card-info--location,
  .p-new-jobs__card-info--time {
    display: none;
  }
  .p-new-jobs__card-body {
    padding: 8px;
  }
  .p-new-jobs__card-title {
    margin-bottom: 4px;
  }
  .p-new-jobs__card-info {
    gap: 4px;
    margin-bottom: 2px;
  }
  .p-new-jobs__card-info-icon {
    width: 12px;
    height: 12px;
  }
  .p-new-jobs__card-foot {
    padding: 6px 8px 8px;
  }

  /* 企業インタビュー：幅150px、画像 150×(180/310) ≒ 87px */
  .p-interview__grid {
    gap: 10px;
  }
  .p-interview__card {
    min-width: 150px;
    width: 150px;
  }
  .p-interview__card-img {
    height: 87px;
    margin-bottom: 6px;
  }
  .p-interview__card-title {
    margin-bottom: 4px;
  }

  /* 転職ノウハウ：幅130px、画像 130×(113/184) ≒ 80px */
  .p-knowhow__grid {
    gap: 10px;
  }
  .p-knowhow__card {
    min-width: 130px;
    width: 130px;
  }
  .p-knowhow__card-img {
    height: 80px;
    margin-bottom: 6px;
  }
  .p-knowhow__card-title {
    margin-bottom: 4px;
  }
  .p-knowhow__card-tag {
    padding: 1px 4px;
  }

  /* --- カードの画像とテキストの間を詰める --- */
  /* タイトルなどの段落に付いている上の余白をなくし、画像との間を4px程度にする */
  .p-new-jobs__card-body {
    padding-top: 4px;
  }
  .p-new-jobs__card-title,
  .p-interview__card-title,
  .p-interview__card-desc,
  .p-knowhow__card-title {
    margin-top: 0;
  }
  .p-interview__card-img,
  .p-knowhow__card-img {
    margin-bottom: 4px;
  }

  /* --- yagish template --- */
  .p-template-banner {
    padding-top: 16px;
    padding-bottom: 32px;
  }
  .p-template-banner__logo-img {
    height: 32px;
  }
  .p-template-banner__logo-badge {
    font-size: 13px;
  }
  .p-template-banner__main {
    font-size: 17px;
  }
  .p-template-banner__card-btn {
    font-size: 15px;
  }
  .p-template-banner__new {
    font-size: 10px;
  }
  .p-template-banner__lead {
    font-size: 15px;
  }
  .p-template-banner__features li {
    font-size: 13px;
  }
  .p-template-banner__cta {
    display: block;
    box-sizing: border-box;
    width: 100%;
    font-size: 15px;
    text-align: center;
  }
}
