@charset "UTF-8";

@media screen and (max-width: 768px) {
  p {
    font-size: 16px !important;
  }
  /*TOP*/
  .main-img h1 {
    font-size: 20px;
    letter-spacing: 0.05em;
    font-size: 20px;
    letter-spacing: 0.05em;
    left: 0px;
    line-height: 24px;
  }

  .kv-title h1::after {
    display: none;
  }

  .kv-title {
    text-align: center;
    top: 40%;
  }

  .main-img .pc-br {
    display: none;
  }

  .main-img .sub-title {
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 0.08em;
    margin-top: 0;
  }

  .main-img .sub-title .pc-br {
    display: inline-block;
    margin-right: 0.5em;
  }

  .scroll-indicator {
    bottom: 80px;
  }

  .deco-square,
  .about-deco h2,
  .about::before,
  .about::after,
  .vertical-blue-line,
  .service-deco h2,
  .top-service::before,
  .top-service::after,
  .about-bg-img::before,
  .service-bg-img::before,
  .service-bg-img::after,
  .service-img-top {
    display: none !important;
  }

  .about img {
    width: 100%;
    height: auto;
  }

  .about {
    display: block;
    margin: 48px 0 60px 0;
  }

  .about {
    padding: 0 30px;
  }

  .about-deco {
    width: 100%;
    height: auto;
    position: unset;
    margin-bottom: 50px;
  }

  .about img,
  .top-service img {
    position: unset;
    margin: 0 auto;
    max-width: 100%;
  }

  .about-content .main-title,
  .top-service .main-title,
  .top-equipment .main-title,
  .main-title {
    font-size: 32px;
  }

  .blue-char {
    font-size: 32px;
  }

  h2 span {
    font-weight: 500;
  }

  .about p span {
    display: none;
  }

  .about p, 
  .top-service p,
  .top-equipment p {
    width: 100%;
    line-height: 28px;
    letter-spacing: 0.08em;
  }
  .about-content, 
  .service-content {
    width: 100%;
    padding: 0;
  }

  .button::before {
    display: none;
  }

  .about .button,
  .top-equipment-text .button,
  .top-achievements .button,
  .contact .button-wrap .submit-btn {
    width: 120px;
    height: 44px;
    color: #fff;
    background-color: #0B5BA8;
    font-size: 16px;
  }

  .top-achievements .button:hover {
    color: #0B5BA8;
    background-color: #fff;
  }

  .top-service {
    background-color: #0B5BA8;
    flex-direction: column; 
    padding: 30px;
    margin-bottom: 100px;
  }

  .feature-grid {
    gap: 50px;
  }

  .service-content,
  .service-deco {
    width: 100%; 
  }
  .service-deco {
    order: 1;
    height: auto;
    margin-bottom: 50px;
  }

  .service-content {
    order: 2; 
  }

  .top-service img {
    width: 100%;
    height: auto;
  }
  .service-bg-img,
  .service-bg-img .main-title {
    color: #fff;
  }

  .service-bg-img h2 span {
    color: #fff;
  }

  .philosophy p {
    width: 100%;
  }

  .top-service .button,
  .contact-main .button,
  .top-achievements .button,
  .button-top,
  .service .button {
    background-color: #fff;
    color: #0B5BA8;
    width: 120px !important;
    height: 44px !important;
  }

  .top-equipment {
        display: block;
    padding: 0;
    position: unset;
    height: auto;
  }

  .top-equipment::before {
    display: none;
  }

.top-equipment > div {
  position: unset;
}

.equipment-scrolldown-wrapper {
  display: none;
}

#photoSlider::-webkit-scrollbar {
  display: none;
}


.equipment-wrap .image-item img {
  height: auto;
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
}

.equipment-scrolldown .scrolldown-line {
    left: 50%;
    width: 60%;
    height: 2px;
    background-color: #0b5ba8;
}

.top-equipment-text {
  position: unset !important;
  padding: 0 30px;
  width: 100%;
}

.equipment-scrolldown {
    width: 100%; /* 親要素全体を画面幅に広げる */
    position: relative; /* ドットを absolute で動かすための土台 */
    margin: 0 auto;
}

.equipment-scrolldown .scrolldown-dot {
    position: absolute; 
    top: 50%; /* 縦方向の中心に配置 */
    transform: translate(-50%, -50%); /* 中心基準で配置 */
    transition: none; /* JSで直接動かすためトランジションを無効化 */
}

.equipment-wrap {
  width: 100%;
  height: auto;
  display: flex; /* 子要素を確実に横並びにする */
  flex-direction: row; /* (念のため明示) */
  overflow-x: scroll; /* 横スクロールを有効に */
  overflow-y: hidden; /* 縦スクロールは確実に無効に */
  -webkit-overflow-scrolling: touch; 
  scroll-snap-type: x mandatory; /* 横スナップを強制 */
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 30px;
}

.equipment-wrap::-webkit-scrollbar {
  display: none;
}

.equipment-wrap .image-item {
  display: block !important;
  height: auto;
  position: unset;
  flex-shrink: 0; 
  width: 100%; 
  padding: 0 30px;
  scroll-snap-align: start;
  opacity: 1 !important; 
  transform: none !important;
}

.image-item.image-hidden {
    display: block !important; 
    opacity: 1 !important; /* ← これが特に重要 */
}

.top-achievements-text {
  font-size: 16px;
  line-height: 36px;
  letter-spacing: 0.08em;
  text-align: left;
  margin: 0 0 30px 0;
}

.top-achievements-text span {
  display: none;
}

.top-achievements h2 {
  font-size: 20px;
    font-family: 'Noto Sans JP';
    font-weight: 400;
}

.top-achievements {
    padding: 30px;
}

.top-achievements-bg-img::before {
    top: 40px;
    background-size: 270px;
}

.top-achievements-list {
    margin-left: -30px; 
    margin-right: -30px;
    gap: 90px 0; 
    padding: 0 30px;
  }

  .top-achievements-list .tile-wrapper {
    width: 100%; 
    flex-basis: 100%; 
    min-width: unset; 
    box-sizing: border-box; 
  }
  
  .top-achievements-list .tile-wrapper img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
  .text-area-overlay {
    display: flex;
    height: auto;
    padding: 24px;
    justify-content: left;
    flex-direction: column;
  }

  .contact-box {
    max-width: 100%;
    display: block;
    height: auto;
    margin-bottom: 80px;
  }

  .contact-box h2 span {
    color: #fff;
  }

  .img-trim-container img {
    width: 100%;
    height: auto;
  }

  .service-main-wrapper {
    flex-direction: column-reverse;
  }

  .img-trim-container {
    height: auto;
  }

  .service-img-wrapper {
    position: unset;
  }

  .service-main-blue-bottom,
  .service-main-blue-top {
    position: unset;
  }



  .footer-logo a {
    font-size: 12px;
  }

  .flexible-processing-content {
    flex-basis: 100%;
    margin: 0 0 20px 0;
  }

  footer {
    height: 138px;
    display: flex;
    padding: 0;
  }
  .footer-container {
    height: auto;
  }
  .footer-address {
    width: 100%;
  }
  .footer-nav {
    display: none;
  }
  .contact-box h2 {
    margin-bottom: 20px;
  }
  .contact-box .contact-text {
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 20px;
  }
  .contact-main i {
    font-size: 14px;
  }
  .contact-main .tel-link {
    font-size: 16px;
  }
  .contact-box p {
    margin-top: 5px;
  }
  .footer-logo {
    margin-bottom: 0px;
    text-align: center;
  }
  .postal-code,
  .street-address,
  .service-btn {
    font-size: 12px;
  }
  .contact-box .button,
  .button-top {
    font-size: 12px;
  }
  .footer-logo img {
    width: 24px;
    height: 21px;
  }

  .footer-copyright {
    display: block;
    font-size: 10px;
    text-align: center;
    margin-top: 30px;
  }

  .contact-main p {
    font-size: 12px;
    margin-bottom: 30px;
  }
  .footer-logo a {
    font-size: 14px;
    display: flex;
    justify-content: center;
  }

  .company .message-text {
    margin-top: 0;
    width: 100%;
  }

.image-gallery-grid {
    grid-template-rows: auto; 
    grid-template-columns: 1fr; 
  }
    
  .gallery-item.item-main,
  .gallery-item.item-sub {
    max-width: 100%; 
    width: 100%;
    height: auto; 
  }
    
  .gallery-item.item-main {
    aspect-ratio: 1.259 / 1; 
  }

  .gallery-item.item-sub {
    aspect-ratio: 0.952 / 1; 
  }

  .works-content-text {
    width: 100%;
    padding: 0 30px;
  }

  .img-container::after {
    display: none;
  }

  .img-container {
    height: 300px;
    padding-bottom: 0;
  }

  .ervice-achievements-text-content {
    position: unset;
  }

  .service-achievements-content-wrapper {
    display: block;
    margin: 0 auto;
  }

  .service-achievements-content {
    width: 100%;
  }

  .service-achievements-img img {
    max-width: 100%;
  }

  .contact-wrapper {
    padding: 15px;
    margin: 15px;
  }

  .form-row {
    display: block;
    padding: 30px 0;
  }

  .type-checkbox p,
  .input-group {
    width: 100%;
  }

  .type-checkbox .input-group {
    width: 100%;
  }

  .wpcf7-list-item-label {
    font-size: 16px;
  }

  .form-row input[type="text"],
  .form-row input[type="email"],
  .form-row input[type="tel"],
  .form-row textarea {
      width: 100%;
  }
  .contact form label {
    padding: 0;
    margin: 0;
  }
  .form-footer label {
    margin-bottom: 50px !important;
  }

  .service .main-top {
    margin-bottom: 50px;
  }

  .service-main-blue-top::before,
  .service-main-blue-bottom::before {
    display: none;
  }

  .service .blue {
    width: 100%;
    height: 66px;
    padding: 0 20px;
  }

  .service-main-blue-top h2 {
    font-size: 24px;
  }

  .service-main-blue-bottom p {
    margin: 0;
  }

  .service-main-text {
    padding: 0 30px;
    word-break: keep-all;
  }
  .flexible-processing-content > div:first-child {
    height: auto;
  }

  .service h3{
    word-break: keep-all;
    line-height: 42px;
  }

  .technical-flexibility-wrapper {
    display: block;
    height: auto;
    margin-bottom: 120px;
  }

  .technical-flexibility-img {
    width: 90%;
    margin: 0 auto;
  }

  .technical-flexibility-text {
    width: 100%;
  }

  .sp-row-reverse {
    flex-direction: column-reverse;
    display: flex;
  }
  .type-checkbox p {
    text-align: left;
  }

  .equipment-grid {
    grid-template-columns: 1fr; 
    gap: 20px; 
  }
  .contact-form-line {
    width: 90%;
  }

  .contact .contact-confirm p::before,
  .thanks .contact-confirm p::before {
    left: 1px;
  }

  .tel-box {
    height: auto;
  }

  .tel-number {
    font-size: 25px;
    margin-bottom: 15px;
  }

  .tel-hours {
    line-height: 20px;
  }

  .data-row {
    display: block;
    padding: 0;
    border-bottom: none;
    margin-bottom: 40px;
  }

  .data-row dt {
    font-size: 20px;
    width: 100%;
    padding-right: 0;
    height: 60px;
    line-height: 60px;
  }

  .data-row dt::after {
    content:"";
    display: block;
    width: 100%;
    background-color: #9999;
    height: 2px;
    border-radius: 1px;
  }

  .data-row dd {
    margin-top: 1em;
  }


/* インジケーターのスタイル調整 */
  .indicator {
    display: flex !important;        /* inline-blockよりflexの方が制御しやすいです */
    justify-content: center;
    align-items: center;
    margin: 0 0 60px 0;      /* テキストとの間隔 */
  }

.dot {
  width: 10px;
  height: 10px;
  margin: 0 6px;
  background-color: #d1d1d1; /* 未選択の色 */
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

/* 選択されているドット */
.dot.active {
  background-color: #0B5BA8 !important; /* 会社カラーの青 */
  transform: scale(1.2);                 /* 少しだけ大きく */
}

.indicator .dot.active {
    background-color: #0B5BA8 !important; /* 現在の青色 */
    width: 24px; /* アクティブ時に少し長くするなど */
    border-radius: 4px;
    transition: all 0.3s ease;
}


  .sp-br {
    display: block;
  }
}