/*!
Theme Name: meta-recruit
Text Domain: meta-recruit
*/

body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.75em;
  font-feature-settings: "palt";
  letter-spacing: 2px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 600;
  line-height: 1.2em;
}
/* .oohige h1,
.oohige h2,
.oohige h3,
.oohige h4,
.oohige h5,
.oohige h6 {
  font-family: "FZ Shaolin Kung Fu JP", sans-serif;
  font-weight: 600;
  line-height: 1.2em;
} */
.bold h1,
.bold h2,
.bold h3,
.bold h4,
.bold h5,
.bold h6 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 900;
  line-height: 1.2em;
}
.sp_only {
  display: none;
}

/* ポップアップ調整 */
.top-popup a,
.top-popup a:link {
  color: #fff;
}
.top-popup a.dialog-close-button {
  text-decoration: none;
  color: initial;
}

:focus {
  outline: none;
}

/* ヘッダー調整 */
#header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
}
.sp_headericon.elementor-widget-icon-box .elementor-icon-box-description {
  margin-top: -27px;
}

.txt_blue {
  color: #174698;
}
.marker {
  background: rgb(255 108 108);
  font-weight: 600;
  color: #fff;
  font-size: 1.3em;
}
.marker2 {
  background: linear-gradient(transparent 60%, #1a2754 60%);
  font-weight: 600;
}
.marker3 {
  background: linear-gradient(transparent 60%, #fffb13 60%);
  font-weight: 600;
}
.check_list {
  position: relative;
  display: block;
  padding-left: 1.2em;
}
.check_list::before {
  position: absolute;
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #ab1111;
  left: 0;
}
.font_l {
  font-size: 1.4em;
}
.font_s {
  font-size: 0.8em;
}
/* 大かっこ風装飾 */
.enph-brackets {
  text-align: center;
}
.enph-brackets > div {
  position: relative;
  display: inline-block;
  padding: 0 20px;
}
.enph-brackets > div::before {
  position: absolute;
  content: "";
  top: 0;
  right: 5px;
  width: 15px;
  height: 100%;
  border: 5px solid rgb(255 79 123);
  border-left: none;
}

.enph-brackets > div::after {
  position: absolute;
  content: "";
  top: 0;
  left: 5px;
  width: 15px;
  height: 100%;
  border: 5px solid rgb(255 79 123);
  border-right: none;
}
/*  */

table.price_table {
  color: #111;
  border: 1px solid #ddd;
}
table.price_table th,
table.price_table td {
  padding: 20px;
  font-size: 20px;
  line-height: 1.5em;
  border-bottom: 1px solid #ddd;
}
table.price_table td.font_s {
  font-size: 16px;
}
table.price_table th {
  width: 18%;
  font-family: "CezannePro-B", sans-serif;
  background-color: #ab1111;
  color: #fff;
}
.td_product {
  width: 20%;
}
.td_detail {
  width: 30%;
}
.td_price_1 {
  width: 25%;
  text-align: center;
}
.td_price_2 {
  width: 25%;
  text-align: center;
}

.hukidashi {
  position: relative;
}
.hukidashi.left::after {
  position: absolute;
  content: "";
  top: 58px;
  right: calc(100% - 30px);
  border: 15px solid transparent;
  border-top: 15px solid #ffe68e;
  width: 0;
  height: 0;
  transform: rotate(90deg);
}
.hukidashi.right::after {
  position: absolute;
  content: "";
  top: 58px;
  left: calc(100% - 30px);
  border: 15px solid transparent;
  border-top: 15px solid #ffe68e;
  width: 0;
  height: 0;
  transform: rotate(270deg);
}

#primary {
  padding-top: 100px;
  padding-bottom: 20px;
  padding-left: 30px;
}

/* mask */
.cv-clip {
  clip-path: polygon(100% 0%, 100% 85%, 50% 100%, 0 85%, 0 0, 50% 15%);
}
.merit-clip {
  clip-path: polygon(100% 0%, 100% 90%, 50% 100%, 0 90%, 0 0, 50% 10%);
}
@media (max-width: 767px) {
  .merit-clip {
    clip-path: polygon(100% 0%, 100% 95%, 50% 100%, 0 95%, 0 0, 50% 5%);
  }
}

@media (max-width: 767px) {
  table.price_table th,
  table.price_table td {
    line-height: 1.4em;
    font-size: 13px;
  }
  table.price_table td.font_s {
    font-size: 13px;
  }
  .hukidashi.left::after,
  .hukidashi.right::after {
    top: 100%;
    left: calc(50% - 15px);
    transform: rotate(0deg);
  }

  #primary {
    font-size: x-small;
  }
}

/* 改行タグ（改行タグ挿入ツール用） */
br.pc_only,
br.tb_only,
br.sp_only {
  display: none;
}
/* PC：1025px以上 */
@media screen and (min-width: 1025px) {
  br.pc_only {
    display: inline;
  }
}
/* タブレット：768〜1024px */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  br.tb_only {
    display: inline;
  }
}
/* スマホ：767px以下 */
@media screen and (max-width: 767px) {
  br.sp_only {
    display: inline;
  }
}

/* ===== 調整用の値 ===== */
.carousel {
  --speed: 60px; /* 1秒あたりに流れる距離（小さいほどゆっくり） */
  --img-width: 160px; /* 画像の幅（高さは画像の比率に合わせて自動） */
  --gap: 56px; /* 画像同士の間隔 */
}

/* ===== カルーセル本体 ===== */
.carousel {
  overflow: hidden;
  width: 100%;
}

.carousel__track {
  display: flex;
  align-items: center; /* セット同士を縦方向中央揃え */
  width: max-content;
  will-change: transform;
}

.carousel__track.is-running {
  /* --distance と --duration はJSで自動計算 */
  animation: scroll-left var(--duration) linear infinite;
}

/* マウスを乗せたら一時停止（不要なら削除） */
/* .carousel:hover .carousel__track {
  animation-play-state: paused; 
} */

.carousel__list {
  display: flex;
  align-items: center; /* 画像を縦方向中央揃え */
  gap: var(--gap);
  margin: 0;
  padding: 0 var(--gap) 0 0; /* 右側の余白＝次のセットとの間隔 */
  list-style: none;
  flex-shrink: 0;
}

.carousel__list img {
  display: block;
  width: var(--img-width);
  height: auto;
  border-radius: 8px;
}

/* ちょうど1セット分だけ左へ動かして最初に戻す */
@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(var(--distance) * -1));
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel__track.is-running {
    animation: none;
  }
  .carousel {
    overflow-x: auto;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .carousel {
    --img-width: 88px;
    --gap: 56px;
  }
}

@media (max-width: 767px) {
  .carousel {
    --img-width: 72px;
    --gap: 16px;
  }
}
