/* 竜ケ崎電設 下層ページのサブビジュアル v2（2026-10-23）
   戻す: wp option update ryuden_sub_v2 0 */

.c-visual-sub.rs {
  margin-top: 0;
  height: clamp(300px, 28vw, 400px);
  background: #0b1a4a;
  overflow: hidden;
}
.c-visual-sub.rs .c-after__image {
  background-position: center 40%;
  animation: rs-zoom 8s ease-out both;
}
@keyframes rs-zoom {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

/* 左から紺のグラデーション（トップのメインビジュアルと揃える） */
.c-visual-sub.rs::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(8, 20, 60, .9) 0%, rgba(8, 20, 60, .68) 40%, rgba(8, 20, 60, .2) 100%);
}
/* 下端の赤いライン（ロゴの赤） */
.c-visual-sub.rs::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: clamp(120px, 18vw, 280px);
  height: 5px;
  background: #be392e;
}

.c-visual-sub.rs .c-visual-sub__inner {
  height: 100% !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
}
.c-visual-sub.rs .c-visual-sub__inner > .container {
  width: 100%;
}
.c-visual-sub.rs .c-visual-sub__headline {
  text-align: left !important;
}
.c-visual-sub.rs .c-visual-sub__ttl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(1.5rem, 1.25vw, 1.8rem) !important;
  line-height: 1.6 !important;
  letter-spacing: .14em;
  text-align: left !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .25);
  animation: rs-fade 1s .15s ease-out both;
}
/* 英字（data-title）を大きく */
.c-visual-sub.rs .c-visual-sub__ttl::before {
  order: -2;
  flex-basis: 100%;
  position: static;
  margin-bottom: 16px;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(3.6rem, 4.6vw, 6.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .04em;
  color: #fff;
}
/* 日本語の前の赤い短線 */
.c-visual-sub.rs .c-visual-sub__ttl::after {
  content: "";
  order: -1;
  width: 32px;
  height: 2px;
  margin-right: 14px;
  background: #be392e;
}
@keyframes rs-fade {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* パンくず：白地に細線ですっきり */
nav.c-breadcrumbs {
  background: #fff;
  border-bottom: 1px solid #e6e8ef;
}

@media (max-width: 767px) {
  .c-visual-sub.rs {
    height: 230px;
  }
  .c-visual-sub.rs::after {
    background: linear-gradient(90deg, rgba(8, 20, 60, .88) 0%, rgba(8, 20, 60, .6) 100%);
  }
  .c-visual-sub.rs .c-visual-sub__ttl {
    font-size: 1.4rem !important;
    letter-spacing: .1em;
  }
  .c-visual-sub.rs .c-visual-sub__ttl::before {
    margin-bottom: 10px;
    font-size: clamp(2.8rem, 8.4vw, 3.6rem);
  }
  .c-visual-sub.rs .c-visual-sub__ttl::after {
    width: 22px;
    margin-right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .c-visual-sub.rs .c-after__image,
  .c-visual-sub.rs .c-visual-sub__ttl {
    animation: none;
  }
}
