/*
Theme Name: 山栄フーズ（運送・外国人派遣）
*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Sans+JP:wght@100..900&display=swap');
*,*::before,*::after {
  max-width: 100%;
}
body {
  font-family: "Montserrat", "Noto Sans JP", serif;
}
#nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  transition: right 0.3s ease-in-out;
  z-index: 1000;
}
#nav-menu.show {
  right: 0;
}
.menu-icon-wrap {
  top: 20px;
  right: 20px;
  z-index: 1100;
  width: 60px;
  height: 60px;
  border-radius: 30px;
}
.menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 30px;
  cursor: pointer;
}
.menu-icon span {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 2px;
  background: white;
  transition: transform 0.3s ease-in-out;
}
.menu-icon span:nth-child(1) {
  transform: translateY(9px);
}
.menu-icon span:nth-child(3) {
  transform: translateY(-9px);
}
.menu-icon.open span:nth-child(1) {
  transform: translateY(2px) rotate(45deg);
}
.menu-icon.open span:nth-child(2) {
  opacity: 0;
}
.menu-icon.open span:nth-child(3) {
  transform: translateY(-2px) rotate(-45deg);
}

.top-kv {
/*  max-height: 60vw;*/
}

.arrow::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: solid 2px #fff;
  border-right: solid 2px #fff;
  transform: rotate(45deg);
  margin-left: 5%;
}
.arrow.black::after {
  border-top: solid 2px #000;
  border-right: solid 2px #000;
}

.wrap-36man {
  background: url(images/36man.png) no-repeat;
  background-size: cover;
  background-position: center;
}

.accordion-content {
  display: none;
}
.accordion-btn::after {
  position: absolute;
  top: 34px;
  right: 5px;
  content: "";
  width: 8px;
  height: 8px;
  border-top: solid 2px #333;
  border-right: solid 2px #333;
  transform: translate(-100%, -50%) rotate(135deg);
  transition: transform 0.1s;
}
.accordion-btn.active::after {
  transform: translate(-100%, -50%) rotate(315deg);
}
#topBtn {
  display: none; /* 初期状態で非表示 */
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}
#topBtn::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-top: solid 2px #fff;
  border-right: solid 2px #fff;
  transform: rotate(-45deg);
}
.page-top {
  background: url(images/page_kv_bg.png) no-repeat;
  background-size: 60%;
  background-position: 95% 105%;
}
/* 初期表示では全て非表示 */
.tab-content {
  display: none;
}
/* アクティブなタブのコンテンツは表示 */
.active-tab {
  display: block;
}
.f-feature-palt {
  font-feature-settings: "palt";
}



.fz28 {
  font-size: 28px;
}


/*------------ CONTACT ------------*/
/* フォームスタイル */
input:not([type=checkbox], [type=radio]), button[type=submit], select, textarea {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  padding: 1.25em 1em;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

/* ラベルとレスポンシブ調整 */
form label {
  display: block;
  margin-bottom: 5px;
}
.contact .page-title-wrap {
  background: #fff;
}
.wpcf7-form-control-wrap {
  width: 70%;
  margin-bottom: 40px;
}
.wpcf7-form-control-wrap input:not([type=checkbox],[type=radio]),
.wpcf7-form-control-wrap select,
.wpcf7-form-control-wrap textarea {
  background: #fff;
  border-color: #ccc;
  margin-bottom: 0;
}
.wpcf7-form-control-wrap input.p-postal-code {
  margin-bottom: 40px;
}
.wpcf7-form-control-wrap input::placeholder,
.wpcf7-form-control-wrap textarea::placeholder {
  color: #d9d9d9;
}
.wpcf7-form label {
  margin-right: 20px;
}
label.required {
  display: flex;
  justify-content: space-between;
  padding-right: 20px;
}
label.required::after {
  content: "必須";
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 30px;
  border-radius: 4px;
  color: #fff;
  background: #F02434;
}
input[type=submit] {
  display: flex;
  color: #fff;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 240px;
  height: 80px;
  background: #F02434;
  border-radius: 0;
  margin: 80px auto 0;
}
.address-label {
  margin-right: 40px;
}
.privacy-policy-page-title-wrap {
  margin-top: 0;
  aspect-ratio: auto;
}
#wpcf7cpcnf + .privacy-policy-page-title-wrap,
#wpcf7cpcnf + .privacy-policy-content {
  display: none;
}

.privacy-policy-content {
  padding: clamp(2rem, 1.235rem + 3.265vw, 4.5rem) clamp(1.5rem, 0.046rem + 6.204vw, 6.25rem);
  max-height: 30rem;
  background-color: #f5f5f5;
  overflow-y: auto;
}
@media (max-width: 768px) {
  form input, form select, form textarea, form button {
    font-size: 14px;
  }
  .wpcf7-form > .flex {
    flex-wrap: wrap;
  }
  .wpcf7-form > .flex label {
    width: 100%;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
  }
  label.required::after {
    font-size: 14px;
    border-radius: 4px;
    margin-right: .5rem;

  }
  .wpcf7-form-control-wrap {
    width: 100%;
  }
  .address-wrap {
    flex-direction: column;
  }
  .address-wrap .w-70 {
    width: 100%;
  }
  .address-wrap .w-70 .flex {
    flex-direction: column;
  }
  .address-wrap .w-70 .w-20 br {
    display: none;
  }
  .wpcf7-form-control-wrap input.p-postal-code, .p-postal-code {
    width: 140px;
  }
}
/*------------ /CONTACT ------------*/

/* 投稿ページ（single）のみに適用 */
.single-post .post-content {
  max-width: 800px; /* 読みやすい幅 */
  margin: 0 auto;
  padding: 1rem;
  line-height: 1.5;
}

/* 見出しのスタイル */
.single-post h1 {
  margin-bottom: 2rem;
}
.single-post h2 {
  background: #F02434;
  padding: 1.5rem 2rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}
.single-post h3 {
  padding: 1rem;
  border-top: solid .25rem #F02434;
  border-bottom: solid .25rem #F02434;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

/* 画像をレスポンシブに */
.single-post img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 段落の調整 */
.single-post p {
  line-height: 2;
  margin-bottom: 2rem;
}
.single-post {
  li {
    margin-bottom: 1rem;
  }
}


/* レスポンシブ調整 */
@media (max-width: 768px) {
  .single-post .post-content {
    padding: 0.5rem;
  }

  .single-post h1 {
    font-size: 1.75rem;
  }

  .single-post h2 {
    font-size: 1.25rem;
  }
}



/* 投稿ナビゲーション */
.post-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.post-navigation a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease-in-out;
}
.post-navigation a:hover {
  opacity: 0.8;
}
.post-navigation img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}



/* ページネーション */
.pagination {
  display: flex;
  gap: 0.5rem;
}
.pagination-link a {
  display: block;
  padding: 0.5rem 1rem;
  background: #f4f4f4;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  transition: background 0.2s;
}
.pagination-link a:hover {
  background: #ddd;
}
.pagination-link .current {
  display: inline-block;
  background: #333;
  color: #fff;
  font-weight: bold;
  border-radius: 4px;
  padding: 0.5rem 1rem;
}
.break-word {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}
pre {
  overflow: scroll;
}
/* snow monkey */
.smb-box,
.smb-balloon {
  margin-bottom: 2rem;
}
.smb-balloon p {
  margin-bottom: 1rem;
}

.fixed-side-banner {
  top: 50%;
  right: 0;
  transform: translate(0%,-50%);
  writing-mode: vertical-rl;
  transition: 0.3s;
}
.fixed-side-banner:hover {
  background: #f02434b3;
  transition: 0.3s;
}

@media screen and (max-width: 769px) {
  .menu-icon-wrap {
    top: 10px;
    right: 10px;
  }
  .top-kv-phone::after {
    width: 20px;
    height: 80px;
    box-shadow: 0px 0px 100px 50px rgba(70, 20, 0, 0.4);
  }
  .top-kv {
    background-size: 100%;
    background-position: 0% 10%;
  }
  .rotate90 {
    transform: rotate(90deg);
  }
  ol.simpletoc-list {
    padding: 1rem;
  }
  #topBtn {
    bottom: 10px;
    right: 10px;
  }
  .page-top {
    background-size: 70%;
    background-position: 98% 102%;
  }
}

/* tachyons add styles */
@media screen and (min-width: 0px) {
  .red {
    color: #F02434;
  }
  .washed-red {
    color: #FEE9E9;
  }
  .light-green {
    color: #46BE3E;
  }
  .bg-red {
    background-color: #F02434;
  }
  .bg-washed-red {
    background-color: #FEE9E9;
  }
  .bg-washed-red-50 {
    background-color: rgba(254, 233, 233, .5);
  }
  .b--red {
    border-color: #F02434;
  }
  .b--washed-red {
    border-color: #FEE9E9;
  }
  .min-vh-56 {
    min-height: 56vh;
  }
}

.top-kv-h1 {
    font-size: 56px;
  }
@media screen and (max-width: 960px) {
  .top-kv-h1 {
    font-size: 42px;
  }
}
@media screen and (max-width: 720px) {
  .top-kv-h1 {
    font-size: 40px;
  }
}
@media screen and (max-width: 690px) {
  .br-db-690 {
    display: block;
  }
}
@media screen and (max-width: 600px) {
  .top-kv-h1 {
    font-size: 36px;
  }
  .top-kv-flex {
    flex-direction: column;
    .left {
      width: 100%;
    }
  }
  .w-100-600px {
    width: 100%;
  }

}
@media screen and (max-width: 480px) {
  .h4-5 {
    height: 12em;
    object-position: top;
  }
  .top-kv-h1 {
    font-size: 42px;
  }
}
@media screen and (max-width: 390px) {
  .fz23-s {
    font-size: 23px;
  }
}
@media screen and (min-width: 0px) {
  .fz23 {
    font-size: 23px;
  }
  .fz21 {
    font-size: 21px;
  }
}
/* -l */
@media screen and (min-width: 60em) {
  .fz28-l {
    font-size: 28px;
  }
}