/*パンくず*/
#breadcrumb {
  display: none;
}
.breadcrumb-list__item a{
   color: #6ca480;
}
.main-section--margin-bottom--on {
    margin-bottom: 0;
}
/**/

@media (min-width: 1200px) {
    .site-body {
        padding: 0rem 0 4rem;
    }
}
@media (min-width: 992px) {
    .site-body {
        padding: 0 0 3.5rem;
    }
}
@media (max-width: 767px) {
  .site-body {
      padding: 0;
  }
}
@media (min-width: 768px) {
  .site-body {
      padding: 0;
  }
}
@media (max-width: 991.98px) {
    .main-section
 {
        margin-bottom: 0;
    }
}
.global-nav-list>li:before {
    border-bottom: 0;
}
.global-nav-list>li .global-nav-name {
    font-size: 16px !important;
}
/*lightningテーマ　下線*/
h3:where(:not(.wp-block-post-title)):after {
    border-bottom:0;
}
h2:where(:not(.wp-block-post-title)){
    border-top: 0;
    border-bottom: 0;
}
h3:where(:not(.wp-block-post-title)) {
    border-bottom: 0;
    padding: 0;
}
@media (max-width: 767px) {
  h3:where(:not(.wp-block-post-title)) {
    padding: 0 .5em;
}
}


/*トップページ*/
.home .sub-section {
  display: none !important;
}
/*各ページ*/
.page-title-h {
    font-size: 32px;
}
.page-title-p {
   font-size: 1.2rem;
   line-height: 2.5rem;
   margin-block-end:0;
}
@media (max-width: 767px) {
    .page-title-h {
        font-size: 24px;
    }
    .page-title-p {
        font-size: 1rem;
     }
}
/**/

  h2{ font-size:34px;}
  @media (max-width: 767px) {
      h2{ font-size:28px;}
  }
  .position_r{
    position: relative;
  }
  .p-breadcrumb{
    display: none;
  }

  .letter-space01 {
    letter-spacing: 0.1rem;
  }
  .line-he23r {
    line-height: 2.3rem;
  }
  .border-r10{
    border-radius:10px;
  }
  .shadow {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  .text-center {
    text-align: center;
  }
  
  /* PC向けのスタイル (768px以上) */
  @media (min-width: 768px) {
    .only-mobile {
        display: none !important;
    }
  }
  
  /* モバイル向けのスタイル (767px以下) */
  @media (max-width: 767px) {
    .only-pc {
        display: none !important;
    }
  }
  .line-h22 {
    line-height: 2.2rem;
  }
  /*ヘッダー*/
.device-pc .global-nav-list > li > a:hover,
.device-pc .global-nav-list > li.current-menu-item > a {
    color: #7dbe94;
}
  .global-nav ul {
    height: 100%;
  }

.head-menu-contact a {
  color: #fff;
}


@media screen and (max-width: 768px) {
  .head-menu-contact {
    background-color: transparent !important;
  }
}

/*ドグルボタン*/
.vk-mobile-nav-menu-btn {
    border-color: #fff;
    border: 0;
    width: 30px;
    height: 30px;
    background-color:#6ca480 ;
}
.vk-mobile-nav-menu-btn.position-right {
    right: 20px;
    top: 20px; 
}
.vk-mobile-nav-menu-btn.menu-open {
    border: none;
}

.vk-mobile-nav .vk-mobile-nav-menu-outer {
    padding: 100px 0;
}
/*スマホメニュー*/
.vk-mobile-nav-menu-btn.menu-open {
  border-color: #333;
  background-color: #6ca480;
}
.vk-mobile-nav.vk-mobile-nav-open.vk-mobile-nav-right-in {
  background-color: #2e3c43;
}
.vk-mobile-nav nav>ul {
  border-top: 1px solid #6ca480;
}
.vk-mobile-nav nav ul li a {
  color: #fff;
  border-bottom: 1px solid #6ca480;
}



/*投稿ページ　サイドバー*/
.entry-meta-item-author,
.entry-meta-item-updated {
    display: none;
}

.card-img-overlay {
    display: none;
}
.sub-section {
    margin-top: 100px;
    background-color: #f7f7f7;
    padding: 20px;
}
.sub-section .title {
    color: #4CAF50;
    border-bottom: 1px dotted #7ebb93;
}
/*投稿categoryページ*/
body.category-news .site-body,
body.single .site-body {
  margin-bottom: 50px;
  margin-top: 100px;
  min-height: 60vh;
}

.pagination {
  margin-bottom: 80px;
}
.category-news .vk_post .vk_post_btn {
  background-color:#6ca480 ;
  border: 1px solid #6ca480;
  color: #fff;
}
ul.page-numbers li span.page-numbers.current {
  background-color:#6ca480;
}
.next-prev {
  margin-bottom: 100px !important;
}
.card-intext .card-intext-inner .vk_post_body {
  background-color: #6ca480;
}
/*投稿個別ページ*/

.entry-meta-data-list dt{
  display: none;
}

body.single .sub-section {
  position: static !important;
  top: auto !important;
}


/*ヘッダー*/
.nav li a, nav li a {
  color: #fff;
}
.site-header {
  background-color:#2e3c43;
}
.site-header-container {
  max-width: 1600px;
}
@media (min-width: 992px) {
    .site-header-logo img {
        max-height: 80px;
    }
}
/*スクロール時*/
.header_scrolled .site-header {/*スクロール時ヘッダー*/
  display: none;
}

/*メインビジュアル function.php*/

.custom-slider {
  position: relative;
  width: 100vw;
  height: 600px;
  overflow: hidden;
  margin-left: calc(-50vw + 50%); 
  left: 0;
}
.custom-slider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.3) 25%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.3) 75%,
    rgba(255, 255, 255, 0.2) 100%
  );
  z-index: 1;
}

.custom-slider .slider-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slider-text {
  position: absolute;
  top: 35%;
  left: 10%;
  z-index: 10;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}
.slider-text .company-name {
  font-size: 3.5rem;
  font-weight: bold;
  line-height: normal;
  letter-spacing: 0;
}
.slider-text .coltd {
  font-size: 2rem;
  font-weight: normal;
  margin: 0;
  line-height: normal;
}
.slider-text .motto {
  font-family: 'Noto Serif JP', serif;
  font-size: 2rem;
}

.custom-slider .slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-slider .slider-item:nth-child(1) {
  opacity: 1;
}

.custom-slider .slider-item:nth-child(2) {
  animation: crossfade 9s infinite;
}

.custom-slider .slider-item:nth-child(3) {
  animation: crossfade 9s infinite 3s;
}

@keyframes crossfade {
  0% { opacity: 0; }
  33% { opacity: 1; }
  66% { opacity: 0; }
  100% { opacity: 0; }
}
/*3つの丸*/
.circle-section {
  position: relative;
  width: 500px;
  height: 450px;
  margin: 50px auto;
  z-index: 10;
  left: 25%;
}


.circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  color: #fff;
  background-color: #fff; /* 初期色を白に */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  position: absolute;
  opacity: 0;
  transform: translateY(50px);
  animation: slideUp 1s ease-out forwards, bgFade 3s ease-out forwards; /* 背景色アニメーションを追加 */
}
.circle,
.circle:hover,
.circle:visited,
.circle:focus {
    color: #fff;
    text-decoration: none;
}

.circle-top {
  animation: bgChange1 3s ease forwards, slideUp 1s ease-out forwards;
}

.circle-left {
  animation: bgChange2 3s ease forwards, slideUp 1s ease-out forwards;
}

.circle-right {
  animation: bgChange3 3s ease forwards, slideUp 1s ease-out forwards;
}
/* 背景色フェードのアニメーション*/
@keyframes bgChange1 {
  0% { background-color: #a6ff00; }
  100% { background-color: #17a2b8; }
}
@keyframes bgChange2 {
  0% { background-color: #a6ff00; }
  100% { background-color: #19adab; }
}
@keyframes bgChange3 {
  0% { background-color: #a6ff00; }
  100% { background-color: #27cabc; }
}
@keyframes slightRotate {
  from {
    transform: rotate(-5deg) scale(0.9);
  }
  to {
    transform: rotate(0deg) scale(1);
  }
}
.sub-text {
  margin-top: 10px;
  font-size: 1.3rem;
  font-weight: normal;
  opacity: 0.8;
}

/* 水質検査（上中央に配置） */
.circle-top {
  top: 0;
  left: 27%;
  transform: translate(-50%, -50%) translateY(50px);
  flex-direction: column;
  text-align: center;
}

/* 環境分析（左下） */
.circle-left {
  bottom: 0;
  left: 0;
  transform: translateX(50px) translateY(50px); /* 左下 */
  flex-direction: column;
  text-align: center;
}

/* 作業環境測定（右下） */
.circle-right {
  bottom: 0;
  right: 0;
  transform: translateX(-50px) translateY(50px); /* 右下 */
  flex-direction: column;
  text-align: center;
}

/* アニメーション遅延 */
.delay-1 {
  animation-delay: 0.3s;
}
.delay-2 {
  animation-delay: 0.6s;
}
.delay-3 {
  animation-delay: 0.9s;
}

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
.circle {
    width: 180px;
    height: 180px;
    font-size: 1.5rem;
}
.circle-section {
  position: relative;
  width: 380px;
  height: 380px;
}
.slider-text .company-name {
  font-size: 3.2rem;
}
.slider-text {
  left: 2%;
}
.sub-text {
  font-size: 1.1rem;
}
}
@media screen and (min-width: 576px) and (max-width: 767px) {
 .circle {
    width: 160px;
    height: 160px;
    font-size: 1.5rem;
}
.circle-section {
  width: 350px;
  height: 350px;
  margin: 80px auto 50px;
}
.slider-text .company-name {
  font-size: 2.8rem;
}
.slider-text {
  left: 2%;
}
.sub-text {
  font-size: 1.1rem;
}
}

@media screen and (max-width: 575px){
  .circle-section {
    width: 85%;
    height: 320px; 
    left: 0;
    padding: 0 10px;
  }
  .slider-text {
    top: 70%;
  }
  .circle {
    width: 150px;
    height: 150px;
    font-size: 1.5rem;
  }
  .sub-text{
    font-size: 1rem;
  }
  .slider-text .coltd {
    font-size: 1.5rem;
  }
  .slider-text .company-name {
    font-size: 3rem;
    margin-bottom: 0;
  }
  .slider-text .motto {
    font-size: 1.5rem;
}
}


/*フロントページ*/
/*背景*/
body.home {
  background-color: unset;
}

 
/***topの事業内容****/
.zoomup-column {
  transition: transform 0.3s ease; 
} 
.zoomup-column:hover {
  transform: scale(1.05); /* 5%拡大 */
} 

.top-service-colum .wp-block-column, .service-colums {
 box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
 padding: 15px;
 background-color: #fff;
}

.zoomup-column h5 {
  font-size: 1.5rem;
}
  /*事業内容ページ　id=11*/

.water-quality .water-quality-img {
margin-top: 0;
  transform: translateY(50px);
  z-index: 5;
  position: relative;
}
.water-quality {
  position: relative; 
  z-index: 1;
}

.quality-description {
  margin-top: -15%;
  position: relative;
  z-index: 2;
  margin-right: 25%;
}

.title-container {
  position: relative;
  display: inline-block;
}

.number-text {
    color: #a7bdaa;
    font-size: 30px;
    font-weight: 600;
    margin-block-end: -10px !important;
}

  .catch {
    font-size: 2.25rem;
    margin-top: 80px;
    margin-bottom: 100px;
  }


  @media (max-width: 768px) {
   .catch {
      font-size: 2rem;
      margin-bottom: 0;
    }
    .quality-description {
  margin-top: -5%;
  margin-right: 10%;
}
  }


  /*会社概要・私たちについてページ*/
  .company-colum {
    z-index: 1;
  }
  .company_table table {
    width: 100%;
    border-collapse: collapse; 
    font-size: 1.1rem;
    line-height: 1.8rem;
    border-left: 0;
    border-right: 0;
    background-color: #3a4b57;
    color: #fff;
    border-top: 0;
  }
  .company_table th {
    border-bottom: 1px solid #6ca4807a;
    background-color: #3a4b57;
    border-left: none;
    border-right: none;
    border-top: none;
    
}
  .company_table td {
     padding: 25px 0 !important;
     border-bottom: 1px solid #6ca4807a;
    border-left: none;
    border-right: none;
    border-top: none;
}
.company_table tr:last-child td,
.company_table tr:last-child th {
  border-bottom: none;
}
  .company_table th:first-child {
    width: 25%;
    text-align: left;
}
@media (max-width: 600px) {
  .company_table th:first-child {
    width: 30%;
}
}
/*****沿革*****/
.history-colum .wp-block-columns {
 padding: 20px ;
}
.riken-timeline .ark-block-timeline__body {
    margin-top:0;
    font-size: 1.1rem;
    padding-left: 10px;
}
.riken-timeline .ark-block-timeline__head {
    color: #333;
    font-size: 13px;
}
.riken-timeline .ark-block-timeline__item {
    padding: 1rem;
}
.riken-timeline .ark-block-timeline__shape {
  background-color:#3a4b57;
  border: 0;
}
/*登録許可*/
.certifications-cloum {
  padding: 40px;
}
.certifications-cloum .ark-block-columns__inner {
 font-size: 1.1rem;
}
@media (max-width: 768px) {
  .certifications-cloum {
  padding: 15px;
}
}

  /*topのお知らせ*/

.wp-block-latest-posts.wp-block-latest-posts__list li {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.wp-block-latest-posts__post-date {
  order: 1; 
  margin-right: 30px;
  color: #6ca480;
  white-space: nowrap; 
}
@media (max-width: 768px) {
.wp-block-latest-posts__post-date { 
  margin-right: 10px;
}
}

.wp-block-latest-posts__post-title {
  order: 2;
  flex: 1;
  margin-bottom: 0 !important;
}

.wp-block-latest-posts__list li {
  position: relative; 
  padding-right: 20px;
}

.wp-block-latest-posts__list li::after {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  position: absolute;
  right: 0; 
  top: 50%;
  transform: translateY(-50%);
  color: #3a4b57;
  font-weight: bold;
}

/* 三角形背景のスタイルとアニメーション */
.triangle-background {
  position: relative;
  overflow: hidden; /* 三角形はみ出し防止 */
}

.triangle-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%; /* 左外から開始 */
  width: 200%;  
  height: 100%;
  background: transparent;
  clip-path: polygon(0 0, 100% 40%, 0 100%); /* 左向き大きな三角形 */
  background-color: #f2f9f6;
  animation: slideInTriangle 8s ease forwards;
  pointer-events: none;
  z-index: 0;
}

.triangle-background > * {
  position: relative;
  z-index: 1;
}

@keyframes slideInTriangle {
  from {
    left: -150%;
  }
  to {
    left: 0;
  }
}

/*****右からさんかく*****/
.triangle-background-right {
  position: relative;
  overflow: hidden;
}

.triangle-background-right::before {
  content: "";
  position: absolute;
  top: 0;
  right: -150%; /* 右外から開始 */
  width: 200%;
  height: 100%;
  background: transparent;
  clip-path: polygon(100% 0, 0 60%, 100% 100%); /* 右向き大きな三角形 */
  background-color: #f3f6f8;
  animation: slideInTriangleRight 8s ease forwards;
  pointer-events: none;
  z-index: 0;
}



.triangle-background-right > * {
  position: relative;
  z-index: 1;
}

@keyframes slideInTriangleRight {
  from {
    right: -150%;
  }
  to {
    right: 0;
  }
}

/* テキストスライドアップ */
.slideup-heading {
  overflow: hidden;
  display: inline-block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.slideup-underline {
  position: relative;
  padding-bottom: 0.3em;
}


.slideup-underline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background-color: #3a4b57;
  transition: width 0.6s ease;
}

.slideup-underline.underline-animated::after {
  width: 100%;
}

/*フッター上（幅広い知識と・・・）*/

.img-cover h2 {
 line-height: 3rem;
 letter-spacing: 0.1rem;
}
 @media (max-width: 767px) {
    .img-cover h2 {
        font-size: 24px;
    }
}

/*カスタムfooter.php*/
.site-footer{
 display: none;
}
#footer.footer {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background-color: #f2f9f6;
    color: #2e3c43;
}
.footer-widget-area {
  position: relative;
  top:-140px;
  z-index: 1; 
}
.footer-inner {
    position: relative;
    top: 0;
    z-index: 0;
    color: #2e3c43;
    margin-bottom: 100px;
    padding-top: 100px;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-size: 16px;
}
.footer-column {
  flex: 1 1 22%; /* 約4カラム幅 */
  min-width: 150px; /* スマホで縦並び用 */
}
.footer-menu-title {
    display: inline-block;
    border-bottom: 1px solid #2e3c43;
    margin-bottom: 4px;
    font-weight: 600;
}
.footer-company {
    font-size: 16px;
    color: #2e3c43;
}
.footer-company .company-name {
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.footer-company .company-address {
  color: #2e3c43 !important;
}
.footer-company .company-address a {
  color: #2e3c43 !important;
  text-decoration: none;
}


.footer-menu {
  list-style: none;
  padding: 0;
}
.footer-menu a {
    color: #2e3c43;
    text-decoration: none;
}
.footer-menu li {
  margin-bottom: 15px;
}
.footer-menu a:hover {
  color:rgb(32, 85, 112);
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #fff;
  background-color: #333;
  padding: 10px;
}

@media (max-width: 768px) {
  .footer-columns {
    flex-direction: column;
  }
  .footer-column {
    flex: 1 1 100%;
    min-width: 100%;
    margin-bottom: 30px;
    padding-left: 30px;
  }
}


/*問い合わせフォーム*/

.contact-form {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 10px;
}

.contact-form .form-field {
  margin-bottom: 25px;
}

.contact-form label {
  display: block;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
}
.req {
  font-size: 12px;
  color: #cd7a7a;
  margin-left: 2px;
}

.contact-form .form-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  color: #333;
  background-color: #fff;
  box-sizing: border-box;
}

.contact-form .form-input:focus {
  border-color: #4CAF50;
  outline: none;
}
.form-submit-button .form-privacy{
  margin: 50px auto;
  text-align: center;
}
.form-submit-button .form-submit {
  text-align: center;
  margin: 50px auto;
  width: 50%;
}
.form-submit-button .submit-button {
  background-color: #6ca480;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}
.form-submit-button .submit-button:hover {
  background-color: #7dbe94;
}

.contact-form .form-field input[type="file"] {
  padding: 5px;
}

.contact-form .form-field input[type="file"]::file-selector-button {
  background-color: #6ca480;
  color: white;
  padding: 5px 10px;
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
}
.contact-form .form-field input[type="file"]::file-selector-button:hover {
  background-color: #45a049;
}
.contact-form .form-field input[type="file"]:not([multiple]) {
  display: block;
  margin-top: 10px;
}
.wpcf7-not-valid-tip {
  font-size: .8rem;
}
/********アルケー　各ページヘッダー*******/
@media not all and (min-width: 1000px) {
    .arkb-section--1 {
        --arkb-min-height: 50vh !important;
        --arkb-padding: 4vw 8vw 40vw 4vw !important;
    }
    .arkp-scMV06 .arkb-absLayer {
    --arkp--media--width: 100% !important;
    --arkp--media--skew: 0deg !important;  /* skewを無効化 */
    
    /* skewを使わずに普通に表示させたいならtransformもリセット */
    transform: none !important;
    width: 100% !important;
    right: 0 !important;
    left: 0 !important;
    overflow: visible !important;
}
}
