/* Quality service module — titleCell + serviceList (from sbhk122 / shibo) */

.t15-service-section {
  padding: clamp(48px, 7vh, 80px) 0;
  background: transparent;
  border-top: 0;
  border-bottom: 0;
}

.t15-service-section .t15-wrap {
  max-width: 1100px;
}

/* —— titleCell —— */
.titleCell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto 48px;
  max-width: 100%;
  gap: 10px;
}

.titleCell__script {
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2.4vw, 26px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: rgba(114, 8, 145, 0.55);
  user-select: none;
  pointer-events: none;
}

.titleCell__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.5vw, 28px);
  width: 100%;
  max-width: 920px;
}

.titleCell__ornament {
  flex: 1 1 0;
  min-width: 40px;
  max-width: 220px;
  height: 14px;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.9;
}

.titleCell__ornament--left {
  background-image: url("../img/service/titleset-left@2x.png");
  background-position: right center;
  /* tint geometric lines toward accent blue */
  filter: brightness(0) invert(0.42) sepia(0.35) saturate(2.5) hue-rotate(260deg);
}

.titleCell__ornament--right {
  background-image: url("../img/service/titleset-right@2x.png");
  background-position: left center;
  filter: brightness(0) invert(0.42) sepia(0.35) saturate(2.5) hue-rotate(260deg);
}

.titleCell h2 {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--t15-title, #6a7391);
  text-shadow: none;
}

.titleCell h2::before,
.titleCell h2::after {
  content: none;
  display: none;
}

.titleCell p {
  margin: 4px 0 0;
  max-width: 28em;
  color: var(--t15-title-sub, #6a7391);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .titleCell {
    margin-bottom: 36px;
    gap: 8px;
  }

  .titleCell__script {
    font-size: clamp(15px, 4.2vw, 20px);
    letter-spacing: 0.06em;
  }

  .titleCell__heading {
    gap: 10px;
  }

  .titleCell__ornament {
    max-width: 96px;
    height: 10px;
    opacity: 0.75;
  }

  .titleCell h2 {
    letter-spacing: 0.04em;
  }

  .titleCell p {
    font-size: 13px;
    padding: 0 12px;
  }
}

@media (max-width: 420px) {
  .titleCell__ornament {
    display: none;
  }
}

/* —— serviceList —— */
.serviceList {
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.serviceList ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.serviceList li {
  text-align: center;
  min-width: 0;
}

.circle {
  --circle-size: 130px;
  --ani-size: 90px;
  --ani-inset: 20px;
  position: relative;
  width: var(--circle-size);
  height: var(--circle-size);
  margin: 0 auto;
  text-align: center;
  font-size: 14px;
  color: #fff;
  background-image: url("../img/service/image-table@2x.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.circleBox {
  position: relative;
  height: 100%;
  line-height: var(--circle-size);
  font-size: 14px;
}

.circleBox span {
  font-size: 32px;
  color: #fff;
  font-weight: 700;
}

.aniCricle {
  width: var(--ani-size);
  height: var(--ani-size);
  position: absolute;
  left: var(--ani-inset);
  top: var(--ani-inset);
  background: url("../img/service/image-scale-active@2x.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.line1,
.line2,
.line3,
.line4 {
  width: 50%;
  height: 100%;
  position: absolute;
  top: 0;
  background-image: url("../img/service/image-scale-default-all.png");
  background-repeat: no-repeat;
  overflow: hidden;
  background-size: var(--ani-size) var(--ani-size);
  z-index: 1;
}

.line1 {
  left: 0;
  background-position: 0 100%;
  transform-origin: right;
  transform: rotate(-4deg);
}

.line2 {
  right: 0;
  background-position: calc(var(--ani-size) * -0.5) 100%;
  transform: rotate(-139deg);
  transform-origin: 0 50%;
}

.line3 {
  right: 0;
  background-position: calc(var(--ani-size) * -0.5) 100%;
  transform: rotate(-180deg);
  transform-origin: 0 50%;
}

.line4 {
  right: 0;
  background-position: calc(var(--ani-size) * -0.5) 100%;
  transform: rotate(-120deg);
  transform-origin: 0 50%;
}

.active .circle .line2 {
  animation: rota1 1.5s linear 1;
}

.active .circle .line3 {
  animation: rota2 1.5s linear 1;
}

.active .circle .line4 {
  animation: rota3 1.5s linear 1;
}

@keyframes rota1 {
  0% { transform: rotate(0deg); }
  to { transform: rotate(-139deg); }
}

@keyframes rota2 {
  0% { transform: rotate(0deg); }
  to { transform: rotate(-180deg); }
}

@keyframes rota3 {
  0% { transform: rotate(0deg); }
  to { transform: rotate(-120deg); }
}

.serviceList li p {
  margin: 18px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: #424a66;
  line-height: 1.35;
}

.serviceList li p:last-child {
  width: auto;
  max-width: 11em;
  line-height: 1.4;
  margin: 8px auto 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #67718f;
  font-weight: 400;
}

.serviceList__items {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
  margin: 48px 0 0;
  padding: 0;
}

.serviceList__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-sizing: border-box;
}

.serviceList__item img {
  width: 107px;
  height: 107px;
  flex-shrink: 0;
  object-fit: contain;
}

.serviceTxt {
  flex: 1;
  min-width: 0;
  text-align: left;
  padding-top: 6px;
}

.serviceTxt h3 {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
  color: #424a66;
  line-height: 1.35;
}

.serviceTxt p {
  line-height: 1.65;
  margin: 10px 0 0;
  font-size: 14px;
  color: #67718f;
}

/* —— Tablet —— */
@media (max-width: 900px) {
  .t15-service-section {
    padding: 48px 0;
  }

  .titleCell {
    margin-bottom: 32px;
  }

  .serviceList ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
    max-width: 480px;
    margin: 0 auto;
  }

  .circle {
    --circle-size: 120px;
    --ani-size: 84px;
    --ani-inset: 18px;
  }

  .serviceList__items {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 36px;
  }

  .serviceList__item img {
    width: 88px;
    height: 88px;
  }

  .serviceTxt h3 {
    font-size: 16px;
  }
}

/* —— Phone —— */
@media (max-width: 560px) {
  .t15-service-section {
    padding: 40px 0;
  }

  .titleCell__script {
    font-size: 16px;
  }

  .titleCell h2 {
    font-size: 26px;
    padding: 0;
  }

  .titleCell p {
    font-size: 13px;
    padding: 0 8px;
  }

  .serviceList ul {
    max-width: none;
    gap: 22px 12px;
  }

  .circle {
    --circle-size: 104px;
    --ani-size: 72px;
    --ani-inset: 16px;
  }

  .circleBox span {
    font-size: 28px;
  }

  .serviceList li p {
    font-size: 15px;
    margin-top: 12px;
  }

  .serviceList li p:last-child {
    font-size: 10px;
  }

  .serviceList__items {
    gap: 18px;
    margin-top: 28px;
  }

  .serviceList__item {
    gap: 10px;
  }

  .serviceList__item img {
    width: 64px;
    height: 64px;
  }

  .serviceTxt {
    padding-top: 0;
  }

  .serviceTxt h3 {
    font-size: 15px;
  }

  .serviceTxt p {
    font-size: 13px;
    margin-top: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .active .circle .line2,
  .active .circle .line3,
  .active .circle .line4 {
    animation: none;
  }
}
