@charset "UTF-8";
/* ==================================================
Message
社長あいさつ
================================================== */
#message {
  margin-top: -100px !important;
  position: relative;
  z-index: -1;
}

@media (max-width:960px) {
  #message {
    margin-top: clamp(-40px, -10vw, -140px) !important;
  }
}


/* メッセージ1つめ */
@media (max-width:960px) {
  .message01 .__parallaxLayer {
    background-position: right !important;
    background-size: 160% !important;
    background-repeat: no-repeat;
  }
}

.message-photo img {
  border-radius: 0 100px 0 0;
  overflow: hidden;
}

.swell-block-fullWide__inner:has(.message-lead) {
  position: relative;
  z-index: 100;
  padding-bottom: 10px;
}

.message-top .message-lead {
  padding: 44px clamp(40px, 5vw, 60px);
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 0 100px 0 30px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

@media (min-width:1288px) {
  .message-top .message-photo{
    position: relative;
  }
  .message-top .message-photo::before{
    content: "";
    display: block;
    width: 200%;
    height: 100%;
/*     background: linear-gradient(90deg, rgba(240, 233, 226, 1) 0%, rgba(240, 233, 226, 1) calc(100% - 100px), rgba(240, 233, 226, 0) 100%); */
/* 	background: linear-gradient(90deg, rgba(152, 144, 140, 1) 0%, rgba(152, 144, 140, 1) calc(100% - 80px), rgba(152, 144, 140, 0) 100%); */
/* 	  background: linear-gradient(90deg, rgba(255,255,255, 1) 0%, rgba(255,255,255, 1) calc(100% - 80px), rgba(255,255,255, 0) 100%); */
    position: absolute;
    left: calc(-200% + 150px);
    top:0;
  }

  .message-top .wp-block-column:has(.message-lead) {
    margin-top: 130px !important;
    align-items: center !important;
  }

  .message-top .message-lead {
    width: calc(100% + 40px) !important;
    line-height: 2.3;
  }
}

@media (max-width: 1287px) {
  .message-top {
    align-items: center !important;
  }

  .message-top {
    margin-inline: calc(50% - 50vw);
    width: 100vw;
    padding-right: 20px;
  }

  .message-top .wp-block-column{
    margin-inline: calc(50% - 50vw);
    width: 100vw;
  }
}

@media (max-width: 960px) {
  .message-top .message-photo {
    transform: translateY(50px);
    text-align: left;
  }

  .message-top .message-photo img {
    width: 90%;
  }

  .wp-block-columns.message-top {
    flex-direction: column;
    padding-right: 0;
  }

  .message-top .message-lead {
    margin-left: 50px;
    border-radius: 0 0 0 30px;
  }
}

@media (max-width: 767px) {
  .message-top .message-lead {
    padding: 56px 20px 32px;
    margin-left: 20px;
  }
}



/* メッセージ2つめ */
.message-bottom p {
  padding-inline: clamp(40px, 6vw, 60px);
  padding-block: 80px;
  line-height: 2.3;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 0 0 0 100px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.swell-block-fullWide:has(.message-bottom) {
  padding-top: 30px !important;
}

@media (min-width:1288px) {
  .swell-block-fullWide:has(.message-bottom) {
    padding-top: 40px !important;
  }
}

@media (max-width: 1287px) {
  .message-bottom p {
    line-height: unset;
  }

  .message-bottom {
    margin-inline: calc(50% - 50vw);
    width: 100vw;
    padding-right: 50px;
  }

  .message-bottom p {
    border-radius: 0 100px 100px 0;
  }
}

@media (max-width: 767px) {
  .message-bottom {
    padding-right: 20px;
  }

  .message-bottom p {
    padding: 35px 40px 32px;
  }
}


/* ==================================================
Company Profile
会社概要
================================================== */

#profile .wp-block-table {
  width: 100%;
  max-width: 767px;
  margin: 0 auto;
}

#body_wrap.page-company #profile .tbl-infos tr {
  border-bottom: 1px solid #FFAC1F;
}

#body_wrap.page-company #profile .tbl-infos tr td {
  padding: 14px 0;
  line-height: 2;
  letter-spacing: 3.4px;
  border: none;
}

#body_wrap.page-company #profile .tbl-infos tr td:nth-child(1) {
  width: 145px;
  padding-left: 35px;
  font-weight: 500;
  color: #f0580c;
  border-bottom: 2px solid #f0580c;
}

@media (max-width: 767px) {
  #body_wrap.page-company #profile .tbl-infos tr td:nth-child(1) {
    width: 100px;
    padding: 4px;
  }
}

#body_wrap.page-company #profile .tbl-infos tr td:nth-child(2) {
  width: calc(100% - 145px);
  padding-left: 45px;
}

@media (max-width: 767px) {
  #body_wrap.page-company #profile .tbl-infos tr td:nth-child(2) {
    width: calc(100% - 100px);
    padding: 4px 16px;
  }
}

#body_wrap.page-company #profile .tbl-infos tr:nth-child(even) {
  background-color: #fff6ee;
}

#profile iframe {
  height: 475px;
  max-width: 767px;
}

@media (max-width: 767px) {
  #profile iframe {
    height: 215px;
  }
}




/* ==================================================
History
沿革
================================================== */
#history .swell-block-fullWide:has(.history-row)::before {
  content: "";
  position: absolute;
  top: 0px;
  left: 0;
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
  width: 100vw;
  height: 160px;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgb(255, 255, 255) 100%);
  z-index: 1;
}

#history .swell-block-fullWide__inner {
  position: relative;
  z-index: 10;
}


#body_wrap.page-company #history .history-row .wp-block-column {
  position: relative;
  z-index: 2;
}

@media (max-width: 767px) {
  #body_wrap.page-company #history .history-row {
    padding: 0 20px;
    gap: 0 !important;
  }
}

#body_wrap.page-company #history .history-list {
  list-style: none;
  padding: 0 0 0 60px;
}

@media (max-width: 767px) {
  #body_wrap.page-company #history .history-list {
    padding: 0 0 0 24px;
  }
}

#body_wrap.page-company #history .history-list li {
  position: relative;
  margin: 0 0 40px;
}

@media (max-width: 767px) {
  #body_wrap.page-company #history .history-list li {
    margin: 0 0 20px;
  }
}

#body_wrap.page-company #history .history-list li::before {
  content: "";
  position: absolute;
  left: -60px;
  top: 0;
  width: 24px;
  height: 24px;
  background-color: #f0580c;
  border-radius: 50%;
}

@media (max-width: 767px) {
  #body_wrap.page-company #history .history-list li::before {
    left: -24px;
    width: 14px;
    height: 14px;
  }
}

#body_wrap.page-company #history .history-list li::after {
  content: "";
  position: absolute;
  left: -49px;
  top: 0;
  width: 2px;
  height: calc(100% + 40px);
  background-color: #f0580c;
}

@media (max-width: 767px) {
  #body_wrap.page-company #history .history-list li::after {
    left: -18px;
    height: calc(100% + 20px);
  }
}

#body_wrap.page-company #history .history-list li p {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 3.4px;
  line-height: 1.3;
  color: #3b2f14;
}

@media (max-width: 767px) {
  #body_wrap.page-company #history .history-list li p {
    font-size: 14px;
  }
}

#body_wrap.page-company #history .history-list li p span {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1;
}

@media (max-width: 767px) {
  #body_wrap.page-company #history .history-list li p span {
    margin-bottom: 4px;
    font-size: 9px;
  }
}

#body_wrap.page-company #history .history-list li:last-child::after {
  content: none;
}

#body_wrap.page-company #history .history-list.has-sp-tail li:last-child::after {
  content: "";
}



/* ==================================================
Factory
工場概要
================================================== */
#body_wrap.page-company #factory .factory-inner {
  padding-top: 180px !important;
}

@media (max-width: 767px) {
  #body_wrap.page-company #factory .factory-inner {
    padding-left: 15px !important;
    padding-right: 15px !important;
    padding-top: 72px !important;
  }

  #factory .section-title + .wp-block-image {
    margin-inline: calc(50% - 50vw);
    width: 100vw;
  }
}

#body_wrap.page-company #factory .factory-top {
  margin-bottom: 70px !important;
  padding: 0 64px !important;
}

@media (max-width: 767px) {
  #body_wrap.page-company #factory .factory-top {
    margin-bottom: 50px !important;
    padding: 0 !important;
  }
}


#factory .factory-list .factory-item .factory-item-ttl {
  width: 100%;
  padding: 15px;
  margin-bottom: 40px !important;
  text-align: center;
  font-family: 'Sawarabi Mincho', serif;
  color: #ffffff;
  background: linear-gradient(90deg, #ffac1d 0%, #ffd231 100%);
  border-radius: 30px 0 30px 0;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

@media (max-width: 767px) {
  #body_wrap.page-company #factory .factory-list .factory-item .factory-item-ttl {
    margin-bottom: 10px !important;
    padding: 10px;
    margin-bottom: 20px !important;
  }
}


#body_wrap.page-company #factory .factory-list .factory-item .factory-item-body {
  padding: 0 40px;
}

@media (max-width: 767px) {
  #body_wrap.page-company #factory .factory-list .factory-item .factory-item-body {
    padding: 0;
  }
}

#body_wrap.page-company #factory .factory-list .factory-item .factory-item-body .factory-item-photo {
  margin-bottom: 30px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

@media (max-width: 767px) {
  #body_wrap.page-company #factory .factory-list .factory-item .factory-item-body .factory-item-photo {
    margin-bottom: 10px;
  }
}



/* ループスライダー */
.loop-slider {
    display: flex;
    overflow: hidden;
    gap: 0.5rem; /* 画像間の余白を指定 */
}

.loop-slider .wp-block-group__inner-container,
.loop-slider .swell-block-columns {
    display: contents;
}

.loop-slider .swell-block-columns__inner {
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    animation: infinity-scroll-left 50s infinite linear; /* アニメーションの時間を指定 */
    gap: 0px;
}

.loop-slider .swell-block-column {
    width: 20%;
    margin: 0;
    padding: 0 2px;
}

.loop-slider .swell-block-column figure {
    display: block;
    width: 430px; /* 画像の横幅を指定（パソコン） */
    position: relative;
}

.loop-slider .swell-block-column figure::before {
    padding-top: 65%; /* 画像の縦横比を指定 */
    display: block;
    content: "";
}

.loop-slider .swell-block-column figure img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}

@media screen and (max-width: 959px) {
    .loop-slider .swell-block-column figure {
        width: 200px; /* 画像の横幅を指定（スマホ） */
    }

    .loop-slider .swell-block-columns__inner {
        animation: infinity-scroll-left 20s infinite linear; /* アニメーションの時間を指定 */
        gap: 4px;
    }
}

@keyframes infinity-scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

#factory-slide {
     display: none;
}