@charset "utf-8";
/* CSS Document */

/* ------------------------------- */
/* News
/* ------------------------------- */
/* PC View */

@media print, screen and (min-width:650px) {
  .top_news_box{
    width: 950px;
    padding: 20px 0 25px 0;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 25px;
    box-shadow: 0 0 4px #DDDDDD;
    background-color: #FFFFFF;
  }
  .top_news{
    width: 550px;
    margin-left: auto;
    margin-right: auto;
    max-height: 130px;
    overflow: scroll;
    overflow-x: hidden;
  }
  .top_news ul{
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .top_news.small {
    max-height: 200px;
  }
  .top_news.large {
    max-height: 300px;
  }
  .top_news li {
    font-size: 1.35rem;
    display:block;
    font-weight: normal;
    width: 100%;
    padding:10px 15px 10px 30px;
    background-image: none;
    background-repeat: no-repeat;
    background-position: 10px 13px;
    border-bottom: 1px dashed #D3CDBC;
  }
  .top_news li:after {
    height: 0;
    display: block;
    clear: both;
    content: "";
  }
   .top_news li:before {
    height: 0;
    display: block;
    clear: both;
    font-size: 2.0rem;
    content: "\025c6";
    color: #326E39;
    position: relative;
    left: -25px;
  }
  .top_news .date{
    display: block;
    float: left;
    width: 150px;
  }
  .top_news .headline{
    display: block;
    float: left;
    width: 630px;
  }

  .top_news::-webkit-scrollbar{
    width: 12px;
  }
  .top_news::-webkit-scrollbar-thumb{
    background-color: #BBB;
    border-radius: 6px;
  }
  .top_news::-webkit-scrollbar-track-piece:start{
    /* top */
    background-color: #EEE;
  }
  .top_news::-webkit-scrollbar-track-piece:end{
    /* bottom */
    background-color: #EEE;
  }
}
/* Smart Phone View */
@media only screen and (max-width: 649px) {
  .globalnavi{
    display: none;
  }
  .top_news{
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    max-height: 200px;
    padding: 0;
    margin-bottom: 25px;
    overflow: scroll;
    overflow-x: hidden;
    background-color: #FFFFFF;
  }
  .top_news.small {
    max-height: 250px;
  }
  .top_news.large {
    max-height: 250px;
  }
  .top_news li {
    font-size: 1.35rem;
    display:block;
    font-weight: normal;
    width: 100%;
    padding: 10px 15px 10px 30px;
    background-image:url("/image/new_point.png");
    background-repeat: no-repeat;
    background-position: 10px 13px;
    border-bottom: 1px dashed #D3CDBC;
  }
  .top_news li:after {
    height: 0;
    display: block;
    clear: both;
    content: "";
  }
  .top_news ul{
    width: 100%;
  }
  .top_news li {
    width: 100%;
  }
  .top_news .date{
    display: block;
    float: none;
  }
  .top_news .headline{
    display: block;
    width: 100%;
    float: none;
  }
  .top_news::-webkit-scrollbar{
    width: 12px;
  }
  .top_news::-webkit-scrollbar-thumb{
    background-color: #BBB;
    border-radius: 6px;
  }
  .top_news::-webkit-scrollbar-track-piece:start{
    /* top */
    background-color: #EEE;
  }
  .top_news::-webkit-scrollbar-track-piece:end{
    /* bottom */
    background-color: #EEE;
  }
}
/* ================
   募集職種リスト
=================== */

div:has(> ul.bf_db) {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
ul.bf_db > br {
  display: none;
}

ul.bf_db {
  --card-theme: #d96566;
  --card-bg: #fdf0f0; 
  --card-border: #e6b9b9;
  
  background-color: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  padding: 20px;
  padding-bottom: 70px;
  margin: 0 0 20px 0;
  list-style: none;
  height: auto;
  aspect-ratio: auto;
}
ul.bf_db li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* キャッチコピー */
ul.bf_db .db1 {
  position: relative;
  z-index: 3;
  margin-bottom: 12px;
}
ul.bf_db .db1 a {
  display: inline-block;
  background-color: var(--card-theme);
  font-family: 'Zen Old Mincho', serif;
  font-weight: 700;
  color: #ffffff;
  font-size: 1.4rem;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 募集職種 */
ul.bf_db .db2 {
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
  width: 55%;
  min-height: 60px;
  display: flex;
  align-items: center;
}
ul.bf_db .db2 a {
  display: block; 
  color: #333333;
  font-family: 'Zen Old Mincho', serif;
  font-weight: bold;
  line-height: 1.4;
  text-decoration: none;
  font-size: 1.8rem;
}
ul.bf_db .db2 a::first-line {
  font-size: 2.0rem;
  line-height: 1.2;
}

/* テキスト文 */
ul.bf_db .db3 {
  position: relative;
  z-index: 2;
  width: 55%;
}
ul.bf_db .db3 a {
  color: #444444;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.5;
  text-decoration: none;
  display: block;
  text-shadow: 1px 1px 2px var(--card-bg), -1px 1px 2px var(--card-bg), 1px -1px 2px var(--card-bg), -1px -1px 2px var(--card-bg), 0 0 3px var(--card-bg);
}

/* 画像エリア */
ul.bf_db .db4 {
  position: absolute;
  top: auto;
  bottom: 0;
  right: 0;
  width: 45%; 
  height: calc(100% - 30px);
  min-height: 250px;
  z-index: 1;
  pointer-events: none;
}
ul.bf_db .db4 a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
ul.bf_db .db4 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 95px 0 0 0; 
}

/* ボタンエリア */
ul.bf_db .db5 {
  position: absolute;
  bottom: 40px;
  left: 20px;
  width: 65%;
  z-index: 2;
}
ul.bf_db .db5 a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--card-theme);
  color: #ffffff;
  border: none;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 500;
  font-size: 1.4rem;
  text-decoration: none;
  padding: 10px;
  border-radius: 5px;
  transition: opacity 0.3s ease;
}
ul.bf_db .db5 a:hover {
  opacity: 0.8;
}
ul.bf_db .db5 a::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  transform: translateY(-50%) rotate(45deg);
}

/* --- カラーテーマ --- */
ul.bf_db.pink,   ul.bf_db[class*="pink"]   { --card-theme: #d96566; --card-bg: #fdf0f0; --card-border: #e6b9b9; }
ul.bf_db.green,  ul.bf_db[class*="green"]  { --card-theme: #326e39; --card-bg: #eaf0eb; --card-border: #a4c2a5; }
ul.bf_db.orange, ul.bf_db[class*="orange"] { --card-theme: #f2af2c; --card-bg: #feeed3; --card-border: #f7d69b; }
ul.bf_db.gray,   ul.bf_db[class*="gray"]   { --card-theme: #1f2937; --card-bg: #f3f4f6; --card-border: #d1d5db; }
ul.bf_db.blue,   ul.bf_db[class*="blue"]   { --card-theme: #007ea7; --card-bg: #f0f8ff; --card-border: #99d6eb; }
ul.bf_db.brown,  ul.bf_db[class*="brown"]  { --card-theme: #3c2f2f; --card-bg: #fffaf0; --card-border: #d1c7c7; }

/* --- スマホビュー --- */
@media only screen and (max-width: 649px) {
  ul.bf_db {
    width: 100%;
    max-width: 340px;
    min-height: auto;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 80px;
  }
  ul.bf_db .db4 {
    height: calc(100% - 20px);
    min-height: 220px;
  }
  ul.bf_db .db5 {
    bottom: 22px; 
  }
}
/* --- PCビュー --- */
@media print, screen and (min-width: 650px) {
  ul.bf_db {
    width: calc((100% - 60px) / 3);
    margin: 0 30px 30px 0;
    padding-bottom: 80px;
    max-width: none;
  }
  ul.bf_db:nth-of-type(3n) {
    margin-right: 0;
  }
  ul.bf_db .db1 { margin-bottom: 4px; }
  ul.bf_db .db1 a { font-size: 1.6rem; padding: 4px 16px; }
  ul.bf_db .db2 { 
    width: 60%; 
    height: 58px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
  }
  ul.bf_db .db2 a { 
    font-size: 2.0rem; 
    position: relative;
    top: 4px;
  }
  ul.bf_db .db2 a::first-line { font-size: 2.4rem; }
  ul.bf_db .db3 { width: 65%; }
  ul.bf_db .db3 a { font-size: 1.5rem; }
  ul.bf_db .db4 { top: 30px; }
  ul.bf_db .db5 { bottom: 20px; width: 70%; }
  ul.bf_db .db5 a { font-size: 1.6rem; }
}
/* SP追従バナー消去 */
@media only screen and (max-width: 649px) {
  div#clinging_insect,
  div#clinging_insect_2,
  div#clinging_insect_3,
  div#clinging_insect_2 a,
  div#clinging_insect_3 a,
  div#clinging_insect_2 img,
  div#clinging_insect_3 img {
    display: none;
    visibility: hidden;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
    position: absolute;
    z-index: -9999;
  }
}
